Start a new topic

I want to use only image recognition without GEO

I want to use only image recognition without GEO


Hi,

I'm wondering if my android device has only camera, can I use this device for image recognition?

I'm wondering what is the minimum hardware(sensor) requirement for using only image recognition.

Thank you.

I found the solution.

Wikitude plugin is updated from 4.0 to 4.1 and new plugin has that function so I can select which feature I'll use or not.

    // deviceready Event Handler

    onDeviceReady: function() {

        

        // check if the current device is able to launch ARchitect Worlds

        app.wikitudePlugin = cordova.require("com.wikitude.phonegap.WikitudePlugin.WikitudePlugin");

        app.wikitudePlugin.isDeviceSupported(function() {

                app.isDeviceSupported = true;

            }, function(errorMessage) {

                app.isDeviceSupported = false;    

                alert('Unable to launch ARchitect Worlds on this device: n' + errorMessage);            

            },

           

        );

    },

 


    // Use this method to load a specific ARchitect World from either the local file system or a remote server

    loadARchitectWorld: function(example) {

 

        app.wikitudePlugin.setOnUrlInvokeCallback(app.onUrlInvoke);

 

        if (app.isDeviceSupported) {

            app.wikitudePlugin.loadARchitectWorld(function successFn(loadedURL) {

                    /* Respond to successful world loading if you need to */ 

                }, function errorFn(error) {

                    alert('Loading AR web view failed: ' + error);

                },

                example.path, example.requiredFeatures, example.startupConfiguration

            );

 

            // inject poi data using phonegap's GeoLocation API and inject data using World.loadPoisFromJsonData

            if ( example.requiredExtension === "ObtainPoiDataFromApplicationModel" ) {

                navigator.geolocation.getCurrentPosition(onLocationUpdated, onLocationError);

            }

        } else {

            alert("Device is not supported");

        }

    },

 

But I found some strange.

The return value loadedURL is "OK". That's all. 

 


app.wikitudePlugin.loadARchitectWorld(function successFn(loadedURL) {

           /* Respond to successful world loading if you need to */ 

    }


)

 

Thank you.

Hi Joshua,

the "OK" is actually one of Cordova's result codes. (org.apache.cordova.PluginResult.Status.OK) The naming of the variable in the sample code ("loadedURL") might not be ideal, I'll search for a better name for the next version.

Thank you and best regards,
Simon

 
Login or Signup to post a comment