diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-08-29 12:19:25 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-08-29 12:19:25 -0400 |
commit | d6663fe7b71db340b3c7a1d069c473f725caa3a8 (patch) | |
tree | f6db2a320abef031d4516541449735733a505899 /signature.hpp | |
parent | 67be79385f0b22fe6428e213d2b6422742d994c4 (diff) | |
download | deduper-d6663fe7b71db340b3c7a1d069c473f725caa3a8.tar.xz |
Trying to support the superior operating system.
Also reformat a bit of legacy code. Smells like mold.
Diffstat (limited to 'signature.hpp')
-rw-r--r-- | signature.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/signature.hpp b/signature.hpp index b3c5c40..0197e75 100644 --- a/signature.hpp +++ b/signature.hpp @@ -2,6 +2,7 @@ #define SIGNATURE_HPP #include <memory> +#include <filesystem> #include <opencv2/core.hpp> struct signature_config @@ -36,6 +37,8 @@ public: double distance(const signature &o) const; bool operator ==(const signature &o) const; + static signature from_path(const std::filesystem::path &path, const signature_config &cfg); + static signature from_file(const char *fn, const signature_config &cfg); /* |