Save Images and Train them and get results

We are using ‘imageClassifier’ and ‘featureExtractor’ methods to recognize images using ml5-library and p5.js. We have successfully recognized the images with your Pre-trained model.
We are successfully implemented featureExtractor.classification(video, VideoReady) function to add a poses using a video element. But now we want to add an image using featureExtractor’s addImage() function as it shows that now featureExtractor works with images.

We require something which takes images from local and trains them, and after training of those images if we provide anyone image from local to recognize. That will give us a good result.

We tried with ‘video = captureCreate(VIDEO)’ but it taking video frame as input, we wanted to provide image as input and wanted to save for further recognization.

Thanks