Skip to content

Commit

Permalink
retinaface lp detector
Browse files Browse the repository at this point in the history
  • Loading branch information
iss committed Oct 29, 2020
1 parent 641595e commit acbd9e1
Show file tree
Hide file tree
Showing 72 changed files with 5,661 additions and 4,708 deletions.
1 change: 1 addition & 0 deletions Prj-ncnn/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Prj-ncnn/.idea/1M_lib.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Prj-ncnn/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Prj-ncnn/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Prj-ncnn/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

254 changes: 254 additions & 0 deletions Prj-ncnn/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions Prj-ncnn/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
cmake_minimum_required(VERSION 2.8)

project(LPDetector)

add_definitions(-std=c++11)
add_definitions("-Wall")

find_package(OpenCV REQUIRED)

INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})


if(True)
find_package(OpenMP)
if(NOT TARGET OpenMP::OpenMP_CXX AND (OpenMP_CXX_FOUND OR OPENMP_FOUND))
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif()
endif()

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/ncnn/include/ncnn)

link_directories(#
${CMAKE_CURRENT_SOURCE_DIR}/ncnn/lib)
set(OpenCV_LIBS opencv_core
opencv_highgui
opencv_imgproc
opencv_imgcodecs
opencv_videoio)

set(SRC
main.cpp
LPDetector.h
LPDetector.cpp
)

add_executable(LPDetector ${SRC})
target_link_libraries(LPDetector ncnn ${OpenCV_LIBS})
if(OpenMP_CXX_FOUND)
if(NCNN_CMAKE_VERBOSE)
message("Building with OpenMP")
endif()
target_link_libraries(LPDetector PUBLIC OpenMP::OpenMP_CXX)
endif()
Loading

0 comments on commit acbd9e1

Please sign in to comment.