zulooexplore.blogg.se

Test number image plus result
Test number image plus result









These weight factors are perfected during training. Internally it has a collection of weight factors, which are used to calculate the output. You need to train it by feeding it both inputs and outputs. It takes multiple inputs and produces 1 output. I would recommend to combine 2 basic neural network components:Ī perceptron is a very simple neural network component. You can try to apply the OCR before hand, but at best, the OCR will recognize both numeric values, both written and both typed, which from what I get, is not what you are after.Īlso, the extra lines which depict the rectangles might throw the OCR off track, and make it yield bad results.

test number image plus result

Once that you have the left segment, you would then apply the OCR. Which you would then apply the Hough Transform again and end up with two segments, and you take the left one. The idea would be to run the Hough Transform so that you can get segments of the page which contain rectangles like so: +-+-+ You would crop the image so that your remove the area which does not have relevant data (the part on the left) by cropping the image, you would get something like so: +-+ Colours can have a negative impact on the OCR's ability to resolve the image.ĮDIT: As per your comment, given something like this: +-+ It might be wise to change the image to grey scale (assuming you are working with a colour image). This should give you a smaller picture to work with. You would then need something akin to Tess4j (Tesseract Java Wrapper) which should allow you to extract the numbers you are after.Īs an extra note, to reduce the amount of false positives, you might want to do the following:Ĭrop the image if you are certain that certain coordinates will never contain data you are after. In this case, I would recommend you take a look at JavaCV (OpenCV Java Wrapper) which should allow you to tackle the Hough Transform part. Once that you are done, you can use an OCR to extract the numeric value. If the current section yielded 2 elements, then you should be dealing with a rectangle similar to the above.

#Test number image plus result series#

You will most likely need to do the following:Īpply the Hough Transform algorithm on the entire page, this should should yield a series of page sections.įor each section you get, apply it again.









Test number image plus result