Wrapping Up

In this part, you will check whether the detected golf ball is inside the hole area, then show the final result.

1

Add Rectangles in Rectangle

Go to the blocks bar. Under Detections/Shapes, open Roi Processing and drag Rectangles in Rectangle into the scenario.

chevron-rightAdd the block with search insteadhashtag

You can add blocks faster with search. Double-click an empty area and type Rectangles.

Search for Rectangles in Rectangle
Search for a block

Press Enter. The block is created under your cursor.

Rectangles in Rectangle block
Rectangles in Rectangle block
2

Add the hole ROI

Add one more Image ROI Select block. Use it to select the hole area.

Rearrange and connect the blocks as shown below.

Rectangles in Rectangle checks whether detected rectangles are inside the selected reference area.

3

Add visual outputs

Connect Led Output and Show Image so you can see whether a score is detected.

Led Output and Show Image connected
4

Run the finished scenario

Click run to run the scenario.

Finished golf scoring detector

You have finished your first AugeLab Studio scenario: a golf scoring detector.

You learned how to add blocks, connect sockets, select ROIs, run a scenario, stabilize a reference image, detect an object, and display a final result.

Last updated