相机格式更改
This commit is contained in:
@ -3,6 +3,7 @@ using System.ComponentModel;
|
||||
using System.Drawing.Imaging;
|
||||
using AntdUI;
|
||||
using DH.Commons.Enums;
|
||||
using DVPCameraType;
|
||||
using HalconDotNet;
|
||||
using OpenCvSharp;
|
||||
|
||||
@ -47,11 +48,13 @@ namespace DH.Commons.Base
|
||||
// 私有字段 + 带通知的属性(与DetectionLabel风格一致)
|
||||
private bool _isEnabled = false;
|
||||
private bool _isallPicEnabled = true;//默认全画幅
|
||||
private bool _isRGBEnabled = true;//默认彩色
|
||||
private bool _isContinueMode = false;
|
||||
private bool _isSavePicEnabled = false;
|
||||
private bool _isZoomCamera = false;
|
||||
private string _imageSaveDirectory;
|
||||
private EnumCamType _CamType;
|
||||
private dvpStreamFormat _dvpstreamFormat = dvpStreamFormat.S_RGB24;
|
||||
private ImageFormat _imageFormat = ImageFormat.Jpeg;
|
||||
private bool _isHardwareTrigger = true;
|
||||
private string _serialNumber = string.Empty;
|
||||
@ -71,6 +74,20 @@ namespace DH.Commons.Base
|
||||
|
||||
public volatile int SnapshotCount = 0;
|
||||
|
||||
[Category("相机设置")]
|
||||
[DisplayName("图像格式")]
|
||||
[Description("相机采集图像格式")]
|
||||
public dvpStreamFormat DvpImageFormat
|
||||
{
|
||||
get => _dvpstreamFormat;
|
||||
set
|
||||
{
|
||||
if (_dvpstreamFormat == value) return;
|
||||
_dvpstreamFormat = value;
|
||||
OnPropertyChanged(nameof(DvpImageFormat));
|
||||
}
|
||||
}
|
||||
|
||||
[Category("采图模式")]
|
||||
[DisplayName("连续模式")]
|
||||
[Description("是否连续模式。true:连续模式采图;false:触发模式采图")]
|
||||
|
@ -27,6 +27,9 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="DVPCameraCS64">
|
||||
<HintPath>..\X64\Debug\DVPCameraCS64.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="halcondotnet">
|
||||
<HintPath>..\x64\Debug\halcondotnet.dll</HintPath>
|
||||
</Reference>
|
||||
|
Reference in New Issue
Block a user