TOP » Tutorial Exercises » Detecting Chocolate Coverage (detect_chocolate)

Detecting Chocolate Coverage (detect_chocolate)

Aim

Prepare an algorithm that calculates the fraction of a wafer's area that is covered with chocolate.

Input

A set of images of a single chocolate wafer.

The input image is stored in the detect_chocolate directory.

Output

The region not covered with chocolate layer and the percentage of this area.

Hints

This exercise shows how to use a chain of Blob Analysis techniques.

The solution should consist of the following steps:

  1. Extracting the wafer region.
  2. Extracting the chocolate covered region.
  3. Calculating the ratio of the area not covered with chocolate.

The best way to calculate the coverage ratio is to use a formula.

Labeling connections is explained in this article.

Solution (AVS)

►Click here to show the solution.

Additional Tasks

  • Create an algorithm that will automatically calculate the color of chocolate and it will use it to detect the not covered parts of the wafer.

その他の資料

  • ブロブ解析 - Article presents detailed information about the Blob Analysis technique.