ImageRecognition Class Reference
#import <ImageRecognition.h>
Inheritance diagram for ImageRecognition:

Instance Methods |
|
(void) | - searchWithImage:withOnResults:andOnError: |
(void) | - searchWithImage:andRequestCode:withOnResults:andOnError: |
(int) | - getCurrentSearchCount |
Properties |
|
id< SearchProtocol > | delegate |
Detailed Description
Base class for Image Recognition implementations
Method Documentation
- (int) getCurrentSearchCount |
Returns the number of searches that are queued or being processed.
- (void) searchWithImage: | (CraftARQueryImage *) | image | |
andRequestCode: | (NSInteger) | requestCode | |
withOnResults: | (void(^)(NSArray *results, NSInteger requestCode)) | onResultBlock | |
andOnError: | (void(^)(NSError *error, NSInteger requestCode)) | onErrorBlock | |
Perform an Image Recognition search
- Parameters
-
image CraftARQueryImage to use for the recognition search. requestCode Request identifier passed back on the callbacks onResultBlock Executed with an NSArray of CraftARSearchResults if the search took place. onError Executed with a CraftARError if an error happened during recognition.
Implemented in CraftAROnDeviceIR, and CraftARCloudRecognition.
- (void) searchWithImage: | (CraftARQueryImage *) | image | |
withOnResults: | (void(^)(NSArray *results)) | onResultBlock | |
andOnError: | (void(^)(NSError *error)) | onErrorBlock | |
Perform an Image Recognition search
- Parameters
-
image CraftARQueryImage to use for the recognition search. onResultBlock Executed with an NSArray of CraftARSearchResults if the search took place. onError Executed with a CraftARError if an error happened during recognition.
Implemented in CraftAROnDeviceIR, and CraftARCloudRecognition.
Property Documentation
|
readwritenonatomicweak |
The ImageRecognition delegate will receive the search result callbacks
The documentation for this class was generated from the following file:
- CraftARProSDK.framework/Headers/ImageRecognition.h