Skip to content

Instantly share code, notes, and snippets.

@the-dagger
Last active October 22, 2018 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save the-dagger/3182988f308d8e705af13eee0a8fe348 to your computer and use it in GitHub Desktop.
Save the-dagger/3182988f308d8e705af13eee0a8fe348 to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private lateinit var renderScript: RenderScript
private lateinit var yuvToRGB: ScriptIntrinsicYuvToRGB
private var yuvDataLength: Int = 0
private lateinit var allocationIn: Allocation
private lateinit var allocationOut: Allocation
private lateinit var bitmapOut: Bitmap
//Rest of the code
override fun onCreate(savedInstanceState: Bundle?) {
val objectPredictor = FritzVisionObjectPredictor.getInstance(this)
//Rest of the code
}
//Rest of the code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment