importing other packages such as cv2.methods

113 views
Skip to first unread message

Virginia Rutten

unread,
Sep 9, 2018, 9:08:32 AM9/9/18
to Bonsai Users
Hi Bonsai Team,


question: How best to import functions which are usually called via cv2.method, e.g: cv2.pyrDown?
(or from org.opencv.imgproc)

Most of the examples contain:
"import OpenCV.NET"
from which I can call any OpenCV.NET.method and this works well.

I'm not too clear as to the differences between the various frameworks. OpenCV.NET doesn't seem to have all the methods I need (but I may be wrong). Could you shed some light when you have a moment?

Thanks!

Gonçalo Lopes

unread,
Sep 9, 2018, 8:04:37 PM9/9/18
to Virginia Rutten, Bonsai Users
OpenCV.NET is the current preferred interface between OpenCV and Bonsai/C# for similar reasons to numpy/scipy. It is basically a wrapper around OpenCV 2.4.8 libraries.

It should support all the basic methods for image processing, dsp and array manipulation. The missing functions are related to Machine Learning, Features and more recent statistical algorithms. You can find a reference listing here: http://www.nudoq.org/#!/Projects/OpenCV.Net

So far it hasn't proven so critical for real-time data acquisition because of the time complexity involved in these methods (although with GPU processing this is definitely changing).

This area will definitely be revisited in the next versions of Bonsai, but in the meantime you can compensate some of the missing things by installing Math.NET or OpenCVSharp and importing them in python or C# packages (scripting directly in C# will be made easier in the next release).

Hope this helps.

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/8ddd4053-6aca-4c18-9d4c-44843c5d7b8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages