The proper way to do that would probably be using some kind of Blob Analysis to extract the red areas and do bounding boxes around them. It's not that hard, but in starting that approach, I can do something much simpler, yet quite effective, with a single line of ImageMagick. It is free and available at the command line and with PHP, Perl, Python and other bindings.
So, I was going to convert all the red areas to white, and all the non-red areas to black, then run a Blob Analysis and draw red bounding boxes around the white blobs. But on the way, I thought about maybe making the non-red areas of the image semi-transparent and then red areas fully transparent, so the focus of attention is on the red stuff and all the other stuff is really pale. That can be done in a single ImageMagick command like this:
convert http://i.stack.imgur.com/qqein.png
( +clone
-fuzz 30%
-fill "#222222" +opaque red
-fill "#ffffff" -opaque red -colorspace gray )
-compose copy-opacity -composite out.png
The result is like this:
The numbers can obviously be tweaked if you like the approach...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…