Ive been fighting with this for awhile now and have searched all over, seems like no one really ran into this issue but me lol. Im trying to setup dlib on my ubuntu vm. The face detect works good, but the identify portion…the logs tell me its looks for a file but its not there. But it is there, Ive tried renaming the photo, using differnent photots, using differnet paths…permissions are right… Please let me know if you spot something im doing wrong.
(Ive also tried ‘/local/d.jpg’ and ‘/config/d.jpg’)
Logs: ERROR (MainThread) [homeassistant.config] Invalid config for [image_processing.dlib_face_identify]: not a file for dictionary value @ data['faces']['Jack']. Got '/usr/share/hassio/homeassistant/www/d.jpg'
Thanks Keith, I tried your suggestion however I am still getting the error. I tried all the different paths as well, do you have this working? Would you mind sharing your config if so?
2018-09-16 14:34:23 ERROR (MainThread) [homeassistant.config] Invalid config for [image_processing.dlib_face_identify]: not a file for dictionary value @ data['faces']['Jack']. Got '/local/d.jpg'. (See ?, line ?). Please check the docs at https://home-assistant.io/components/image_processing.dlib_face_identify/
In the opencv component, you see at the bottom of the documentation you can add a component that will show you the camera but add a box around detected faces.
Also, to answer your question about that thing showing what dlib sees… I think there is nothing out there. I couldnt find anything. If you ever find, please let me know, as I am interested too.
Edit: If this doesnt work, this is because it is the wrong path if you are NOT using raspbian. You didnt mention anything about your setup, so I just guessed.
@argykaraz Hey sorry buddy, I didnt get a notice of your reply for some reason so I just seen it. Im positive I have the path correct, Im runnin ha docker on an ubuntu vm. I can access the pics by url…typically I just use /home/homeassistant/.homeassistant/www/example.jpg.
dont know if you are still wondering but I had this same error until I removed the “name:” under source. i never tried to figure out how to get it to work i just left it off.
Nothing. I havent found something to be so lightweight for a raspberry to handle. It makes sense by the way… This is face recognition after all. I wouldnt expect anything more. It might be a good idea to have a raspberry dedicated for this only. That would make sense.
So, for now I am not using face recognition. I used it once (that period of my post above) but then I realized I was taking resources from the rpi that I could use in more important things. I hope someday I will upgrade to a NUC.
All right. Thanks for your answer. I know there are a lot of services for face recognition. I saw a couple of guys that configured them on Raspberry pi and given they cost almost nothing it is easy to setup your own in there.
I moved my installation to a NUC, so now I have a bit more power than my Rpi3.
Then I set up the dlib face detect component, and it also seems to detect objects - now I just needs to test and see if it can recognize the pictures uploaded.