Skip to content

Commit

Permalink
Samples: Automatic updates to public repository
Browse files Browse the repository at this point in the history
Remember to do the following:
    1. Ensure that modified/deleted/new files are correct
    2. Make this commit message relevant for the changes
    3. Force push
    4. Delete branch after PR is merged

If this commit is an update from one SDK version to another,
make sure to create a release tag for previous version.
  • Loading branch information
csu-bot-zivid committed Jan 15, 2024
1 parent 30943ff commit ca4dbe0
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 23 deletions.
17 changes: 17 additions & 0 deletions pyproject.constraints
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated file, do not edit @ 2023-11-20 07:12:00
#
# Command:
# python infrastructure/tools/launchers/dependency_updater.py --max-processes=30
#
# To update all Python requirements and constraints manually, you should run:
#
# python infrastructure/tools/launchers/dependency_updater.py
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --all-extras --extra-index-url=http://se-ci-elastic-server-1.localdomain:8081/artifactory/api/pypi/zivid-pypi/simple --output-file=sdk/samples/public/python/pyproject.constraints --strip-extras --trusted-host=se-ci-elastic-server-1.localdomain sdk/samples/public/python/pyproject.toml
#
--extra-index-url http://se-ci-elastic-server-1.localdomain:8081/artifactory/api/pypi/zivid-pypi/simple
--trusted-host se-ci-elastic-server-1.localdomain

3 changes: 2 additions & 1 deletion source/applications/point_cloud_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ compute device memory) and the capture and camera information. Capture
When you capture with Zivid, you get a frame in return.

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L27))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L21))

``` sourceCode python
with camera.capture(settings) as frame:
Expand Down Expand Up @@ -243,4 +243,5 @@ manipulate it, transform it, and visualize it.

| SDK | Changes |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 2.11.0 | Added support for SRGB color space. |
| 2.10.0 | [Monochrome Capture](https://support.zivid.com/latest/academy/camera/monochrome-capture.html) introduces a faster alternative to `downsample_point_cloud_tutorial`. |
8 changes: 1 addition & 7 deletions source/camera/basic/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""

import datetime

import zivid

Expand All @@ -14,14 +13,9 @@ def _main() -> None:
print("Connecting to camera")
camera = app.connect_camera()

print("Configuring settings")
print("Creating default capture settings")
settings = zivid.Settings()
settings.experimental.engine = "phase"
settings.acquisitions.append(zivid.Settings.Acquisition())
settings.acquisitions[0].aperture = 5.66
settings.acquisitions[0].exposure_time = datetime.timedelta(microseconds=6500)
settings.processing.filters.outlier.removal.enabled = True
settings.processing.filters.outlier.removal.threshold = 5.0

print("Capturing frame")
with camera.capture(settings) as frame:
Expand Down
17 changes: 6 additions & 11 deletions source/camera/basic/capture_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Camera. This is essentially the Zivid driver.
-----

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L12))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L11))

``` sourceCode python
app = zivid.Application()
Expand All @@ -70,7 +70,7 @@ app = zivid.Application()
Now we can connect to the camera.

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L15))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L14))

``` sourceCode python
camera = app.connect_camera()
Expand Down Expand Up @@ -214,16 +214,11 @@ settings](https://support.zivid.com/latest//reference-articles/standard-acquisit
We can create settings for a single acquisition capture.

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L18-L24))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L17-L18))

``` sourceCode python
settings = zivid.Settings()
settings.experimental.engine = "phase"
settings.acquisitions.append(zivid.Settings.Acquisition())
settings.acquisitions[0].aperture = 5.66
settings.acquisitions[0].exposure_time = datetime.timedelta(microseconds=6500)
settings.processing.filters.outlier.removal.enabled = True
settings.processing.filters.outlier.removal.threshold = 5.0
```

#### Multi Acquisition HDR
Expand Down Expand Up @@ -362,7 +357,7 @@ multiple acquisitions (HDR) is given by the number of `acquisitions` in
`settings`.

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L27))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L21))

``` sourceCode python
with camera.capture(settings) as frame:
Expand Down Expand Up @@ -412,7 +407,7 @@ Save ----
We can now save our results.

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L28-L30))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L22-L24))

``` sourceCode python
data_file = "Frame.zdf"
Expand All @@ -433,7 +428,7 @@ for a list of supported formats. For example, we can export the point
cloud to .ply format.

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L32-L34))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L26-L28))

``` sourceCode python
data_file_ply = "PointCloud.ply"
Expand Down
8 changes: 4 additions & 4 deletions source/camera/basic/quick_capture_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Calling any of the APIs in the Zivid SDK requires initializing the Zivid
application and keeping it alive while the program runs.

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L12))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L11))

``` sourceCode python
app = zivid.Application()
Expand All @@ -50,7 +50,7 @@ app = zivid.Application()
## Connect

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L15))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L14))

``` sourceCode python
camera = app.connect_camera()
Expand All @@ -73,7 +73,7 @@ settings = zivid.capture_assistant.suggest_settings(camera, suggest_settings_par
## Capture

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L27))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L21))

``` sourceCode python
with camera.capture(settings) as frame:
Expand All @@ -82,7 +82,7 @@ with camera.capture(settings) as frame:
## Save

([go to
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L28-L30))
source](https://github.com/zivid/zivid-python-samples/tree/master//source/camera/basic/capture.py#L22-L24))

``` sourceCode python
data_file = "Frame.zdf"
Expand Down

0 comments on commit ca4dbe0

Please sign in to comment.