include/depthai/common/CameraFeatures.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <ostream>
4 #include <vector>
5 
10 
11 // Global namespace
12 inline std::ostream& operator<<(std::ostream& out, const dai::CameraFeatures& camera) {
13  out << "{socket: " << camera.socket << ", ";
14  out << "sensorName: " << camera.sensorName << ", ";
15  out << "width: " << camera.width << ", ";
16  out << "height: " << camera.height << ", ";
17  out << "orientation: " << camera.orientation << ", ";
18  out << "supportedTypes: [";
19  for(size_t i = 0; i < camera.supportedTypes.size(); i++) {
20  if(i != 0) {
21  out << ", ";
22  }
23  out << camera.supportedTypes[i];
24  }
25  out << "], ";
26  out << "hasAutofocus: " << camera.hasAutofocus << ", ";
27  out << "hasAutofocusIC: " << camera.hasAutofocusIC << ", ";
28  out << "name: " << camera.name << "}";
29 
30  return out;
31 }
32 
33 inline std::ostream& operator<<(std::ostream& out, const std::vector<dai::CameraFeatures>& cameras) {
34  out << "[";
35  for(size_t i = 0; i < cameras.size(); i++) {
36  if(i != 0) {
37  out << ", ";
38  }
39  out << cameras.at(i);
40  }
41  out << "]";
42 
43  return out;
44 }
45 
46 inline std::ostream& operator<<(std::ostream& out, const dai::CameraSensorConfig& config) {
47  out << "{width: " << config.width << ", ";
48  out << "height: " << config.height << ", ";
49  out << "minFps: " << config.minFps << ", ";
50  out << "maxFps: " << config.maxFps << ", ";
51  out << "type: " << config.type << ", ";
52  out << "fov: "
53  << "{x:" << config.fov.x << ", ";
54  out << "y: " << config.fov.y << ", ";
55  out << "width: " << config.fov.width << ", ";
56  out << "height: " << config.fov.height << "}";
57  out << "}";
58  return out;
59 }
60 
61 inline std::ostream& operator<<(std::ostream& out, const std::vector<dai::CameraSensorConfig>& configs) {
62  out << "[";
63  for(size_t i = 0; i < configs.size(); i++) {
64  if(i != 0) {
65  out << ", ";
66  }
67  out << configs.at(i);
68  }
69  out << "]";
70 
71  return out;
72 }
dai::Rect::x
float x
Definition: Rect.hpp:104
CameraSensorType.hpp
dai::CameraFeatures::height
std::int32_t height
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:42
dai::CameraFeatures::socket
CameraBoardSocket socket
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:34
dai::CameraSensorConfig::fov
Rect fov
Sensor active view area in physical area [pixels].
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:20
dai::CameraSensorConfig::type
CameraSensorType type
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:21
dai::CameraFeatures::width
std::int32_t width
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:42
dai::CameraFeatures::supportedTypes
std::vector< CameraSensorType > supportedTypes
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:53
dai::copyable_unique_ptr::operator<<
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &os, const copyable_unique_ptr< T > &cu_ptr)
Definition: copyable_unique_ptr.hpp:374
dai::CameraSensorConfig::maxFps
float maxFps
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:18
dai::CameraFeatures::hasAutofocus
bool hasAutofocus
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:61
dai::CameraSensorConfig
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:15
CameraImageOrientation.hpp
dai::CameraFeatures::orientation
CameraImageOrientation orientation
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:46
dai::CameraSensorConfig::height
std::int32_t height
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:17
dai::CameraSensorConfig::width
std::int32_t width
Width and height in number of output pixels.
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:17
CameraBoardSocket.hpp
dai::Rect::height
float height
Definition: Rect.hpp:107
dai::CameraFeatures::hasAutofocusIC
bool hasAutofocusIC
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:57
dai::CameraFeatures
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:30
dai::Rect::width
float width
Definition: Rect.hpp:106
CameraFeatures.hpp
dai::CameraFeatures::name
std::string name
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:65
dai::Rect::y
float y
Definition: Rect.hpp:105
dai::CameraFeatures::sensorName
std::string sensorName
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:38
dai::CameraSensorConfig::minFps
float minFps
Definition: shared/depthai-shared/include/depthai-shared/common/CameraFeatures.hpp:18


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:18