Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: OpenCV(4.6.0) : error: (-5:Bad argument) in function 'circle' #60

Open
meua opened this issue Jun 27, 2023 · 1 comment
Open

Comments

@meua
Copy link
Contributor

meua commented Jun 27, 2023

Describe the bug
Extra parameters in the request method.

To Reproduce
Steps to reproduce the behavior:

  1. Dora start daemon: dora up
  2. Start a new dataflow: dora start graphs/oasis/oasis_agent_planning.yaml --attach

Screenshots or Video
image

Environments (please complete the following information):

  • System info: ubuntu 20.04 LTS
  • Dora version: v0.2.3
@meua
Copy link
Contributor Author

meua commented Jun 27, 2023

            for waypoint in gps_waypoints:
                if np.isnan(waypoint).any():
                    break
                cv2.circle(
                    resized_image,
                    (int(waypoint[0]), int(waypoint[1])),
                    3,
                    (
                        int(np.clip(255 - waypoint[2] * 100, 0, 255)),
                        int(np.clip(waypoint[2], 0, 255)),
                        122,
                    ),
                    # -1,
                )

It is normal to delete the parameter -1

@meua meua changed the title error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'circle' error: OpenCV(4.6.0) : error: (-5:Bad argument) in function 'circle' Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant