A library to integrate We Vision search capabilities in your iOS app. If you want to access our web service API directly you can, see the docs here.
Getting Started
Link your project with the following frameworks:
- iOS 7+
- AssetsLibrary.framework
- MobileCoreServices.framework
- SystemConfiguration.framework
To setup your project, follow these steps:
- Download this repository
- Drag and drop WideEyes SDK iOS framework into your project.
git clone https://github.com/WideEyesTech/we-vision-ios-sdk
In the method application:didFinishLaunchingWithOptions set your apikey that you can find in your dashboard:
[WEInitialize setClientApiKey:@""];
[WEVision searchByIdWithGender:WEVisionGender
category:@""
subcategory:@""
productId:@"" success:^(WEResult *result) {
} failure:^(NSError *error) {
}];
[WEVision crossSearchByIdWithGender:WEVisionGender
category:@""
subcategory:@""
productId:@""
success:^(WEResult *result) {
} failure:^(NSError *error) {
}];
WEImageData *imageData = [[WEImageData alloc]init]; //Create a WEImageData object
[imageData setImage:IMAGE]; // Add image
[imageData addXPoint:XPOINT andYPoint:YPOINTS]; // Add all the points of the contour
WEImageDataStandardized *data = [WEComputerVision processImageData:imageData margin:MARGIN]; // Process the image
[WEVision searchByImageWithGender:WEVisionGender
category:@""
subcategory:@""
imageDataStandardized:WEIMAGEDATASTANDARIZED // WEImageDataStandardized from the preprocessing function
success:^(WEResult *result) {
} failure:^(NSError *error) {
}];
Want to contribute? Check out the contributing guide!
Copyright 2015 Wide Eyes Technologies S.L. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.