com.craftar
Class CraftARSDK
- java.lang.Object
-
- com.craftar.CraftARGenericSDK
-
- com.craftar.CraftARSDK
public class CraftARSDK extends CraftARGenericSDK
TheCraftARSDK
class for image recognition is the main controller for managing the camera capture and the visual search operations (Single shot and Finder Mode search)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.craftar.CraftARGenericSDK
CraftARGenericSDK.OnFinderTimeoutListener
-
-
Constructor Summary
Constructors Constructor and Description CraftARSDK()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description CraftARCamera
getCamera()
Returns theCraftARCamera
object that provides access to camera level operations.static CraftARSDK
Instance()
Get the shared instance of the CraftARSDK for image recognitionvoid
setSearchController(SearchController searchController)
Set the controller that will receive messages to perform visual search based on the SDK commands (singleShotSearch, startFinder, stopFinder).void
singleShotSearch()
Takes a picture and performs a visual search using theSearchController
void
startCapture(Activity activity)
Start the camera capture.-
Methods inherited from class com.craftar.CraftARGenericSDK
getSearchController, init, isFinding, startFinder, startFinder, stopFinder
-
-
-
-
Method Detail
-
Instance
public static CraftARSDK Instance()
Get the shared instance of the CraftARSDK for image recognition
-
startCapture
public void startCapture(Activity activity)
Start the camera capture.- Parameters:
activity
- The Activity that is running while the preview is open.
-
singleShotSearch
public void singleShotSearch()
Takes a picture and performs a visual search using theSearchController
- Specified by:
singleShotSearch
in classCraftARGenericSDK
-
getCamera
public CraftARCamera getCamera()
Returns theCraftARCamera
object that provides access to camera level operations.- Specified by:
getCamera
in classCraftARGenericSDK
-
setSearchController
public void setSearchController(SearchController searchController)
Set the controller that will receive messages to perform visual search based on the SDK commands (singleShotSearch, startFinder, stopFinder).- Specified by:
setSearchController
in classCraftARGenericSDK
-
-