Skip to content

Commit

Permalink
修复第一帧色彩通道BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
LChen committed Jan 3, 2022
1 parent f4be909 commit eab4c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctrl/main.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def run():
img = cv2.imdecode(data, cv2.IMREAD_COLOR)
h, w, _ = img.shape
fixh, fixw = h, w
imsh = cv2.cvtColor(img, cv2.COLOR_BGR2RGBA)
imsh = cv2.cvtColor(img, cv2.COLOR_RGB2RGBA)
imi = Image.fromarray(imsh)
imgTK = ImageTk.PhotoImage(image=imi)
cv = tkinter.Canvas(showcan, width=w, height=h, bg="white")
Expand Down

0 comments on commit eab4c7f

Please sign in to comment.