chore(apk): retire le diagnostic temporaire du scan QR
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+2
-15
@@ -3384,15 +3384,11 @@ begin
|
|||||||
var
|
var
|
||||||
LMgr: TScanManager;
|
LMgr: TScanManager;
|
||||||
LRes: TReadResult;
|
LRes: TReadResult;
|
||||||
LText, LDiag: string;
|
LText: string;
|
||||||
LHints: TDictionary<TDecodeHintType, TObject>;
|
LHints: TDictionary<TDecodeHintType, TObject>;
|
||||||
LW, LH: Integer;
|
|
||||||
begin
|
begin
|
||||||
LText := '';
|
LText := '';
|
||||||
LDiag := '';
|
|
||||||
LRes := nil;
|
LRes := nil;
|
||||||
LW := LBmp.Width;
|
|
||||||
LH := LBmp.Height;
|
|
||||||
// TRY_HARDER : le chercheur de motifs balaie chaque ligne au lieu
|
// TRY_HARDER : le chercheur de motifs balaie chaque ligne au lieu
|
||||||
// d'en sauter - indispensable pour un QR photographie sur un ecran.
|
// d'en sauter - indispensable pour un QR photographie sur un ecran.
|
||||||
LHints := TDictionary<TDecodeHintType, TObject>.Create;
|
LHints := TDictionary<TDecodeHintType, TObject>.Create;
|
||||||
@@ -3403,11 +3399,7 @@ begin
|
|||||||
LRes := LMgr.Scan(LBmp);
|
LRes := LMgr.Scan(LBmp);
|
||||||
if LRes <> nil then LText := LRes.Text;
|
if LRes <> nil then LText := LRes.Text;
|
||||||
except
|
except
|
||||||
on E: Exception do
|
LText := '';
|
||||||
begin
|
|
||||||
LText := '';
|
|
||||||
LDiag := E.ClassName + ': ' + E.Message;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
LRes.Free;
|
LRes.Free;
|
||||||
@@ -3418,11 +3410,6 @@ begin
|
|||||||
procedure
|
procedure
|
||||||
begin
|
begin
|
||||||
FScanBusy := False;
|
FScanBusy := False;
|
||||||
// DIAG scan (temporaire) : les premiers essais, puis un sur vingt.
|
|
||||||
if (FScanFrame <= 40) or (FScanFrame mod 80 = 0) then
|
|
||||||
Log(Format('QR scan frame %d: %dx%d, %s', [FScanFrame, LW, LH,
|
|
||||||
IfThen(LDiag <> '', LDiag,
|
|
||||||
IfThen(LText = '', 'nothing found', 'read ' + IntToStr(Length(LText)) + ' chars'))]));
|
|
||||||
if (not FScanning) or (LText = '') then Exit;
|
if (not FScanning) or (LText = '') then Exit;
|
||||||
// CHERCHE, NE COMPARE PAS LE DEBUT : le texte decode est arrive
|
// CHERCHE, NE COMPARE PAS LE DEBUT : le texte decode est arrive
|
||||||
// avec un caractere invisible en tete (104 lus pour 103 emis),
|
// avec un caractere invisible en tete (104 lus pour 103 emis),
|
||||||
|
|||||||
Reference in New Issue
Block a user