Pad image border with OpenCV.
Pad image border with OpenCV.
source image
Top margin.
Bottom margin.
Left margin.
Right margin.
Filling type (default=cv2.BORDER_CONSTANT).
(Deprecated! Use
instead.) Fill with single value.values
Fill with value(RGB[A] or gray), up to 4 channels.
NDArray to store the output
org.apache.mxnet.NDArray
Method to draw bounding boxes for an image
Method to draw bounding boxes for an image
Source of the buffered image
Contains Map of xmin, xmax, ymin, ymax corresponding to top-left and down-right points
The name set of the bounding box
Thickness of the bounding box
Font size multiplier
Transparency of the bounding box
Do a fixed crop on the image
Do a fixed crop on the image
Src image in NDArray
starting x point
starting y point
width of the image
height of the image
cropped NDArray
Same imageDecode with InputStream
Same imageDecode with InputStream
the inputStream of the image
Convert decoded image to grayscale (0) or color (1).
Whether to convert decoded image to mxnet's default RGB format (instead of opencv's default BGR).
NDArray to store the output
NDArray in HWC format with DType DType.UInt8
Decode image with OpenCV.
Decode image with OpenCV. Note: return image in RGB by default, instead of OpenCV's default BGR.
Buffer containing binary encoded image
Convert decoded image to grayscale (0) or color (1).
Whether to convert decoded image to mxnet's default RGB format (instead of opencv's default BGR).
NDArray to store the output
NDArray in HWC format with DType DType.UInt8
Read and decode image with OpenCV.
Read and decode image with OpenCV. Note: return image in RGB by default, instead of OpenCV's default BGR.
Name of the image file to be loaded.
Convert decoded image to grayscale (0) or color (1).
Whether to convert decoded image to mxnet's default RGB format (instead of opencv's default BGR).
NDArray to store the output
org.apache.mxnet.NDArray in HWC format with DType DType.UInt8
Resize image with OpenCV.
Resize image with OpenCV.
source image in NDArray
Width of resized image.
Height of resized image.
Interpolation method (default=cv2.INTER_LINEAR).
NDArray to store the output
org.apache.mxnet.NDArray
Convert a NDArray image to a real image The time cost will increase if the image resolution is big
Convert a NDArray image to a real image The time cost will increase if the image resolution is big
Source image file in RGB
Buffered Image
Image API of Scala package enable OpenCV feature