RizwanMunawar / yolov7-object-cropping

YOLOv7 Object Cropping Using OpenCV
GNU General Public License v3.0
19 stars 6 forks source link

How can i crop all the images in a specific folder? #3

Open jmesLee opened 1 year ago

jmesLee commented 1 year ago

i am currently using your program to post-process images that have been taken. I have a large number of images, and i would like to process multiple images at once. Is there a way to do this with your code?

brianoy commented 6 months ago

For example, your images are at the path C:\yolov7-main\input\1.jpg C:\yolov7-main\input\2.jpg C:\yolov7-main\input\3.jpg C:\yolov7-main\input\4.jpg C:\yolov7-main\input\5.jpg

If your cmd execution path is at C:\yolov7-main\ Just type python detect_crop.py --weights dorabest.pt --source ./input, all the images in that folder would detect and crop automatically.