python: use '((x,y), (w,h), angle)' in std::vector<RotatedRect>

This commit is contained in:
Alexander Alekhin
2021-12-24 14:51:01 +00:00
parent 92651d228d
commit cdfa8a668b
3 changed files with 31 additions and 0 deletions
+4
View File
@@ -518,6 +518,10 @@ template <class T>
struct IsRepresentableAsMatDataType<T, typename VoidType<typename DataType<T>::channel_type>::type> : TrueType
{
};
// https://github.com/opencv/opencv/issues/20930
template <> struct IsRepresentableAsMatDataType<RotatedRect, void> : FalseType {};
} // namespace traits
typedef std::vector<uchar> vector_uchar;