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

Couldn't connect to webcam. #47

Closed
bmabir17 opened this issue Aug 16, 2018 · 2 comments
Closed

Couldn't connect to webcam. #47

bmabir17 opened this issue Aug 16, 2018 · 2 comments

Comments

@bmabir17
Copy link

I was able to install and run the webserver. But After i set the line and click "start count" button, the message "intializing neural network..." show in the screen and get stuck.
And i get the following error on the terminal
Couldn't connect to webcam. : No such file or directory darknet: ./src/utils.c:256: error: Assertion 0' failed.
video file: -address
Using PC to test the system. OS: ubuntu 16.04 GPU: GTX1060 CUDA 9
The darknet was already installed, so i did not install it again. Is the error happening because of that?

@florianporada
Copy link
Member

Hi @bmabir17,

we are not using the the standard darknet.
Have a look at this block https://github.com/moovel/lab-opendatacam/blob/4fe02e51b1adf728320bb7393ebbdd1b158f8bdd/install/install.sh#L131
or here:
https://github.com/moovel/lab-opendatacam/blob/master/README.md#install-darknet-net

It is also important that you have specified the absolute path to your darknet-net files in the config.json (see: https://github.com/moovel/lab-opendatacam/blob/master/config.json)

let me know if this solves the problem 🙂

@bmabir17
Copy link
Author

Thank you @florianporada , i have solved the issue by using the given darknet repo. Btw, can i use the video stream of an ip camera? Is there a configuration for that? Or do i have to change it in cv.videostream() ?

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