How to remove everything except numbers from chart images?
I receive about 500 to 1000 photos of charts or graphs on a daily basis that i have to remove all the components of the photos except their numerical values.
This is an example of my photos:
I select graph bars using Magic Wand Tools in Photoshop:
Then move selected area to between logos and the numerical values:
And finally, by removing the various components of the images, only numerical values remain:
I have to do these steps with Photoshop action feature because the number of my daily photos is very high.
I can do these steps with action feature automatically if the distance between the edge of the graph bars and the first digit of the numerical values is the same in all images. but the main problem here is that the space between the numerical values and the graph bars in the images received daily is not the same.
For example, this is another photo where the distance between the numerical values and the bars of the graph is very close:
If I apply the steps I went through for the previous image using Photoshop action feature on this image, surely some of the numerical values will be removed in this image.
How can I delete all the components of my daily images except the numerical values through the Photoshop action feature?
Can I move selected area exactly to before the numeric values using the Photoshop script?
Note:
- I can't use Photoshop Color Range tool for selecting numeric values because numeric values have same color as the rest of the image contents.
- My daily images have a single layer and are not smart objects.
- number of images received daily is very high and I cannot do it manually. I must do it with Photoshop action feature or another automatic solution.
- I can't use OCR tool because some of the images contain some logos that contain letters or numbers. If the logo numbers are extracted and combined with numerical values, it is not possible to find the extracted logo numbers.
- The space between the graph bar and numerical values in each image is specific and this distance is different between different images.
- The space between the graph bar and numerical values in a photo is the same.
- All my images resolution is same
- It is not a problem if resolution of the photo are changed.
- I know that the explanation I provided is complicated, but I could not express my problem more simply than this.
I have been facing this difficult problem for about three months and I hope I can find a solution here
Sorry if there are any spelling errors in the text because my English is very poor. I wrote this text with the help of Google Translate.
