x = multiprocessing.Process(target=smile_detection, args=('Thread1',))
y = multiprocessing.Process(target=smile_detection, args=('Thread2',))
x.start()
y.start()
x.join()
y.join()
Python Multiprocessing sharing of global values