Oddbean new post about | logout
 gays #clouflare

https://pomf2.lain.la/f/lthwr68.mp4

import cv2
import numpy as np
import pyautogui
import time
import base64

while True:
    screenshot = pyautogui.screenshot()
    screenshot_np = np.array(screenshot)
    large_image = cv2.cvtColor(screenshot_np, cv2.COLOR_BGR2GRAY)
    imgdata=('iVBORw0KGgoAAAANSUhEUgAAALMAAAAbBAMAAADFdaNDAAAAGFBMVEUrLSpBQ0BmaGV9f3yXmpa1t7TU19P///8iR1F4AAAByUlEQVRIx+3Wz2/aMBQHcJOV5Jq2BK4pMHKlmdReoa2Wq4tUfE2rga84Jv7++'
    '3svuEXaaLtDIvUwK4rI4/Hxj2eSCHTVdgL1+K2plunVkf7eMj3Wrxdu3DZ9vPpPf0Lfw4rPdk3+73QdHdOfILdoj0a/OXxbok06p4G7OMHqOcqtCPqwGSQwcGmgjcKAUq57yj4ELv3G6fMAHK6n8Wx+hjq+xOox0Cdpqau'
    's/Cn1Y6JzGvUEO0WHC83sZeTp9a/IXqzNzXMBzOnc0MFW0K/qdank7CU7SRu1UzmqW6nBtOQh22w/ktr1PQ2ENqL4fkQzoC8bOqSPhvoyBXUQnaRtJpEKQeeG5n7gIlPQsg88vTwPaZUWQjQl3zeTIS0ntr6KC0n5J2kXT'
    'jDebrWn7W1CwaTUR9oOwfSSkv6iparepzHgqQGerkNKw90d1YDWu8AZT9kxLfWh6kRT2NMN/y69GKG82byOGhdUEpRTcBmrbE90lVVMm+FGHWgOe3qJxQd0WcClvTd6zv9HE4I3n0svp7RkcTIkmpI8zWFPV70fH9B/NHm'
    'obRe3p8lhR3ZAb0LeNdcd3FQdryfk8Ks9wDp87Hb4stDhK05n9G9Bc/SDKkOp0wAAAABJRU5ErkJggg==')

    image_data = base64.b64decode(imgdata)
    image_np = np.frombuffer(image_data, np.uint8)
    small_image = cv2.imdecode(image_np, cv2.IMREAD_GRAYSCALE)
    #small_image = cv2.imread(imgdata, 0)
    result = cv2.matchTemplate(large_image, small_image, cv2.TM_CCOEFF_NORMED)
    threshold = 0.8
    min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(result)

    if max_val >= threshold:
        print("found match")
        top_left = max_loc
        bottom_right = (top_left[0] + small_image.shape[1], top_left[1] + small_image.shape[0])

        middle_x = (top_left[0] + bottom_right[0]) // 2
        middle_y = (top_left[1] + bottom_right[1]) // 2

        pyautogui.moveTo(middle_x, middle_y)
        pyautogui.click()

    time.sleep(0.1)