OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::GraphicalCodeDetector 類參考

#include <opencv2/objdetect/graphical_code_detector.hpp>

cv::GraphicalCodeDetector 的協作圖

公共成員函式

 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
 檢測影像中的圖形碼並返回包含這些碼的四邊形的向量。
 
GraphicalCodeDetectoroperator= (const GraphicalCodeDetector &)=default
 
GraphicalCodeDetectoroperator= (GraphicalCodeDetector &&)=default
 

保護屬性

Ptr< Impl > p
 

建構函式 & 解構函式文件

◆ GraphicalCodeDetector() [1/3]

cv::GraphicalCodeDetector::GraphicalCodeDetector ( )

◆ GraphicalCodeDetector() [2/3]

cv::GraphicalCodeDetector::GraphicalCodeDetector ( const GraphicalCodeDetector & )
default

◆ GraphicalCodeDetector() [3/3]

cv::GraphicalCodeDetector::GraphicalCodeDetector ( GraphicalCodeDetector && )
default

成員函式文件

◆ decode()

std::string cv::GraphicalCodeDetector::decode ( InputArray img,
InputArray points,
OutputArray straight_code = noArray() ) const
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) 影像。
pointsdetect() 方法(或其他演算法)找到的四邊形頂點。
straight_code可選的輸出影像,包含二值化程式碼,如果未找到,則為空。
此函式的呼叫圖如下

◆ decodeMulti()

bool cv::GraphicalCodeDetector::decodeMulti ( InputArray img,
InputArray points,
std::vector< std::string > & decoded_info,
OutputArrayOfArrays straight_code = noArray() ) const
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 編碼的輸出字串向量或空字串向量。
pointsdetect() 方法(或其他演算法)找到的四邊形頂點向量。
straight_code包含二值化程式碼的影像的可選輸出向量
此函式的呼叫圖如下

◆ detect()

bool cv::GraphicalCodeDetector::detect ( InputArray img,
OutputArray points ) const
Python
cv.GraphicalCodeDetector.detect(img[, points]) -> retval, points

檢測影像中的圖形碼並返回包含該碼的四邊形。

引數
img包含(或不包含)圖形碼的灰度或彩色 (BGR) 影像。
points包含程式碼的最小面積四邊形的輸出頂點向量。

◆ detectAndDecode()

std::string cv::GraphicalCodeDetector::detectAndDecode ( InputArray img,
OutputArray points = noArray(),
OutputArray straight_code = noArray() ) const
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()

bool cv::GraphicalCodeDetector::detectAndDecodeMulti ( InputArray img,
std::vector< std::string > & decoded_info,
OutputArray points = noArray(),
OutputArrayOfArrays straight_code = noArray() ) const
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()

bool cv::GraphicalCodeDetector::detectMulti ( InputArray img,
OutputArray points ) const
Python
cv.GraphicalCodeDetector.detectMulti(img[, points]) -> retval, points

檢測影像中的圖形碼並返回包含這些碼的四邊形的向量。

引數
img包含(或不包含)圖形碼的灰度或彩色 (BGR) 影像。
points包含程式碼的最小面積四邊形的輸出頂點向量的向量。

◆ operator=() [1/2]

GraphicalCodeDetector & cv::GraphicalCodeDetector::operator= ( const GraphicalCodeDetector & )
default

◆ operator=() [2/2]

GraphicalCodeDetector & cv::GraphicalCodeDetector::operator= ( GraphicalCodeDetector && )
default

成員資料文件

◆ p

Ptr<Impl> cv::GraphicalCodeDetector::p
保護

此類文件由以下檔案生成