A collection of mini-games and utilities.
Project description
๐ป ์ ๊ฒ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ (Total_Game)
DrunkFunLib๋ ์ ์๋ฆฌ์์ ์ฆ๊ธธ ์ ์๋ ๋ค์ํ ๊ฒ์๋ค์ ์์ฝ๊ฒ ๊ตฌํํ ์ ์๋๋ก ๋์์ฃผ๋ Python ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋๋ค!
๐ ์ฃผ์ ๊ธฐ๋ฅ
-
๋น์ฉ ๊ณ์ฐ
- ์์์ฆ ์ฌ์ง๊ณผ ์ธ์ ์๋ฅผ ์ ๋ ฅํ๋ฉด, ์ด ๋น์ฉ์ ๊ณ์ฐํ์ฌ 1์ธ๋น ๋ถ๋ดํด์ผ ํ ๊ธ์ก์ ์ ์ฐํด ์ค๋๋ค.
-
์ทจํ ์ ๋ ํ์ ๊ฒ์
- ์์ฑ ํ์ผ์ ์ ๋ ฅํ๋ฉด ๋ฌธ์ฅ ์ ํ๋๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ฌ์ฉ์์ ์ทจํ ์ ๋๋ฅผ ์ธก์ ํฉ๋๋ค.
-
์ฌ์ง ๋ฒ์น ๊ฒ์
- ์ฌ์ฉ์๊ฐ ์ ๋ก๋ํ ์ฌ์ง ์ ์ ๋ชจ์์ ๋ถ์ํ๊ณ ๋๋คํ๊ฒ ๋ฒ์น ๋์์ ์ ํํฉ๋๋ค.
-
์ฌ์ง ๊ธฐ๋ฐ ์ธ๋ฌผ ํด์ฆ
- ์ฌ์ฉ์ ์ง์ ์ฌ์ง์ ์ ๋ ฅํด ์ธ๋ฌผ ํด์ฆ๋ฅผ ์งํํ ์ ์์ต๋๋ค.
-
๋ฃฐ๋ ๋ฒ์น ๊ฒ์
- ์ฌ์ฉ์๊ฐ ์ ๋ ฅํ ๋ฒ์น ๋ฆฌ์คํธ๋ก ๋ฃฐ๋ ์ ๋๋ ค ๋๋คํ๊ฒ ๋ฒ์น์ ์ ์ ํฉ๋๋ค.
์ฌ์ฉ๋ฐฉ๋ฒ
--
๐ฆ ์ค์น
Prerequisites
- Python 3.8 ์ด์์ด ํ์ํฉ๋๋ค
๐ ๏ธ Tesseract OCR ์ค์น ๋ฐฉ๋ฒ
์ด ํ๋ก์ ํธ์ OCR ๊ธฐ๋ฅ์ Tesseract OCR์ ์์กดํฉ๋๋ค. ์ด์ ์ฒด์ ์ ๋ฐ๋ผ ์๋์ ์ค์น ๋ฐฉ๋ฒ์ ์ฐธ๊ณ ํ์ธ์.
macOS
- Homebrew๋ฅผ ์ฌ์ฉํ์ฌ Tesseract๋ฅผ ์ค์นํฉ๋๋ค.
brew install tesseract
- ์ค์น ํ์ธ:
- ํฐ๋ฏธ๋์์
tesseract --version๋ช ๋ น์ด๋ฅผ ์คํํด Tesseract ๋ฒ์ ์ด ์ถ๋ ฅ๋๋์ง ํ์ธํ์ธ์.
- ํฐ๋ฏธ๋์์
Ubuntu/Linux
- APT ํจํค์ง ๊ด๋ฆฌ์๋ฅผ ์ฌ์ฉํ์ฌ Tesseract๋ฅผ ์ค์นํฉ๋๋ค.
sudo apt-get updatesudo apt-get install tesseract-ocr
- ์ค์น ํ์ธ:
- ํฐ๋ฏธ๋์์
tesseract --version๋ช ๋ น์ด๋ฅผ ์คํํด Tesseract ๋ฒ์ ์ด ์ถ๋ ฅ๋๋์ง ํ์ธํ์ธ์.
- ํฐ๋ฏธ๋์์
Windows
- Tesseract ๋ค์ด๋ก๋ ํ์ด์ง์์ ์ค์น ํ์ผ(.exe)์ ๋ค์ด๋ก๋ํฉ๋๋ค.
- ์ค์น ์ค "Add Tesseract to PATH" ์ต์ ์ ์ ํํ์ธ์.
- ์ค์น๊ฐ ์๋ฃ๋ ํ Tesseract ๊ฒฝ๋ก๋ฅผ ํ์ธํฉ๋๋ค.
- ๊ธฐ๋ณธ ๊ฒฝ๋ก:
C:\Program Files\Tesseract-OCR\tesseract.exe
- ๊ธฐ๋ณธ ๊ฒฝ๋ก:
- ํ๊ฒฝ ๋ณ์ ์ค์ ์ด ํ์ํ ๊ฒฝ์ฐ:
- "๋ด PC" โ "์์ฑ" โ "๊ณ ๊ธ ์์คํ ์ค์ " โ "ํ๊ฒฝ ๋ณ์"๋ก ์ด๋ํฉ๋๋ค.
- "Path" ๋ณ์์ Tesseract ์ค์น ๊ฒฝ๋ก๋ฅผ ์ถ๊ฐํ์ธ์.
์ค์น ํ์ธ
- Tesseract๊ฐ ์ ์์ ์ผ๋ก ์ค์น๋์๋์ง ํ์ธํ๋ ค๋ฉด, ๋ช
๋ น์ด
tesseract --version์ ์คํํ์ธ์. - ์ค์น๊ฐ ์ ์์ ์ผ๋ก ์๋ฃ๋์์ ๊ฒฝ์ฐ, Tesseract ๋ฒ์ ์ ๋ณด๊ฐ ์ถ๋ ฅ๋ฉ๋๋ค.
Python์์ ์ฌ์ฉํ๊ธฐ ์ํ ์ถ๊ฐ ์ค์น
- Python ํจํค์ง
pytesseract๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค.pip install pytesseract
- ์ค์น ํ, Python ์ฝ๋์์ ์๋์ ๊ฐ์ด Tesseract ๊ฒฝ๋ก๋ฅผ ์ค์ ํฉ๋๋ค:
import pytesseract pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file total_game-0.1.4.tar.gz.
File metadata
- Download URL: total_game-0.1.4.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35e284acf1a19e4aeb2c42299394fa0069e914c3528144537bea581b592b57a1
|
|
| MD5 |
a5b459c9ee76cba89effd61dd41e5603
|
|
| BLAKE2b-256 |
fbe95fcca180a782f5295dcb356c6bd4162996437ac562fe25c7ed181ef0ad66
|
File details
Details for the file Total_Game-0.1.4-py3-none-any.whl.
File metadata
- Download URL: Total_Game-0.1.4-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a81776de58d42c43ff2775f3857d310293e23c098e2603e52c58766738b4b8b8
|
|
| MD5 |
36ac6abe8cef51ed3564edb02d140ee3
|
|
| BLAKE2b-256 |
cdbb8be59e5e9c4ee2807a269852e03903e9eb74ce8d5512cc9fe0fff24945dc
|