what-the-bank/sources/com/pingan/ai/m.java

127 lines
3.2 KiB
Java

package com.pingan.ai;
import com.pingan.ai.face.control.LiveFaceConfig;
import com.pingan.ai.face.utils.PaFaceLogger;
import pingan.ai.paverify.vertify.PFaceDetector;
/* loaded from: classes3.dex */
public class m {
public int a = 0;
public int b = 0;
public int c = 0;
public int d = 8;
public int e = 0;
public int f = 0;
public long g = 0;
public int h = 0;
public d i;
public LiveFaceConfig j;
public native void a(LiveFaceConfig liveFaceConfig);
public void g() {
this.a = 0;
this.b = 0;
this.c = 0;
PFaceDetector.nativeRanking(true);
this.h = 0;
this.g = 0L;
}
public boolean f() {
boolean z = System.currentTimeMillis() - this.g <= ((long) x.s(this.j));
if (this.a < this.d && (z || this.b <= 0)) {
PFaceDetector.a();
this.a++;
int i = this.h;
this.h = i + 1;
if (i == 0) {
this.g = System.currentTimeMillis();
}
return true;
}
d dVar = this.i;
StringBuilder sb = new StringBuilder();
sb.append(c.a());
sb.append(" collectedNormalFaceRankingFrameCount :ranking size:");
sb.append(this.a);
dVar.c(sb.toString());
StringBuilder sb2 = new StringBuilder("nf ranking size:");
sb2.append(this.a);
PaFaceLogger.i(sb2.toString());
return false;
}
public boolean e() {
if (this.b >= this.e || this.c >= this.f) {
this.c = 0;
return false;
}
PFaceDetector.a();
this.b++;
this.c++;
d dVar = this.i;
StringBuilder sb = new StringBuilder();
sb.append(c.a());
sb.append(" motion ranking size:");
sb.append(this.b);
dVar.c(sb.toString());
StringBuilder sb2 = new StringBuilder("motion ranking size:");
sb2.append(this.b);
PaFaceLogger.i(sb2.toString());
return true;
}
public boolean d() {
return this.b >= this.e || this.c >= this.f;
}
public boolean c() {
return this.a + this.b > (this.d + this.e) / 2;
}
public int b() {
return this.d;
}
public void a(int i) {
int i2 = 0;
if (i == 0) {
this.d = 8;
this.e = 0;
} else {
this.d = 0;
if (i == 1) {
this.e = 4;
this.f = 4;
StringBuilder sb = new StringBuilder("n=");
sb.append(this.d);
sb.append(",m=");
sb.append(this.e);
sb.append(",s=");
sb.append(this.f);
PaFaceLogger.i(sb.toString());
}
this.e = i << 1;
i2 = 2;
}
this.f = i2;
StringBuilder sb2 = new StringBuilder("n=");
sb2.append(this.d);
sb2.append(",m=");
sb2.append(this.e);
sb2.append(",s=");
sb2.append(this.f);
PaFaceLogger.i(sb2.toString());
}
public int a() {
return this.a + this.b;
}
public m(d dVar, LiveFaceConfig liveFaceConfig) {
this.i = dVar;
this.j = liveFaceConfig;
}
}