This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ##### Tao script notify.sh | |
| do_notify=`cat<<"EOF" | |
| #!/bin/bash | |
| # Lay PID cua moi truong desktop (gnome-session) | |
| PID=$(pgrep gnome-sessio -n -U $UID) | |
| # Thoat neu user chua login vao moi truong desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # you might need to install tesseract or tesseract-ocr from your os pkg manager | |
| from urllib import request | |
| from PIL import Image | |
| from PIL import ImageFilter | |
| from pytesseract import pytesseract | |
| def extract(file): | |
| # load img and convert it to grayscale |