- Show device list in terminal:
xinput list
- Displays something like:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=5 [slave pointer (2)]
⎜ ...xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=5 [slave pointer (2)]
⎜ ...| import cv2 | |
| import numpy as np | |
| import imutils | |
| def find_rectangle_corners(image_path, flip_image=False): | |
| # Read the image | |
| image = cv2.imread(image_path) | |
| # Convert the image to grayscale |
| $ tesseract --help-extra | |
| Usage: | |
| tesseract --help | --help-extra | --help-psm | --help-oem | --version | |
| tesseract --list-langs [--tessdata-dir PATH] | |
| tesseract --print-parameters [options...] [configfile...] | |
| tesseract imagename|imagelist|stdin outputbase|stdout [options...] [configfile...] | |
| OCR options: | |
| --tessdata-dir PATH Specify the location of tessdata path. | |
| --user-words PATH Specify the location of user words file. |
| // Find functions without proper comments | |
| def.+\):\n[^"]+?\n |
| import re | |
| from pandas import DataFrame | |
| # Replace with your file names | |
| read_file = 'debug.log' | |
| write_file = 'output.csv' | |
| # Utility vars | |
| count = [] | |
| message = [] |