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, IMediaBlockInternalsInheritance
-
MediaBlockVideoSampleGrabberBlock
Implements
-
IMediaBlockIMediaBlockInternals
Inherited Members
-
VideoSampleGrabberBlock.TAGVideoSampleGrabberBlock.OnVideoFrameBufferVideoSampleGrabberBlock.OnVideoFrameSKBitmapVideoSampleGrabberBlock.TypeVideoSampleGrabberBlock.InputVideoSampleGrabberBlock.InputsVideoSampleGrabberBlock.OutputVideoSampleGrabberBlock.OutputsVideoSampleGrabberBlock.SaveLastFrameVideoSampleGrabberBlock.IsAvailable()VideoSampleGrabberBlock.GetCore()VideoSampleGrabberBlock.GetElement()VideoSampleGrabberBlock.Build()VideoSampleGrabberBlock.IMediaBlockInternals.SetContext(MediaBlocksPipeline)VideoSampleGrabberBlock.GetLastFrame()VideoSampleGrabberBlock.GetLastFrameAsSKBitmap()VideoSampleGrabberBlock.Dispose(bool)VideoSampleGrabberBlock.CleanUp()MediaBlock._isBuiltMediaBlock._pipelineMediaBlock._pipelineCtxMediaBlock.GetPipelineContext()MediaBlock.SetPipelineContext(BlockPipelineContext)MediaBlock.SetPipeline(MediaBlocksPipeline)MediaBlock.ContextMediaBlock.NameMediaBlock.IsBuiltMediaBlock.OwnerMediaBlock.TypeMediaBlock.IDMediaBlock.InputMediaBlock.InputsMediaBlock.OutputMediaBlock.OutputsMediaBlock.HasInputsMediaBlock.HasOutputsMediaBlock.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
addNullRendererbool-
If set to
true, adds a null renderer to consume frames without display, useful for processing-only scenarios. nullRendererSyncbool-
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
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
Type
Gets the media block type identifier for this face detector block.
public override MediaBlockType Type { get; }Property Value
- MediaBlockType
See Also
-
VideoSampleGrabberBlock