类 OcrOpenCVUtils


  • public class OcrOpenCVUtils
    extends Object
    OpenCV Utils
    • 构造器详细资料

      • OcrOpenCVUtils

        public OcrOpenCVUtils()
    • 方法详细资料

      • perspectiveTransform

        public static org.opencv.core.Mat perspectiveTransform​(org.opencv.core.Mat src,
                                                               org.opencv.core.Mat srcPoints,
                                                               org.opencv.core.Mat dstPoints)
        透视变换
        参数:
        src -
        srcPoints -
        dstPoints -
        返回:
      • mat2Image

        public static BufferedImage mat2Image​(org.opencv.core.Mat mat)
        Mat to BufferedImage
        参数:
        mat -
        返回:
      • image2Mat

        public static org.opencv.core.Mat image2Mat​(BufferedImage img)
        BufferedImage to Mat
        参数:
        img -
        返回: