Coder Social home page Coder Social logo

josesaribeiro / cameracontrollerapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scheckmedia/cameracontrollerapi

0.0 0.0 0.0 1.48 MB

The CameraControlerApi is an attempt to control a DSLR via REST functionality.

Makefile 0.61% Objective-C 3.61% C 2.53% C++ 60.24% CSS 6.51% HTML 6.23% JavaScript 20.27%

cameracontrollerapi's Introduction

CameraControllerApi

The CameraControlerApi is an attempt to control a DSLR via REST functionality. At the moment is it possible to change the camera settings (ISO, aperture, time), take pictures and stream the live view of the camera (only tested with a Nikon D90).

###Web-Interface###

http://device_ip:port/webif/

###Demonstration###

a demonstration for the CameraControlerApi

How to use

You will get all valid data for a command from the "list" action.

###Settings###

List the configuration with validate values

http://device_ip:port/settings?action=list

ISO

http://device_ip:port/settings?action=iso&value=200

Aperture

http://device_ip:port/settings?action=aperture&value=f/22

Shutter Speed

http://device_ip:port/settings?action=speed&value=1/1000

Whitebalance

http://device_ip:port/settings?action=whitebalance&value=Cloudy

###Capture###

take a picture

http://device_ip:port/capture?action=shot

autofocus

http://device_ip:port/capture?action=autofocus

###File system###

list of the available images on camera

http://device_ip:port/fs?action=list

get an image

http://device_ip:port/fs?action=get&value=filename.jpg&path=/path/to/file

Each method will response with a JSON file. If you want a XML response you have to put the command "&type=xml" on the end of the upper commands

####Live View live view will be generated as mjpeg-stream. you can easy implement this stream in html inside an image tag e.g:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Live View</title>
</head>

<body>
<img src="http://localhost:8888/liveview" />
</body>

</html>

##Dependencies## apt-get install libboost-dev libboost-system-dev libmicrohttpd-dev libgphoto2-dev libexiv2-dev

  • libgphoto
  • libboost
  • libboost-system
  • libmicrohttpd
  • libexiv2

cameracontrollerapi's People

Contributors

scheckmedia avatar hjanuschka avatar tpxtron avatar yanniks 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.