Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class MainActivity extends AppCompatActivity {
private CameraView cameraView;
private ClassificationFrameProcessor classificationFrameProcessor;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
cameraView = findViewById(R.id.cameraView);
cameraView.setLifecycleOwner(this);
initClassification();
}
private void initClassification() {
classificationFrameProcessor = new ClassificationFrameProcessor(/*...*/);
cameraView.addFrameProcessor(classificationFrameProcessor);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.