Hello again, I've made ??some progress with the application for recognition of pictures but I have a problem when recognizing the image, the app runs fine but it seems that the files in the world are not loaded because it does not show that it is recognizing image or anything .
Attached is a piece of code
Archive .js for recognition:
var World = {
loaded: false,
init: function initFn() {
AR.context.services.sensors = false;
this.createOverlays();
},
createOverlays: function createOverlaysFn() {
this.tracker = new AR.Tracker("assets/marcas.wtc", {
onLoaded: this.worldLoaded,
onError: function(){
console.log("error cargando el tracker");
}
});
// Create overlay for page one
var imgOne = new AR.ImageResource("assets/imageOne.png");
var overlayOne = new AR.ImageDrawable(imgOne, 1, {
offsetX: -0.15,
offsetY: 0
});
// Make sure to change also the targetName (pageOne) to match the targetName of your image
var pageOne = new AR.Trackable2DObject(this.tracker, "marcalogoutpl", {
Carlos Galvez