Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
crysxd authored May 22, 2019
1 parent f295e26 commit 14a940a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,21 @@ And implement `ThreadedImageAnalyzer` like this:
}
}
}

# Use front facing camera

Use `FrontFacingCameraFragment` instead:

<fragment
android:id="@+id/cameraFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="de.crysxd.cameraXTracker.CameraFragment"/>
Tell PositionTranslator that we use the front facing camera:

.pipe(PositionTranslator(view.width, view.height))

# Custom image sizes and option

You can subclass `CameraFragment` and override `onCreateAnalyzerConfigBuilder` and/or `onCreatePreivewConfigBuilder`

0 comments on commit 14a940a

Please sign in to comment.