For example
We tend to get a picture containing targeted line info, and after process we could get a binary picture.
The picture could be multicolored and having strong noise.
See below two example:
pic type | input | output |
---|---|---|
the normal background color | ||
the black background color | ||
the real word background |
After we get the binary pictures, we have several method
We use three techs to detect the figure,for different compute power
Basically we calc the color info and decide which color is the line color.
And through canny and sobel method we also get the processed pic. Finally, we judge the quality of several pic, and return.
We assume that our curve is a signal, and using the low filter to smooth the curve.
from LineFigure import LineFgure
from BrokenLineFigure import BrokenLinrFigure
We define the class of "LineFigure",and subclasses such as BrokenLineFigure and CurveFigure for more detail process
We build a website for a more portable usage.
contact us via e-mail: [email protected]