{"id":28089427,"url":"https://github.com/opencv-pg/opencv-pg","last_synced_at":"2025-06-25T07:05:54.443Z","repository":{"id":39643065,"uuid":"311551776","full_name":"opencv-pg/opencv-pg","owner":"opencv-pg","description":"Interactive Qt5 Application to explore opencv functions in realtime with an interactive image processing pipeline","archived":false,"fork":false,"pushed_at":"2023-08-19T06:46:59.000Z","size":4382,"stargazers_count":19,"open_issues_count":8,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-13T21:50:03.135Z","etag":null,"topics":["opencv","opencv-python","opencv-python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencv-pg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-10T05:07:46.000Z","updated_at":"2025-03-28T03:45:06.000Z","dependencies_parsed_at":"2024-11-15T01:43:04.203Z","dependency_job_id":"bec39f88-ff03-45db-a9b8-60836d182a46","html_url":"https://github.com/opencv-pg/opencv-pg","commit_stats":{"total_commits":72,"total_committers":5,"mean_commits":14.4,"dds":0.09722222222222221,"last_synced_commit":"d8e56f2dd8aabe3f80b37614fde20898db645ac6"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/opencv-pg/opencv-pg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencv-pg%2Fopencv-pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencv-pg%2Fopencv-pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencv-pg%2Fopencv-pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencv-pg%2Fopencv-pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencv-pg","download_url":"https://codeload.github.com/opencv-pg/opencv-pg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencv-pg%2Fopencv-pg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261823757,"owners_count":23215142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["opencv","opencv-python","opencv-python3"],"created_at":"2025-05-13T12:57:52.588Z","updated_at":"2025-06-25T07:05:54.388Z","avatar_url":"https://github.com/opencv-pg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenCV Playground\nThe OpenCV Playground is a Qt6 application that brings together improved documentation alongside OpenCV functions with the ability to explore the effects of function parameters on an image in real time.\n\nIt also comes with a custom `Pipeline Launcher` that allows you to build and interact with your own sequence of image transformations along with custom build functions.\n\nFull documentation can be found on [Read the Docs](https://opencv-pg.readthedocs.io/en/latest/).\n\n## Demo\n\u003ca href=\"https://drive.google.com/uc?export=view\u0026id=1i4jmCHebu1_ognIwj2n4vtpCaT8BHWGI\"\u003e\u003cimg src=\"https://media.giphy.com/media/GQj3aod8oKoxpJ4sC3/giphy.gif\" style=\"width: 500px; height: auto;\" /\u003e\u003c/a\u003e\n\n\n## Installation\nCurrently tested with python 3.8.10/3.10.0 and opencv-contrib-python-headless 4.8.0.76 on an M1 Mac.\n\nFrom PyPi:\n\n```shell\npip install opencv-pg\n```\n\nFrom Github Repo:\n\n```shell\npip install git+https://github.com/opencv-pg/opencv-pg\n```\n\n### Note for Linux Users\n**NOTE:** I no longer have access to anything but a Mac (as of `1.0.2`), so I can't confirm if the below still stands. It did in `1.0.1`.\n\nOn Ubuntu 16.04 (others currently untested), there may be missing links to xcb related shared objects.\n\ntldr;\n\n```shell\nsudo apt-get install --reinstall libxcb-xinerama0\n```\n------\n\n**Digging Deeper**\n\nIf you see errors about xcb, you can perform the following to help troubleshoot. In your terminal, make the following export:\n\n```shell\nexport QT_DEBUG_PLUGINS=1\n```\n\nRun opencvpg again and validate the output. The final lines will likely mention details about files not found. Likely `libxcb-xinerama.so.0`.\n\nRun the following:\n\n```shell\ncd your_venv/lib/pythonX.X/site-packages/PySide2/Qt/plugins/platforms/\nldd libqxcb.so | grep \"not found\"\n```\n\nThis will print any missing links. In our case, `libxcb-xinerama.so.0` showed up a couple times. Reinstalling the package as follows resolved the issue:\n\n```shell\nsudo apt-get install --reinstall libxcb-xinerama0\n```\n\nOnce it’s working, you may want to disable that `QT_DEBUG_PLUGINS` env variable so it doesn’t throw extra garbage in your output.\n\n## Usage\n### Playground\nTo launch the OpenCV Playground with:\n* The built-in image:\n\n```shell\nopencvpg\n```\n\n* An image of your choice:\n\n```shell\nopencvpg --image \u003cpath-to-image.png\u003e\n```\n\n* Without the documentation window:\n\n```shell\nopencvpg --no-docs\n```\n\n### Custom Pipeline\nThe following is an example of building a custom Pipeline.\n\n```python\nfrom opencv_pg import Pipeline, Window, launch_pipeline\nfrom opencv_pg import support_transforms as supt\nfrom opencv_pg import transforms as tf\n\nif __name__ == '__main__':\n    my_image = '/path/to/image.png'\n\n    # Creates two windows\n    pipeline = Pipeline([\n        Window([\n            supt.LoadImage(my_image),\n            supt.CvtColor(),\n            tf.InRange(),\n            supt.BitwiseAnd(),\n        ]),\n        Window([\n            tf.Canny(),\n        ]),\n    ])\n\n    launch_pipeline(pipeline)\n```\n\nThen run the file.\n\n## Development\n### Installation\nTo install in development mode:\n\n```shell\ngit clone https://github.com/opencv-pg/opencv-pg\npip install -e opencv-pg/[dev]\n```\n\n### Running Tests\n```shell\ncd tests\npytest\n```\n\n### Generating Docs\n* Go into the top level `docs` directory\n* run `sphinx-apidoc -f -o source/ ../src/opencv_pg`\n* run `make html`\n\nOutput will be in the `docs/build/html/` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencv-pg%2Fopencv-pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencv-pg%2Fopencv-pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencv-pg%2Fopencv-pg/lists"}