A Dart port of zxing that encode and decode multiple 1D/2D barcodes.

Related tags

Image zxing-dart
Overview

ZXing-Dart

pub package

A Dart port of zxing that encode and decode multiple 1D/2D barcodes.

Progress

  • Core package translate
  • Core test translate
  • Core unit test(all passed)
  • Demo Creator
  • Demo Scanner
  • Code optimization

Preview

Demo App
01 02

Exception Type

  • IllegalArgumentException => ArgumentError
  • FormatException => FormatsException
  • IllegalStateException => StateError

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

You might also like...

Use lottie in flutter for both iOS and Android

flutter_lottie Use Lottie in Flutter. Supports both iOS and Android using lottie-ios and lottie-android Current Status Supports most features that bot

Nov 25, 2022

Multiavatar is a free and open-source multicultural avatar maker.

Multiavatar is a free and open-source multicultural avatar maker.

Flutter Wrapper for Multiavatar Multiavatar is a multicultural avatar maker. Multiavatar represents people from multiple races, multiple cultures, multiple age groups, multiple worldviews and walks of life.

Dec 19, 2022

Minimal Unsplash Android App to easily search and download images

Minimal Unsplash Android App to easily search and download images

Minimal Unsplash Android App to easily search and download images

Dec 7, 2022

A simple and easy flutter demo to crop image

flutter_image_crop A simple demo to crop image on flutter easily. A Chinese version of this document can be found here Flutter_image_crop Plugin will

Jul 8, 2021

Instagram tool to download images, reels, videos and more.

Instagram tool to download images, reels, videos and more.

Instagram tool to download images, reels, videos and more.

Jan 2, 2023

Load GIF images and can set framerate

Load GIF images and can set framerate

Dec 14, 2022

Draw triangle by setting 2 sides and an angle

Draw triangle by setting 2 sides and an angle

Draw_Triangle Draw a triangle by setting 2 sides and an angle. Set an offset (-1x1,-1y1) from which side a and side b are drawn. Features Draw a t

Nov 16, 2021

A Flutter image editor with support for paint, text, filters, emojis, stickers and more

A Flutter image editor with support for paint, text, filters, emojis, stickers and more

Flutter Image Editor Plugin with simple, easy support for image editing using Paints, Text, Filters, Emoji and Sticker like stories.

Dec 22, 2022

A dart package for decode and encode emv QR code

A dart package for decode and encode emv QR code

Nov 15, 2022

Zooper flutter encoding utf16 - Helper classes to encode and decode UTF16 string to List

zooper_flutter_encoding_utf16 Helper classes to encode and decode UTF16 string t

Feb 10, 2022

This Flutter plugin created to show how to use OpenCV and ZXing C++ libraries natively in Flutter with Dart FFI using the camera stream

OpenCV and ZXing C++ libraries natively in Flutter with Dart FFI using the camera stream

Oct 21, 2022

[reborned barcode_scan] A flutter plugin for reading 2D barcodes and QR codes.

Reborned 🎉 Original barcode_scan was discontinued, so barcode_scan2 was borned with sound null safety support 🎉 barcode_scan2 A flutter plugin for s

Jan 6, 2023

A flutter widget that show the camera stream and allow ML vision recognition on it, it allow you to detect barcodes, labels, text, faces...

A flutter widget that show the camera stream and allow ML vision recognition on it, it allow you to detect barcodes, labels, text, faces...

Flutter Camera Ml Vision A Flutter package for iOS and Android to show a preview of the camera and detect things with Firebase ML Vision. Installation

Jan 2, 2023

Encode App-Dev is a open source project which contains different projects of Application development, Android development, IOS development, Flutter, Kotlin, Dart, Java, Swift etc.

HACKTOBERFEST 2022 Encode App-Dev is an open source project which contains different projects of Application development, Android development, IOS dev

Dec 4, 2022

A flutter plugin for decode and genrate emv-mpm qrcode

A flutter plugin for decode and genrate emv-mpm qrcode

Jun 13, 2022

Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium. Maintainer: @Solido

Compact representation of a placeholder for an image. Encode a blurry image under 30 caracters for instant display like used by Medium. Maintainer: @Solido

Flutter BlurHash Compact representation of a placeholder for an image. Generation You can use https://blurha.sh/ for testing or use any official api o

Dec 30, 2022

This flutter package contains a widget called DecodingTextEffect which is having some cool Decode Effects for texts.

 This flutter package contains a widget called DecodingTextEffect which is having some cool Decode Effects for texts.

This flutter package contains a widget called DecodingTextEffect which is having some cool Decode Effects for texts. Installing 1. Depend on it Add th

Nov 25, 2020

Pluggable dashboard to make PRs from multiple sources on multiple repos visible.

pr:mate Pluggable dashboard to make PRs from multiple sources on multiple repos visible. This repo is currently WIP. Further docs will follow. Develop

Oct 12, 2022
Comments
  • PDF 417 Decoding in Flutter Web

    PDF 417 Decoding in Flutter Web

    Would you be able to make this work for Flutter Web, I've been trying to read PDF417 codes using a webcam and haven't had any luck with my own ports or using system channels with / js workarounds.

    opened by BrayFlex 9
  • How to use with ImageStream

    How to use with ImageStream

    In camera module we have an option to get stream of frames _controller.startImageStream( CameraImgae image => { } ) How can I decode it from that CameraImage object? In your example you decode it from Xpic file, but I prefer to decode it with stream because it should be more efficient for live decode

    In addition, when I get the results, does it possible to get the positions of each result? like we can in flutter_zxing lib.

    opened by thewh1teagle 5
  • Datamatrix encode issue

    Datamatrix encode issue

    Hello, I'm trying to encode data matrix format.

    try {
      var dataMatrixWriter = MultiFormatWriter();
      var encode = dataMatrixWriter.encode(
          'FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7',
          BarcodeFormat.DATA_MATRIX,
          48,
          48, {EncodeHintType.DATA_MATRIX_SHAPE : SymbolShapeHint.FORCE_SQUARE, EncodeHintType.MIN_SIZE: Dimension(48,48)});
      var scale = 15;
      var image = img.Image((encode.width + 2) * scale, (encode.height + 2) * scale);
      img.fill(image, Colors.white.value);
      for (var x = 0; x < encode.width; x++) {
        for (var y = 0; y < encode.height; y++) {
          if (encode.get(x, y)) {
            img.fillRect(image, (x + 1) * scale, (y + 1) * scale, (x + 1) * scale + scale,
                (y + 1) * scale + scale, Colors.black.value);
          }
        }
      }
      var pngBytes = img.encodePng(image);
      final File generatedImg = MemoryFileSystem().file('test_' + getRandomString(15));
      generatedImg.writeAsBytesSync(pngBytes);
      setState(() {
        _generatedImg = generatedImg;
      });
    } catch (e, s) {
      print(s);
      print(e);
    }
    

    There are two errors:

    • The borders of the matrix are not correct, see:

    tempFileForShare_20210615-204956 The first pixel must be black, the 2nd one white, the 3rd black, etc... Same thing for the second module, it starts with white instead of black.

    • I cannot encode with a size more than 48x48 (example 52x52):
    try {
      var encode = dataMatrixWriter.encode(
            'FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7FR03AV011E7F1E7',
            BarcodeFormat.DATA_MATRIX,
            52,
            52, {EncodeHintType.DATA_MATRIX_SHAPE : SymbolShapeHint.FORCE_SQUARE, EncodeHintType.MIN_SIZE: Dimension(52,52)});
    } catch (e, s) {
      print(s);
      print(e);
    }
    
    I/flutter ( 6641): #0      _StringBase.substring (dart:core-patch/string_patch.dart:399:7)
    I/flutter ( 6641): #1      StringBuilder.replace (package:zxing_lib/src/common/string_builder.dart:39:39)
    I/flutter ( 6641): #2      StringBuilder.setCharAt (package:zxing_lib/src/common/string_builder.dart:28:5)
    I/flutter ( 6641): #3      ErrorCorrection.encodeECC200 (package:zxing_lib/src/datamatrix/encoder/error_correction.dart:119:14)
    I/flutter ( 6641): #4      DataMatrixWriter.encode (package:zxing_lib/src/datamatrix/data_matrix_writer.dart:84:40)
    I/flutter ( 6641): #5      MultiFormatWriter.encode (package:zxing_lib/src/multi_format_writer.dart:87:19)
    I/flutter ( 6641): #6      _FullScreenCertState.initState.<anonymous closure> (package:pass_sanitaire/main.dart:650:39)
    I/flutter ( 6641): #7      _FullScreenCertState.initState.<anonymous closure> (package:pass_sanitaire/main.dart:647:34)
    I/flutter ( 6641): #8      _rootRunUnary (dart:async/zone.dart:1436:47)
    I/flutter ( 6641): #9      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
    I/flutter ( 6641): <asynchronous suspension>
    I/flutter ( 6641): RangeError: Value not in range: 206
    
    opened by Thom-x 1
  • 无二维码/条形码时,实时识别效率特别低

    无二维码/条形码时,实时识别效率特别低

    Is your feature request related to a problem? Please describe. 如题,我对比了 flutter_zxing(ffi)和 zxing_lib(dart)

    1. 在有二维码/条形时,二者实时识别效率相差不大,甚至 zxing_lib 速度更快(0.006-0.02秒左右),表现更优
    2. 在无二维码/条形时,flutter_zxing 的识别效率变化不大,而 zxing_lib 速度特别慢(1-3秒左右),这是完全无法接受的

    Describe the solution you'd like 优化 zxing_lib 在无二维码/条形时的实时识别效率

    Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

    Additional context Add any other context or screenshots about the feature request here.

    opened by droplet-js 3
Releases(0.8.2)
Owner
shirne
php/flutter/javascript
shirne
FMS2 provides Dart implementation of the core design aspects of the UML state diagrams.

FSM2 provides an implementation of the core design aspects of the UML2 state diagrams. FMS2 supports: Nested States Concurrent Regions Guard Condition

Brett Sutton 46 Sep 28, 2022
Simple and effective cross platform image saver for flutter, supported web and desktop

Simple and effective cross platform image saver for flutter, supported web and desktop

7c00 3 Oct 5, 2022
Loading indicator GIFs. Material and Cupertino (Android and iOS) loading indicators in assorted sizes. Use as placeholders for loading remote image assets. Demo: https://gallery.codelessly.com/flutterwebsites/loadinggifs/

Loading GIFs High quality Android and iOS loading spinners. View Demo Loading GIFs is a collection of high fidelity loading animations in GIF format.

Codelessly 31 Dec 23, 2022
A flutter carousel widget, support infinite scroll, and custom child widget.

carousel_slider A carousel slider widget. Features Infinite scroll Custom child widgets Auto play Supported platforms Flutter Android Flutter iOS Flut

serenader 1.4k Dec 30, 2022
A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content.

A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content. Installation Add dependency to your pubspec.yaml

Anatoly Pulyaevskiy 272 Dec 23, 2022
📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.

Flutter Photo View A simple zoomable image/content widget for Flutter. PhotoView enables images to become able to zoom and pan with user gestures such

Fire Slime Games 1.7k Jan 3, 2023
SVG parsing, rendering, and widget library for Flutter

flutter_svg Draw SVG (and some Android VectorDrawable (XML)) files on a Flutter Widget. Getting Started This is a Dart-native rendering library. Issue

Dan Field 1.5k Jan 6, 2023
A Flutter plugin for Android and iOS supports cropping images

Image Cropper A Flutter plugin for Android and iOS supports cropping images. This plugin is based on two different native libraries so it comes with d

HungHD 891 Dec 28, 2022
Download, cache and show images in a flutter app

Cached network image A flutter library to show images from the internet and keep them in the cache directory. How to use The CachedNetworkImage can be

Baseflow 2.1k Jan 3, 2023
Flutter plugin that allows you to display multi image picker on iOS and Android. 👌🔝🎉

IMPORTANT: This repository has been archived and no longer mantained. As I don't have time anymore to work on the package it became very outdated. For

Radoslav Vitanov 898 Apr 29, 2021