What parts of source code to use for data matrix scanning/processing

28 views
Skip to first unread message

Shania Marks

unread,
Jun 3, 2016, 11:34:36 AM6/3/16
to zxing
I want to build an app that integrates the scanning/processing of data matrices and this code is phenomenal. However, I was wondering if anyone had some guidance on how to go about this. For example, what pieces of code are necessary, and what would I need to implement myself in order to run that code in my own app.

Thank you!

Lachezar Dobrev

unread,
Jun 6, 2016, 5:34:16 AM6/6/16
to Shania Marks, zxing
  The answer to this question largely depends on the way your application is expected to interact with the user in respect to bar-code scanning and what platform are you using (Android || Web || Java SE || Java EE).

  I'm going to (blatantly) assume you're building an Android Native Application.

  Type 1: Occasional or single bar-code scanning. This is by far the most common case. For applications that occasionally need to scan a single bar-code the easiest, most efficient and future-proof method is to integrate with the ZXing Android Application using Intents[1]:

  Type 2: Bulk, or interactive bar-code scanning. This is not a very common case, and typically requires you to build your application using the ZXing Core [2] and ZXing Android Core [3] sub-projects. This is not an easy road, and might require considerable skill.

2016-06-03 18:34 GMT+03:00 Shania Marks <ivory...@gmail.com>:
I want to build an app that integrates the scanning/processing of data matrices and this code is phenomenal. However, I was wondering if anyone had some guidance on how to go about this. For example, what pieces of code are necessary, and what would I need to implement myself in order to run that code in my own app.

Thank you!

--
You received this message because you are subscribed to the Google Groups "zxing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zxing+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shania Marks

unread,
Jun 6, 2016, 2:20:19 PM6/6/16
to zxing, ivory...@gmail.com
Alright, so I'm building the app to scan single 2D barcodes for the user to receive information on a different products. I think I would have to go with your second type of integration. Does this require to also use the android-integration package? Also, by considerable skill, do you mean someone with years of experience, or someone who has a decent amount of experience integrating projects? Finally, do you have any insight on how to embark on this task and whether an integration for Google Glass would be relatively simple or not?

Thank you

Lachezar Dobrev

unread,
Jun 8, 2016, 5:05:22 AM6/8/16
to Shania Marks, zxing
  You use case is actually a very good fit for Integration Via Intent. Your application should revolve around the interaction with the user, and not about the bar-code scanning. Let ZXing do the scanning, and return the bar-code content, and you deal with the content.
  I would suggest:
  - add the ZXing Android Integration project to your project (it's just two classes)
  - add a button in your application that says 'Scan' or something
  - when the user clicks the button invoke the integration class

  In my (quirky) terminology interactive means continuous scanning for bar-codes and reacting to each and every scan on-the-fly. This is (from what I understand) not your case.

  The "considerable skill" in this instance was used to describe the need for programmers with previous experience working with the Camera API in Android, which is IMVHO neither easy, nor straight-forward, and sometimes it can be quirky with different devices reacting very differently. It's really easy to get lost when the device does not support camera preview with the resolution of the screen.
  One can take a look at the camera management in ZXing, and see the amount of work needed to replicate that.
  Whenever I can I stay clear of replicating the ZXing and use it as intent.

  Have fun!


2016-06-06 21:20 GMT+03:00 Shania Marks <ivory...@gmail.com>:
Alright, so I'm building the app to scan single 2D barcodes for the user to receive information on a different products. I think I would have to go with your second type of integration. Does this require to also use the android-integration package? Also, by considerable skill, do you mean someone with years of experience, or someone who has a decent amount of experience integrating projects? Finally, do  you have any insight on how to embark on this task and whether an integration for Google Glass would be relatively simple or not?

Thank you

Sean Owen

unread,
Jun 8, 2016, 12:39:12 PM6/8/16
to zxing
Did you have a look at the source / javadoc? at least that leads you right to the Data Matrix implementation and its documentation.
You have complete examples of its usage in the project too, in the Android and web apps.
Reply all
Reply to author
Forward
0 new messages