来源:学术头条
本文约4512字,建议阅读8分钟
本文介绍了外国程序员使用软件利用AI系统Raspberry Pi识别双胞胎儿子的实验,并试图探究在面部识别方面,机器的发展是否已经超过人类大脑。
By 2021, it is widely believed that through learning algorithms and artificial intelligence research, machines outperform humans in many areas. For a long time, machines have dominated the manufacturing and supply chain sectors, even beginning to tackle more complex tasks such as autonomous driving and even writing high-difficulty comprehensive articles.But has the development of machines in facial recognition really surpassed the human brain?
13 years ago, when my identical twin sons were born, my wife and I easily recognized which one was Nicolas and which one was Alexander. After spending 8 weeks in the neonatal intensive care unit (NICU) at California Pacific Medical Center in San Francisco, we knew how to match their individual behaviors with their names. We learned early on what most parents of identical twins come to master:Who a person is depends not only on their appearance but also on the way they walk, talk, and the various behavioral differences when interacting with the world.This broad dataset allows humans to instantly recognize those we know, including identical twins.
Image|Alexander and Nicolas
With widespread applications ranging from identifying criminals to helping us shop, facial recognition has been referred to in the news as a “Matrix-like silver bullet,” and I have been wondering,what can machines achieve in distinguishing faces when the dataset presents very slight differences? For example, identifying identical twins.
-
WiFi: When starting the Pi, it needs to connect to the local network. Create a file named wpa_supplicant.conf and place it at the top level of the SD card. Ensure the file format is plain text and ends with .conf. Before saving the file, add your two-letter country code and the SSID and PSK of the WiFi network (keep the quotes).
-
SSH: Since we are setting up the Pi to run headless (without a monitor), we need a way to connect to it for management and configuration—using SSH. To enable the Linux SSH daemon and have it start automatically, place a file named ssh at the top level of the SD card that contains no content and has no file extension. -
Video: We will start the Pi without a display connected, but we still want to enable video while controlling it remotely, so we must force HDMI to be active even if it is not detected. Edit the config.txt file at the top level of the SD card and uncomment the line hdmi_force_hotplug=1.
-
SSH into Pi as the pi user and ensure you are in the pi user’s home directory: cd~ -
Clone our Raspberry Pi Facial Recognition repository from Github: git clone https://github.com/tomalessi/pi-facial-recognition.git -
Run the installation script (which takes about 1 hour): pi-facial-recognition/pi-setup.sh
-
Pi Setup: SSH into the Pi, execute the command sudo raspi-config, scroll down to Interface Options → VNC and enable it. After enabling this feature, you will need to restart. -
Workstation Setup: Download VNC Viewer from RealVNC and install it for your platform (free download). After installation, set up a new connection from the VNC Viewer to the Pi using its IP address and ensure you can log in. Once logged in successfully, you will see the background of the Raspberry Pi OS.
-
Take a picture by executing the following command and pressing the spacebar while watching the live video: python pi-facial-recognition/face-req.py -c photo -n Tom Replace the -n argument with another argument to continue taking pictures for others. Press ctrl + c in the terminal window to exit. -
Train the model: python pi-facial-recognition/face-req.py -c train. It takes about 10 seconds to analyze each picture and serialize the results for use in analyzing video. -
Analyze video and apply the facial recognition model: python pi-facial-recognition/face-req.py -c analyze. After about ten seconds, the live video should start. All recognized faces will be labeled with that person’s name; otherwise, the face will be labeled as unrecognized. Press “q” to exit. -
Clean the environment and restart by executing: python pi-facial-recognition/face-req.py -c clean.