- added video detection again

This commit is contained in:
Oliver Kleinecke 2023-06-21 19:30:34 +02:00
parent 4a1c554a09
commit c8b947bb57

View File

@ -74,9 +74,11 @@ public class MainActivity extends AppCompatActivity {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (toggleKamera.isChecked()) { if (toggleKamera.isChecked()) {
if(detectorService != null) {
detectorService.videoDetector.startDetection();
}
} else { } else {
detectorService.videoDetector.stopDetection();
} }
} }
}); });