You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
897 B
37 lines
897 B
cmake_minimum_required(VERSION 2.8)
|
|
project (easypr)
|
|
|
|
# c++11 required
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
# opencv package required
|
|
find_package(OpenCV REQUIRED)
|
|
|
|
# easypr library
|
|
include_directories(include)
|
|
set(SOURCE_FILES
|
|
src/core/core_func.cpp
|
|
src/core/chars_identify.cpp
|
|
src/core/chars_recognise.cpp
|
|
src/core/chars_segment.cpp
|
|
src/core/feature.cpp
|
|
src/core/plate.cpp
|
|
src/core/plate_detect.cpp
|
|
src/core/plate_judge.cpp
|
|
src/core/plate_locate.cpp
|
|
src/core/plate_recognize.cpp
|
|
src/train/ann_train.cpp
|
|
src/train/svm_train.cpp
|
|
src/preprocess/deface.cpp
|
|
src/preprocess/gdts.cpp
|
|
src/preprocess/mc_data.cpp
|
|
src/util/util.cpp
|
|
src/util/program_options.cpp
|
|
)
|
|
add_library(easypr STATIC ${SOURCE_FILES})
|
|
|
|
# test cases
|
|
add_executable(easypr_test test/main.cpp)
|
|
|
|
target_link_libraries(easypr_test ${OpenCV_LIBS} easypr)
|