Skip to content

Instantly share code, notes, and snippets.

@zurche
Created February 13, 2017 18:20
Show Gist options
  • Save zurche/2edab853b898cf33bba06d737294e88e to your computer and use it in GitHub Desktop.
Save zurche/2edab853b898cf33bba06d737294e88e to your computer and use it in GitHub Desktop.
public class LogoPostBuilder {
public static LogoBodyModel buildLogoDetectionBody(String image) {
LogoBodyModel logoBodyModel = new LogoBodyModel();
ArrayList<Feature> features = new ArrayList<>();
features.add(new Feature("LOGO_DETECTION", 1));
Request requests = new Request();
requests.setFeatures(features);
requests.setImage(new Image(image));
ArrayList<Request> requestsList = new ArrayList<Request>();
requestsList.add(requests);
logoBodyModel.setRequests(requestsList);
return logoBodyModel;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment