# Barcode Scanning on Tablet

**URL:** <https://forum.inductiveautomation.com/t/barcode-scanning-on-tablet/18611>\
**Category:** Ignition\
**Created:** [June 25, 2018, 2:58pm UTC](https://forum.inductiveautomation.com/t/barcode-scanning-on-tablet/18611 "2018-06-25T14:58:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.allen.va](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@john.allen.va](https://forum.inductiveautomation.com/u/john.allen.va)\
**Post date:** [June 25, 2018, 2:58pm UTC](https://forum.inductiveautomation.com/t/barcode-scanning-on-tablet/18611/1 "2018-06-25T14:58:19Z")

</div>

Our IS Department has standardized on Lenovo MIIX tablets that run Windows. We would like to use these tablets on the production floor to interact with an Ignition project over WiFi. The operators will have to enter part number data in the form of a 15 character string. In my opinion this is a recipe for fat-fingering the data. Or, the operators will flat out refuse to use the new system because it is too much work to type in 15 characters. Has anyone ever used the onboard camera to scan a bar code or recognize the string directly with OCR? A general road map would be helpful and any input would be appreciated.

---

<div class="post-metadata">

**Author:** ![David.Bell](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@David.Bell](https://forum.inductiveautomation.com/u/David.Bell)\
**Post date:** [August 19, 2019, 6:03pm UTC](https://forum.inductiveautomation.com/t/barcode-scanning-on-tablet/18611/2 "2019-08-19T18:03:04Z")

</div>

Hello, I am interested in this as well. Have you figured out how to use the tablet camera to capture barcodes for ignition perspective?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 19, 2019, 6:22pm UTC](https://forum.inductiveautomation.com/t/barcode-scanning-on-tablet/18611/3 "2019-08-19T18:22:01Z")

</div>

I haven't tried to implement this myself, but this thread should give you a little more info.

> [@\[Question\] Scan Barcode through tablet camera](http://forum.inductiveautomation.com/t/question-scan-barcode-through-tablet-camera/23465):
>
> I’m trying to scan a barcode using a tablet camera, but so far I haven’t been able to get it working. I have a button with the action Scan Barcode set under the onClick event. The barcode type is set to Data Matrix. I have made no other changes to the action settings. If my understanding is correct, when clicking the button my browser should ask for permission to access the tablet camera. When I give permission, the camera view should open allowing me to scan a barcode. When the scan is complet…

---

<div class="post-metadata">

**Author:** ![craigb](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@craigb](https://forum.inductiveautomation.com/u/craigb)\
**Post date:** [August 20, 2019, 2:38am UTC](https://forum.inductiveautomation.com/t/barcode-scanning-on-tablet/18611/4 "2019-08-20T02:38:28Z")

</div>

If your using a tablet, Apple, Samsung or amazon etc.

This works although you may want to use a session property other then tag.

> [@Barcode Scanner Input Component](http://forum.inductiveautomation.com/t/barcode-scanner-input-component/24615/3):
>
> I played around with the barcode component yesterday. I created a button that triggered the scan barcode event, Then in session events added this script under Barcode scanned. system.tag.writeAsync(['[default]New Tag'], [data.text]) New tag was the name of the memory tag I created just for testing. The button opened the device camera and as soon as it detects a barcode it closes the camera and puts the barcode results into the tag.

---

<div class="post-metadata">

**Author:** ![David.Bell](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@David.Bell](https://forum.inductiveautomation.com/u/David.Bell)\
**Post date:** [August 20, 2019, 5:39pm UTC](https://forum.inductiveautomation.com/t/barcode-scanning-on-tablet/18611/5 "2019-08-20T17:39:16Z")

</div>

Thanks! I also found a good document on it:

[https://www.inductiveuniversity.com/video/barcode-scanned/8.0?r=%2Fvideo%2Fsearch%2F%3Fq%3Dbarcode%20scanning%26checked\_topics%3D](https://www.inductiveuniversity.com/video/barcode-scanned/8.0?r=%2Fvideo%2Fsearch%2F%3Fq%3Dbarcode%20scanning%26checked_topics%3D)
