You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using the following code to convert a byte[] imageData to an IplImage.
InputStream in = new ByteArrayInputStream(imageData);
BufferedImage bufImage = ImageIO.read(in);
Java2DFrameConverter javaconverter = new Java2DFrameConverter();
Frame frame = javaconverter.convert(bufImage);
OpenCVFrameConverter.ToIplImage cvconverter = new OpenCVFrameConverter.ToIplImage();
IplImage iplImage = cvconverter.convertToIplImage(frame);
It works great the first time but when run again on this function it crashes Java and Stop my server.
From the debug it appears when it arrives on the last line IplImage iplImage = cvconverter.convertToIplImage(frame);
Sometimes it log EXCEPTION_ACCESS_VIOLATION but not always.
Can you help ?
Thanks
The text was updated successfully, but these errors were encountered:
Ok, thank you for the answer and sorry for the duplicated entry.
I see in your documentation that FrameConverter is not garbage collected.
Maybe it would be good to add some function to release them like there is for IplImage (cvReleaseImage) ?
Hi,
I'm using the following code to convert a byte[] imageData to an IplImage.
It works great the first time but when run again on this function it crashes Java and Stop my server.
From the debug it appears when it arrives on the last line
IplImage iplImage = cvconverter.convertToIplImage(frame);
Sometimes it log EXCEPTION_ACCESS_VIOLATION but not always.
Can you help ?
Thanks
The text was updated successfully, but these errors were encountered: