Zeros public static mat zeros int rows int cols int type zeros public static mat zeros size size int type zeros public static mat zeros int sizes int type finalize protected void finalize throws java lang throwable overrides. Random generator and text with opencv goals. Draw a rectangle by using the opencv function rectangle.