### This module takes screenshots of BlueStacks using the win32 API, resizes and crops them to the same size of an ADB screenshot.
##### You can easily get more than 100 FPS, but the BlueStacks window may not be minimized! You can put it in the background, but don't minimize it!
```python
pip install bluestacks-fast-screenshot
# Update 22/12/2022 - Less code / less dependencies
from bluestacks_fast_screenshot import get_bluestacks_screenshot
import cv2
blueit = get_bluestacks_screenshot(
adb_path="C:\\Users\\USERNAME\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",
deviceserial="localhost:5795",
windowtitle="bluestacks",
interpolation=cv2.INTER_AREA,
ignore_exceptions=True,
show_fps=True,
)
for pic in blueit:
# do your stuff here
cv2.imshow("", pic.copy())
if cv2.waitKey(1) & 0xFF == ord("q"):
cv2.destroyAllWindows()
break
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/bluestacks_fast_screenshot",
"name": "bluestacks-fast-screenshot",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "bluestacks,adb,openCV,win32,screenshots,windows,bot,video,streaming",
"author": "Johannes Fischer",
"author_email": "<aulasparticularesdealemaosp@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/54/2f/ea673e92c800036ed686c71683604c27f659603287aacac3659b28fdb425/bluestacks_fast_screenshot-0.13.tar.gz",
"platform": null,
"description": "\n### This module takes screenshots of BlueStacks using the win32 API, resizes and crops them to the same size of an ADB screenshot. \n\n\n\n##### You can easily get more than 100 FPS, but the BlueStacks window may not be minimized! You can put it in the background, but don't minimize it!\n\n\n\n\n\n```python\n\npip install bluestacks-fast-screenshot\n\n\n\n# Update 22/12/2022 - Less code / less dependencies \n\n\n\nfrom bluestacks_fast_screenshot import get_bluestacks_screenshot\n\nimport cv2\n\nblueit = get_bluestacks_screenshot(\n\n adb_path=\"C:\\\\Users\\\\USERNAME\\\\AppData\\\\Local\\\\Android\\\\Sdk\\\\platform-tools\\\\adb.exe\",\n\n deviceserial=\"localhost:5795\",\n\n windowtitle=\"bluestacks\",\n\n interpolation=cv2.INTER_AREA,\n\n ignore_exceptions=True,\n\n show_fps=True,\n\n)\n\n\n\nfor pic in blueit:\n\n # do your stuff here\n\n cv2.imshow(\"\", pic.copy())\n\n \n\n if cv2.waitKey(1) & 0xFF == ord(\"q\"):\n\n cv2.destroyAllWindows()\n\n break\n\n\n\n\n\n```\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "This module takes screenshots of BlueStacks using the win32 API, resizes and crops them to the same size of an ADB screenshot.",
"version": "0.13",
"split_keywords": [
"bluestacks",
"adb",
"opencv",
"win32",
"screenshots",
"windows",
"bot",
"video",
"streaming"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "56af6c2f2a0b420e90ab83219473cedb",
"sha256": "3920ca46f5a7011a76bb6e487b6906d731606bb0d9c56d5c21d00aa66602211d"
},
"downloads": -1,
"filename": "bluestacks_fast_screenshot-0.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "56af6c2f2a0b420e90ab83219473cedb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6417,
"upload_time": "2022-12-23T14:05:57",
"upload_time_iso_8601": "2022-12-23T14:05:57.560838Z",
"url": "https://files.pythonhosted.org/packages/45/df/97868f7a1f738df334dd0f4b2097c0e634ebf1a5b5cfba490f1bfc1110c9/bluestacks_fast_screenshot-0.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "32679a54b7760fb2e923f05608abba6f",
"sha256": "93e7f93851118d2acf9681626e25df52521fb73c45e295770bd87219149e4e27"
},
"downloads": -1,
"filename": "bluestacks_fast_screenshot-0.13.tar.gz",
"has_sig": false,
"md5_digest": "32679a54b7760fb2e923f05608abba6f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4560,
"upload_time": "2022-12-23T14:05:59",
"upload_time_iso_8601": "2022-12-23T14:05:59.117941Z",
"url": "https://files.pythonhosted.org/packages/54/2f/ea673e92c800036ed686c71683604c27f659603287aacac3659b28fdb425/bluestacks_fast_screenshot-0.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-23 14:05:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hansalemaos",
"github_project": "bluestacks_fast_screenshot",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "a_cv2_easy_resize",
"specs": []
},
{
"name": "ctypes_screenshots",
"specs": []
},
{
"name": "ctypes_window_info",
"specs": []
},
{
"name": "opencv_python",
"specs": []
},
{
"name": "pandas",
"specs": []
}
],
"lcname": "bluestacks-fast-screenshot"
}