AI needs a large dataset for training and learning. This dataset includes images of good and defective products, dimensions, or other important information required to check the quality.