Log in or register to post comments

New Image Target

July 18, 2012 - 2:01pm #1

Hi, How can i add a new taget image, i already have the .dat file and the .xml

 

Im using Vuforia SDK Android 1.5.9 and im trying to add the new taget file to ImageTarget Sample and how can add to this new image target and object to display? 

 

Thanks for your help.

New Image Target

July 22, 2012 - 4:41pm #4

Be sure to run ndk-build from the command line, in your projects base directory, to build and install the C++ libraries after you've modified them.

New Image Target

July 19, 2012 - 11:25am #3

Hi, i tryied to add the new Image Target but i have some problems.

 

07-19 12:16:30.609: D/AndroidRuntime(5103): Shutting down VM

07-19 12:16:30.609: W/dalvikvm(5103): threadid=1: thread exiting with uncaught exception (group=0x40018608)

07-19 12:16:30.619: E/AndroidRuntime(5103): FATAL EXCEPTION: main

07-19 12:16:30.619: E/AndroidRuntime(5103): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.claro.QCAR.ImageTargets.ImageTargets/com.claro.QCAR.ImageTargets.ImageTargets.ClaroApp}: java.lang.ClassNotFoundException: com.claro.QCAR.ImageTargets.ImageTargets.ClaroApp in loader dalvik.system.PathClassLoader[/data/app/com.claro.QCAR.ImageTargets.ImageTargets-1.apk]

07-19 12:16:30.619: E/AndroidRuntime(5103): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1680)

07-19 12:16:30.619: E/AndroidRuntime(5103): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)

07-19 12:16:30.619: E/AndroidRuntime(5103): at android.app.ActivityThread.access$1500(ActivityThread.java:123)

07-19 12:16:30.619: E/AndroidRuntime(5103): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)

07-19 12:16:30.619: E/AndroidRuntime(5103): at android.os.Handler.dispatchMessage(Handler.java:99)

07-19 12:16:30.619: E/AndroidRuntime(5103): at android.os.Looper.loop(Looper.java:130)

07-19 12:16:30.619: E/AndroidRuntime(5103): at android.app.ActivityThread.main(ActivityThread.java:3835)

07-19 12:16:30.619: E/AndroidRuntime(5103): at java.lang.reflect.Method.invokeNative(Native Method)

07-19 12:16:30.619: E/AndroidRuntime(5103): at java.lang.reflect.Method.invoke(Method.java:507)

07-19 12:16:30.619: E/AndroidRuntime(5103): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)

07-19 12:16:30.619: E/AndroidRuntime(5103): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

07-19 12:16:30.619: E/AndroidRuntime(5103): at dalvik.system.NativeStart.main(Native Method)

07-19 12:16:30.619: E/AndroidRuntime(5103): Caused by: java.lang.ClassNotFoundException: com.claro.QCAR.ImageTargets.ImageTargets.ClaroApp in loader dalvik.system.PathClassLoader[/data/app/com.claro.QCAR.ImageTargets.ImageTargets-1.apk]

07-19 12:16:30.619: E/AndroidRuntime(5103): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)

07-19 12:16:30.619: E/AndroidRuntime(5103): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)

07-19 12:16:30.619: E/AndroidRuntime(5103): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

07-19 12:16:30.619: E/AndroidRuntime(5103): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)

07-19 12:16:30.619: E/AndroidRuntime(5103): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1672)

07-19 12:16:30.619: E/AndroidRuntime(5103): ... 11 more

07-19 12:16:30.629: I/Process(5103): Sending signal. PID: 5103 SIG: 9

 

New Image Target

July 18, 2012 - 6:15pm #2

1. Add the dataset resources to the assets folder in your project - you'll find the sample dataset there as well.

2. Revise Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_loadTrackerData, starting at line 181 to load and activate your dataset by name. You'll see how this is done with the sample dataset.

3. Implement any logic related to target detection and tracking in Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_renderFrame ( ln 310 ), in the loop that iterates through the active trackables starting at line 338.

 

 

Log in or register to post comments