Wrapping Up
Last updated
Last updated
To finish our project, we need to detect if the golf ball is in the same are as the hole.
To do this, we'll use the Rectangles in Rectangle block:
Go to the blocks bar,
Under Detections/Shapes, go to the Roi Processing section and drag-drop the Rectangles in Rectangle block into the scenario:
An alternative and faster way to add blocks is to use the search functionality. Double-click on an empty area and type Rectangles:
then press Enter on your keyboard. This will automatically create the block under your cursor:
Now, we'll one last block: Image ROI Select. Use the search functionality to put the in the scenario and rearrange functional blocks just as shown below:
Good, here Rectangles in Rectangle block checks if there are any rectangles in the reference area. To see if there is a score made, we'll connect Led Output and Show Image block:
🎉 Congratulations! You've made your very first AugeLab Studio scenario and made a golf scoring detector!
You've learned the most important basics on how to create and run scenarios. AugeLab Studio features scenario building by function blocks alone. Which means you only need to explore more function blocks to empower your capability and that's it!
Now, it's time to run our scenario! Go ahead and click to see the results: