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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51c07be2fd08b554592db0daea738634e391eab2fa5890e35d0b26df6887f6cd |
|
MD5 | 38c80f868f982c0ca500ff0f5c5af792 |
|
BLAKE2b-256 | 3771171624429686be186f35205808082466e0c445549886cf9d6fa0b1c0d896 |
Close
Hashes for limelightlib_python-0.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6c67be4922ba5cf01f3972808c69082ab6ab27fe67859fb58fc5aaa41867bac |
|
MD5 | 181f080a71156f5011f25e134636232a |
|
BLAKE2b-256 | a094304a03246a08fccc8a488094f43ecd24b9bf1541fbf2f0c24faa4e4b70e3 |