Split demos of C and C++ SDK into two subdirectories (#1099)
* Split demos of C and C++ SDK into two subdirectories * Split demos of C and C++ SDK into two subdirectories * Split demos of C and C++ SDK into two subdirectories * Split demos of C and C++ SDK into two subdirectories * Combine add_examplepull/1115/head
parent
c5e4fcffbc
commit
0effa59440
docs
zh_cn
|
@ -6,10 +6,11 @@ if (NOT (${CMAKE_PROJECT_NAME} STREQUAL "MMDeploy"))
|
|||
find_package(MMDeploy REQUIRED)
|
||||
endif ()
|
||||
|
||||
function(add_example dep name)
|
||||
|
||||
function(add_example dep folder name)
|
||||
if (NOT dep OR TARGET mmdeploy_${dep})
|
||||
# Search for c/cpp sources
|
||||
file(GLOB _SRCS ${name}.c*)
|
||||
file(GLOB _SRCS ${folder}/${name}.c*)
|
||||
add_executable(${name} ${_SRCS})
|
||||
if (NOT (MSVC OR APPLE))
|
||||
# Disable new dtags so that executables can run even without LD_LIBRARY_PATH set
|
||||
|
@ -28,13 +29,13 @@ function(add_example dep name)
|
|||
endif ()
|
||||
endfunction()
|
||||
|
||||
add_example(classifier image_classification)
|
||||
add_example(detector object_detection)
|
||||
add_example(segmentor image_segmentation)
|
||||
add_example(restorer image_restorer)
|
||||
add_example(text_detector ocr)
|
||||
add_example(pose_detector pose_detection)
|
||||
add_example(rotated_detector rotated_object_detection)
|
||||
add_example(classifier c image_classification)
|
||||
add_example(detector c object_detection)
|
||||
add_example(segmentor c image_segmentation)
|
||||
add_example(restorer c image_restorer)
|
||||
add_example(text_detector c ocr)
|
||||
add_example(pose_detector c pose_detection)
|
||||
add_example(rotated_detector c rotated_object_detection)
|
||||
|
||||
#add_example("" async_ocr)
|
||||
#add_example("" async_ocr_v2)
|
||||
|
@ -42,12 +43,11 @@ add_example(rotated_detector rotated_object_detection)
|
|||
#add_example("" det_pose)
|
||||
|
||||
if (MMDEPLOY_BUILD_SDK_CXX_API)
|
||||
add_example(classifier classifier)
|
||||
add_example(detector detector)
|
||||
add_example(segmentor segmentor)
|
||||
add_example(restorer restorer)
|
||||
add_example(text_detector text_ocr)
|
||||
add_example(text_detector text_det_recog)
|
||||
add_example(pose_detector pose_detector)
|
||||
add_example(rotated_detector rotated_detector)
|
||||
add_example(classifier cpp classifier)
|
||||
add_example(detector cpp detector)
|
||||
add_example(segmentor cpp segmentor)
|
||||
add_example(restorer cpp restorer)
|
||||
add_example(text_detector cpp text_ocr)
|
||||
add_example(pose_detector cpp pose_detector)
|
||||
add_example(rotated_detector cpp rotated_detector)
|
||||
endif ()
|
||||
|
|
|
@ -321,9 +321,9 @@ find_package(MMDeploy REQUIRED)
|
|||
target_link_libraries(${name} PRIVATE mmdeploy ${OpenCV_LIBS})
|
||||
```
|
||||
|
||||
For more SDK C++ API usages, please read these [samples](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csrc).
|
||||
For more SDK C++ API usages, please read these [samples](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csrc/cpp).
|
||||
|
||||
For the rest C, C# and Java API usages, please read [C demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csrc), [C# demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csharp) and [Java demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/java) respectively.
|
||||
For the rest C, C# and Java API usages, please read [C demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csrc/c), [C# demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csharp) and [Java demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/java) respectively.
|
||||
We'll talk about them more in our next release.
|
||||
|
||||
#### Accelerate preprocessing(Experimental)
|
||||
|
|
|
@ -322,9 +322,9 @@ target_link_libraries(${name} PRIVATE mmdeploy ${OpenCV_LIBS})
|
|||
```
|
||||
|
||||
编译时,使用 -DMMDeploy_DIR,传入MMDeloyConfig.cmake所在的路径。它在预编译包中的sdk/lib/cmake/MMDeloy下。
|
||||
更多示例,请查阅[此处](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csrc)。
|
||||
更多示例,请查阅[此处](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csrc/cpp)。
|
||||
|
||||
对于 C API、C# API、Java API 的使用方法,请分别阅读代码[C demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csrc), [C# demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csharp) 和 [Java demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/java)。
|
||||
对于 C API、C# API、Java API 的使用方法,请分别阅读代码[C demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csrc/c), [C# demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/csharp) 和 [Java demos](https://github.com/open-mmlab/mmdeploy/tree/master/demo/java)。
|
||||
我们将在后续版本中详细讲述它们的用法。
|
||||
|
||||
#### 加速预处理(实验性功能)
|
||||
|
|
Loading…
Reference in New Issue