I noticed there are examples for client recognition, rendering etc. But they are all using 2d recognition. The only examples for 3D recognition are recording and recording+recognition. I have trouble creating my own activity that only does the recognition.
I am looking for an example + documentation of something like the ExternalRendering example but for point cloud recognition.
Since I was not sure my point cloud was good enough I tried the following:
- Removed the deletion of the temp file in the example recording/tracking activity
- Started the recording/tracking activity to record a pointcloud and immediately test it. This works.
- The temp point cloud is now saved in the folder and I opened it with my own activity or with one of the example (internal/external)rendering activities, using above code.
@Override public void onTracking(final Tracker tracker, final RecognizedTarget recognizedTarget) { mGlRenderer.setCurrentlyRecognizedTarget(recognizedTarget); }
@Override public void onTargetLost(final Tracker tracker, final String s) { mGlRenderer.setCurrentlyRecognizedTarget(null); }
@Override public void onExtendedTrackingQualityUpdate(Tracker tracker, String s, int i, int i1) {
} }
S
Simon 248601
said
almost 8 years ago
Hi Laurens,
the example "1.3 Tracking 3D" does delete the recorded tracking map when you quit the sample. Please use the "Tracking Map Recorder" in the right upper corner of the Native SDK Example App to record a map and save it.
To load a map in the same app you've recorded it, load it like you did here:
File file = new File(mWikitudeSdk.getTrackingMapRecorder().getTrackingMapStorageLocation(), "testcv.wtm"); ClientTracker tracker = mWikitudeSdk.getTrackerManager().create3dClientTracker(file.getAbsolutePath());
To load a map you recorded in some app, exported, and packaged as asset in another app load it like you did here:
When you run your sample now as posted here, it should work if you recorded your map with the "Tracking Map Recorder" and chose "testcv.wtm" as the file name.
Best regards, Simon
l
laurens koppenol
said
almost 8 years ago
I changed the "1.3 Tracking 3D" Activity so that I can record, test & save a tracking map. I needed to know whether I am doing something wrong or that the 3D map might just not be good enough.
This leaves me a file for testing in my own activity.
About the loading: As I said I tried both. And I don't see anything. My logcat doesn't show any errors about loading or anything else. But I do not see any lines, squares or other demo augmentations.
laurens koppenol