ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
segment_frame.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Povl Filip Sonne-Frederiksen
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
8
9#include <CLI/CLI.hpp>
10
11#include <filesystem>
12#include <string>
13#include <vector>
14
16 std::filesystem::path net_path;
17 int frame_id = -1;
18 std::vector<std::string> texts;
20 std::vector<std::string> boxes;
22 std::vector<std::string> points;
23 float confidence = 0.5f;
24 bool use_cuda = false;
25 bool save = true;
26};
27
29 std::shared_ptr<RuxOptions> opt);
30
32 const SubcommandSegmentFrameOptions &opt, const RuxOptions &global_opt);
void setup_subcommand_create_segment_frame(CLI::App &app, std::shared_ptr< RuxOptions > opt)
int run_subcommand_create_segment_frame(const SubcommandSegmentFrameOptions &opt, const RuxOptions &global_opt)
std::vector< std::string > points
Each point: "x,y" (a positive click).
std::vector< std::string > boxes
Each box: "pos:x1,y1,x2,y2" or "neg:x1,y1,x2,y2".
std::filesystem::path net_path
std::vector< std::string > texts