Skip to main content

Built to interface with any Limelight Smart Camera

Project description

LimelightLib Python

Discover all connected Limelights, and interact with them via REST and Websockets

import limelight
import limelightresults

discovered_limelights = limelight.discover_limelights()
print("discovered limelights:", discovered_limelights)

if discovered_limelights:
    limelight_address = discovered_limelights[0] 
    limelight = limelight.Limelight(limelight_address)
    results = limelight.get_results()
    print("targeting results:", results)

    limelight.enable_websocket()
    while(True):
        result = limelight.get_latest_results()

        parsed_result = limelightresults.parse_results(result)
        if parsed_result is not None:
            print(parsed_result.pipeline_id)
            print(parsed_result.parse_latency)

            # Accessing arrays
            for tag in parsed_result.fiducialResults:
                print(tag.robot_pose_target_space, tag.fiducial_id)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

limelightlib_python-0.9.4.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

limelightlib_python-0.9.4-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page