本文主要是介绍Parade Series - Pan Tilt Zoom (T.B.D),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
PTZ-P Pan 水平方向上移动 0 ~ 359
PTZ-T Tilt 垂直方向上的移动 -5 ~ 90
PTZ-Z Zoom 变焦 1 ~ 32
PTZ Facade
com-ptz-facade -scen hikvision -pan 129
com-ptz-facade -scen hikvision -tilt -4
com-ptz-facade -scen hikvision -zoom 1
Scenario : HIKVISION
com-ptz-scen-hikvision -pan 129
com-ptz-scen-hikvision -tilt -4
com-ptz-scen-hikvision -zoom 1
comLogin
BOOL comLogin(CString comDevIp, INT comDevPort, CString comUser, CString comPwd)
{NET_DVR_DEVICEINFO_V30 DeviceInfoTmp;memset(&DeviceInfoTmp, 0x00, sizeof(NET_DVR_DEVICEINFO_V30));LONG lLoginID = NET_DVR_Login_V30(comDevIp.GetBuffer(comDevIp.GetLength()), comDevPort, comUser.GetBuffer(comUser.GetLength()), comPwd.GetBuffer(comPwd.GetLength()), &DeviceInfoTmp);if (-1 == lLoginID) {return FALSE;}return TRUE;
}
comStart
void StartPlay(int iChanIndex)
{NET_DVR_CLIENTINFO ClientInfo;ClientInfo.hPlayWnd = GetDlgItem(IDC_STATIC_PLAY)->m_hWnd;ClientInfo.lChannel = m_iCurChanIndex+1;ClientInfo.lLinkMode = 0;ClientInfo.sMultiCastIP = NULL;m_lPlayHandle = NET_DVR_RealPlay_V30(m_struDeviceInfo.lLoginID, &ClientInfo, NULL, NULL, TRUE);if (-1 == m_lPlayHandle) {DWORD err = NET_DVR_GetLastError();}m_bIsPlaying = TRUE;
}
comControl
#define PZT_CMD_TILT_UP 21 // 云台以SS的速度上仰
#define PZT_CMD_TILT_DOWN 22 // 云台以SS的速度下俯
#define PZT_CMD_PAN_LEFT 23 // 云台以SS的速度左转
#define PZT_CMD_PAN_RIGHT 24 // 云台以SS的速度右转
#define PZT_CMD_UP_LEFT 25 // 云台以SS的速度上仰和左转
#define PZT_CMD_UP_RIGHT 26 // 云台以SS的速度上仰和右转
#define PZT_CMD_DOWN_LEFT 27 // 云台以SS的速度下俯和左转
#define PZT_CMD_DOWN_RIGHT 28 // 云台以SS的速度下俯和右转
#define PZT_CMD_PAN_AUTO 29 // 云台以SS的速度左右自动扫描BOOL StartPlay(DWORD dwPTZCommand)
{BOOL ret = NET_DVR_PTZControlWithSpeed(1, dwPTZCommand, 1, Speed);if (!ret) {return FALSE;}return TRUE;
}
comLogout
void comLogout()
{NET_DVR_Logout_V30(0);
}
Scenario : DAHUA
这篇关于Parade Series - Pan Tilt Zoom (T.B.D)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!