OpenCV453
公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
cv::wechat_qrcode::WeChatQRCode クラス

WeChat QRCode includes two CNN-based models: A object detection model and a super resolution model. Object detection model is applied to detect QRCode with the bounding box. super resolution model is applied to zoom in QRCode when it is small. [詳解]

#include <wechat_qrcode.hpp>

公開メンバ関数

CV_WRAP WeChatQRCode (const std::string &detector_prototxt_path="", const std::string &detector_caffe_model_path="", const std::string &super_resolution_prototxt_path="", const std::string &super_resolution_caffe_model_path="")
 Initialize the WeChatQRCode. It includes two models, which are packaged with caffe format. Therefore, there are prototxt and caffe models (In total, four paramenters). [詳解]
 
CV_WRAP std::vector< std::string > detectAndDecode (InputArray img, OutputArrayOfArrays points=noArray())
 Both detects and decodes QR code. To simplify the usage, there is a only API: detectAndDecode [詳解]
 

限定公開変数類

Ptr< Impl > p
 

詳解

WeChat QRCode includes two CNN-based models: A object detection model and a super resolution model. Object detection model is applied to detect QRCode with the bounding box. super resolution model is applied to zoom in QRCode when it is small.

構築子と解体子

◆ WeChatQRCode()

CV_WRAP cv::wechat_qrcode::WeChatQRCode::WeChatQRCode ( const std::string &  detector_prototxt_path = "",
const std::string &  detector_caffe_model_path = "",
const std::string &  super_resolution_prototxt_path = "",
const std::string &  super_resolution_caffe_model_path = "" 
)

Initialize the WeChatQRCode. It includes two models, which are packaged with caffe format. Therefore, there are prototxt and caffe models (In total, four paramenters).

引数
detector_prototxt_pathprototxt file path for the detector
detector_caffe_model_pathcaffe model file path for the detector
super_resolution_prototxt_pathprototxt file path for the super resolution model
super_resolution_caffe_model_pathcaffe file path for the super resolution model

関数詳解

◆ detectAndDecode()

CV_WRAP std::vector< std::string > cv::wechat_qrcode::WeChatQRCode::detectAndDecode ( InputArray  img,
OutputArrayOfArrays  points = noArray() 
)

Both detects and decodes QR code. To simplify the usage, there is a only API: detectAndDecode

引数
imgsupports grayscale or color (BGR) image.
pointsoptional output array of vertices of the found QR code quadrangle. Will be empty if not found.
戻り値
list of decoded string.

このクラス詳解は次のファイルから抽出されました: