com.craftar
Class ImageRecognition
- java.lang.Object
-
- com.craftar.ImageRecognition
-
- Direct Known Subclasses:
- CraftARCloudRecognition
public abstract class ImageRecognition extends java.lang.Object
Base class for Image Recognition implementations
-
-
Constructor Summary
Constructors Constructor and Description ImageRecognition()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description CraftARSearchResponseHandler
getCraftARSearchResponseHandler()
Returns the handler for the search requests, or null if no handler is set.abstract int
getPendingSearchRequestsCount()
Returns the number of search requests that are pendingabstract void
search(CraftARQueryImage image)
Perform an Image Recognition searchabstract void
search(CraftARQueryImage image, int requestCode)
Perform an Image Recognition searchvoid
setCraftARSearchResponseHandler(CraftARSearchResponseHandler responseHandler)
Sets the handler for the search requests.
-
-
-
Method Detail
-
search
public abstract void search(CraftARQueryImage image)
Perform an Image Recognition search- Parameters:
image
- CraftARQueryImage to use for the recognition search.
-
search
public abstract void search(CraftARQueryImage image, int requestCode)
Perform an Image Recognition search- Parameters:
image
- Image to use for the recognition search.requestCode
- Request identifier passed back on the @{link CraftARSearchResponseHandler}
-
setCraftARSearchResponseHandler
public void setCraftARSearchResponseHandler(CraftARSearchResponseHandler responseHandler)
Sets the handler for the search requests.- Parameters:
responseHandler
- Handler for the search requests.
-
getCraftARSearchResponseHandler
public CraftARSearchResponseHandler getCraftARSearchResponseHandler()
Returns the handler for the search requests, or null if no handler is set.
-
getPendingSearchRequestsCount
public abstract int getPendingSearchRequestsCount()
Returns the number of search requests that are pending
-
-