Hi, I just came across this post that is relevant to the same problem. I just started working on this Beaglebone AI two days ago. I got the latest os image and updates and upgrades everything. I tried classification.tidl.cpp and I got the same last message that Jon Morss got. And your latest message was about /dev/video0. On my board I got /dev/video0, /dev/video1 and it does recognize the camera. Do you mean that I can fix it with the change to the default dev for the camera ? And where can I change that? I worked with OpenCV and this VideoCapture::open() failed message seems to indicate a wrong /dev/video index? Thank you for your support, Don
On Tuesday, March 24, 2020 at 8:10:32 PM UTC-4, RobertCNelson wrote: > > On Tue, Mar 24, 2020 at 7:07 PM Robert Nelson <[email protected] > <javascript:>> wrote: > > > > On Tue, Mar 24, 2020 at 6:57 PM Jon Morss <[email protected] > <javascript:>> wrote: > > > > > > Hey Robert, > > > > > > Cool. Thanks. > > > > > > However, I now end up with a different error: > > > > > > NOTE: I did an upgrade after the update. Also, the update_kernel > bumped my kernel to r131 from r130. > > > info: you are running: [4.14.108-ti-r130], latest is: > [4.14.108-ti-r131] updating... > > > > > > The result of removing and installing the cmem modules: > > > debian@beaglebone:~$ sudo apt remove ti-cmem-4.15.00.02-modules-`uname > -r` --purge > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > Package 'ti-cmem-4.15.00.02-modules-4.14.108-ti-r131' is not > installed, so not removed > > > The following packages were automatically installed and are no longer > required: > > > bb-beaglebone-io-installer bb-johnny-five-installer > > > ti-c6000-cgt-v8.2.x-installer > > > Use 'sudo apt autoremove' to remove them. > > > 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. > > > > > > debian@beaglebone:~$ sudo apt install > ti-cmem-4.16.00.00-modules-`uname -r` > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > ti-cmem-4.16.00.00-modules-4.14.108-ti-r131 is already the newest > version (1stretch). > > > The following packages were automatically installed and are no longer > required: > > > bb-beaglebone-io-installer bb-johnny-five-installer > > > ti-c6000-cgt-v8.2.x-installer > > > Use 'sudo apt autoremove' to remove them. > > > 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. > > > > > > The stack switched to ti-c6000-cgt-v8.3 > > > > > Error from TIDL classification example: > > > > > > Started /var/lib/cloud9/: classification.tidl.cpp > > > File path: /var/lib/cloud9/BeagleBone/AI/tidl > > > File: /var/lib/cloud9/BeagleBone/AI/tidl/classification.tidl.cpp > > > Arguments: > > > File name: classification.tidl.cpp > > > File extension: cpp > > > File base name: classification.tidl > > > Packages: ~.c9/packages > > > Project path: /var/lib/cloud9/ > > > Project name: projectname > > > Hostname: localhost > > > Hostname path: > https://undefined/BeagleBone/AI/tidl/classification.tidl.cpp > > > URL: http://localhost > > > Port: 8080 > > > IP: 0.0.0.0 > > > Command: BeagleBone/AI/tidl/classification.tidl.cpp > > > Python: python3 > > > Python path: > /usr/lib/python3.7/dist-packages:/usr/local/lib/python3.7/dist-packages > > > /var/lib/cloud9/common/Makefile:28: > MODEL=BeagleBoard.org_BeagleBone_AI,TARGET=classification.tidl,COMMON=/var/lib/cloud9/common > > > > > /var/lib/cloud9/common/Makefile:147: > GEN_DIR=/tmp/cloud9-examples,CHIP=am57xx,PROC=tidl,PRUN=,PRU_DIR=,EXE=.so > > > CXX classification.tidl.cpp > > > LD /tmp/cloud9-examples/classification.tidl.o > > > ti-mct-heap-check -c > > > sudo mjpg_streamer -i "input_opencv.so -r 640x480 --filter ./ > classification.tidl.so" -o "output_http.so -p 8080 -w > /usr/share/mjpg-streamer/www" > > > [sudo] password for debian: > > > MJPG Streamer Version.: 2.0 > > > i: device........... : default > > > i: Desired Resolution: 640 x 480 > > > Unable to stop the stream: Invalid argument > > > i: VideoCapture::open() failed > > > /var/lib/cloud9/common/Makefile:169: recipe for target 'start' failed > > > make: *** [start] Error 1 > > > rm /tmp/cloud9-examples/classification.tidl.o > > Oh and with r131, there's a new "/dev/video0" device now available, > the guys at TI have a got a way to utilze that internal processor to > do things even faster.. > > Thus your old usb webcam is no londer /dev/video0... > > Regards, > > > -- > Robert Nelson > https://rcn-ee.com/ > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/83858c7e-7706-4fcb-b65c-b18f815f089b%40googlegroups.com.
