抛弃GdCpp*.dll/pdb历史重新建库。libhv和Sqlite的dll保留

This commit is contained in:
Zhang Jianjun
2026-02-02 16:09:02 +08:00
parent f148ca49e3
commit 4a2a284ac0
292 changed files with 350450 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
#include "pch.h"
void to_json(jsonobj& j, const cv::Point& p)
{
j["x"] = p.x;
j["y"] = p.y;
}
void from_json(const jsonobj& j, cv::Point& p)
{
tryRead(j, "x", p.x);
tryRead(j, "y", p.y);
}
void to_json(jsonobj& j, const cv::Point2f& p)
{
j["x"] = p.x;
j["y"] = p.y;
}
void from_json(const jsonobj& j, cv::Point2f& p)
{
tryRead(j, "x", p.x);
tryRead(j, "y", p.y);
}
void to_json(jsonobj& j, const cv::Size& p)
{
j["w"] = p.width;
j["h"] = p.height;
}
void from_json(const jsonobj& j, cv::Size& p)
{
tryRead(j, "w", p.width);
tryRead(j, "h", p.height);
}
void to_json(jsonobj& j, const cv::Rect& p)
{
j["x"] = p.x;
j["y"] = p.y;
j["w"] = p.width;
j["h"] = p.height;
}
void from_json(const jsonobj& j, cv::Rect& p)
{
tryRead(j, "x", p.x);
tryRead(j, "y", p.y);
tryRead(j, "w", p.width);
tryRead(j, "h", p.height);
}