what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzqc.java

54 lines
2.1 KiB
Java

package com.google.android.gms.internal.firebase_ml;
import com.google.android.gms.internal.firebase_ml.zzmd;
import com.google.android.gms.tasks.Task;
import com.google.firebase.FirebaseApp;
import com.google.firebase.ml.vision.cloud.FirebaseVisionCloudDetectorOptions;
import com.google.firebase.ml.vision.common.FirebaseVisionImage;
import com.google.firebase.ml.vision.label.FirebaseVisionImageLabel;
import com.kofax.mobile.sdk._internal.impl.camera.h;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes2.dex */
public final class zzqc extends zzpo<List<FirebaseVisionImageLabel>> {
public zzqc(FirebaseApp firebaseApp, FirebaseVisionCloudDetectorOptions firebaseVisionCloudDetectorOptions) {
super(firebaseApp, "LABEL_DETECTION", firebaseVisionCloudDetectorOptions);
zznu.zza(firebaseApp, 1).zza(zzmd.zzq.zzjx(), zzmn.CLOUD_IMAGE_LABEL_CREATE);
}
@Override // com.google.android.gms.internal.firebase_ml.zzpo
protected final int zznh() {
return 640;
}
@Override // com.google.android.gms.internal.firebase_ml.zzpo
protected final int zzni() {
return h.Az;
}
public final Task<List<FirebaseVisionImageLabel>> detectInImage(FirebaseVisionImage firebaseVisionImage) {
zznu.zza(this.zzapo, 1).zza(zzmd.zzq.zzjx(), zzmn.CLOUD_IMAGE_LABEL_DETECT);
return super.zza(firebaseVisionImage);
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // com.google.android.gms.internal.firebase_ml.zzpo
public final /* synthetic */ List<FirebaseVisionImageLabel> zza(zzir zzirVar, float f) {
if (zzirVar.zzhn() == null) {
return new ArrayList();
}
List<zzjb> zzhn = zzirVar.zzhn();
ArrayList arrayList = new ArrayList();
Iterator<zzjb> it = zzhn.iterator();
while (it.hasNext()) {
FirebaseVisionImageLabel zza = FirebaseVisionImageLabel.zza(it.next());
if (zza != null) {
arrayList.add(zza);
}
}
return arrayList;
}
}