{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/19000","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/19000/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/19000/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/19000/events","html_url":"https://github.com/flutter/flutter/issues/19000","id":337588716,"node_id":"MDU6SXNzdWUzMzc1ODg3MTY=","number":19000,"title":"firebase_ml_vision seems working with landscape images only","user":{"login":"lewixlabs","id":7371215,"node_id":"MDQ6VXNlcjczNzEyMTU=","avatar_url":"https://avatars0.githubusercontent.com/u/7371215?v=4","gravatar_id":"","url":"https://api.github.com/users/lewixlabs","html_url":"https://github.com/lewixlabs","followers_url":"https://api.github.com/users/lewixlabs/followers","following_url":"https://api.github.com/users/lewixlabs/following{/other_user}","gists_url":"https://api.github.com/users/lewixlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lewixlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewixlabs/subscriptions","organizations_url":"https://api.github.com/users/lewixlabs/orgs","repos_url":"https://api.github.com/users/lewixlabs/repos","events_url":"https://api.github.com/users/lewixlabs/events{/privacy}","received_events_url":"https://api.github.com/users/lewixlabs/received_events","type":"User","site_admin":false},"labels":[{"id":379784845,"node_id":"MDU6TGFiZWwzNzk3ODQ4NDU=","url":"https://api.github.com/repos/flutter/flutter/labels/p:%20firebase","name":"p: firebase","color":"fbca04","default":false},{"id":527275775,"node_id":"MDU6TGFiZWw1MjcyNzU3NzU=","url":"https://api.github.com/repos/flutter/flutter/labels/p:%20first%20party","name":"p: first party","color":"fbca04","default":false},{"id":284439562,"node_id":"MDU6TGFiZWwyODQ0Mzk1NjI=","url":"https://api.github.com/repos/flutter/flutter/labels/plugin","name":"plugin","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-07-02T16:39:54Z","updated_at":"2018-10-18T14:02:50Z","closed_at":null,"author_association":"NONE","body":"I'm using first release v0.0.1 of firebase_ml_vision and with image picker plugin i can only detect text from images obtained with camera in landscape mode.\r\n\r\nCode sample is copied and edited from official page\r\nhttps://pub.dartlang.org/packages/firebase_ml_vision\r\n\r\n```\r\n    var image = await ImagePicker.pickImage(source: ImageSource.camera);\r\n\r\n    final FirebaseVisionImage visionImage = FirebaseVisionImage.fromFile(image);\r\n    final TextDetector detector = FirebaseVision.instance.getTextDetector();\r\n    final List<TextBlock> blocks = await detector.detectInImage(visionImage);\r\n\r\n    detector.close();\r\n\r\n    for (TextBlock block in blocks) {\r\n      final Rectangle<num> boundingBox = block.boundingBox;\r\n      final List<Point<num>> cornerPoints = block.cornerPoints;\r\n      final String text = block.text;\r\n\r\n      for (TextLine line in block.lines) {\r\n        // ...\r\n\r\n        for (TextElement element in line.elements) {\r\n          // ...\r\n        }\r\n      }\r\n    }\r\n```\r\n\r\nMaybe i'm missing something in FirebaseVisionImage configuration?\r\nThanks for any suggestion.\r\n\r\nLewix"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/431020914","html_url":"https://github.com/flutter/flutter/issues/19000#issuecomment-431020914","issue_url":"https://api.github.com/repos/flutter/flutter/issues/19000","id":431020914,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTAyMDkxNA==","user":{"login":"AlexBacich","id":32237903,"node_id":"MDQ6VXNlcjMyMjM3OTAz","avatar_url":"https://avatars3.githubusercontent.com/u/32237903?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexBacich","html_url":"https://github.com/AlexBacich","followers_url":"https://api.github.com/users/AlexBacich/followers","following_url":"https://api.github.com/users/AlexBacich/following{/other_user}","gists_url":"https://api.github.com/users/AlexBacich/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexBacich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexBacich/subscriptions","organizations_url":"https://api.github.com/users/AlexBacich/orgs","repos_url":"https://api.github.com/users/AlexBacich/repos","events_url":"https://api.github.com/users/AlexBacich/events{/privacy}","received_events_url":"https://api.github.com/users/AlexBacich/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T14:02:50Z","updated_at":"2018-10-18T14:02:50Z","author_association":"NONE","body":"@lance-blo , this didn't work for me as you described (tried for Android), BUT(!!) \r\nThis library compresses image perfectly which I can then rotate programmatically using ImageDecoder. And whole process with compressing + rotating now taking less than a second. \r\n\r\nAgain, not a perfect, but working solution."}}
{"actor":{"display_login":"AlexBacich"}}