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

can't open camera by index #8

Open
Leonardoperrella opened this issue Oct 13, 2022 · 3 comments
Open

can't open camera by index #8

Leonardoperrella opened this issue Oct 13, 2022 · 3 comments

Comments

@Leonardoperrella
Copy link

2022-10-13 11:22:52.632939: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-10-13 11:22:52.831699: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/perrella/vscodecamera/MS-Teams-background-changer/venv/lib/python3.10/site-packages/cv2/../../lib64:/opt/oracle/instantclient_21_4
2022-10-13 11:22:52.831731: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2022-10-13 11:22:52.869068: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2022-10-13 11:22:53.715209: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/perrella/vscodecamera/MS-Teams-background-changer/venv/lib/python3.10/site-packages/cv2/../../lib64:/opt/oracle/instantclient_21_4
2022-10-13 11:22:53.715306: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/perrella/vscodecamera/MS-Teams-background-changer/venv/lib/python3.10/site-packages/cv2/../../lib64:/opt/oracle/instantclient_21_4
2022-10-13 11:22:53.715317: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
set format result (0 is good):0
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[ WARN:0@2.500] global /io/opencv/modules/videoio/src/cap_v4l.cpp (889) open VIDEOIO(V4L2:/dev/video2): can't open camera by index

@Leonardoperrella
Copy link
Author

After running main.py

@Aexbrayat
Copy link

hi same error for me did you find a solution ? thx

@prabhakar-sivanesan
Copy link
Owner

Hi,

You might have to check your input camera index and change this data in config file.
Use this v4l2-ctl --list-devices command to know your input camera device id and change accordingly.

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

3 participants