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.