Page 3 of 3

Re: OpenCV Mobile snapshot via RTSP

Posted: 2024-03-08 12:22
by Crocodile
Yurii wrote: 2024-03-08 11:07 Thanks for the answer.
This tracker works, but as you said very slowly.
trekerTest.png
Is it possible to implement a tracker that achieves approximately 20 frames per second (fps) for an image size of 1200 pixels width and 700 pixels height?
Thanks
Hello, I believe the reason for the low frame rate is the use of CPU for computation. The CPU of luckfox-pico is not suitable for scenarios that require a large amount of computation.

There are two better solutions:
1.Use rga to replace the original tasks performed by the CPU, but it requires sufficient understanding of the tracker algorithm;
2.Use a model similar to TrackerGOTURN to enable luckfox-pico to run on rknpu.

I hope this helps you.

Re: OpenCV Mobile snapshot via RTSP

Posted: 2024-03-09 22:34
by Yurii
if I convert the GOTURN model in ONNX and then in rknn, will it work?

Re: OpenCV Mobile snapshot via RTSP

Posted: 2024-03-11 1:34
by Crocodile
Yurii wrote: 2024-03-09 22:34 if I convert the GOTURN model in ONNX and then in rknn, will it work?
Hello, luckfox-pico has limited support for operators on rknn and I can't guarantee that it will work. If you have a new problem you can raise it in a new topic so that more community members can see and participate.

Re: OpenCV Mobile snapshot via RTSP

Posted: 2024-06-17 12:42
by cocoa
Crocodile wrote: 2024-02-24 3:08
Yurii wrote: 2024-02-23 19:52 Thank you.
Can you tell me how to compile the program in more detail?
I have problems when compiling with VScode.
You can obtain the source code via git and refer to the README for compilation instructions.

Code: Select all

git clone https://github.com/luckfox-eng29/luckfox_pico_rtsp_opencv.git
cd luckfox_pico_rtsp_opencv
export LUCKFOX_SDK_PATH=<Your Luckfox-pico Sdk Path>
mkdir build
cd build
cmake ..
make && make install
The compiled executable file is stored in the <project>/luckfox_rtsp_opencv_demo folder for your testing purposes.
I would like to modify and use the contents of common/isp3.x/sample_comm_isp.c for debugging.
Please tell me how to regenerate libsample_comm.a.

Re: OpenCV Mobile snapshot via RTSP

Posted: 2024-06-18 2:00
by Crocodile
cocoa wrote: 2024-06-17 12:42
Crocodile wrote: 2024-02-24 3:08
Yurii wrote: 2024-02-23 19:52 Thank you.
Can you tell me how to compile the program in more detail?
I have problems when compiling with VScode.
You can obtain the source code via git and refer to the README for compilation instructions.

Code: Select all

git clone https://github.com/luckfox-eng29/luckfox_pico_rtsp_opencv.git
cd luckfox_pico_rtsp_opencv
export LUCKFOX_SDK_PATH=<Your Luckfox-pico Sdk Path>
mkdir build
cd build
cmake ..
make && make install
The compiled executable file is stored in the <project>/luckfox_rtsp_opencv_demo folder for your testing purposes.
I would like to modify and use the contents of common/isp3.x/sample_comm_isp.c for debugging.
Please tell me how to regenerate libsample_comm.a.
If you need to obtain libsample_comm.a, you can modify the source code you need under <SDK>/media/samples. After making the necessary changes, execute Make, and you will be able to find the newly compiled libsample_comm.a in <SDK>/media/samples/out/lib/.