ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Screenshot Captor

Auto Cropping Book Cover Images

(1/2) > >>

Relned1:
Hi,

In my last post I mentioned I automatically grab an Image into Screenshot Captor from my Webcam, then Automatically Rotate this image using Screenshot Captors Auto Rotate Function and then Store the Image with an Appropriate Name. All if this is done by pressing a "SNAP" button in an Excel Dialog Box I created.  I use Autohotkeys to "Glue" Excel to Screenshot Captor".

After I have a file full of Images, I pull these images back into Screenshot Captor and Manually Crop them.

I would like to do this automatically as well when I first Capture the Image using Screenshot Captor.  Is there an Add-on to Screenshot Captor I could use to do this.   Presently the Images I am taking are of Book Covers have a Very Black Velvet Background.   This works very well for having Screenshot Captor Rotate the Images.  For most of the Book Covers I Crop out all the black background leaving just the  book cover.  

If there is not a way to do this using Screenshot Captor with an Add-on, does anyone know what would be a good program I could use to do this in a batch mode?  I would want to point the program to the file that contains the Book Cover Images and have it go through each Image automatically in a batch mode, cropping as I described above.

For some Images after I find the edge of the Book Cover, I would like to back off 1/2 or 3/4 of an inch and crop here leaving a black boarder around the image.  Does anyone know how I can do this Automatically as well?


Thanks In Advance

mouser:
A third party tool might be best for this -- especially for things like adding some extra borders.
However, I will note that if you enable the Scanner Functions of Screenshot Captor you will see a new toolbar and one of the items on it is AutoCrop, designed to remove the background borders.

Relned1:
Mouser,

I have been playing around with the Crop feature and so far I really like what I am seeing.  It appears the Crop may work will  with my setup.  I think I may get it to do most (or all) of what I need.  I have a few questions.

In the Scan Options there is an option of "Select Foreground".  I assume this will show the selection of what you are about to be crop.  Is this right?

I have not seen an Icon on the toolbars to do this.  Is there some way this can be done in the main part of the program?  I have found that increasing or decreasing the threshold with the threshold Icon at the bottom of the screen will bring up the selection box, but I need some way of getting at this by using AutoHotkey's "Send" command (sends out keystrokes to Screenshot Captor).  I suppose I could get really fancy and use AutoHotkey's Image search to find the threshold Icon and click on it but would I rather not have to do this and don't know how reliable it would be.

For the books that I do need the 1/2 inch black edge, I am thinking I can semi Automate this.  I would automatically Select the area Screenshot Captor would Crop (using a Screenshot Captor "Select Foreground" selection - if available in a menu or in some other way in the main part of the program), then I would bring up an Excel Dialog box with instructions to move the selection book 1/2 inch to the top and left and expand the box in the other direction so that there is 1/2 inch black around the whole book.  Once a the selection is moved and expanded clicking on a "Continue Button" on the Excel Dialog would instruct Excel to Close or Minimize Screenshot Captor continue to gather the rest of the Info for the Item.

Is there any way of telling Screenshot captor to move the upper corner of the threshold selection by an X,Y offset and then tell it to make the selection X,Y units bigger.  If this can somehow be done then I could completely automate the process.  If this cannot be done I would like to put it up for a future feature.  What are the chances something like this might be added?  I know the priority may be fairly low since perhaps few people would use it?

Thanks much,

Again I love Screenshot Captor

I  have been using it for quite a while with a Scanner, and now may be able to increase my speed a lot for this new Application by using the WebCam feature and automate things more as well.


mouser:
Glad you like it -- I must say it really does help motivate me to continue development on the tools when I hear they are useful to people.

I think you are getting into an area where a standalone helper tool would really be the way to go.
My memory of the "Select Foreground" option is really basically the same as AutoCrop -- except that once it identifies the background it doesnt crop but it preselects the interior (foreground) rectangle that it would have cropped to.

There was an image cropping tool made my one of the members of this forum.. he might be able to add the features you need..

Relned1:
OK,

It would be great to have a 3rd Party App to be able to do more on cropping the image.  How do I get in touch with the member above you mentioned who has written a Crop App?

I did find a way to do something similar to what I mentioned about adding a border which I like using Screenshot captor.   After I crop the book cover,  I used the "Simple Boarder Around Image (Outside)" several times to get more some black around the image.  The book is on Black Velvet and so has a black background before I crop it.  The book is never completely perpendicular so that when I crop it, it always seems to have some black on some of the edges.  Adding some black boarder back by using the function above resolves this issue.  The book my seem just a bit rotated but I can keep this to an acceptable level.  After I add some black boarders back I use the "Deluxe Black Boarder Around Image".   I like the results I end up with.  I have attached a couple of pictures of a book I have done this too.  The first picture runs the Autohotkey script below once and the second picture runs it twice.

SetTitleMatchMode 2   
WinActivate, Screenshot Captor
WinWaitActive,Screenshot Captor, , 2

Send {Alt Down}2{Alt Up}{Down}{Right}{Down}{Enter}
Send {Alt Down}2{Alt Up}{Down}{Right}{Down}{Enter}
Send {Alt Down}2{Alt Up}{Down}{Right}{Down}{Enter}
Send {Alt Down}2{Alt Up}{Down}{Right}{Down}{Enter}
Send {Alt Down}2{Alt Up}{Down}{Right}{Down}{Enter}
Send {Alt Down}2{Alt Up}{Down}{Right}{Down}{Down}{Down}{Down}{Enter}

This may be good enough for my purpose but it might still be nice to have more options using a 3rd parties cropping program.  The only drawback to the above  is that the script above takes just a bit to run, so may add a few seconds to the picture tacking process.  I am sure a 3rd Party cropping program would be faster.

To do the above however I need to have Autohotkeys send characters to Screenshot captor telling it to "Auto Crop".  I did not see an menu Item to do this like there is for the "Auto Rotate" function.  Is there a key sequence I could use to activate this "Auto Crop" feature or is the only way to activate it would be to click on the Auto Crop Icon?

Navigation

[0] Message Index

[#] Next page

Go to full version