-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
And how i solve this cooldown problem? |
After catching some pokemons this happen everytime |
ive got the same problem |
@SANKETOP i can do the captcha for u but not the cooldown |
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? |
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
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCRN65UIUVGDMVZOPBAC7DLYK6U4NAVCNFSM6AAAAABBA2EL5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGQZDSNRYHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It's solving captchas but download the png any solution that he can solve without download png?
The text was updated successfully, but these errors were encountered: