prabhakar-sivanesan / MS-Teams-background-changer

Utility application to add background blur and custom background image to MS teams on Linux
https://prabhakar-sivanesan.github.io/me/
54 stars 5 forks source link

can't open camera by index #8

Open Leonardoperrella opened 2 years ago

Leonardoperrella commented 2 years ago

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 commented 2 years ago

After running main.py

Aexbrayat commented 1 year ago

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

prabhakar-sivanesan commented 1 year ago

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.