question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError on Face_Detection

See original GitHub issue

Using 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:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fluffykrakencommented, Jan 19, 2019

I can confirm it is my setup. Same error when using the code from your link… Thanks for your help!

1reaction
fluffykrakencommented, Jan 19, 2019

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found