How to replace ColorCamera with XLinkIn node?
Opened this issue · 1 comments
I want to replace the Colorcamera with XLinkIn node.
I know that it will not be on edge, but I'm trying to use this pipeline since it is optimized and works on high FPS rate.
I've tried to send data through the XLinkIn node in the following way:
frame_time = time.monotonic()
frame_nn = dai.ImgFrame()
frame_nn.setTimestamp(frame_time)
frame_nn.setData(to_planar(video_frame, (video_frame.shape[1], video_frame.shape[0])))
frame_nn.setData(video_frame)
self.q_image_in.send(frame_nn)
But it gives me this error:
[14442C10310D57D700] [1.4] [180.825] [system] [critical] Fatal error. Please report to developers. Log: 'Fatal error on MSS CPU: trap: 2A, address: 8009C784' '0'
Sorry for the delay.
In your code above, you are doing frame_nn.setData
twice. Is it the cause of the error ? Not sure. The luxonis team should help you to understand what this error means.
Is not what you are trying to do similar to what it is currently done in host mode when you use a video file as input : ./demo.py -i video.mp4
? In that case, there is no script manager running on the device. The job is done on the host. The device is just running the 2 neural networks Pose Detection and Landmarks and there are 2 XLinkIn nodes to feed the 2 NNs.