Ask Your Question

tleyden's profile - activity

2014-08-01 04:23:56 -0500 commented answer How to extract pixels from a rotated box2d?

Thanks, that worked. Here's a snippet of the python code that I used: https://gist.github.com/tleyden/d5f2fa909c5e55d0d139

2014-08-01 03:51:21 -0500 received badge  Supporter (source)
2014-08-01 03:51:19 -0500 received badge  Scholar (source)
2014-07-31 02:30:22 -0500 asked a question How to extract pixels from a rotated box2d?

I have a box2d that was returned from calling cvMinAreaRect2() on a contour, and it's rotated at 45 degrees.

I want to extract the pixels from that contour into it's own image, where the box2d is rotated so that it's upright.

2014-07-30 07:38:59 -0500 commented question Remove region with certain color from image

No ethical issues -- I'm just trying to find a specific field in a form. Actually, to flip the question around .. in case it's easier, I want to get the region which includes the text "VC22500E - DRIVEWAY".

2014-07-30 06:07:19 -0500 asked a question Remove region with certain color from image

Given an image such as:

image description

I want to remove the "red text" from this image.

There will be a lot of lighting variations in the images I need to process, and I've read that using the HSV color model would be more robust against lighting variations, but I'm not sure where to go from there.

2014-06-21 23:29:49 -0500 received badge  Necromancer (source)
2014-06-21 14:12:53 -0500 answered a question Java OpenCV + Tesseract OCR “code” regocnition

Using Tesseract via OpenOCR running on Google Compute Engine, I OCR'd your original image and got the following output:

E' ,‘YHwacpMTDCH ; 3?". ‘ V‘L"~m> I shah-r}. I’VMU' i 5: 1“”. A"

I then tried to pre-process it via Stroke Width Transform using this docker image and the following command:

wget http://answers.opencv.org/upfiles/1375472915202212.png
cd /opt/DetectText && ./DetectText 1375472915202212.png out.png 1

Which resulted in this pre-processed image:

image description

When I re-ran Tesseract on it, I got this output:

YH XMCDMTDC

which isn't perfect, but is a pretty big improvement.

2014-06-10 09:37:23 -0500 commented answer Extracting region(s) from parking ticket

The ticket's will be photographed by mobile devices, do you think this approach will still work -- or would you recommend a different approach in that case?

2014-06-09 10:29:52 -0500 commented answer Extracting region(s) from parking ticket

Haris thanks so much for your reply. I should have mentioned though that I doctored the image to remove a few fields for personal privacy reasons. I just updated the original question to be clearer:

I've doctored the image and removed a few fields by drawing a box and deleting. (eg, the Citation and VIN fields both have a white box where the text would normally be)

How would I extract the text for the Date field (04/21/2014) or any of the other fields (Time Issued, Year, etc)?

2014-06-09 10:27:16 -0500 received badge  Editor (source)
2014-06-07 14:50:47 -0500 asked a question Extracting region(s) from parking ticket

I want to extract several regions containing text from a parking ticket like:

http://cl.ly/image/450h2z3t3j17

For personal privacy reasons, I've doctored the image and removed a few fields by drawing a box and deleting. (eg, the Citation and VIN fields both have a white box where the text would normally be)

How would I extract the text for the Date field (04/21/2014) or any of the other fields (Time Issued, Year, etc)? The reason I want to extract the text is to feed into Tesseract OCR, so I can index the document on these fields.

I'm new to opencv, can someone point me in the right direction on how to do this?