mmcc-xx / gesturesensor Goto Github PK
View Code? Open in Web Editor NEWAn application for detecting faces and gestures and publishing the results via MQTT
An application for detecting faces and gestures and publishing the results via MQTT
Mosquitto in Home Assistant doesn't allow anonymous logins any more. Any plans to update for authentication?
I've managed to build the image and run the container.
Everything without errors apart a msg from TensorFlow
2024-02-13 17:58:25.752759: 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: /usr/local/lib/python3.8/site-packages/cv2/../../lib64:
2024-02-13 17:58:25.753679: 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.
2024-02-13 17:58:25.984935: 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
2024-02-13 17:58:29.449113: 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: /usr/local/lib/python3.8/site-packages/cv2/../../lib64:
2024-02-13 17:58:29.449489: 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: /usr/local/lib/python3.8/site-packages/cv2/../../lib64:
2024-02-13 17:58:29.449530: 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.
The problem appears when you go in front of the camera. Then the app is crashing with the following exception
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2024-02-13 17:58:32,771 - INFO - Connected to MQTT broker
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2024-02-13 18:01:01,967 - DEBUG - Starting new HTTP connection (1): 192.168.70.240:3000
2024-02-13 18:01:01,989 - DEBUG - http://192.168.70.240:3000 "GET /api/recognize?url=http://192.168.70.40:5000/api/frontdoor_camera2/latest.jpg&attempts=1&camera=frontdoor_camera2 HTTP/1.1" 403 136
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 971, in json return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/json/init.py", line 357, in loads return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run()
File "/usr/local/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs)
File "/code/gesturedetection.py", line 79, in lookforhands matches = getmatches(cameraname)
File "/code/gesturedetection.py", line 39, in getmatches output = response.json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I would appreciate very much some help to solve it and make it work.
I was trying to build the gesturesensor with docker compose.
Getting the following error:
`Error response from daemon: pull access denied for gesturesensor, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
It seems that the container has been removed. Would you please upload again so I can use it for a small project within HA ??
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.