Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with webcam #29

Open
Dimlight opened this issue Nov 29, 2022 · 2 comments
Open

Issues with webcam #29

Dimlight opened this issue Nov 29, 2022 · 2 comments

Comments

@Dimlight
Copy link

Hello all,

I tried to run this code with webcam. I have used the following command:

python clip_object_tracker.py --weights ./weights/best.pt --source 0 --detection-engine yolov7 --info

But it have thrown me the following error:

"TypeError: expected str, bytes or os.PathLike object, not list"

Anyone can help? thanks in advance.

@mo-traor3-ai
Copy link

Can you try it with single-quotes around 0 and let me know if it still errors? You'll find in line 326 of clip_object_tracker.py that its expecting a string value. It later checks if its a webcam source in the detect function (line 119 of clip_object_tracker.py)

Example:
python clip_object_tracker.py --weights ./weights/best.pt --source '0' --detection-engine yolov7 --info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants