Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Save frames from a camera

(0) ShareShare
ReportReport
Posted on by 25

Good morning everyone.
I would need to save some frames from the camera instead of a single photo.
For example: 10 frames in 2 seconds.
What settings should I change?
Currently the settings I have set are related to the acquisition of a single photo
Actually fx set is folowing:

UpdateContext({myfoto:fotoCamera.Stream})
Thanks!

Categories:
  • anurchis Profile Picture
    anurchis 25 on at
    Re: Save frames from a camera

    Thankssss!!!!

  • Verified answer
    v-jefferni Profile Picture
    v-jefferni on at
    Re: Save frames from a camera

    Hi @anurchis ,

     

    I added a Timer to achieve this:

    vjefferni_0-1663915804012.png

     

    The two text input boxes are where to type in the 2 minutes and 10 photos. Timer settings will be:

    Duration:

    Value(TextInput1.Text)*1000/Value(TextInput2.Text)

    Repeat:

    If(varloop >= Value(TextInput2.Text)+1,false,true)

    Reset:

    If(varloop >= Value(TextInput2.Text)+1,true,false)

    OnTimerEnd:

    Collect(colFrames,Camera1.Photo);UpdateContext({varloop:varloop+1})

    Additional properties:

    vjefferni_1-1663916103082.png

    Clear button OnSelect:

    UpdateContext({varloop:0});Clear(colFrames)

     

    So the Gallery with Items set to the collection will display all the photos captured by the Timer. The Clear button can clear the collection and reset the variable, which controls the repeat of Timer.

     

    Best regards,

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard