camera-client 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {camera_client-0.2.1/camera_client.egg-info → camera_client-0.2.2}/PKG-INFO +9 -2
- {camera_client-0.2.1 → camera_client-0.2.2}/README.md +8 -1
- {camera_client-0.2.1 → camera_client-0.2.2}/camera_client/client.py +6 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/camera_client/loading.py +31 -5
- {camera_client-0.2.1 → camera_client-0.2.2/camera_client.egg-info}/PKG-INFO +9 -2
- {camera_client-0.2.1 → camera_client-0.2.2}/pyproject.toml +1 -1
- {camera_client-0.2.1 → camera_client-0.2.2}/LICENSE +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/MANIFEST.in +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/camera_client/__init__.py +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/camera_client.egg-info/SOURCES.txt +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/camera_client.egg-info/dependency_links.txt +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/camera_client.egg-info/entry_points.txt +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/camera_client.egg-info/requires.txt +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/camera_client.egg-info/top_level.txt +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/requirements.txt +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/setup.cfg +0 -0
- {camera_client-0.2.1 → camera_client-0.2.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: camera-client
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python SDK for camera calibration and projection transformations - handle lens distortion, coordinate transformations, and 3D ray casting with symbolic expressions.
|
|
5
5
|
Author-email: Alexander Abramov <extremal.ru@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -334,8 +334,15 @@ The calibration file is a NumPy `.npz` archive containing:
|
|
|
334
334
|
- `exp_im2ray`: Image to ray direction transformation
|
|
335
335
|
|
|
336
336
|
### Metadata
|
|
337
|
-
- `
|
|
337
|
+
- `format_version`: Version string of the data format
|
|
338
|
+
- `plan_url`: URL or path to the ground plan image
|
|
338
339
|
- `plan_scale`: Scale factor for ground plane coordinates (pixels per meter)
|
|
340
|
+
- `plan_width`: Width of the ground plan in pixels
|
|
341
|
+
- `plan_height`: Height of the ground plan in pixels
|
|
342
|
+
- `im_src_url`: URL or path to the source (distorted) camera image
|
|
343
|
+
- `im_ctd_url`: URL or path to the corrected (undistorted) camera image
|
|
344
|
+
- `im_width`: Width of the camera image in pixels
|
|
345
|
+
- `im_height`: Height of the camera image in pixels
|
|
339
346
|
|
|
340
347
|
## Requirements
|
|
341
348
|
|
|
@@ -304,8 +304,15 @@ The calibration file is a NumPy `.npz` archive containing:
|
|
|
304
304
|
- `exp_im2ray`: Image to ray direction transformation
|
|
305
305
|
|
|
306
306
|
### Metadata
|
|
307
|
-
- `
|
|
307
|
+
- `format_version`: Version string of the data format
|
|
308
|
+
- `plan_url`: URL or path to the ground plan image
|
|
308
309
|
- `plan_scale`: Scale factor for ground plane coordinates (pixels per meter)
|
|
310
|
+
- `plan_width`: Width of the ground plan in pixels
|
|
311
|
+
- `plan_height`: Height of the ground plan in pixels
|
|
312
|
+
- `im_src_url`: URL or path to the source (distorted) camera image
|
|
313
|
+
- `im_ctd_url`: URL or path to the corrected (undistorted) camera image
|
|
314
|
+
- `im_width`: Width of the camera image in pixels
|
|
315
|
+
- `im_height`: Height of the camera image in pixels
|
|
309
316
|
|
|
310
317
|
## Requirements
|
|
311
318
|
|
|
@@ -30,6 +30,12 @@ class CameraProjection:
|
|
|
30
30
|
data = cam_archive_data
|
|
31
31
|
|
|
32
32
|
self.plan_scale = float(data["plan_scale"])
|
|
33
|
+
self.plan_url = str(data["plan_url"])
|
|
34
|
+
self.plan_width = int(data["plan_width"])
|
|
35
|
+
self.plan_height = int(data["plan_height"])
|
|
36
|
+
|
|
37
|
+
self.im_src_url = str(data["im_src_url"])
|
|
38
|
+
self.im_ctd_url = str(data["im_ctd_url"])
|
|
33
39
|
self.im_width = int(data["im_width"])
|
|
34
40
|
self.im_height = int(data["im_height"])
|
|
35
41
|
self.im_wh_size = (self.im_width, self.im_height)
|
|
@@ -11,9 +11,15 @@ def read_npz_file(filename):
|
|
|
11
11
|
|
|
12
12
|
Returns:
|
|
13
13
|
dict: Dictionary containing the following keys:
|
|
14
|
+
- format_version (str): Version string of the data format
|
|
15
|
+
- plan_url (str): URL or path to the ground plan image
|
|
14
16
|
- plan_scale (float): Scale factor for ground plane coordinates (pixels per meter)
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
+
- plan_width (int): Width of the ground plan in pixels
|
|
18
|
+
- plan_height (int): Height of the ground plan in pixels
|
|
19
|
+
- im_src_url (str): URL or path to the source (distorted) camera image
|
|
20
|
+
- im_ctd_url (str): URL or path to the corrected (undistorted) camera image
|
|
21
|
+
- im_width (int): Width of the camera image in pixels
|
|
22
|
+
- im_height (int): Height of the camera image in pixels
|
|
17
23
|
- src2ctd (np.ndarray): Map of coordinates for undistorted (corrected) image.
|
|
18
24
|
Shape: (height, width, 2) where channel 0 is X, channel 1 is Y
|
|
19
25
|
- ctd2src (np.ndarray): Map of coordinates for distorted (raw) image based on undistorted.
|
|
@@ -28,7 +34,17 @@ def read_npz_file(filename):
|
|
|
28
34
|
"""
|
|
29
35
|
data = np.load(filename)
|
|
30
36
|
|
|
37
|
+
format_version = str(data["format_version"])
|
|
38
|
+
|
|
39
|
+
# Plan options
|
|
40
|
+
plan_url = str(data["plan_url"])
|
|
31
41
|
plan_scale = data["plan_scale"]
|
|
42
|
+
plan_width = data["plan_width"]
|
|
43
|
+
plan_height = data["plan_height"]
|
|
44
|
+
|
|
45
|
+
# Camera image options
|
|
46
|
+
im_src_url = str(data["im_src_url"])
|
|
47
|
+
im_ctd_url = str(data["im_ctd_url"])
|
|
32
48
|
im_width = data["im_width"]
|
|
33
49
|
im_height = data["im_height"]
|
|
34
50
|
|
|
@@ -50,16 +66,26 @@ def read_npz_file(filename):
|
|
|
50
66
|
data.close()
|
|
51
67
|
|
|
52
68
|
return {
|
|
69
|
+
# Plan options
|
|
70
|
+
"plan_url": plan_url,
|
|
53
71
|
"plan_scale": plan_scale,
|
|
72
|
+
"plan_width": plan_width,
|
|
73
|
+
"plan_height": plan_height,
|
|
74
|
+
# Camera image option
|
|
75
|
+
"im_src_url": im_src_url,
|
|
76
|
+
"im_ctd_url": im_ctd_url,
|
|
54
77
|
"im_width": im_width,
|
|
55
78
|
"im_height": im_height,
|
|
79
|
+
# Distortion coords maps
|
|
56
80
|
"src2ctd": src2ctd,
|
|
57
81
|
"ctd2src": ctd2src,
|
|
58
|
-
|
|
59
|
-
"map_scale_w": map_scale_w,
|
|
60
|
-
"map_scale_vang": map_scale_vang,
|
|
82
|
+
# Perspective projection expressions
|
|
61
83
|
"exp_im2gnd": exp_im2gnd,
|
|
62
84
|
"exp_gnd2im": exp_gnd2im,
|
|
63
85
|
"exp_key_point": exp_key_point,
|
|
64
86
|
"exp_im2ray": exp_im2ray,
|
|
87
|
+
# Scale maps
|
|
88
|
+
"map_scale_h": map_scale_h,
|
|
89
|
+
"map_scale_w": map_scale_w,
|
|
90
|
+
"map_scale_vang": map_scale_vang,
|
|
65
91
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: camera-client
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python SDK for camera calibration and projection transformations - handle lens distortion, coordinate transformations, and 3D ray casting with symbolic expressions.
|
|
5
5
|
Author-email: Alexander Abramov <extremal.ru@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -334,8 +334,15 @@ The calibration file is a NumPy `.npz` archive containing:
|
|
|
334
334
|
- `exp_im2ray`: Image to ray direction transformation
|
|
335
335
|
|
|
336
336
|
### Metadata
|
|
337
|
-
- `
|
|
337
|
+
- `format_version`: Version string of the data format
|
|
338
|
+
- `plan_url`: URL or path to the ground plan image
|
|
338
339
|
- `plan_scale`: Scale factor for ground plane coordinates (pixels per meter)
|
|
340
|
+
- `plan_width`: Width of the ground plan in pixels
|
|
341
|
+
- `plan_height`: Height of the ground plan in pixels
|
|
342
|
+
- `im_src_url`: URL or path to the source (distorted) camera image
|
|
343
|
+
- `im_ctd_url`: URL or path to the corrected (undistorted) camera image
|
|
344
|
+
- `im_width`: Width of the camera image in pixels
|
|
345
|
+
- `im_height`: Height of the camera image in pixels
|
|
339
346
|
|
|
340
347
|
## Requirements
|
|
341
348
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "camera-client"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "Python SDK for camera calibration and projection transformations - handle lens distortion, coordinate transformations, and 3D ray casting with symbolic expressions."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|