i trying use following code create interactive gui changes color-space(hsv, rbg, grayscale etc) on event of button click. display opencv video in tkinter using multiprocessing  being new python having problems multiprocessing , attempts on making gui change it's color space on button clicks hangs entire system. on it's implementation highly appreciated. thankyou. below code:   import cv2 pil import image,imagetk import tkinter tk import numpy np multiprocessing import process , queue  def quit_it(root,process):     root.destroy()     process.terminate()  def black_andwhite(root,process):     process.terminate     p=process(target=capture_image, args=(5,queue, ))     p.start()     root.after(0, func=lambda: update_all(root, image_label, queue))  def update_image(image_label, queue):     frame = queue.get()     = image.fromarray(frame)     b = imagetk.photoimage(image=a)     image_label.configure(image=b)     image_label._image_cache = b     root.update()  def update_all(root...
 
Comments
Post a Comment