mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
.
This commit is contained in:
parent
ea607edfc9
commit
baff59e421
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ def QImage_from_np(img):
|
|||
|
||||
return QImage(img.data, w, h, c*w, fmt )
|
||||
|
||||
def QImage_to_np(q_img):
|
||||
q_img = q_img.convertToFormat(QImage.Format_BGR888)
|
||||
def QImage_to_np(q_img, fmt=QImage.Format_BGR888):
|
||||
q_img = q_img.convertToFormat(fmt)
|
||||
|
||||
width = q_img.width()
|
||||
height = q_img.height()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue