Spelt / ZXing.Delphi

ZXing Barcode Scanning object Pascal Library for Delphi VCL and Delphi Firemonkey
Apache License 2.0
471 stars 206 forks source link

CameraComponent slow? - Fixed #117

Closed koufopoulosf closed 3 years ago

koufopoulosf commented 3 years ago

Hello,

After compiling the program on my android device, it works great!..... until I press the "Stop Camera" button and then again the "Start Camera" button.. It loses the speed (the displayed frames are slow) and I have to reopen the app in order to work properly.

Do we know what causes this issue and how it can be fixed? I would highly appreciate it!

Thanks in advance, koufopoulosf

koufopoulosf commented 3 years ago

ZXing.Delphi/demo/aTestApp/main.pas (Lines 139-140)

CameraComponent1.Active := false;
CameraComponent1.Quality := FMX.Media.TVideoCaptureQuality.MediumQuality;

=>

CameraComponent1.Active := false;
CameraComponent1.Quality := FMX.Media.TVideoCaptureQuality.highQuality;
CameraComponent1.Quality := FMX.Media.TVideoCaptureQuality.MediumQuality;