3#include <opencv2/opencv.hpp>
5#include <networktables/NetworkTableInstance.h>
6#include <networktables/NetworkTable.h>
7#include <networktables/IntegerTopic.h>
8#include <cameraserver/CameraServer.h>
17 inline static const cv::Mat_<float>
80 const wpi::json&
getJson()
const;
137 uint64_t
getFrame(cv::Mat& o_frame,
double timeout = 0.225)
const;
148 inline const cs::CvSink&
getSink()
const {
return this->
raw; }
212 void setNetworkBase(
const std::shared_ptr<nt::NetworkTable>& table);
229 std::shared_ptr<nt::NetworkTable>
ntable{
230 nt::NetworkTableInstance::GetDefault().GetTable(
"Cameras")->GetSubTable(this->GetName())};
VisionCamera(CS_Source source_handle)
bool getJsonDistortionCoefs(cv::Mat_< double > &array) const
nt::IntegerEntry nt_whitebalance
void setNetworkBase(const std::shared_ptr< nt::NetworkTable > &table)
wpi::json getStreamJson() const
uint64_t getFrameNoTmO(cv::Mat &o_frame) const
VisionCamera & operator=(const VisionCamera &)=delete
cv::Size getResolution() const
nt::IntegerEntry nt_brightness
NT_Listener listener_handle
int getBrightness() const
int _setWhiteBalance(int wb)
nt::IntegerEntry nt_exposure
std::shared_ptr< nt::NetworkTable > ntable
void setBrightness(int b)
bool getJsonCameraMatrix(cv::Mat_< double > &array) const
static const cv::Mat_< float > default_matrix
cv::Mat_< float > camera_matrix
const cv::Mat_< float > & getDistortionCoefs() const
VisionCamera(const VisionCamera &)=delete
const cs::CvSink & getSink() const
void setWhiteBalance(int wb)
const cv::Mat_< float > & getCameraMatrix() const
int getWhiteBalance() const
const wpi::json & getJson() const
void setNetworkAdjustable()
cv::Mat_< float > distortion
bool isValidStreamJson() const
bool setCalibrationJson(const wpi::json &)
int _setBrightness(int b)
bool setDistortionCoefs(const cv::Mat_< float > &)
bool setCameraMatrix(const cv::Mat_< float > &)
static const cv::Mat_< float > default_distort
uint64_t getFrame(cv::Mat &o_frame, double timeout=0.225) const