Scanning barcode in Desktop-Browser using mobile - javascript

Is it possible that -
We scan a Bar-code by using Android device camera
Then plugging USB with a desktop
Passing the scanned Bar-code data from Mobile to PC
And filling a web-form opened in a browser in the desktop by using the data arriving through USB
If this is possible, can anyone suggest me how to implement this one? I have been looking for some solutions but those works only in mobile.

If you want to use an Android device camera, you don't need to connect the device to the USB port. Not like a webcam, there's no driver for opening Android camera straightforward on PC.
A possible workaround:
Use WebSocket for communication between the desktop browser (E.g. desktop.htm) and the mobile browser (E.g. mobile.htm).
Use WebRTC (getUserMedia) to open Android camera in the mobile browser.
Embed a JavaScript barcode SDK (E.g. ZXing or Dynamsoft JavaScript Barcode SDK) into your mobile web app.
Read barcodes and sync results from mobile.htm to desktop.htm via WebSocket.

Yes, i recomand xZing librabry: https://github.com/zxing/zxing for barcode scanner . Use the barcode scanner to write into a .txt How to Read/Write String from a File in Android or .csv How to export data to csv file in Android? file wich you can copy in your desktop. For the last part i don't have an answer..

Related

Firing and listening for Android Intents in Javascript in regular Android web browsers?

I cannot find much recent information on this topic. Does anyone know if there is any way to both fire an Android Intent (any Intent) and listen for an Android Intent being broadcast within a HTML/JavaScript application running inside a regular Android web browser, such as Chrome?
We currently do this in our HTML/JavaScript web applications using Cordova and an Android Intents Cordova Plugin and it works perfectly. But we would like to move away from Cordova and back to using regular mobile browsers.
We are currently running our web apps on Zebra laser scanner Android devices via Cordova and the Intent fire/listen is to interact with the Zebra laser scanner. This is what we want to replace via standard Chrome web browser instead.
Anyone know if there is any possibility at all to fire/listen for any Android Intents from inside Chrome?
And yes, we are very familiar with the Zebra Enterprise Browser which would handle this situation easily (without Intents), but that is not free and we have a huge amount of Zebra devices, so that option is out at this point due to cost.
Thanks,
Brendan

Streaming external (usb3) camera footage to a video element in chrome for android

I'm developing a web application for remote assistance.
The webpage uses WebRTC to stream footage from the camera of one client to the other client.
Everything is working fine, with the default internal phone cameras that is (via navigator.mediaDevices.getUserMedia()).
The problem is that I'm developing this for a smartglass connected to the phone via USB3. I want to use the camera from the smartglass instead of the internal camera's.
When I enumerate all devices, I only get two audio devices and two video devices (the two internal cameras) even with the smartglass plugged in. I'm logging this remotely in chrome for desktop.
Also navigator.usb.getDevices won't give me any results.
Is it possible to access USB cameras from Javascript in Chrome for android?
This is not a duplicate question. In contrast to the other question I DO have access to the camera's, only not the camera I want, which is an external camera connected to my phone by USB3

How do I authenticate my electron application using an USB fingerprint scanning device?

I have an application written in electronJS. I want to enable authentication via a USB fingerprint scanning device. Can this be achieved with any USB fingerprint(FP) scanning device or do I need to look up for the one which exposes javascript SDK? Does there exist such FP scanning device?

opencv,node.js and android communication

I have developed a program which detects human in real time(webcam) and displays it to the webpage of the local network. This is done by creating a server and websockets using Node.js and opencv.
Now, I have to develop an android app where i should get a notification everytime when the human is detected from the webcam video of a local host. How can i achieve this using node.js server and android interfacing?
Any suggestions or inputs with code examples would be more helpful.
Try using ionic to convert between webpages and android. Then use push notifications to alert the user.

Is it possible to access phone camera in system / pc browser

Recently we worked on reading a QR code in our website, with manual focus camera in the System browser (Chrome) and the same is tested with Mobile browser (chrome) with mobile camera. We succeed in doing it but, according to the end user feed back its actually taking time to read/scan with manual focus camera and its easy with mobile camera. But as per our requirement we need to implement it on PC browser with manual focus camera.
Is there any way that we can use Mobile device camera to integrate with the PC browser. Currently we are working with few JAVA based mobiles which allow mobile camera to use as web cam. Any help would be appreciated to crack this.
what I have used is cordova has many plugins that can consume using Javascript or if you use angularjs there is a version called ng-cordova.
Cordova https://cordova.apache.org/
Ng-cordova: http://ngcordova.com/
I hope that will help.
You Can Use Mobile Camera With PC Browser But It Is Difficult
Step:
Write An Application To Capture Picture From Phone And Send It To Browser .
Phone And PC Should Be At Same Network And Phone Accessed From Browser with It Local IP address To Get Pictures .
Users Most Install Your Application On They Phones And Set Static IP Adderss For Phones Example 192.168.1.100
In Website You Most Get Picture From 192.168.1.100 And Show It.

Categories