haarcascade

A Dart package for detecting objects in images using Haarcascade and OpenCV.

Features

  • Detect faces in images

Getting started

To use this package, add haarcascade as a dependency in your pubspec.yaml file.

dependencies:
  haarcascade: ^0.0.2

Then import the package in your Dart code.

import 'package:haarcascade/haarcascade.dart';

Usage

Here is an example of how to use the package to detect faces in an image.

// 1) Load the Haar Cascade data
final cascade = await Haarcascade.load();

// 2) Load the image
final image = File('path/to/image.jpg');

// 3) Detect faces
final faces = cascade.detect(image);

Libraries

haarcascade