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