posts tagged with the keyword ‘photos’

2014.02.20

Occasionally I have a conversation with someone about whether you should shoot JPEG or RAW with a DSLR. I almost always shoot RAW. There’s a time and place for JPEG, but I avoid those times and places when I can.

Here’s a great example of what you can get when shooting RAW. I was walking through our kitchen and saw these mourning doves through the window. Well, through two panes of slightly dirty glass, on an angle, uphill. I fired off a few shots, and this was the best one I got.

Before

This photo is sort of terrible. I mean, the shot itself is useable, but we need to coax the awesome out of it, which you can do with a RAW image.

After

Here’s the results after tweaking the sliders in Photoshop. (You can view it larger on Flickr.)

From what appeared to be a terrible shot on the camera screen was transformed into a totally useable shot on the computer screen, through the magic of shooting RAW!

Shooting RAW is like shooting on film, which is why we say we have to “process” the image. Converting the RAW image is akin to developing film. (And yes, there are alternatives to Photoshop for processing RAW images, it’s just the one I tend to use the most.)

2012.11.15

Simple Photobooth

If you saw my old post about a simplistic photo booth using Processing, you probably loved it so much that you used it, and you probably loved using Processing so much that you used that too, and you even installed the betas of Processing 2.0, and then you cursed out loud as the code no longer worked.

Calm down, sport… we’re here to help.

While not final yet, Processing 2.0 has a lot of changes compared to Processing 1.5.x, and those of us who dabble in writing sketches can expect some breakage, but we can also attempt some fixage.

Here’s what I’ve got now… which works for me! (YMMV)

/**
 * PhotoBoothV2.pde
 */
 
import processing.video.*;

// resolution: 800x600 - change it if you want
int cols = 800;
int rows = 600; 

Capture cam;

int mainwidth  = cols;
int mainheight = rows;

void setup() {
  frameRate(30);
  size(mainwidth, mainheight, JAVA2D);
  colorMode(RGB);
  cam = new Capture(this, cols, rows); 
  cam.start(); 
  noSmooth();
  background(0);
}

void draw() {
  if (cam.available()) {
    cam.read();
    image(cam, 0, 0);
  }
} 

void keyPressed() {
    if (key == ' ') {  // space bar
       saveFrame("picture-####.jpg");
    }
}

Boom! You got a simplistic photo booth application. Congratulate yourself by purchasing this lovely button for it. (Or get this “bare” button and build your own damn case.)

Also, special thanks to Evil Mad Scientist for releasing their Atkinson Dithering sketch, which reminded me I had to fix my Processing code, and provided some hints on what needed updating.

2012.02.19

Cat x Cat

We started the week off with the cats sleeping. They do that a lot. They get more use out of the couch than the people who paid for the couch, so really, I guess we bought a couch for the cats.

Milwaukee Wave

We went to the last Milwaukee Wave home game of the regular season, and it was Fan Appreciation night. Here’s Jonathan Santos signing Dana’s jersey.

Mac x Mac

Had a heck of a time battling with a MacBook that wouldn’t boot… not even from external drives or the optical drive. Only ‘Safe Mode’ would work. Still working on this…

Chroma Green

At work we painted the cyc wall green for a big green screen shoot we’ll be doing this week…

Cat Top

You walk away from your MacBook for 5 minutes, and this is what happens…

Desk

The desk is a bit crazy right now… Besides the two displays of the Mac Pro, the MacBook is also there, and way over on the left is the Eee PC which may be brought into service with an Arduino attached for some remote monitoring…

R2D2

And lastly, I’d like to thank Dana for allow this to hang in the kitchen. I just hope George Lucas doesn’t show up and try to duct tape a jet pack onto it.

2011.12.08

You probably know I’m a fan of Photo Booths, and while Sparkbooth is awesome software, you might want something free (and open source) so here’s “PhotoBooth” written in Processing.

This is all the code you need for the most minimal photo booth application:

/**
 * PhotoBooth.pde
 */ 
 
import processing.video.*;
Capture cam;

void setup() {
  size(1280, 720);
  cam = new Capture(this, 1280, 720);
}

void draw() {
  if (cam.available() == true) {
    cam.read();
    image(cam, 0, 0);
  }
} 

void keyPressed() {
    if (key == ' ') {  // space bar
      saveFrame("picture-####.jpg");
    }
}

Once you’ve got that, you can export it as an application from Processing.

(Note that I’m using a Logitech C910 webcam, so I’ve set the resolution to something that makes sense for that camera. If it looks weird with your camera, try 640×480 or something else.)

PhotoBooth Export Application

I generally use Mac OS X, but other operating systems are supported. This is one of the great things about Processing.

PhotoBooth Application

Over in the Finder you’ll see a standalone application named “PhotoBooth” that will run fullscreen when launched. (You can exit it by hitting the escape key.)

Spazz!

Once you launch it you’ll see some spazzy dude, wait, that’s me! You’ll probably see yourself instead.

Hit the space bar, and it’ll save a photo. Hit the space bar again and it’ll save another one. And on, and on.

PhotoBooth Photos

The photos will show up in the same folder as the application. They will have a random number in the name. It’s not sequential, but you can view by date created if you need them in order.

Here’s a more full version of the Processing code with a few extras commented out. Uncommenting them may prove useful for debugging or camera set-up.

/**
 * PhotoBooth.pde
 */ 
 
import processing.video.*;
Capture cam;

void setup() {
  size(1280, 720);

  // If no device is specified, will just use the default.
  cam = new Capture(this, 1280, 720);

  // To use another device (i.e. if the default device causes an error),  
  // list all available capture devices to the console to find your camera.
  //String[] devices = Capture.list();
  //println(devices);
  
  // Change devices[0] to the proper index for your camera.
  //cam = new Capture(this, width, height, devices[0]);

  // Opens the settings page for this capture device.
  //cam.settings();
}

void draw() {
  if (cam.available() == true) {
    cam.read();
    image(cam, 0, 0);
  }
} 

void keyPressed() {
    if (key == ' ') {  // space bar
      saveFrame("picture-####.jpg");
    }
}

And hey, I know that hitting the space bar ain’t cool… so you might want to use an awesome button instead.

This is a super-simple application, which basically takes some example code that ships with Processing and adds a bit to it. I hope to have a few more posts that talk about some changes you can make to this application. Stay tuned!

2011.12.06

I’ve been meaning to do some iPhone 4S camera tests for a while now, and rather than wait and wait while I come up with a scientific method, I thought I’d just do a few shots and post them here. Early and Often, right?

Each photos links to the Flickr version you can view it at various sizes. None of the photos have been retouched at all.

iPhone Test 01
Normal iPhone 4S photo with direct light.

iPhone Test 01 (HDR)
HDR iPhone 4S photo with direct light.

iPhone Test 02
Normal iPhone 4S photo with soft light.

iPhone Test 02 (HDR)
HDR iPhone 4S photo with soft light.

For each shot the iPhone was on a tripod, and an overheard light consisting of a single bulb was used. (It’s a large high wattage bulb from an old photostat machine.) For the soft light shots, I put an umbrella in front of the light. I used Apple’s default Camera app that comes on the iPhone. All were shot on the white sweep I use for all my tabletop stuff. (If you’ve seen my Flickr stream, you’ve seen plenty of shots on that sweep.)

iPhone Tripod Mount
Experimental iPhone Tripod Mount

This photo of my “Experimental iPhone Tripod Mount” was taken (handheld) with my Nikon D40. If you wanted to compare the two, the iPhone 4S is supposedly an 8 Megapixel camera, while the Nikon is a 6 Megapixel camera. Size isn’t everything of course. Well, the Nikon does have a bigger lens, so that helps quite a bit. The Nikon also shoots in RAW, and yes, this shot has been edited quite a bit, but hey, that’s what I do with RAW photos. (And I mainly took this shot to show the set-up I used.)

When I get ambitious again, I’ll set up two tripods, one with the iPhone, and one with the Nikon, and do duplicate shots of various objects. Until then, enjoy these… I’m off to work on my Experimental iPhone Tripod Mount Version 2.0

« Older Entries |

buy the button:

Buy The Button

recently at:


top recent artists: