Hello.I have a program and a part of it is to open a camera with opencv
Another part of program is to give inputs using curses(do NOT wait/stop the other parts of program until user give an input )
But when I open a camera AND then give an input the program sticks a little bit and this is very very bad.
I think the problem is to --> cv2.waitkey(1) (Part of camera) ,because(maybe) waits for user input (I don't know)-> if(cv2.waitkey(1) == ord('q'):
Can I replace cv2.waitkey(1) with the following:???
input = curses.initscr()
curses.noecho()
give_move.nodelay(1) # set getch() non-blocking
Thanks!!