Comments (14)
Hello @GiTackers
Quite unexpected issue.
First it looks l that docker in the camera doesn't have the application image.
Please check with
docker --tlsverify --host tcp://$DEVICE_IP:$DOCKER_PORT images
If the image acap4-pose-estimator-python
was correctly uploaded in the camera
from acap-computer-vision-sdk-examples.
OK, the problem was that there was no more space left on the device: solved with a larger sd card.
But, now, another question.
- When we connect to http://$DEVICE_IP:5000, log in the terminal shows always key points array and their confidences, even if there is no one in the scene.
- However, even when there is a person in the scene, no keypoints are drawn in the video stream.
Any idea about it?
Thank you very much in advance.
from acap-computer-vision-sdk-examples.
- That is because of how the model is. It will always print a vector as output with location and confidence of each keypoint. If there are no people in the frame, the confidence will be just close to zero.
- Strange. What is the confidence of the points in the output? Is your firmware update to the latest version?
from acap-computer-vision-sdk-examples.
Good morning and thank you for your response!
Yes, the firmware is the latest one (11.4.63), and keypoints/confidences are the same without or with person in the scene.
Without person it prints:
Key points: [[0.29087663 0.4014917 ]
pose-estimator-with-flask-pose-estimator-1 | [0.5407847 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.5407847 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.3113609 0.36052316]
pose-estimator-with-flask-pose-estimator-1 | [0.52030045 0.31545776]
pose-estimator-with-flask-pose-estimator-1 | [0.52030045 0.48342878]
pose-estimator-with-flask-pose-estimator-1 | [0.52030045 0.48342878]
pose-estimator-with-flask-pose-estimator-1 | [0.4793319 0.5858501 ]
pose-estimator-with-flask-pose-estimator-1 | [0.45884764 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.4793319 0.5858501 ]
pose-estimator-with-flask-pose-estimator-1 | [0.45884764 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.45884764 0.5858501 ]
pose-estimator-with-flask-pose-estimator-1 | [0.52030045 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.64320606 0.5243973 ]
pose-estimator-with-flask-pose-estimator-1 | [0.6677872 0.50391304]
pose-estimator-with-flask-pose-estimator-1 | [0.93817955 0.61043125]
pose-estimator-with-flask-pose-estimator-1 | [0.89311415 0.50391304]]
pose-estimator-with-flask-pose-estimator-1 | Confidences: [0.07374337 0.01638742 0.01638742 0.07374337 0.04096854 0.02048427
pose-estimator-with-flask-pose-estimator-1 | 0.01638742 0.01638742 0.01229056 0.02048427 0.02048427 0.09422764
pose-estimator-with-flask-pose-estimator-1 | 0.07374337 0.05735596 0.05735596 0.07374337 0.12290562]
With person it prints:
Key points: [[0.29087663 0.4014917 ]
pose-estimator-with-flask-pose-estimator-1 | [0.5407847 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.5407847 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.3113609 0.36052316]
pose-estimator-with-flask-pose-estimator-1 | [0.52030045 0.31545776]
pose-estimator-with-flask-pose-estimator-1 | [0.52030045 0.48342878]
pose-estimator-with-flask-pose-estimator-1 | [0.52030045 0.48342878]
pose-estimator-with-flask-pose-estimator-1 | [0.4793319 0.5858501 ]
pose-estimator-with-flask-pose-estimator-1 | [0.45884764 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.4793319 0.5858501 ]
pose-estimator-with-flask-pose-estimator-1 | [0.45884764 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.45884764 0.5858501 ]
pose-estimator-with-flask-pose-estimator-1 | [0.52030045 0.4629445 ]
pose-estimator-with-flask-pose-estimator-1 | [0.64320606 0.5243973 ]
pose-estimator-with-flask-pose-estimator-1 | [0.6677872 0.50391304]
pose-estimator-with-flask-pose-estimator-1 | [0.93817955 0.61043125]
pose-estimator-with-flask-pose-estimator-1 | [0.89311415 0.50391304]]
pose-estimator-with-flask-pose-estimator-1 | Confidences: [0.07374337 0.01638742 0.01638742 0.07374337 0.04096854 0.02048427
pose-estimator-with-flask-pose-estimator-1 | 0.01638742 0.01638742 0.01229056 0.02048427 0.02048427 0.09422764
pose-estimator-with-flask-pose-estimator-1 | 0.07374337 0.05735596 0.05735596 0.07374337 0.12290562]
So, the same output.
Any idea about it?
Thank you very much in advance.
from acap-computer-vision-sdk-examples.
Hello everyone.
We even reset the camera and reinstall all over again but the same problem happens.
Any idea about it?
Thank you very much in advance.
from acap-computer-vision-sdk-examples.
Hi @GiTackers
We are going to look into this.
Are you using the example as it is, or did you make changes?
When you connect to the flask video stream, do you see the video working properly?
from acap-computer-vision-sdk-examples.
Hello Corallo and thank you for your response.
Yes, we are using example as it is, without changes: we followed this https://github.com/AxisCommunications/acap-computer-vision-sdk-examples/tree/main/pose-estimator-with-flask.
Only one thing. Even if in the live stream resolution (width x height) is 2592x1944, in the flask video stream it appears as part of that full image, it shows just the central region: that is, full height but width reduced (equally to both right and left). We don't know if this behaviour is intentional.
Thank you very much in advance.
from acap-computer-vision-sdk-examples.
@GiTackers
We reproduced the issue, it looks like it is a firmware problem, that occours in 11.3 or after.
Unfrotunatly it will take some time from our side to investigate and solve the issue.
In the mean time, as a work around you can try with an older firmware that doesn't have this issue:
http://ftp.axis.com/pub_soft/MPQT/P1467-LE/11_0_89/
with 11.0 you should not have this problem.
If latency is not an issue and you need to use the latest firmware, another workaround is to switch to CPU for running the inference (change configuration file on the docker compose up command).
Regarding the resolution, the model takes in in put a squared aspect ratio. To avoid distortion in the image we are cutting only the central part of it. Another option would be to pad the height and obtain the same result without loosing the view area.
from acap-computer-vision-sdk-examples.
Hello Corallo and thank you for your response.
We installed that firmware (11.0.89), but it's incompatible with Docker ACAP.
Following the guide, at the start, giving the command
ssh root@$DEVICE_IP 'command -v containerd >/dev/null 2>&1 && echo Compatible with Docker ACAP || echo Not compatible with Docker ACAP'
returns "Not compatible with Docker ACAP".
In fact, in the "App" section of the camera, flagging the "Docker Daemon" returns "Unable to start".
Thank you very much in advance.
from acap-computer-vision-sdk-examples.
This is unfortunate...
I am afraid there's only 11.2 that has both docker daemon and doesn't have this issue with the model.
11.2 doesn't seem to be public anymore, you might want to try asking for it on a ticket and see if they can provide it to you.
In the meantime, we are investigating the issue to see if we can solve it for a future firmware release.
from acap-computer-vision-sdk-examples.
Hello Corallo,
just as information: after ticket, they send us P1468-LE_11.2.68 firmware. Using this bin, it works.
Thank you very much.
from acap-computer-vision-sdk-examples.
Glad that worked, we'll keep this issue open until we solve it for future firmware
from acap-computer-vision-sdk-examples.
This issue should be solved in the next firmware release 11.6
from acap-computer-vision-sdk-examples.
The issue is fixed in 11.6
from acap-computer-vision-sdk-examples.
Related Issues (20)
- Frequently asked questions
- Error with docker-compose HOT 2
- Open a settings page from camera apps interface (acap3 like index.html) HOT 1
- run error for object-detector-python with artpec8 camera HOT 1
- Build external library and integrate with ACAP computer vision HOT 2
- Where is the container of inference-server? HOT 1
- static-image.yml not up to date
- "RUN apt-get" in Docker file gives error: "unknown instruction APT-GET" HOT 3
- Deploying YOLOv7 / any type of YOLO model (v5,v4,etc) HOT 4
- Deploying YOLOv8 to ARTPEC-8 cameras HOT 5
- Pose estimator with flask example: Unable to get key points on live stream to detect the pose. HOT 1
- acap_dl-models_1 | exec /bin/sh: exec format error pose-estimator_1 | exec /usr/bin/python3: exec format error HOT 2
- Error "connection reset by peer" after docker load HOT 15
- Open camera feed from from object-detector-python example HOT 5
- Unable to load custom model on firmware 11 HOT 14
- Issue while uploading docker images with no SD card support HOT 4
- latest opencv-qr-decoder-python can't work on Q3538 os 11.9.60 HOT 3
- Object detection sample mounting error: Are you trying to mount a directory onto a file (or vice-versa)? HOT 12
- Issue obtaining images from camera source using a python script HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acap-computer-vision-sdk-examples.