Skip to content

hasattr("cv2", "name") first param is 'character string', resulting in an error in the judgment condition #25078

@lxk696

Description

@lxk696

System Information

OpenCV python version: 4.9.0,and 5.x branch, The latest version
Operating System / Platform: win10
Python version: 3.11.5

Detailed description

on opencv\modules\python\package\cv2_init_.py
use hasattr("cv2", "name") ,but first param is 'character string',
resulting in an error in the judgment condition

cv2e1
cv2e2

Steps to reproduce

no more information

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions