diff --git a/app/br/CMakeLists.txt b/app/br/CMakeLists.txt index 128c671..398eb1d 100644 --- a/app/br/CMakeLists.txt +++ b/app/br/CMakeLists.txt @@ -4,6 +4,8 @@ endif() add_executable(br br.cpp ${BR_RESOURCES}) target_link_libraries(br openbr ${CMAKE_THREAD_LIBS_INIT}) +qt5_use_modules(br ${QT_DEPENDENCIES}) + install(TARGETS br RUNTIME DESTINATION bin) add_test(NAME br_initialize WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMAND br) diff --git a/app/br/br.cpp b/app/br/br.cpp index f16642c..c59ddb8 100644 --- a/app/br/br.cpp +++ b/app/br/br.cpp @@ -14,6 +14,9 @@ * limitations under the License. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ +#include +#include +#include #include #include #include @@ -47,171 +50,193 @@ * \endcode */ -static void help() +class FakeMain : public QRunnable { - printf(" = Input; {arg} = Output; [arg] = Optional; (arg0|...|argN) = Choice\n" - "\n" - "==== Core Commands ====\n" - "-train ... [{model}]\n" - "-enroll ... {output_gallery}\n" - "-compare [{output}]\n" - "-eval [{csv}]\n" - "-plot ... {destination}\n" - "\n" - "==== Other Commands ====\n" - "-fuse ... (None|MinMax|ZScore|WScore) (Min|Max|Sum[W1:W2:...:Wn]|Replace|Difference|None) {simmat}\n" - "-cluster ... {csv}\n" - "-makeMask {mask}\n" - "-combineMasks ... {mask} (And|Or)\n" - "-cat ... {gallery}\n" - "-convert