Computer Vision — Ezblock

This project will officially enter the field of computer vision!

Note

You can read How to Use the Video Function?. Come and carry out this project smoothly.

Program

After opening the example, you can see the following code block.

../_images/sp210928_165255.png

Switch to the Remote Control interface, and you will see the following widgets.

../_images/sp210928_165642.png

After the program is running, you can switch the slider widget to turn on/off the face detection; click the D-Pad to select the color of the detection; click the button to print the detection result.

How it works?

../_images/sp210928_170920.png

This block is used to enable the camera module.

../_images/sp210928_171021.png

These two blocks are used to enable the face detection/color detection function.

../_images/sp210928_171125.png

These two blocks are used to output information. The detection result has five output values, namely coordinate x value, coordinate y value, width, height, and number.