I\'m searching for a program which detects the border of a image, for example I have a square and the program detects the X/Y-Coords
Example:
alt text http://img
A shape recognition algorithm might help you out, providing it has a solid border of some kind, and the background colour is a solid one.