<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Raspberry Pi Facial Recognition</title><link>/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><description>This project is done with Open Source Computer Vision Library (OpenCV). OpenCV was designed for computational efficiency and with a strong focus on real-time applications. So, it&amp;#39;s perfect for real-time face recognition using a camera. To create a co</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Thu, 06 Apr 2023 09:26:16 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>chetanj85</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;hi sharib nice content shared by you.&lt;/p&gt;
&lt;p&gt;do you have face mask detection with name by raspberry pi.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;or&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;face mask detection with name by raspberry pi and if not then message comming on mobile no&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Fri, 03 Feb 2023 13:16:45 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>alpaslan</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hello again.&lt;br /&gt;The face recognition system works well, but since the names of the faces it recognizes are in Turkish, it prints it as a question mark (?). Turkish characters are &amp;Ccedil;&amp;ccedil;ğıı&amp;Ouml;Şş&amp;Uuml;. Our language encoding is utf-8 or charset-1254.&lt;br /&gt;There is a source for the picture or video on the internet, but I couldn&amp;#39;t find it for the camera.&lt;br /&gt;&lt;br /&gt;Unfortunately, whatever I did to the line below was unsuccessful. Any help possible please?&lt;br /&gt;&lt;br /&gt;# draw the guessed face name on the image&lt;br /&gt;cv2.rectangle(frame, (left, top), (right, bottom),&lt;br /&gt;(0, 255, 0), 2)&lt;br /&gt;y = top - 15 if top - 15 &amp;gt; 15 otherwise top + 15&lt;br /&gt;cv2.putText(frame, name, (left, y), cv2.FONT_HERSHEY_SIMPLEX,&lt;br /&gt;0.75, (0, 255, 0), 2)&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Thu, 02 Feb 2023 07:06:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>alpaslan</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;For the face_recognize.py file to run automatically every time the Raspberrypi starts;&lt;br /&gt;I created /home/pi/.config/autostart/basla.desktop file. The file starts and its contents are below. But it shows all faces as Unknown.&lt;br /&gt;The permission status of Dataset and User folder is 755. Both folders are owned by user pi. By the way, it works fine with the python3 face__recognize.py command from the terminal, but it recognizes people who are introduced with the basla.desktop file as Unknown, what can I do?&lt;br /&gt;&lt;br /&gt;basla.desktop content is below:&lt;br /&gt;[Desktop Entry]&lt;br /&gt;Encoding=UTF-8&lt;br /&gt;Name=PyServer&lt;br /&gt;Exec=xterm -hold -e &amp;quot;sleep 5 &amp;amp;&amp;amp; /usr/bin/python /home/pi/Desktop/sound/face_recognize.py&amp;quot;&lt;br /&gt;Icon=lxterminal&lt;br /&gt;Type=Application&lt;br /&gt;Categories=Utility;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Wed, 28 Jul 2021 09:13:50 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>xavierrichars</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi sharib, &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried to build a simple attendance system using face recognition using the face recognition library. It works like charm but the problem that I have faced is the female face of south Indians are not recognized properly many mismatched faces and names during recognition male faces are not having that many issues. After studying and tried of some changes in codes I cant rectify it. It will be better if you give me a solution to rectify this issue.&amp;nbsp; Waiting for your reply. It not showing as unknown if the faces are trained it always shows some trained names for girls&amp;#39; faces.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Thu, 01 Apr 2021 04:07:20 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>prashantvasala</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Can we issue a voice command and recognise any face rather than going into the OS and doing everything manually&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Tue, 23 Mar 2021 12:51:29 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>albertabeef</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Great project !&lt;/p&gt;&lt;p&gt;Thanks for sharing &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-64f70b1d-86aa-4c09-9341-98cfc0cb5d30/8738.contentimage_5F00_1.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Sun, 10 Jan 2021 05:38:58 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>9m2rie</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;hi need to ask. When execute &amp;quot;pyhton3 face_recognition.py&amp;quot; some error come out like this. Please help and advise.&lt;/p&gt;&lt;p&gt;pi@raspberrypi:~/FaceDatasetGui $ python3 face_recognize.py &lt;/p&gt;&lt;p&gt;[INFO] quantifying faces...&lt;/p&gt;&lt;p&gt;[INFO] processing image 1/12&lt;/p&gt;&lt;p&gt;[INFO] processing image 2/12&lt;/p&gt;&lt;p&gt;[INFO] processing image 3/12&lt;/p&gt;&lt;p&gt;[INFO] processing image 4/12&lt;/p&gt;&lt;p&gt;[INFO] processing image 5/12&lt;/p&gt;&lt;p&gt;[INFO] processing image 6/12&lt;/p&gt;&lt;p&gt;[INFO] processing image 7/12&lt;/p&gt;&lt;p&gt;[INFO] processing image 8/12&lt;/p&gt;&lt;p&gt;[INFO] processing image 9/12&lt;/p&gt;&lt;p&gt;Traceback (most recent call last):&lt;/p&gt;&lt;p&gt;&amp;nbsp; File &amp;quot;face_recognize.py&amp;quot;, line 33, in &amp;lt;module&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rgb = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)&lt;/p&gt;&lt;p&gt;cv2.error: OpenCV(4.5.1-dev) /home/pi/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function &amp;#39;cvtColor&amp;#39;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Thu, 03 Dec 2020 15:57:30 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>fajarit19</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hiii Sharib is there can using website to display the image recognition.. I mean without frame. I would like to build some website include a frame from webrowser with face recognition..or anyone can help me please.. &lt;/p&gt;&lt;p&gt;thanks before&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Mon, 26 Oct 2020 06:26:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>murtezha</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Sharib,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you so much! I followed your tutorial and made my setup working. I&amp;#39;m still a newbie in Raspberry and OpenCV, I wanna ask you how to create that shortcut on your desktop? I&amp;#39;m searching from another website but it still not working.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve create the .desktop file, with exec /home/pi/FaceDatasetGui/faceDataset.py &lt;br /&gt;and using chmod +x &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;but it&amp;#39;s still not working&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;please help me what step do I need to do for creating the shortcut&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;regards,&lt;/p&gt;&lt;p&gt;Murtezha&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Fri, 23 Oct 2020 11:09:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>fajarit19</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;hello I am student is studying face recognition.. I found your post then i following your step. I am using raspberry Pi 3 model B.. its work but I get this error.&lt;/p&gt;&lt;p&gt;when I ran python3 faceDataset.py ===&amp;gt; PhotoImage object no attribute&lt;/p&gt;&lt;p&gt;then i try to start python3 face_recognize.py its work.. anyone can help please..&lt;span&gt;[View:/resized-image/__size/620x473/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-64f70b1d-86aa-4c09-9341-98cfc0cb5d30/6644.contentimage_5F00_206116.png:620:473]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Thu, 15 Oct 2020 11:07:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>alpaslan</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span lang="en"&gt;# Make the following additions to the Python libraries into the faceDataset.py file.&lt;br /&gt;import imutils&lt;br /&gt;from imutils import paths&lt;br /&gt;from imutils.video import VideoStream&lt;br /&gt;from imutils.video import FPS&lt;br /&gt;import face_recognition&lt;br /&gt;import pickle&lt;br /&gt;import time&lt;br /&gt;import cv2&lt;br /&gt;import os&lt;br /&gt;import mysql.connector&lt;br /&gt;import pymysql&lt;br /&gt;import datetime&lt;br /&gt;&lt;br /&gt;# Then create the database in PhpMyAdmin and add the following lines to the python file;&lt;br /&gt;&lt;br /&gt;mydb = mysql.connector.connect (&lt;br /&gt;host = &amp;quot;localhost&amp;quot;,&lt;br /&gt;user = &amp;quot;raspberry&amp;quot;,&lt;br /&gt;passwd = &amp;quot;pi&amp;quot;,&lt;br /&gt;database = &amp;quot;raspberry_sistem&amp;quot;,&lt;br /&gt;)&lt;br /&gt;mycursor = mydb.cursor ()&lt;br /&gt;sql = &amp;quot;INSERT INTO object_enter (name, date) VALUES (% s,% s)&amp;quot;&lt;br /&gt;&lt;br /&gt;#Usb Webcam Module Plugin&lt;br /&gt;vs = VideoStream (useUsbCamera = True) .start ()&lt;br /&gt;time.sleep (2.0)&lt;br /&gt;&lt;br /&gt;# Between these two lines;&lt;br /&gt;name = max (counts, key = counts.get)&lt;br /&gt;........&lt;br /&gt;........&lt;br /&gt;........&lt;br /&gt; names.append (name)&lt;br /&gt;&lt;br /&gt;# Change it as follows.&lt;br /&gt;&amp;nbsp; name = max (counts, key = counts.get)&lt;br /&gt;&amp;nbsp; time = datetime.datetime.now ()&lt;br /&gt;&amp;nbsp; val = (name, time)&lt;br /&gt;&amp;nbsp; mycursor.execute (sql, val)&lt;br /&gt;&amp;nbsp; mydb.commit ()&lt;br /&gt;&amp;nbsp; print (name)&lt;br /&gt;&amp;nbsp; names.append (name)&lt;br /&gt;&lt;br /&gt;# and run the python file. You should be able to see that the date and name will be recorded in your database.&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Tue, 22 Sep 2020 12:50:33 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>tap50</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Can this be modified to work with a USB camera?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Sat, 29 Aug 2020 09:01:08 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>fatkast</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have run everything and it is working quiet perfectly. Only issue being the fact that after opening face_recognize.py, the system bugs and restarts by itself. Also, i would like to know how we can print on an LCD screen &amp;quot;Access granted&amp;quot; after it recognizes the face and also adds you automatically on a database.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And last thing, how to make it run from the boot so we don&amp;#39;t need a screen.&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Mon, 03 Aug 2020 18:23:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>alpaslan</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello there.&lt;/p&gt;&lt;p&gt;First of all, thank you very much for this working software.&lt;/p&gt;&lt;p&gt;I want to write the objects that the face_recognize.py file recognizes to a mysql database.&lt;/p&gt;&lt;p&gt;There are only id - date - who columns in the database. How should I add to the Python file? If you can help a little, it will be very acceptable. Thank you very much.&lt;/p&gt;&lt;p&gt;Good work&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry Pi Facial Recognition</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pi-facial-recognition</link><pubDate>Sun, 28 Jun 2020 05:16:08 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:64f70b1d-86aa-4c09-9341-98cfc0cb5d30</guid><dc:creator>eric10</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello friends, I made this code and it works for me, but when you recognize a person facially, the camera becomes very slow, I have a Raspberry Pi 4 and a 64GB micro SD. Any recommendation so that it is not so slow? Thank you.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=6486&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>