gravity(Gravity::faces()); } /** * Sets the OCR region. * * @return Region */ public static function ocr() { return (new Region())->gravity(Gravity::ocr()); } /** * Sets the custom region. * * @param int|string $x * @param int|string $y * @param int|string $width * @param int|string $height * * @return Region */ public static function custom($x = null, $y = null, $width = null, $height = null) { return new Region($x, $y, $width, $height); } /** * Returns the rectangle region. * * @param int $x X. * @param int $y Y. * @param int $width Width. * @param int $height Height. * * @return RectangleRegion */ public static function rectangle($x = null, $y = null, $width = null, $height = null) { return new RectangleRegion($x, $y, $width, $height); } }