luxonis / depthai-python

DepthAI Python Library
MIT License
351 stars 190 forks source link

Result of NeuralNetwork node with NNData in input gives SequenceNumber 0 #671

Open vipulkumar-developer opened 2 years ago

vipulkumar-developer commented 2 years ago

Hi, my issue is the following:

I'm inserting as input to the Neural Network node a date with format NNData:

body_time = time.monotonic()
frame_nn = frame_nn / 255.
nn_data = dai.NNData()
nn_data.setSequenceNum(pose_detection.getSequenceNum())
nn_data.setTimestamp(body_time)
nn_data.setLayer("input_1", to_planar(frame_nn, (lm_input_length, lm_input_length)))
q_landmark_in.send(nn_data)

But when I've to receive the results from the NN, the sequence number is always 0 and the timestamp is datetime.timedelta(0).

if q_landmark_out.has():
    landmark_regression = q_landmark_out.get()

And due to this problem I cannot synchronize these results with the camera frame.

Erol444 commented 2 years ago

Hi @vipulkumar-developer , Could you provide a MRE, please? Thanks, Erik