pca = PCA(n_components=2) pca_features = pca.fit_transform(features)
# Check if video file was opened successfully if not cap.isOpened(): print("Error opening video file") tomo_4.mp4
# Simple example: visualize the feature space using PCA from sklearn.decomposition import PCA pca = PCA(n_components=2) pca_features = pca
import matplotlib.pyplot as plt