mlkit-custom-image-classifier icon indicating copy to clipboard operation
mlkit-custom-image-classifier copied to clipboard

Added upload multiple images from local storage feature

Open ganeshsp1 opened this issue 5 years ago • 4 comments

Added an option to upload multiple images from the gallery, such that the user can click images before hand and upload them all together. The images will be uploaded in the background.

UI Change : New FloatingActionButton to Upload Images. New Pub dependency Added :multi_media_picker - to select and upload multiple images. Code Change has been integrated in the camera.dart file to resuse the code for uploading images to firebase storage

ganeshsp1 avatar May 25 '19 08:05 ganeshsp1

Updated Readme to correct service_account_key.json file name to service-account-key.json since the former causes an exception while uploading videos { Error: ENOENT: no such file or directory, open '/srv/lib/service-account-key.json' errno: -2, code: 'ENOENT', syscall: 'open', path: '/srv/lib/service-account-key.json' }

Hence found that the correct file name should be service-account-key.json as opposed to what was mentioned in the readme. Also this caused other issues since the video was not converted, but still the number of images was updated and showed incorrect numbers.

ganeshsp1 avatar May 26 '19 12:05 ganeshsp1

Please find the screenshots for the Multiple Image Upload Feature

Image 1 WhatsApp Image 2019-05-30 at 2 07 52 AM (2)

Image 2 WhatsApp Image 2019-05-30 at 2 07 52 AM (1)

Image 3 WhatsApp Image 2019-05-30 at 2 07 52 AM

Image 4 WhatsApp Image 2019-05-30 at 2 09 00 AM

ganeshsp1 avatar May 29 '19 20:05 ganeshsp1

Hi there, this is a very useful PR, can someone please merge it?

Eyesonly88 avatar Jul 12 '19 22:07 Eyesonly88

@prakhar1989 @ganeshsp1

Eyesonly88 avatar Jul 12 '19 22:07 Eyesonly88