Page 1 of 1

simulating pictures taken with camera phones

Posted: 2010-05-30T15:01:26-07:00
by paulj
Hi

Newbie here, although been using the basic convert type commands for a while. I am trying to write an application for the mobile phone, which basically captures a photo, and sends to a server. In order to setup a lab system, I wanted to see if i could use Imagemagick to simulate the different types of images a camera user would take. I assume something like

1. Rotating
2. Blurring
3. perspective/skew

type operations would do the trick, but then I am not sure. And if this is the case, then how can you use these, i.e how much rotation would you apply, or skew, or is this just guess work. The user will be taking picture of say paintings, but of course may not hold the phone perpendicularly , or even vertically.

tks

Paul

Re: simulating pictures taken with camera phones

Posted: 2010-05-30T15:27:39-07:00
by snibgo
I don't have a camera phone, so can't help.

But they seem to be quite common. Why not borrow one and find out? Why simulate when you can have the real thing?

Re: simulating pictures taken with camera phones

Posted: 2010-05-31T16:44:14-07:00
by paulj
Because I am trying to write some code which works with images from a phone, problem is that we need to create a test environment, and taking 1000+ images in various positions of say a painting is not simple, hence if we could simulate we have more control over the input and output, and hence can really delve into the results.


tks

Paul

Re: simulating pictures taken with camera phones

Posted: 2010-05-31T17:42:47-07:00
by fmw42
IM can do the rotating (-rotate), skewing (-shear) and blurring (-blur or -gaussian-blur) easily. You may find that my 3Drotate script gives you easier control on the perspective than using IM -distort perspective with control points.

Re: simulating pictures taken with camera phones

Posted: 2010-05-31T18:43:14-07:00
by snibgo
I'm trying to understand, so we can help you. What do you hope to achieve with ImageMagick that you couldn't do with a camera phone in 30 minutes?

Re: simulating pictures taken with camera phones

Posted: 2010-06-01T17:12:50-07:00
by paulj
Hi

Imagine having 100K pictures, all of which need to be photographed with a camera, at various angles, tilts, zoom etc, thats alot of camera time, even if I could click fast. If I could set this up using software, then I leave it to run, and come back. Of course the tilt, rotation is also recorded, hence if I need to refer back to re-create I can easily, but just using my handy cameraphone its not really possible.

Paul