Tengine icon indicating copy to clipboard operation
Tengine copied to clipboard

compatibility with opencv mat

Open soham24 opened this issue 6 years ago • 4 comments

soham24 avatar Mar 07 '20 07:03 soham24

I get buffer from camera feed, I read it as opencv mat and then rotate. I need to pass this in tengine Image format. is there any compatibility? I don't want to process extra copy operation.

soham24 avatar Mar 07 '20 07:03 soham24

Why you need change Mat to tengine ImageFormat? you can use the data of Mat to inference. https://github.com/OAID/Tengine/blob/v1.3.2/examples/imagenet_classification/classification.cpp you can refer to this example, how to use tengine with opencv.

LEMON-LM avatar Mar 20 '20 06:03 LEMON-LM

@soham24 we have update the example with OpenCV Mat format https://github.com/OAID/Tengine/blob/master/examples/classification_cv.cpp

BUG1989 avatar Apr 04 '20 13:04 BUG1989

thanks

soham24 avatar Apr 05 '20 06:04 soham24