public void SetCurrentFrame(int index)
{
if (index == CurrentFrame)
{
return;
}
if (_DCapture != null)
{
_DCapture.SetCaptureProperty(CAP_PROP.CV_CAP_PROP_POS_FRAMES, index);
}
if (_CCapture != null)
{
_CCapture.SetCaptureProperty(CAP_PROP.CV_CAP_PROP_POS_FRAMES, index);
}
CurrentFrame = index;
ProcessFrame();
}