Thank you sir for your support and reply,
As my lcd is SPI driven so which parameter should i change to increase the frame rate and drop the resolution
Thank you sir
FACE RECOGNITION
rajadey150@gmail.com wrote: ↑2024-04-17 5:27 Thank you sir for your support and reply,
As my lcd is SPI driven so which parameter should i change to increase the frame rate and drop the resolution
Thank you sir
The increase in frame rate by modifying the resolution needs to consider various factors. Resolution impacts model input and output, camera capture, and more. This isn't a problem solved by a simple setting adjustment.Please carefully read through the source code and understand the relevant knowledge; all the answers lie within the code and materials. If you lack an understanding of the code and related technical knowledge, then we cannot provide any assistance.
In response to this issue, we have already proposed a detailed solution. Once you thoroughly comprehend the screen control methods, the relationship between SPI screens and framebuffer devices, you will naturally be able to solve your problem independently.
Thank you sir for such an extensive support,
Sir if ypu could please repost
"In response to this issue, we have already proposed a detailed solution. " it will be highly helpful...
In the meanwhile i am going through the code and materials
Thank you in anticipation
Sir if ypu could please repost
"In response to this issue, we have already proposed a detailed solution. " it will be highly helpful...
In the meanwhile i am going through the code and materials
Thank you in anticipation
You might have misunderstood my intention. What I referred to as a solution is the answer provided earlier.Crocodile wrote: ↑2024-04-16 12:141. If you need higher fluidity, you may have to consider sacrificing resolution. However, the model's input size is 640 * 640. If it's smaller than that, enlarging the image afterward could actually affect efficiency. Another direction for improvement is the image display process. Consider using DMA to transfer images to the SPI screen, or using mmap to operate the screen as a framebuffer device. Both of these methods have been mentioned in previous answers and can be tested accordingly.rajadey150@gmail.com wrote: ↑2024-04-16 11:49 Thank you for your input,
1.As per previous discussion, I want to enhance my video fps and make it very smooth and real, now it is buffering and slow
2.I wanted to increase my camera focus area so that it can cover most of the faces.
Thank you for you input very much
Thank you sir,
I have tried the first with lowering resolution. But no improvement.
If you give a link for image processing or nmap images processing in online, i will independently change it.
Thank you sir
I have tried the first with lowering resolution. But no improvement.
If you give a link for image processing or nmap images processing in online, i will independently change it.
Thank you sir
Respected Sir,
Your last suggestion, by memory organization I somehow enhance the fluidity of LCD,
Please suggest a link or method for DMA to transfer images to the SPI screen so that i can explore and do the solution for my own
Thank you in anticipation
Your last suggestion, by memory organization I somehow enhance the fluidity of LCD,
Please suggest a link or method for DMA to transfer images to the SPI screen so that i can explore and do the solution for my own
Thank you in anticipation
We haven't conducted any relevant tests and can't provide assistance.rajadey150@gmail.com wrote: ↑2024-04-18 12:25 Respected Sir,
Your last suggestion, by memory organization I somehow enhance the fluidity of LCD,
Please suggest a link or method for DMA to transfer images to the SPI screen so that i can explore and do the solution for my own
Thank you in anticipation
Respected Sir,
Thank you for your input, I will try to fine tune my code for good frame rate,and further operation.
Please in the meanwhile if you could have any solutions please let me know
Thank you sir for such an extensive support and help
Thank you for your input, I will try to fine tune my code for good frame rate,and further operation.
Please in the meanwhile if you could have any solutions please let me know
Thank you sir for such an extensive support and help
cmake_minimum_required(VERSION 3.10)
set(SDK_PATH $ENV{LUCKFOX_SDK_PATH})
if(NOT SDK_PATH)
message(WARNING "Please Set Luckfox-pico SDK Path. Such as:export LUCKFOX_SDK_PATH=/home/user/luckfox-pico")
return()
endif()
set(CMAKE_C_COMPILER "${SDK_PATH}/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc"
)
set(CMAKE_CXX_COMPILER "${SDK_PATH}/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-g++"
)
project(luckfox_retinaface_facenet_spi_demo_test)
add_definitions(-DRV1106_1103)
#add_definitions(-DLUCKFOX_PICO_PLUS)
#subdirectory
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/Config)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/GUI)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/LCD)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/SPI)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/GPIO)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty 3rdparty.out)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/Config)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/GUI)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/LCD)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/SPI)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/GPIO)
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
#library
set(OpenCV_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lib/cmake/opencv4")
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
#executable
file(GLOB SRCS ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)
add_executable(${PROJECT_NAME}
${SRCS}
)
target_link_libraries(${PROJECT_NAME}
${LIBRKNNRT}
${OpenCV_LIBS}
Threads::Threads
Config
GUI
LCD
SPI
GPIO
)
#include
target_include_directories(${PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/rknpu2/include
${CMAKE_CURRENT_SOURCE_DIR}/lib/Config
${CMAKE_CURRENT_SOURCE_DIR}/lib/GUI
${CMAKE_CURRENT_SOURCE_DIR}/lib/LCD
${CMAKE_CURRENT_SOURCE_DIR}/lib/SPI
${CMAKE_CURRENT_SOURCE_DIR}/lib/GPIO
${OpenCV_INCLUDE_DIRS}
)
#install
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/luckfox_retinaface_facenet_spi_demo")
install(TARGETS ${PROJECT_NAME} DESTINATION .)
file(GLOB RKNN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/../model/*.rknn")
install(FILES ${RKNN_FILES} DESTINATION model) i want add font and touch library in this cmake list
set(SDK_PATH $ENV{LUCKFOX_SDK_PATH})
if(NOT SDK_PATH)
message(WARNING "Please Set Luckfox-pico SDK Path. Such as:export LUCKFOX_SDK_PATH=/home/user/luckfox-pico")
return()
endif()
set(CMAKE_C_COMPILER "${SDK_PATH}/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc"
)
set(CMAKE_CXX_COMPILER "${SDK_PATH}/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-g++"
)
project(luckfox_retinaface_facenet_spi_demo_test)
add_definitions(-DRV1106_1103)
#add_definitions(-DLUCKFOX_PICO_PLUS)
#subdirectory
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/Config)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/GUI)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/LCD)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/SPI)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib/GPIO)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty 3rdparty.out)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/Config)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/GUI)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/LCD)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/SPI)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/lib/GPIO)
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
#library
set(OpenCV_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lib/cmake/opencv4")
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
#executable
file(GLOB SRCS ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)
add_executable(${PROJECT_NAME}
${SRCS}
)
target_link_libraries(${PROJECT_NAME}
${LIBRKNNRT}
${OpenCV_LIBS}
Threads::Threads
Config
GUI
LCD
SPI
GPIO
)
#include
target_include_directories(${PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/rknpu2/include
${CMAKE_CURRENT_SOURCE_DIR}/lib/Config
${CMAKE_CURRENT_SOURCE_DIR}/lib/GUI
${CMAKE_CURRENT_SOURCE_DIR}/lib/LCD
${CMAKE_CURRENT_SOURCE_DIR}/lib/SPI
${CMAKE_CURRENT_SOURCE_DIR}/lib/GPIO
${OpenCV_INCLUDE_DIRS}
)
#install
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/luckfox_retinaface_facenet_spi_demo")
install(TARGETS ${PROJECT_NAME} DESTINATION .)
file(GLOB RKNN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/../model/*.rknn")
install(FILES ${RKNN_FILES} DESTINATION model) i want add font and touch library in this cmake list
You can refer to: https://github.com/hanwckf/linux-rk3328 ... ouchscreen
We will update the driver and usage of our adaptation to the official Wiki tutorial. Due to the limited capacity of our engineers and the multitude of customer inquiries, more research and exploration are needed for development applications and driver adaptations.
We will update the driver and usage of our adaptation to the official Wiki tutorial. Due to the limited capacity of our engineers and the multitude of customer inquiries, more research and exploration are needed for development applications and driver adaptations.