Table of Contents

Class FaceDetectorBlock

Namespace
VisioForge.Core.MLKit
Assembly
VisioForge.Core.MLKit.dll

Represents a media block that performs real-time face detection on video frames using Google ML Kit. This block processes video frames in the pipeline and raises events when faces are detected. Implements the VisioForge.Core.MediaBlocks.VideoProcessing.VideoSampleGrabberBlock

public class FaceDetectorBlock : VideoSampleGrabberBlock, IMediaBlock, IDisposable, IMediaBlockInternals

Inheritance

MediaBlock
VideoSampleGrabberBlock

Implements

IMediaBlock
IMediaBlockInternals

Inherited Members

VideoSampleGrabberBlock.TAG
VideoSampleGrabberBlock.OnVideoFrameBuffer
VideoSampleGrabberBlock.OnVideoFrameSKBitmap
VideoSampleGrabberBlock.Type
VideoSampleGrabberBlock.Input
VideoSampleGrabberBlock.Inputs
VideoSampleGrabberBlock.Output
VideoSampleGrabberBlock.Outputs
VideoSampleGrabberBlock.SaveLastFrame
VideoSampleGrabberBlock.IsAvailable()
VideoSampleGrabberBlock.GetCore()
VideoSampleGrabberBlock.GetElement()
VideoSampleGrabberBlock.Build()
VideoSampleGrabberBlock.IMediaBlockInternals.SetContext(MediaBlocksPipeline)
VideoSampleGrabberBlock.GetLastFrame()
VideoSampleGrabberBlock.GetLastFrameAsSKBitmap()
VideoSampleGrabberBlock.Dispose(bool)
VideoSampleGrabberBlock.CleanUp()
MediaBlock._isBuilt
MediaBlock._pipeline
MediaBlock._pipelineCtx
MediaBlock.GetPipelineContext()
MediaBlock.SetPipelineContext(BlockPipelineContext)
MediaBlock.SetPipeline(MediaBlocksPipeline)
MediaBlock.Context
MediaBlock.Name
MediaBlock.IsBuilt
MediaBlock.Owner
MediaBlock.Type
MediaBlock.ID
MediaBlock.Input
MediaBlock.Inputs
MediaBlock.Output
MediaBlock.Outputs
MediaBlock.HasInputs
MediaBlock.HasOutputs
MediaBlock.Build()
MediaBlock.CreateElements()
MediaBlock.AddElementsToPipeline()
MediaBlock.RemoveElementsFromPipeline()
MediaBlock.DeepCopy(string)
MediaBlock.Reset()
MediaBlock.ToYAMLBlock()
MediaBlock.ClearPads()
MediaBlock.Dispose(bool)
MediaBlock.Dispose()

Constructors

FaceDetectorBlock(bool, bool)

Initializes a new instance of the VisioForge.Core.MLKit.FaceDetectorBlock class.

public FaceDetectorBlock(bool addNullRenderer = false, bool nullRendererSync = false)

Parameters

addNullRenderer bool

If set to true, adds a null renderer to consume frames without display, useful for processing-only scenarios.

nullRendererSync bool

If set to true, enables synchronization for the null renderer to maintain frame timing.

Fields

TAG

The logging tag used to identify this block in debug output and logging systems.

protected const string TAG = "FaceDetectorBlock"

Field Value

string

Properties

JSONFile

Gets or sets the file path for exporting face detection results in JSON Lines format. Each detected face will be written as a separate JSON line containing position and timestamp information.

public string JSONFile { get; set; }

Property Value

string

Type

Gets the media block type identifier for this face detector block.

public override MediaBlockType Type { get; }

Property Value

MediaBlockType

See Also

VideoSampleGrabberBlock