You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
823 B
39 lines
823 B
// License: Apache 2.0. See LICENSE file in root directory.
|
|
// Copyright(c) 2023 Intel Corporation. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "rect.h"
|
|
#include <string>
|
|
#include <vector>
|
|
#include <mutex>
|
|
#include <imgui.h>
|
|
|
|
|
|
struct object_in_frame
|
|
{
|
|
rs2::rect normalized_color_bbox, normalized_depth_bbox;
|
|
std::string name;
|
|
float mean_depth;
|
|
size_t id;
|
|
|
|
object_in_frame( size_t id, std::string const & name, rs2::rect bbox_color, rs2::rect bbox_depth, float depth )
|
|
: normalized_color_bbox( bbox_color )
|
|
, normalized_depth_bbox( bbox_depth )
|
|
, name( name )
|
|
, mean_depth( depth )
|
|
, id( id )
|
|
{
|
|
}
|
|
};
|
|
|
|
|
|
typedef std::vector< object_in_frame > objects_in_frame;
|
|
|
|
|
|
struct atomic_objects_in_frame : public objects_in_frame
|
|
{
|
|
std::mutex mutex;
|
|
bool sensor_is_on = true;
|
|
};
|