Closed DekiChan closed 4 years ago
We have not created a release for zivid-python that that builds against SDK version 1.7.0 for the latest master as of now, it will be out shortly.
In the meantime, you should be able to build the repository locally, by running pip install .
This assumes that you have the proper dependencies installed, as mentioned in the top-level readme.
Alternatively, if you would rather use SDK 1.6 for now, you can find the installers here: http://www.zivid.com/downloads/revisions
Thank you for fast response, I was able to install python package (both for SDK version 1.5 and 1.6).
But now I have a new problem. Camera is detected, but I cannot connect to it.
The following code (SDK version 1.6, happens with 1.5 too):
import zivid
print("started")
app = zivid.Application()
print("app created")
cams = app.cameras()
settings = None
print("cameras detected:")
for cam in cams:
print(cam)
settings = cam.settings
print("settings:")
print(settings)
camera = app.connect_camera()
will end with cryptic Trace/breakpoint trap
message. This is full output:
started
app created
cameras detected:
{ Camera info: { Model Name: Zivid One Plus M, Serial Number: <SERIAL_NUMBER>, Hardware Revision: { Major: 3, Minor: 2 }, Firmware Version: 1.6.6, USB Path: na, Internal camera id: <CAMERA_ID> } }
settings:
Settings:
bidirectional: False
blue_balance: 1.081
brightness: 1.0
exposure_time: 0:00:00.008333
filters: Filters:
contrast: Contrast:
enabled: True
threshold: 5.0
outlier: Outlier:
enabled: True
threshold: 5.0
saturated: Saturated:
enabled: True
reflection: Reflection:
enabled: False
gaussian: Gaussian:
enabled: False
sigma: 1.5
gain: 2.0
iris: 22
red_balance: 1.709
Trace/breakpoint trap
If this might not be the best place to continue I can send you an email?
I just tried your sample on the just released 0.9.1.1.7.0 version (supporting 1.7.0) and I ran your script without any issues.
Could you try to do the following: uninstall the Zivid SDK install the latest Zivid SDK (version 1.7.0 as of right now) and then run the following commands:
pip uninstall --yes zivid
pip install zivid
If this does not solve your problem, you can mail us through customersuccess@zivid.com
or you can create a new issue.
Does the following minimal example run for you?: @DekiChan
import zivid
app = zivid.Application()
cam = app.connect_camera()
print(cam.settings)
Nope, with SDK 1.6 is still the same, Trace/breakpoint trap
. However, C++ samples do work on the same machine, with the same camera.
With SDK 1.7 I get (both for Python and C++ samples):
RuntimeError: Camera and API firmware mismatch:{ API supported firmware: 1.6.7, Camera Info: { Model Name: Zivid One Plus M, Serial Number: <SERIAL>, Hardware Revision: { Major: 3, Minor: 2 }, Firmware Version: 1.6.6, USB Path: na, Internal camera id: <INTERNAL_ID> } }
Not sure why you get that issue with SDK 1.6
Regarding the SDK 1.7 problem: This happens because the camera is loaded with SDK 1.6's firmware. You can upgrade the firmware through the Python API, but the simplest way would be to just run the Zivid Studio from SDK 1.7 and click the firmware-upgrade button.
Ok, thank you for your help. I managed to test what I needed right now with C++ ROS packages. I'll update the firmware tomorrow and try to set-up the system on a fresh install of Ubuntu.
Closing this as the original issue is resolved by the release of 1.7.0 pip package.
We also want to help you with the other issues you face with the python interface. Feel free to continue the discussion here or contact us at customersuccess@zivid.com. If you send us an email, refer to this issue and ask for @trym-b or @eskaur. @SatjaSivcev FYI.
Hey,
I've updated the firmware on the camera and it works fine with Zivid Studio and with C++ examples. The problem with Python package remains, so I assume that it is a problem with Python installation , but right now I don't have time to completely reinstall the OS.
I'll keep you posted on my findings, sometime by the end of the week probably.
So what is the remaining issue now? Trace/breakpoint trap
-thing?
If so, could you please make another issue here? This issue is closed because it was named as Cannot install python package
, which seems to be solved. Sorry for the inconvenience :)
Yep, the remaining issue is Trace/breakpoint trap
thing. Will open another issue.
I am on Debian with Python 3.8, and can install 2.1.0 core and telicam driver fine, and pip install zivid
succeeds. But any attempt at getting the camera, or the file for simulating a frame from the camera, results in Trace/breakpoint trap
. E.g.
>>> camera = app.create_file_camera("ZividSampleData2/FileCameraZividOne.zfc")
Trace/breakpoint trap
Is there any easy fix for this? I did not find a new, relevant issue opened by @DekiChan ...
I am on Debian with Python 3.8, and can install 2.1.0 core and telicam driver fine, and
pip install zivid
succeeds. But any attempt at getting the camera, or the file for simulating a frame from the camera, results inTrace/breakpoint trap
. E.g.>>> camera = app.create_file_camera("ZividSampleData2/FileCameraZividOne.zfc") Trace/breakpoint trap
Is there any easy fix for this? I did not find a new, relevant issue opened by @DekiChan ...
Hi @mortlind . Thank you for bringing this to our attention. Could you create a new Issue for this? That would make it easier for us to track it, since this issue is Closed and therefore a bit invisible.
Hello,
I have followed installation instructions for Python, on Ubuntu 16.04. I have installed SDK version 1.7, but when I try to install the python package with
pip3 install --user zivid
I get the following error:Complete output is:
Which makes me think that Python package requires SDK version 1.6? If so, where could I get the older versions? I was unable to find them on Github or the website.
Running the command with version specified errored out: