i am working on a project where i have to scan a lot of pages (application form) where each form is attached (pasted with glue) with application picture. So, i need to get the picture (crop only the picture) from that scanned page/document.
I have attached a sample..
i can set the exact location on the document/image but few issues with that:
1. attached/pasted image is not on same size..
2. it may be not be pasted on same place on each form
3. it may be rotated slightly..
so, i am looking for some automated process that can take out the picture correctly regardless the above issues. i assume face detection may be the tool, but i am not sure about that..
so, it would be great if any one can help me with that?
thanks in advance
any help will be highly appreciated...
Related
I have a strange requirement , where the client wants a graphical logo which revolves to be printed on the reports. I am completely confused as on PDF can we display a .gif image. i gone through and found this. So, generating reports by active reports9 is it possible. Need assistance guys. If its not we need to inform as early as possible to client. If it possible how. Thanks in advance.
Displaying animated gif images in ActiveReports is not possible as of now.
Gifs could be loaded inside the Picture control in reports as simple images but the animation part for them is not supported currently.
What I am ultimately trying to do is to create a grid of images for print that are minor variations of the same thing (different text is all). Looking through online resources I was able to create a script that changes the text and exports all of the images necessary (several hundred). What I am trying to do now is to import all of these images into a new photoshop document and lay them all out in a grid and I can't seem to find any examples of this.
Can anyone point me in the right direction to place a file at a specific coordinate (I'm using CS5 and have the design suite so if there is a way in illustrator to do this quickly...)?
Also, I'm open to other ideas on how to do this (even other programs) easily. It's for labels so the positioning on the sheet has to be pretty precise...
The art layer object has a translate() method that takes delta x and y params. You'll need to open each image, copy it to the target document, get its current location (using artLayer.bounds) and do the math to find the deltas to position it where you want it. Your deltas can be in pixels so you'll get plenty of precision.
Check out your 'JavaScript Scripting Reference' pdf in your Adobe install directory for more details.
Ok I'm marking Anna's response as the answer because though I didn't fully test it, it seems like it should work and answers the original question with jsx. However I'm also leaving my final solution in case anyone else runs across this with the same issue and may prefer this method as well.
What I ended up doing instead is using InDesign. I figured out that it has a grid option that lets you import a number of files and place them all in an equal grid in a single command. This is almost exactly what I was looking for, except that it leaves a small border/margin in between the columns and grids and mine were designed to meet exactly.
I couldn't figure out how to make it not have the border (I have very little experience with InDesign, it may be possible). However I was able to select all my images and scale them uniformly to be the correct size, then I just selected each column and dragged it over to snap to the adjacent column and the same with rows...
On the following picture I am trying to reduce too brightness and lighting effect on the girl's face in Adobe Photoshop. I tried almost all options in Photoshop from top navigation > Image > Adjustment > but not able to reduced the highlights/lighting effect. Please guide or give me any tutorial that help me to do so.
Your image does not consist information in highlight zone. Very poor dinamic range of your camera(is this phone?). If you want edit photo for future, you will get shots in raw and looking for override higlight zone before shooting.
Taking the step to reduce over exposure before editing is an option, however what you can do is go to the filters tab. Next, you are going to want to select liquefy. This tool can detect facial features and help you make specific changes to the face. Good luck! I actually went in and fixed it using the curves tool which is also an adjustment. Lastly I made her face matte to hide the shine.
Here's the new version: click here
I am currently using an excel macro (although I will switch to VB.NET if necessary) to loop through all of the text in a PDF and populate an array with certain portions of the text in the PDF (via the Adobe SDK and getPageNthWord). This part is working just fine, but now what I want goes a step further.
There are certain portions of the PDF where just grabbing the text isn't giving the full picture, and I'd like to see what more I can get. This is exactly the screenshot or snippet I am trying to get:
So, I know that I could use getPageNthWordQuads to find the coordinates for the words "Compliance Warning" and I could figure out a way to find the bottom right of the screen as well, but my problem starts there. After I get those coordinates what would I do with them? Can I zoom in the PDF to only see that portion and then take a screenshot? I already have the code for a screenshot of the activewindow, but I don't know how to scroll or zoom on a PDF.
Any help would be greatly appreciated. A fresh approach would be welcome as well. Thanks!
There are probably a number of approaches that would work - I don't know enough about your environment / constraints to know for sure which would work best. I'm assuming you are talking to Acrobat through OLE here.
1) You can open a window, get its AVPageView and ask it to zoom and move to where you want it to do your thing.
2) You can open a PDF document in one of your own windows using OpenInWindowEx and then grab the contents of that window (the advantage being that this window could be off screen).
3) You can use the DrawEx method (in AcroExch.PDPage) to render a specific portion of a page into your own window and then process that.
Does anyone know if we can resize a QR-Code easily by using a proper vector program OR, is the size information contained on that code, hence, we will not be able to resize without changing the code ?
Thanks in advance.
You can resize as much as you want. The information is encoded in the pattern of the data, not in the size of the dots themselves. As long as a scanner can resolve properly between light/dark, the QR code should be readable at any size.
Update 2016: If someone happens to need to upscale a QR code image in some sort of browser/webview - you might get away with a simple CSS property:
img {
image-rendering: pixelated;
}
This way the upscaled image stays sharp.
See a comparison here: http://codepen.io/erkkit/pen/GodxGX
For high resolution (vector image) QR code for printing/publishing:
Get your free QR code
Right-click-and-save OR PrintScreen the QR code
Open/insert it in Photoshop, crop the QR code, and save as *.psd file (default Photoshop format)
Open that *.psd file with Adobe Illustrator – and you get the vector QR code. DONE! :)
Don't just re-size it that will make the edges blurry. You want it to have hard edges like MS-paint or the pencil brush in Photoshop. Open the file in Photoshop and go to IMAGE - RE-SIZE IMAGE and make sure Nearest Neighbor is selecting from the bottom drop down menu before you click OK
You CAN'T, not with the free QR generators. Unless you do some Adobe Illustrator tweaks with Live Trace/Paint afterwards. The abundant free QR generators are a joke when it comes to publishing the QR code you need. Resizing an originally low resolution image (the previous comment) for publishing/printing purposes is the most rediculous statement I've seen in a while. The guy doesn't know what he is talking about.