1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
|
%global _empty_manifest_terminate_build 0
Name: python-vito
Version: 1.6.0
Release: 1
Summary: Lightweight utility package for common computer vision tasks.
License: MIT License
URL: https://github.com/snototter/vito
Source0: https://mirrors.aliyun.com/pypi/web/packages/5a/2b/f38fa7921d5b4eed7ec4aae3498d6f5967f60108ff1c68f26beba560de9f/vito-1.6.0.tar.gz
BuildArch: noarch
Requires: python3-numpy
Requires: python3-Pillow
%description
# vito - Vision Tools
[](https://pypi.org/project/vito)
[](https://pypi.org/project/vito)
[](https://app.travis-ci.com/snototter/vito)
[](https://coveralls.io/github/snototter/vito?branch=master)
[](https://github.com/snototter/vito/blob/master/LICENSE?raw=true)
Python utilities for common computer vision tasks.
The goal of this package is to provide a lightweight python-only package for very basic image manipulation tasks, optical flow handling, pseudocoloring and camera geometry.
## Examples
* **Pseudocoloring:**
```python
from vito import imutils
from vito import imvis
# Load a single-channel image (data.dtype will be numpy.uint8)
peaks = imutils.imread('peaks.png', mode='L')
# Colorize it
colorized = imvis.pseudocolor(peaks, limits=None, color_map=colormaps.colormap_viridis_rgb)
imvis.imshow(colorized)
# Load 16-bit depth stored as PNG (data.dtype will be numpy.int32)
depth = imutils.imread('depth.png')
# Colorize it
colorized = imvis.pseudocolor(depth, limits=None, color_map=colormaps.colormap_turbo_rgb)
imvis.imshow(colorized)
```
Exemplary visualizations: colorizing via the `turbo` rainbow colormap (left); same data reduced to 11 bins colorized using `viridis` (right). Input data is obtained from two translated and scaled Gaussian distributions.

* **Optical flow:**
```python
from vito import flowutils
from vito import imvis
# Load optical flow file
flow = flowutils.floread('color_wheel.flo')
# Colorize it
colorized = flowutils.colorize_flow(flow)
imvis.imshow(colorized)
```
Exemplary visualization: Optical flow (standard color wheel visualization) and corresponding RGB frame for one frame of the [MPI Sintel Flow](http://sintel.is.tue.mpg.de) dataset.

* **Pixelation:**
```python
from vito import imutils
from vito import imvis
img = imutils.imread('homer.png')
rects = [(80, 50, 67, 84), (257, 50, 82, 75)] # (Left, Top, Width, Height)
anon = imutils.apply_on_bboxes(img, rects, imutils.pixelate)
imvis.imshow(anon)
```
Exemplary visualization: anonymization example using `imutils.apply_on_bboxes()` as shown above, with Gaussian blur kernel (`imutils.gaussian_blur()`, left) and pixelation (`imutils.pixelate()`, right), respectively.

* For more examples (or if you prefer having a simple GUI to change visualization/analyze your data), see also the [**iminspect**](https://pypi.org/project/iminspect) package (which uses `vito` under the hood).
## Dependencies
* `numpy`
* `Pillow`
## Changelog
* Upcoming `1.6.1`
* TODO: Type hints and doc style for cam_projections, colormaps, det2d, flowutils
* TODO: flowutils: filenames should be str|pathlib.Path
* `1.6.0`
* Remove deprecated functionality (workarounds for Python versions older than 3.6).
* Add type hints and update documentation.
* Add parameter order check to `imsave` (that's the one thing I alwys mess up
when coding without IDE).
* `imsave` now creates the output directory structure if it did not exist.
* `1.5.3`
* Mute initial notification about `imshow` backend.
* Catch exception and adjust `imshow` backend if used with headless OpenCV.
* `1.5.2`
* Changed `imshow` to skip waiting for user input if `wait_ms=0`.
* Added (RGB) colormap handles for convenience.
* Drop support for deprecated Python version 3.5.
* `1.5.1`
* Changed handling of `None` inputs for image concatenation/stacking.
* `1.5.0`
* Extends the `imutils` submodule (rotation, concatenation & noop).
* Fix deprecation warnings with newer NumPy versions.
* Extended test suite.
* `1.4.1`
* Removes f-strings to fix compatibility for older python 3.5.
* `1.4.0`
* Changed `imvis.overlay` to use a more intuitive signature.
* Aliases for some `cam_projections` functions.
* Spell-checked all files via `pyspelling`.
* `1.3.4`
* Extended input handling for `imutils` (support single channel input to rgb2gray).
* Aliases for some `imutils` functions.
* Cleaning up tests, documentation, etc.
* `1.3.3`
* Prevent nan values caused by floating point precision issues in the `cam_projections` submodule.
* Remove the (empty) `tracking` submodule (to be added in a future release).
* Update the submodule list.
* `1.3.2`
* Support custom label maps in `detection2d` module.
* Construct `BoundingBox`es from relative representations.
* `1.3.1`
* Relative `BoundingBox` representation.
* Support label lookup for `Detection` instances directly.
* `1.3.0`
* Common representations and utilities for 2D object detection via the `detection2d` module.
* `Detection` class to encapsulate object detections.
* `BoundingBox` class to work with axis-aligned bounding boxes.
* `1.2.3`
* Support sampling from colormaps.
* Adjust tests to updated PIL version.
* `1.2.2`
* Use explicit copies in `pseudocolor()` to prevent immutable assignment destination errors.
* `1.2.1`
* Explicitly handle invalid (NaN and infinite) inputs to `pseudocolor()`.
* `1.2.0`
* Add pixelation functionality for anonymization via `imutils`.
* Add Gaussian blur to `imutils`.
* `1.1.5`
* Extend projection utils.
* `1.1.4`
* Explicitly handle `None` inputs to `imutils`.
* `1.1.3`
* Fix transparent borders when padding.
* `1.1.2`
* Add sanity checks to `imutils` which prevent interpreting optional PIL/cv2 parameters as custom parameters.
* Add grayscale conversion to `imutils`.
* `1.1.1`
* Maximum alpha channel value derived from data type.
* `1.1.0`
* Added padding functionality.
* `1.0.4`
* Improved test coverage.
* Fixed potential future bugs - explicit handling of wrong/unexpected user inputs.
* `1.0.3`
* Minor bug fix: handle invalid user inputs in `imvis`.
* `1.0.2`
* Additional tests and minor improvements (potential bug fixes, especially for edge case inputs).
* Ensure default image I/O parametrization always returns/saves/loads color images as RGB (even if OpenCV is available/used on your system).
* `1.0.1`
* Fix colorizing boolean masks (where `mask[:] = True` or `mask[:] = False`).
* `1.0.0`
* Rename flow package to `flowutils`.
* `0.3.2`
* Rename colorization for optical flow.
* `0.3.1`
* Fix `colormaps.by_name()` for grayscale.
* `0.3.0`
* `apply_on_bboxes()` now supports optional kwargs to be passed on to the user-defined function handle.
* Changed `imread()`'s default `mode` parameter to optional kwargs which are passed on to Pillow.
* Raising error for non-existing files in `imread()`
* Added `colormaps.by_name()` functionality.
* Fixed bounding box clipping off-by-one issue.
* Added `imutils` tests ensuring proper data types.
* `0.2.0`
* Optical flow (Middlebury .flo format) I/O and visualization.
* Support saving images.
* Visualization utils for tracking results.
* `0.1.1`
* Changed supported python versions for legacy tests.
* `0.1.0`
* First actually useful release.
* Contains most of the functionality of `pvt` (a library I developed throughout my studies).
* `cam_projections` - projective geometry, lens distortion/rectification (Plumb Bob model), etc.
* `colormaps` - colormap definitions for visualization (jet, parula, magma, viridis, etc.)
* `imutils` - image loading, conversion, RoI handling (e.g. apply functions on several patches of an image).
* `imvis` - visualization helpers, e.g. pseudocoloring or overlaying images.
* `pyutils` - common python functions (timing code, string manipulation, list sorting/search, etc.)
* `0.0.1`
* Initial public release.
* Contains common python/language and camera projection utils.
%package -n python3-vito
Summary: Lightweight utility package for common computer vision tasks.
Provides: python-vito
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-vito
# vito - Vision Tools
[](https://pypi.org/project/vito)
[](https://pypi.org/project/vito)
[](https://app.travis-ci.com/snototter/vito)
[](https://coveralls.io/github/snototter/vito?branch=master)
[](https://github.com/snototter/vito/blob/master/LICENSE?raw=true)
Python utilities for common computer vision tasks.
The goal of this package is to provide a lightweight python-only package for very basic image manipulation tasks, optical flow handling, pseudocoloring and camera geometry.
## Examples
* **Pseudocoloring:**
```python
from vito import imutils
from vito import imvis
# Load a single-channel image (data.dtype will be numpy.uint8)
peaks = imutils.imread('peaks.png', mode='L')
# Colorize it
colorized = imvis.pseudocolor(peaks, limits=None, color_map=colormaps.colormap_viridis_rgb)
imvis.imshow(colorized)
# Load 16-bit depth stored as PNG (data.dtype will be numpy.int32)
depth = imutils.imread('depth.png')
# Colorize it
colorized = imvis.pseudocolor(depth, limits=None, color_map=colormaps.colormap_turbo_rgb)
imvis.imshow(colorized)
```
Exemplary visualizations: colorizing via the `turbo` rainbow colormap (left); same data reduced to 11 bins colorized using `viridis` (right). Input data is obtained from two translated and scaled Gaussian distributions.

* **Optical flow:**
```python
from vito import flowutils
from vito import imvis
# Load optical flow file
flow = flowutils.floread('color_wheel.flo')
# Colorize it
colorized = flowutils.colorize_flow(flow)
imvis.imshow(colorized)
```
Exemplary visualization: Optical flow (standard color wheel visualization) and corresponding RGB frame for one frame of the [MPI Sintel Flow](http://sintel.is.tue.mpg.de) dataset.

* **Pixelation:**
```python
from vito import imutils
from vito import imvis
img = imutils.imread('homer.png')
rects = [(80, 50, 67, 84), (257, 50, 82, 75)] # (Left, Top, Width, Height)
anon = imutils.apply_on_bboxes(img, rects, imutils.pixelate)
imvis.imshow(anon)
```
Exemplary visualization: anonymization example using `imutils.apply_on_bboxes()` as shown above, with Gaussian blur kernel (`imutils.gaussian_blur()`, left) and pixelation (`imutils.pixelate()`, right), respectively.

* For more examples (or if you prefer having a simple GUI to change visualization/analyze your data), see also the [**iminspect**](https://pypi.org/project/iminspect) package (which uses `vito` under the hood).
## Dependencies
* `numpy`
* `Pillow`
## Changelog
* Upcoming `1.6.1`
* TODO: Type hints and doc style for cam_projections, colormaps, det2d, flowutils
* TODO: flowutils: filenames should be str|pathlib.Path
* `1.6.0`
* Remove deprecated functionality (workarounds for Python versions older than 3.6).
* Add type hints and update documentation.
* Add parameter order check to `imsave` (that's the one thing I alwys mess up
when coding without IDE).
* `imsave` now creates the output directory structure if it did not exist.
* `1.5.3`
* Mute initial notification about `imshow` backend.
* Catch exception and adjust `imshow` backend if used with headless OpenCV.
* `1.5.2`
* Changed `imshow` to skip waiting for user input if `wait_ms=0`.
* Added (RGB) colormap handles for convenience.
* Drop support for deprecated Python version 3.5.
* `1.5.1`
* Changed handling of `None` inputs for image concatenation/stacking.
* `1.5.0`
* Extends the `imutils` submodule (rotation, concatenation & noop).
* Fix deprecation warnings with newer NumPy versions.
* Extended test suite.
* `1.4.1`
* Removes f-strings to fix compatibility for older python 3.5.
* `1.4.0`
* Changed `imvis.overlay` to use a more intuitive signature.
* Aliases for some `cam_projections` functions.
* Spell-checked all files via `pyspelling`.
* `1.3.4`
* Extended input handling for `imutils` (support single channel input to rgb2gray).
* Aliases for some `imutils` functions.
* Cleaning up tests, documentation, etc.
* `1.3.3`
* Prevent nan values caused by floating point precision issues in the `cam_projections` submodule.
* Remove the (empty) `tracking` submodule (to be added in a future release).
* Update the submodule list.
* `1.3.2`
* Support custom label maps in `detection2d` module.
* Construct `BoundingBox`es from relative representations.
* `1.3.1`
* Relative `BoundingBox` representation.
* Support label lookup for `Detection` instances directly.
* `1.3.0`
* Common representations and utilities for 2D object detection via the `detection2d` module.
* `Detection` class to encapsulate object detections.
* `BoundingBox` class to work with axis-aligned bounding boxes.
* `1.2.3`
* Support sampling from colormaps.
* Adjust tests to updated PIL version.
* `1.2.2`
* Use explicit copies in `pseudocolor()` to prevent immutable assignment destination errors.
* `1.2.1`
* Explicitly handle invalid (NaN and infinite) inputs to `pseudocolor()`.
* `1.2.0`
* Add pixelation functionality for anonymization via `imutils`.
* Add Gaussian blur to `imutils`.
* `1.1.5`
* Extend projection utils.
* `1.1.4`
* Explicitly handle `None` inputs to `imutils`.
* `1.1.3`
* Fix transparent borders when padding.
* `1.1.2`
* Add sanity checks to `imutils` which prevent interpreting optional PIL/cv2 parameters as custom parameters.
* Add grayscale conversion to `imutils`.
* `1.1.1`
* Maximum alpha channel value derived from data type.
* `1.1.0`
* Added padding functionality.
* `1.0.4`
* Improved test coverage.
* Fixed potential future bugs - explicit handling of wrong/unexpected user inputs.
* `1.0.3`
* Minor bug fix: handle invalid user inputs in `imvis`.
* `1.0.2`
* Additional tests and minor improvements (potential bug fixes, especially for edge case inputs).
* Ensure default image I/O parametrization always returns/saves/loads color images as RGB (even if OpenCV is available/used on your system).
* `1.0.1`
* Fix colorizing boolean masks (where `mask[:] = True` or `mask[:] = False`).
* `1.0.0`
* Rename flow package to `flowutils`.
* `0.3.2`
* Rename colorization for optical flow.
* `0.3.1`
* Fix `colormaps.by_name()` for grayscale.
* `0.3.0`
* `apply_on_bboxes()` now supports optional kwargs to be passed on to the user-defined function handle.
* Changed `imread()`'s default `mode` parameter to optional kwargs which are passed on to Pillow.
* Raising error for non-existing files in `imread()`
* Added `colormaps.by_name()` functionality.
* Fixed bounding box clipping off-by-one issue.
* Added `imutils` tests ensuring proper data types.
* `0.2.0`
* Optical flow (Middlebury .flo format) I/O and visualization.
* Support saving images.
* Visualization utils for tracking results.
* `0.1.1`
* Changed supported python versions for legacy tests.
* `0.1.0`
* First actually useful release.
* Contains most of the functionality of `pvt` (a library I developed throughout my studies).
* `cam_projections` - projective geometry, lens distortion/rectification (Plumb Bob model), etc.
* `colormaps` - colormap definitions for visualization (jet, parula, magma, viridis, etc.)
* `imutils` - image loading, conversion, RoI handling (e.g. apply functions on several patches of an image).
* `imvis` - visualization helpers, e.g. pseudocoloring or overlaying images.
* `pyutils` - common python functions (timing code, string manipulation, list sorting/search, etc.)
* `0.0.1`
* Initial public release.
* Contains common python/language and camera projection utils.
%package help
Summary: Development documents and examples for vito
Provides: python3-vito-doc
%description help
# vito - Vision Tools
[](https://pypi.org/project/vito)
[](https://pypi.org/project/vito)
[](https://app.travis-ci.com/snototter/vito)
[](https://coveralls.io/github/snototter/vito?branch=master)
[](https://github.com/snototter/vito/blob/master/LICENSE?raw=true)
Python utilities for common computer vision tasks.
The goal of this package is to provide a lightweight python-only package for very basic image manipulation tasks, optical flow handling, pseudocoloring and camera geometry.
## Examples
* **Pseudocoloring:**
```python
from vito import imutils
from vito import imvis
# Load a single-channel image (data.dtype will be numpy.uint8)
peaks = imutils.imread('peaks.png', mode='L')
# Colorize it
colorized = imvis.pseudocolor(peaks, limits=None, color_map=colormaps.colormap_viridis_rgb)
imvis.imshow(colorized)
# Load 16-bit depth stored as PNG (data.dtype will be numpy.int32)
depth = imutils.imread('depth.png')
# Colorize it
colorized = imvis.pseudocolor(depth, limits=None, color_map=colormaps.colormap_turbo_rgb)
imvis.imshow(colorized)
```
Exemplary visualizations: colorizing via the `turbo` rainbow colormap (left); same data reduced to 11 bins colorized using `viridis` (right). Input data is obtained from two translated and scaled Gaussian distributions.

* **Optical flow:**
```python
from vito import flowutils
from vito import imvis
# Load optical flow file
flow = flowutils.floread('color_wheel.flo')
# Colorize it
colorized = flowutils.colorize_flow(flow)
imvis.imshow(colorized)
```
Exemplary visualization: Optical flow (standard color wheel visualization) and corresponding RGB frame for one frame of the [MPI Sintel Flow](http://sintel.is.tue.mpg.de) dataset.

* **Pixelation:**
```python
from vito import imutils
from vito import imvis
img = imutils.imread('homer.png')
rects = [(80, 50, 67, 84), (257, 50, 82, 75)] # (Left, Top, Width, Height)
anon = imutils.apply_on_bboxes(img, rects, imutils.pixelate)
imvis.imshow(anon)
```
Exemplary visualization: anonymization example using `imutils.apply_on_bboxes()` as shown above, with Gaussian blur kernel (`imutils.gaussian_blur()`, left) and pixelation (`imutils.pixelate()`, right), respectively.

* For more examples (or if you prefer having a simple GUI to change visualization/analyze your data), see also the [**iminspect**](https://pypi.org/project/iminspect) package (which uses `vito` under the hood).
## Dependencies
* `numpy`
* `Pillow`
## Changelog
* Upcoming `1.6.1`
* TODO: Type hints and doc style for cam_projections, colormaps, det2d, flowutils
* TODO: flowutils: filenames should be str|pathlib.Path
* `1.6.0`
* Remove deprecated functionality (workarounds for Python versions older than 3.6).
* Add type hints and update documentation.
* Add parameter order check to `imsave` (that's the one thing I alwys mess up
when coding without IDE).
* `imsave` now creates the output directory structure if it did not exist.
* `1.5.3`
* Mute initial notification about `imshow` backend.
* Catch exception and adjust `imshow` backend if used with headless OpenCV.
* `1.5.2`
* Changed `imshow` to skip waiting for user input if `wait_ms=0`.
* Added (RGB) colormap handles for convenience.
* Drop support for deprecated Python version 3.5.
* `1.5.1`
* Changed handling of `None` inputs for image concatenation/stacking.
* `1.5.0`
* Extends the `imutils` submodule (rotation, concatenation & noop).
* Fix deprecation warnings with newer NumPy versions.
* Extended test suite.
* `1.4.1`
* Removes f-strings to fix compatibility for older python 3.5.
* `1.4.0`
* Changed `imvis.overlay` to use a more intuitive signature.
* Aliases for some `cam_projections` functions.
* Spell-checked all files via `pyspelling`.
* `1.3.4`
* Extended input handling for `imutils` (support single channel input to rgb2gray).
* Aliases for some `imutils` functions.
* Cleaning up tests, documentation, etc.
* `1.3.3`
* Prevent nan values caused by floating point precision issues in the `cam_projections` submodule.
* Remove the (empty) `tracking` submodule (to be added in a future release).
* Update the submodule list.
* `1.3.2`
* Support custom label maps in `detection2d` module.
* Construct `BoundingBox`es from relative representations.
* `1.3.1`
* Relative `BoundingBox` representation.
* Support label lookup for `Detection` instances directly.
* `1.3.0`
* Common representations and utilities for 2D object detection via the `detection2d` module.
* `Detection` class to encapsulate object detections.
* `BoundingBox` class to work with axis-aligned bounding boxes.
* `1.2.3`
* Support sampling from colormaps.
* Adjust tests to updated PIL version.
* `1.2.2`
* Use explicit copies in `pseudocolor()` to prevent immutable assignment destination errors.
* `1.2.1`
* Explicitly handle invalid (NaN and infinite) inputs to `pseudocolor()`.
* `1.2.0`
* Add pixelation functionality for anonymization via `imutils`.
* Add Gaussian blur to `imutils`.
* `1.1.5`
* Extend projection utils.
* `1.1.4`
* Explicitly handle `None` inputs to `imutils`.
* `1.1.3`
* Fix transparent borders when padding.
* `1.1.2`
* Add sanity checks to `imutils` which prevent interpreting optional PIL/cv2 parameters as custom parameters.
* Add grayscale conversion to `imutils`.
* `1.1.1`
* Maximum alpha channel value derived from data type.
* `1.1.0`
* Added padding functionality.
* `1.0.4`
* Improved test coverage.
* Fixed potential future bugs - explicit handling of wrong/unexpected user inputs.
* `1.0.3`
* Minor bug fix: handle invalid user inputs in `imvis`.
* `1.0.2`
* Additional tests and minor improvements (potential bug fixes, especially for edge case inputs).
* Ensure default image I/O parametrization always returns/saves/loads color images as RGB (even if OpenCV is available/used on your system).
* `1.0.1`
* Fix colorizing boolean masks (where `mask[:] = True` or `mask[:] = False`).
* `1.0.0`
* Rename flow package to `flowutils`.
* `0.3.2`
* Rename colorization for optical flow.
* `0.3.1`
* Fix `colormaps.by_name()` for grayscale.
* `0.3.0`
* `apply_on_bboxes()` now supports optional kwargs to be passed on to the user-defined function handle.
* Changed `imread()`'s default `mode` parameter to optional kwargs which are passed on to Pillow.
* Raising error for non-existing files in `imread()`
* Added `colormaps.by_name()` functionality.
* Fixed bounding box clipping off-by-one issue.
* Added `imutils` tests ensuring proper data types.
* `0.2.0`
* Optical flow (Middlebury .flo format) I/O and visualization.
* Support saving images.
* Visualization utils for tracking results.
* `0.1.1`
* Changed supported python versions for legacy tests.
* `0.1.0`
* First actually useful release.
* Contains most of the functionality of `pvt` (a library I developed throughout my studies).
* `cam_projections` - projective geometry, lens distortion/rectification (Plumb Bob model), etc.
* `colormaps` - colormap definitions for visualization (jet, parula, magma, viridis, etc.)
* `imutils` - image loading, conversion, RoI handling (e.g. apply functions on several patches of an image).
* `imvis` - visualization helpers, e.g. pseudocoloring or overlaying images.
* `pyutils` - common python functions (timing code, string manipulation, list sorting/search, etc.)
* `0.0.1`
* Initial public release.
* Contains common python/language and camera projection utils.
%prep
%autosetup -n vito-1.6.0
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-vito -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.6.0-1
- Package Spec generated
|