andy-yun / pytorch-0.4-yolov3

Yet Another Implimentation of Pytroch 0.4.1 and YoloV3 on python3
MIT License
279 stars 72 forks source link

problem with cam detection #34

Closed amine290 closed 5 years ago

amine290 commented 5 years ago

when i try cam detection i get "Unable to open camera" i tried to dig into the code and found cap = cv2.VideoCapture(1) if not cap.isOpened(): print("Unable to open camera") exit(-1) i dont understand where the problem is

one more thing i want to train your implimentation to detect melanoma (small object) i have a good dataset but i am a beginner and i need step by step tutorial to train this implimentation

andy-yun commented 5 years ago

Change the camera number to 0. Such as. cap = cv2.VideoCapture(0) because I have two usb cam I use the ‘1’. In marvis or other yolov2 or yolov3 repository, you can easily found the tutorial.

Sent with GitHawk