emotime icon indicating copy to clipboard operation
emotime copied to clipboard

Cannot get image from the camera

Open maria364 opened this issue 10 years ago • 6 comments

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.

maria364 avatar Sep 02 '15 19:09 maria364

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

luca-m avatar Sep 02 '15 19:09 luca-m

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?

luca-m avatar Sep 02 '15 19:09 luca-m

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?

maria364 avatar Sep 02 '15 20:09 maria364

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?

maria364 avatar Sep 03 '15 11:09 maria364

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

luca-m avatar Sep 03 '15 22:09 luca-m

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.

luca-m avatar Sep 03 '15 22:09 luca-m