Skip to content

Commit

Permalink
RVC3: Patch replay
Browse files Browse the repository at this point in the history
  • Loading branch information
SzabolcsGergely committed Jul 29, 2024
1 parent 4c82993 commit 27cff0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion depthai_sdk/src/depthai_sdk/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ def _resize_frame(self, frame: np.ndarray, size: Tuple[int, int], mode: ResizeMo

def _createNewFrame(self, cvFrame) -> dai.ImgFrame:
imgFrame = dai.ImgFrame()
imgFrame.setData(cvFrame)
data = cvFrame.flatten()
imgFrame.setData(data)
imgFrame.setTimestamp(self._now)
imgFrame.setSequenceNum(self._seqNum)
shape = cvFrame.shape[::-1]
Expand Down

0 comments on commit 27cff0c

Please sign in to comment.