Research Article

A Benchmarking of Learning Strategies for Pest Detection and Identification on Tomato Plants for Autonomous Scouting Robots Using Internal Databases

Table 2

Computer vision functions for pest detection.

IMAGE PREPROCESSING FUNCTIONS

Check image qualityChecks the image quality level in order to determine whether the image is processed or a new one is requested. Different functions or filters are applied depending on the image quality level.

Emphasize imageEnhances the contrast of the image.

Gauss filterSmoothens an image using discrete Gauss functions.

IlluminateVery dark parts of the image are illuminated more strongly, and very light ones are darkened.

Image enhancementModifies the image to improve its visual appearance. Sharpening and magnifying algorithms will accentuate pictures features.

Image restorationRemoves blur and noises from images.

BACKGROUND SUBSTRACTION FUNCTIONS

Decompose RGBConverts a three-channel image into three one-channel images with the same definition domain.

RGB to HSVTransforms an image from the RGB colour space to an HSV (Hue, Saturation, and Value). HSV is defined in a way that is similar to how humans perceive colours.

Reduce image domainReduces the definition domain of the given image to the indicated region. It subtracts a region to a specific image.

Region segmentationSegments images into regions of the same intensity.

Threshold imageSegments an image using a local threshold. It selects those regions in which the pixels fulfill a threshold condition.

Automatic thresholdSegments an image using thresholds determined from its histogram.

Edge detectionDetects edges using filters such as Deriche, Lanser, Shen, Canny, and Sobel.

FEATURE EXTRACTION FUNCTIONS

Get region featuresGets different features related to colour, texture, and shape.

Connected regionsDetermines the connected components of the input regions.

Select specific shapeChooses regions according to shape feature values such as area, width, and circularity.

Count and crop regionsCounts and crops the possible regions with pests. It generates the input for the machine learning algorithm for pest classification.