简体   繁体   English

使用移动相机作为条码扫描器

[英]Using a Mobile Camera as a Barcode Scanner

I want to create an app where I can use a phones camera to scan barcodes.我想创建一个应用程序,我可以在其中使用手机摄像头扫描条形码。 I want to know how I would go about accessing the phones camera and how I would get the program to scan barcodes from the camera.我想知道我将如何访问手机相机以及如何让程序从相机扫描条形码。

The ZXing project provides a standalone barcode reader application which — via Android's intent mechanism — can be called by other applications who wish to integrate barcode scanning. ZXing 项目提供了一个独立的条码阅读器应用程序——通过 Android 的意图机制——可以被其他希望集成条码扫描的应用程序调用。

This is a link to the project on github you'll find a sample app hope it helps这是 github 上项目的链接,您将找到一个示例应用程序,希望对您有所帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM