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

fix(ml-vision): convert options to correct type #3694

Merged
merged 3 commits into from
Jun 22, 2020

Conversation

russellwheatley
Copy link
Member

fixes #3585

I couldn't recreate the error reported by the users, but I do agree that the wrong type was being called for each of the face detecting options.

I also removed the unnecessary type casting for each if statement condition as it is already an integer.

Also, removed type casting to CGFloat as it is just a typedef for a double anyway.

@russellwheatley russellwheatley marked this pull request as ready for review May 27, 2020 07:34
@russellwheatley russellwheatley requested review from Ehesp and Salakar May 27, 2020 07:34
Copy link
Member

@Salakar Salakar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

LGTM GIF

@Salakar Salakar merged commit b462be5 into master Jun 22, 2020
@Salakar Salakar deleted the @russelll/ml-vision-face-detector branch June 22, 2020 11:59
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.

MLKit Vision faceDetectorProcessImage() is not detecting all classifications
2 participants