Page 97 - Click_GPT_c7_Flipbook
P. 97

Step 4   Provide the output statement for the sunglasses worn or not (this result will be printed).
                          The concept behind the following coding is, if the count of eye in the image is zero, the
                          program should print the “Sunglasses worn” else print “No Sunglasses”.


                          Get eye count == 0, means the person's eyes in the image are not visible. If a person is
                          wearing the sunglasses his/her eyes will not be visible.

                            Block Code






















                              Textual
                               code



















                 Step 5   Add Show Image without border block.

                            Block Code






















                                                                                              Eye Detection   95
   92   93   94   95   96   97   98   99   100   101   102