本文整理汇总了C#中Frame.GetImage方法的典型用法代码示例。如果您正苦于以下问题:C# Frame.GetImage方法的具体用法?C# Frame.GetImage怎么用?C# Frame.GetImage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Frame
的用法示例。
在下文中一共展示了Frame.GetImage方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProcessFrame
public bool ProcessFrame(Frame frame)
{
try
{
frame.GetImage();
}
catch (System.ArgumentException ex)
{
return false;
}
this._manager.AddNewFrame(frame);
var oldFrameMotionResult = new MotionDetectionResult();
bool groupCaptured =
ProcessNewFrame(frame, ref oldFrameMotionResult);
ProcessOldFrame(oldFrameMotionResult);
return groupCaptured;
}
示例2: DetectMotion
public void DetectMotion(Frame frame)
{
try
{
frame.GetImage();
}
catch (System.ArgumentException ex)
{
return;
}
this.manager.AddNewFrame(frame);
FaceProcessingWrapper.MotionDetectionResult oldFrameMotionResult;
bool groupCaptured =
ProcessNewFrame(frame, out oldFrameMotionResult);
ProcessOldFrame(oldFrameMotionResult);
if (groupCaptured)
{
NotifyListener();
}
}
示例3: SaveFrame
public static void SaveFrame(Frame frame)
{
IplImage ipl = frame.GetImage();
string path = frame.GetFileName();
DateTime dt = frame.CapturedAt;
string root = StorageRootPathForCamera(frame.CapturedFrom.Id);
string folder = BuildBigImgPath(root, dt);
if (!Directory.Exists(folder))
{
Directory.CreateDirectory(folder);
}
path = Path.Combine(folder, path);
ipl.SaveImage(path);
}
示例4: SaveFrame
public void SaveFrame(Frame frame)
{
var dto = Mapper.Map<Frame, DAL.DTO.Frame>(frame);
dataProvider.SaveFrame(dto);
var absolutePath = GetAbsolutePath(dto.Path);
frame.GetImage().SaveImage(absolutePath);
}
示例5: ImageResolutionChanged
private bool ImageResolutionChanged(Frame currentFrame)
{
return currentFrame.GetImage().Size != lastImageSize;
}