this repository is not maintained anymore, use https://github.com/bitbar/opencv-library instead
This is an image recognition library that can be used for mobile application testing.
This library has been extracted and refactored from the following project: https://github.com/bitbar/testdroid-samples/tree/master/image-recognition
As this README is currently rather simplistic, more information can be found from the original project's readme or from this blog post: http://bitbar.com/appium-tip-27-using-appium-for-mobile-game-testing
Appium
Android SDK
export PATH=$PATH:$ANDROID_HOME/platform-tools/
export PATH=${PATH}:$ANDROID_HOME/tools/
libimobiledevice
brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
Run Appium:
appium
or appium -U <udid>
cd example
# Install OpenCV (change path according to your platform)
mvn install:install-file -Dfile=lib/linux/opencv/opencv-2413.jar -DgroupId=opencv -DartifactId=opencv -Dversion=2.4.13 -Dpackaging=jar
# Download the example Android application
wget https://github.com/bitbar/testdroid-samples/blob/master/apps/builds/BitbarSampleApp.apk -O application.apk
mvn -Dtest=AndroidSample clean test
# Download the example iOS application
wget https://github.com/bitbar/testdroid-samples/blob/master/apps/builds/BitbarIOSSample.ipa -O application.ipa
export UDID=<iPhone udid>
mvn -Dtest=iOSSample clean test