Giter Club home page Giter Club logo

axis-camera-computervision's People

Contributors

corallo avatar stephanschulz avatar

Watchers

 avatar  avatar

axis-camera-computervision's Issues

check docker

I am trying to follow this guide to check the cameras docker compatibility.
https://github.com/AxisCommunications/docker-acap#compatibility
ssh [email protected] 'command -v containerd >/dev/null 2>&1 && echo Compatible with Docker ACAP || echo Not compatible with Docker ACAP'

Using ssh to get in to the M3115-LVE camera produces this error:

ssh: connect to host 198.168.0.10 port 22: Connection refused

Screen Shot 2022-04-13 at 7 58 24 PM

Is it possible that ssh needs to be enabled somewhere first?
https://help.axis.com/axis-os#device-access

I am able to access the camera via the web interface with the above mentioned url.

camera latency

The M3115-LVE has a max resolution of 1920x1080.

When opening a stream in the browser or through one of my C++ tester apps I see a latency of about 1 second.
http://198.168.0.10/axis-cgi/mjpg/video.cgi?resolution=1920x1080&fps=24
Even at a reduced resolution of 640x480 latency is still longer than that of a normal USB web cam.

What are the best methods to reduce the latency?
Screen Shot 2022-04-13 at 8 18 41 PM

Screen Shot 2022-04-13 at 6 54 11 PM

Camera and Computer are connected via a wried connection.

‘SimpleBlobDetector’ has not been declared

Now that i can run the motion detection example i am experimenting with blob detection.
But following the C++ example here produces the below error message.
I am unsure how to test which opencv modules ACAP had installed.

Last login: Wed Apr 20 09:22:51 on ttys001
You have mail.
stephanschulz@Komputer ~ % cd /Users/stephanschulz/Documents/GitHub/axis-camera-computervision/acap-native-sdk-opencv-blob/using-opencv
stephanschulz@Komputer using-opencv % docker build --tag opencv_detector .
[+] Building 2.3s (16/16) FINISHED                                                                                                                 
 => [internal] load build definition from Dockerfile                                                                                          0.0s
 => => transferring dockerfile: 120B                                                                                                          0.0s
 => [internal] load .dockerignore                                                                                                             0.0s
 => => transferring context: 2B                                                                                                               0.0s
 => [internal] load metadata for docker.io/axisecp/acap-native-sdk:1.1-armv7hf-ubuntu20.04                                                    0.3s
 => [ 1/12] FROM docker.io/axisecp/acap-native-sdk:1.1-armv7hf-ubuntu20.04@sha256:0edbfa86b7c8ee82a877d57716898756f3e525f907ee6d964ca3ca45ce  0.0s
 => [internal] load build context                                                                                                             0.0s
 => => transferring context: 5.89kB                                                                                                           0.0s
 => CACHED [ 2/12] COPY sources.list /etc/apt                                                                                                 0.0s
 => CACHED [ 3/12] RUN if [ "armv7hf" = armv7hf ]; then         apt-get update &&         dpkg --add-architecture armhf &&         apt-get u  0.0s
 => CACHED [ 4/12] RUN apt-get update && apt-get install -y -f --no-install-recommends     cmake     curl     pkg-config &&     update-ca-ce  0.0s
 => CACHED [ 5/12] RUN if [ "armv7hf" = armv7hf ]; then         export ARCHDIR=arm-linux-gnueabihf &&         export STRIP=arm-linux-gnueabi  0.0s
 => CACHED [ 6/12] WORKDIR /workspace                                                                                                         0.0s
 => CACHED [ 7/12] RUN curl -fsSL https://github.com/opencv/opencv/archive/4.5.1.tar.gz | tar -xz                                             0.0s
 => CACHED [ 8/12] WORKDIR /workspace/opencv-4.5.1/build                                                                                      0.0s
 => CACHED [ 9/12] RUN COMMON_CMAKE_FLAGS="-D CMAKE_BUILD_TYPE=RELEASE         -D CMAKE_INSTALL_PREFIX=/target-root/usr         -D WITH_OPEN  0.0s
 => [10/12] COPY app/ /opt/app                                                                                                                0.0s
 => [11/12] WORKDIR /opt/app                                                                                                                  0.0s
 => ERROR [12/12] RUN . /opt/axis/acapsdk/environment-setup* && acap-build .                                                                  1.8s
------                                                                                                                                             
 > [12/12] RUN . /opt/axis/acapsdk/environment-setup* && acap-build .:                                                                             
#16 0.320 make                                                                                                                                     
#16 0.322 mkdir -p ./lib                                                                                                                           
#16 0.326 cp /target-root/usr/lib/libopencv_core.so.4.5 /target-root/usr/lib/libopencv_core.so.4.5.1 /target-root/usr/lib/libopencv_core.so ./lib  
#16 0.334 cp /target-root/usr/lib/libopencv_imgproc.so.4.5.1 /target-root/usr/lib/libopencv_imgproc.so /target-root/usr/lib/libopencv_imgproc.so.4.5 ./lib
#16 0.342 cp /target-root/usr/lib/libopencv_video.so /target-root/usr/lib/libopencv_video.so.4.5 /target-root/usr/lib/libopencv_video.so.4.5.1 ./lib
#16 0.349 arm-linux-gnueabihf-g++  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/axis/acapsdk/sysroots/armv7hf -L/opt/axis/acapsdk/sysroots/armv7hf/usr/lib example.cpp  -O2 -pipe -g -feliminate-unused-debug-types  -Os -pipe -std=c++11 -I/opt/axis/acapsdk/sysroots/armv7hf/usr/include/vdo -I/opt/axis/acapsdk/sysroots/armv7hf/usr/include/gio-unix-2.0 -I/opt/axis/acapsdk/sysroots/armv7hf/usr/include/glib-2.0 -I/opt/axis/acapsdk/sysroots/armv7hf/usr/lib/glib-2.0/include -I/target-root/usr/include/opencv4 -L./lib -Wl,--no-as-needed,-rpath,'$ORIGIN/lib' -lm -lopencv_video -lopencv_imgproc -lopencv_core -lpthread -lvdostream -lsystemd -lgio-2.0 -lgobject-2.0 -lglib-2.0 imgprovider.cpp -o opencv_app && arm-linux-gnueabihf-strip --strip-unneeded opencv_app
#16 1.401 example.cpp: In function ‘int main(int, char**)’:
#16 1.401 example.cpp:101:9: error: ‘SimpleBlobDetector’ has not been declared
#16 1.401   101 |         SimpleBlobDetector::Params params;
#16 1.401       |         ^~~~~~~~~~~~~~~~~~
#16 1.404 example.cpp:104:9: error: ‘params’ was not declared in this scope
#16 1.404   104 |         params.minThreshold = 10;
#16 1.404       |         ^~~~~~
#16 1.416 example.cpp:136:9: error: ‘SimpleBlobDetector’ was not declared in this scope
#16 1.416   136 |     Ptr<SimpleBlobDetector> detector = SimpleBlobDetector::create(params);
#16 1.416       |         ^~~~~~~~~~~~~~~~~~
#16 1.416 example.cpp:136:27: error: template argument 1 is invalid
#16 1.416   136 |     Ptr<SimpleBlobDetector> detector = SimpleBlobDetector::create(params);
#16 1.416       |                           ^
#16 1.416 example.cpp:136:40: error: ‘SimpleBlobDetector’ is not a class, namespace, or enumeration
#16 1.416   136 |     Ptr<SimpleBlobDetector> detector = SimpleBlobDetector::create(params);
#16 1.416       |                                        ^~~~~~~~~~~~~~~~~~
#16 1.416 example.cpp:139:13: error: base operand of ‘->’ is not a pointer
#16 1.416   139 |     detector->detect(fg, keypoints);
#16 1.416       |             ^~
#16 1.417 example.cpp:145:26: warning: too many arguments for format [-Wformat-extra-args]
#16 1.417   145 |         syslog(LOG_INFO, "keypoints", keypoints[0]);
#16 1.417       |                          ^~~~~~~~~~~
#16 1.796 make: *** [Makefile:30: opencv_app] Error 1
#16 1.797 
#16 1.797 make failed. Please fix above errors, before you can create a package
------
executor failed running [/bin/bash -o pipefail -c . /opt/axis/acapsdk/environment-setup* && acap-build .]: exit code: 1
stephanschulz@Komputer using-opencv % 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.