30-year-old talented office worker uses Python face to monitor BOSS and pretends to be serious at work!

Nowadays, Python programmers can do deep learning algorithms to realize face recognition. Thanks to foreign open source frameworks, although it cannot reach face++ and many face recognition companies, the practical application is not under too much pressure. The following picture shows the 5-point positioning plus emotion test of tensorflow.

face recognition applications

Not long ago, the news exposed a strange company. Python senior programmer uses camera face to recognize boss. When the boss walks into his work area, the computer automatically switches to his own work interface and alarms! (The brain hole is wide open, everyone who goes to work is a talent.)

Convinced?

Do you still think this flower stalk is an Internet rumor?

Also think that face recognition technology is particularly complex and high-level?

Do not! Today Xiaobian is explained with the most simple and easy to understand Python code to bring you this ultimate weapon of fire, burglar and boss.

project address:

Project Objectives:

Identify a specific person and tell you over the phone: Your boss is here!

Project environment introduction:

Python 3.3

Windows 7 or MACOS, and all Linux systems

Camera and PyCharm

Download Python 3.6 and configure the relevant system environment. Press Win key + R key to enter CMD.

Open a command prompt and enter the command to install the dependencies:

Explanation of Python code:

We started explaining the face recognition code line by line to make sure people "dipped" into the realm of artificial intelligence.

video capture = cv2 video capture (0)

Load a sample image and learn how to recognize it.

OBAMAYMIGATION FACEYAULIQUITION.LoopyIMAGEX文件(BOSS2.BMP)

OBAMAAFACEYOMAGION = FACEA IDENTIFICATION(FAB)CODE(OBAMAI IMAGE)[0]

WhileTrue:

Ret, frame = VIEOHOPCATION.Read()

FACEY POSITION = FACEL IDENTIFICATION (FACEL) POSITION (FRAME)

FACE encoding: FACEA recognition

CV2.VIECOCAPPACK function defines the camera object, 0 is the first camera, usually the built-in camera of the notebook.

FaulyActhix.LoopyIMAGEX file: reads the image file under the project.

Facebook recognition: encoding pictures.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325889400&siteId=291194637