Accurate PCB out line extraction and corner detection for high precision machine vision