public class WeChatQRCode extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
nativeObj |
| Modifier | Constructor and Description |
|---|---|
|
WeChatQRCode()
Initialize the WeChatQRCode.
|
protected |
WeChatQRCode(long addr) |
|
WeChatQRCode(String detector_prototxt_path)
Initialize the WeChatQRCode.
|
|
WeChatQRCode(String detector_prototxt_path,
String detector_caffe_model_path)
Initialize the WeChatQRCode.
|
|
WeChatQRCode(String detector_prototxt_path,
String detector_caffe_model_path,
String super_resolution_prototxt_path)
Initialize the WeChatQRCode.
|
|
WeChatQRCode(String detector_prototxt_path,
String detector_caffe_model_path,
String super_resolution_prototxt_path,
String super_resolution_caffe_model_path)
Initialize the WeChatQRCode.
|
| Modifier and Type | Method and Description |
|---|---|
static WeChatQRCode |
__fromPtr__(long addr) |
List<String> |
detectAndDecode(Mat img)
Both detects and decodes QR code.
|
List<String> |
detectAndDecode(Mat img,
List<Mat> points)
Both detects and decodes QR code.
|
protected void |
finalize() |
long |
getNativeObjAddr() |
protected WeChatQRCode(long addr)
public WeChatQRCode(String detector_prototxt_path, String detector_caffe_model_path, String super_resolution_prototxt_path, String super_resolution_caffe_model_path)
detector_prototxt_path - prototxt file path for the detectordetector_caffe_model_path - caffe model file path for the detectorsuper_resolution_prototxt_path - prototxt file path for the super resolution modelsuper_resolution_caffe_model_path - caffe file path for the super resolution modelpublic WeChatQRCode(String detector_prototxt_path, String detector_caffe_model_path, String super_resolution_prototxt_path)
detector_prototxt_path - prototxt file path for the detectordetector_caffe_model_path - caffe model file path for the detectorsuper_resolution_prototxt_path - prototxt file path for the super resolution modelpublic WeChatQRCode(String detector_prototxt_path, String detector_caffe_model_path)
detector_prototxt_path - prototxt file path for the detectordetector_caffe_model_path - caffe model file path for the detectorpublic WeChatQRCode(String detector_prototxt_path)
detector_prototxt_path - prototxt file path for the detectorpublic WeChatQRCode()
public long getNativeObjAddr()
public static WeChatQRCode __fromPtr__(long addr)
public List<String> detectAndDecode(Mat img, List<Mat> points)
img - supports grayscale or color (BGR) image.points - optional output array of vertices of the found QR code quadrangle. Will be
empty if not found.public List<String> detectAndDecode(Mat img)
img - supports grayscale or color (BGR) image.
empty if not found.Copyright © 2022. All rights reserved.