I want to read the meter readings from the given image(http://craigheadelectric.coop/content/automated-meter-reading)
I want to read the meter readings from the given image(http://craigheadelectric.coop/content/automated-meter-reading) by using tesseract so that i need to find the rectangular shape from the image then I want to crop the image up to meter readings how can I accomplish this task?
you could try to adapt the cpp squares sample
AFAIK it is just the C++ interface wrapped in a JNI instruction. So you need two things:
So combine both answers and there you got your solution ^_^
StevenPuttemans in my app I just want to take a picture from camera after that i want to apply image processing for cropping the rectangular shape, can you provide any samples ?
@Anilkumar please read the link provided by berak and start testing ... this is not an off the shelf code delivery service ...
crop to what rectangle , please ? could you be a bit more precise, about what you're trying to achieve ?
@berak In my captures image I can have a rectangular shape FYI(http://craigheadelectric.coop/content/automated-meter-reading) now I want to find the rectangular shape so that I can crop the Image upto the meter readings
@StevenPuttemans,@berak I want to read the meter readings from the given image(http://craigheadelectric.coop/content/automated-meter-reading) by using tesseract so that i need to find the rectangular shape from the image then I want to crop the image up to meter readings.
^^ hey, you should have started your question with that info in the 1st place. please have a look at the faq as well
once you found the Rect, cropping is just:
Mat cropped = Mat(image,Rect)
(or submat in java)