-
Notifications
You must be signed in to change notification settings - Fork 10
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
A valid image could not be identified from ... #4
Comments
Please share the snippets of code that deal with the images from your gallery. Include how you get the images' bytes and/or file representation. You don't need to have the images in the assets directory. |
I tried both ways (with bytes and files)
|
@nitinramadoss Also when I try to use listCompare there is always "exhausted heap space" error occurs. How many image comparisons do you recommend at once? |
Hey, @burcus I am one of the co-developers for the package and I would love to help you out. To replicate this issue can I get some more info? How many images are you trying to compare? |
ERROR CODE @OverRide class testScreenState extends State {
} //this is one image compare async mehod // var url1 = Uri.parse('https://www.tompetty.com/sites/g/files/g2000007521/f/sample_01.jpg'); //jpg ko recognize kar reha ha , jpg pa response da reha ha //working //not working //not working (because ya temporary directory ( sxGKm5wK ) bna reha ha jis ke wejha sa direct image detect nai kar reha ) dynamic f = Uri.parse('https://i.postimg.cc/sxGKm5wK/bunny.jpg'); //unsplash Working (because ya temporary directory nai bna reha ha jis ke wejha sa direct image detect kar reha) //google image test //not working (because ya temporary directory ( sxGKm5wK ) bna reha ha jis ke wejha sa direct image detect nai kar reha ) //firebase test (I dont know why it is working but it is giving response ) //https://firebasestorage.googleapis.com/v0/b/face-liveness-detector.appspot.com/o/images%2FuserID%3A1%3Arehan?alt=media&token=8b214d4c-cf8a-4134-8b2e-91355f4b5c6a //File tesing //not working //not working // print(' Ya rahe file nicha liabrary support nai kar rahe $file_1'); // Calculate euclidean color distance between two images /* File File1 = File('..assets/images/bunny.jpg'); print('Difference Wala Response A reha ha Aur wo ya ha : ${imageResult * 100}%'); // IF KE LOGIC FOR EuclideanColorDistance( ignoreAlpha: true ) /* 1)EuclideanColorDistance({bool ignoreAlpha = true}) # About
If you want to compare two images, construct the hash from each image and count the A distance of 5 means a few things may be different, but they are probably But a distance of 10 or more? That's probably a very different picture.
/* LIABRARY ERRORS E/flutter ( 3517): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: The source, String, passed in is unsupported TYPE IMAGE HA JO A RAHE HA (ERROR DESCRIPTION) IMAGE KE AIK CLASS USE HO RAHE HA , AUR AUS CLASS MAIN DATA int MAIN MAIN PROCESS HO REHA HA /// Height of the image. */ } MY REQUEST Kindly Fix This Issue as soon as possible because this is good library and have potential to grow please fix this file comparison issue and make proper and complete documentation , on how to compare File to File , File to url and others , Kind Regards, |
I'm getting images from gallery. And for compare them I'm getting their bytes or files but it gives the same error in both cases:
A valid image could not be identified from
Do we have to define images in assets directory?The text was updated successfully, but these errors were encountered: