Skip to content

Commit

Permalink
code indent
Browse files Browse the repository at this point in the history
Signed-off-by: dreamflyforever <[email protected]>
  • Loading branch information
dreamflyforever committed Dec 20, 2023
1 parent 2fe58d9 commit 980151c
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
find_package(OpenCV)

include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(. /usr/local/include)
include_directories(inc /usr/local/include)
set(CMAKE_CXX_STANDARD 11)

link_libraries(${SDK_INC}/libMNN.dylib)
add_executable(pmnn file_set_table.cpp pre_process.cpp core.cpp get_file_size.cpp)
add_executable(smnn inference.cpp)
add_executable(fmnn file_set_table.cpp pre_process.cpp fork.cpp get_file_size.cpp)
add_executable(pmnn src/file_set_table.cpp src/pre_process.cpp src/core.cpp src/get_file_size.cpp)
add_executable(smnn src/inference.cpp)
add_executable(fmnn src/file_set_table.cpp src/pre_process.cpp src/fork.cpp src/get_file_size.cpp)
target_link_libraries(pmnn ${OpenCV_LIBS})
target_link_libraries(smnn ${OpenCV_LIBS})
target_link_libraries(fmnn ${OpenCV_LIBS})
6 changes: 3 additions & 3 deletions CMakeLists.txt_pi
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
find_package(OpenCV)

include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(. /usr/local/include)
include_directories(inc /usr/local/include)
set(CMAKE_CXX_STANDARD 11)

link_libraries(${SDK_INC}/libMNN.so)
add_executable(pmnn file_set_table.cpp pre_process.cpp core.cpp get_file_size.cpp)
add_executable(pmnn src/file_set_table.cpp src/pre_process.cpp src/core.cpp src/get_file_size.cpp)
add_executable(smnn inference.cpp)
add_executable(fmnn file_set_table.cpp pre_process.cpp fork.cpp get_file_size.cpp)
add_executable(fmnn src/file_set_table.cpp src/pre_process.cpp src/fork.cpp src/get_file_size.cpp)
target_link_libraries(pmnn ${OpenCV_LIBS})
target_link_libraries(smnn ${OpenCV_LIBS})
target_link_libraries(fmnn ${OpenCV_LIBS})
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mkidr build; cd build; cmake ..; make ; sudo make install
modify CMakeFileList.txt lib position

### performance
80ms handle 1 picture(pixel 128 * 128) in raspberry4B platform
80ms handle 1 picture(pixel 96 * 96) in raspberry4B platform

### license
MIT by Jim
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions core.cpp → src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ int main(int argc, char *argv[])
//std::string modelFile = argv[1];
#if 1
/*pi board*/
//std::string encryptedModelFile = "../libenos.so";
std::string encryptedModelFile = "/lib/arm-linux-gnueabihf/libenos.so";
std::string encryptedModelFile = "../libenos.so";
//std::string encryptedModelFile = "/lib/arm-linux-gnueabihf/libenos.so";
std::string decryptedModelFile = "libdeos.so";

std::string password = "myPassword123"; // 设置加密和解密的密码
Expand Down Expand Up @@ -169,7 +169,7 @@ int main(int argc, char *argv[])
//hp_printf("wrong modle\n");
memcpy(model_path, argv[1], strlen(argv[1]));
}
//hp_printf("%s\n", model_path);
hp_printf("%s\n", model_path);
#endif
g_start = get_ms();
pthread_mutex_init(&buf_mtx, NULL);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 980151c

Please sign in to comment.