Where should I include ueye libraries?

asked Nov 18 '16

srt92 gravatar image

Hi guys,

I am going to use ueye camera for image processing and am totally new in this field. I have already installed Visual community and opencv following this tutorial: https://www.youtube.com/watch?v=7SM5O... I have runned one sample program included also in this tutorial and included the opencv folders in the project settings.

However, I don't understand yet, where should I include the ueye libraries (including e.g. ueye.h and uEye_api.lib etc.) and why do we use openCV? I just have been told that we should use opencv with visual studio for image processing!

Thanks you!

Preview: (hide)

Comments

opencv is a computer-vision and machine-learning library.

if all you want is image processing, you don't need it.

(also, we can't really help with any ueye problems (off-topic))

berak gravatar imageberak (Nov 18 '16)edit

thanks for your response. But could you please explain what do you mean exactly by if all I want is image processing? What else could be needed? I'm asking because I am new and the whole thing I am going to do is not yet clear. I might need something else in the future.

srt92 gravatar imagesrt92 (Nov 18 '16)edit

what do you want to do ?

berak gravatar imageberak (Nov 18 '16)edit

With help of one ueye camera I want to take pictures of some patterns and then measure some distances (e.g. between two points or measuring the middle point between two lines).

srt92 gravatar imagesrt92 (Nov 18 '16)edit

yes, sure. i probably just misread you above, ignore.

berak gravatar imageberak (Nov 18 '16)edit

So I should use only openCV and no need to include ueye libraries. Am I right? I didn't get the answer "yes" exactly :)

srt92 gravatar imagesrt92 (Nov 18 '16)edit
2

I used uEye cameras just a bit a long time ago; so I don't really remember the API. Anyway, you add #include <ueye.h> at the beginning of your cpp file that does the capturing (main.cpp), and the lib file in the project properties->linker->additional dependencies.

Then, use the uEye SDK documentation to implement your capturing code. At one point you should have something like : uchar *data; ... camera_capture(data);. There, you can create an OpenCV image object: Mat img(height,width,data,CV_8UC3);

Anyway, you can use OpenCV for the tasks you need, however you'll need some good C++ programming skills and understand the bases of image processing and OpenCV. I recommend to take some photos and work with them, and add the live processing part later.

kbarni gravatar imagekbarni (Nov 18 '16)edit

Thank you. It is really helpful.

srt92 gravatar imagesrt92 (Nov 18 '16)edit