Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to replace ColorCamera with XLinkIn node? #31

Open
vipulkumar-developer opened this issue Sep 9, 2022 · 1 comment
Open

How to replace ColorCamera with XLinkIn node? #31

vipulkumar-developer opened this issue Sep 9, 2022 · 1 comment

Comments

@vipulkumar-developer
Copy link

I want to replace the Colorcamera with XLinkIn node.
image

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'

@geaxgx
Copy link
Owner

geaxgx commented Sep 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants