One of the main problems in crops is the presence of pests. Traditionally, sticky yellow traps are used to detect pest insects, and they are then analyzed by a specialist to identify the pest insects present in the crop. To facilitate the identification, classification, and counting of these insects, it is possible to use digital image processing (DIP). This study aims to demonstrate that DIP is useful for extracting invariant characteristics of psyllids (Bactericera cockerelli), thrips (Thrips tabaci), whiteflies (Bemisia tabaci), potato flea beetles (Epitrix cucumeris), pepper weevils (Anthonomus eugenii), and aphids (Myzus persicae). The characteristics (e.g., area, eccentricity, and solidity) help classify insects. DIP includes a first stage that consists of improving the image by changing the levels of color intensity, applying morphological filters, and detecting objects of interest, and a second stage that consists of applying a transformation of invariant scales to extract characteristics of insects, independently of size or orientation. The results were compared with the data obtained from an entomologist, reaching up to 90% precision for the classification of these insects.