{ "info": { "author": "Pegara, Inc.", "author_email": "info@pegara.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "https://github.com/aieater/python_glview\n\n# pyglview (Python OpenGL viewer library)\n\n## Description\nOpenCV3 renderer is too slow due to cv2.waitKey(1).\nIf you want to more performance, you should use OpenCV4+ or 'pyglview' package.\n\nThis package is supported fastest OpenGL direct viewer and OpenCV renderer both.\nIf your environment was not supported OpenGL, it will be switched to CPU renderer(OpenCV) automatically and also available remote desktop(Xserver) like VNC.\n\n\n\npyglview is useful library instead of OpenCV imshow/waitKey API.\n\n\n\n\n\n## Getting Started\n\n##### AMD Radeon GPU driver on Ubuntu\n\n```\ncurl -sL http://install.aieater.com/setup_rocm | bash -\n```\n\n##### NVIDIA GPU driver on Ubuntu\n\n```\ncurl -sL http://install.aieater.com/setup_nvidia_with_cuda10 | sudo bash -\n```\n\n##### Desktop package (optional)\n\nIf you installed OS as Ubuntu Server, you need to install desktop environment.\n```\nsudo apt update\nsudo apt install -y ubuntu-desktop\n```\n\nFor remote desktop.\n```\nsudo apt install -y gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal vnc4server\n```\nAlso see xstartup template script => http://install.aieater.com/xstartup\n\n\n\n\n### Install OpenGL packages\n\nInstall OpenGL native packages, (Ubuntu16/18)\n```\n# Full OpenGL packages.\nsudo apt install -y build-essential\nsudo apt install -y libgtkglext1 libgtkglext1-dev\nsudo apt install -y libgl1-mesa-dev libglu1-mesa-dev mesa-utils\nsudo apt install -y freeglut3-dev libglew1.10 libglew-dev libgl1-mesa-glx libxmu-dev\nsudo apt install -y libglew-dev libsdl2-dev libsdl2-image-dev libglm-dev libfreetype6-dev\n```\n\n\nInstall python packages (Linux/MacOSX/Windows)\n```\npip3 install PyOpenGL PyOpenGL_accelerate\n```\n\n\n\n\n##### Python package dependencies\n| Version | Library | installation |\n| ---- | ---- | ---- |\n| v3.x/v4.x | OpenCV | pip3 install opencv-python |\n| v1.1x.x | numpy | pip3 install numpy |\n| v3.1.x | PyOpenGL | pip3 install PyOpenGL |\n| v3.7.x | configparser | pip3 install configparser |\n\n\n#### Finally, install pyglview.\n\n```\npip3 install pyglview\n```\n\n-----\n\n### Examples\n\n```\nimport cv2\nimport pyglview\nviewer = pyglview.Viewer()\ncap = cv2.VideoCapture(os.path.join(os.path.expanduser('~'),\"test.mp4\"))\ndef loop():\n check,frame = cap.read()\n frame = cv2.cvtColor(frame,cv2.COLOR_BGR2RGB)\n if check:\n viewer.set_image(frame)\nviewer.set_loop(loop)\nviewer.start()\n```\n\nIf you got something warning message, it is not using GPU.\n\n### Message type\n\n```\nUse GPU directly\n```\nThis message is successful to use GPU.\n\n\n```\n@WARNING: No display.\n```\nNo display message meaning is there is no available display.\nThis message will be appeared, when you have executed program in ssh console.\n\n\n```\n@WARNING: GPU or physical display is not available. Use CPU renderer.\n```\nThis message will be appeared, when there was no GPU or GPU driver, or remote logged in like VNC.\nYou have to make sure GPU driver and PyOpenGL packages and use physical display.\n\n\n\n\n#### Also see 'acapture' package\n\nIf you want to more performance and non-blocking API for camera and video, acapture package is very useful.\n\n#### acapture + pyglview + webcamera example.\n```\nimport cv2\nimport acapture\nimport pyglview\nviewer = pyglview.Viewer()\ncap = acapture.open(0) # Camera 0, /dev/video0\ndef loop():\n check,frame = cap.read() # non-blocking\n frame = cv2.cvtColor(frame,cv2.COLOR_BGR2RGB)\n if check:\n viewer.set_image(frame)\nviewer.set_loop(loop)\nviewer.start()\n```\nLogicool C922 1280x720(HD) is supported 60FPS.\nThis camera device and OpenGL direct renderer is best practice.\nLogicool BRIO 90FPS camera is also good!, but little bit expensive.\n\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aieater/python_pyglview", "keywords": "opencv opengl python imshow waitkey viewer realtime", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyglview", "package_url": "https://pypi.org/project/pyglview/", "platform": "", "project_url": "https://pypi.org/project/pyglview/", "project_urls": { "Homepage": "https://github.com/aieater/python_pyglview" }, "release_url": "https://pypi.org/project/pyglview/1.1.10/", "requires_dist": null, "requires_python": "", "summary": "Python OpenGL direct viewer instead of OpenCV imshow/waitKey.", "version": "1.1.10" }, "last_serial": 5543376, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "5ad4ea3677736cefab05d1229d4957ee", "sha256": "b87fb726eba64567a17766446f1aa3041e5d3806e2b5439cec8258d6466c87d0" }, "downloads": -1, "filename": "pyglview-1.0.tar.gz", "has_sig": false, "md5_digest": "5ad4ea3677736cefab05d1229d4957ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5517, "upload_time": "2019-04-25T05:36:34", "url": "https://files.pythonhosted.org/packages/c0/55/d5b480f9ef0254e08d9c4e653eeec1b6ad6b88a506976cd2b96458d98be9/pyglview-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "ef8c42ee9b728dd33218b8004f2707b3", "sha256": "f2c77962c98728776740981a8245938b785bc6ce8a79b825fd044f1d48aac537" }, "downloads": -1, "filename": "pyglview-1.1.tar.gz", "has_sig": false, "md5_digest": "ef8c42ee9b728dd33218b8004f2707b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6065, "upload_time": "2019-04-29T21:09:59", "url": "https://files.pythonhosted.org/packages/a9/07/0282b8e77f55cf4a0d79c1dd74b4b9a3a169a9c017ecf137e7dcdf3a98cf/pyglview-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "ede8fcb8140f2ae09c57a05f42d7e523", "sha256": "e3f130eee5b148ccf3605cc7fedb8f825e6a8827835f99449d1fa25e421eb5f2" }, "downloads": -1, "filename": "pyglview-1.1.1.tar.gz", "has_sig": false, "md5_digest": "ede8fcb8140f2ae09c57a05f42d7e523", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6486, "upload_time": "2019-04-29T21:15:09", "url": "https://files.pythonhosted.org/packages/35/29/dc0a335a85d54d5000db58f8d4a69e5665281ed976f395f8597cd68e0ee5/pyglview-1.1.1.tar.gz" } ], "1.1.10": [ { "comment_text": "", "digests": { "md5": "124bd6f486af9728eadf9f7f654b004c", "sha256": "9440bfc2279537c1db5d5c56bcbd29b248d29a9c06f682f23df4c1ac9a9f9715" }, "downloads": -1, "filename": "pyglview-1.1.10.tar.gz", "has_sig": false, "md5_digest": "124bd6f486af9728eadf9f7f654b004c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6831, "upload_time": "2019-07-17T00:35:25", "url": "https://files.pythonhosted.org/packages/aa/1b/fa06839ce8da805832e200e9ce5001036754f789669ade627a2a5dc6f8a8/pyglview-1.1.10.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "d4da38d64e6b2aee5da411df2966fad9", "sha256": "ac7d7da7377a1eaa4d5c662a12fe547941601590e3c72ba9d7f45661ba7ec391" }, "downloads": -1, "filename": "pyglview-1.1.2.tar.gz", "has_sig": false, "md5_digest": "d4da38d64e6b2aee5da411df2966fad9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6553, "upload_time": "2019-04-29T21:18:07", "url": "https://files.pythonhosted.org/packages/c0/d6/da224c9b4756a0b9da33afc590a126230fffc29b8b17158206442ba5c97c/pyglview-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "a991dc84fd7ce902ee5dcc6b24065f3d", "sha256": "0bc3a8c81a9c56a2b0b682d4d7ac461eead3fe327c4eec96fb1c766c1c03569d" }, "downloads": -1, "filename": "pyglview-1.1.3.tar.gz", "has_sig": false, "md5_digest": "a991dc84fd7ce902ee5dcc6b24065f3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6544, "upload_time": "2019-04-30T02:27:31", "url": "https://files.pythonhosted.org/packages/ab/0e/4ea8b84c243e5ad07a6fed7230409581ffd191c72b31cd7995ddb6327a2b/pyglview-1.1.3.tar.gz" } ], "1.1.4": [ { "comment_text": "", "digests": { "md5": "8a31c48b5b7b84b578240743240453b2", "sha256": "cf38147909d5394067fcc7af0d454793f82a30144a4713ca9dadb8cffd2bf2b7" }, "downloads": -1, "filename": "pyglview-1.1.4.tar.gz", "has_sig": false, "md5_digest": "8a31c48b5b7b84b578240743240453b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6560, "upload_time": "2019-05-02T11:17:55", "url": "https://files.pythonhosted.org/packages/42/89/d1642eafe034baa6b42ab0b1e9375b321089506d3ecedcafd38efbba9c2c/pyglview-1.1.4.tar.gz" } ], "1.1.5": [ { "comment_text": "", "digests": { "md5": "67bc8786b86d03d2793e8a6c0cc02339", "sha256": "a0c4727a29a7a2756b138f28e44c52503148bd1702347e4b53cd43b751744e7b" }, "downloads": -1, "filename": "pyglview-1.1.5.tar.gz", "has_sig": false, "md5_digest": "67bc8786b86d03d2793e8a6c0cc02339", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6625, "upload_time": "2019-05-09T10:18:11", "url": "https://files.pythonhosted.org/packages/4c/5b/6758cad9acb640797bc3a07e67f69ab42a2f58d507f1e624d1edc191a667/pyglview-1.1.5.tar.gz" } ], "1.1.6": [ { "comment_text": "", "digests": { "md5": "d5747872ba6c0c73ad52fa91d866a7f2", "sha256": "89e2bc0b126dfc52286acfbe1febba80a44c0e71129f8e33ce9be7c5b8d369b9" }, "downloads": -1, "filename": "pyglview-1.1.6.tar.gz", "has_sig": false, "md5_digest": "d5747872ba6c0c73ad52fa91d866a7f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6630, "upload_time": "2019-05-21T05:23:08", "url": "https://files.pythonhosted.org/packages/9e/45/036b7871b1fca2cbecf9d506420b0a91d11cae1a414dbbe0eedf7c3dfdeb/pyglview-1.1.6.tar.gz" } ], "1.1.7": [ { "comment_text": "", "digests": { "md5": "e295b7a6e449cc97afd1cc12b60a4227", "sha256": "d82bfa43caae4f43ef7692010648e8e778c590a5f9fff97965d1a6ca59a5cc4f" }, "downloads": -1, "filename": "pyglview-1.1.7.tar.gz", "has_sig": false, "md5_digest": "e295b7a6e449cc97afd1cc12b60a4227", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6623, "upload_time": "2019-05-23T21:51:12", "url": "https://files.pythonhosted.org/packages/b4/60/883365713b5c093801e4ea13c18e02fe5d15d7bf00aaaae6a233e023b0b2/pyglview-1.1.7.tar.gz" } ], "1.1.8": [ { "comment_text": "", "digests": { "md5": "c04d2532b83a30bd2867f49210f2906e", "sha256": "8a3f0c2dacd07f5fbd25c2c1dd0f115149e256f75d0d2a47a9bcbab11309544a" }, "downloads": -1, "filename": "pyglview-1.1.8.tar.gz", "has_sig": false, "md5_digest": "c04d2532b83a30bd2867f49210f2906e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6749, "upload_time": "2019-07-10T13:38:22", "url": "https://files.pythonhosted.org/packages/b4/74/888be78e2d37aebd67fb035a2f77e4d9bfe8fb1ae95258de087d9cec7694/pyglview-1.1.8.tar.gz" } ], "1.1.9": [ { "comment_text": "", "digests": { "md5": "2080a4b531a47abc774d0309be658ccc", "sha256": "a4287b187c55ab1bbb1c4fc382d0d9831285deace26338044b1e994bb1b20d8c" }, "downloads": -1, "filename": "pyglview-1.1.9.tar.gz", "has_sig": false, "md5_digest": "2080a4b531a47abc774d0309be658ccc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6761, "upload_time": "2019-07-10T13:53:13", "url": "https://files.pythonhosted.org/packages/58/4b/fdb7d2cdc1590f5829b2257ade5ff102edf0846f76e0e3820c570af3db65/pyglview-1.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "124bd6f486af9728eadf9f7f654b004c", "sha256": "9440bfc2279537c1db5d5c56bcbd29b248d29a9c06f682f23df4c1ac9a9f9715" }, "downloads": -1, "filename": "pyglview-1.1.10.tar.gz", "has_sig": false, "md5_digest": "124bd6f486af9728eadf9f7f654b004c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6831, "upload_time": "2019-07-17T00:35:25", "url": "https://files.pythonhosted.org/packages/aa/1b/fa06839ce8da805832e200e9ce5001036754f789669ade627a2a5dc6f8a8/pyglview-1.1.10.tar.gz" } ] }