mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
8 lines
149 B
Python
8 lines
149 B
Python
import cv2
|
|
import extras.face_crop as cropper
|
|
|
|
|
|
img = cv2.imread('lena.png')
|
|
result = cropper.crop_image(img)
|
|
cv2.imwrite('lena_result.png', result)
|