Search found 11 matches

by balsaboom
2014-01-04T23:28:52-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

Also, would you have any idea how to invoke imagemagick through the command line through ajax? Or would I have to use php? Is it possible to write a "script" for imagemagick that the command line can execute automatically? *edit: from what i understand, its possible to execute it from a f...
by balsaboom
2014-01-04T17:35:59-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

Also, would you have any idea how to invoke imagemagick through the command line through ajax? Or would I have to use php? Is it possible to write a "script" for imagemagick that the command line can execute automatically? *edit: from what i understand, its possible to execute it from a fi...
by balsaboom
2014-01-04T16:44:44-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

I'm actually unsure if they're the same size on all devices, I'll go check right now. Even if they were the same size, I'd still need to have different scripts for the different possible image input sizes, right? I am not sure I follow this. What does the input image size have to do with matching t...
by balsaboom
2014-01-04T14:49:32-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

They aren't different patterns persay, but the number of icons per picture can change (because different mobile devices have different screen resolutions). so it might be 5 rows x 5 cols or 6 rows x 5 cols. Are the icons the same size on all the devices? If so then doesn't the width and height of t...
by balsaboom
2014-01-04T14:46:35-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

But you should use some hash or simple image statistic such a the average color to test first against your data base, to reduce the number that have to be matched via compare. Just to clarify, are you suggesting that I take a "preliminary test" and compare the average color of the icon in...
by balsaboom
2014-01-03T23:47:24-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

Alright, I think I have a pretty good idea of what I'm going to do. I'm going to allow the user to upload the file via html5/ javascript, which will then use ajax to send the image to a server. While uploading, they will also specify what device type they use, which will inturn determine which templ...
by balsaboom
2014-01-03T23:33:02-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

I am not sure I understand your question. I was saying that the background might be better if it was pure black. I am not saying to change the icons. To change the background to black, wouldn't I have to know the location of the icons (in order to not color them black). If i knew where they were, c...
by balsaboom
2014-01-03T22:44:47-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

I simply mean that if you crop equal sizes by tile cropping in the area of the icons, you will have a border around each crop that is your background. I though it was black, but it actually has a pattern. That makes the trim to "shave" it down to remove the background harder. You might be...
by balsaboom
2014-01-03T22:08:35-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

If all the small images are in well know places and sizes, then IM -crop can extract them one by one. Or you can crop out the region of the icons and probably use -crop to get them all in one command via tile cropping and then trim the black outside. See http://www.imagemagick.org/Usage/crop/#crop ...
by balsaboom
2014-01-03T16:08:00-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Re: Extracting and identifying images from a larger image

Are all the small images, the same size and are they arranged in uniform or well know positions? It may be hard to extract them otherwise, even with known borders. You would need to match an image of each border to your image and somehow ignore what is inside the borders. I am not sure IM has the f...
by balsaboom
2014-01-03T15:37:03-07:00
Forum: Digital Image Processing
Topic: Extracting and identifying images from a larger image
Replies: 25
Views: 42372

Extracting and identifying images from a larger image

Hi Everyone, I'm trying to develop a web application that will do the following: The user will upload an image to the site, and the site will transfer the image to my server. Then, on the server side, I want to process the image. The image consists of several small boxes arranged in a grid on a back...