09-06-2018 01:28 AM
I want to overlay Text in an image for Mismatched Pixels (This may be N numbers N May Varies from 0 to 10k or More based on Number of Pixel Mismatch Found from template image to Acquired image)As IMAQ Overlay points allows Array on points as input, No issues when using IMAQ Overlay points.
But when using IMAQ Overlay Text i am using loops to overlay text as it allows one point at a time and it gets hanged when the N reaches more than 5k.
Any Suggestion on the same will be helpful.
09-13-2018 12:43 AM - edited 09-13-2018 12:44 AM
Try putting a delay in the loop. I think it is loading the CPU (more than 10K is hell lot of points). You can use Wait(ms), just wire 1 or 0 to it and check.
09-21-2018 12:28 AM
09-21-2018 12:37 AM - edited 09-21-2018 12:41 AM
@udka wrote:
Looks like memory issue. How exactly are you using Overlay Text inside loops?post VI it will be easier to understand if there is any issue.
Hello udka,
Yes its an Memory Issue.
My Algorithm Will Find the (X,Y) Co-ordinates of Acquired Image where its not matching with template Image(Matching Pixels of Acquired and template Image)
In the Acquired Image i need to plot [text-X]
When my Co-ordinate count Increases it hangs.
As Mentioned in my Post [Imaq Overlay points supports Array by default but not for Overlay Text] so when i make a Loop to do the same this memory issue occurs.
Currently Restricted my Overly Text Points even it detects more.