RealOrangeOne / zoloto

A fiducial marker system powered by OpenCV - Supports ArUco and April
https://zoloto.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
13 stars 7 forks source link

preview usage is hard to understand. #314

Open NicolasMICAUX opened 8 months ago

NicolasMICAUX commented 8 months ago

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

RealOrangeOne commented 8 months ago

This looks like a bug, possibly related to the OpenCV version you have installed. What version are you using, and how is it installed?