Navigate to the build directory, go to tools/
and can find respective applications in their folders.
Example usage:
# run interative match to match text in the photo interactively
# to display matching result after each step, add --display flag
.\interactive_match\InteractiveMatch.exe --dtm /path/to/frozen_east_text_detection.pb /path/to/image --display
# find all texts on the photo
.\detect_text\DetectText.exe --dtm /path/to/frozen_east_text_detection.pb /path/to/image
# run benchmark to compare single and multi thread performance
.\benchmark\Benchmark.exe --dtm /path/to/frozen_east_text_detection.pb /path/to/image
-
Open project in Visual Studio, select
x64-Release
build type, and select a target from the dropdown list,InteractiveMatch.exe
for example. -
Go to
Debug
>Debug and Launch Settings for xxx
on the top menu bar. -
Add arguments to the
launch.vs.json
file. For example:{ "version": "xxx", "configurations": [ { "type": "default", "project": "CMakeLists.txt", "projectTarget": "InteractiveMatch.exe (tools\\interactive_match\\InteractiveMatch.exe)", "name": "Interactive Match", "args": [ "--dtm \\path\\to\\frozen_east_text_detection.pb \\path\\to\\image --display" ] } ] }
-
Click the start button on the top bar to run.