|
|
@@ -108,7 +108,7 @@ namespace TeamAAS_VP.Core.Cameras
|
|
|
IsFindByIp = isFindByIp;
|
|
|
mvCameraAcq = new SciCam();
|
|
|
SciCam.SCI_DEVICE_INFO_LIST stDeviceList = new SciCam.SCI_DEVICE_INFO_LIST(); //设备列表
|
|
|
- uint nReVal = SciCam.DiscoveryDevices(ref stDeviceList, (uint)(SciCam.SciCamTLType.SciCam_TLType_CL));
|
|
|
+ uint nReVal = SciCam.DiscoveryDevices(ref stDeviceList, (uint)(SciCam.SciCamTLType.SciCam_TLType_Gige));
|
|
|
if (nReVal != SciCam.SCI_CAMERA_OK)
|
|
|
{
|
|
|
return;
|
|
|
@@ -174,12 +174,12 @@ namespace TeamAAS_VP.Core.Cameras
|
|
|
{
|
|
|
if (!CheckSoftwareInstalled().isInstalled)
|
|
|
{
|
|
|
- LogHelper.WriteLogInfo("未安装MVS");
|
|
|
+ LogHelper.WriteLogInfo("未安装OPT");
|
|
|
return cameras.ToArray();
|
|
|
}
|
|
|
|
|
|
SciCam.SCI_DEVICE_INFO_LIST stDeviceList = new SciCam.SCI_DEVICE_INFO_LIST(); //设备列表
|
|
|
- uint nReVal = SciCam.DiscoveryDevices(ref stDeviceList, (uint)(SciCam.SciCamTLType.SciCam_TLType_CL));
|
|
|
+ uint nReVal = SciCam.DiscoveryDevices(ref stDeviceList, (uint)(SciCam.SciCamTLType.SciCam_TLType_Gige));
|
|
|
if (nReVal != SciCam.SCI_CAMERA_OK)
|
|
|
{
|
|
|
return cameras.ToArray();
|
|
|
@@ -228,8 +228,8 @@ namespace TeamAAS_VP.Core.Cameras
|
|
|
/// <returns></returns>
|
|
|
public static (bool isInstalled, string version) CheckSoftwareInstalled()
|
|
|
{
|
|
|
- //string softwareName = "MVS";
|
|
|
- //string softwareVersion = "4.4.0";
|
|
|
+ //string softwareName = "OPT Camera Viewer";
|
|
|
+ //string softwareVersion = "4.0.0.3";
|
|
|
//string[] registryPaths = new[]
|
|
|
//{
|
|
|
// @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall",
|
|
|
@@ -283,7 +283,7 @@ namespace TeamAAS_VP.Core.Cameras
|
|
|
{
|
|
|
mvCameraAcq = new SciCam();
|
|
|
SciCam.SCI_DEVICE_INFO_LIST stDeviceList = new SciCam.SCI_DEVICE_INFO_LIST(); //设备列表
|
|
|
- nReVal = SciCam.DiscoveryDevices(ref stDeviceList, (uint)(SciCam.SciCamTLType.SciCam_TLType_CL));
|
|
|
+ nReVal = SciCam.DiscoveryDevices(ref stDeviceList, (uint)(SciCam.SciCamTLType.SciCam_TLType_Gige));
|
|
|
if (nReVal != SciCam.SCI_CAMERA_OK)
|
|
|
{
|
|
|
return false;
|