GuidExtensionCode =":0", RUN ="/usr/local/bin/usb-qreader" The entry is this one: Bus 001 Device 005: ID 1871:0101 Aveo Technology Corp.Ĭouldn't open device, some information will be missingīFunctionSubClass 3 Video Interface Collection I think I can't scan codes because my QR code reader don’t have buttons to make a scan. I think it does need a driver, and I only have the Windows drivers. 8-in-1 Media Card Readerīus 002 Device 003: ID 0461:4d16 Primax Electronics, Ltdīus 002 Device 004: ID 0461:0010 Primax Electronics, Ltdīus 001 Device 005: ID 1871:0101 Aveo Technology Corp.īus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubīus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Lsusb: Bus 002 Device 002: ID 058f:9360 Alcor Micro Corp. Is there a possibility to use it on Ubuntu? Set the initial scanner text to be displayed (i.e before a barcode is scannned)Īlso note that in the Java Code I have replaced class CameraSource.java in the google-play-services.I'm trying to use a QR code reader on Ubuntu, but the drivers are only for Windows. It will return the ID as -1 if there is no front facing camera If the device has a front facing camera only then the ID = 0 If the device has a front and back camera then the ID = 1 Use avc1.BackFacingCamera and avc1.FrontFacingCamera to get the camera ID's It will return the ID as -1 if there is no back facing cameraįor a device with front and back cameras -> front = 1 and back = 0įor a device with a front camera only -> front = 0įor a device with a back facing camera only -> back = 0 If the device has a back facing camera only then the ID = 0 If the device has a front and back camera then the ID = 0 ![]() If the ID is -1 after initialization then the device does not support a front facing camera If the device has a front camera only then the ID's will be BACK = -1 and FRONT = 0 after initialization If the device has a back camera only then the ID's will be BACK = 0 and FRONT = -1 after initialization If the device has front and back cameras then the ID's will be BACK = 0 and FRONT = 1 after initialization If the ID is -1 after initialization then the device does not support a back facing camera You must disable the READ ONLY property of this xml file, do the changes, save the xml file, and then set the property back to READ ONLY.Īuthor: Github: Nishant Srivastava, Wrapped by: Johan Schoeman If you want to change the size (width / height) of the scanner then do so by editing activity_main.xml in the /Object/res/layout folder of the B4A project. Sub myscanner_scan_result(result As String) Sub Activity_Pause (UserClosed As Boolean) Myscanner.InitialScannerText = "Scan a 1D or 2D Barcode" 'Do not forget to load the layout file created with the visual designer. Sub Activity_Create(FirstTime As Boolean) 'These variables can only be accessed from this module. ![]() 'These global variables will be redeclared each time the activity is created. 'These variables can be accessed from all modules. 'These global variables will be declared once when the application starts. ![]() #AdditionalRes: C:\ANDRIOD_SDK_TOOLS\extras\google\google_play_services\libproject\google-play-services_lib\res, #AdditionalRes: C:\ANDRIOD_SDK_TOOLS\extras\android\support\v7\appcompat\res, 7.appcompat #AdditionalRes: C:\Users\-2\Documents\Basic 4 Android\JOHAN APPS\JHS LIBS\resource\b4a_appcompat, de. 'SupportedOrientations possible values: unspecified, landscape or portrait.
0 Comments
Leave a Reply. |