AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.76k stars 7.96k forks source link

detect multiple images #1540

Open Jin-S-Kim opened 6 years ago

Jin-S-Kim commented 6 years ago

hello AlexeyAB I want to predict multiple images. First I make train.txt file in data folder 2018-09-12 16-32-52 This is my train.txt file. Directory of train.txt is /home/jinsoo/darknet/basic/data and directory of images is /home/jinsoo/darknet/basic/data And I insert terminal like this './darknet detector test cfg/coco.data cfg/yolov3.cfg yolov3.weights < data/train.txt > result.txt'

If I insert './darknet detector test cfg/coco.data cfg/yolov3.cfg yolov3.weights < data/train.txt > result.txt' All images in /home/jinsoo/darknet/basic/data is detected and result of detection is saved in result.txt. 2018-09-12 16-38-28 this is my data folder and result is like this 2018-09-12 16-39-06

Results of detection are saved as result.txt files for the entire images of the data folder. Can I save result.txt for the each image of the data folder? I want to save result.txt for dog.jpg, giraffe.jpg, horses.jpg, eagles.jpg, person.jpg, scream.jpg. I mean If I detect 6 images together I want to save result for each images and create 6 result.txt file. Can I do this?

pratikbhave2 commented 6 years ago

Hey @Jin-S-Kim You could have a look at my repository

Given an image path, you will get independent output of images and txt files.