Page 135 - CG_v2.1_flipBooks_class_5
P. 135

Step 5   From AI Learning category, click on Facial Feature and drag Get male count block,
                          join it to the left end of “==” block.

                          Get the number block from the Input blocks and attach it to the second slot of “==”
                          block.

                 Step 6   Click on Setting button        of if-do block and add else block to it.

                 Step 7   Take 2 print blocks from Output block and attach them to “do” and “else” portion
                          of the if-do block as shown.

                          The text to be printed if condition is satisfied should be “male” otherwise “female”.

                 Step 8   Click on image icon of Load Image block. Click on Browse button to load image
                          from computer or click on Capture to capture image using webcam. Click on Submit
                          button after loading an image.





























                 Step 9   Click on Run button to see the result.





























                                                                                            AI in Real World  133
   130   131   132   133   134   135   136   137   138   139   140