Machine Vision Algorithm And Application