-
Notifications
You must be signed in to change notification settings - Fork 17
When attempting to install and run "Face App" from video linked in description, an error is thrown, and app does not start. #80
Comments
This app is on store? I am not finding neither on apps.matrix.one nor dev-apps.matrix.one |
I just followed the steps in the video on bottom right of the page: https://creator.matrix.one/#!/develop/start |
In the first step, the app.js is very simple:
|
oh, try to use |
OK, so please either have them remove that video or have them update it! Having a "getting started" video that doesn't work does not build a Noob's confidence for sure. Now, I am not getting that error. But, I do get an different error: [ 'FACE' ] |
And those 2 lines keep repeating for ever until the app is killed. |
Sorry about that we gonna update that. Can you restart MALOS? |
Yes, tried restarting several times already. Same thing happens. |
Is MALOS same as matrix-os? The one that I start with NODE_ENV=rc node index.js |
MALOS is a another service. You can kill it with sudo pkill -9 malos_eye. |
OK, that made it better. At least, I don't see the errors streaming by anymore. However, the face detection doesn't seem to be happening. Whether or not I stand in front of the camera, it just keeps printing to the console: [ 'FACE' ] over, and over again. At this point, my app.js reads: matrix.led('red').render(); matrix.service('face').start().then(function(data){ |
Oh. OK. Do you mind trying if you are using the right orientation of the camera? |
Yes, I did. I used the PiCamera on Python to show the preview image on screen, and saw my face in the right orientation. The matrix was not impressed at all. |
Is there a way from within the Matrix app to show the preview on screen? |
hm... @krishkal unfortunately no. Let's try this okay? Can you open two terminal sessions on the pi, on one of them kill the malos_eye again with the |
OK, now it is back to the error state. Here are the outputs: Malos_eye: pi@raspberrypi: MALOS eye starting You can query specific driver info using port 22012. Matrix_os: [] (face-demo) service> { engine: 'detection', type: 'face' } (face-demo) matrix.service:: face : detection > face (face-demo) APP>SERVICE> { eventType: 'container-ready', app: 'face-demo', pid: 2986 } [] |
Hey @krishkal, sorry for the inconvenience here, please make sure to do the appropriate upgrades to your system first:
The start your application again. |
No need to apologize @brianofrokk3r, glad you are persisting with this. I did exactly as you suggested. The first command did update a bunch of stuff, but all the matrix-os stuff pretty much said I was already up to date (not surprising, since I just installed it all 2 days ago). Rebooted, fired it up regular, got the same SERVICE ERROR screen on MOS. Fired up another terminal, pkilled malos_eye, and started it again manually to monitor output. Again the same "Could not read frame" errors reported by malos_eye. Same SERVICE ERROR on matrix_os as well. :( |
Don't know if this is helpful, but I did try to make sure that the camera was operational using PiCamera on Python. If I reboot, and try PiCamera first, the camera is shown on screen fine. However, once I run the Matrix face detection and then try the PiCamera, it is unable to read it with "Failed to enable connection: Out of resources" error. |
@krishkal this seems like it may have something to do with the camera being in use or reserved for another process. MALOS_eye might not be detecting this, and may be failing as a result. I can check with the team to confirm this. In the meantime please ensure all other camera services are off to validate these findings. |
@arhuaco malos_eye is returning a failure message when it's attempting to read the stream. The frames come through when using PiCamera, so it's not a "camera seating" issue.
|
@brianofrokk3r I made sure to bring up MOS immediately after reboot, so I don't think anything else is getting in. I also looked at ps -aux to see if anything looks like it may hog the camera. I don't see anything. Here is the output, in case you can spot anything: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND |
From what I read the error "VIDIOC_STREAMON: Invalid argument" can happen when you kill a program that is accessing the camera and then start it again (or start another program that uses it). (v2l stuff). So the message doesn't imply that the camera isn't working. @krishkal , what distro are you running? Is it easy for you to try a headless boot (no X)? |
Running stock raspbian. Let me see if I can figure out a headless boot method for it. |
OK stopped X-server by running sudo systemctl set-default multi-user.target, and rebooting. SSH into the box, fire up matrix-os. Bring up face-demo from CLI. No joy. Same exact result. |
BTW, Top shows 98% idle, with ~700Mb out of 1GB free. |
I meant to say stock Raspbian/Jessie. |
I am using the Raspberry Pi Camera V2, in case that makes a diff. |
So, have you guys given up on this? Does the face detection work with ANY configuration? If so, what configuration? |
In a meeting. I can help soon. We know it's working, we have to find out why it isn't working for you and I can help debug. For instance, sending custom programs that give us more output. Let's start checking if the basic detection is working for you by using the basic examples: https://github.com/matrix-io/malos-eye |
I'll write a small program and send it to you. I need to setup my env, doing it. It will just open the camera and see if it works. Let's start from there. |
Hey, getting somewhere. The malos-eye program basically worked. It detected my face everytime, and either said "MALE-ANGRY" or "MALE-SAD", which were both probably correct emotions I am feeling because I can't get this thing to work ;) Also, the Palm/Fist detector also seemed to detect OK. |
@krishkal: this is good news, thanks for testing. Can you check if you can still get things working after a few restarts of MALOS-eye? (just to see if things work smoothly at the v2l layer). That is: restart, check, restart, check. I think that 3 times will do. If it works for you all the time we will need to check things from the Matrix OS side. CC @eighteyes . Maybe MALOS-eye is getting an invalid config? |
In the example query_demographics.js things can be a bit confusing because we are printing the raw proto and the actual emotion (or field meaning) depends on the "tag" field of the FacialRecognition message. I'll add a ticket so that we (probably me) improve this demo.
|
OK pkilled and restarted malos_eye 3 times, and checked query_demographics every time, and it produces an output when I stand in front of it, and none when I am not. So, I think we can call this a success. |
Hi @krishkal I just installed the face app and was able to do a recognition. We're trying to narrow down some causes. Can you look in your
Please paste that here. Thanks for your patience. |
I started Matrix OS, and this time it said Upgrade Ready, 0.12.0 now available. After upgrading, it restarted. Then I tried the app again, and this time it worked! Maybe the upgrade did the trick? |
Uh, oh. For a good measure, I rebooted the Pi, and went back to start Matrix OS again. Now, Matrix OS simply won't start. Output is: Environment Selected: rc |
Guys, any ideas here? I am dead in the water... |
pi@raspberrypi: |
@krishkal do a latest pull from |
@brianofrokk3r Yes, this seems to be fixed now. Also, faceTest seems to be working now as well. |
Now that everything seems to be working as it should :), trying to learn a bit more about this... Is the ComputerVision "service" running on the R-Pi processor, or on the Matrix board? I know the sensor processing runs on the Matrix. But, trying to figure out what, if any, of the following runs on the Matrix, as opposed to the main R-Pi:
BTW, if there is some documentation hat explains all this that I have missed, please just point that out! |
Sorry for the long delay @krishkal 😔
All docs are available here: https://matrix-io.github.io/matrix-documentation/ |
Thanks @gordinh. "The MOS running in the RPi can call services and sensors on the MATRIX board". So, by "services" I assume things like face detection. Is the source code for these services (that run on the MATRIX board) open? If so, where can I see it? I am trying to figure out what those look like, and how I can go about extending or changing them to suit some projects I have in mind. |
Well for services you can look in the computer vision section on the link I had sent before. There you will see examples and the output. You can also run the MOS with |
Sorry, @gordinh, I am not seeing what you are seeing. If I go to the Code tab above, and go to lib/service I see a bunch of Javascript files. None of these are the source code for the services such as the Computer Vision services (face, palm, fist, etc.) which presumably run inside the matrix board. Where is the disconnect? Am I not understanding something right? |
Sorry i think i didn't understanded your question. My bad. You can look for matrix-gesture in our repos, there are the sdks https://github.com/matrix-io/matrix-gesture-cpp-sdk for example |
hello, a i'm new at matrix-os. Has anyone add a gpio output to this Face-demo? |
When attempting to install and run "Face App" from from this video, an error is thrown, and app does not start.
Config
The text was updated successfully, but these errors were encountered: