Skip to content

Commit d3f013c

Browse files
Add all
1 parent 79dd71e commit d3f013c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4234
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@
3030
*.exe
3131
*.out
3232
*.app
33+
build

CMakeLists.txt

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
## CMake configuration file of Ellipsedetcet project
2+
3+
cmake_minimum_required (VERSION 2.4)
4+
5+
if (POLICY CMP0048)
6+
cmake_policy (SET CMP0048 NEW)
7+
endif ()
8+
9+
10+
if (COMMAND cmake_policy)
11+
cmake_policy (SET CMP0003 NEW)
12+
endif (COMMAND cmake_policy)
13+
14+
15+
set (PACKAGE_NAME "ellipse_detection")
16+
set (PACKAGE_VERSION "1.0")
17+
18+
19+
project (${PACKAGE_NAME} VERSION ${PACKAGE_VERSION} LANGUAGES CXX)
20+
21+
set (OpenCV_FOUND 1)
22+
find_package (OpenCV REQUIRED)
23+
24+
set (OTHER_LIBS -llapack)
25+
26+
set (CMAKE_CXX_STANDARD 11)
27+
set (CMAKE_CXX_STANDARD_REQUIRE ON)
28+
29+
set (EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")
30+
set (LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib")
31+
32+
include_directories ("${PROJECT_SOURCE_DIR}/include")
33+
34+
add_definitions ("-Wall")
35+
36+
set (DEPEND_FILE
37+
"src/unitily.cpp"
38+
"src/detect.cpp"
39+
"src/compute.cpp"
40+
"src/lsd.cpp"
41+
"src/cvcannyapi.cpp"
42+
)
43+
44+
add_library (${PACKAGE_NAME} ${DEPEND_FILE})
45+
46+
target_link_libraries(${PACKAGE_NAME} ${Opencv_LIBS} ${OTHER_LIBS})
47+
48+
set (PUBLIC_HDRS
49+
include/types.hpp
50+
include/unitily.h
51+
include/defines.h
52+
include/detect.h
53+
include/compute.h
54+
)
55+
56+
set (INCLUDE_INSTALL_DIR "include/${PACKAGE_NAME}")
57+
set (RUNTIME_INSTALL_DIR "bin")
58+
set (LIBRARY_INSTALL_DIR "lib")
59+
60+
install (FILES ${PUBLIC_HDRS} DESTINATION ${INCLUDE_INSTALL_DIR}/${GFLAGS_INCLUDE_DIR})
61+
62+
install (TARGETS ${PACKAGE_NAME}
63+
RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR}
64+
LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
65+
ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR}
66+
)
67+
68+
if (BUILD_TESTING)
69+
add_subdirectory (test)
70+
endif ()

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
# standard-ellipse-detection
1+
# ellipsedetect
2+
3+
An Efficient High-quality Ellipse Detection.
4+
5+
## references
6+
7+
paper : https://arxiv.org/pdf/1810.03243v4.pdf
8+
9+
code : https://github.com/AlanLuSun/High-quality-ellipse-detection
10+
11+
## USAGE
12+
13+
```
14+
cd ellipsedetect
15+
16+
mkdir build && cd build
17+
18+
cmake ..
19+
20+
make
21+
22+
make install
23+
```

images/test1.jpg

6.85 KB
Loading

images/test10.jpg

30.1 KB
Loading

images/test10_result.jpg

72.9 KB
Loading

images/test11.jpg

31.1 KB
Loading

images/test11_result.jpg

33.7 KB
Loading

images/test12.jpg

45.3 KB
Loading

images/test12_result.jpg

125 KB
Loading

0 commit comments

Comments
 (0)