I'm new to OpenCV and image processing in general. I have photos taken with a camera of food labels for a project I'm working on. I was able to use the cvHoughLines2 function to draw red lines over the lines/bars on the photo.
What I want to do now is to chop up the image into several smaller images based on the Hough lines - so that each "line" (e.g. the "calories" line, "protein" line, etc) of the food label is separated into new images.
Since I have no idea how to do this, is there someone who could point me somewhere or teach me how to d开发者_开发问答o this?
Thanks.
As far as I know, there are no functions that split an image into multiple parts. You'll have to set an ROI (region of interest), create a new image of smaller size, and then copy that image into the smaller image.
Have a look at http://aishack.in/ it has OpenCV tutorials... some of them might help you
精彩评论