From 5b17d40c06208b43030e92e16bbd269616e0bf47 Mon Sep 17 00:00:00 2001 From: BohaoWu <37072443+BohaoWu@users.noreply.github.com> Date: Sat, 10 Oct 2020 14:15:09 +0800 Subject: [PATCH] Add core/preprocess/hwvideoframe/README.md --- core/preprocess/hwvideoframe/README.md | 26 +++++++++++++------- python/paddle_serving_app/reader/__init__.py | 2 +- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/core/preprocess/hwvideoframe/README.md b/core/preprocess/hwvideoframe/README.md index ab3b27d3..d740fe6c 100644 --- a/core/preprocess/hwvideoframe/README.md +++ b/core/preprocess/hwvideoframe/README.md @@ -1,14 +1,22 @@ # hwvideoframe -简要说明 +hwvideoframe是一个基于cuda的图片预处理库。项目利用GPU进行图片预处理操作,加快处理速度的同时,提高GPU的使用率。 + +## 项目结构 +hwvideoframe通过cpp的 +hwvideoframe目前提供以下图片预处理功能: +* Image2Gpubuffer +* Gpubuffer2Image +* RGB2BGR +* BGR2RGB +* Div +* Sub +* Normalize +* CenterCrop +* Resize +* ResizeByFactor ## 快速开始 -如何构建、安装、运行 +按照Paddle Serving文档编译,编译结果在reader中。 ## 测试 -如何执行自动化测试 - -## 如何贡献 -贡献patch流程、质量要求 - -## 讨论 -百度Hi讨论群:XXXX +测试文件:Serving/python/paddle_serving_app/reader/test_preprocess.py diff --git a/python/paddle_serving_app/reader/__init__.py b/python/paddle_serving_app/reader/__init__.py index 89cb6053..9622d834 100644 --- a/python/paddle_serving_app/reader/__init__.py +++ b/python/paddle_serving_app/reader/__init__.py @@ -19,4 +19,4 @@ from .image_reader import DBPostProcess, FilterBoxes, GetRotateCropImage, Sorted from .lac_reader import LACReader from .senta_reader import SentaReader from libgpupreprocess import Image2Gpubuffer, Gpubuffer2Image, RGB2BGR, BGR2RGB -from libgpupreprocess import Div, Sub, Normalize, CenterCrop, Resize +from libgpupreprocess import Div, Sub, Normalize, CenterCrop, Resize, ResizeByFactor -- GitLab