you can refer VIM3&VIM3L Android NPU APP Initial Version Release you can find the code about using camera2 api