Colour fix

fixed the colours. cvtColor is not needed here as openCV takes care of the BGR issue when saving to PNG.
This commit is contained in:
jackyOO7 2018-10-17 07:38:53 +02:00 committed by GitHub
parent bd7cd64cee
commit 03ef2aae4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def main():
keep_on_top=True)
if recording:
ret, frame = cap.read()
imgbytes=cv2.imencode('.png', cv2.cvtColor(frame,cv2.COLOR_BGR2RGB))[1].tobytes() #ditto
imgbytes=cv2.imencode('.png', frame)[1].tobytes() #ditto
window.FindElement('image').Update(data=imgbytes)
main()