这是indexloc提供的服务,不要输入任何密码

haarcascade 0.0.2 copy "haarcascade: ^0.0.2" to clipboard
haarcascade: ^0.0.2 copied to clipboard

A flutter plugin for face detection using OpenCV and Haar Cascades.

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);