zed-opencv-native icon indicating copy to clipboard operation
zed-opencv-native copied to clipboard

The program cannot automatically download the camera calibration file

Open PetSven opened this issue 3 years ago • 0 comments

Preliminary Checks

  • [X] This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • [X] This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

When I try to run zed_opencv_native.py, I get the following error message:

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\{name removed}\AppData\Roaming\Stereolabs\settings\SN{serial number}.conf_sw9hj4f.tmp'

Steps to Reproduce

  1. Run "python zed_opencv_native.py {My Serial Number}" ...

Expected Result

That the code would automatically download the calibration file for my device.

Actual Result

I get the following error: C:\Users{name removed}\OneDrive\Optical Flow\zed-opencv-native-master\zed-opencv-native-master\python>python zed_opencv_native.py 35962572 Traceback (most recent call last): File "C:\Users{name removed}\OneDrive\Optical Flow\zed-opencv-native-master\zed-opencv-native-master\python\zed_opencv_native.py", line 189, in main() File "C:\Users{name removed}\OneDrive\Optical Flow\zed-opencv-native-master\zed-opencv-native-master\python\zed_opencv_native.py", line 163, in main calibration_file = download_calibration_file(serial_number) File "C:\Users{name removed}\OneDrive\Optical Flow\zed-opencv-native-master\zed-opencv-native-master\python\zed_opencv_native.py", line 44, in download_calibration_file filename = wget.download(url=url+str(serial_number), out=calibration_file) File "C:\Python310\lib\site-packages\wget.py", line 506, in download (fd, tmpfile) = tempfile.mkstemp(".tmp", prefix=prefix, dir=".") File "C:\Python310\lib\tempfile.py", line 341, in mkstemp return _mkstemp_inner(dir, prefix, suffix, flags, output_type) File "C:\Python310\lib\tempfile.py", line 256, in _mkstemp_inner fd = _os.open(file, flags, 0o600)

ZED Camera model

ZED2i

Environment

Python 3.10

Anything else?

I was able to bypass this bug by:

  1. Manually downloading the config file from: http://calib.stereolabs.com/?SN=
  2. Creating the folder: C:\Users{name removed}\AppData\Roaming\Stereolabs\settings
  3. Putting the config file in that folder

PetSven avatar Oct 13 '22 16:10 PetSven