Open v3ss0n opened 8 years ago
ok i am new to writing wrappers . running c2nim on OpenCV is all we need to generate this lib ?
It's a little bit more involved than that. Why don't you try using this wrapper?
(over a year later than first posted)
I modified the dll spec in the three nim opencv files, for example, for core.nim
coredll* = "(lib|)opencv_(core|world)(|249|231|331)(|d).dll"
_Note: for windows, it is now by default a single opencv_world331.dll
dll, and I didn't bother trying to generate the three dlls individually using cmake._
The test files (with the new PR's I have added) for pictures worked, but the video capture asked me for a video source, then failed.
It looks like the video capture needs to move to the C++ interface
It looks like the video capture needs to move to the C++ interface
Note that I did have the video capture working at one point in time, so I don't think that's true.
It works good on OpenCV 3.4.12 and OpenCV 4.5.2 on branch cv4partial https://github.com/nomissbowling/nim-opencv/tree/cv4partial/tests https://github.com/nomissbowling/nim-opencv/blob/cv4partial/tests/camera_mat.nim
camera_mat.nim is a rewrite version of camera.nim and picture.nim (tested on MinGW x64)
compile with nim cpp --passC:-I
never import opencv/[types, core, highgui, imgproc] on OpenCV >= 4
(It's still being worked in progress, to write importcpp for several procedures.)
No idea, haven't tested it in a while.