Closed SANKETOP closed 5 months ago
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
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
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?
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: @.***>
It's solving captchas but download the png any solution that he can solve without download png?