Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

GigE camera Directshow or ethernet bus type in MAX

Solved!
Go to solution

I have Imaging Source  DMK 23G445 GigE camera.

In MAX I could see it in 2 versions either as Directshow camera or as ethernet camera.

It works without any problem as Directshow camera but as soon as I use it as Ethernet camera the problems appear i could not set high packet size, the highest I could set is 1484bytes. Jumbo frames are enabled and set as 7K.

If I try to use higher packet size I have a picture similar to the one attached, just the size of the strips depends on the packet size.

If I try to use it as Directshow camera there are some different problems in my software. I am trying to analyze particles, by default  camera is monochrome, and it is good for image analysis as it needs to be monochrome.

But this camera is monochrome in reality, but Directshow shows it as BGRA 8 packed.

As a result I could not perform image analysis as I need to convert it to mono from colour.

Is there a way to do it?

In a past we have used colour camera in a monochrome mode(set in MAX) without  too much of the problem.

Unfortunately I use Labview 8.6.1 so that may be one of the reasons that my current setup it is not working properly.

0 Kudos
Message 1 of 7
(5,558 Views)

Hi Sergey,

 

Which version of Vision are you using? Did you need a binary image (Just black or white) or a greyscale image? If it's the latter then we can just use an image casting VI to turn cast it into a properly formatted image:

 

convert.png

 

Regards,

Ben Clark
Message 2 of 7
(5,511 Views)

I have NI vision 8.6. I could  not find Image cast VI in a pallete.

I need Grayscale image for a start and then it is transformed into B&W for particle analysis.

0 Kudos
Message 3 of 7
(5,499 Views)

Sorry I have found vision cast on a second look.

Now I am trying to insert it and see what it gives.

0 Kudos
Message 4 of 7
(5,496 Views)

I can not understand so far how image cast works. I could see that there is image in but no image out. Can somebody comment on it?

I am planning to insert it in between(see picture)

0 Kudos
Message 5 of 7
(5,492 Views)
Solution
Accepted by topic author Sergey(PSU)

Hi Sergey,

 

It's reccomended that you create a new image location with the apropriate format, see the following image for basic image in - image out.

 

convert.png

 

Please let us know if this helps.

Regards,

Ben Clark
Message 6 of 7
(5,466 Views)

Looks like it worked. Just need to check it on real images.

0 Kudos
Message 7 of 7
(5,461 Views)