I'm attempting to have image processing done using multiple processes, to improve speed/efficiency, but it's always giving me a broken pipe error. even with the code
import cv2
import numpy as np
from multiprocessing import Process, freeze_support
def findRed(img, pipe):
x = 5
frame = cv2.imread("test.jpg")
test = Process(target=findRed, args=(frame, 5))
test.start()
test.join()
if I instead set frame equal to something not using imread, it doesn't give me the broken pipe error. anybody know why this happens, or how to fix it?