I am not sure and would have to look at it a bit closer. Perhaps checking whether or not there is something attached to the video device or show a list of possible video devices and prompt the user to select one. I suppose they would need to know which video device is the active one though.
Cheers, Jon On Friday, March 27, 2020 at 4:07:58 AM UTC-7, Jason Kridner wrote: > > Any thoughts on making it more generic? Select the highest index? > > On Thu, Mar 26, 2020 at 10:22 PM jonnymo <[email protected] <javascript:>> > wrote: > >> In the GitHub issue that was filed, I noted the following which seems to >> get the camera active again: >> >> >> >> Setting '-d /dev/video1' in the common Makefile seemed to do the trick. I >> now have video from the camera in the TIDL example. >> >> This is what I changed at line 170 in the Makefile at: >> /var/lib/cloud9/common$ >> >> else ifeq ($(PROC),tidl) >> ti-mct-heap-check -c >> sudo mjpg_streamer -i "input_opencv.so -d /dev/video1 -r 640x480 >> --filter ./$(TARGET)$(EXE)" -o "output_http.so -p 8080 -w >> /usr/share/mjpg-streamer/www" >> else >> >> >> >> On Thu, Mar 26, 2020 at 9:20 AM Robert Nelson <[email protected] >> <javascript:>> wrote: >> >>> On Thu, Mar 26, 2020 at 10:27 AM <[email protected] <javascript:>> >>> wrote: >>> > >>> > 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? >>> >>> Please submit a bug to: >>> >>> https://github.com/beagleboard/cloud9-examples >>> >>> the classification demo should allow you to specify a video offset.. >>> >>> 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] <javascript:>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/beagleboard/CAOCHtYjyA8yTBWKs-%3DFUoE4kh20XgiQNpheJLfnzHG7_ouqVNA%40mail.gmail.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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/beagleboard/CAG99bko9Nkz-Jb%2BnBYd-RvhBzGhNHJMkv1%2B7bVcn6hLdaqDcTA%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/beagleboard/CAG99bko9Nkz-Jb%2BnBYd-RvhBzGhNHJMkv1%2B7bVcn6hLdaqDcTA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > https://beagleboard.org/about - a 501c3 non-profit educating around open > hardware computing > -- 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/285fd1d7-e1bc-4a68-855c-a649ca5a4ac2%40googlegroups.com.
