tensorflow-yolo icon indicating copy to clipboard operation
tensorflow-yolo copied to clipboard

How can I give any input image

Open Abduoit opened this issue 6 years ago • 2 comments

Hi,

How can I modify the demo.py file, so the input image would be different not only cat.jpg. For example, now If I want to test another image I have to change the input in demo.py file, which is [np_img = cv2.imread('cat.jpg')], then, I will be able to run another image.

I want to test another image not cat.jpg?

Abduoit avatar Jul 08 '17 22:07 Abduoit

Replace the 'cat.jpg' with the name of the other picture.

leeyoshinari avatar Jul 10 '17 03:07 leeyoshinari

Thx for reply @leeyoshinari

Yes I know how to do that, but I am thinking to do make something more easier which keep the file fixed and only change the input image from the code for example python demo.py "path/image name"

Abduoit avatar Jul 10 '17 18:07 Abduoit