Skip to content

Instantly share code, notes, and snippets.

View vivekpanchal's full-sized avatar
:shipit:
Eat, Sleep, Code, Repeat.

vivek panchal vivekpanchal

:shipit:
Eat, Sleep, Code, Repeat.
View GitHub Profile
{
"contacts": [
{
"id": 1,
"name": "Elma Herring",
"email": "[email protected]",
"phone": "+1 (913) 497-2020"
},
{
"id": 2,
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
int[] case1 = {2, 0, 2};
int[] case2 = {3, 0, 0, 2, 0, 4};
demo to get rectangles -->>.
//1. Convert img1 into gray image
Imgproc.cvtColor(img1, imageGray1, Imgproc.COLOR_RGB2GRAY);
//2.blur the image ..ie smooth the image
Imgproc.GaussianBlur(imageGray1, imgGaussianBlur, new Size(3, 3), 0);