This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"contacts": [ | |
{ | |
"id": 1, | |
"name": "Elma Herring", | |
"email": "[email protected]", | |
"phone": "+1 (913) 497-2020" | |
}, | |
{ | |
"id": 2, |