deep-anpr icon indicating copy to clipboard operation
deep-anpr copied to clipboard

Faster localization

Open matthewearl opened this issue 8 years ago • 5 comments

The current windowing scheme makes the detection process rather slow. The main reason for this is the high overlap between windows: Each pixel is covered at least 128 times at each scale, and there are a large number of scales processed due to the conservative scaling factor of root 2.

Inspired by Joseph Redmon et al.'s YOLO paper I propose applying a neural network in windows with no overlap within a particular scale (ie. a disjoint tiling), and with a larger scaling factor. The network output would be a regression similar to the YOLO bounding box predictor. The predicted bounding boxes would then be passed to the existing network in order to read the numbers.

matthewearl avatar May 26 '16 09:05 matthewearl

I've changed gen.py to output detection images and reading images. The detection images have an expected output of x,y,s where x,y is the location of the centre of the plate, normalized to the [0, 1] interval and s is the size of the bounding box that most tightly fits the output plate. The bounding box has the same aspect ratio as the image, and is expressed as a scale of the original image dimensions.

The idea is a network architecture would be constructed which predicts these 3 values given the input image.

The code for this is in the detection-regressor branch. For the purposes of experimentation, the gen module can be used independently of the rest of the existing architecture. If anyone does any experimentation in this direction it would be good to hear about the results, even if they are negative.

matthewearl avatar Aug 29 '16 15:08 matthewearl

Is it possible to combine localization and recognition into YOLO network?

zomco avatar Apr 23 '17 01:04 zomco

@zomco Yeah the yolo can do localization and recognition at the same time, but I think the last layer should be a little bit larger.

SunAriesCN avatar Apr 23 '17 02:04 SunAriesCN

@SunAriesCN How to design the network? Is there any paper about that?

zomco avatar Apr 23 '17 02:04 zomco

Does this branch work?

ghost avatar May 03 '17 13:05 ghost