KeyError on Face_Detection
See original GitHub issueUsing v0.4 i get the following error:
[homeassistant.helpers.entity] Update for image_processing.face_counter fails
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity.py", line 221, in async_update_ha_state
await self.async_device_update()
File "/usr/src/app/homeassistant/helpers/entity.py", line 347, in async_device_update
await self.async_update()
File "/usr/src/app/homeassistant/components/image_processing/__init__.py", line 138, in async_update
await self.async_process_image(image.content)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/image_processing/deepstack_face.py", line 167, in process_image
predictions_json = response.json()["predictions"]
KeyError: 'predictions'
I’m running HA 85.1
My Config:
- platform: deepstack_face
ip_address: my_ip
port: 5000
scan_interval: 30
source:
- entity_id: camera.local_file
name: face_counter
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
KeyError: '271' when simplifying SSD based face detection ...
Hi, I am using the onnx-simplifier to process the SSD onnx model. The model is originally from pytorch. I convert it from pytorch...
Read more >python - encounter KeyError problem when doing opencv
I am currently leaning OpenCV and tryna do face recognition by myself. I watched several videos on youtube and finally write it to...
Read more >KeyError in the below attached code - Meta
I'm doing the above project in python 3. I'm getting this error - KeyError. Can anyone please explain me the solution to the...
Read more >Liveness Detection with OpenCV - PyImageSearch
You will create a liveness detector capable of spotting fake faces and performing anti-face spoofing in face recognition systems.
Read more >Face Recognition with Python, OpenCV & Deep Learning
Face Recognition with Python - in this deep learning project, ... This face_recognition API allows us to implement face detection, ... KeyError: '001'....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I can confirm it is my setup. Same error when using the code from your link… Thanks for your help!
No, never had a working version before. The object_detection is not working as well so there is something wrong. Will check the link and report back…