Add person dataset assembler, restructure repo

This commit is contained in:
2024-04-05 12:46:06 +02:00
parent 81475815fb
commit 2765509bf3
25 changed files with 172 additions and 15 deletions

15
SmartCrop/utils.h Normal file
View File

@ -0,0 +1,15 @@
#pragma once
#include <filesystem>
#include <vector>
#include <opencv2/imgproc.hpp>
bool isImagePath(const std::filesystem::path& path);
void getImageFiles(const std::filesystem::path& path, std::vector<std::filesystem::path>& paths);
cv::Rect rectFromPoints(const std::vector<std::pair<cv::Point, int>>& points);
double pointDist(const cv::Point2i& pointA, const cv::Point2i& pointB);
bool pointInRect(const cv::Point2i& point, const cv::Rect& rect);