Skip to content

Commit 37d1890

Browse files
committed
postprocessor.py: fix NumPy array issue when using latest opencv release
Signed-off-by: Longyin Hu <[email protected]>
1 parent b0f2657 commit 37d1890

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cnap/core/processors/postprocessor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def postprocess(self, frame: np.ndarray, outputs: dict) -> np.ndarray:
7474
Postprocess the output by drawing boxes and labels on the input frame for
7575
object detection.
7676
"""
77+
frame = frame.copy()
7778
try:
7879
if self._drawing.get('draw_boxes'):
7980
boxes = outputs['detection_boxes']

0 commit comments

Comments
 (0)