yolov8-opencv-onnxruntime-cpp icon indicating copy to clipboard operation
yolov8-opencv-onnxruntime-cpp copied to clipboard

能否提供一下yolov8 图像分类支持

Open futureflsl opened this issue 2 years ago • 3 comments

能否提供C++ onnx或者opencv对图像分类支持呢

futureflsl avatar Jun 19 '23 05:06 futureflsl

其实图像分类你自己都可以搞的,主要就是图片预处理部分不一样。分类的话是需要减去图像均值并且归一化,之后是从中心抠图而非进行padding+resize的操作。最后就是后处理部分不需要那么复杂,对于结果进行softmax(),之后按照大小排序取前k项就是top-k的结果。

UNeedCryDear avatar Jun 19 '23 06:06 UNeedCryDear

@futureflsl Hi, Did you find any way to implement it in C++?

sctrueew avatar Aug 29 '23 10:08 sctrueew

@futureflsl Hi, Did you find any way to implement it in C++?

You can write by yourself,it is simple

futureflsl avatar Aug 30 '23 03:08 futureflsl