3d Image scanning in outsystems mobile applications

3d Image scanning in outsystems mobile applications

  

Hi Team,

I have tried all the bar code scanners provided on the forge to scan the  3D or PDF type barcode ,sample attached  .There is one app on forge that can process the format correctly is xing plugin.


We wan to UI like scan barcode,whch will scan the image automatically and send call to the xing api and return results.

Is there some simple way to achieve this?

Have you tried this one?

https://www.outsystems.com/forge/component/1934/barcode-scanner-plugin/

This comes with a sample app.

The sample barcode you attached is a PDF417 barcode.  This plugin is supposed to be able to read that type of barcode.

Hi Davidk and Muhammad,


Just a small complement: this forum message indicates the currently supported formats for the component.  


PDF417 seems to be supported only on Android and by using the "formats" option.


Cheers,

Renato



Davidk wrote:

Have you tried this one?

https://www.outsystems.com/forge/component/1934/barcode-scanner-plugin/

This comes with a sample app.

The sample barcode you attached is a PDF417 barcode.  This plugin is supposed to be able to read that type of barcode.



Thank you Davidk  and Renato Torres for your response.

We have also tried same plugin with iOS and it does not support.

We are looking some component which support both android and iOS.

I know that the MicroBlink Plugin works for iOS... but you must pay for a license.  You can get a trial license for testing at their site.

Hello,

We have tried using https://github.com/PDF417/pdf417-phonegap but that gave error when creating application but found https://github.com/alejonext/pdf417-phonegap in apache cordova plugin for scanning pdf417, it is able to open the camera, scan the barcode and sound beep, but it fails to call the callback functions.

Below is what I have written in plugin

/**
 * Scan these barcode types
 * Available: "PDF417", "USDL", "QR Code", "Code 128", "Code 39", "EAN 13", "EAN 8", "ITF", "UPCA", "UPCE"
 */
var types = JSON.parse($parameters.typesJSON);

/**
 * Initiate scan with options
 * NOTE: Some features are unavailable without a license
 * Obtain your key at http://pdf417.mobi
 */
var options = {
    beep : true,  // Beep on
    noDialog : true, // Skip confirm dialog after scan
    uncertain : false, //Recommended
    quietZone : false, //Recommended
    highRes : false, //Recommended
    inverseScanning: false,
    frontFace : false
};

// Note that each platform requires its own license key

// This license key allows setting overlay views for this application ID: mobi.pdf417.demo
var licenseiOs = $parameters.LicenseIOs;

// This license is only valid for package name "mobi.pdf417.demo"
var licenseAndroid = $parameters.LicenseAndroid;

// scan
$parameters.ResultList = $parameters.ResultList + "1" + " | ";
cordova.plugins.pdf417Scanner.scan(
    // Register the callback handler
    function callback(scanningResult) {

        // handle cancelled scanning
        if (scanningResult.cancelled === true) {
            $parameters.ResultList = $parameters.ResultList + "Cancelled";
            return;
        }

        $parameters.ResultList = $parameters.ResultList + "4" + " | ";

        // Obtain list of recognizer results
        var resultList = scanningResult.resultList;

        // Iterate through all results
        for (var i = 0; i < resultList.length; i++) {
           
            // Get individual result
            var recognizerResult = resultList[i];
            $parameters.ResultList = $parameters.ResultList + recognizerResult.resultType + " | ";

        }

    },
    // Register the error callback
    function errorHandler(err) {
        $parameters.ResultList = $parameters.ResultList + "Error " + JSON.stringify(err);
    },
    types, options, licenseiOs, licenseAndroid

);

solved: Just needed $resolve() function at the callback function to return the value back.