A library to integrate We Vision search capabilities in your Android app. If you want to access our web service API directly you can, see the docs here.
Getting Started
To setup your project, follow these steps:
- Download this repository
- Copy sdk.aar file to your lib folder
- Open your gradle file and add
repositories {
// ...
flatDir {
dirs 'libs'
}
}
dependencies {
// ...
compile 'it.wideeyes.sdk:sdk-release:1.0@aar'
}
git clone https://github.com/WideEyesTech/we-vision-android-sdk
In the main Activity insert the next code with your APIKEY
WE.initialize(getApplicationContext(), "YOUR_APIKEY_HERE");
public interface WECallable {
void success(WEResult result);
void error(WEError error);
}
WEVision.searchById(WEGender gender, String category, String subCategory, String productId, final WECallable callable);
WEVision.searchById(WEGender gender, String category, String subCategory, String productId, int minNumResults, int maxNumResults, WECallable callable);
WEVision.crossSearchById(WEGender gender, String category, String subCategory, String productId, final WECallable callable)
WEImageData class contains a Bitmap(the image) and Point's array(the contour).
Is your responsability to transform the coordinates of the contour to image coordinates.
WEImageDataStandardized imageDataStandardized = WEComputerVision.standardize(WEImageData imageData, int margin);
Is your responsability to transform the coordinates of the contour to image coordinates.
WEVision.searchByImage(WEGender gender, String category, String subCategory, WEImageDataStandardized imageData, final WECallable callable);
Is your responsability to transform the coordinates of the contour to image coordinates.
WEVision.searchByImage(WEGender gender, String category, String subCategory, WEImageData imageData, final WECallable callable);
WEVision.searchByImage(WEGender gender, String category, String subCategory, WEImageData imageData, int margin, final WECallable callable);
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.