Comments (7)
I have run into same issue. My app works on x86 but it fails with System.AccessViolationException in x64. It occurs in call to objdetect_CascadeClassifier_detectMultiScale2 native method.
from opencvsharp.
Thank you. The error also occurred in my environment.
But the definition of the detectMultiScale wrapper seems to be correct...
from opencvsharp.
I've looked a bit more into this. Hitting a breakpoint in objdetect_CascadeClassifier_detectMultiScale1 I could see that in x64 build the arguments are not passed correctly. In particular the pointers are all wrong (but scale factor too). Compare with x86 version below.
from opencvsharp.
And I tried to call CascadeClassifier Load method now and it gives the same error. In debug I can see the obj pointer and fileName string are passed wrong.
from opencvsharp.
I released the new version now. Probably this problem is resolved. please retry with the new dlls.
I realized that argument value of C++ class causes error in x64 (e.g. cv::Size). I replaced cv::Size with the simple struct CvSize. FYI, pointer of C++ class argument (e.g. cv::Point* ) seems to be OK.
from opencvsharp.
I installed 20140510 x64 nuget.
result : fine. thank you.
code : / Samples / FaceDetection.cs
from opencvsharp.
😄
from opencvsharp.
Related Issues (20)
- Whether there are plans to implement open3D
- MatchTemplate results are inconsistent or incorrect HOT 1
- OpenCV Wrapper Bug: Zero Frame Rate and Count with Special Characters in Filename
- Does an LMSolver equivalent exist in OpenCvSharp?
- Need Help for Warpping and Deskewing
- Parameters for EstimateTransform(IEnumerable<Mat> images, Rect[][] rois)
- Upgrade to OpenCV 4.9 HOT 2
- Size.Zero deleted in 4.9 causing code breaking HOT 1
- Cv2.MinMaxLoc causes Memory leak HOT 4
- Hi I have a problem Exception Info: System.AccessViolationException at OpenCvSharp.Internal.NativeMethods.core_Mat_copyTo_toMat1(IntPtr, IntPtr)
- Linux ARM64 (Native bindings for Linux ARM64) HOT 6
- Unable to find an entry point named 'videoio_VideoWriter_fourcc' in shared library 'OpenCvSharpExtern'. HOT 15
- Feature Request EstimateAffine3D
- opencvsharp4 is missing NuGet package README file
- opencvsharp4.runtime.win is missing NuGet package README file
- opencvsharp4.extensions is missing NuGet package README file
- opencvsharp4.windows is missing NuGet package README file
- opencvsharp4.wpfextensions is missing NuGet package README file
- Setup HOT 1
- how to split r,g,b channel image from Mat data pointer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencvsharp.