public class OcrOpenCVUtils extends Object
| 构造器和说明 |
|---|
OcrOpenCVUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.opencv.core.Mat |
image2Mat(BufferedImage img)
BufferedImage to Mat
|
static BufferedImage |
mat2Image(org.opencv.core.Mat mat)
Mat to BufferedImage
|
static org.opencv.core.Mat |
perspectiveTransform(org.opencv.core.Mat src,
org.opencv.core.Mat srcPoints,
org.opencv.core.Mat dstPoints)
透视变换
|
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 - public static BufferedImage mat2Image(org.opencv.core.Mat mat)
mat - public static org.opencv.core.Mat image2Mat(BufferedImage img)
img - Copyright © 2025. All rights reserved.