web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Recognize face and cap...
Power Apps
Unanswered

Recognize face and capture it automatically in canvas power apps

(0) ShareShare
ReportReport
Posted on by 96

Hello Everyone,

If i navigate to the screen, Need to recognize face and capture face automatically(Should also tell if face is far from the webcam, If it is near to the webcam only it should capture the face). Can anyone guide me how this can be achieved?

According to me, we can achieve this with AI builder, But i don't know the approach. Thank you.

Categories:
I have the same question (0)
  • CedrickB Profile Picture
    Microsoft Employee on at

    Hi,

     

    Unfortunatelly, AI Builder can't recognize faces yet.

    You have to get an Azure license to use face recognition API https://azure.microsoft.com/en-us/services/cognitive-services/face/ and create a connection from the Power Platform.

  • Rafia Mohammed Profile Picture
    96 on at

    Will you please share the referenced articles that matches my requirement. 

    Send me other than Microsoft docs, because i have gone through it already.

    Many thanks in advance.

  • CedrickB Profile Picture
    Microsoft Employee on at

    You can try this one https://nanddeepnachanblogs.com/posts/2020-06-18-facial-recognition-in-sharepoint/

    But there are many similar articles available on Google.

    I hope this addresses your requirements.

  • Rafia Mohammed Profile Picture
    96 on at

    Do we have any option that camera(media) should automatically takes the picture when we enter into the particular screen?

  • CedrickB Profile Picture
    Microsoft Employee on at

    Hi,

    You can set StreamRate=100 and OnStream=ClearCollect(Photos, Camera1.Stream)

    Then retrieve the picture with First(Photos).Url

    See https://powerapps.microsoft.com/en-us/blog/ux-patterns-camera-shutter-button/

  • Rafia Mohammed Profile Picture
    96 on at

    Yes, it is taking picture automatically. Once the picture is taken, camera should not be ready state to take the picture again, it should end it with only one picture.

  • Rafia Mohammed Profile Picture
    96 on at

    Am still waiting for your reply. Thank you

  • CedrickB Profile Picture
    Microsoft Employee on at

    ok providing a detailed walkthrough:

    1. Create a screen with a camera control and a picture control

    2. In the "OnVisible" property of your screen, enter this

    Set(CameraStreamRate, 200);

    3. In the "StreamRate" property of your camera control, enter this

    CameraStreamRate

    4. In the "Visible" property of your camera control, enter this

    false

    5. In the "OnStreamRate" property of your camera control, enter this

    ClearCollect(Photos, Camera1.Stream);

    Set(CameraStreamRate, 0);
    6. in "Image" property of your picture control enter this

     First(Photos).Url

  • Rafia Mohammed Profile Picture
    96 on at

    Really thank you so much for your patience but what i want to say here is, when we take the picture from the camera control, it is allowing to take picture.

    My concern is different for example Am taking one picture of my face, after taking the picture, the camera control should show only that image which i have took until and unless we press the button called retake picture.

    I hope you understood my scenario. Thank you

  • CedrickB Profile Picture
    Microsoft Employee on at

    Then just change the "OnSelect" property of the picture to Set(CameraStreamRate, 200);

    That should do what you want.

    Basically, the camera control is always hidden but ready to take picture (but invisible and in idle state).

    When the user click on the picture control which show latest image taken by the camera control, this will reactivate the camera control by changing again the framerate to 200.

    The image in picture control will update automatically.

    After streaming once, the camera control turn back to idle state thanks to Set(CameraStreamRate, 0);

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard