From c41768dbbd50a0055298d5ec6318ae7f1d2e4ab3 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 11 Sep 2022 01:39:29 -0400 Subject: New testdrive using sqlite db as data storage. Add signature serialization & deserialization. Only link what we need from OpenCV. --- signature.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'signature.hpp') diff --git a/signature.hpp b/signature.hpp index 4e8c10f..ba342fa 100644 --- a/signature.hpp +++ b/signature.hpp @@ -5,6 +5,7 @@ #include #include +#include struct signature_config { @@ -42,6 +43,9 @@ public: double length() const; double distance(const signature &o) const; bool operator ==(const signature &o) const; + std::string to_string() const; + + static signature from_string(std::string &&s); static signature from_path(const std::filesystem::path &path, const signature_config &cfg); -- cgit v1.2.3