In a manufacturing process it may be necessary to distinguish the parts of various types produced by different machine-tools and placed on a conveyor. Using an artificial vision system represents a possible solution. Images of the parts can be periodically taken using a video camera. It is considered that all parts are positioned with one of the faces which defines its type on the upper side. Thus, parts’ recognition can be solved by recognizing the shapes from the images. In addition, information about position and orientation of parts can be determined using the captured images. All these information are listed in a text file which can be used by a decision algorithm. This algorithm can choose which parts are useful to assemble different objects. An industrial robot can be commanded using a program written in RobotStudio environment’s programming language (RAPID) to pick the needed parts and place them in a storage area.This paper describes a recognition and measurement of position and orientation method of the different parts produced. In addition, details about implementing this method in MATLAB environment using Image Processing Toolbox and geometrical relations are provided gradually.