Commit 2d638305 authored by adrianheron's avatar adrianheron Committed by Alexander Alekhin

Merge pull request #1523 from adrianheron:python_custom_dictionary

* support custom dictionaries via python bindngs

* make markerSize and maxCorrectionBits writeable
parent 4595ada0
......@@ -61,9 +61,9 @@ namespace aruco {
class CV_EXPORTS_W Dictionary {
public:
CV_PROP Mat bytesList; // marker code information
CV_PROP int markerSize; // number of bits per dimension
CV_PROP int maxCorrectionBits; // maximum number of bits that can be corrected
CV_PROP_RW Mat bytesList; // marker code information
CV_PROP_RW int markerSize; // number of bits per dimension
CV_PROP_RW int maxCorrectionBits; // maximum number of bits that can be corrected
/**
......@@ -120,13 +120,13 @@ class CV_EXPORTS_W Dictionary {
/**
* @brief Transform matrix of bits to list of bytes in the 4 rotations
*/
static Mat getByteListFromBits(const Mat &bits);
CV_WRAP static Mat getByteListFromBits(const Mat &bits);
/**
* @brief Transform list of bytes to matrix of bits
*/
static Mat getBitsFromByteList(const Mat &byteList, int markerSize);
CV_WRAP static Mat getBitsFromByteList(const Mat &byteList, int markerSize);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment