public class VisualRecognitionIT extends WatsonServiceTest
CONTENT_TYPE, PLACEHOLDER, properties
Constructor and Description |
---|
VisualRecognitionIT() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Sets the up.
|
void |
testClassifyImagesFromBytes()
Test classify images from bytes or stream.
|
void |
testClassifyImagesFromFile()
Test classify images from file.
|
void |
testClassifyImagesFromUrl()
Test classify images from url.
|
void |
testCollections()
Test that creates, add images and delete a collection.
|
void |
testCreateClassifierAndClassifyImage()
Test create a classifier.
|
void |
testDetectFacesFromFile()
Test detect faces from file.
|
void |
testDetectFacesFromUrl()
Test detect faces from url.
|
void |
testGetClassifiers()
Test get all the classifiers.
|
void |
testGetCollections()
Test get collections text from url.
|
void |
testRecognizeTextFromFile()
Test recognize text from file.
|
void |
testRecognizeTextFromUrl()
Test recognize text from url.
|
getDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFile
public void setUp() throws java.lang.Exception
WatsonServiceTest
setUp
in class WatsonServiceTest
java.lang.Exception
- the exceptionpublic void testClassifyImagesFromFile()
public void testClassifyImagesFromUrl()
public void testClassifyImagesFromBytes() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public void testCreateClassifierAndClassifyImage() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testDetectFacesFromFile() throws java.io.FileNotFoundException
java.io.FileNotFoundException
- the file not found exceptionpublic void testDetectFacesFromUrl()
public void testGetClassifiers()
public void testRecognizeTextFromFile() throws java.io.FileNotFoundException
java.io.FileNotFoundException
- the file not found exceptionpublic void testRecognizeTextFromUrl()
public void testGetCollections()
public void testCollections() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exception