Respected Sir,
I have finally got interface with LCD 3.5 and Luckfox Max.
The last code which you provided the LCD was running ok
Now,i want to import the camera image to LCD 3.5 ,if there is any code please provide
Thank you very much for your help
Luckfox pico Max Face Recognition
The good news is that currently the adaptation work is progressing smoothly, and there are still some minor problems to be solved. Please wait patiently, I will upload the code to github and inform you as soon as I finish it.rajadey150@gmail.com wrote: ↑2024-03-22 12:25 Respected Sir,
I have finally got interface with LCD 3.5 and Luckfox Max.
The last code which you provided the LCD was running ok
Now,i want to import the camera image to LCD 3.5 ,if there is any code please provide
Thank you very much for your help
The face recognition demo supporting Pico-Restouch-LCD-3.5/2.8 has been uploaded to GitHub. You can directly download the compiled output file luckfox_retinaface_facenet_spi_demo_for_promax from the following link:
https://github.com/luckfox-eng29/luckfo ... et/cpp_spi
To compile the code, please modify the CMakeLists.txt file in luckfox_pico_rknn_example/tree/master/example/luckfox_retinaface_facenet/cpp_spi. You need to remove support for Luckfox Pico Plus (as its pins are different from Pro/Max). Comment out the line as follows:
Then, follow the instructions in Readme.md for compilation.
If you have new questions, please feel free to raise them in a new topic.
https://github.com/luckfox-eng29/luckfo ... et/cpp_spi
To compile the code, please modify the CMakeLists.txt file in luckfox_pico_rknn_example/tree/master/example/luckfox_retinaface_facenet/cpp_spi. You need to remove support for Luckfox Pico Plus (as its pins are different from Pro/Max). Comment out the line as follows:
Code: Select all
#add_definitions(-DLUCKFOX_PICO_PLUS)
If you have new questions, please feel free to raise them in a new topic.
Respected Sir,
I have follow the instructions but after compling this error is showing
# ./luckfox_retinaface_facenet_demo_test ./model/RetinaFace.rknn ./model/mobilef
acenet.rknn ./test.jpg
this device is not whitelisted for jpeg decoder cvi
this device is not whitelisted for jpeg decoder cvi
this device is not whitelisted for jpeg decoder cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
init retinaface
E RKNN: failed to allocate fd, ret: -1, errno: 12, errstr: Cannot allocate memory
E RKNN: failed to allocate model memory!, size: 6721472, flags: #2
init facenet
E RKNN: failed to allocate fd, ret: -1, errno: 12, errstr: Cannot allocate memory
E RKNN: failed to allocate model memory!, size: 4426496, flags: #2
Retinaface Info
rknn_query fail! ret=-7
I have follow the instructions but after compling this error is showing
# ./luckfox_retinaface_facenet_demo_test ./model/RetinaFace.rknn ./model/mobilef
acenet.rknn ./test.jpg
this device is not whitelisted for jpeg decoder cvi
this device is not whitelisted for jpeg decoder cvi
this device is not whitelisted for jpeg decoder cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
init retinaface
E RKNN: failed to allocate fd, ret: -1, errno: 12, errstr: Cannot allocate memory
E RKNN: failed to allocate model memory!, size: 6721472, flags: #2
init facenet
E RKNN: failed to allocate fd, ret: -1, errno: 12, errstr: Cannot allocate memory
E RKNN: failed to allocate model memory!, size: 4426496, flags: #2
Retinaface Info
rknn_query fail! ret=-7
Hello, please close the default camera program on the board, execute the commandrajadey150@gmail.com wrote: ↑2024-03-26 6:17 Respected Sir,
I have follow the instructions but after compling this error is showing
# ./luckfox_retinaface_facenet_demo_test ./model/RetinaFace.rknn ./model/mobilef
acenet.rknn ./test.jpg
this device is not whitelisted for jpeg decoder cvi
this device is not whitelisted for jpeg decoder cvi
this device is not whitelisted for jpeg decoder cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
this device is not whitelisted for capture cvi
init retinaface
E RKNN: failed to allocate fd, ret: -1, errno: 12, errstr: Cannot allocate memory
E RKNN: failed to allocate model memory!, size: 6721472, flags: #2
init facenet
E RKNN: failed to allocate fd, ret: -1, errno: 12, errstr: Cannot allocate memory
E RKNN: failed to allocate model memory!, size: 4426496, flags: #2
Retinaface Info
rknn_query fail! ret=-7
Code: Select all
killall rkipc
Also, I noticed that the demo you seem to be using is not compatible with Pico-Restouch-LCD. If you are using Luckfox-Pro/Max with Pico-Restouch-LCD, please use a demo that is compatible.
https://github.com/luckfox-eng29/luckfo ... for_promax
Thank you for your last post.
But i few doubts.
1.When should i execute this command---killall rkipc
2.Previously i have downloaded the same link,do i have compile diffrent file for Pro/Max
If so please explain the complilation process for it
Thank you
But i few doubts.
1.When should i execute this command---killall rkipc
2.Previously i have downloaded the same link,do i have compile diffrent file for Pro/Max
If so please explain the complilation process for it
Thank you
Respected Sir,
As per your instructions,after complilation,
-----------luckfox_retinaface_facenet_demo this file gets generate so how can i generate the
-----------luckfox_retinaface_facenet_spi_demo_for_promax file please help
As per your instructions,after complilation,
-----------luckfox_retinaface_facenet_demo this file gets generate so how can i generate the
-----------luckfox_retinaface_facenet_spi_demo_for_promax file please help
rajadey150@gmail.com wrote: ↑2024-03-26 7:17 Thank you for your last post.
But i few doubts.
1.When should i execute this command---killall rkipc
2.Previously i have downloaded the same link,do i have compile diffrent file for Pro/Max
If so please explain the complilation process for it
Thank you
rkipc is a program that starts automatically when Luckfox-Pico boots up, used for quick functionality verification. Most applications requiring access to the camera need to close it.
As for Luckfox-Pico Pro/Max and Luckfox-Pico Plus, they have different external pin configurations. For ease of use, I've placed two compiled executable files in luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/demo. If you need to compile them yourself, follow these steps:
1.Clone the program repository.
Code: Select all
git clone https://github.com/luckfox-eng29/luckfox_pico_rknn_example.git
Code: Select all
cd luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/cpp_spi
Code: Select all
#add_definitions(-DLUCKFOX_PICO_PLUS).
Code: Select all
mkdir build
cd build
make && make install
The names "luckfox_retinaface_facenet_spi_demo_for_promax" and "luckfox_retinaface_facenet_spi_demo_for_plus" are just renamed versions of the compiled "luckfox_retinaface_facenet_spi_demo". As long as the compilation is correct, you can use the one generated in the "cpp_spi" directory, named "luckfox_retinaface_facenet_spi_demo".Crocodile wrote: ↑2024-03-26 7:42rajadey150@gmail.com wrote: ↑2024-03-26 7:17 Thank you for your last post.
But i few doubts.
1.When should i execute this command---killall rkipc
2.Previously i have downloaded the same link,do i have compile diffrent file for Pro/Max
If so please explain the complilation process for it
Thank you
rkipc is a program that starts automatically when Luckfox-Pico boots up, used for quick functionality verification. Most applications requiring access to the camera need to close it.
As for Luckfox-Pico Pro/Max and Luckfox-Pico Plus, they have different external pin configurations. For ease of use, I've placed two compiled executable files in luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/demo. If you need to compile them yourself, follow these steps:
1.Clone the program repository.2.Navigate to luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/cpp_spi.Code: Select all
git clone https://github.com/luckfox-eng29/luckfox_pico_rknn_example.git
3.Modify CMakeLists.txt by commenting out add_definitions(-DLUCKFOX_PICO_PLUS). This is because I use definitions to control the pin groups.Code: Select all
cd luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/cpp_spi
4.Enter the build directory and execute the build command.Code: Select all
#add_definitions(-DLUCKFOX_PICO_PLUS).
5.To send the output folder (luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/cpp_spi/luckfox_retinaface_facenet_spi_demo)to the development board.Code: Select all
mkdir build cd build make && make install
Sir,
I have followed your previous steps with required modifications to Cmakelists
Thus,
Please suggest
1.When to execute -killall rkipc(before compling the demo or after compling) or at the start?
2.while compling we should use "luckfox_retinaface_facenet_spi_demo_for_promax" instead here "./luckfox_retinaface_facenet_demo_test ./model/RetinaFace.rknn ./model/mobilefacenet.rknn ./test.jpg"
"luckfox_retinaface_facenet_spi_demo_for_promax ./model/RetinaFace.rknn ./model/mobilefacenet.rknn ./test.jpg
I have followed your previous steps with required modifications to Cmakelists
Thus,
Please suggest
1.When to execute -killall rkipc(before compling the demo or after compling) or at the start?
2.while compling we should use "luckfox_retinaface_facenet_spi_demo_for_promax" instead here "./luckfox_retinaface_facenet_demo_test ./model/RetinaFace.rknn ./model/mobilefacenet.rknn ./test.jpg"
"luckfox_retinaface_facenet_spi_demo_for_promax ./model/RetinaFace.rknn ./model/mobilefacenet.rknn ./test.jpg