camera IQ setting and xu command package
Project description
Project Name
Copyright (c) 2021 lorry_rui
IQ Set Usage
from pu_xu.IQ_set import iqset
test = iqset()
test.set_exposure("-2")
iq1 = {
"zoom": "120",
"brightness": "120",
"contrast": "119",
"saturation": "120",
"whitebalance": "4000",
"gain": "0",
"exposure": "-1",
"focus": "2",
"sharpness": "120",
"pan": "-1",
"tilt": "-2"
}
test.set_whitebalance("3000")
test.set_pan("-3")
test.set_brightness("120")
test.set_exposure("-1")
test.set_iq(None, True) ## this one is to set iq to be dfaut
test.set_iq(iq1) # this one for load all dictionary setting
print(test.reading_iq())
####xu_tde Library # this is for logitech camera XU use only lock VID 046D
```python
# Import the 'lv' module from the 'pu_xu.xu_tde' package
import pu_xu.xu_tde as lv
# Check if the device with PID is found (flag: 0 means found, -1 means not found)
flag, index, value = lv.checkdevice(PID)
# Read information from the device
length, value1 = lv.inforXURead(PID, address)
# Read data from the device
length, data = lv.PCXuRead(PID, address)
length, data = lv.deviceXURead(PID, address)
# Read data from the device for testing
flag2, value2 = lv.TestXuRead(PID, address)
# Read video data from the device
length, value4 = lv.VideoXuRead(PID, address)
# Write data to the device (1 byte)
flag3, value3 = lv.TestXuWrite(PID, address, data)
# Write video data to the device (1 byte)
flag5, value5 = lv.VideoXuWrite(PID, zoomaddress, zoom_data)
# Write data to the EEPROM of the device
flag6, value6 = lv.EepromWrite(PID, address, val_to_write)
# Read data from the EEPROM of the device
flag7, value7 = lv.EepromRead(PID, address)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pu_xu-2023.10.1.3.tar.gz
(116.2 kB
view hashes)
Built Distribution
pu_xu-2023.10.1.3-py3-none-any.whl
(118.5 kB
view hashes)
Close
Hashes for pu_xu-2023.10.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2a10f90794f88f0a2cb87874495144c78786c2a3cc87cdc88fe11287c739429 |
|
MD5 | 0b6b28f1574a07b563b6cecda409a817 |
|
BLAKE2b-256 | 8cbef3344bb341e6299013f537d5c863aabe3ceed2093aa6962b595b4d6dfa4a |