AI Watch A1
Multi-person 3D skeleton detection using Intel RealSense and OpenPose with Kafka support.
OpenCV_Manager.hpp
Go to the documentation of this file.
1//
2// OpenCV_Manager.hpp
3// AI Watch A1
4//
5// Created by Denny Caruso on 23/07/22.
6//
7
8// License: Apache 2.0. See LICENSE file in root directory.
9// Copyright(c) 2022. All Rights Reserved.
10
11#ifndef OpenCV_Manager_hpp
12#define OpenCV_Manager_hpp
13
14#include "../Skeleton.hpp"
15
16
17
24public:
28 virtual ~OpenCV_Manager() = default;
29
30
31
37 cv::Mat realsenseFrameToMat (const rs2::frame & singleFrame);
52 void getVideoFramesCV (unsigned int user_nFrame, rs2::pipeline & pipelineStream, float scale, const unsigned short int framesToSkip);
60 void showSkeletonsCV (unsigned int user_nFrame, const float skeletonThreshold);
61};
62
63#endif /* OpenCV_Manager_hpp */
OpenCV_Manager class is used for general-purpose tasks on the captured frames.
void getVideoFramesCV(unsigned int user_nFrame, rs2::pipeline &pipelineStream, float scale, const unsigned short int framesToSkip)
Get user_nFrame video frames from the pipeline by applying a specific scaling factor.
cv::Mat realsenseFrameToMat(const rs2::frame &singleFrame)
This method converts a frame of type rs2::frame to cv::Mat.
void showSkeletonsCV(unsigned int user_nFrame, const float skeletonThreshold)
Retrieve OpenPose's output, convert it to RealSense coordinate's space, show results and save them.
virtual ~OpenCV_Manager()=default
Destroy the OpenCV_Manager object.