public void Stop() { _yoloWrapper?.Stop(); if (_rawFramesSource == null) { return; } _rawFramesSource.Stop(); _realtimeVideoSource.SetRawFramesSource(null); _rawFramesSource = null; }