Page 375 - MDP2020-3
P. 375

················································································  명장양성프로젝트  【MDP】  과제발표회  자료집  Ⅲ    |  369


                                            pass
                                    else:    #  해당  사람이  아닐  때

                                            print(min_score_name  +  "이  아닙니다")
                                            pass
                            except:    #  얼굴  검출  안됨
                                    print("얼굴  검출  실패")
                                    pass

                            if  faceCnt  >=  30:    #  버튼  닫을  때  사용
                                    faceCnt  =  0
                                    break
                    cap.release()
                    cv2.destroyAllWindows()





            def  convTk(strPath,  width,  height):
                    src  =  cv2.imread(strPath)
                    src  =  cv2.resize(src,  (width,  height))

                    img  =  cv2.cvtColor(src,  cv2.COLOR_BGR2RGB)
                    img  =  Image.fromarray(img)
                    imgtk  =  ImageTk.PhotoImage(image=img)
                    return  imgtk





            sSPerson  =  ""
            sPerson  =  StringVar()
            r4c  =  StringVar()



            frameNums  =  Frame(frame,  relief="solid",  bg=numsColor)


            numsFrame      =    Frame(frameNums,       relief="solid",   bg="white",    bd=3,     width=400,
            height=220)
            numsFrame2      =    Frame(frameNums,       relief="solid",   bg="white",    bd=3,    width=400,

            height=300)
            shOptionFrame  =  Frame(frameNums,  bg=barColor,  width=100,  height=720)


            mainFont  =  font.Font(family="여기어때  잘난체",  size=15)
            listFont  =  font.Font(family="여기어때  잘난체",  size=17)

            l2Font  =  font.Font(family="여기어때  잘난체",  size=22)
            numsSFont  =  font.Font(family="여기어때  잘난체",  size=25)
            statusFont  =  font.Font(family="여기어때  잘난체",  size=21)
            numsFont  =  font.Font(family="여기어때  잘난체",  size=100)
   370   371   372   373   374   375   376   377   378   379   380