Skip to content

Commit

Permalink
Pass orientation handler the camera's width and height
Browse files Browse the repository at this point in the history
  • Loading branch information
husaynhakeem committed Jun 24, 2018
1 parent 47155f3 commit 748968e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class FaceDetector(private val faceBoundsOverlay: FaceBoundsOverlay) {

private fun updateOrientation(frame: Frame) {
cameraOrientationHandler.updateOrientation(
overlayWidth = faceBoundsOverlay.width,
overlayHeight = faceBoundsOverlay.height,
overlayWidth = frame.size.width,
overlayHeight = frame.size.height,
rotation = frame.rotation,
callback = { newWidth, newHeight, newOrientation ->
faceBoundsOverlay.cameraPreviewWidth = newWidth
Expand Down

0 comments on commit 748968e

Please sign in to comment.