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;
Tunde
(Tünde Keller)
May 20, 2026, 6:21am
2
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.
Tunde
(Tünde Keller)
May 20, 2026, 7:56am
3
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.
opened 03:30AM - 21 Apr 23 UTC
Hi, I have research quagga for a few day, I try to use JsBarcode to create the b… arcode and use Quagga to scan it in image type and liveStream type. But sometime I cannot scan and find out the result code in image type.
For example, I created the barcode with the string "1234", I can get the code when I use liveStream, but fail with the base64 url maked from canvas.toDataURL(), also the downloaded image. I tried many code, "12345678", "201108040076", "201243219876", only some of those success.
In fact, when I change the fontsize/text margin/margin of the barcode, the accuracy rate could be imporved but it is still affected by many things such as space. Would you like to tell me what are the reasons affect the accuracy rate or how to improve it?
Thanks!
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?
Tunde
(Tünde Keller)
May 20, 2026, 11:29am
5
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.