TTMSFNCWXBarcodeDecoder not decoding

Hi,

I’m trying to use TTMSFNCWXBarcodeDecoder but I really was not able to make it work.

from all images below, it was not able to decode. I tried in Android and Windows.

(only last is EAN13, others are Interleave 2 of 5).

  D := TTMSFNCWXBarcodeDecoder.Create(nil);
  try
    d.BarcodeType := T;
    D.LibraryLocation := TTMSFNCWXLibraryLocation.llOnline;
    d.DecodeFromFile('C:\Users\Antonio Carlos\Downloads\Untitled 0.jpg', OnDecoded);

    Application.ProcessMessages;
  finally
    D.Free;
  end;


procedure TForm1.OnDecoded(const AFound: Boolean; const AResult: string);
begin
  if AFound then
    ShowMessage(AResult);
end;

Hi,

Running these samples through the online demo provided by the JavaScript library we are using, it looks like decoding is more successful if the patch size is set to large instead of x-large. The x-large value currently cannot be changed so we'll make this configurable as soon as possible and it will be part of a next update.

However, the last two images might be undecodable by the library as they are right now. We noticed it struggles when the barcode takes up all the space, because it cannot differentiate which part is a barcode anymore.

During investigation we noticed the previously linked demo is belonging to the old version. This is the correct one: index

However, in both versions the barcode is actually not decoded, even when clicking through the various settings. It's confusing because the green rectangle is shown where the barcode is, so it's unclear why the library fails to do the decoding. Perhaps it's worth asking in the github repostiory, we can always upgrade to a newer version once the issue is resolved there: GitHub - ericblade/quagga2: An advanced barcode-scanner written in Javascript and TypeScript - Continuation from https://github.com/serratus/quaggajs · GitHub

I’ve found an issue due the same problem.

as it’s possible to see it will take a too long time to solve.

Have you considered to give to the user the decision of using zXing library or this one?

A WX component typically uses one library. We picked quagga2 as it was/is still being actively worked on and supports more types compared to zXing.

At this moment it's unclear if support for 2 different libraries at the same time is possible, we need to research it first.