Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get and image using axis network camera

Hello everyone,

 

I am using Axis network camera to capture an image and the analyze it.

I made a great progress thanks to this forum and i am almost there. At this point, i am connecting to the camera using Active X, then saving the picture then opening it and analyzing it. but i wonder if there is a more direct way to do this using the feature 'Get image '

the active X method outputs a buffer and i have no clue about how to use this buffer to create an image and draw a region of interest on it.

 

Can anyone help me?

 

Thanks

-------
Fadi
0 Kudos
Message 1 of 8
(6,594 Views)

Hey Fad,

 

What kind of datatype is this buffer you get from the Axis driver?

Did you also ask Axis Support for any examples on that?

 

 

Christian

0 Kudos
Message 2 of 8
(6,577 Views)

Hey Fad,

 

Just something additional. In a few weeks the new Vision Acquisition Software will be released which enables IMAQdx to acquire images of IP Cameras.

I'm running an Axis 206 using the new IMAQdx without problems.

 

 

Christian

0 Kudos
Message 3 of 8
(6,512 Views)

Hello Christian,

 

Thank you for giving me hope to resolve this issue 🙂

 

Can you tell me where can i get this new version from? is it out yet? and is it compatible with the labview 7.1?

 

I really need to capture the stream and analyze it directly because saving then reading the image is time consuming 😞

 

and maybe if anyone knows how to just capture the stream that appears in the active x box or maybe the whole front panel  please let me know how to do it.

 

Thanks

-------
Fadi
0 Kudos
Message 4 of 8
(6,472 Views)

Hi Fadi,

 

I'm sorry but I don't know exaclty when the new driver will be released and no, there will be no support for LabVIEW 7.x.

 

 

Christian

0 Kudos
Message 5 of 8
(6,470 Views)
 
-------
Fadi
Download All
0 Kudos
Message 6 of 8
(6,373 Views)

Hello,

I got the above attached data from Axis Support team. I am still stuck in converting the buffer to a real picture and use it.

Can anyone help? i just need to know how to use this Active X method!

 

Thanks

-------
Fadi
0 Kudos
Message 7 of 8
(6,370 Views)

You need to recreate the code in the first image.  Create an ActiveX method and select the Axis method from all the ActiveX items.  The output is apparently a JPEG string (from second image), so the output should be converted to a string.  Currently, there is no way to convert a JPEG string directly to an image, so you will need to save the string then read it as an image.  If you are going to do this a lot, you might want to look into a RAM disk to make it really fast.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 8 of 8
(6,341 Views)