Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Cut lets you crop the image manually from all four sides by adjusting the sliders on the right side of the image or by drawing a rectangle around the area you want to crop out and then pressing the Crop button whicg is located under the slider.

The slidebars on the right side of the image let you choose from which side of the image and how many pixels to cut.

If you use the crop function Crop button, the slidebars will adjust automatically.

Info

This is useful when the area on which the detection is required is only on a portion of the image. Cutting the image can shorten training and detection times and prevents detection outside of ROI.

Note

The same cut will apply to all images, so make sure that the are for detection is in the same portion of the image among all the images.

...

Scale

Scale lets you adjust the resolution of the image.

...

Info

This can be useful when the models are already trained and implemented on the production line, but a camera on the line was rotated. So in order to avoid the need to retrain the models, you can just rotate the images back to the position that was used for training.

Or, you can use this function to just rotate images to a position that makes it easier to makeannotations.

...

Background normalization

...

Canny edge detector focuses only on the edges of the objects. You can set the Threshold value to highlight the edges, the higher the Threshold value, the larger the edge must be for it to be shown on the processed image. Details in the OpenCV documentation.

Info

Canny edge detector can be useful for higlighting structural defects, while getting rid of the noise caused by different colors.

cannyedge1.pngcannyedge2.png

Remove background

Remove background function can help you with focusing only on the main object. Offers two types of background removal (histogram and canny), and each can be useful for different kinds of images. The Canny background removal uses  uses either canny edge detectordilation, and erosion or OpenCV histogram.

Canny Edge Histogram

...

When removing background using the Canny Edge detector, you can set the blur size (it blurs the image based on the data of pixels in an NxN rectangle, you set the N in the “Blur” field). Threshold is for setting the size of the edges that will be kept. The rest are settings for Dilataion and Erosion.

Histogram removes background based on the frequency of colors of pixels. The pixel values with frequency between Extreme 1 and Extreme 2 will be kept.

The Background Color table can be used to choose which color to set the removed part of the image to.

Info

Remove background is useful when the background is distracting and you want the AI model to focus only on a particular object on the image.

remove1.pngremove2.png

Unifier

Unifies the position and angle of objects or just puts the angle of the object into Context (if this option is ticked). Remove background that needs to be used before Unifier and have the same background color selected.

Note

Although this seems very useful for unifying the images, it takes a long time and thus it’s not recommended for projects that are required to run within a strict time limit.

...

Contrast equalisation

Equalises the contrast using the CLAHE algorithm, which works with a histogram of a pixel and its surroundings (depending on the kernel size). The clip limit determines the value at which the histogram is clipped. Details in the OpenCV documentation for CLAHE and histogram equalisation.

...

This function lets you adjust the gamma value.

Info

Very useful when the input image is too bright or too dark.

...

Camera calibration

This function can be used to remove some camera-related distortions of the image.

...