April 2020
Intermediate to advanced
380 pages
9h 24m
English
In this section, we simply define a visionAPICall method that is used to make an http Post request to the CloudVision API, passing in the request string encoded as json, which returns a json response that is parsed to get the values from the desired labels:
http: ^0.12.0+2
import 'package:http/http.dart' as http;
List<int> imageBytes = _image.readAsBytesSync();String base64Image = base64Encode(imageBytes);
To be able to send the image ...
Read now
Unlock full access