Skip to content

ldr-git/CustomEasyAR

Repository files navigation

CustomEasyAR

CustomEasyAR is an Android library for dealing with EasyAR library.

Installation

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
dependencies {
	        implementation 'com.github.ldr-git:CustomEasyAR:v0.5.0'
	}

Usage

Image Recognition

Bundle extras = new Bundle();
extras.putString(ImageTargetActivity.TARGET_KEY, "<TARGET NAME>");//Required
extras.putString(ImageTargetActivity.TARGET_PATH, "<PATH TO YOUR TARGET>");//Required
Intent intent = new Intent(YourActivity.this, TargetActivity.class);//TargetActivity is extending ImageTargetActivity
intent.putExtras(extras);
startActivity(intent);

Image Recognition with Video Overlay

Bundle extras = new Bundle();
extras.putString(VideoEasyARActivity.TARGET_KEY, "target");//Required
extras.putString(VideoEasyARActivity.TARGET_PATH, "<PATH TO YOUR TARGET>");//Required
extras.putString(VideoEasyARActivity.TARGET_VIDEO_OVERLAY, "<PATH TO YOUR TARGET OVERLAY VIDEO>");//Required
Intent intent = new Intent(YourActivity.this, TargetActivity.class);//TargetActivity is extending VideoTargetActivity
intent.putExtras(extras);
startActivity(intent);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT