Defining the Future of 3D Machine Vision
Project description
Copyright (c) 2019, Zivid AS All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Description: # Zivid Python
Zivid Python is the official Python package for Zivid 3D cameras. Read more about Zivid at [zivid.com](https://www.zivid.com/).
<figure><p align=”center”><img src=”https://www.zivid.com/hs-fs/hubfs/images/www/ZividOnePlus.jpg?width=500&name=ZividOnePlus.jpg”></p></figure>
—
Contents: [Installation](#installation) | [Quick Start](#quick-start) | [Examples](#examples) | [Versioning](#versioning) | [License](#license) | [Support](#support) | [Test Matrix](#test-matrix)
—
## Installation
### Dependencies
[Python](https://www.python.org/) version 3.5 or higher
[Zivid SDK](https://zivid.atlassian.net/wiki/spaces/ZividKB/pages/59080712/Zivid+Software+Installation) version 1.3.0 or higher
[Compiler](doc/CompilerInstallation.md) with C++17 support
Windows users also needs to make sure that the Zivid SDK installation folder is in system `PATH` before using the package, not only the terminal PATH variable. The default install location that should be added to system `PATH` is `C:Program FilesZividbin`.
### Using PIP
The easiest way to install the package is to use PIP.
When using PIP version 19 or higher build dependencies will be handled automatically.
#### Old PIP
If you are using a version of PIP older than version 19 please manually install the dependencies listed in [pyproject.toml](pyproject.toml) before installing the zivid package.
pip install scikit-build cmake ninja
Installation of the zivid package may take some time since the setup.py script will download additional dependencies and compile C++ source code in the background.
pip install zivid
## Quick Start
Launch a Python interpreter and run the following code.
import zivid app = zivid.Application() camera = app.connect_camera() frame = camera.capture() frame.save(“my-frame.zdf”)
For more advanced usage see the [Examples](#examples) section.
### Using camera emulation
If you do not have a camera, you can use the MiscObjects.zdf file in [ZividSampleData.zip](http://www.zivid.com/software/ZividSampleData.zip) to emulate a camera.
import zivid app = zivid.Application() camera = app.create_file_camera(“path/to/MiscObjects.zdf”) frame = camera.capture() frame.save(“my-frame.zdf”)
## Examples
Standalone example programs can be found in the [samples](samples) directory.
## Versioning
This python module is using [PEP 440](https://www.python.org/dev/peps/pep-0440) for versioning. The features available in the module depends on the Zivid SDK version used when building the module. When updating this Python package it is reccomended to also update to the latest [Zivid SDK](http://www.zivid.com/software). Refer to the [Test Matrix](#test-matrix) for supported version.
## License
This project is licensed, see the [LICENSE](LICENSE) file for details.
## Support
Please visit [Zivid Knowledge Base](http://help.zivid.com) for general information on using Zivid 3D cameras. If you cannot find a solution to your issue, please contact support@zivid.com.
## Test matrix
Operating System | Python version | Zivid SDK version |:————— | :————- | :—————- |Ubuntu 18.04 | 3.6 | 1.3.0 |Ubuntu 16.04 | 3.5 | 1.3.0 |Fedora 30 | 3.7 | 1.3.0 |Arch Linux* | latest | latest |Windows 10* | 3.5, 3.6, 3.7 | 1.3.0 |[*] Only build, no unit testing.
Platform: UNKNOWN Description-Content-Type: text/markdown
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for zivid-0.9.1.1.3.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61a7e022a4733187402a5c5d6ff4a7701d7ac655dce0fa711de47fe08bf636db |
|
MD5 | f73ff6fb5e4ec2a3806ac1020e9991e0 |
|
BLAKE2b-256 | 32c9a20d2e3f1bcf66e2f1e96fe38e2c483a03f08bba8d6a8d88275b675168b6 |
Hashes for zivid-0.9.1.1.3.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84104466b521f5fa4bf3d2f68bdc79ce4de9eec9fe908073acfb61fbbf66716c |
|
MD5 | 903165cd7f2d60ee6ede3d49765a0dd8 |
|
BLAKE2b-256 | de547f0b7b9d210a380b6fa27da1cea3f66a5a2b8997ec0f2e0bb6168acb2106 |