X_DOT Posted March 17, 2009 Report Share Posted March 17, 2009 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 Quote Link to comment
rpursley Posted March 17, 2009 Report Share Posted March 17, 2009 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 Quote Link to comment
X_DOT Posted March 18, 2009 Author Report Share Posted March 18, 2009 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.