Skip to content

Python typing stub missing matrix type constants like CV_32F #23910

@TheSingular

Description

@TheSingular

System Information

OpenCV python version:4.8.0.74
OS: Windows 11 22H2
Python version: 3.11.4

Detailed description

Where and how should we report issues with the typing? It seems all CV_... constants are missing.

Originally posted by @damonmaria in #20370 (comment)

The commit in question is missing the CV_... constants as stated by the comment I quoted, causing cannot find reference errors in PyCharm and failing to autocorrect.

Steps to reproduce

Open any python file in PyCharm or create a new one.

Type the following to the top of the file:

import cv2
test = cv2.CV_32F

Observe the yellow squiggly line below the CV_32F part. Hover the mouse cursor over that part to observe the warning:
Cannot find reference 'CV_32F' in '__init__.pyi'

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy