VG_AlexeyAB_darknet icon indicating copy to clipboard operation
VG_AlexeyAB_darknet copied to clipboard

I just want to save the picture of the detected box,how to modify?

Open yancccc opened this issue 4 years ago • 3 comments

hi, draw_detections_v3(im, dets, nboxes, thresh, names, alphabet, l.classes, ext_output); // save_image(im, "predictions"); save_image(im, outputfilename_without_ext);

I just want to save the picture of the detected box,how to modify?

yancccc avatar Jul 02 '20 07:07 yancccc

Hi,

Do you mean the picture of the objects that characterised by the bounding box? If so, I suggest:

  1. using Yolo to detect objects from images.
  2. save the bounding box information to json.
  3. write another python or Java program to Crop out those bounding box pictures from each image according to the bounding box coordinates in the json file.

How do you think about this?

BR, Vincent

vincentgong7 avatar Jul 03 '20 10:07 vincentgong7

I don't mean to crop out the picture of the bounding box, Only save the picture of detected things, ignore the picture of nothing detected

yancccc avatar Jul 06 '20 00:07 yancccc

It's even easier. According to the exported text file(text file or json), it is easy to know which images contain identified objects and which do not have. Then you just need to copy those images contain detected images to one folder.

vincentgong7 avatar Jul 17 '20 09:07 vincentgong7