Is it possible to auto detect edge after image capture?

Taifun