Skip to content
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

Android Live processing: You need to look like Travel Monkey in order to continue #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ymebrugts
Copy link

@ymebrugts ymebrugts commented May 1, 2020

Hi there,

For the android side I added a native camera2 implementation for live frame processing so I can do some fun stuff in the app. Processing is done before the picture is taken right during preview completely async.

I changed the Travel Monkey and the app will give you instructions on what to do during recording. You can only continue if you listen to the instructions that Travel Monkey gives you.

TravelMonkeyEdited
Screenshot_20200501-022058

Problems I encountered
-The FaceAPI force closes streams I still need afterwards (DetectWithStreamAsync) so I needed to copyasync in 2 places.
-It's hard to get camera frames and get them into the Xamarin project. I think Xamarin could benefit from a generic camera implementation. Camera2 is also very finnicky with the height/width.
-XAML for a fullscreen native renderer with a bottom bar is also finnicky
-The "TakePhotoCommandValidation" command executed in an unexpected order. Almost seemed like a bug in the VS debugger. "PhotoSource =" on line 130 executes after line 134 "await Post()" which is really weird. Debugger.Break(); only triggers once confirming that only 1 thread entered the function. (file: FaceValidationViewModel.cs)

Here is the original repo: https://github.com/ymebrugts/monkey-xamarin-challenge

-Added Face API
-Added native Camera 2 implementation
-MVVM
@ymebrugts ymebrugts changed the title Android: You need to look like Travel Monkey in order to continue Android Live processing: You need to look like Travel Monkey in order to continue May 1, 2020
@codemillmatt
Copy link
Contributor

Thanks for completing the challenge! Fill out this form so we can send you the swag! https://aka.ms/cog-svcs-swag

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

Successfully merging this pull request may close these issues.

2 participants