CustomEasyAR is an Android library for dealing with EasyAR library.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ldr-git:CustomEasyAR:v0.5.0'
}
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);
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);
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.