Model

enum Model(val id: String, @StringRes val description: Int) : Enum<Model>

These files should be in the assets folder with these names and file extension

  • Model 0: accurate & lightweight. https://ai.google.dev/edge/mediapipe/solutions/vision/object_detector?hl=pt-br#efficientdet-lite0_model_recommended

  • Model 2: more accurate but slower. https://ai.google.dev/edge/mediapipe/solutions/vision/object_detector?hl=pt-br#efficientdet-lite2_model

Constructors

Link copied to clipboard
private constructor(id: String, @StringRes description: Int)

Entries

Link copied to clipboard
Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Model

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.