I am trying to use the wikitude-sdk-sample-image-recogn image recognition sample code which uses the wikitude Javscript SDK, to test how the image recognition feature works, when i run the code on my android phone i get this error
This is the code which errors out,
try{
var targetCollectionResource = new AR.TargetCollectionResource(
"/01_ImageRecognition_1_ImageOnTarget/assets/magazine.wtc", {
onLoaded:function(){
AR.logger.info("LOADED");
},
onError:function(err){
AR.logger.info(`Error on target collection: ${err.message}`);
}
});
}catch (er) {
AR.logger.error(er.message);
}
for some reason the its not recognising the TargetCollectionResource from the Wikitude SDK API Reference