You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.9 KiB
67 lines
1.9 KiB
#ifndef __OBJECT_CAMERA_PTZ_HEADERS__
|
|
#ifndef NO_PTZ_CAMERAS
|
|
#define __OBJECT_CAMERA_PTZ_HEADERS__
|
|
|
|
#ifndef __linux__
|
|
#include <WinSock2.h>
|
|
#endif
|
|
|
|
#include "../base/basicCameraPTZ.h"
|
|
#ifndef NO_VIDEO_FILTERS
|
|
#include "../../alg/video/bdetect/blobDetector.h"
|
|
#include "../../alg/video/optical/opticalFlow.h"
|
|
#include "../../alg/video/surf/surf.h"
|
|
#include "../../alg/video/vlfeat/vlfeat.h"
|
|
#include "../../alg/video/vmd/motionDetector.h"
|
|
#endif
|
|
#include "../../data/media/video/videoAVLIBSource.h"
|
|
#ifndef NO_GUI
|
|
#include "../../data/media/mediaVideoSourceManager.h"
|
|
#endif
|
|
#include "../../data/protocol/protocolPTZ_PELCO.h"
|
|
#include "../../data/protocol/protocolPTZ_VISCA.h"
|
|
#include "../../hardware/uart/serialPort.h"
|
|
#ifndef NO_ONVIF_CAMERAS
|
|
#include "../../data/protocol/protocolPTZ_ONVIF.h"
|
|
#endif
|
|
#include <libconfig.h>
|
|
|
|
#define PELCO_ADTER_PACK_DELAY 60 // Milliseconds
|
|
|
|
class objectCameraPTZ : public basicCameraPTZ
|
|
{
|
|
private:
|
|
|
|
basicLogCollection * m_pLog;
|
|
uint32_t m_nActivityCounter;
|
|
|
|
protected:
|
|
|
|
void m_fThreadProc(void);
|
|
|
|
public:
|
|
|
|
explicit objectCameraPTZ(config_setting_t * Settings = NULL);
|
|
virtual ~objectCameraPTZ();
|
|
bool create(void);
|
|
bool stop(void);
|
|
bool create(SOURCE_INFO * SI);
|
|
void cmdBeginPanLeft(float Speed = 0.f);
|
|
void cmdBeginPanRight(float Speed = 0.f);
|
|
void cmdEndManualPan(void);
|
|
|
|
void cmdBeginTiltUp(float Speed = 0.f);
|
|
void cmdBeginTiltDown(float Speed = 0.f);
|
|
void cmdEndManualTilt(void);
|
|
|
|
void cmdBeginZoomWide(float Speed = 0.f);
|
|
void cmdBeginZoomTele(float Speed = 0.f);
|
|
void cmdEndManualZoom(void);
|
|
void cmdGoPTZ(float Pan, float Tilt, float Zoom, float Speed = 1.f);
|
|
void cmdGoWGS84PTZ(float Lon, float Lat, float Range, float Speed = 1.f);
|
|
void cmdGoAbsolutePTZ(float Tetta, float Fi, float Range, float Speed = 1.f);
|
|
virtual void dispatchEvent(basicEvent * Evt);
|
|
virtual void updateSettings(void);
|
|
};
|
|
#endif
|
|
#endif
|