Page 3 of 7
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-22 12:25
by rajadey150@gmail.com
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
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-22 12:33
by Crocodile
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 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.
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-25 8:12
by Crocodile
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:
Code: Select all
#add_definitions(-DLUCKFOX_PICO_PLUS)
Then, follow the instructions in Readme.md for compilation.
If you have new questions, please feel free to raise them in a new topic.
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-26 6:17
by rajadey150@gmail.com
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
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-26 7:07
by Crocodile
rajadey150@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
Hello, please close the default camera program on the board, execute the command
, and then try again.
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
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-26 7:17
by rajadey150@gmail.com
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
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-26 7:32
by rajadey150@gmail.com
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
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-26 7:42
by Crocodile
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
2.Navigate to
luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/cpp_spi.
Code: Select all
cd luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/cpp_spi
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
#add_definitions(-DLUCKFOX_PICO_PLUS).
4.Enter the build directory and execute the build command.
Code: Select all
mkdir build
cd build
make && make install
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.
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-26 7:47
by Crocodile
Crocodile wrote: ↑2024-03-26 7:42
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
2.Navigate to
luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/cpp_spi.
Code: Select all
cd luckfox_pico_rknn_example/example/luckfox_retinaface_facenet/cpp_spi
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
#add_definitions(-DLUCKFOX_PICO_PLUS).
4.Enter the build directory and execute the build command.
Code: Select all
mkdir build
cd build
make && make install
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.
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".
Re: Luckfox pico Max Face Recognition
Posted: 2024-03-26 7:58
by rajadey150@gmail.com
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