Skip to content

Instantly share code, notes, and snippets.

@jamesonthecrow
Last active February 12, 2019 17:03
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 jamesonthecrow/4d9ba4c17a92aa7fb5c8db85065e87a7 to your computer and use it in GitHub Desktop.
Save jamesonthecrow/4d9ba4c17a92aa7fb5c8db85065e87a7 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 onDeviceModel = new ObjectDetectionOnDeviceModel();
val objectPredictor = FritzVision.ObjectDetection.getPredictor(onDeviceModel);
//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