Skip to content

Instantly share code, notes, and snippets.

View khichinho's full-sized avatar
😎
memes and dreams

Hardik Khichi khichinho

😎
memes and dreams
View GitHub Profile
## Dependancies: pyautogui, Python3
## Pyautogui: https://pyautogui.readthedocs.io/en/latest/install.html
## Python3: https://www.python.org/downloads/
import pyautogui
import time
## Replace this with what you would like to spam one word at a time.
lyrics = "Fill em with the venom and eliminate em Other words, I Minute Maid em I dont wanna hurt em, but I did em in a fit of rage Im murderin again, nobody will evade him Finna kill em and dump all the fuckin bodies in the lake Obliterating everything, incinerate and renegade em And I make anybody who want it with the pen afraid But dont nobody want it, but theyre gonna get it anyway Cause Im beginnin to feel like Im mentally ill Im Atilla, kill or be killed, Im a killer bee, the vanilla gorilla Youre bringin the killer within me out of me You dont want to be the enemy of the demon who went in me Or being the recievin end of me, what stupidity itd be Every bit of me is the epitome of a spitter When Im in the vicinity, motherfucker, you better duck Or you finna
@tomwwright
tomwwright / gist:f88e2ddb344cf99f299935e1312da880
Last active September 3, 2024 06:20
Dell XPS 15 9560: Ubuntu 17.10 + Nvidia 384.90 + Nvidia Prime (No Bumblebee) https://medium.com/@tomwwright/better-battery-life-on-ubuntu-17-10-4588b7f72def
# perform a fresh install of Ubuntu 17.10
# upgrade the kernel to v4.13.10
mkdir ~/kernel-v4.13.10
cd ~/kernel-v4.13.10
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310_4.13.10-041310.201710270531_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-image-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb
sudo dpkg -i *.deb
@dannguyen
dannguyen / README.md
Last active September 10, 2024 19:41
Using Python 3.x and Google Cloud Vision API to OCR scanned documents to extract structured data

Using Python 3 + Google Cloud Vision API's OCR to extract text from photos and scanned documents

Just a quickie test in Python 3 (using Requests) to see if Google Cloud Vision can be used to effectively OCR a scanned data table and preserve its structure, in the way that products such as ABBYY FineReader can OCR an image and provide Excel-ready output.

The short answer: No. While Cloud Vision provides bounding polygon coordinates in its output, it doesn't provide it at the word or region level, which would be needed to then calculate the data delimiters.

On the other hand, the OCR quality is pretty good, if you just need to identify text anywhere in an image, without regards to its physical coordinates. I've included two examples:

####### 1. A low-resolution photo of road signs