posts tagged with the keyword ‘photos’

2014.04.30

Hoover Dam Power Plant
Hoover Dam Power Plant

Hoover Dam Bypass
Hoover Dam Bypass

Hoover Dam
Hoover Dam

I was at Hoover Dam last week, and I got a few photos of the place. I’d never been to the Hoover Dam before. I’ve never even been to Nevada before, though I did once live on Nevada Street, and have a connection to the guy who used to run Nevada Power.

(Oh, we also shot a lot of other things, but these are just a few panoramic shots I did while we were at the dam.)

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!

« Older Entries |

buy the button:

Buy The Button

recently at:


top recent artists: