qqwweee / keras-yolo3

A Keras implementation of YOLOv3 (Tensorflow backend)
MIT License
7.14k stars 3.45k forks source link

how to save a video #740

Closed MujoNoThuki closed 3 years ago

MujoNoThuki commented 3 years ago

Thanks to your program, I was able to successfully train and detect using my own dataset. Now that I can detect it from the video by running yolo_video.py, how can I rewrite the program to save each image that appears in the result?

cv2.imwrite ('d / study_data / keras-yolo3 / result / image ('+ format (num) +'). jpg', result)

I added this, but I couldn't save it.

MujoNoThuki commented 3 years ago

cv2.imwrite ('d:/ study_data / keras-yolo3 / result / image ('+ format (num) +'). png', result)

I could on this code , sorry