提交 8fc45dc6 编写于 作者: L LDOUBLEV

delete debug

上级 4a27ac35
......@@ -51,7 +51,6 @@ int main(int argc, char **argv) {
std::string img_path(argv[2]);
std::vector<std::string> all_img_names;
// cv::Mat srcimg = cv::imread(img_path, cv::IMREAD_COLOR);
Utility::GetAllFiles((char *)img_path.c_str(), all_img_names);
DBDetector det(config.det_model_dir, config.use_gpu, config.gpu_id,
......
OPENCV_DIR=/paddle/Paddle/opencv-3.4.7/opencv3
LIB_DIR=/paddle/OCR/debug/paddle_inference
#LIB_DIR=/paddle/Paddle/inference/2.0.2/paddle_inference
LIB_DIR=your inference dir
CUDA_LIB_DIR=/usr/local/cuda/lib64
CUDNN_LIB_DIR=/usr/lib/x86_64-linux-gnu
TENSORRT_DIR=/paddle/Paddle/package/TensorRT/TensorRT-6.0.1.5/
TENSORRT_DIR=your trt dir
BUILD_DIR=build
rm -rf ${BUILD_DIR}
......@@ -14,7 +13,7 @@ cmake .. \
-DWITH_MKL=ON \
-DWITH_GPU=OFF \
-DWITH_STATIC_LIB=OFF \
-DWITH_TENSORRT=ON \
-DWITH_TENSORRT=OFF \
-DOPENCV_DIR=${OPENCV_DIR} \
-DCUDNN_LIB=${CUDNN_LIB_DIR} \
-DCUDA_LIB=${CUDA_LIB_DIR} \
......
# model load config
use_gpu 1
use_gpu 0
gpu_id 0
gpu_mem 4000
cpu_math_library_num_threads 10
......
./build/ocr_system ./tools/config.txt ../../doc/imgs/
./build/ocr_system ./tools/config.txt ../../doc/imgs/12.jpg
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册