Ask Your Question
0

How to convert color Image to PPM image to use in TensorRT

asked 2020-07-16 17:42:48 -0500

Hi, im working on a program that uses TensorRT API to run an inference with ssd_mobilnet model. My problem is that TensorRT takes ppm format image and must of the forums I have search uses "imwrite" to save the image to ppm but i need the image in memory like a cv::Mat matrix so i dont have to keep writing into disk every converted frame.

Thanks for any response.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2020-07-17 01:37:01 -0500

berak gravatar image

you can try to use imencode instead of imwrite()

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-07-16 17:42:48 -0500

Seen: 40 times

Last updated: Jul 17