OpenCVSharp-Samples icon indicating copy to clipboard operation
OpenCVSharp-Samples copied to clipboard

Sample 13 AccessViolationException

Open obie73 opened this issue 8 years ago • 5 comments

When run line 31

extractor.Compute(img1, ref keypoints1, descriptors1);

Throw an AccessViolationException

I updated packages via nuget. Does not fix problem.

Thanks for your work!

obie73 avatar May 29 '17 09:05 obie73

I think you should follow this issue here

VahidN avatar May 29 '17 10:05 VahidN

The solution of this link does not fix the issue :(

obie73 avatar May 29 '17 18:05 obie73

same here, I get System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' at
extractor.Compute(img1, ref keypoints1, descriptors1);

nccwarp9 avatar May 20 '18 16:05 nccwarp9

+1

[ INFO:0] Initialize OpenCL runtime...

Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at OpenCvSharp.NativeMethods.features2d_Feature2D_compute1(IntPtr obj, IntPtr image, IntPtr keypoints, IntPtr descriptors)

gerwalk avatar Nov 15 '18 15:11 gerwalk

Fixed: Change the extractor from type BRIEF to FREAK on line 28:

var extractor = FREAK.Create();

gerwalk avatar May 01 '19 20:05 gerwalk