barcode detection in a scanned image
I am working on a project that uses opencv, I am facing following issues:1) I have a scanned image with bar code, the task is to a) realign the image so that the bar code is at bottom, b) remove the bar code from the image into other image, c) divide the images into grids and calculate the ratio of red and black in each grid. I am a complete beginner in Opencv, please suggest any existing algorithm and techniques that can be used to solve this problem.Also, any reference to books or blogs.
start with the tutorials , try some things on your own, and come back with a more specific question ?
we can only help you IF you have an opencv related problem. we can't / won't do YOUR research.
see https://www.learnopencv.com/barcode-a...
please upload (if you have) a sample image. if you don't need to decode the barcode maybe i will suggest some simplier way.