WongKinYiu / yolov7

Implementation of paper - YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors
GNU General Public License v3.0
13.22k stars 4.18k forks source link

Help with _crop or _image save Yolov7 #1727

Open miskeivancevic opened 1 year ago

miskeivancevic commented 1 year ago

I need some help if you can.

I am using yolov7.

I am trying to write 1 frame (full frame), it does not need to have bounding box, just a clean frame from rtsp stream every let's say 5 seconds.

crop

This solution gives me n.. number of detection per frame (save_crop) This is wrong, I get n.detected objects in 1 frame, resolving to let's say in my case 49 jpeg's per frame, which is not what I am looking for.

Can you help me out with this?

thnak commented 1 year ago

try remove plot_one_box

miskeivancevic commented 1 year ago

@thnak I get same result removing plot_one_box, I get 49 jpeg per frame, which is not what I want.

Let me try to be more clear. Maybe it's not the right way to go with save_crop.

What I need is to save one image in 5 seconds, one image of full frame, not detected objects. Cause now, it is saving 1 full image per detection per frame. This means it's saving 49 jpeg in one frame, because in one frame there are 49 detected objects, which is a lot.