mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
[nvJPEG] Integrate nvJPEG decoder (#1288)
* nvjpeg cmake * add common decoder, nvjpeg decoder and add image name predict api * ppclas support nvjpeg decoder * remove useless comments * image decoder support opencv * nvjpeg decode fallback to opencv * fdtensor add nbytes_allocated * single image decode api * fix bug * add pybind * ignore nvjpeg on jetson * fix cmake in * predict on fdmat * remove image names predict api, add image decoder tutorial * Update __init__.py * fix pybind
This commit is contained in:
22
tutorials/image_decoder/cpp/README_CN.md
Normal file
22
tutorials/image_decoder/cpp/README_CN.md
Normal file
@@ -0,0 +1,22 @@
|
||||
简体中文 | [English](README.md)
|
||||
|
||||
# Image Decoder C++示例
|
||||
|
||||
1. [编译FastDeploy](../docs/cn/build_and_install), 或直接下载[FastDeploy预编译库](../docs/cn/build_and_install/download_prebuilt_libraries.md)
|
||||
|
||||
2. 编译示例
|
||||
```bash
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
# [PATH-TO-FASTDEPLOY]需替换为FastDeploy的安装路径
|
||||
cmake .. -DFASTDEPLOY_INSTALL_DIR=[PATH-TO-FASTDEPLOY]
|
||||
make -j
|
||||
|
||||
# 下载测试图片
|
||||
wget https://gitee.com/paddlepaddle/PaddleClas/raw/release/2.4/deploy/images/ImageNet/ILSVRC2012_val_00000010.jpeg
|
||||
|
||||
# OpenCV解码
|
||||
./image_decoder ILSVRC2012_val_00000010.jpeg 0
|
||||
# nvJPEG
|
||||
./image_decoder ILSVRC2012_val_00000010.jpeg 1
|
Reference in New Issue
Block a user