OpenCV is definitely one of the best options you can start with.
But , pay attention that what you want to achieve is really far from what you think. It doesn't look like a library, say, JPEG compression, when you need a day to understand and use. OpenCV is a set of tools and algorithms for scientists and engineers to research new ways of image recognition; You may need a significant amount of time and energy to complete your task.
source share