Package com.intuit.karate.robot
Class OpenCvUtils
- java.lang.Object
-
- com.intuit.karate.robot.OpenCvUtils
-
public class OpenCvUtils extends Object
- Author:
- pthomas3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.bytedeco.opencv.opencv_core.MatdrawOnImage(org.bytedeco.opencv.opencv_core.Mat image, org.bytedeco.opencv.opencv_core.Point2fVector points)static org.bytedeco.opencv.opencv_core.MatdrawOnImage(org.bytedeco.opencv.opencv_core.Mat image, org.bytedeco.opencv.opencv_core.Rect overlay, org.bytedeco.opencv.opencv_core.Scalar color)static List<Region>find(int strictness, boolean findAll, RobotBase robot, org.bytedeco.opencv.opencv_core.Mat source, org.bytedeco.opencv.opencv_core.Mat target, boolean resize)static Regionfind(int strictness, RobotBase robot, Region source, byte[] bytes, boolean resize)static Regionfind(int strictness, RobotBase robot, org.bytedeco.opencv.opencv_core.Mat source, org.bytedeco.opencv.opencv_core.Mat target, boolean resize)static List<Region>findAll(int strictness, RobotBase robot, Region source, byte[] bytes, boolean resize)static org.bytedeco.opencv.opencv_core.MatloadAndShowOrExit(File file, int flags)static org.bytedeco.opencv.opencv_core.Matnegative(org.bytedeco.opencv.opencv_core.Mat src)static org.bytedeco.opencv.opencv_core.Matread(byte[] bytes)static org.bytedeco.opencv.opencv_core.Matread(byte[] bytes, int flags)static org.bytedeco.opencv.opencv_core.Matread(File file)static org.bytedeco.opencv.opencv_core.Matread(File file, int flags)static BufferedImagereadImageAsGreyScale(File file)static org.bytedeco.opencv.opencv_core.Matrescale(org.bytedeco.opencv.opencv_core.Mat mat, double scale)static Filesave(BufferedImage image, File file)static voidsave(org.bytedeco.opencv.opencv_core.Mat image, File file)static voidshow(byte[] bytes, String title)static voidshow(Image image, String title)static voidshow(org.bytedeco.opencv.opencv_core.Mat mat, String title)static BufferedImagetoBufferedImage(org.bytedeco.opencv.opencv_core.Mat mat)static byte[]toBytes(BufferedImage img)static org.bytedeco.opencv.opencv_core.MattoMat(BufferedImage bi)
-
-
-
Method Detail
-
find
public static Region find(int strictness, RobotBase robot, Region source, byte[] bytes, boolean resize)
-
find
public static Region find(int strictness, RobotBase robot, org.bytedeco.opencv.opencv_core.Mat source, org.bytedeco.opencv.opencv_core.Mat target, boolean resize)
-
findAll
public static List<Region> findAll(int strictness, RobotBase robot, Region source, byte[] bytes, boolean resize)
-
rescale
public static org.bytedeco.opencv.opencv_core.Mat rescale(org.bytedeco.opencv.opencv_core.Mat mat, double scale)
-
find
public static List<Region> find(int strictness, boolean findAll, RobotBase robot, org.bytedeco.opencv.opencv_core.Mat source, org.bytedeco.opencv.opencv_core.Mat target, boolean resize)
-
loadAndShowOrExit
public static org.bytedeco.opencv.opencv_core.Mat loadAndShowOrExit(File file, int flags)
-
readImageAsGreyScale
public static BufferedImage readImageAsGreyScale(File file)
-
toBytes
public static byte[] toBytes(BufferedImage img)
-
read
public static org.bytedeco.opencv.opencv_core.Mat read(File file)
-
read
public static org.bytedeco.opencv.opencv_core.Mat read(byte[] bytes)
-
read
public static org.bytedeco.opencv.opencv_core.Mat read(byte[] bytes, int flags)
-
read
public static org.bytedeco.opencv.opencv_core.Mat read(File file, int flags)
-
save
public static File save(BufferedImage image, File file)
-
show
public static void show(byte[] bytes, String title)
-
show
public static void show(org.bytedeco.opencv.opencv_core.Mat mat, String title)
-
save
public static void save(org.bytedeco.opencv.opencv_core.Mat image, File file)
-
drawOnImage
public static org.bytedeco.opencv.opencv_core.Mat drawOnImage(org.bytedeco.opencv.opencv_core.Mat image, org.bytedeco.opencv.opencv_core.Point2fVector points)
-
drawOnImage
public static org.bytedeco.opencv.opencv_core.Mat drawOnImage(org.bytedeco.opencv.opencv_core.Mat image, org.bytedeco.opencv.opencv_core.Rect overlay, org.bytedeco.opencv.opencv_core.Scalar color)
-
negative
public static org.bytedeco.opencv.opencv_core.Mat negative(org.bytedeco.opencv.opencv_core.Mat src)
-
toMat
public static org.bytedeco.opencv.opencv_core.Mat toMat(BufferedImage bi)
-
toBufferedImage
public static BufferedImage toBufferedImage(org.bytedeco.opencv.opencv_core.Mat mat)
-
-