AugmentedImageDatabaseEntry


class AugmentedImageDatabaseEntry


Entry in an AugmentedImageDatabase.

Summary

Public constructors

AugmentedImageDatabaseEntry(
    bitmap: Bitmap,
    mode: AugmentedImageDatabaseEntryMode,
    widthInMeters: Float
)

Public functions

AugmentedImageDatabaseEntry
copy(
    bitmap: Bitmap,
    mode: AugmentedImageDatabaseEntryMode,
    widthInMeters: Float
)
open operator Boolean
equals(other: Any?)
open Int
open String

Returns a string representation of AugmentedImageDatabaseEntry for debugging.

Public properties

Bitmap

the bitmap of the image in android.graphics.Bitmap.Config.ARGB_8888 format

AugmentedImageDatabaseEntryMode

the AugmentedImageDatabaseEntryMode used to detect the image

Float

the physical width of the image in meters.

Public constructors

AugmentedImageDatabaseEntry

Added in 1.0.0-beta02
AugmentedImageDatabaseEntry(
    bitmap: Bitmap,
    mode: AugmentedImageDatabaseEntryMode = AugmentedImageDatabaseEntryMode.DYNAMIC,
    widthInMeters: Float = 0.0f
)

Public functions

copy

Added in 1.0.0-beta02
fun copy(
    bitmap: Bitmap = this.bitmap,
    mode: AugmentedImageDatabaseEntryMode = this.mode,
    widthInMeters: Float = this.widthInMeters
): AugmentedImageDatabaseEntry

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Returns a string representation of AugmentedImageDatabaseEntry for debugging.

Note: Not intended for production use.

Public properties

bitmap

Added in 1.0.0-beta02
val bitmapBitmap

the bitmap of the image in android.graphics.Bitmap.Config.ARGB_8888 format

mode

Added in 1.0.0-beta02
val modeAugmentedImageDatabaseEntryMode

the AugmentedImageDatabaseEntryMode used to detect the image

widthInMeters

Added in 1.0.0-beta02
val widthInMetersFloat

the physical width of the image in meters. If zero, the physical width will be estimated if the device supports it. If physical size estimation is not supported, configuring the Session adding an entry with widthInMeters being 0f or lower will throw an IllegalArgumentException