To locate the chip faster, you will need to use a different strategy than pattern matching. It will probably depend a lot on the specific details of the chip and the its surroundings. You may be able to do a line profile across the center of the chip and locate the edges. Two horizontal lines and a vertical line would give you the exact location of the chip if they were accurate.
Bruce
Bruce Ammons
Ammons Engineering