Skip to content

Commit

Permalink
Merge pull request #1028 from luxonis/develop
Browse files Browse the repository at this point in the history
DepthAI SDK 1.10.1
  • Loading branch information
daniilpastukhov committed May 19, 2023
2 parents e1cc50b + 7c9f989 commit 00172ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion depthai_sdk/src/depthai_sdk/oak_outputs/xout/xout_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def on_callback(self, packet: Union[DetectionPacket, TrackerPacket]):
if self._frame_shape is None:
# Lazy-load the frame shape
self._frame_shape = np.array([packet.frame.shape[0], packet.frame.shape[1]])
self._visualizer.frame_shape = self._frame_shape
if self._visualizer:
self._visualizer.frame_shape = self._frame_shape

bbox = BoundingBox().resize_to_aspect_ratio(packet.frame.shape, self._nn_size, self._resize_mode)

Expand Down

0 comments on commit 00172ea

Please sign in to comment.