07-23-2005 02:00 PM
07-23-2005 06:06 PM
07-26-2005 10:56 AM
Hello CC, your algorithm work really FINE!! .
I reduce Auto Median matrix to 3x3 to minimize acute angle distortion (in fact, area loss).
Do you think that is possible to automatically calculate target image AREA in order to set programmatically the maximum Particle Filter remove area setting parameter? Or use another algorithm to clear unwanted particles?
Thank a lot for your help!
07-26-2005 04:01 PM
Apparently, the piece is the particle with the largest area. So you could just search for the max area value and filter the particles accordingly. But you could also define a more complex criterium, using the perimeter to area ratio or any other combination of descriptors, just to be sure that you are selecting the right particle.
07-26-2005 07:49 PM
Yes CC, I agree: working with a specific relationship between specific parameters could be a solution to identify target image.
I enclose an image (1316 pap mdio borde sup GRAD .jpg), what look alike the other ones, but doesn’t work with your script. I’m trying further setting adjustments, without get any improvement.
In my previous post I say: I reduce Auto Median Matrix to 3x3 ,but actually is 5x5, and in practice, doesn’t work as well as your setting. But 7x7 produce high smoothing and cause an important lack of details in four acute “V” angles, between flanges.
Do you think that is possible to improve it, or almost get a best compromise solution?
Thank you again.
07-27-2005 12:44 AM - edited 07-27-2005 12:44 AM
Message Edited by chilly charly on 07-27-2005 07:44 AM
07-27-2005 01:03 AM
07-28-2005 08:40 AM
Hi CC!
Yes, mechanical and lighting parts are pre existent and so difficult to change. Target image color and background belt, can it has a similar yellow coloration, then, direct light, cause very low contrast. No way to improve with color or optical filter.
Your last SCR work really well, much better than the first one, but yes, it is slow to process, even in a fast Pentium. Anyway, I processed a lot of different images and I can believe to get this accomplishment. Congratulations!
I begin to work with “worst cases”. Not always reality is so bad.
I enclose some images with much better contrast.
Can you see a better way to get processed images, with a contour as identical as possible to original image? In other words: without noticeable “jagged” or better straight lines on rotated images, and minimizing subtle changes in form and dimensions….
As you saw, serious issues may occur, when darks spots are in touch with target image borders.
Speed will be a serious constrain because real images could be taken from a 1280 x1024 digital camera. I haven’t yet examples images in such resolution.
With these high contrasted images, do you think is better to work with same scripts, changing some parameter setting, or with a new concept of processing to improve quality and speed?
Thanks a lot
07-28-2005 12:17 PM
07-28-2005 08:25 PM - edited 07-28-2005 08:25 PM
Hi CC.
1] I need locate, move and position every piece of paper, with an error < 0,25mm X an Y axis, and < 0,5º rotation, using 3 servos.
2] Each batch of paper may change in size almost 6:1 (200x120mm to 40x20 mm. Maximum and minimum paper sizes). Of course I can adjust programmatically, any number of parameters before occur every change in size or in transparence degree.
3] Digital camera and lens ensemble, works within a covering area (roughly.) of 360x300mm. A large margin enough, to locate bigger pieces of paper, without mechanical movement.
4] I prefer to leave changes in light system as a last resort, because I’m working with an existing mechanical ensemble, not accessible to modify.
5] Current background illumination comes from an array of side optical fiber with a variable power light source and an opaline light diffuser.
6] SPEED: I need to capture, process a new image, reject a piece if detect any flaw (i.e. loose of any flange) and calculate new X, Y, T coordinates in less than one second (Ideally…) I'm now refining a process to locate target image using a whole image template with Geometric Pattern Matching ( work fine) and locate flaws on each of four corners, with a separate template for each quarter, using GPM too (Yet I have some troubles).
7] Based on my short experience working on GPM, I think, I can’t use it, with a raw, low or high contrast, image without previous processing, to locate flaws or to get precise coordinates.
8] And YES you are right, I’m afraid too. Now, I enlarged an image to a final size of 680 x 745 pixels within an inspection area of 1250x960 pixels.
Scores Vision Assistant 7.1.1 running on a 3GHz P4 with 1GB Dual Channel Ram:
Conveyor belt.scr 500ms /image
Conveyor belt2.scr 1392ms /image
Geometric PM.scr 256 ms /image (searching 5 templates within entire inspection area)
9] Reversing steps as you proposed on you last post, is possible to define a ROI, using GPM Bounding Box output, on a raw image to minimizing processing area. Key points
a] Build a fast algorithm adequate to process contrasted images (like last ones) running within a ROI delimited area (feasibility?)
b] CCD camera work with 3 pre programmed ROI areas 1280x1024, 1000x1000 and 640 x480 (too low resolution). Play with speed vs. precision, finding best compromise relationship.
I appreciate very much your help and opinions.
Best regards
Mensaje editado por altelec