Bypassing vKeyboard using OpenCV
Project description
๐โจ๏ธ fuckvkeypad
๊ธ์ต, ์ ๋ถ ์น์ฌ์ดํธ๋ฑ์ ๋๋ฆฌ ์ฐ์ด๋ ๋ณด์ ํ๋ก๊ทธ๋จ์ธ ๊ฐ์ํค๋ณด๋(vKeyboard)๋ฅผ ์ฐํํฉ๋๋ค
๋ฏธ๋ฆฌ ์บก์ณ๋ ์ด๋ฏธ์ง์ ์ ์ฌ๋๋ฅผ ๋ถ์ํ๋ ๋ฐฉ์์ผ๋ก ์ฐํ๊ฐ ์ด๋ฃจ์ด์ง๋๋ค
์ฌ์ฉ ๋ฐฉ๋ฒ
vKeypad-Studio
์ฌ์ฉ ๋ฐฉ๋ฒ ์์ - YouTube
- ๊ฐ์ํค๋ณด๋ ์ด๋ฏธ์ง๋ฅผ ์ค๋นํฉ๋๋ค
- Figma์์ ๊ฐ์ ํค๋ณด๋ ์ด๋ฏธ์ง๋ฅผ ์ ๋ก๋ ํฉ๋๋ค
- Figma์์ ์ฌ๊ฐํ์ผ๋ก ๊ฐ์ ํค๋ณด๋ ๊ฐ๊ฐ์ ํค๋ฅผ ๋ฎ์ด์ค๋๋ค
- Figma์์ svg ํ์ผ๋ก Export ํฉ๋๋ค
- ํฐ๋ฏธ๋์์
vkeypad-studio [์ด๋ฏธ์ง ํ์ผ] [svg ํ์ผ]
์ ์ ๋ ฅํฉ๋๋ค - ์๋ก ๋ฌ ์ฐฝ์์, ์ด๋ฏธ์ง์ ํด๋น๋๋ ํค๋ณด๋ ํค๋ฅผ ๋๋ฌ์ค๋๋ค
- assets ํด๋ ์ ์ฌ์ง๋ค๊ณผ, data.json์ ๋ฐ๋ก ๋ณด๊ด ํด๋ก๋๋ค
fuckvkeypad
์ค์น
pip install fuckvkeypad
์์
assets์ ํด๋ ์์น์, data.json ์์น๋ฅผ ๋งค๊ฐ๋ณ์๋ก ๋๊ฒจ์ค๋๋ค
import cv2
from fuckvkeypad import get_keymap
img = cv2.imread("test_assets/vKeypad.png")
keymap = get_keymap(
img, asset_path="test_assets/", data_path="test_assets/data.json"
)
print(keymap)
๋ฐ์ด๋ฉ ๋ฐ์ค์ ์ขํ์ ํค์ฝ๋๋ฅผ ์์๋๋ก ์ถ๋ ฅํฉ๋๋ค
[
{"box": [0, 0, 55, 55], "key_code": 49},
{"box": [58, 0, 113, 55], "key_code": 50},
{"box": [116, 0, 171, 55], "key_code": 51},
{"box": [0, 58, 55, 113], "key_code": 52},
{"box": [58, 58, 113, 113], "key_code": 53},
{"box": [116, 58, 171, 113], "key_code": 54},
{"box": [0, 116, 55, 171], "key_code": 55},
{"box": [58, 116, 113, 171], "key_code": 56},
{"box": [116, 116, 171, 171], "key_code": 57},
{"box": [58, 174, 113, 229], "key_code": 48},
]
Special Thanks
์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋simple_bank_korea์์ ์๊ฐ์ ๋ฐ์ ์ ์ํ์์ต๋๋ค
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fuckvkeypad-0.2.0.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file fuckvkeypad-0.2.0.tar.gz
.
File metadata
- Download URL: fuckvkeypad-0.2.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45219b2e168731f7eab976756ab9d31a9f02d148b444d571947245ca4867cebd |
|
MD5 | 61a470012272100a2c13730af96accc8 |
|
BLAKE2b-256 | ec1cecb6955a3c96d9a2a1baf64bb3374b6b97edf19131673f6b86b2693c26ba |
File details
Details for the file fuckvkeypad-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: fuckvkeypad-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607a1032a9ba7c98a57e8b714eecbee4c463efb721baee897e0fd5ecab7f8f00 |
|
MD5 | 85e10d497e1f9b0e5741b4a13c04060e |
|
BLAKE2b-256 | a84548a3ea5ab9a3ac472c3ea6a70bd4914846478ab697bae3806b9926032254 |