feat: add overload resolution exception for Python bindings

This commit is contained in:
Vadim Levin
2021-01-12 17:50:07 +03:00
parent 62420b900e
commit a0bdb78a99
4 changed files with 180 additions and 2 deletions
@@ -64,6 +64,20 @@ String dumpString(const String& argument)
return cv::format("String: %s", argument.c_str());
}
CV_WRAP static inline
String testOverloadResolution(int value, const Point& point = Point(42, 24))
{
return format("overload (int=%d, point=(x=%d, y=%d))", value, point.x,
point.y);
}
CV_WRAP static inline
String testOverloadResolution(const Rect& rect)
{
return format("overload (rect=(x=%d, y=%d, w=%d, h=%d))", rect.x, rect.y,
rect.width, rect.height);
}
CV_WRAP static inline
AsyncArray testAsyncArray(InputArray argument)
{