public class BufferedImagePreprocessor extends Object
| 构造器和说明 |
|---|
BufferedImagePreprocessor(BufferedImage image,
DetectionRectangle rect) |
| 限定符和类型 | 方法和说明 |
|---|---|
BufferedImagePreprocessor |
enableCenterCrop(boolean enable) |
BufferedImagePreprocessor |
enableScaling(boolean enable) |
BufferedImagePreprocessor |
enableSquarePadding(boolean enable) |
BufferedImage |
process() |
BufferedImagePreprocessor |
setCenterCropSize(int size) |
BufferedImagePreprocessor |
setExtendRatio(float ratio) |
BufferedImagePreprocessor |
setPaddingColor(Color color) |
BufferedImagePreprocessor |
setTargetSize(int size) |
public BufferedImagePreprocessor(BufferedImage image, DetectionRectangle rect)
public BufferedImagePreprocessor setExtendRatio(float ratio)
public BufferedImagePreprocessor setTargetSize(int size)
public BufferedImagePreprocessor setCenterCropSize(int size)
public BufferedImagePreprocessor enableSquarePadding(boolean enable)
public BufferedImagePreprocessor enableScaling(boolean enable)
public BufferedImagePreprocessor enableCenterCrop(boolean enable)
public BufferedImagePreprocessor setPaddingColor(Color color)
public BufferedImage process()
Copyright © 2025. All rights reserved.