Barcode - front camera

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
boruciak
Posts: 23
Joined: 31 Aug 2018 09:06

Barcode - front camera

Post by boruciak » 02 Sep 2018 14:52

Hi!
How to use the front camera to scan barcodes?
Any ideas?
Regards

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Barcode - front camera

Post by digitalstone » 02 Sep 2018 16:08

Place an Action called "Barcode Scan".
Run the flow, and hold any barcode it front of your camera.

When the barcode is captured, it will generate a value within the variable "barcode_text".
From there you can do whatever you want with that text.
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Barcode - front camera

Post by Desmanto » 02 Sep 2018 17:22

There is no option to select the front cam yet, because most of the time we scan using main cam. But maybe it is nice to have the option there. I would like also to have the scan limited to certain code only, example only QRCode. This is to optimize the scanning and reducing the false scan result (QRcode detected as barcode). I think this should be in the Feature requests section.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Barcode - front camera

Post by digitalstone » 02 Sep 2018 19:18

Oh ... boruciak said "front cam".
I didn't read that right.
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

boruciak
Posts: 23
Joined: 31 Aug 2018 09:06

Re: Barcode - front camera

Post by boruciak » 23 Sep 2018 15:10

Thanks for the help.
I gave up. I used NFC_TAG reader.

rawand
Posts: 2
Joined: 23 Sep 2018 06:51

Re: Barcode - front camera

Post by rawand » 26 Sep 2018 06:34

I am totally agree with Digitalstone's ideas and thoughts.
Graduated from Soran University with First Class Degree with Honours in Computer Science.

Post Reply