代码拉取完成,页面将自动刷新
#pragma once
#include "buffer_queue_control.h"
#include<chrono>
#include<ctime>
#include <time.h>
#include <map>
#include "patterns_cache_control.h"
#include "camera_param.h"
class DeviceControl
{
public:
static DeviceControl *getInstance()
{
if (instance == nullptr)
{
instance = new DeviceControl();
}
return instance;
}
private:
DeviceControl(){};
~DeviceControl(){};
static DeviceControl *instance;
public:
int setEnumFeatureParam(std::string feature,std::string value);
int setIntFeatureParam(std::string feature,std::string value);
int setFloatFeatureParam(std::string feature,std::string value);
int setBoolFeatureParam(std::string feature,std::string value);
int setCommandFeatureParam(std::string feature,std::string value);
public:
int init();
int captureOneFrame();
int reconstructOneFrame();
int captureRaw(std::string pattterns_selector,std::string exposure_model,char* &data,PatternsParamStruct& param);
int captureFrameContinue();
int captureFrameContinueThread();
void startCaptureContinue();
void stopCaptureContinue();
void getCalibParam(struct CameraCalibParam& param);
void getResulotion(int &width,int &height);
void setProjectSolidField(bool enable);
void getTimestamp(std::string &stamp);
void setGrabStatus(bool start);
public:
void handle_error(int code);
private:
int camera_width_ = 0;
int camera_height_ = 0;
BufferQueneuControl* stream_control_ptr_;
// Scan3D scan3d_;
struct CameraCalibParam param;
int frame_status_;
bool continue_capture_flag_ = false;
bool start_grab_flag_ = false;
std::timed_mutex capture_mutex_;
std::thread producer_;
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。