I am running the example notebook as part of the course and find that I am having issues with getting the camera to work properly.
The weird thing is that the first time I tried it, the video stream was active and I was able to save images for my dataset using the widgets. However, I got an issue saying “camera could not initialize” when I tried to train my dataset.
Since then I’ve tried to restart the kernel and ensure the IMX219 camer I’m using is not active in any other kernel. I have tried using the camera in the hello_camera notebook and it works fine and displays a live videofeed, however, in this course it fails to do so.
Sometimes the error pops up right in the second cell in the image below and sometimes the camera initializes just fine, but fails to initialize later on when it is being used for the livestream.
Additionally, it seems the notebook is failing to find the CSI and my USB cameras in the first cell.
This line of code: !ls -ltrh /dev/video*
gives the output: ls: cannot access ‘/dev/video*’: No such file or directory
Could this be causing the entire problem? If so should I change ltrh to l4trh or is there some other change I should make?
Please do let me know what I can change here and thank you in advance.