C# Класс Accord.Vision.Detection.HaarCascadeWriter

Automatic transcriber for Haar cascades.
This class can be used to generate code-only definitions for Haar cascades, avoiding the need for loading and parsing XML files during application startup. This class generates C# code for a class inheriting from HaarCascade which may be used to create a HaarObjectDetector.
Показать файл Открыть проект

Открытые методы

Метод Описание
HaarCascadeWriter ( TextWriter stream ) : System

Constructs a new HaarCascadeWriter class.

Write ( HaarCascade cascade, string className ) : void

Writes the specified cascade.

Приватные методы

Метод Описание
writeFeature ( HaarFeatureNode node ) : void
writeRectangle ( HaarRectangle rectangle ) : void
writeStage ( int i, HaarCascadeStage stage ) : void
writeTrees ( HaarCascadeStage stage, int j ) : void

Описание методов

HaarCascadeWriter() публичный Метод

Constructs a new HaarCascadeWriter class.
public HaarCascadeWriter ( TextWriter stream ) : System
stream System.IO.TextWriter The stream to write to.
Результат System

Write() публичный Метод

Writes the specified cascade.
public Write ( HaarCascade cascade, string className ) : void
cascade HaarCascade The cascade to write.
className string The name for the generated class.
Результат void