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(vid,PID)
index = lv.checkindex(vid,PID) # lv.checkindex("046d","0919")
# 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.7.tar.gz
(117.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pu_xu-2023.10.1.7-py3-none-any.whl
(119.5 kB
view details)
File details
Details for the file pu_xu-2023.10.1.7.tar.gz.
File metadata
- Download URL: pu_xu-2023.10.1.7.tar.gz
- Upload date:
- Size: 117.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
473ee7b90d003a71c69a3683430f5750147c62debc8920c56f57652154109078
|
|
| MD5 |
a76e0a13de29ff2914b5971ddd7f07dc
|
|
| BLAKE2b-256 |
4abe8e1c8206a01b6ee6bbf1224b14a5428f7b1882602e864e547369d498d16d
|
File details
Details for the file pu_xu-2023.10.1.7-py3-none-any.whl.
File metadata
- Download URL: pu_xu-2023.10.1.7-py3-none-any.whl
- Upload date:
- Size: 119.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1621252242f4ab3fc91b575b62db62b803652f2f5f6a6cff03ae0704623fd09
|
|
| MD5 |
f7d15244cfc7c398e13ddb64c1e027eb
|
|
| BLAKE2b-256 |
0fe1e85bcd3c89e2e464d0d2da02660989ce72ba35b240d8ab37b334fc1f62a1
|