Giter Site home page Giter Site logo

Comments (7)

kobush avatar kobush commented on May 17, 2024

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.

shimat avatar shimat commented on May 17, 2024

Thank you. The error also occurred in my environment.
But the definition of the detectMultiScale wrapper seems to be correct...

from opencvsharp.

kobush avatar kobush commented on May 17, 2024

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.

detectmultiscale1_x64
detectmultiscale1_x86

from opencvsharp.

kobush avatar kobush commented on May 17, 2024

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.

shimat avatar shimat commented on May 17, 2024

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.

ynarayama avatar ynarayama commented on May 17, 2024

I installed 20140510 x64 nuget.
result : fine. thank you.
code : / Samples / FaceDetection.cs

from opencvsharp.

shimat avatar shimat commented on May 17, 2024

😄

from opencvsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.