Spelt/ZXing.Delphi

PDF417 Support

adearmasIAP opened this issue · 16 comments

Hello,
I have finished PDF417 translation from C# to Delphi.
It compiles just fine althought there's a lot of work to do left:

  • First of all Camera demo it does not work beause it cancels with AVs when it detects a PDF417 code. I cleaned up some errors but, obviusly some remain.
  • There will be thousands of memory leaks because I tried to keep it as similar to the original as possible (Hoping to make it work fast but I failed).
  • I used a lot of compiler new goodies and I have to remove them to make ir compatible with older Delphi compilers.

I'd like to know if anyone with more experience than me would like to help to make ir work.

Regards.

Spelt commented

Did you continue developing your translation?

Spelt commented
Tajmi commented

@adearmasIAP Do you have any prototype source files with your PDF417 implementations?

Hello @Tajmi . I have the source code that I translated but it doesn't work at all.
The project I was working bought some PDF417 reading devices so I had no need to keep investigating the implementation.

If anyone wants to take a look I will happily upload it.

Tajmi commented

Hi @adearmasIAP I would realy like to look at it and try to fix it. Can you contact me on VTajmr@seznam.cz or upload the source files anywhere? Thank you.

Hello @Tajmi I have uploaded my code. I needed an implementation of bigintegers so I used http://rvelthuis.de/programs/bigintegers.html

The code does not work, it raises an AV.
There's a lot of work to do:
1.Make it work
2.To keep backward compability lots of inline variables should be removed
3.Memory leaks... I tried to translate the code without changes (that's the reason of inline variables) and that produced lots of ML. My idea was remove them before uploading the result.

https://drive.google.com/file/d/1a1GCIu4Btke0wBXTDSPtjOOs9dW1hkRr/view?usp=sharing

Hope you can make it work

Did anyone could make PDF417 decode work?

Tajmr commented

Yes I kinda make it. But it was hell work.

Tajmr commented

I got it running on delphi XE4, but it is still quit buggy :/

Tajmi commented

I can post the code at the evening somewhere. I am no longer maintaining it. But if it can help anyone else.

Unfortunately I cannot help due to lack of knowledge. But I need PDF417. Thanks. Thanks. Thank you very much

Spelt commented

Hi Tajmi

Can you post the code?