googlesamples / android-vision

Deprecated: The Mobile Vision API is now a part of ML Kit: Check out this repo:
https://github.com/firebase/quickstart-android/tree/master/mlkit
Apache License 2.0
2.92k stars 1.73k forks source link

(ocr-codelab) android.hardware.Camera deprecated #427

Open pmatheusvinhas opened 5 years ago

pmatheusvinhas commented 5 years ago

Please, update the tutorial about ocr.

android.hardware.Camera

was deprecated on API 21. Documents recommend use

android.hardware.Camera2

but they have different structure. How should I replace

Camera.Parameters.FLASH_MODE_TORCH and Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO

? Thanks.

https://codelabs.developers.google.com/codelabs/mobile-vision-ocr/#4

shubh261096 commented 4 years ago

Can you please update these all with CameraX since Camera1 API is deprecated.

skauss commented 4 years ago

Please add the possibility enable / disable flash to for the CameraSource API