Jump to content

Vision Count Objects HELP!


Recommended Posts

Hi.

Iam trying to make a simple VI to count objects using Vision and a USB camera.

I am getting the error:

-1074396080

IMAQ Threshold

Invalid image type.

I have attached my front diagram, block diagram and a picture of the objects I am trying to count.

Hope someon can help me.

Iam still a novice / rookie sow please no flame.

Thx.

/ Jens Poulsen

Link to comment

It appears that the output of the USB snap function is always a RGB U32 image, regardless of what the input image is. That is why you are getting the error. The IMAQ Count Objects 2 vi will not accept and RGB image. After the USB Snap, add an IMAQ Cast Image vi to convert it back to a U8 image and then pass it to the IMAQ Count Objects 2 vi.

QUOTE (X_DOT @ Mar 16 2009, 10:52 AM)

Hi.

Iam trying to make a simple VI to count objects using Vision and a USB camera.

I am getting the error:

-1074396080

IMAQ Threshold

Invalid image type.

I have attached my front diagram, block diagram and a picture of the objects I am trying to count.

Hope someon can help me.

Iam still a novice / rookie sow please no flame.

Thx.

/ Jens Poulsen

Link to comment

Thx now it works. nice and quick help.

QUOTE (rpursley @ Mar 16 2009, 09:37 PM)

It appears that the output of the USB snap function is always a RGB U32 image, regardless of what the input image is. That is why you are getting the error. The IMAQ Count Objects 2 vi will not accept and RGB image. After the USB Snap, add an IMAQ Cast Image vi to convert it back to a U8 image and then pass it to the IMAQ Count Objects 2 vi.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.