NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef NVMULTIOBJECTTRACKERLIB_OBJECTMODELPROJECTOR_HPP_
19 #define NVMULTIOBJECTTRACKERLIB_OBJECTMODELPROJECTOR_HPP_
20 
21 #include <atomic>
22 
23 #ifdef VIZ_DEBUG
24 #include <opencv2/opencv.hpp>
25 #endif
26 
27 #include "modules/utility/dataTypes.hpp"
28 #include "modules/utility/debug_common.hpp"
29 #include "modules/NvMultiObjectTracker/NvMultiObjectTracker_common.hpp"
30 #include "modules/NvMultiObjectTracker/NvTrackerParams.hpp"
31 
33 template <typename K, int N, int M>
34 using Matrix = Eigen::Matrix<K, N, M>;
35 
41 
43 struct CameraInfo
44 {
46  CameraInfo() : order("YZX") {};
47 
48  double focalLength;
49  double yaw;
50  double roll;
51  double pitch;
52  std::string order;
53  double Tx;
54  double Ty;
55  double Tz;
56  Eigen::Vector2d H_Camera2MappedImage_posOffset;
58 };
59 
61 struct Model3DInfo
62 {
63  float height;
64  float radius;
65  float heightConfidence = 0.f;
66 };
67 
69 struct Proj3DBboxInfo
70 {
72  Proj3DBboxInfo() = default;
73 
75  Proj3DBboxInfo(Proj3DBboxInfo&&) noexcept = default;
76 
78  Proj3DBboxInfo& operator=(Proj3DBboxInfo&&) noexcept = default;
79 
81  Proj3DBboxInfo(const Proj3DBboxInfo&) = default;
82 
84  Proj3DBboxInfo& operator=(const Proj3DBboxInfo&) = default;
85 
87  std::vector<Eigen::Vector2f> projCorners;
88 };
89 
91 struct RecoveredObjModel
92 {
94  RecoveredObjModel() = default;
95 
97  RecoveredObjModel(RecoveredObjModel&&) noexcept = default;
98 
100  RecoveredObjModel& operator=(RecoveredObjModel&&) noexcept = default;
101 
103  RecoveredObjModel(const RecoveredObjModel&) = default;
104 
106  RecoveredObjModel& operator=(const RecoveredObjModel&) = default;
107 
108  Eigen::Vector2d pt_img_center;
110  Eigen::Vector2d pt_img_feet;
111  Eigen::Vector2d pt_world_feet;
112  std::vector<Eigen::Vector2f> convexHull;
113  float visibility;
114  float distFromCam;
115 };
116 
118 enum OBJ_MODEL_TYPE : int
119 {
122 };
123 
125 struct TargetHomography
126 {
127  HomographyMatrix WorldFeetPlane2CamOpticalCenter;
128  HomographyMatrix WorldHeadPlane2CamOpticalCenter;
129  HomographyMatrix WorldWaistPlane2CamOpticalCenter;
130  HomographyMatrix CamOpticalCenter2WorldFeetPlane;
131  HomographyMatrix CamOpticalCenter2WorldHeadPlane;
132  HomographyMatrix CamOpticalCenter2WorldWaistPlane;
133 
134  // [Composite homographies based on the camera optical center]
135  HomographyMatrix Feet2Waist;
136  HomographyMatrix Waist2Feet;
137  HomographyMatrix Waist2Head;
138  HomographyMatrix Head2Waist;
139 };
140 
143 {
144 public:
147 
153  NvTrackerParamsObjectModelProjector(const std::string &configFilePath, const std::string moduleName);
154 
159  NvTrackerParamsObjectModelProjector(const YAML::Node &fn);
160 
165  void read(const YAML::Node &fn) override;
166 
167  int m_debugVerboseLevel;
168  std::vector<std::string> m_cameraModelFilepath;
169  std::map<std::string, std::string> m_cameraModelFilepathMap;
170  std::vector<std::string> m_proj3DBboxFilePath;
171  bool m_outputFootLocation;
172  bool m_outputConvexHull;
173  OBJ_MODEL_TYPE m_objectModelType;
174  int m_maxConvexHullSize;
175  float m_waistHeightRatio;
176  float m_eyeHeightRatio;
177  bool m_keepDetBboxForInitEstimation;
178  float m_minPoseConfidence;
179  float m_useDefaultModelHeight;
180  float m_useDefaultModelRadius;
181 };
182 
185 {
186 public:
189 
194  ObjectModelProjector(const std::string &configFilePath);
195 
203  const std::string &configFilePath, const NvMotDataTypes::Size imgSize, const NvMOTStreamId streamId
204  );
205 
214  const std::string &configFilePath, const NvMotDataTypes::Size imgSize,
215  const NvMOTStreamId streamId, const std::string &sensorName
216  );
217 
219  virtual ~ObjectModelProjector();
220 
225  void queryParams(NvMOTQuery &paramsQuery);
226 
228  bool isInitialized() { return m_isInit; }
229 
231  const std::string &getSensorName() const { return m_sensorName; }
232 
240  RecoveredObjModel getRecoveredObjectModelFromBbox(
241  const NvMOTObjToTrack *detObj, const NvMOTFrameNum frameNum, const int targetInd, const bool isInitEstimation
242  );
243 
249  RecoveredObjModel getRecoveredObjectModelFromProj3DBbox(
250  const NvMOTObjToTrack *detObj, const NvMOTFrameNum frameNum
251  );
252 
259  const NvMotDataTypes::Rect2f getBboxOfProjectedCylinderFromImgFeet(
260  const Eigen::Vector2d pt_img_head, const NvMOTClassId classId, const int targetInd
261  );
262 
269  const NvMotDataTypes::Rect2f getBboxOfProjectedCylinderFromImgWaist(
270  const Eigen::Vector2d pt_img_waist, const NvMOTClassId classId, const int targetInd
271  );
272 
279  const NvMotDataTypes::Rect2f getBboxOfProjectedCylinderFromImgHead(
280  const Eigen::Vector2d pt_img_head, const NvMOTClassId classId, const int targetInd
281  );
282 
296  RecoveredObjModel getRecoveredObjectModelWithAdaptiveHeight(
297  const Eigen::Vector2d pt_img_head, const Eigen::Vector2d pt_img_waist,
298  const Eigen::Vector2d pt_img_foot, const NvMotDataTypes::Rect2f& bbox, const TrackerIndex &targetInd,
299  const NvMOTClassId classId, float conf_head, float conf_waist, float conf_foot
300  );
301 
309  Eigen::Vector2d computeHeightAndWorldFeetFromHeadAndWaist(
310  const Eigen::Vector2d pt_img_head, const Eigen::Vector2d pt_img_waist,
311  const TrackerIndex &targetInd, const NvMOTClassId classId
312  );
313 
321  Eigen::Vector2d computeHeightAndWorldFeetFromHeadAndFoot(
322  const Eigen::Vector2d pt_img_head, const Eigen::Vector2d pt_img_foot,
323  const TrackerIndex &targetInd, const NvMOTClassId classId
324  );
325 
332  const NvMotDataTypes::Rect2f getBboxOfProjectedCylinderFromWorldFeet(
333  const Eigen::Vector2d pt_world_feet, const NvMOTClassId classId, const int targetInd
334  );
335 
340  const std::vector<Eigen::Vector2d> getProjectedWorldGroundPts(
341  const std::vector<Eigen::Vector2d>& pt_world_feet_list
342  );
343 
350  const Eigen::Vector2d getCamHeadPtFromCamWaistPt(
351  const Eigen::Vector2d imgWaistPt, const NvMOTClassId classId, const int targetInd
352  );
353 
360  const Eigen::Vector2d getCamWaistPtFromCamHeadPt(
361  const Eigen::Vector2d imgHeadPt, const NvMOTClassId classId, const int targetInd
362  );
363 
370  const Eigen::Vector2d getCamWaistPtFromCamFeetPt(
371  const Eigen::Vector2d imgWaistPt, const NvMOTClassId classId, const int targetInd
372  );
373 
380  const Eigen::Vector2d getCamFeetPtFromCamWaistPt(
381  const Eigen::Vector2d imgWaistPt, const NvMOTClassId classId, const int targetInd
382  );
383 
390  const Eigen::Vector2d getWorldFeetPtOnGroundFromCamWaistPt(
391  const Eigen::Vector2d imgWaistPt, const NvMOTClassId classId, const int targetInd
392  );
393 
400  const Eigen::Vector2d getWorldFeetPtOnGroundFromCamFeetPt(
401  const Eigen::Vector2d imgFeetPt, const NvMOTClassId classId, const int targetInd
402  );
403 
410  const NvDsObj3DBbox getWorld3DBboxFromWorldFeet(
411  const Eigen::Vector2d pt_world_feet, const NvMOTClassId classId, const int targetInd
412  );
413 
420  std::vector<Eigen::Vector2d> calculateProjCornersOf3DBboxFromWorldFeet(
421  const Eigen::Vector2d pt_world_feet, const NvMOTClassId classId, const int targetInd
422  );
423 
428  const Eigen::Vector2d projectWorldPt2ImgPt(const Eigen::Vector3d pt_world);
429 
436  bool isTargetVisibleInImage(const Eigen::Vector2d& pt_world_feet, float targetHeight);
437 
443  std::vector<Eigen::Vector2d> calculateProjectedCircleFromWorldFeet(
444  const Eigen::Vector2d pt_world_feet, const float radius
445  );
446 
448  const bool getOutputFootLocation() { return m_params.m_outputFootLocation; }
449 
451  const bool getOutputConvexHull() { return m_params.m_outputConvexHull; }
452 
454  float getMinPoseConfidence() const { return m_params.m_minPoseConfidence; }
455 
461  Eigen::Matrix2d computeGroundCovariance(const Eigen::Vector2d& pixel_pt, float pixel_sigma);
462 
464  float getTargetHeight() const { return m_targetModel.height; }
465 
467  float getHeightConfidence() const { return m_targetModel.heightConfidence; }
468 
475  void setTargetHeight(float height, float confidence, bool force = false)
476  {
478  if (force || confidence >= m_targetModel.heightConfidence) {
479  m_targetModel.height = height;
480  m_targetModel.heightConfidence = confidence;
481  deriveDataFromCameraProjMatrix(m_targetHomographyMat, m_targetModel);
482  }
483  }
484 
490  {
492  if (classId == m_targetClassId) return;
493 
494  m_targetModel = getDefaultModelByClass(classId);
495  m_targetHomographyMat = getDefaultHomographyMatByClass(classId);
496  m_targetClassId = classId;
497 
498  if (m_params.m_debugVerboseLevel > 2) {
499  std::cout << "[ObjectModelProjector] Set target model for classId " << classId
500  << ", height=" << m_targetModel.height << ", radius=" << m_targetModel.radius << std::endl;
501  }
502  }
503 
505  NvMOTClassId getTargetClassId() const { return m_targetClassId; }
506 
507 protected:
508 
509  bool m_isInit;
510  uint m_streamInd;
511  std::string m_sensorName;
512 
513  // [Configuration]
514  const std::string m_configFilePath;
515  std::string m_resolvedCameraModelFilepath;
517  NvMotDataTypes::Size m_srcFrameSize;
518  CameraInfo m_cameraInfo;
519  std::vector<std::vector<Proj3DBboxInfo>> m_externalProj3DBboxInfo;
520  Model3DInfo m_targetModel;
521  NvMOTClassId m_targetClassId;
522  std::map<NvMOTClassId, Model3DInfo> m_defaultModelByClass;
523  float m_groundPlaneHeight;
524  CameraMatrix m_ProjMat_World2Cam;
525 
526  // [Pre-computed matrices]
527  IntrinsicMatrix m_K;
528  IntrinsicMatrix m_K_inv;
529  RotationMatrix m_R;
530  RotationMatrix m_R_T;
531  TranslationMatrix m_t;
532  Eigen::Vector2d m_pix2cam_offset;
533 
535  // [Sherman-Morrison homography-inverse optimization]
536  HomographyMatrix m_H_ground;
537  HomographyMatrix m_H_ground_inv;
538  Eigen::Vector3d m_r3;
539  Eigen::Vector3d m_P_z_col;
540  Eigen::Vector3d m_H_inv_Pz;
541  TranslationMatrix m_camLocation_World;
542  TargetHomography m_targetHomographyMat;
543  std::map<NvMOTClassId, TargetHomography> m_defaultHomographyMatByClass;
544 
551  const Eigen::MatrixXd convertYamlVec2EigenMatrixXd(YAML::Node yamlVec, const int rows, const int cols);
552 
558  bool importCameraModelInfo(const std::string filename);
559 
565  bool importExternalProj3DBboxInfo(const std::string filename);
566 
572  {
573  if (m_defaultModelByClass.size() == 1)
574  {
575  return m_defaultModelByClass.begin()->second;
576  }
578  if (m_defaultModelByClass.find(classId) == m_defaultModelByClass.end())
579  {
580  if (m_params.m_debugVerboseLevel > 0) {
581  std::cout << "[ObjectModelProjector] Warning: No model defined for classId " << classId
582  << ", using first available model" << std::endl;
583  }
584  return m_defaultModelByClass.begin()->second;
585  }
586  return m_defaultModelByClass.at(classId);
587  }
588 
594  {
595  if (m_defaultHomographyMatByClass.size() == 1)
596  {
597  return m_defaultHomographyMatByClass.begin()->second;
598  }
600  if (m_defaultHomographyMatByClass.find(classId) == m_defaultHomographyMatByClass.end())
601  {
602  if (m_params.m_debugVerboseLevel > 0) {
603  std::cout << "[ObjectModelProjector] Warning: No homography for classId " << classId
604  << ", using first available" << std::endl;
605  }
606  return m_defaultHomographyMatByClass.begin()->second;
607  }
608  return m_defaultHomographyMatByClass.at(classId);
609  }
610 
616  void deriveDataFromCameraProjMatrix(TargetHomography& homographyMat, const Model3DInfo& humanModel);
617 
624  std::vector<Eigen::Vector2d> calculateProjectedCylinderFromImgWaist(
625  const Eigen::Vector2d pt_img_waist, const NvMOTClassId classId, const int targetInd
626  );
627 
634  std::vector<Eigen::Vector2d> calculateProjectedCylinderFromImgHead(
635  const Eigen::Vector2d pt_img_head, const NvMOTClassId classId, const int targetInd
636  );
637 
644  std::vector<Eigen::Vector2d> calculateProjectedCylinderFromImgFeet(
645  const Eigen::Vector2d pt_img_feet, const NvMOTClassId classId, const int targetInd
646  );
647 
654  std::vector<Eigen::Vector2d> calculateProjectedCylinderFromWorldFeet(
655  const Eigen::Vector2d pt_world_feet, const NvMOTClassId classId, const int targetInd
656  );
657 
664  {
665  return m_targetModel.height > 0 && m_targetModel.radius > 0 && targetInd >= 0 && classId == m_targetClassId;
666  }
667  #ifdef VIZ_DEBUG
668  friend class TrackerVizOutput;
669  #endif
670 };
671 
672 #endif // NVMULTIOBJECTTRACKERLIB_OBJECTMODELPROJECTOR_HPP_
ObjectModelProjector::getDefaultHomographyMatByClass
const TargetHomography & getDefaultHomographyMatByClass(const NvMOTClassId classId)
Return the default homographies for a class.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:593
Proj3DBboxInfo
Store a projected three-dimensional bounding box and its corners.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:69
NvMotDataTypes::Rect2f
Rect_< float, 2 > Rect2f
Definition: sources/libs/nvmultiobjecttracker/include/modules/utility/dataTypes.hpp:47
NvMotDataTypes
Definition: sources/libs/nvmultiobjecttracker/include/modules/utility/dataTypes.hpp:31
CameraInfo::Ty
double Ty
Specifies camera translation along the Y axis.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:54
NvMOTClassId
uint16_t NvMOTClassId
Definition: includes/nvdstracker.h:55
Model3DInfo::height
float height
Specifies model height.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:63
ObjectModelProjector::getTargetHeight
float getTargetHeight() const
Return the current target-model height.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:464
ObjectModelProjector::setTargetHeight
void setTargetHeight(float height, float confidence, bool force=false)
Update target-model height when confidence permits.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:475
CameraInfo::Tx
double Tx
Specifies camera translation along the X axis.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:53
CameraInfo::H_Camera2MappedImage_Scale
double H_Camera2MappedImage_Scale
Stores the mapped-image scale.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:57
TranslationMatrix
Matrix< double, 3, 1 > TranslationMatrix
3x1 Translation matrix T.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:38
CameraInfo::focalLength
double focalLength
Specifies the camera focal length.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:46
CameraInfo::roll
double roll
Specifies roll in degrees.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:50
CameraInfo::H_Camera2MappedImage_posOffset
Eigen::Vector2d H_Camera2MappedImage_posOffset
Stores the mapped-image position offset.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:56
ObjectModelProjector::getOutputFootLocation
const bool getOutputFootLocation()
Return whether foot-location output is enabled.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:448
Proj3DBboxInfo::projCorners
std::vector< Eigen::Vector2f > projCorners
Bottom four points, and top four points.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:87
uint
unsigned int uint
Definition: sources/libs/nvmultiobjecttracker/include/modules/cuDCFv2/helper_math.h:25
ObjectModelProjector::isTargetModelValid
bool isTargetModelValid(TrackerIndex targetInd, NvMOTClassId classId)
Return whether the current target model is valid for a target.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:663
CameraInfo::order
std::string order
Specifies the rotation-matrix axis order.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:52
MatrixXd
Eigen::MatrixXd MatrixXd
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/preprocess/calibration_parser.h:42
ObjectModelProjector::getHeightConfidence
float getHeightConfidence() const
Return the current height-estimation confidence.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:467
CameraInfo::yaw
double yaw
Specifies yaw in degrees.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:49
NvMOTFrameNum
uint32_t NvMOTFrameNum
Definition: includes/nvdsmotmetafusion.h:51
CYLINDER
@ CYLINDER
Models the target as a cylinder.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:120
Matrix
Eigen::Matrix< T, Rows, Cols, Eigen::DontAlign > Matrix
Definition: sources/libs/nvdsinferutils/dbscan/EigenDefs.hpp:43
ObjectModelProjector::getOutputConvexHull
const bool getOutputConvexHull()
Return whether convex-hull output is enabled.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:451
NvTrackerParams
Provides common loading helpers for tracker configuration parameters.
Definition: sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackerParams.hpp:35
NvTrackerParamsObjectModelProjector::m_debugVerboseLevel
int m_debugVerboseLevel
Controls debug message verbosity.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:167
NvMOTStreamId
uint64_t NvMOTStreamId
Definition: includes/nvdstracker.h:53
IntrinsicMatrix
Matrix< double, 3, 3 > IntrinsicMatrix
3x3 Intrinsic matrix: K.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:36
_NvMOTObjToTrack
Holds information about an object to be tracked.
Definition: includes/nvdstracker.h:242
NvTrackerParamsObjectModelProjector
Store object-model projector configuration parameters.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:142
HomographyMatrix
Matrix< double, 3, 3 > HomographyMatrix
3x3 Homography matrix: H.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:40
Model3DInfo
Describe a class-specific three-dimensional target model.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:61
_NvMOTQuery
Holds the capabilities and requirements reported by the tracker library.
Definition: includes/nvdstracker.h:420
TargetHomography
Store plane and inter-plane homographies for a target model.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:125
CameraInfo::Tz
double Tz
Specifies camera translation along the Z axis.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:55
ObjectModelProjector::getDefaultModelByClass
const Model3DInfo & getDefaultModelByClass(const NvMOTClassId classId)
Return the default three-dimensional model for a class.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:571
CameraInfo::CameraInfo
CameraInfo()
Initialize camera rotation order to YZX.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:46
TrackerIndex
uint32_t TrackerIndex
Definition: sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvMultiObjectTracker_common.hpp:42
Model3DInfo::radius
float radius
Specifies model radius.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:64
std
Extensions to the C++ standard library.
Definition: includes/opentelemetry/nostd/string_view.h:212
RecoveredObjModel
Store geometry recovered from an object model.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:91
ObjectModelProjector
Project and recover target geometry using camera and object models.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:184
CameraInfo::pitch
double pitch
Specifies pitch in degrees.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:51
ObjectModelProjector::getTargetClassId
NvMOTClassId getTargetClassId() const
Return the current target-model class ID.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:505
OBJ_MODEL_TYPE
OBJ_MODEL_TYPE
Enumerate the supported object-model types.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:118
RotationMatrix
Matrix< double, 3, 3 > RotationMatrix
3x3 Rotation matrix: R.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:37
_NvDsObj3DBbox
Holds 3D bbox information for an object.
Definition: includes/nvds_tracker_meta.h:177
NvMotDataTypes::Size
Represents a two-dimensional integer size.
Definition: sources/libs/nvmultiobjecttracker/include/modules/utility/dataTypes.hpp:52
Proj3DBboxInfo::bbox
NvMotDataTypes::Rect2f bbox
Stores the projected bounding rectangle.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:86
CameraInfo
Store camera calibration and image-mapping parameters.
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:43
ObjectModelProjector::getMinPoseConfidence
float getMinPoseConfidence() const
Return the minimum pose-keypoint confidence.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:454
ObjectModelProjector::getSensorName
const std::string & getSensorName() const
Return the source sensor name.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:231
CameraMatrix
Matrix< double, 3, 4 > CameraMatrix
3x4 Camera matrix: [ R | T ].
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:39
ObjectModelProjector::setTargetModelForClass
void setTargetModelForClass(NvMOTClassId classId)
Select the target model for a class ID.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:489
Vector3d
Eigen::Matrix< double, 3, 1 > Vector3d
Definition: sources/gst-plugins/gst-nvdsvideotemplate/ds-sparse4d/preprocess/calibration_parser.h:40
CV_FUNCS::convexHull
void convexHull(const std::vector< Eigen::Vector2d > &points, std::vector< Eigen::Vector2d > &hull)
Compute the convex hull of double-precision points.
Proj3DBboxInfo::Proj3DBboxInfo
Proj3DBboxInfo()=default
Construct an empty projected bounding-box record.
Model3DInfo::heightConfidence
float heightConfidence
Confidence of height estimation (0 = default/no pose data).
Definition: sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:65
ObjectModelProjector::isInitialized
bool isInitialized()
Return whether the projector has been initialized.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:228
BBOX3D
@ BBOX3D
Models the target as a three-dimensional bounding box.
Definition: 9.2/sources/libs/nvmultiobjecttracker/include/modules/ObjectModelProjector/ObjectModelProjector.hpp:121
TrackerVizOutput
Renders and writes visual tracker debugging output.
Definition: sources/libs/nvmultiobjecttracker/include/modules/VisualTracker/vizOutput.hpp:43