dividiti / crowdsource-video-experiments-on-android

Crowdsourcing video experiments (such as collaborative benchmarking and optimization of DNN algorithms) using Collective Knowledge Framework across diverse Android devices provided by volunteers. Results are continuously aggregated in the open repository:
http://cKnowledge.org/repo
Other
28 stars 3 forks source link

camera not working if doesn't support autofocus #62

Closed gfursin closed 7 years ago

gfursin commented 7 years ago

I had to remove "autofocus" requirement from Manifesto, to be able to install app on cheaper Android platforms that do not have autofocus (however they still can recognize pre-recorded images). However, on such devices camera is not working at all. Maybe there is a way to check whether camera has autofocus or not and still support it even without autofocus (if it's the problem) ... Thanks!

DVEfremov commented 7 years ago

I've checked autofocus works on my Galay Note 4 without <uses-feature android:name="android.hardware.camera.autofocus" /> at manifest.

I've already applied checks for the front camera (it's mostly without autofocuss support) So I've applied better handling based on cameraParams.getSupportedFocusModes() method.

DVEfremov commented 7 years ago

I've checked on my old ASUS Transformer Pad Infinity TF700T front and back cam as well - forks fine