Giter Site home page Giter Site logo

shutter's Introduction

shutter

Shutter doesn't expose the entire libgphoto2 API, rather, it tries to create a simple way to capture images from a camera.

Use libgphoto2 to control a tethered camera. Fork of defunct project 'piggyphoto' by Alex Dumitrache

I've cleaned it up quiet a bit, and added patches that were left in pull requests, but much is still untested.

Currently supported on linux and python 3.4

Use

# use the first camera detected on system
import shutter
camera = shutter.Camera()

# capture and save an image
camera.capture_image("file.jpg")

# keep the image data
data = camera.capture_image()
data.save("file.jpg")

# use regular expressions to search for a model
import re
camera = shutter.Camera(re.compile('canon'))

Supports

  • Capturing images, previews
  • Gracefully handle multiple cameras (regex search)
  • Probably more, but untested

Goals

  • unit tests, someday
  • remove all the cruft!

Supported Cameras

http://www.gphoto.org/proj/libgphoto2/support.php

shutter's People

Contributors

bitcraft avatar

Stargazers

Enrique 'Ranii' avatar David avatar

Watchers

 avatar James Cloos avatar

Forkers

brad gottdammer

shutter's Issues

capture_image err

zz@zz-N56JN:~$ python
Python 3.6.5 (default, Jun 11 2018, 23:03:46)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import shutter
>>> camera = shutter.Camera()
>>> camera.capture_image("my_pic.jpg")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zz/.pyenv/versions/booth3.6/lib/python3.6/site-packages/shutter/shutter.py", line 345, in capture_image
    self.download_and_save(path.folder, path.name, destpath)
  File "/home/zz/.pyenv/versions/booth3.6/lib/python3.6/site-packages/shutter/shutter.py", line 387, in download_and_save
    srcfolder = srcfolder.encode('ascii')
AttributeError: 'bytes' object has no attribute 'encode'

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.