AxisCommunications / acap-native-sdk-examples

Example code for APIs and features in AXIS Camera Application Platform (ACAP) Native SDK
Apache License 2.0
44 stars 24 forks source link

vdo-larod + opencv #256

Closed Shaiken closed 1 month ago

Shaiken commented 3 months ago

Is there a complete Dockerfile + app/example.cpp example of opencv + vdo-larod?

pataxis commented 3 months ago

Hi @Shaiken , no there's not. There's a close one though in the using-opencv example that combines OpenCV and VDO.

Shaiken commented 3 months ago

I tried changing vdo-larod from c to cpp. When docker is build, if the parameter definition is not at the top, an error will be reported. Why...?

Cacsjep commented 3 months ago

Share the dockerfile

Shaiken commented 3 months ago

Dockerfile.zip

Shaiken commented 3 months ago

Thank you for your assistance. I've tried the examples from the acap-native-sdk-examples, and they all work. However, integrating them into my own Docker environment is a bit challenging. In addition to the Dockerfile, I also need to pay attention to the Makefile. Converting C to C++ and using VOD + OpenCV has not been very smooth because I want to use a piecewise model and cannot simply use axoverlay.

Later, I saw that acap-computer-vision-sdk-examples can use Flask for communication. Although it seems that this approach cannot match the speed of acap-native, I am unsure how to start implementing it.

Cacsjep commented 3 months ago

Whats your goal ? What should the acap do, did you really need opencv?

Shaiken commented 3 months ago

Thank you for your help. I want to run the tensorflow lite model, and it is a semantic segmentation model. I want to draw its boundaries and show it in the Installation.

Can you teach me how to operate this https://github.com/AxisCommunications/acap-computer-vision-sdk-examples/tree/main/pose-estimator-with-flask Because I'm stuck on setting your device IP address and clearing Docker memory

image

Cacsjep commented 3 months ago

Lets Talk at discord https://discord.com/invite/EVwKjX8B

OK But why opencv? Why you not using larod and axoverlay?

Shaiken commented 3 months ago

Can axoverlay do it? Because when I look at its examples, irregular borders are not drawn. I went in

Cacsjep commented 3 months ago

could be done via axoverlay so this could be closed ;)

pataxis commented 1 month ago

There's also a new API for drawing bounding boxes on more chipsets, Axoverlay is for ARTPEC devices only.