Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
data class Frame(val bitmap: Bitmap, val landmarks: List<Landmark>)

Representation of a Frame

Link copied to clipboard
Link copied to clipboard
class FrameDistributor(context: Context, var cameraController: CameraControllerInterface = CameraControllerWrapper(context))

Distribute frames to the many interested consumers

Link copied to clipboard
data class Landmark(val position: PointF, val landmarkType: Int, val sourceWidth: Int, val sourceHeight: Int, val inFrameLikelihood: Float)

Representation of a NormalizedLandmark A Normalized Landmark takes the Width and Height of the Bitmap and creates the positions of the landmarks as percentages to match more of what iOS Does. This allows us to share more of the logic from iOS to Android.

Functions

Link copied to clipboard
fun List<Frame?>.averageLandmark(landmarkType: Int): PointF
Link copied to clipboard
fun normalizeLandmarks(landmarks: List<PoseLandmark>, width: Int, height: Int): List<Landmark>

Returns the normalized landmarks for a frame.