Saturday, 15 September 2012

c# - Use Open CV in class library -



c# - Use Open CV in class library -

i'm creating application using own dll files in c#.

i create class library uses open cv. have add together reference project - emgu.cv.dll , emgu.util. it's ok opencv needs dll files illustration "opencv_calib3d231.dll" , others. have in debug folder when want run projet using opencv.

but if want utilize opencv in own class library? have set dll files?

any thought how prepare this?

you cannot execute class library itself: class library (indirectly) used executable program. have ensure dependencies of class library can found said executable, illustration putting them in directory executable in.

so, if have executable project (project a) , class library (project b) used executable project has native dependencies opencv_calib3d231.dll, suffices ensure native dependencies in project a's directory @ runtime.

if developing class library used other developers in programs, should distribute dependencies of class library library (or @ to the lowest degree provide instructions on how obtain dependencies in documentation). can ensure operating scheme can find dependencies upon loading class library.

c# opencv dll

No comments:

Post a Comment