zxing

Zxing库

百般思念 提交于 2020-02-09 03:24:32
一.介绍   Zxing是一个开放的源码,用java实现的多种样式的1D/2D条码处理库,它包含了联系到其他语言的端口。Zxing可以实现手机的内置摄像头完成条码的扫描及解码。目前支持:UPC-A ,UPC-E ,EAN-8 ,EAN-13 ,39 码,93码。 二.Zxing库的主要类   1.CaptureActivity :启动Activity,也就是扫描器   2.CaptureActivityHandler :解码处理器,负责调用另外的线程进行解码   3.DecodeThread :解码线程   4.com.google.zxing.client.android.camera包:摄像头调用包   5.ViewfinderView :自定义的View,就是我们看到的拍摄中间的框框 三. 使用Zxing生成二维码 //Edited by mythou //http://www.cnblogs.com/mythou/   //要转换的地址或字符串,可以是中文 public void createQRImage(String url) { try { //判断URL合法性 if (url == null || "".equals(url) || url.length() < 1) { return; } Hashtable<EncodeHintType, String>

杂项-QRCode:ZXing

杀马特。学长 韩版系。学妹 提交于 2020-02-08 23:17:38
ylbtech-杂项-QRCode:ZXing 1. 返回顶部 1、 ZXing是一个开放源码的,用Java实现的多种格式的1D/2D条码图像处理库,它包含了联系到其他语言的端口。Zxing可以实现使用手机的内置的摄像头完成条形码的扫描及解码。 该项目可实现的条形码编码和解码。我们目前支持以下格式: UPC-A,UPC-E EAN-8,EAN-13 39码 93码 代码128 创新及科技基金 库德巴 RSS-14(所有的变体) RSS扩展(大多数变体) QR码 数据矩阵 阿兹台克人('测试版'质量) PDF 417('阿尔法'的质量) Zxing库的主要部分支持以下几个功能:核心代码的使用、适用于J2SE客户端的版本、适用于Android客户端的版本(即BarcodeScanner)、Android的集成(通过Intent支持和BarcodeScanner的集成)等。 2、 2. 返回顶部 3. 返回顶部 4. 返回顶部 5. 返回顶部 0、 https://zxing.org/w/decode.jspx 1、 https://baike.baidu.com/item/zxing 2、 https://archive.codeplex.com/?p=zxingnet 2.1、 https://github.com/micjahn/ZXing.Net 3、 6. 返回顶部 作者:

How to ZXING Barcode Scanner not full screen only half screen

不羁的心 提交于 2020-01-27 03:09:45
问题 I want create application Scan Barcode using ZXING Barcode Scanner Like Blackberry Messenger This is my code " MainActivity.java " package com.example.ridwan.myapplication; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; import info.vividcode.android.zxing.CaptureActivity; import info.vividcode.android.zxing.CaptureActivityIntents; public class MainActivity extends

Freshly imported Android Studio project errors with zxing module

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-25 02:20:30
问题 I have been using zxing module as an android library for some time without problems. I have imported my Eclipse project into Android Studio (which I use for everything else!) and the zxing library is added as a module. In one of my classes in the main module I reference the com.google.zxing.android.client.Intents class which is in the zxing module. I can write code in Android studio and these references have the correct imports selected. When I run a gradlew clean build I am getting messages

Get access to Zxing QR scanner camera view

好久不见. 提交于 2020-01-25 00:17:05
问题 I am new to android development and I am working on an android project where I have to integrate QR scanner. So I thought I would integrate Zxing QR scanner and came across this library https://github.com/dm77/barcodescanner, Following the instructions provided I have successfully integrated and scanned a QR as well. Now I want to customise the camera view. The problem is there is no documentation on how to get access to the camera layout. Since I am new I might be missing something. I have

Change screen orientation automatically while scanning (using ZXING library)

南笙酒味 提交于 2020-01-24 02:49:20
问题 I've MainActivity.kt where I show different fragments for different needs. At some point, I press button 'X' that calls startScanner() function: private fun startScanner() { IntentIntegrator(this) .setOrientationLocked(false) .setPrompt("SCANNING?") .initiateScan() } Manifest.xml: <activity android:name=".MainActiity" android:theme="@style/AppTheme" tools:replace="android:screenOrientation" android:stateNotNeeded="true" android:screenOrientation="fullSensor" android:windowSoftInputMode=

Scan QR code if multiple QR code showing on screen

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-23 12:24:45
问题 I am developing one android sample application as an academic project where I need to scan QR code, I used QR scan code library and I am able to detect QR code successfully if on screen there is only one QR code. Right I want to scan QR code although same QR code showing at multiple places on screen at a time. For an example, On my laptop screen QR code image looks like below mentioned images.All QR codes are same, there is no difference between them. Consider below images which are having 6

Scan QR code if multiple QR code showing on screen

守給你的承諾、 提交于 2020-01-23 12:24:25
问题 I am developing one android sample application as an academic project where I need to scan QR code, I used QR scan code library and I am able to detect QR code successfully if on screen there is only one QR code. Right I want to scan QR code although same QR code showing at multiple places on screen at a time. For an example, On my laptop screen QR code image looks like below mentioned images.All QR codes are same, there is no difference between them. Consider below images which are having 6

Zxing android 解析流程

天大地大妈咪最大 提交于 2020-01-22 15:54:38
对于刚开始学习android开发的童鞋们来说,若有一个简单而又全面的android工程能来剖析,那就是再好不过了,zxing就是不错得例子。 zxing的源码可以到google code上下载,整个源码check out 下来,里面有各个平台的源码,ios的,android的。当然我们需要的就是android代码。 将android的工程导入到eclipse中,导入完成后,eclipse会显示各种错误,这是缺少core文件夹里面的核心库文件所致,在project中创建文件夹core,再将zxing源码中得core文件夹下得代码导入进来,这样就可以了。 如果遇到unable resolved target-X,则是你的avd版本问题,可以在project.propertities修改target值。clean下就ok。 如上的都是zxing android代码分析的准备,下面的则是正式开始。 如上图:为整个android工程的代码,android入门就重这些代码着手。其中主要关注的是android,camera,encode,result文件夹。 程序启动的流程:加载main activity,在此类中创建CaptureActivityHandler对象,该对象启动相机,实现自动聚焦,创建DecodeThread线程,DecodeThread创建Decodehandler

How to make Zebra Xing (Zxing) as subview in Xamarin Android

假如想象 提交于 2020-01-17 07:29:47
问题 In my Xamarin.Android app, I want to use ZXing to scan barcode. I want to display the scanner in the view of an activity. Code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="5"> <Button android:text="Scan with Default Overlay" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id=