vbalagovic / flutter_scalable_ocr

Flutter scalable OCR package is a wrapper around google_mlkit_text_recognition where you can partialy select part of camera which text will be processed of.
https://pub.dev/packages/flutter_scalable_ocr
MIT License
60 stars 34 forks source link

CamcorderProfile has been deprecated #1

Open frknrm opened 1 year ago

frknrm commented 1 year ago

I'm not sure if it's important or not, but I got this warning when building, Best Regards

C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\camera_android-0.10.4\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:158: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH); ^ C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\camera_android-0.10.4\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:162: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_2160P); ^ C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\camera_android-0.10.4\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:166: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_1080P); ^ C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\camera_android-0.10.4\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:170: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_720P); ^ C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\camera_android-0.10.4\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:174: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_480P); ^ C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\camera_android-0.10.4\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:178: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_QVGA); ^ C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\camera_android-0.10.4\android\src\main\java\io\flutter\plugins\camera\features\resolution\ResolutionFeature.java:182: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_LOW); ^ 7 warnings Note: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\google_mlkit_commons-0.2.0\android\src\main\java\com\google_mlkit_commons\InputImageConverter.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dev\google_mlkit_text_recognition-0.5.0\android\src\main\java\com\google_mlkit_text_recognition\TextRecognizer.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.