Rectangle tracking issues

We used the vision assistant to create a script, and it works in there. However, when we try to export it as a VI and put it into our vision block, it doesnt work.

We hooked up an image display to the original image in the vision block and another to the image out on the VI. We also hooked up an indicator to the pixel report to see that. However, when we run it (it barely even runs, the indicators flash an image every ten or so seconds), what should be displaying the processed image with the red 8-bit info just displays an unaltered image from the camera and the pixel report shows nothing. Help?]

Here’s the vision block as a whole (that unlabeled block after get image is the vision assistant script)

Here’s within the script itself (in two parts)

On the second part, the last block on top what was originally there, and the one below was added to display the particle report