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
Built Distribution
Close
Hashes for limelightlib_python-0.9.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4670aa034059f0f4e6123fbbb6893c1b71a94ef3504d28c4213dfb7c660eaa67 |
|
MD5 | e97611b56ac53fe7baa06d802e29bad4 |
|
BLAKE2b-256 | 02996cb08279786b4ba6d00e9c6648bbd3d82f762c2ee9f5c29a9858e27f6beb |
Close
Hashes for limelightlib_python-0.9.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 478dd7778e2f9f39b797fa6c62719576d5422c78cc2029379f9db29a85976bcb |
|
MD5 | 5d5238ed748fdb213bf3ec22e2adbfa2 |
|
BLAKE2b-256 | c4b0bd3422b6844926f67c06ab5ecc84424655dd974bc7029d7f8ddd751186aa |