Closed wweverma1 closed 3 months ago
We can use OpenCVFrameConverter.ToOrgOpenCvCoreMat for that: http://bytedeco.org/javacv/apidocs/org/bytedeco/javacv/OpenCVFrameConverter.ToOrgOpenCvCoreMat.html
Thanks @saudet for the heads up, One more thing will the Mat object received from OpenCVFrameConverter.ToOrgOpenCvCoreMat have RGB or BGR color scheme??
OpenCV is usually BGR, if that's what you're asking
Got it, thanks for taking out your time :)
Hello! First of all thanks to the author for building such an amazing library 👏
Can someone please help me with this- I am working on a project where I have to retrieve frames from a RTSP stream and then convert it to
opencv.core.Mat
for further processing. Currently I'm usingFFmpegFrameGrabber
to get the frames. then converting that frame into a bitmap usingAndroidFrameConverter
followed by creating aopencv.core.Mat
object and populating it with the bitmap usingUtils.bitmapToMat
further processing it to RGB.Is there any easy way to directly get to my requirement without these intermediate steps to optimize my code.
Current Implementation-
Any help will be appreciated :)