#include <opencv2/objdetect/graphical_code_detector.hpp>
|
| | GraphicalCodeDetector () |
| |
| | GraphicalCodeDetector (const GraphicalCodeDetector &)=default |
| |
| | GraphicalCodeDetector (GraphicalCodeDetector &&)=default |
| |
| std::string | decode (InputArray img, InputArray points, OutputArray straight_code=noArray()) const |
| | 解码图像中的图形码,一旦被 detect() 方法找到。
|
| |
| bool | decodeMulti (InputArray img, InputArray points, std::vector< std::string > &decoded_info, OutputArrayOfArrays straight_code=noArray()) const |
| | 解码图像中的图形码,一旦被 detect() 方法找到。
|
| |
| bool | detect (InputArray img, OutputArray points) const |
| | 检测图像中的图形码并返回包含该码的四边形。
|
| |
| std::string | detectAndDecode (InputArray img, OutputArray points=noArray(), OutputArray straight_code=noArray()) const |
| | 同时检测和解码图形码。
|
| |
| bool | detectAndDecodeMulti (InputArray img, std::vector< std::string > &decoded_info, OutputArray points=noArray(), OutputArrayOfArrays straight_code=noArray()) const |
| | 同时检测和解码图形码。
|
| |
| bool | detectMulti (InputArray img, OutputArray points) const |
| | 检测图像中的图形码并返回包含这些码的四边形的向量。
|
| |
| GraphicalCodeDetector & | operator= (const GraphicalCodeDetector &)=default |
| |
| GraphicalCodeDetector & | operator= (GraphicalCodeDetector &&)=default |
| |
◆ GraphicalCodeDetector() [1/3]
| cv::GraphicalCodeDetector::GraphicalCodeDetector |
( |
| ) |
|
◆ GraphicalCodeDetector() [2/3]
◆ GraphicalCodeDetector() [3/3]
◆ decode()
| Python |
|---|
| cv.GraphicalCodeDetector.decode( | img, points[, straight_code] | ) -> | retval, straight_code |
| cv.GraphicalCodeDetector.decodeBytes( | img, points[, straight_code] | ) -> | retval, straight_code |
解码图像中的图形码,一旦被 detect() 方法找到。
如果无法解码代码,则返回 UTF8 编码的输出字符串或空字符串。
- 参数
-
| img | 包含图形码的灰度或彩色 (BGR) 图像。 |
| points | 由 detect() 方法(或其他算法)找到的四边形顶点。 |
| straight_code | 可选的输出图像,包含二值化代码,如果未找到,则为空。 |
◆ decodeMulti()
| Python |
|---|
| cv.GraphicalCodeDetector.decodeBytesMulti( | img, points[, straight_code] | ) -> | retval, decoded_info, straight_code |
| cv.GraphicalCodeDetector.decodeMulti( | img, points[, straight_code] | ) -> | retval, decoded_info, straight_code |
解码图像中的图形码,一旦被 detect() 方法找到。
- 参数
-
| img | 包含图形码的灰度或彩色 (BGR) 图像。 |
| decoded_info | 如果无法解码代码,则返回 UTF8 编码的输出字符串向量或空字符串向量。 |
| points | 由 detect() 方法(或其他算法)找到的四边形顶点向量。 |
| straight_code | 包含二值化代码的图像的可选输出向量 |
◆ detect()
| Python |
|---|
| cv.GraphicalCodeDetector.detect( | img[, points] | ) -> | retval, points |
检测图像中的图形码并返回包含该码的四边形。
- 参数
-
| img | 包含(或不包含)图形码的灰度或彩色 (BGR) 图像。 |
| points | 包含代码的最小面积四边形的输出顶点向量。 |
◆ detectAndDecode()
| Python |
|---|
| cv.GraphicalCodeDetector.detectAndDecode( | img[, points[, straight_code]] | ) -> | retval, points, straight_code |
| cv.GraphicalCodeDetector.detectAndDecodeBytes( | img[, points[, straight_code]] | ) -> | retval, points, straight_code |
同时检测和解码图形码。
- 参数
-
| img | 包含图形码的灰度或彩色 (BGR) 图像。 |
| points | 找到的图形码四边形的可选输出顶点数组,如果未找到,则为空。 |
| straight_code | 包含二值化代码的可选输出图像 |
◆ detectAndDecodeMulti()
| Python |
|---|
| cv.GraphicalCodeDetector.detectAndDecodeBytesMulti( | img[, points[, straight_code]] | ) -> | retval, decoded_info, points, straight_code |
| cv.GraphicalCodeDetector.detectAndDecodeMulti( | img[, points[, straight_code]] | ) -> | retval, decoded_info, points, straight_code |
同时检测和解码图形码。
- 参数
-
| img | 包含图形码的灰度或彩色 (BGR) 图像。 |
| decoded_info | 如果无法解码代码,则返回 UTF8 编码的输出字符串向量或空字符串向量。 |
| points | 找到的图形码四边形的可选输出顶点向量。 如果未找到,则为空。 |
| straight_code | 包含二值化代码的图像的可选向量 |
- 如果图像上存在以结构化附加模式编码的 QR 码,并且所有这些 QR 码都被正确检测和解码,则该方法会将完整消息写入与序列中第 0 个代码相对应的位置。 来自同一序列的其余 QR 码具有空字符串。
◆ detectMulti()
| Python |
|---|
| cv.GraphicalCodeDetector.detectMulti( | img[, points] | ) -> | retval, points |
检测图像中的图形码并返回包含这些码的四边形的向量。
- 参数
-
| img | 包含(或不包含)图形码的灰度或彩色 (BGR) 图像。 |
| points | 包含代码的最小面积四边形的输出顶点向量的向量。 |
◆ operator=() [1/2]
◆ operator=() [2/2]
| Ptr<Impl> cv::GraphicalCodeDetector::p |
|
保护 |
此类文档由以下文件生成