0712デフォルトの名無しさん (ワッチョイ 9f89-q2Vu)
2024/04/18(木) 11:23:16.44ID:mnftgO6U0https://huggingface.co/Bingsu/adetailer
import cv2
from PIL import Image
img = "https://farm5.staticflickr.com/4139/4887614566_6b57ec4422_z.jpg"
output = model(img)
pred = output[0].plot()
pred = cv2.cvtColor(pred, cv2.COLOR_BGR2RGB)
pred = Image.fromarray(pred)
pred
これをどういじれば赤枠内をモザイク処理させることができる?