Search found 12 matches

by dcotto
2019-10-17T10:59:21-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Re: Detecting multiple images in one image file

Yes one great thing that helped was increasing the fuzz to 10%. that seems to work well. Thank you again for all your help. its hard to understand imagemagick. I really wish there was a more thorough book out there thats up to date. ill have to go through documenation for now. Do you know of any goo...
by dcotto
2019-10-16T18:16:25-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Re: Detecting multiple images in one image file

Hey it works great! the only issue im having is that the images arent cropping to exactly the same in the master sheet. For instance ill have 2 or more images in the one master sheet ...200x300, 425 x 500 .. . im using the command below: convert niceoutput-chopped.png -define connected-components:ar...
by dcotto
2019-10-12T08:01:06-07:00
Forum: Users
Topic: Getting a perimeter and filling in the rest
Replies: 3
Views: 40216

Re: Getting a perimeter and filling in the rest

i want to mask the whole ipad, starting from the white outer portion. so in the end it should look like in the image below but better (the image still has some black leaking in the white areas

https://ibb.co/M6v2swB
by dcotto
2019-10-12T06:29:10-07:00
Forum: Users
Topic: Getting a perimeter and filling in the rest
Replies: 3
Views: 40216

Getting a perimeter and filling in the rest

trying to make a mask out of this image. How would one go about creating it my assumption would be to use a threshold where the white perimeter is solid white. if i get the perimeter to be continuous solid white, how would i tell IM to close/fill the inside? if someone knows a better approach please...
by dcotto
2019-10-11T14:39:46-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Re: Detecting multiple images in one image file

okay awesome, your one liner is great. im going to use that one instead but below is how i did it: so i did it one by one since i dont know how to combine all commands just yet // flood fill an image with fuzz (fuzz to blend more pixels in and out of selection) convert chopped_off_top.jpg -fuzz 10% ...
by dcotto
2019-10-11T12:31:37-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Re: Detecting multiple images in one image file

after doing the fuzzy fill the images are not covered in white so when i tried to use -connected-components -depth 8 or -depth 20 i get an error saying too many objects.. im guessing cause i have to transform to the boxes/images to white . .. im still trying to find that technique. you said "Th...
by dcotto
2019-10-11T07:19:45-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Re: Detecting multiple images in one image file

Do a fuzzy flood fill at some pixel that is the background. See -fuzz XX% -draw "alpha x,y floodfill" at https://imagemagick.org/Usage/draw/#matte (alpha replaces matte in IM 7). Use as small a fuzz value as you can. For JPG images, the compression makes the background uneven. I have foun...
by dcotto
2019-10-01T18:26:20-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Re: Detecting multiple images in one image file

Threshold your image to get black rectangles on white background. Then use -connected-components to get the bounding boxes of the black rectangles. Then use this to crop your input image. Hey, would you be able to give an example how i would threshold an image and perform these steps using imagicma...
by dcotto
2019-09-30T17:36:52-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Re: Detecting multiple images in one image file

fmw42 wrote: 2019-09-25T16:19:02-07:00 Threshold your image to get black rectangles on white background. Then use -connected-components to get the bounding boxes of the black rectangles. Then use this to crop your input image.
awesome man thank you so much! im going to try your method
by dcotto
2019-09-25T12:34:37-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Re: Detecting multiple images in one image file

hey thank you chief but i am not looking for a paid solution at the moment. i am looking to learn how to solve this technical issue as a programmer and how i would go about it. would anyone know how to best do that using this or what are some generic steps i have to take to achieve my goal? thanks g...
by dcotto
2019-09-25T08:21:29-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Re: Detecting multiple images in one image file

im using ImageMagick 7.0.8-59 Q16 x86_64 2019-08-05 im using it on a macOS Sierra10.12.6 i will be using BASH terminal and Python <- each one separately, not together. below is the image. this jpeg contains 5 other images. i want to crop each one out..eliminate all the whitespace..its also possible ...
by dcotto
2019-09-24T15:28:39-07:00
Forum: Users
Topic: Detecting multiple images in one image file
Replies: 19
Views: 120295

Detecting multiple images in one image file

Hello, i have one big image that has other images in them. What i want to be able to do is detect each image and then crop them. for instance i may have 3 images in one JPG file image 1 is 300 x 300 image 2 is 400 x 400 image 3 is 500 x 500 each image has a black border of lets say 2px around them H...