Auto-Tagging API
Automatically assign tags to your images.
Powerful API that makes your images findable.
이미지를 분석해서 해당 이미지의 tag를 자동적으로 생성해주는 API
https://imagga.com
무료는 아니고 유료이며
java code
/* Please note that this example uses the HttpURLConnection class */ String credentialsToEncode = "<replace-with-your-api-key>" + ":" + "<replace-with-your-api-secret>"; String basicAuth = Base64.getEncoder().encodeToString(credentialsToEncode.getBytes(StandardCharsets.UTF_8)); String endpoint_url = "https://api.imagga.com/v1/tagging"; String image_url = "https://imagga.com/static/images/tagging/wind-farm-538576_640.jpg"; String url = endpoint_url + "?url=" + image_url; URL urlObject = new URL(url); HttpURLConnection connection = (HttpURLConnection) urlObject.openConnection(); connection.setRequestProperty("Authorization", "Basic " + basicAuth); int responseCode = connection.getResponseCode(); System.out.println("\nSending 'GET' request to URL : " + url); System.out.println("Response Code : " + responseCode); BufferedReader connectionInput = new BufferedReader(new InputStreamReader(connection.getInputStream())); String jsonResponse = connectionInput.readLine(); connectionInput.close(); System.out.println(jsonResponse);
https://imagga.com/auto-tagging-demo
'개발 > JAVA' 카테고리의 다른 글
Spring boot application.properties 설명 (0) | 2019.02.27 |
---|---|
자바와 MFC 소켓 프로그래밍 참고하세요 (0) | 2018.07.24 |
MultipartHttpServletRequest 다중파일 업로드 (0) | 2018.07.23 |
Java8#02. 함수형 인터페이스(Functional Interface) (0) | 2018.07.20 |
Java8#01. 람다 표현식(Lambda Expression) (0) | 2018.07.20 |