Can we use image instead of video in createCapture() to add Images in dataset


We are using FeatureExtraction to get classification and regression since it using video = createCapture(VIDEO); so can we use images in place of video to add our images in the dataset and also want to train that image.

I’m using and for reference.