Skip to content

Instantly share code, notes, and snippets.

View synap5e's full-sized avatar

Simon Pinfold synap5e

View GitHub Profile

Keybase proof

I hereby claim:

  • I am synap5e on github.
  • I am uint8 (https://keybase.io/uint8) on keybase.
  • I have a public key ASCnO7oPwSx6xO1k9kudx0ng2lHqUmGXVQH5ZJi2Yd4b6wo

To claim this, I am signing this object:

@synap5e
synap5e / 0_segment.py
Last active November 20, 2019 02:41
OpenCV OCR segmentation
import cv2
import matplotlib.pyplot as plt
import numpy as np
def main() -> None:
f, (ax1, ax2) = plt.subplots(2, 1)
im = cv2.imread('number_plate.png')

Keybase proof

I hereby claim:

  • I am synap5e on github.
  • I am uint8 (https://keybase.io/uint8) on keybase.
  • I have a public key ASCrq_CVrakVZs1Y5NrEmY04Jcqq_wp_WZW5jKMpvFv_yQo

To claim this, I am signing this object:

# -------------------------------------------------------
# Free IP2Location Firewall List by Country
# Source: https://www.ip2location.com/free/visitor-blocker
# Last Generated: 29 Dec 2020 05:25:30 GMT
# [Important] Please update this list every month
# -------------------------------------------------------
14.1.32.0/19
14.1.64.0/19
14.128.4.0/22
14.137.0.0/19
from Crypto.Cipher import DES
from Crypto.Util.Padding import pad, unpad
from hashlib import md5
IV = b'ABCDEFGH'
KEY = b'DES KEY!'
HASHSEP = b'=++!MD5!++='
SECRET = b'SECRET123'
@synap5e
synap5e / README.md
Created October 4, 2025 01:35
image caption

uv run python .\caption.py --api-key ... --model gemini-2.5-pro --api google-genai --prompt-file .\prompt.md --workers 32 . .