Posts

new feed

import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.text.DecimalFormat;

import net.sourceforge.tess4j.*;
import org.bytedeco.javacpp.opencv_core.Mat;
import org.bytedeco.javacpp.opencv_core.Rect;

import static cv.skindetect.CvConvertHelper.matToImg;
...


import com.recognition.TesseractExample;
import com.thrift.ocrimg.DetectLetter;
import net.sourceforge.tess4j.TesseractException;
import org.apache.commons.collections.CollectionUtils;
import org.bytedeco.javacpp.opencv_core.Point;
import org.bytedeco.javacpp.opencv_core.Scalar;
import org.bytedeco.javacpp.opencv_core.MatVector;
import org.bytedeco.javacpp.opencv_core.Size;
import org.bytedeco.javacpp.opencv_core.Mat;
import org.bytedeco.javacpp.opencv_core.Rect;
...


//the minimum width and height of detected rect
private final static int MIN_WH = 20;
private final static int MINIMUM_AREA = 1000;
private final static float HW_RATIO = 2.85F;
//private final static double MINIMUM_AREA = 400;
private final static int DETECT_COUNT_THREAD = 12;
private final static boolean DEBUG = true;
//private final static boolean DEBUG = false;
private final static boolean SAVE = true;

...


Generate a 8x8 matrix and fill it with a chess patter like:

array([[1., 0., 1., 0., 1., 0., 1., 0.],
[0., 1., 0., 1., 0., 1., 0., 1.],
[1., 0., 1., 0., 1., 0., 1., 0.],
[0., 1., 0., 1., 0., 1., 0., 1.],
[1., 0., 1., 0., 1., 0., 1., 0.],
[0., 1., 0., 1., 0., 1., 0., 1.],
[1., 0., 1., 0., 1., 0., 1., 0.],
[0., 1., 0., 1., 0., 1., 0., 1.]])
...


https://djangopackages.org/gri...


https://django-activity-stream...


https://bootsnipp.com/snippets...


gan

https://towardsdatascience.com...


Steven...