• Stars
    star
    186
  • Rank 206,072 (Top 5 %)
  • Language
    C++
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

line segment detector(lsd) &. edge drawing line detector(edl) &. hough line detector(standard &. probabilistic) for detection

Three mainstream line detectors: lsd-lines, ed-lines and hough-lines

  • segment line detector (lsd)
  • edge drawing line detector (edlines)
  • hough line detector (standard and probabilistic)

All original dependencies have been removed. Code could be run independently:

  • line segment detector with a scale in vertical and horizontal direction in boundingbox, respectively
  • edge drawing line detector with a scale in vertical and horizontal direction in boundingbox, respectively
  • hough line detector(standard and probabilistic) with a scale in vertical and horizontal direction in boundingbox, respectively

EDLines

EDLines Simple Interface with Scale in Boundingbox

@param src         				image,single channel.

@param w           				width of image.

@param h           				height of image.

@param scaleX      				downscale factor in X-axis.

@param scaleY      				downscale factor in Y-axis.

@param bbox        				boundingbox to detect.

@param lines      				result.

@return            				0:ok; 1:error
int EdgeDrawingLineDetector(unsigned char *src, int w, int h,float scaleX, scaleY, boundingbox_t bbox, std::vector<line_float_t> &lines);

LSD

LSD Simple Interface with Scale in Boundingbox

@param src         				image,single channel.

@param w           				width of image.

@param h           				height of image.

@param scaleX      				downscale factor in X-axis.

@param scaleY      				downscale factor in Y-axis.

@param bbox       			 	boundingbox to detect.

@param lines       				result.

@return            				0:ok; 1:error
int LsdLineDetector(unsigned char *src, int w, int h, float scaleX, float scaleY, boundingbox_t bbox, std::vector<line_float_t> &lines);

Houghline

Houghline Simple Interface with Scale in Boundingbox

@param src         				image,single channel.

@param w           				width of image.

@param h           				height of image.

@param scaleX      			 	downscale factor in X-axis.

@param scaleY      			 	downscale factor in Y-axis.

@param canny_low_thresh      	lower threshold for the hysteresis procedure in canny operator.

@param canny_high_thresh      	higher threshold for the hysteresis procedure in canny operator.

@param hough_rho      			distance resolution of the accumulator in pixels.

@param hough_theta      		angle resolution of the accumulator in radians.

@param min_theta_linelength     standard: for standard and multi-scale hough transform, minimum angle to check for lines; propabilistic: minimum line length. Line segments shorter than that are rejected.

@param max_theta_gap      		standard: for standard and multi-scale hough transform, maximum angle to check for lines; propabilistic: maximum allowed gap between points on the same line to link them.

@param hough_thresh      		accumulator threshold parameter. only those lines are returned that get enough votes ( >threshold ).

@param _type      				hough line method: HOUGH_LINE_STANDARD or HOUGH_LINE_PROBABILISTIC

@param bbox        				boundingbox to detect.

@param lines       				result.

@return            				0:ok; 1:error
int HoughLineDetector(unsigned char *src, int w, int h, float scaleX, float scaleY, float CannyLowThresh, float CannyHighThresh, float HoughRho, float HoughTheta, float MinThetaLinelength, float MaxThetaGap, int HoughThresh, HOUGH_LINE_TYPE_CODE _type, boundingbox_t bbox, std::vector<line_float_t> &lines);

Reference

More Repositories

1

PaddleOCR2Pytorch

PaddleOCR inference in PyTorch. Converted from [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)
Python
771
star
2

MobilenetV3-Tensorflow

the multi-GPUs implementation of mobilenet v3 in tensorflow with tf.layers
Python
90
star
3

image-filter

some filters (boxfilter, fast bilateral filter, fast guided filter and permutohedral bilateral filter)
C++
51
star
4

image_classification_pytorch

image classification using pytorch-project-template, train a model of classification easily by modifying a json configuration
Python
41
star
5

PP-LCNet-Pytorch

PyTorch implementation of PP-LCNet
Python
32
star
6

Curve-Text-Rectification-Using-Pairs-Of-Points

A way to rectify curve text images using spatial transformer by pairs of points.
Python
30
star
7

Chinese-and-Western-Food-Classification

309 food classification by MobilenetV2, Pytorch
Python
21
star
8

GAN-Pytorch-Template

A Generative Adversarial Networks(GAN) project template to simplify building and training deep learning models using pytorch.
Python
9
star
9

image-augmentation-in-action

image augmentation in action for machine learning. (tensorflow, pytorch, mxnet, keras, albumentations, imgaug, Augmentor, mahotas, pilimage, scipy, skimage, ...)
Jupyter Notebook
6
star
10

image_classification_mxnet_gluon

image classification for mxnet-gluon refer to pytorch-project-template, train a model of classification easily by modifying a json configuration
Python
2
star
11

image_classification_keras

image classification using keras-project-template, train a model of classification easily by modifying a json configuration
Python
1
star