Describe the bug
While running pre-commit hooks and pytest for my application, I'm encountering an OpenCV error related to GUI functions.
To Reproduce
Steps to reproduce the behavior:
- Make any changes in code.
- Run commands
git add and pre-commit run -a (make sure pre-commit is installed).
- Commit changes by running
git commit -m "commit message"
Screenshots

Desktop (please complete the following information):
- OS: Ubuntu 24.04.1 LTS
- Python version - 3.12.3
- OpenCV version - 4.10.0
Describe the bug
While running pre-commit hooks and pytest for my application, I'm encountering an OpenCV error related to GUI functions.
To Reproduce
Steps to reproduce the behavior:
git addandpre-commit run -a(make sure pre-commit is installed).git commit -m "commit message"Screenshots

Desktop (please complete the following information):