SlideShare a Scribd company logo
1 of 31
Face Mesh Filter Camera and detection
system in AI technology
Name: Nafiz Md Imtiaz Uddin
Id no: 2520190011
Course: Development of Mobile Application
Instructor: Dr. Ata Jahangir Moshayedi
What is Camera Filtering in the app
inventor in the AI?
AI cameras are simply cameras that use AI programs to wisely deal with
images and videos. Computational photography is usually the core of an
AI(artificial intelligence).
AI systems have been able to accomplish useful tasks like classifying
images or understanding spoken language. AI computations can be
performed on the smartphones and tablets available to students.
https://appinventor.mit.edu/explore/ai-with-mit-app-inventor
https://appinventor.mit.edu/explore/resources/ai/facemesh
Prerequisite of learning AI technology
▪ Know good math and physics
▪ Good programming language knowledge
▪ Technique of logic and algorithm
▪ Graphical modeling
▪ Cognitive science theory
▪ Automation, Robotic system
▪ GoodAnalytical Skills
How Facial Recognition Works
How Facial Recognition Works
How Facial Recognition Works
Designer Section of Face Mesh Camera
Screenshot of Facemesh filtering
Designer section
FaceExtension in App Inventor
Face Point Format
▪ Each key point is returned as a list of
two elements representing the x and y-
coordinates. For example, the key
point “forehead” will be a list of 2
elements:
▪ [forehead x-coord, forehead y-coord]
▪ When Facemesh is unable to track the
entirety of a face, it will return an
empty list so the filter will not work;
make sure the face is within the camera
frame!
▪ Here we have two variables: countingphoto simply counts how
many photos have been taken, and recentphoto stores the file
name of the most recently taken photo.
Take 2 variables and TakePhotoButton Sharing
▪ When we click the TakePhotoButton, the recentphoto file
name is updated to be the current image, and the
countingphoto increases by 1. The first photo we take will be
called ‘IMG1.jpg’ and the second photo will be called ‘IMG2.jpg’,
etc. These files are all saved to our device. Depending on our
device, we can find the photos wherever files are saved. For
example, on a Google Pixel, the photos are saved to the “Files”
app. The TextToSpeech means that a robot will say “Okay done”
out loud when the photo is taken.
▪ When we click the SharePhotoButton, we can share the most
recent photo! We’ll be able to share it using any app installed on
our device that shares images, such as Google Drive, Dropbox,
etc.
▪ Now we need to write some code
to place the three ImageSprites
(leftEar, rightEar, and whiskers)
on the corresponding points on
the face.
▪ placeImage procedure places the
center of img, the ImageSprite,
on the facePoint, the key point
tracked by Facemesh.
Width and Height section
To get xf, use the following
block that gets the item at
index 1 from the facePoint list.
To get yf, use the following
block that gets the item at
index 2 from the facePoint list.
Using Function: To take procedure
Placing the ears and whiskers
▪ By calling ImageSprite.MoveTo (x, y), we move the ImageSprite’s top-left corner
to (x, y).
▪ However, if we want the center of img to be placed on the facePoint (xf, yf), we
have to do some simple math to get the coordinates of its top-left corner, which
we will call (xc, yc).
▪ Note that in this x-y coordinate system of the Canvas, (0, 0) is the top left corner.
The difference from the normal Cartesian coordinate system is that y increases
downwards.
▪ In the scenario above, we want to place the left ear centered on the left forehead
facePoint (xf, yf) returned by Facemesh.
▪ To get the adjusted horizontal placement
– xc = xf - 0.5 * image width
▪ To get the adjusted vertical placement
– yc = yf - 0.5 * image height
▪ When we call ImageSprite.MoveTo (xc, yc), the image is centered on (xf, yf), which
are the coordinates of the facePoint.
Face Updated
▪ When the FaceExtension detects a face, it triggers the following
FaceExtension1.FaceUpdated event.This event handler’s code has
also been created for us.
Call 2 functions.
Next slide show
Moving
▪ The way a basic filter works has two parts.
1. moving: when the face moves, the images move
along with the face.
2. resizing: when the face becomes bigger or
smaller, the images are resized accordingly.
▪ Call placeImage to move leftEar to the left-side of
the forehead (FaceExtension.LeftForehead).
▪ Call placeImage to move rightEar to the right-side
of the forehead (FaceExtension.RightForehead).
▪ Call placeImage to move whiskers to the top of the
mouth (FaceExtension.MouthTop).
▪ Remember, placeImage takes in two arguments:
1. the ImageSprite object
2. a face key point detected by FaceExtension.
Resizing
▪ When we define the width or height of the image, we’re defining
the width or height of the image bounding box (highlighted in red).
▪ All widths and heights are arbitrarily chosen to fit what we might
expect; we can change them as we like.
Whiskers and Ears setting
▪ Whiskers:
▪ Width is set to the width of the face.
▪ Height is the distance between the
eye and the mouth.
▪ Ears:
▪ Width is set to the distance between
the cheek and the nose.
▪ These have square-shaped bounding
boxes, so we can set the width and
height to be the same
Block design
Block design
Block design
Facemesh Filter Camera design and
block
https://mit-cml.github.io/extensions/data/extensions/edu.mit.appinventor.ai.facemesh.aix
Clip
Testing Mobile
Check that this app can track a face and
have the ears and whiskers correctly
positioned on the face.
Another one Screenshot of designer
section
Designer Section of Face detection
Block section
About this Face detection
▪ We direct the front camera of our versatile towards us, we notice our face.
▪ The augmentation takes 450 focuses from our face. Lattice.
▪ If we mark the Show Mesh Property we will see the situation of each point all over.
▪ They look tiny and extremely near one another.
▪ So we will make an application to see the quantity of each point in a more clear manner.
▪ I have just put the even focuses, since altogether there are 450 and if we put every one of
them they will blend in with one another.
▪ As we move, these focuses will change their position x, y
▪ Each point has two directions.
▪ A few focuses are found straightforwardly like Chin, Forehead, LeftEyeBottom etc.
About this Face detection
Testing Mobile
If here
BackgoundImage is
disable, just not
show face
Nafiz Md Imtiaz Uddin
15679763939@163.com
江西理工大学
计算机科学与技术 (19计算机班)
Computer Science and Technology(2019-2023)
Jiangxi University of Science andTechnology

More Related Content

What's hot

Cơ sở lý thuyết điều khiển tự động nguyễn văn hòa, 216 trang
Cơ sở lý thuyết điều khiển tự động   nguyễn văn hòa, 216 trangCơ sở lý thuyết điều khiển tự động   nguyễn văn hòa, 216 trang
Cơ sở lý thuyết điều khiển tự động nguyễn văn hòa, 216 trangCửa Hàng Vật Tư
 
HƯỚNG DẪN CÁCH TRẢI DÂY CUỐN THEO PHƯƠNG PHÁP CLEMENT
HƯỚNG DẪN CÁCH TRẢI DÂY CUỐN THEO PHƯƠNG PHÁP CLEMENTHƯỚNG DẪN CÁCH TRẢI DÂY CUỐN THEO PHƯƠNG PHÁP CLEMENT
HƯỚNG DẪN CÁCH TRẢI DÂY CUỐN THEO PHƯƠNG PHÁP CLEMENTPMC WEB
 
Kỹ thuật điện tử - bài tập diode
Kỹ thuật điện tử - bài tập diodeKỹ thuật điện tử - bài tập diode
Kỹ thuật điện tử - bài tập diodecanhbao
 
NGHỊCH LƯU VÀ BIẾN TẦN.pdf
NGHỊCH LƯU VÀ BIẾN TẦN.pdfNGHỊCH LƯU VÀ BIẾN TẦN.pdf
NGHỊCH LƯU VÀ BIẾN TẦN.pdfMan_Ebook
 
Bài giảng kỹ thuật điện điện tử
Bài giảng kỹ thuật điện điện tửBài giảng kỹ thuật điện điện tử
Bài giảng kỹ thuật điện điện tửLê ThắngCity
 

What's hot (6)

Cơ sở lý thuyết điều khiển tự động nguyễn văn hòa, 216 trang
Cơ sở lý thuyết điều khiển tự động   nguyễn văn hòa, 216 trangCơ sở lý thuyết điều khiển tự động   nguyễn văn hòa, 216 trang
Cơ sở lý thuyết điều khiển tự động nguyễn văn hòa, 216 trang
 
HƯỚNG DẪN CÁCH TRẢI DÂY CUỐN THEO PHƯƠNG PHÁP CLEMENT
HƯỚNG DẪN CÁCH TRẢI DÂY CUỐN THEO PHƯƠNG PHÁP CLEMENTHƯỚNG DẪN CÁCH TRẢI DÂY CUỐN THEO PHƯƠNG PHÁP CLEMENT
HƯỚNG DẪN CÁCH TRẢI DÂY CUỐN THEO PHƯƠNG PHÁP CLEMENT
 
Kỹ thuật điện tử - bài tập diode
Kỹ thuật điện tử - bài tập diodeKỹ thuật điện tử - bài tập diode
Kỹ thuật điện tử - bài tập diode
 
NGHỊCH LƯU VÀ BIẾN TẦN.pdf
NGHỊCH LƯU VÀ BIẾN TẦN.pdfNGHỊCH LƯU VÀ BIẾN TẦN.pdf
NGHỊCH LƯU VÀ BIẾN TẦN.pdf
 
Bài giảng kỹ thuật điện điện tử
Bài giảng kỹ thuật điện điện tửBài giảng kỹ thuật điện điện tử
Bài giảng kỹ thuật điện điện tử
 
Đề tài: Hệ thống cung cấp điện cho khu công nghiệp Bát Tràng, HOT
Đề tài: Hệ thống cung cấp điện cho khu công nghiệp Bát Tràng, HOTĐề tài: Hệ thống cung cấp điện cho khu công nghiệp Bát Tràng, HOT
Đề tài: Hệ thống cung cấp điện cho khu công nghiệp Bát Tràng, HOT
 

Similar to App inventor || Face Mesh Filter Camera and detection system in AI technology ||

Face Detection - David
Face Detection - DavidFace Detection - David
Face Detection - DavidVu Tran
 
PBL presentation p2.pptx
PBL presentation p2.pptxPBL presentation p2.pptx
PBL presentation p2.pptxTony383416
 
Iphone ipad-application
Iphone ipad-applicationIphone ipad-application
Iphone ipad-applicationGuojun Li
 
"Exploring the Potential of Apple Vision Pro: A New Era in Human-Computer Int...
"Exploring the Potential of Apple Vision Pro: A New Era in Human-Computer Int..."Exploring the Potential of Apple Vision Pro: A New Era in Human-Computer Int...
"Exploring the Potential of Apple Vision Pro: A New Era in Human-Computer Int...AslamAslu19
 
Automated Face Detection System
Automated Face Detection SystemAutomated Face Detection System
Automated Face Detection SystemAbhiroop Ghatak
 
Human Face Identification
Human Face IdentificationHuman Face Identification
Human Face Identificationbhupesh lahare
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Antispoofing techniques in Facial recognition
Antispoofing techniques in Facial recognitionAntispoofing techniques in Facial recognition
Antispoofing techniques in Facial recognitionRishabh shah
 
IRJET - Emotion Recognising System-Crowd Behavior Analysis
IRJET -  	  Emotion Recognising System-Crowd Behavior AnalysisIRJET -  	  Emotion Recognising System-Crowd Behavior Analysis
IRJET - Emotion Recognising System-Crowd Behavior AnalysisIRJET Journal
 
Final presentation
Final presentationFinal presentation
Final presentationjessrose93
 
Question 4 evaluation
Question 4 evaluationQuestion 4 evaluation
Question 4 evaluationjessrose93
 
Xeric Facial Recognition Whitepaper
Xeric Facial Recognition WhitepaperXeric Facial Recognition Whitepaper
Xeric Facial Recognition WhitepaperSunny Tan
 
Question 4 presssss
Question 4 presssssQuestion 4 presssss
Question 4 presssssjessrose93
 
Machine Learning Model for Gender Detection
Machine Learning Model for Gender DetectionMachine Learning Model for Gender Detection
Machine Learning Model for Gender DetectionTecnoIncentive
 
Facial emotion recognition
Facial emotion recognitionFacial emotion recognition
Facial emotion recognitionRahin Patel
 
human face detection using matlab
human face detection using matlabhuman face detection using matlab
human face detection using matlabshamima sultana
 

Similar to App inventor || Face Mesh Filter Camera and detection system in AI technology || (20)

Face Detection - David
Face Detection - DavidFace Detection - David
Face Detection - David
 
App Inventor || Face emotion || Data saver || B.Sc. student task
App Inventor || Face emotion || Data saver || B.Sc. student taskApp Inventor || Face emotion || Data saver || B.Sc. student task
App Inventor || Face emotion || Data saver || B.Sc. student task
 
PBL presentation p2.pptx
PBL presentation p2.pptxPBL presentation p2.pptx
PBL presentation p2.pptx
 
Animation
AnimationAnimation
Animation
 
Question 4
Question 4 Question 4
Question 4
 
Iphone ipad-application
Iphone ipad-applicationIphone ipad-application
Iphone ipad-application
 
"Exploring the Potential of Apple Vision Pro: A New Era in Human-Computer Int...
"Exploring the Potential of Apple Vision Pro: A New Era in Human-Computer Int..."Exploring the Potential of Apple Vision Pro: A New Era in Human-Computer Int...
"Exploring the Potential of Apple Vision Pro: A New Era in Human-Computer Int...
 
Automated Face Detection System
Automated Face Detection SystemAutomated Face Detection System
Automated Face Detection System
 
Multimedia chapter 5
Multimedia chapter 5Multimedia chapter 5
Multimedia chapter 5
 
Human Face Identification
Human Face IdentificationHuman Face Identification
Human Face Identification
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Antispoofing techniques in Facial recognition
Antispoofing techniques in Facial recognitionAntispoofing techniques in Facial recognition
Antispoofing techniques in Facial recognition
 
IRJET - Emotion Recognising System-Crowd Behavior Analysis
IRJET -  	  Emotion Recognising System-Crowd Behavior AnalysisIRJET -  	  Emotion Recognising System-Crowd Behavior Analysis
IRJET - Emotion Recognising System-Crowd Behavior Analysis
 
Final presentation
Final presentationFinal presentation
Final presentation
 
Question 4 evaluation
Question 4 evaluationQuestion 4 evaluation
Question 4 evaluation
 
Xeric Facial Recognition Whitepaper
Xeric Facial Recognition WhitepaperXeric Facial Recognition Whitepaper
Xeric Facial Recognition Whitepaper
 
Question 4 presssss
Question 4 presssssQuestion 4 presssss
Question 4 presssss
 
Machine Learning Model for Gender Detection
Machine Learning Model for Gender DetectionMachine Learning Model for Gender Detection
Machine Learning Model for Gender Detection
 
Facial emotion recognition
Facial emotion recognitionFacial emotion recognition
Facial emotion recognition
 
human face detection using matlab
human face detection using matlabhuman face detection using matlab
human face detection using matlab
 

Recently uploaded

Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxLimon Prince
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxCeline George
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfJerry Chew
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 

Recently uploaded (20)

Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 

App inventor || Face Mesh Filter Camera and detection system in AI technology ||

  • 1. Face Mesh Filter Camera and detection system in AI technology Name: Nafiz Md Imtiaz Uddin Id no: 2520190011 Course: Development of Mobile Application Instructor: Dr. Ata Jahangir Moshayedi
  • 2. What is Camera Filtering in the app inventor in the AI? AI cameras are simply cameras that use AI programs to wisely deal with images and videos. Computational photography is usually the core of an AI(artificial intelligence). AI systems have been able to accomplish useful tasks like classifying images or understanding spoken language. AI computations can be performed on the smartphones and tablets available to students.
  • 5. Prerequisite of learning AI technology ▪ Know good math and physics ▪ Good programming language knowledge ▪ Technique of logic and algorithm ▪ Graphical modeling ▪ Cognitive science theory ▪ Automation, Robotic system ▪ GoodAnalytical Skills
  • 9. Designer Section of Face Mesh Camera
  • 10. Screenshot of Facemesh filtering Designer section
  • 12. Face Point Format ▪ Each key point is returned as a list of two elements representing the x and y- coordinates. For example, the key point “forehead” will be a list of 2 elements: ▪ [forehead x-coord, forehead y-coord] ▪ When Facemesh is unable to track the entirety of a face, it will return an empty list so the filter will not work; make sure the face is within the camera frame!
  • 13. ▪ Here we have two variables: countingphoto simply counts how many photos have been taken, and recentphoto stores the file name of the most recently taken photo. Take 2 variables and TakePhotoButton Sharing ▪ When we click the TakePhotoButton, the recentphoto file name is updated to be the current image, and the countingphoto increases by 1. The first photo we take will be called ‘IMG1.jpg’ and the second photo will be called ‘IMG2.jpg’, etc. These files are all saved to our device. Depending on our device, we can find the photos wherever files are saved. For example, on a Google Pixel, the photos are saved to the “Files” app. The TextToSpeech means that a robot will say “Okay done” out loud when the photo is taken. ▪ When we click the SharePhotoButton, we can share the most recent photo! We’ll be able to share it using any app installed on our device that shares images, such as Google Drive, Dropbox, etc.
  • 14. ▪ Now we need to write some code to place the three ImageSprites (leftEar, rightEar, and whiskers) on the corresponding points on the face. ▪ placeImage procedure places the center of img, the ImageSprite, on the facePoint, the key point tracked by Facemesh. Width and Height section To get xf, use the following block that gets the item at index 1 from the facePoint list. To get yf, use the following block that gets the item at index 2 from the facePoint list. Using Function: To take procedure
  • 15. Placing the ears and whiskers ▪ By calling ImageSprite.MoveTo (x, y), we move the ImageSprite’s top-left corner to (x, y). ▪ However, if we want the center of img to be placed on the facePoint (xf, yf), we have to do some simple math to get the coordinates of its top-left corner, which we will call (xc, yc). ▪ Note that in this x-y coordinate system of the Canvas, (0, 0) is the top left corner. The difference from the normal Cartesian coordinate system is that y increases downwards. ▪ In the scenario above, we want to place the left ear centered on the left forehead facePoint (xf, yf) returned by Facemesh. ▪ To get the adjusted horizontal placement – xc = xf - 0.5 * image width ▪ To get the adjusted vertical placement – yc = yf - 0.5 * image height ▪ When we call ImageSprite.MoveTo (xc, yc), the image is centered on (xf, yf), which are the coordinates of the facePoint.
  • 16. Face Updated ▪ When the FaceExtension detects a face, it triggers the following FaceExtension1.FaceUpdated event.This event handler’s code has also been created for us. Call 2 functions. Next slide show
  • 17. Moving ▪ The way a basic filter works has two parts. 1. moving: when the face moves, the images move along with the face. 2. resizing: when the face becomes bigger or smaller, the images are resized accordingly. ▪ Call placeImage to move leftEar to the left-side of the forehead (FaceExtension.LeftForehead). ▪ Call placeImage to move rightEar to the right-side of the forehead (FaceExtension.RightForehead). ▪ Call placeImage to move whiskers to the top of the mouth (FaceExtension.MouthTop). ▪ Remember, placeImage takes in two arguments: 1. the ImageSprite object 2. a face key point detected by FaceExtension.
  • 18. Resizing ▪ When we define the width or height of the image, we’re defining the width or height of the image bounding box (highlighted in red). ▪ All widths and heights are arbitrarily chosen to fit what we might expect; we can change them as we like.
  • 19. Whiskers and Ears setting ▪ Whiskers: ▪ Width is set to the width of the face. ▪ Height is the distance between the eye and the mouth. ▪ Ears: ▪ Width is set to the distance between the cheek and the nose. ▪ These have square-shaped bounding boxes, so we can set the width and height to be the same
  • 23. Facemesh Filter Camera design and block https://mit-cml.github.io/extensions/data/extensions/edu.mit.appinventor.ai.facemesh.aix Clip
  • 24. Testing Mobile Check that this app can track a face and have the ears and whiskers correctly positioned on the face.
  • 25. Another one Screenshot of designer section
  • 26. Designer Section of Face detection
  • 28. About this Face detection ▪ We direct the front camera of our versatile towards us, we notice our face. ▪ The augmentation takes 450 focuses from our face. Lattice. ▪ If we mark the Show Mesh Property we will see the situation of each point all over. ▪ They look tiny and extremely near one another. ▪ So we will make an application to see the quantity of each point in a more clear manner. ▪ I have just put the even focuses, since altogether there are 450 and if we put every one of them they will blend in with one another. ▪ As we move, these focuses will change their position x, y ▪ Each point has two directions. ▪ A few focuses are found straightforwardly like Chin, Forehead, LeftEyeBottom etc.
  • 29. About this Face detection
  • 30. Testing Mobile If here BackgoundImage is disable, just not show face
  • 31. Nafiz Md Imtiaz Uddin 15679763939@163.com 江西理工大学 计算机科学与技术 (19计算机班) Computer Science and Technology(2019-2023) Jiangxi University of Science andTechnology