Skip to content

Commit

Permalink
opencv: fix motion box translation
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 30, 2023
1 parent b29d793 commit 9d8a135
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugins/opencv/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/opencv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.0.72"
"version": "0.0.74"
}
2 changes: 1 addition & 1 deletion plugins/opencv/src/opencv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,5 @@ async def run_detection_videoframe(self, videoFrame: VideoFrame, settings: Any,
def convert_to_src_size(point):
return point[0] * scale, point[1] * scale
mat = np.ndarray((height, width, self.pixelFormatChannelCount), buffer=buffer, dtype=np.uint8)
detections = self.detect(mat, settings, detection_session, (width, height), convert_to_src_size)
detections = self.detect(mat, settings, detection_session, (videoFrame.width, videoFrame.height), convert_to_src_size)
return detections
2 changes: 1 addition & 1 deletion plugins/opencv/src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Pillow>=5.4.1; sys_platform != 'linux' or platform_machine != 'x86_64'
pillow-simd; sys_platform == 'linux' and platform_machine == 'x86_64'
imutils>=0.5.0
# not available on armhf
opencv-python; sys_platform != 'linux' or platform_machine == 'x86_64'
opencv-python; sys_platform != 'linux' or platform_machine == 'x86_64'

0 comments on commit 9d8a135

Please sign in to comment.