Coder Social home page Coder Social logo

yi4kapi's Introduction

Yi4kAPI

Python API for Yi 4k camera.

It is based on official Yi 4k Java API.
Differences from original API:

  • Commands are blocking waiting for result, while in original API they return promices.
  • 'stopRecording' and 'capturePhoto' waits till operation is really ended and return produced file name.
  • Values provided to commands should be correct strings, compared to integers in original API.
  • 'adapter', 'adapter_status' and 'battery_status' callbacks are available in addition to all other. .setCB() used to set/get callbacks.
  • 'deleteFile' and 'getFileList' commands require path relative to DCIM folder.

Try not to call same commands simultaneously from different threads: camera response is not clearly identified with caller and response can be mixed.

###Commands not implemented:

  • formatSDCard
    NSFW

  • downloadFile

  • cancelDownload
    Redundant, available by http

  • getRtspURL
    Redundant, available at YiAPI() creation

  • buildLiveVideoQRCode
    Maybe later

  • startRecording datetime
    Lazy to implement due to specific input value format

yi4kapi's People

Contributors

nikolayrag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

yi4kapi's Issues

Download File

Hey,

I like to record a video and immediately play it after stop recording. Unfortunately you don't implement DownloadFile.

Is there any other way to get the file?

Why you decide to spare this command out?

Greetings,

Dennis

Questions about the camera

Hi,

Nice job with this API ! Can you explain us the usage you have of it ?

I would like to know how you interact with the camera. Is it only by wifi or will it work by USB ? I would like to use this CAM + you API with a Raspberry Pi as HD video input, what do you think ?

Thx again !

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.