Utils

open class Utils

Functions

Link copied to clipboard
open fun getBitmapFromAsset(context: Context, filePath: String): Bitmap
Link copied to clipboard
open fun getTransformationMatrix(    srcWidth: Int,     srcHeight: Int,     dstWidth: Int,     dstHeight: Int,     applyRotation: Int,     maintainAspectRatio: Boolean): Matrix
Returns a transformation matrix from one reference frame into another.
Link copied to clipboard
open fun loadModelFile(assets: AssetManager, modelFilename: String): MappedByteBuffer
Memory-map the model file in Assets.
Link copied to clipboard
open fun processBitmap(source: Bitmap): Bitmap
open fun processBitmap(source: Bitmap, size: Int): Bitmap
open fun processBitmap(    source: Bitmap,     wsize: Int,     hsize: Int): Bitmap
Link copied to clipboard
open fun writeToFile(data: String, context: Context)