RED-7669: optimize OCR-module performance

* moar sigsegv
This commit is contained in:
Kilian Schuettler 2023-11-15 17:17:33 +01:00
parent 19747cbca5
commit 12217f2459

View File

@ -17,8 +17,7 @@ public class NativeMemoryAllocationUtils {
FloatBuffer orient_confB = FloatBuffer.allocate(1);
PointerByReference script_nameB = new PointerByReference();
FloatBuffer script_confB = FloatBuffer.allocate(1);
DetectionScriptBuffers buffers = new DetectionScriptBuffers(orient_degB, orient_confB, script_nameB, script_confB);
return buffers;
return new DetectionScriptBuffers(orient_degB, orient_confB, script_nameB, script_confB);
}