Created
February 13, 2017 18:20
-
-
Save zurche/2edab853b898cf33bba06d737294e88e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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