niujiuru пре 3 недеља
родитељ
комит
6e1dbf288b
2 измењених фајлова са 5 додато и 5 уклоњено
  1. 2 2
      dh_takephoto/takephoto.c
  2. 3 3
      hk_takephoto/takephoto.c

+ 2 - 2
dh_takephoto/takephoto.c

@@ -20,7 +20,7 @@ static const char * const setTriggerMode = "On"; /// 默认: 打开,  可关闭:
 // 保存照片
 static int SavePhoto(HANDLE hCam, IMV_Frame *pFrame, DHImgType imgType, const char *imgPath);
 
-// 拍照回调
+// 拍照环境
 typedef struct
 {
   HANDLE      hCam;           // 打开相机的句柄
@@ -37,7 +37,7 @@ typedef struct
   void       *pUser;          // 附加的用户数据
 } PthotoProcCtx;
 
-// 非标准的"Huaray Technology"制造商名称, 但也是华睿的相机, 如: "Machine Vision"
+// 非标准的"Huaray Technology"制造商名称, 但也可视为华睿的
 static const char * const huaray_manu_aliases[] = { "Machine Vision", NULL };
 static bool is_huaray_manu_alias(const char *name)
 {

+ 3 - 3
hk_takephoto/takephoto.c

@@ -20,7 +20,7 @@ static MV_CAM_TRIGGER_MODE setTriggerMode = MV_TRIGGER_MODE_ON; /// 默认: 打
 // 保存照片
 static int SavePhoto(HANDLE hCam, MV_FRAME_OUT *pFrame, HKImgType imgType, const char *imgPath);
 
-// 拍照回调
+// 拍照环境
 typedef struct
 {
   HANDLE      hCam;           // 打开相机的句柄
@@ -36,7 +36,7 @@ typedef struct
   int         rCode;          // 任务结束返回值
 } PthotoProcCtx;
 
-// 非标准的"Hikrobot"制造商名称, 但也是海康的相机
+// 非标准的"Hikrobot"制造商名称, 但也可视为海康的
 static const char * const hikrobot_manu_aliases[] = { NULL };
 static bool is_hikrobot_manu_alias(const char *name)
 {
@@ -53,7 +53,7 @@ static int PhotoProc(unsigned long wParam, unsigned long lParam) // 线程回调
 
   // 1, 触发一次拍照
   ret = (setTriggerMode == MV_TRIGGER_MODE_ON) ? MV_CC_SetCommandValue(ctx->hCam, "TriggerSoftware") : MV_OK;
-  if(setTriggerMode == MV_TRIGGER_MODE_ON) sw_thrd_delay(1000);  // 软触发后延时, 预留一些执行时间
+  if(setTriggerMode == MV_TRIGGER_MODE_ON)  sw_thrd_delay(1000); // 软触发后延时, 预留一些执行时间
 
   // 2, 等待获取图像
   if(MV_OK == ret)