dom96 / nim-opencv

Nim OpenCV wrapper
MIT License
55 stars 5 forks source link

Does this work with latest nim and latest opencv version? #4

Open v3ss0n opened 8 years ago

dom96 commented 8 years ago

No idea, haven't tested it in a while.

v3ss0n commented 8 years ago

ok i am new to writing wrappers . running c2nim on OpenCV is all we need to generate this lib ?

dom96 commented 8 years ago

It's a little bit more involved than that. Why don't you try using this wrapper?

jlp765 commented 7 years ago

(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

dom96 commented 7 years ago

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.

nomissbowling commented 2 years ago

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 --passL: --passL: compile with -d:nocamera when no camera

never import opencv/[types, core, highgui, imgproc] on OpenCV >= 4

(It's still being worked in progress, to write importcpp for several procedures.)