1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Fixed std::vector<Point3f> handling in JS wrappers.

This commit is contained in:
Alexander Smorkalov
2025-05-07 14:07:44 +03:00
parent 16a3d37dc1
commit 2f97718bc1
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -466,7 +466,8 @@ EMSCRIPTEN_BINDINGS(binding_utils)
register_vector<double>("DoubleVector");
register_vector<std::string>("StringVector");
register_vector<cv::Point>("PointVector");
register_vector<cv::Point3f>("Point3fVector");
register_vector<cv::Point2f>("Point2fVector");
register_vector<cv::Point3_<float>>("Point3fVector");
register_vector<cv::Mat>("MatVector");
register_vector<cv::Rect>("RectVector");
register_vector<cv::KeyPoint>("KeyPointVector");
@@ -612,6 +613,7 @@ EMSCRIPTEN_BINDINGS(binding_utils)
EMSCRIPTEN_CV_RECT(int, "Rect")
EMSCRIPTEN_CV_RECT(float, "Rect2f")
EMSCRIPTEN_CV_RECT(double, "Rect2d")
emscripten::value_object<cv::RotatedRect>("RotatedRect")
.field("center", &cv::RotatedRect::center)