Skip to content

Commit 38a48ab

Browse files
authored
Merge pull request #309 from srobo/dgt/kit-version-2022-1-0
Release kit software v2022.1.0
2 parents 5e0e7e3 + 7d6e840 commit 38a48ab

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

_data/kit_versions.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# The latest version should be the first in this file.
2+
- version: 2022.1.0
3+
released: 2022-02-04
14
- version: 2022.0.2
25
released: 2021-11-23
36
- version: 2022.0.1

programming/python/libraries.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Robot Kit
1111

1212
The following python libraries are installed and available for use in your robot's software:
1313

14-
* [astoria 0.7.0](https://pypi.org/project/astoria)
14+
* [astoria 0.8.0](https://pypi.org/project/astoria)
1515
* [cached-property 1.5.2](https://pypi.org/project/cached-property)
1616
* [click 8.0.1](https://pypi.org/project/click)
1717
* [cycler 0.10.0](https://pypi.org/project/cycler)
@@ -23,12 +23,13 @@ The following python libraries are installed and available for use in your robot
2323
* [gpg 1.16.0](https://pypi.org/project/gpg)
2424
* [iniparse 0.5](https://pypi.org/project/iniparse)
2525
* [j5 0.13.1](https://pypi.org/project/j5)
26-
* [j5-zoloto 0.1.0](https://pypi.org/project/j5-zoloto)
26+
* [j5-zoloto 0.2.0](https://pypi.org/project/j5-zoloto)
2727
* [kiwisolver 1.3.2](https://pypi.org/project/kiwisolver)
2828
* [matplotlib 3.4.1](https://pypi.org/project/matplotlib)
2929
* [numpy 1.21.2](https://pypi.org/project/numpy)
3030
* opencv 4.5.2
3131
* [pandas 1.3.3](https://pypi.org/project/pandas)
32+
* [pillow 8.3.2](https://pypi.org/project/Pillow/)
3233
* pkg-resources 57.4.0
3334
* [pydantic 1.8.2](https://pypi.org/project/pydantic)
3435
* [pygobject 3.40.1](https://pypi.org/project/PyGObject/)
@@ -47,6 +48,6 @@ The following python libraries are installed and available for use in your robot
4748
* [typing-extensions 3.10.0.0](https://pypi.org/project/typing-extensions)
4849
* [udiskie 2.3.3](https://pypi.org/project/udiskie)
4950
* udiskie-locale-en-us 2.3.3
50-
* [zoloto 0.7.1](https://pypi.org/project/zoloto)
51+
* [zoloto 0.8.0](https://pypi.org/project/zoloto)
5152

5253
If you wish to use a library that isn't listed above, get in contact with us on Discord and have a chat with us about it.

programming/sr/vision/index.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,24 @@ R = Robot()
7171
marker_ids = R.camera.save(R.usbkey / "initial-view.png")
7272
~~~~~
7373

74+
capture
75+
: Take a photo through the webcam, and return the image data as an OpenCV array.
76+
77+
<div class="info">
78+
This feature is only available on version 2022.1.0 or later of the kit.
79+
</div>
80+
81+
~~~~~ python
82+
import cv2
83+
from sr.robot3 import *
84+
R = Robot()
85+
86+
frame = R.camera.capture()
87+
88+
# Flip the image with OpenCV
89+
flipped = cv2.flip(frame, 0)
90+
~~~~~
91+
7492
[Field of View](#fov) {#fov}
7593
-------------------
7694

0 commit comments

Comments
 (0)