Thema: Delphi ACamera - winsoft

Einzelnen Beitrag anzeigen

arnof

Registriert seit: 25. Apr 2013
1.254 Beiträge
 
Delphi 10.1 Berlin Enterprise
 
#5

AW: ACamera - winsoft

  Alt 6. Mär 2018, 22:48
Thank you,
please write your code.
I use object photography, I do not use QRcode scanning.
I use:
Delphi-Quellcode:
procedure TFormMain.ButtonTakePictureClick(Sender: TObject);
begin
  ACamera.FocusMode := foAuto;
  ACamera.TakePicture;
end;

procedure TFormMain.ACameraPictureTaken(Sender: TObject; Data: TArray<System.Byte>);
begin
  TFile.WriteAllBytes(TPath.Combine(dirImages, edName.Text + '.jpg'), Data);
end;
Set

ACamera.FocusMode := foAuto;

before you take the picture (not a line before) .... the phone need a while to set the focus
  Mit Zitat antworten Zitat