def show_welcome()

in source/frontend/viewer.py [0:0]


    def show_welcome(self, face_image, name):
        image = self.ok_image.copy()
        image_width = image.shape[1]
        resized_face_image = cv2.resize(
            face_image, (self.VIEW_FACE_WIDTH, self.VIEW_FACE_HEIGHT))
        image[int(self.VIEW_FACE_CY - self.VIEW_FACE_HEIGHT/2):int(self.VIEW_FACE_CY + self.VIEW_FACE_HEIGHT/2),
              int(image_width/2 - self.VIEW_FACE_WIDTH/2):int(image_width/2 + self.VIEW_FACE_WIDTH/2)] = resized_face_image
        font = cv2.FONT_HERSHEY_SIMPLEX
        textsize = cv2.getTextSize(name, font, 5, 10)[0]
        text_x = int((image.shape[1] - textsize[0]) / 2)
        cv2.putText(image, '{}'.format(name), (text_x, self.VIEW_TEXT_CY),
                    cv2.FONT_HERSHEY_SIMPLEX, 5, (17, 114, 236), 10, cv2.LINE_AA)
        cv2.putText(image, '{}'.format(name), (text_x, self.VIEW_TEXT_CY),
                    cv2.FONT_HERSHEY_SIMPLEX, 5, (255, 255, 255), 4, cv2.LINE_AA)
        cv2.imshow(self.VIEWER_WINDOW_NAME, image)
        cv2.waitKey(1)
        if self.platform_system == 'Windows':
            winsound.PlaySound(self.OK_SOUND_PATH, winsound.SND_FILENAME)
        elif self.platform_system == 'Linux':
            subprocess.call("aplay -q " + self.OK_SOUND_PATH, shell=True)
        else:
            subprocess.call("afplay " + self.OK_SOUND_PATH, shell=True)