Coder Social home page Coder Social logo

multi-photo's Introduction

Multiple Product Photo Tool

Tool to take multiple product photos at the same time and resize them.

JJGames.com uses a modified version of this to take product photos of thousands of used video games every day.

Setup

There is some initial setup to install the correct code and setup the cameras.

  • Clone the repository to your machine

  • Install ffmpeg

This open source program takes video and photos using devices attached to your computer.

In command prompt:

cpanm install Image::Magick
cpanm install Image::Thumbnail
  • Edit program for number of cameras

Change the line in the multi-photo.pl file that chooses the number of cameras you'll use.

my @photos_to_take = (1,2,3);
  • Edit .bat files

You need to identify which camera should be used for each .bat file.

First you'll identify the cameras.

In command prompt type:

ffmpeg -list_devices true -f dshow -i dummy

This lists all of the cameras attached to your computer. You'll copy the unique identifier for a camera and paste that into one .bat file at this line.

video="paste_your_device_identifier_here"

Becomes:

video="@device_pnp_\\?\usb#vid_046d&pid_082d&mi_00#6&3967710f&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"

Also edit the .bat file name for the image. This can be anything but needs to be unique between .bat files.

-vframes 1 "%~dp0\1.jpg"
-vframes 1 "%~dp0\2.jpg"

Take Photos

To take photos, double click the multi-photo.pl program.

Or open the command prompt and run the perl program:

perl multi-photo.pl

One photo will be taken and resized for each camera setup. You should see the photos in the folder containing the multi-photo.pl program.

multi-photo's People

Contributors

jjhendricks avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar DT avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.