sony
plantimager.sony Link
Camera Link
Camera(device_ip, api_port, timeout=10, postview=False, use_adb=False, use_flashair=False, flashair_host=None, camera_params=None, rotation=0)
Bases: AbstractCamera
Sony Remote Control API.
Examples:
>>> import numpy as np
>>> from plantimager.sony import Camera
>>> cam = Camera('192.168.122.1', '10000', postview=True, rotation=0)
>>> img = cam.grab(0)
>>> arr = img.channels['rgb'].data
>>> arr.shape
>>> cam = Camera('192.168.122.1', '10000', postview=True, rotation=270)
>>> img = cam.grab(0)
>>> arr = np.array(img.channels['rgb'].data)
>>> arr.shape
Source code in plantimager/sony.py
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 |
|
SonyCamAPI Link
SonyCamAPI(device_ip, api_port, timeout=2)
Bases: object
Source code in plantimager/sony.py
46 47 48 49 50 51 52 |
|
adb_transfer_pictures Link
adb_transfer_pictures(count=1)
Transfer the latest count pictures from the camera ADB shell must be enabled on the camera
Source code in plantimager/sony.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
|