I've been trying to create a program that split few different section of my main OpenCV program to increase fps. The first thing i ever think of is the Pipe() function from my friend. I've tried this 'default' code below in python 2.7 on Windows 10 to learn the basic first of multiprocessing:
from multiprocessing import Process, Pipe def f(conn): conn.send([42, None, 'hello']) conn.close() if __name__ == '__main__': parent_conn, child_conn = Pipe() p = Process(target=f, args=(child_conn,)) p.start() print (parent_conn.recv()) # prints "[42, None, 'hello']" p.join()
After that i went to Raspberry Python 3 to do the same thing, but nothing happen in Python console when i tried to run it.
the console cursor just sit there doing nothing beside blinking, but when i try to run it from terminal by typing
Python and followed by file directory, the text just appear like nothing happen.
I don't know why, but i'm definitely missing something here. can i actually run this on Python 3? and why the text are not shown in Console that called from IDLE?