hello i am new in wikitude and i try create simple image recognitions and test it on android device. i create java script file and html file.
var World = {
loaded: false,
init: function initFn() {
/* Disable all sensors in "IR-only" Worlds to save performance. If the property is set to true, any geo-related components (such as GeoObjects and ActionRanges) are active. If the property is set to false, any geo-related components will not be visible on the screen, and triggers will not fire.*/
AR.context.services.sensors = false;
this.createOverlays();
},
createOverlays: function createOverlaysFn() {
this.tracker = new AR.Tracker("assets/Itest.wtc", {
onLoaded:this.worldLoaded
});
// Button image
this.imgButton = new AR.ImageResource("assets/wwwButton.jpg");
this.tracker = new AR.Tracker("assets/Itest.wtc", {
onLoaded:this.worldLoaded
});
// Button image
this.imgButton = new AR.ImageResource("assets/wwwButton.jpg");
my problem is that on device camera is on, but no image is recognition.
W
Wolfgang Damm
said
about 9 years ago
Here area few things to check, that might help you to resolve the problem:
- Use the ade.js that comes with the SDK to test in a desktop browser and verify that there are no javascript errors - Check that all assets are available and can be loaded (e.g. use the onError trigger of the AR.Tracker and AR.ImageResource objects) - Check that the targetname is equal to the one defined when you created the .wtc tracker file.
Rok Rejc