This paper presents an artificial vision application using the image processing toolbox of Matlab®. The purpose is to classify the type variety Tommy mango according to their characteristics and size. To achieve web using a camera that captures the image in a particular workspace for three mangos maximum. It also describes the programming structure of the M-file code, the segmentation and recognition methods for image processing and graphics and obtaining results that describe the process of classification through the network of choice.