/// /// TextRecognitionConfig.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.visioncameraocrplus import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "TextRecognitionConfig". */ @DoNotStrip @Keep data class TextRecognitionConfig( @DoNotStrip @Keep val language: String, @DoNotStrip @Keep val scanRegion: ScanRegion?, @DoNotStrip @Keep val frameSkipThreshold: Double, @DoNotStrip @Keep val useLightweightMode: Boolean ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is TextRecognitionConfig) return false return Objects.deepEquals(this.language, other.language) && Objects.deepEquals(this.scanRegion, other.scanRegion) && Objects.deepEquals(this.frameSkipThreshold, other.frameSkipThreshold) && Objects.deepEquals(this.useLightweightMode, other.useLightweightMode) } override fun hashCode(): Int { return arrayOf( language, scanRegion, frameSkipThreshold, useLightweightMode ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(language: String, scanRegion: ScanRegion?, frameSkipThreshold: Double, useLightweightMode: Boolean): TextRecognitionConfig { return TextRecognitionConfig(language, scanRegion, frameSkipThreshold, useLightweightMode) } } }