Last active
February 12, 2019 17:03
-
-
Save jamesonthecrow/4d9ba4c17a92aa7fb5c8db85065e87a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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