123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- #pragma once
- #include <vector>
- #include <string>
- #ifdef INTERFACE_DLL
- #define INTERFACE_API __declspec(dllexport)
- #else
- #define INTERFACE_API
- #endif
- using namespace std;
- typedef unsigned char* ImageDataPtr;
- enum ImageFormat
- {
- GRAY8 = 0,
- RGB888,
- ARGB8888,
- RGB32,
- YUV422,
- };
- typedef struct
- {
- int width;
- int height;
- int channel;
- ImageFormat format;
- ImageDataPtr data;
- }ImageInfo;
- typedef struct
- {
- int Lot;
- int PtIndex;
- int Attribute;
- int X_Offset;
- int X_RefMin;
- int X_RefMax;
- int Y_Offset;
- int Y_RefMin;
- int Y_RefMax;
- int Theta_Offset;
- int Theta_RefMin;
- int Theta_RefMax;
- long Time;
- } CPK_LIST_STRUCT;
- typedef struct _CONFIG_BASE_STRUCT
- {
- int iGroupId;
- string strName;
- string strDescribe;
- int iUserGradee;
- int iChangeFlag;
- string strValue;
- string strType;
- string strDefult;
- string strLowerLimit;
- string strUpperLimit;
- string strUnit;
- }CONFIG_BASE_STRUCT;
- class INTERFACE_API CInterface
- {
- public:
-
-
-
-
-
-
- long SetRedLight(int iCameraId,int LightValue);
-
-
-
-
-
-
- long SetGreenLight(int iCameraId, int LightValue);
-
-
-
-
-
-
- long SetBlueLight(int iCameraId, int LightValue);
-
-
-
-
-
-
- long SetPointLight(int iCameraId, int LightValue);
-
-
-
-
-
-
-
-
-
- long GetLight(int iCameraId, int &redLightValue, int &greenLightValue, int &blueLightValue,int &pointLightValue);
-
-
-
-
-
-
-
- long GrabImage(int iCameraId, ImageInfo& image);
-
-
-
-
-
- long GetCpkList(std::vector<CPK_LIST_STRUCT> &CpkList);
-
-
-
-
-
-
-
- long LoadConfigDB(string strTableName, vector<int> iGroupId, vector<CONFIG_BASE_STRUCT>& vecConfig);
-
-
-
-
-
-
- long SaveConfigDB(string strTableName, vector<CONFIG_BASE_STRUCT> vecConfig);
- };
|