Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Sample computer vision pipeline with Foreign Function Interface

License

Notifications You must be signed in to change notification settings

VisualPT/flutter_camera_processing

 
 

Repository files navigation

flutter_camera_processing

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

App Features

  • Uses OpenCV v4.7.0 C++ library to process the camera stream
  • Utilizes ZXing v2.0.0 C++ library to scan more than 15 barcode types
  • Implements Dart FFI to access the native libraries.
  • Utilizes ffigen to generate FFI bindings
  • Works on Android and iOS

Building and Running

To build and run the project, follow these steps:

  1. Download the required versions of the OpenCV and ZXing libraries and install them.
    Note: The project uses wget to download the libraries from the command line.
    If you're on macOS, you can use Homebrew to install wget:
brew install wget
  1. On macOS, run the init.sh script:
sh init.sh

On Windows, run the init_windows.ps1 script:

.\init_windows.ps1

By following these steps, you will have the necessary dependencies installed and the project ready to be built and run on both Android and iOS devices.

License

MIT License. See LICENSE.

About

Sample computer vision pipeline with Foreign Function Interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 69.4%
  • C++ 8.5%
  • C 5.3%
  • Ruby 4.0%
  • Shell 3.6%
  • PowerShell 3.6%
  • Other 5.6%