Skip to content

Error in FaceTracker #1892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Sep 2, 2019 — with docs.microsoft.com · 2 comments
Closed

Error in FaceTracker #1892

ghost opened this issue Sep 2, 2019 — with docs.microsoft.com · 2 comments
Assignees

Comments

Copy link

ghost commented Sep 2, 2019

While trying to use the FaceTracker class with this code, I created a function which returns a VideoFrame. However, I get a design-time error stating that VideoFrame does not contain a definition for 'GetAwaiter'.

What am I missing here?

    VideoFrame currentFrame = await GetLatestFrame();
    
    private VideoFrame GetLatestFrame()
    {
        // Get information about the preview
        var previewProperties = mediaCaptureMgr.VideoDeviceController.GetMediaStreamProperties(MediaStreamType.VideoPreview) as VideoEncodingProperties;

        // Create a video frame in the desired format for the preview frame
        VideoFrame videoFrame = new VideoFrame(BitmapPixelFormat.Bgra8, (int)previewProperties.Width, (int)previewProperties.Height);

        return videoFrame;
    }

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@ghost
Copy link
Author

ghost commented Sep 2, 2019

I think I see my issue: I used a VideoFrame when I think I should have just used a Frame?

@drewbatgit
Copy link
Contributor

Hello, issues in this repo are specifically intended for reporting documentation issues, not technical support. For community assistance with development questions I recommend that you ask on our forums or StackOverflow. Otherwise, please see the developer support page for your support options. If you get assistance through these other resources and believe that information would help us improve the docs, please come back and let us know. Although, it sounds like you may have already solved your issue.

QuinnRadich pushed a commit that referenced this issue Oct 19, 2021
* test

test

* Update toc.yml

* Update toc.yml

* Update benefits.md

* test

* Fixed a typo.

* Update dwritecore.md

* Update dwritecore.md

* Create PhotoLabConversion.zip

* first draft of cppwinrt case study (#1826)

* first draft of cppwinrt case study

* fixing suggestions

* Update case-study-1.md

* some edits to the case studies (#1840)

* some edits to the case studies

* couple more tweaks

* adding alternative folder names (#1850)

* move files into new folders (#1852)

* updating TOC (#1853)

* some review changes (#1854)

* some refactoring (#1856)

* some refactoring

* more updates

* just fixing TOC (#1857)

* more refactoring (#1861)

* more refactoring and new items (#1864)

* adding more content (#1868)

* Stwhi uwp migration/adding items 4 (#1871)

* cppwinrt-only section

* more items

* more items/updates, and port -> migrate (#1874)

* more items/updates, and port -> migrate

* correcting build issues

* correcting build issues 2

* correcting build issues 3

* correcting build issues 4

* last updates for the week (#1877)

* more edits, additions, etc. (#1884)

* more edits, additions, etc.

* fixing url

* more items (#1889)

* UWP migration updates (aleader) (#1890)

* A few fixups

* Added some feature table mappings

* More content

* Merge

* Update what-is-supported.md

* another item (#1892)

* another round of updates (#1893)

* renaming Migration guide titles (#1894)

* more items (#1895)

* more items

* fixing build suggestions

* fixing build suggestion

* more items (#1896)

* last of the new items for the time being (#1900)

* last of the new items for the time being

* fixing build issues

* experimenting with anchors

* fixing build issue

* Add

* Create uwp-migration-msal-graph.md

* Update feature-mapping-table.md

* Minor UWP migration updates (#1904)

* Updates to what is supported

* Update what-is-supported.md

* Update what-is-supported.md

* Update api-mapping-table.md

* Update overall-migration-strategy.md

* Update case-study-1.md

* Update

* Update case-study-1.md

* Update case-study-1.md

* Update case-study-1.md

* Update case-study-1.md

* Acrylic brush item (#1919)

* first half of copy-editing (#1924)

* Update mrtcore.md

* Update feature-mapping-table.md

* Stwhi uwp migration/adding items 17 (#1927)

* edit passes, improvements, etc.

* build issues

* copy-editing and rewriting (#1935)

* Update feature-mapping-table.md

* Adding warning for D2D support

* Adding brief sentence for DWriteCore value prop

* Update uwp-migration-msal-graph.md

* Add and Edit

Adding notifcations.md and changes to applifecycle.md

* actioning feedback (#1952)

* copy-editing (#1957)

* copy-editing

* assigning topics to myself

* more updates as per email (#1959)

* more entries to the API mapping table (#1964)

* more entries to the API mapping table

* build warnings

* index (#1965)

* Update case-study-1.md

* Adding line for Win2D to feature mapping table

* Add TaskbarManager to unsupported APIs

* Fix absolute link

* Update overall-migration-strategy.md

* windowing guide (#1976)

* windowing topic complete for now (#1978)

* working around table rendering issues (#1979)

* removed retry value. Added HTTP post example (#1980)

* removed retry value. Added HTTP post example

* fixed wording on retries

* updating API mappings (#1982)

* updating API mappings

* fixing table

* Delete uwp-migration-msal-graph.md

Co-authored-by: Bhavya Gursahani <[email protected]>
Co-authored-by: Mike Battista <[email protected]>
Co-authored-by: Bhavya Gursahani <[email protected]>
Co-authored-by: McLean Schofield <[email protected]>
Co-authored-by: Andrew Leader <[email protected]>
Co-authored-by: AdamBrMSFT <[email protected]>
Co-authored-by: Duncan MacMichael <[email protected]>
Co-authored-by: Nicu Parente <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant