Skip to content

preview usage is hard to understand. #314

@NicolasMICAUX

Description

@NicolasMICAUX

Hi,
I looked at the args in this file
I then used this command: zoloto preview --type ARUCO_ORIGINAL --id 0

It throws this kind of errors:

Traceback (most recent call last):
  File "xxxxx/.venv/lib/python3.10/site-packages/zoloto/cameras/base.py", line 28, in __init__
    self.detector_params = self.get_detector_params()
  File "xxxxx/.venv/lib/python3.10/site-packages/zoloto/cameras/base.py", line 35, in get_detector_params
    return cv2.aruco.DetectorParameters_create()
AttributeError: module 'cv2.aruco' has no attribute 'DetectorParameters_create'. Did you mean: 'DetectorParameters'?
Exception ignored in: <function BaseCamera.__del__ at 0x7f20d53f3e20>
Traceback (most recent call last):
  File "xxxxx/.venv/lib/python3.10/site-packages/zoloto/cameras/base.py", line 153, in __del__
    self.close()
  File "xxxxx/.venv/lib/python3.10/site-packages/zoloto/cameras/camera.py", line 81, in close
    self.video_capture.release()
AttributeError: 'Camera' object has no attribute 'video_capture'

It's hard to understand what I'm doing wrong from the docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions