TransWikia.com

Division of numbers from contours in opencv in python for cnn

Data Science Asked by haik on January 9, 2021

I want to separate numbers in suppose 7638 into different images which can be predicted individually using cnn.
By finding contours how can I divide each contour into separate image in python.
To be more clear: How can I divide https://www.letter2word.com/products/americana-numbers into 0,1,2,3..9 into individual images using the concept of contours in opencv in python so that the resulting images can be predicted by cnn classifier and later all the results written together to give the number in image(initial) as output.
Also, is there any other method to do so.
PS.-I tried searching in google but everywhere it is given to extract 1 particular part of the image while I need more than 1 parts of the image for correct prediction

One Answer

After browsing for long hours I have found out that taking the contours as ROI is a considerable option

Answered by haik on January 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP