Luckfox pico Max Face Recognition
Posted: 2024-03-20 16:16
Sir,please a sample program for facial recognition by RV1106 using RKNN lib and SSC3 camera,if there is already a sample code provide the link and how to compile it
A short text to describe your forum
http://forums.luckfox.com/
rajadey150@gmail.com wrote: ↑2024-03-20 16:16 Sir,please a sample program for facial recognition by RV1106 using RKNN lib and SSC3 camera,if there is already a sample code provide the link and how to compile it
rajadey150@gmail.com wrote: ↑2024-03-21 6:50 Sir i have 3.5 restouch display i want interface with Luckfox Pico Max,so i will do this step
i mean do we require change it manually or we have write our own code
please help in tutorial very confusing
Code: Select all
// Delete framebuffer Init
/*
int fb = open("/dev/fb0", O_RDWR);
if(fb == -1)
{
close(fb);
return -1;
}
size_t screensize = FB_HIGHT * FB_WEIGHT * 2;
uint16_t* framebuffer = (uint16_t*)mmap(NULL, screensize, PROT_READ | PROT_WRITE, MAP_SHARED, fb, 0);
cv::Mat rgb565Image(240, 240, CV_16UC1);
*/
//Delete img show
/*
cv::resize(bgr, bgr, cv::Size(240,240), 0, 0, cv::INTER_LINEAR);
for (int i = 0; i < bgr.rows; ++i) {
for (int j = 0; j < bgr.cols; ++j) {
uint16_t b = (bgr.at<cv::Vec3b>(i, j)[0] >> 3);
uint16_t g = (bgr.at<cv::Vec3b>(i, j)[1] >> 2) << 5;
uint16_t r = (bgr.at<cv::Vec3b>(i, j)[2] >> 3) << 11;
rgb565Image.at<uint16_t>(i, j) = r | g | b;
framebuffer[i * FB_HIGHT + j] = rgb565Image.at<uint16_t>(i, j);
}
}
*/
Code: Select all
//LCD Init
if(DEV_ModuleInit() != 0){
DEV_ModuleExit();
exit(0);
}
SD_Init();
LCD_SCAN_DIR lcd_scan_dir = SCAN_DIR_DFT;
LCD_Init(lcd_scan_dir,800);
Paint_CreatImage();
//Show Image(This needs to be self-implemented)
Code: Select all
int width = xxx;
int height = xxx;
Code: Select all
cv::resize(bgr, bgr, cv::Size(xxx,xxx), 0, 0, cv::INTER_LINEAR);
I have gone through the tests, unfortunately, I haven't encountered the issues you faced. Please check if the image is burned correctly, if the program is compiled correctly (there are differences between Plus and Pro/Max), and if the 3.5 ResTouch LCD can work properly (the lowest-cost way to test is using Raspberry Pico).rajadey150@gmail.com wrote: ↑2024-03-21 8:26 Respected Sir,
I have gone through the tutorial
1.Ensure that the screen can be driven correctly, referring to the tutorial https://wiki.luckfox.com/Luckfox-Pico/L ... Touch-LCD/;
it is very confusing if you could provide right sdk or image file for LCD restouch 3.5 then it ok,
i have installed provided image file but it is not working
Please help to interface Luckfox Pico max with 3.5 ResTouch LCD
Thank you for your efforts. Due to the focus on utilizing RKNN during development, compatibility with screens was not a priority, and only the Framebuffer environment was tested. Currently, I am working on writing a demo that directly communicates with an LCD via SPI to display face recognition results. Once completed, I will upload it to GitHub and notify you immediately.rajadey150@gmail.com wrote: ↑2024-03-22 6:24 //LCD Init
if(DEV_ModuleInit() != 0){
DEV_ModuleExit();
exit(0);
}
SD_Init();
LCD_SCAN_DIR lcd_scan_dir = SCAN_DIR_DFT;
LCD_Init(lcd_scan_dir,800);
Paint_CreatImage();
//Show Image(This needs to be self-implemented)
i have tried this code but the library file is missing please give a proper library file structure for 3.5 LCD to excute this code in retina_face it will higly helpful