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 or by drawing a rectangle around the area you want to crop out and then pressing the Crop button.

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, 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.

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.

The value slider specifies the factor by which the image size is adjusted. For example, if you change the value to 0.5 just like on the second image, each side of the image will be halved.

Info

This can be useful when the defects on the image are alrge and clearly visible and thus the resolution of the image doesn’t need to be so high. Reducing the resolution can shorten inference and training times.

...

Rotation

You can rotate all images anti-clockwise by a specified angle.

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.

...

Background normalization

Background normalization serves for unifying colors. It evaluates each pixel and based on how many surrounding pixels are of a similar colour it shifts that pixel closer to gray. The value specifies the size of the are in which it takes the surrounding pixels into consideration, meaning the lower the value, the more gray/shifted will the resulting image be.

Info

This is useful if the things you want to detect take up only a small portion of the image, but are of very different color than their surroundings.

...

Blur

This function blurs the picture and reduces noise. Details in the OpenCV documentationBlur blurres the image by averaging the value of a pixel depending on the values of the surrounding pixels. The value specifies the area in which the surrounding pixels are use to calculate the new pixel value. For example, with value set to 100, it would calculate a value of a pixel based on it’s surrounding pixels in a 100 by 100 rectange around that pixel.

Info

Blur can be useful in situations when your trained models are detecting small defects that you don’t want them to detect. This can make blur especially useful when using Anomaly Detector.

...

Canny Edge Detector

Canny edge detector focuses only on the edges of the objects. You can set the Threshold value to highlight the edges. Details in the OpenCV documentation.

...