Git Product home page Git Product logo

Comments (7)

blueOkiris avatar blueOkiris commented on June 9, 2024

Have you tried changing the camera?
Do ls /dev/ | grep -i video and see if you have anything other than /dev/video0 and /dev/video1.

If so, try running it with -c ## where ## corresponds to /dev/video##

from bgrm.

blueOkiris avatar blueOkiris commented on June 9, 2024

It's likely the same as this issue, which remains unsolved unfortunately

from bgrm.

zeirew avatar zeirew commented on June 9, 2024

Have you tried changing the camera? Do ls /dev/ | grep -i video and see if you have anything other than /dev/video0 and /dev/video1.

If so, try running it with -c ## where ## corresponds to /dev/video##

I currently only have one camera, so not yet. Here's what I get when for the contents of /dev/video*:

crw-rw----+ 1 root video 81, 0 Dec  9 20:35 /dev/video0
crw-rw----+ 1 root video 81, 1 Dec  9 20:35 /dev/video1
-rw-r--r--  1 root root      0 Dec  9 20:52 /dev/video10

And when I try to run with -c 1 or -c 10, I get this error:

[ WARN:0] global /tmp/pip-req-build-v1rk7obu/opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video10): can't open camera by index
Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/Desktop/Misc./Software/bgrm/bgrm/__main__.py", line 4, in <module>
    main()
  File "/home/Desktop/Misc./Software/bgrm/bgrm/bgrm.py", line 27, in main
    with Cam(settings) as cam, open('/dev/video10', 'wb') as virtCam:
  File "/home/Desktop/Misc./Software/bgrm/bgrm/cam.py", line 22, in __init__
    _height, _width, self.channels = baseFrame.shape
AttributeError: 'NoneType' object has no attribute 'shape'
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.


from bgrm.

zeirew avatar zeirew commented on June 9, 2024

It's likely the same as this issue, which remains unsolved unfortunately

Yeah, I guess I'm even getting the same secondary error as they are.

from bgrm.

blueOkiris avatar blueOkiris commented on June 9, 2024

What is your kernel? Do uname -a

from bgrm.

blueOkiris avatar blueOkiris commented on June 9, 2024

I realize it's been a while, but I may have found a solution in the aforementioned issue after running into the same issue myself after switching to GNOME and Fedora

from bgrm.

blueOkiris avatar blueOkiris commented on June 9, 2024

Closing bc old

from bgrm.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.