Git Product home page Git Product logo

node-sonycam's Introduction

node-sonycam

build FOSSA Status npm version

node-sonycam is a Node.js library to fetch images from Sony DSLRs (e.g., ILCE-QX1) using Camera Remote API beta written in TypeScript.

node-sonycamCamera Remote API beta を利用してソニー製デジタル一眼レフカメラから画像を取得するための Node.js 用ライブラリで、 TypeScript で記述されています。

Usage / 使い方

const location = await discoverSonyDevice();
console.log("Discovered service spec location:", location);

const spec = await fetchSonyCamSpec(location);
const serviceUrl = findSonyCamUrl(spec);
console.log("Found Sony camera service url:", serviceUrl);

const sonyCam = new SonyCam(serviceUrl);
await sonyCam.connect();

const liveviewUrl = await sonyCam.startLiveview();
await sonyCam.fetchLiveview();
console.log("Liveview URL:", liveviewUrl);

sonyCam.addListener("image", imageListener);
await new Promise((r) => setTimeout(r, 10 * 1000));

sonyCam.removeListener("image", imageListener);
await sonyCam.stopLiveview();
await sonyCam.disconnect();

More examples can be found in the following repositories.

実例は以下のリポジトリで見つけられます。

API Documentation / API ドキュメント

All of the exported classes and interfaces are listed in TypeDoc.

このモジュールが export しているすべてのクラスとインタフェースは TypeDoc で閲覧できます。

Credits / 開発者


Copyright (c) 2022 Jun Kato. Released under the MIT license.

node-sonycam's People

Contributors

arcatdmz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fossabot

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.