zxing

ZXing ResultPoints to pixels

假如想象 提交于 2020-01-16 17:35:51
问题 I am using ZXing.NET to detect a location of a QR code. When I call the BarcodeReader.Decode(bitmap); function I get an a Result object with ResultPoint[] s as a property that represent the markers in the QR code. It has X and Y coordinates but they are floats and it gives strange results with decimal numbers. I just need the location in pixels not in banana's or something else... Is this possible? How to convert the ResultPoints to pixels? Why am I the only person on the planet asking this

How to store the Generated QR-Code as an image in SDCard (ZXing library)

北慕城南 提交于 2020-01-16 15:50:25
问题 I m making an app based on QR code. I have to Generate a QR-Code of a specific String and also I have to save the generated QR-Code in SD card. is it possible using the Zxing Library. So for I am able to generate the QR-Code, using the following code. Note:I m calling the QR-Code Scanner via Intent. I m inserting the input using an EditText Field right now. see code below public class MainActivity extends Activity { EditText edQR_Field; Button btnGenerate_QR_Code; @Override protected void

How to store the Generated QR-Code as an image in SDCard (ZXing library)

删除回忆录丶 提交于 2020-01-16 15:50:09
问题 I m making an app based on QR code. I have to Generate a QR-Code of a specific String and also I have to save the generated QR-Code in SD card. is it possible using the Zxing Library. So for I am able to generate the QR-Code, using the following code. Note:I m calling the QR-Code Scanner via Intent. I m inserting the input using an EditText Field right now. see code below public class MainActivity extends Activity { EditText edQR_Field; Button btnGenerate_QR_Code; @Override protected void

Add the flashlight button above the Zxing Scanner page

妖精的绣舞 提交于 2020-01-14 06:12:08
问题 I have been developing an scanner application where I have been implementing the Zxing bar code scanner library. I am trying to add a new button(flashlight button) on the scanner page above the camera view but failing. Can anyone help me in putting a button above the scanner view of Zxing? Below I am posting my code. Please help. public class MainActivity extends AppCompatActivity implements ZXingScannerView.ResultHandler{ Integer response = 0 ; int currentIndex=0; private ZXingScannerView

二维码的生成和扫描

柔情痞子 提交于 2020-01-14 06:01:23
二维码已经是很成熟的应用了,正好这次的应用用到二维码开发,自然而然地用第三方的ZXing,遇到不少坑,主要就是ZXing的扫码,差评!最后用AVFoundation实现,很容易的功能,我还是太天真了,不知道ZXing/ObjC是怎么骗到靠2000个星星的. ZXing 公司产品要实现二维码功能,这个早已成熟的功能第一想法肯定是用第三方的,github上一查,ZXing的星星最多,那就它了. 把整个项目copy下来先demo跑起来,下了好久,100多M啊,真大.但其实用不到那么多的,对于只需要生成,扫描二维码,只需要: pod 'ZXingObjC/QRCode' 二维码生成 ZXEncodeHints *hints = [ZXEncodeHints hints]; hints.encoding = NSUTF8StringEncoding; hints.margin = @(0); ZXQRCodeWriter *writer = [[ZXQRCodeWriter alloc] init]; ZXBitMatrix *result = [writer encode:url format:kBarcodeFormatQRCode width:200*[UIScreen screenScale] height:200*[UIScreen screenScale] hints:hints

Android zxing NotFoundException

隐身守侯 提交于 2020-01-11 10:32:09
问题 I'm using zxing to decode QRcode images, but it always returns a NotFoundException. The online decoder at http://zxing.org/w/decode.jspx scans these images perfectly fine, so it should be able to do so in my app. I'm using this code : String path = Environment.getExternalStorageDirectory().getPath()+"/QRPictures/QRTest.bmp"; Bitmap bmp = BitmapFactory.decodeFile(path); int[] pixels = new int[bmp.getWidth()*bmp.getHeight()]; bmp.getPixels(pixels, 0, bmp.getWidth(), 0, 0, bmp.getWidth(), bmp

Invert pixels - zxing

百般思念 提交于 2020-01-10 03:14:10
问题 I'm using a zxing library in my iOS project. It's a library for reading and creating QR Codes. From my researching and browsing around the web the process of decoding the image is made of this steps: takes an image from source, converts all the pixels to 255 grayscale decodes the data One thing which is not supported by this specific library is reading/decoding (and I'm pretty sure that this is missing in creating also) of inverted QRCodes. Inverted QR Codes are basicly the same as normal

zxing camera portrait mode and landscape on android

穿精又带淫゛_ 提交于 2020-01-10 03:09:37
问题 I have already integrated zxing library in my application. Now i want that zxing camera will work on both mode landscape as well as on portrait mode. now it is working on one mode only. Can somebody help me out how to do this? 回答1: I used compyutech 's answer, but there were some things missing. So, I'm putting everything required, here. 1. CameraConfigurationManager : inside initFromCameraParameters method : if (context.getResources().getConfiguration().orientation == Configuration

Unknown globals when installing ZXing Scanner

南楼画角 提交于 2020-01-07 06:42:15
问题 I have a Xamarin.Forms project which needs a QR code scanner. I found ZXing Scanner which seems to be a well established library for such purposes. I installed it in the corresponding android project which worked without errors. When I wanted to build the app, Resource.Designer.cs was adjusted with the following lines: global::ZXing.Mobile.Resource.Id.contentFrame = global::my.project.Droid.Resource.Id.contentFrame; global::ZXing.Mobile.Resource.Layout.zxingscanneractivitylayout = global::my

Build ti.barcode failed

邮差的信 提交于 2020-01-07 06:36:09
问题 This is my first time to build Titanium module. What I am building is the ti.barcode for Android. I grasp the source code from Github and import to Titanium studio. Some build path error is easily corrected by opening build path and just close. There is no error shown on the project. But when I tried to package it, I always get error message: Launching build and packaging failed Build failed. Unable to locate generated zip file at /Users/ymlan/Code/ti.barcode-android-2.3.5/dist/ti.barcode