emotime
emotime copied to clipboard
Cannot get image from the camera
I have downloaded you code (project emotime) and i face some problems.
Until now the project was working fine. When i ran the program, the camera opened, i could see the image and the emotions printed on the camera's window.
Now, i compile the program correctrly and when i try to run it, the camera opens (because i can see the lignt), the window opens but i get no image (blank window).
Can someone try this code and tell me what is wrong now, please?
I have also tried the experimental version, with the same results.
Well, if the windows open and no image is shown it means no face is detected. The gui is quite minimal and loads the image after a successful image processing which require a successful face detection, this behavior seems legit. The face detector used in the project is the opencv one..
However i can give a try. Are you using the master code and the models in https://github.com/luca-m/emotime/releases/tag/v1.2-experimental right?
yes, these the ones i use. I have also ran your code on beagleboard. I got an assertion erron on "facedetect.cpp", on line 42. After tagging this line as a comment, the code run right. Now i get an image. Has this happened before? Should i leave this line as a comment?
You were right. There was no face detection because of the sunlight. But when i compile the program in eclipse and on beagleboard XM ( with arm processor), the problem with assertion that i mentioned before still exists. Can you please tell me what could be wrong with this face_config_file error?
42: assert(!cascade_f.empty());
means the face cascade classifier must be loaded correctly. Few lines abole il cascade_f is loaded from the specified files. maybe the file has something wrong or does not exists..
However I've trained a some new models that works better with the current master branch. Here . I'll add the link in the readme soon.