Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captcha #29

Closed
SANKETOP opened this issue Dec 23, 2023 · 8 comments
Closed

Captcha #29

SANKETOP opened this issue Dec 23, 2023 · 8 comments

Comments

@SANKETOP
Copy link

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

@SANKETOP
Copy link
Author

SANKETOP commented Dec 23, 2023

And how i solve this cooldown problem?

@SANKETOP
Copy link
Author

image

@SANKETOP
Copy link
Author

After catching some pokemons this happen everytime

@Filmrundung
Copy link

ive got the same problem

@lufy20106
Copy link
Contributor

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

@lufy20106
Copy link
Contributor

lufy20106 commented Dec 24, 2023

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
Copy link
Author

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
Copy link
Contributor

lufy20106 commented Dec 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants