Giter Site home page Giter Site logo

ascend_dvpp_resize's Introduction

华为Ascend310P3芯片图像等比例缩放

依赖软件

参考CANN官方文档配置完环境(安装Ascend-cann-toolkitAscend-cann-amct)后进行以下操作。

编译

mkdir build
cmake ../ # .... 查看CMakeLists.txt根据实际情况修改
make VERBOSE=1 -j4
./dvpp_resize                                   
	Usage: ./main img_list_file(jpg、png...) batch_size des_width des_height num_loop yuv420sp_nv12_resize(0/1) fix_scale

本仓库实现了BGR/yuv420sp_nv12图像的(等比例)缩放功能,如下所示

  • 缩放前

    dog

  • 缩放后

    dvpp_resize_output0

说明及注意事项

1、关于dvpp的详细使用可参考图像/视频/音频数据处理

2、输入BGR/RGB的图像宽度(width)必须是16的整数倍,高度(height)必须是偶数

3、关于输入图像格式说明见VPC功能说明V1VPC功能说明V2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.