Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Add the ability for ML Kit to create image from bytes #901

Closed
wants to merge 25 commits into from

Conversation

bparrishMines
Copy link
Contributor

No description provided.

switch (call.method) {
case "BarcodeDetector#detectInImage":
try {
Copy link
Contributor Author

@bparrishMines bparrishMines Nov 17, 2018

Choose a reason for hiding this comment

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

Moved this to top of onMethodCall for all detectors

Copy link
Contributor

@kroikie kroikie left a comment

Choose a reason for hiding this comment

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

Small adjustment to handling invalid rotation value. Otherwise LGTM.

case ImageRotation.rotation_270:
return 270;
default:
return -1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we just return 0 in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. Done and added an assert.

@bparrishMines
Copy link
Contributor Author

Closed for improved PR #971

@bparrishMines bparrishMines deleted the mlkit_android branch January 3, 2019 20:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants