Skip to content

WideEyesTech/we-vision-ios-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WE Vision iOS SDK - WideEyes We Vision SDK for iOS

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.

Table of Contents

Getting Started

  1. Requirements
  2. Setup
  3. Quick Start
  4. Contributing
  5. License

Requirements

Link your project with the following frameworks:

  • iOS 7+
  • AssetsLibrary.framework
  • MobileCoreServices.framework
  • SystemConfiguration.framework

Setup

To setup your project, follow these steps:

  1. Download this repository
  2. Drag and drop WideEyes SDK iOS framework into your project.

Source Code

  git clone https://github.com/WideEyesTech/we-vision-ios-sdk

Quick Start

Instantiate WE Vision iOS SDK

In the method application:didFinishLaunchingWithOptions set your apikey that you can find in your dashboard:

[WEInitialize setClientApiKey:@""];
Get products by Id
[WEVision searchByIdWithGender:WEVisionGender
                      category:@""
                   subcategory:@""
                     productId:@"" success:^(WEResult *result) {

} failure:^(NSError *error) {

}];
Get cross search products
[WEVision crossSearchByIdWithGender:WEVisionGender
                           category:@""
                        subcategory:@""
                          productId:@""
                            success:^(WEResult *result) {

} failure:^(NSError *error) {

}];
Process an image after drawing the contour around it
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
Get search produts by image using the WEImageDataStandardized pre processed image
[WEVision searchByImageWithGender:WEVisionGender
                         category:@""
                      subcategory:@""
            imageDataStandardized:WEIMAGEDATASTANDARIZED // WEImageDataStandardized from the preprocessing function
                          success:^(WEResult *result) {

} failure:^(NSError *error) {

}];

Contributing

Want to contribute? Check out the contributing guide!

License

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.