HikVision Machine Vision Camera with OpenCV

asked 2019-06-20 20:08:53 -0600

cambom gravatar image

Hey guys,

Anyone have any luck getting frames from a HikVision Machine Vision Camera using OpenCV? I'm using the MV-CA060-11GM. They all support the GigE protocol, but I'm still not sure how I'd use that to get frames.

I've tried using their API in python and I'm having a really hard time trying to capture frames reliably.

Thanks!

edit retag flag offensive close merge delete

Comments

I've tried using their API in python

if you want to use gige support, you have to build the opencv libs from src (with a gige sdk present)

berak gravatar imageberak ( 2019-06-21 00:39:57 -0600 )edit

Hi Berak, thanks for your response. "with a gige sdk present" --> Does this have to be one provided by my camera manufacturer?

cambom gravatar imagecambom ( 2019-06-21 01:18:53 -0600 )edit

Although it's possible to capture images from industrial cameras using OpenCV, I strongly recommend using the SDK provided by the manufacturer, to use the full potential of the camera. This is always the most reliable solution.

Check the example files provided by the SDK how to capture the frames reliably.

About OpenCV support, you don't need the official SDK. When you build it from source, just make sure that the WITH_GIGEAPI is active in cmake.

kbarni gravatar imagekbarni ( 2019-06-21 05:35:14 -0600 )edit

Thanks for the responses! I'll try working with the manufacture SDK again before figuring out how to rebuild from source.

cambom gravatar imagecambom ( 2019-06-23 19:27:28 -0600 )edit