🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.objdetect
クラス GraphicalCodeDetector
- java.lang.Object
-
- org.opencv.objdetect.GraphicalCodeDetector
-
- 既知の直接サブクラス:
BarcodeDetector,QRCodeDetector,QRCodeDetectorAruco
public class GraphicalCodeDetector extends java.lang.Object
-
-
フィールドの要約
フィールド Modifier and Type Field Description protected longnativeObj
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedGraphicalCodeDetector​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static GraphicalCodeDetector__fromPtr__​(long addr)java.lang.Stringdecode​(Mat img, Mat points)Decodes graphical code in image once it's found by the detect() method.java.lang.Stringdecode​(Mat img, Mat points, Mat straight_code)Decodes graphical code in image once it's found by the detect() method.byte[]decodeBytes​(Mat img, Mat points)byte[]decodeBytes​(Mat img, Mat points, Mat straight_code)booleandecodeBytesMulti​(Mat img, Mat points, java.util.List<byte[]> decoded_info)booleandecodeBytesMulti​(Mat img, Mat points, java.util.List<byte[]> decoded_info, java.util.List<Mat> straight_code)booleandecodeMulti​(Mat img, Mat points, java.util.List<java.lang.String> decoded_info)Decodes graphical codes in image once it's found by the detect() method.booleandecodeMulti​(Mat img, Mat points, java.util.List<java.lang.String> decoded_info, java.util.List<Mat> straight_code)Decodes graphical codes in image once it's found by the detect() method.booleandetect​(Mat img, Mat points)Detects graphical code in image and returns the quadrangle containing the code.java.lang.StringdetectAndDecode​(Mat img)Both detects and decodes graphical codejava.lang.StringdetectAndDecode​(Mat img, Mat points)Both detects and decodes graphical codejava.lang.StringdetectAndDecode​(Mat img, Mat points, Mat straight_code)Both detects and decodes graphical codebyte[]detectAndDecodeBytes​(Mat img)byte[]detectAndDecodeBytes​(Mat img, Mat points)byte[]detectAndDecodeBytes​(Mat img, Mat points, Mat straight_code)booleandetectAndDecodeBytesMulti​(Mat img, java.util.List<byte[]> decoded_info)booleandetectAndDecodeBytesMulti​(Mat img, java.util.List<byte[]> decoded_info, Mat points)booleandetectAndDecodeBytesMulti​(Mat img, java.util.List<byte[]> decoded_info, Mat points, java.util.List<Mat> straight_code)booleandetectAndDecodeMulti​(Mat img, java.util.List<java.lang.String> decoded_info)Both detects and decodes graphical codesbooleandetectAndDecodeMulti​(Mat img, java.util.List<java.lang.String> decoded_info, Mat points)Both detects and decodes graphical codesbooleandetectAndDecodeMulti​(Mat img, java.util.List<java.lang.String> decoded_info, Mat points, java.util.List<Mat> straight_code)Both detects and decodes graphical codesbooleandetectMulti​(Mat img, Mat points)Detects graphical codes in image and returns the vector of the quadrangles containing the codes.longgetNativeObjAddr()
-
-
-
メソッドの詳細
-
getNativeObjAddr
public long getNativeObjAddr()
-
__fromPtr__
public static GraphicalCodeDetector __fromPtr__​(long addr)
-
detect
public boolean detect​(Mat img, Mat points)
Detects graphical code in image and returns the quadrangle containing the code.- 引数:
img- グラフィカルコードを含む(または含まない)グレースケールまたはカラー(BGR)画像points- コードを含む最小面積の四角形の頂点を格納する出力ベクトル- 戻り値:
- 自動生成
-
decode
public java.lang.String decode​(Mat img, Mat points, Mat straight_code)
Decodes graphical code in image once it's found by the detect() method. Returns UTF8-encoded output string or empty string if the code cannot be decoded.- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像points- detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点straight_code- 2値化されたコードを含む省略可能な出力画像。見つからない場合は空になる- 戻り値:
- 自動生成
-
decode
public java.lang.String decode​(Mat img, Mat points)
Decodes graphical code in image once it's found by the detect() method. Returns UTF8-encoded output string or empty string if the code cannot be decoded.- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像points- detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点- 戻り値:
- 自動生成
-
detectAndDecode
public java.lang.String detectAndDecode​(Mat img, Mat points, Mat straight_code)
Both detects and decodes graphical code- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像points- 見つかったグラフィカルコードの四角形の頂点を格納する省略可能な出力配列。見つからない場合は空になるstraight_code- 2値化されたコードを含む省略可能な出力画像- 戻り値:
- 自動生成
-
detectAndDecode
public java.lang.String detectAndDecode​(Mat img, Mat points)
Both detects and decodes graphical code- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像points- 見つかったグラフィカルコードの四角形の頂点を格納する省略可能な出力配列。見つからない場合は空になる- 戻り値:
- 自動生成
-
detectAndDecode
public java.lang.String detectAndDecode​(Mat img)
Both detects and decodes graphical code- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像- 戻り値:
- 自動生成
-
detectMulti
public boolean detectMulti​(Mat img, Mat points)
Detects graphical codes in image and returns the vector of the quadrangles containing the codes.- 引数:
img- グラフィカルコードを含む(または含まない)グレースケールまたはカラー(BGR)画像points- コードを含む最小面積の四角形の頂点のベクトルを格納する出力ベクトル- 戻り値:
- 自動生成
-
decodeMulti
public boolean decodeMulti​(Mat img, Mat points, java.util.List<java.lang.String> decoded_info, java.util.List<Mat> straight_code)
Decodes graphical codes in image once it's found by the detect() method.- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像decoded_info- UTF8エンコードされた文字列の出力ベクトル。コードをデコードできない場合は空の文字列ベクトル。points- detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点のベクトルstraight_code- 2値化されたコードを含む省略可能な画像の出力ベクトル- 戻り値:
- 自動生成
-
decodeMulti
public boolean decodeMulti​(Mat img, Mat points, java.util.List<java.lang.String> decoded_info)
Decodes graphical codes in image once it's found by the detect() method.- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像decoded_info- UTF8エンコードされた文字列の出力ベクトル。コードをデコードできない場合は空の文字列ベクトル。points- detect() メソッド(または他のアルゴリズム)で見つかった四角形の頂点のベクトル- 戻り値:
- 自動生成
-
detectAndDecodeMulti
public boolean detectAndDecodeMulti​(Mat img, java.util.List<java.lang.String> decoded_info, Mat points, java.util.List<Mat> straight_code)
Both detects and decodes graphical codes- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像decoded_info- UTF8エンコードされた文字列の出力ベクトル。コードをデコードできない場合は空の文字列ベクトル。points- 見つかったグラフィカルコードの四角形の頂点を格納する省略可能な出力ベクトル。見つからない場合は空になるstraight_code- The optional vector of images containing binarized codes- 画像上にStructured AppendモードでエンコードされたQRコードが存在し、それらすべてが正しく検出・デコードされた場合、本メソッドはシーケンス中の0番目のコードに対応する位置に完全なメッセージを書き込む。同一シーケンス内の残りのQRコードには空文字列が入る。
- 戻り値:
- 自動生成
-
detectAndDecodeMulti
public boolean detectAndDecodeMulti​(Mat img, java.util.List<java.lang.String> decoded_info, Mat points)
Both detects and decodes graphical codes- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像decoded_info- UTF8エンコードされた文字列の出力ベクトル。コードをデコードできない場合は空の文字列ベクトル。points- optional output vector of vertices of the found graphical code quadrangles. Will be empty if not found.- 画像上にStructured AppendモードでエンコードされたQRコードが存在し、それらすべてが正しく検出・デコードされた場合、本メソッドはシーケンス中の0番目のコードに対応する位置に完全なメッセージを書き込む。同一シーケンス内の残りのQRコードには空文字列が入る。
- 戻り値:
- 自動生成
-
detectAndDecodeMulti
public boolean detectAndDecodeMulti​(Mat img, java.util.List<java.lang.String> decoded_info)
Both detects and decodes graphical codes- 引数:
img- グラフィカルコードを含むグレースケールまたはカラー(BGR)画像decoded_info- UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.- 画像上にStructured AppendモードでエンコードされたQRコードが存在し、それらすべてが正しく検出・デコードされた場合、本メソッドはシーケンス中の0番目のコードに対応する位置に完全なメッセージを書き込む。同一シーケンス内の残りのQRコードには空文字列が入る。
- 戻り値:
- 自動生成
-
detectAndDecodeBytes
public byte[] detectAndDecodeBytes​(Mat img, Mat points, Mat straight_code)
-
detectAndDecodeBytes
public byte[] detectAndDecodeBytes​(Mat img)
-
decodeBytesMulti
public boolean decodeBytesMulti​(Mat img, Mat points, java.util.List<byte[]> decoded_info, java.util.List<Mat> straight_code)
-
decodeBytesMulti
public boolean decodeBytesMulti​(Mat img, Mat points, java.util.List<byte[]> decoded_info)
-
detectAndDecodeBytesMulti
public boolean detectAndDecodeBytesMulti​(Mat img, java.util.List<byte[]> decoded_info, Mat points, java.util.List<Mat> straight_code)
-
detectAndDecodeBytesMulti
public boolean detectAndDecodeBytesMulti​(Mat img, java.util.List<byte[]> decoded_info, Mat points)
-
detectAndDecodeBytesMulti
public boolean detectAndDecodeBytesMulti​(Mat img, java.util.List<byte[]> decoded_info)
-
-