Code Monkey home page Code Monkey logo

avkans-visca-utils's Introduction

avkans-visca-utils

Visca over TCP control for AVKans E20 Cameras, and probably other AvKans or PTZOptics cameras.

Background

AVKans makes a line of affordable NDI-HX cameras that work very well, but the visca / TCP controls are a bit quirky. This library is specifically targeted at the inexpensive E20 cameras, but should work with most of the Avkans or PTZ Optics lineup, and is a good base for developing other Sony Visca TCP applications.

This package is designed around controlling the E20 NDI camera, and includes computations based on it's geometry and speed characterizations. It was originally created to allow for real-time AI camera functionality via Python. AVKans publishes (incomplete) documentation on the TCP commands, and a number of them simply do not work. I removed those from this library, so all the commands available in this library have been tested and work with E-20 Firmware version 1.0.10

This package is not distributed by or endorsed by AVKans.

License

This package is licensed under the "MIT License" - See license.txt

Example Usage

from avkans-visca-utils import AvkansControl

# Connect over TCP
cam1 = AvkansControl("192.168.100.110")

# Go to +45,+20 position at full speed.
print("Going to 45,20")
cam1.send_raw(cam1.cmd.ptz_to_abs_position(45,20,1,1))
cam1.wait_complete()

# Set zoom level at 50% - 10x zoom for Avkans E20
print("Zoom 50%")
cam1.send_raw(cam1.cmd.zoom_set_position(0.5))
cam1.wait_complete()

# Implement a continuous servo loop
while(True):
  cmd_vector = [do your inference here with Yolo, etc]
  cam1.send_raw(cam1.cmd.ptz_to_abs_position(cmd_vector))

avkans-visca-utils's People

Contributors

yatesdr avatar

Watchers

 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.