Closed priyankgandhi0 closed 1 week ago
Hello @priyankgandhi0,
The error you are seeing is not generated by the package, there are problems with your code. Take a look at the web_detection
example here - https://github.com/faithoflifedev/google_vision_workspace/blob/main/packages/google_vision/example/web_detection.dart for some tips
File imageFile = File(path); List<int> imageBytes = imageFile.readAsBytesSync(); var response = await GoogleVision().withApiKey(Keys.googleVisionApi).image.detection( JsonImage.fromBuffer( Uint8List.fromList( await imageFile.readAsBytes(), ).buffer, ), AnnotationType.webDetection, maxResults: 1, );
I am facing below issue from above Code