[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Kahsolt/tpu-sdk-cv180x-ppocr

 
 

Repository files navigation

tpu-sdk-cv180x-ppocr

Run Paddle-OCR via cvimodel on MilkV-Duo! 

ℹ The prebuilt cvimodels in the repo comes from: https://github.com/Kahsolt/CCF-BDCI-2024-TPU-ocr-deploy

To compiler a cvimodel runner, use my handy script:

# this will compile & auto upload to your chip :)
bash ./compile_sample_runner.sh ppocr_sys

or run step by step, for example:

# compile an ocr TPU app
pushd samples/ppocr_sys
mkdir -p build ; cd build
cmake .. \
  -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchain-riscv64-linux-musl-x86_64.cmake \
  -DTPU_SDK_PATH=$TPU_SDK_PATH \
  -DOPENCV_PATH=$TPU_SDK_PATH/opencv \
  -DCMAKE_INSTALL_PREFIX=$TPU_SDK_PATH/samples
make
make install
file $TPU_SDK_PATH/samples/bin/cvi_sample_ppocr_sys
popd

# upload the entir tpu-sdk-cv180x-ocr to chip
scp -r /workspace/tpu-sdk-cv180x-ocr root@192.168.42.1:/root

# run on chip
cd tpu-sdk-cv180x-ocr
source ./envs_tpu_sdk.sh
cd samples
./bin/cvi_sample_ppocr_sys ../cvimodels/ppocrv4_det_int8.cvimodel  ../cvimodels/ppocr_mb_rec_bf16.cvimodel ./data/gt_97.jpg

references


by Armit 2024/10/19

About

Run Paddle-OCR cvimodel on MilkV-Duo!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 75.4%
  • C 23.3%
  • CMake 1.1%
  • Roff 0.1%
  • Objective-C 0.1%
  • Shell 0.0%