MehulKhanna / PokeGrinder

An Auto-Grinding Bot for PokéMeow with Slash Commands! With a free Captcha Solver!
MIT License
12 stars 7 forks source link

Captcha #29

Closed SANKETOP closed 5 months ago

SANKETOP commented 7 months ago

It's solving captchas but download the png any solution that he can solve without download png?

SANKETOP commented 7 months ago

And how i solve this cooldown problem?

SANKETOP commented 7 months ago

image

SANKETOP commented 7 months ago

After catching some pokemons this happen everytime

Filmrundung commented 7 months ago

ive got the same problem

lufy20106 commented 7 months ago

@SANKETOP i can do the captcha for u but not the cooldown

lufy20106 commented 7 months ago

It's solving captchas but download the png any solution that he can solve without download png?

from typing import Dict

from fastapi import FastAPI
from ultralytics import YOLO

model = YOLO('Solver1850.pt')
app = FastAPI()

@app.get("/")
async def read_root():
    return {"Status": 200}

@app.get("/solve/{url:path}")
async def read_item(url: str) -> dict[str, str]:
    result = model.predict(
        url.split("?")[0],
        imgsz=320,
        save=False,
        agnostic_nms=True
    )[0]

    classes, boxes = list(map(int, result.boxes.cls)), list(result.boxes.xyxy)
    detections = [(name, float(boxes[index][0])) for index, name in enumerate(classes)]
    detections.sort(key=lambda v: v[1])

    answer = "".join([str(detection[0]) for detection in detections])
    imagename = url.split("?")[0].split("/")[-1]
    os.remove(f"{imagename}")
    return {"answer": answer}

im just woke up sr if not work

SANKETOP commented 7 months ago

It's solving captchas but download the png any solution that he can solve without download png?

from typing import Dict

from fastapi import FastAPI
from ultralytics import YOLO

model = YOLO('Solver1850.pt')
app = FastAPI()

@app.get("/")
async def read_root():
    return {"Status": 200}

@app.get("/solve/{url:path}")
async def read_item(url: str) -> dict[str, str]:
    result = model.predict(
        url.split("?")[0],
        imgsz=320,
        save=False,
        agnostic_nms=True
    )[0]

    classes, boxes = list(map(int, result.boxes.cls)), list(result.boxes.xyxy)
    detections = [(name, float(boxes[index][0])) for index, name in enumerate(classes)]
    detections.sort(key=lambda v: v[1])

    answer = "".join([str(detection[0]) for detection in detections])
    imagename = url.split("?")[0].split("/")[-1]
    os.remove(f"{imagename}")
    return {"answer": answer}

im just woke up sr if not work

Where to paste this?

lufy20106 commented 7 months ago

Replace CaptchaSlove.py bro :V

It's solving captchas but download the png any solution that he can solve without download png?

from typing import Dict from fastapi import FastAPIfrom ultralytics import YOLO

model = YOLO('Solver1850.pt')app = FastAPI()

@app.get("/")async def read_root(): return {"Status": 200}

@app.get("/solve/{url:path}")async def read_item(url: str) -> dict[str, str]: result = model.predict( url.split("?")[0], imgsz=320, save=False, agnostic_nms=True )[0]

classes, boxes = list(map(int, result.boxes.cls)), list(result.boxes.xyxy)
detections = [(name, float(boxes[index][0])) for index, name in enumerate(classes)]
detections.sort(key=lambda v: v[1])

answer = "".join([str(detection[0]) for detection in detections])
imagename = url.split("?")[0].split("/")[-1]
os.remove(f"{imagename}")
return {"answer": answer}

im just woke up sr if not work

Where to paste this?

— Reply to this email directly, view it on GitHub https://github.com/MehulKhanna/PokeGrinder/issues/29#issuecomment-1868429689, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCRN65UIUVGDMVZOPBAC7DLYK6U4NAVCNFSM6AAAAABBA2EL5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGQZDSNRYHE . You are receiving this because you commented.Message ID: @.***>