Ranzit Ranzit - 1 month ago 20
Javascript Question

Pure HTML5 Mobile Browser App for Barcode Scanning & Barcode Generating using jquery/javascript

I need an approach that is pure HTML5 Mobile Browser App for Barcode Scanning & Barcode Generating using jquery/javascript.

My Requirement is I need to scan the barcode from my mobile browser HTML5 app. I need to scan the code from the captured screen which is captured by camera via scanning.

How can I capture an image in my HTML5 application?

Answer

You can use the accept attribute of a file type input like this:

<input type="file" accept="image/*;capture=camera">

Here is more information on capturing media using your mobile device: http://www.html5rocks.com/en/tutorials/getusermedia/intro/

You would then need to create a webservice to consume the input and return any relevant information

Comments