cozmo / jsQR

A pure javascript QR code reading library. This library takes in raw images and will locate, extract and parse any QR code found within.
https://cozmo.github.io/jsQR/
Apache License 2.0
3.69k stars 607 forks source link

Add memorization to the bitMatrix class & return the transformation #153

Open LHDi opened 4 years ago

LHDi commented 4 years ago

Increased performance because we don't recreate the matrix for every scene. the performance is way better for continuous streaming. return the transformation matrix.

danimoh commented 3 years ago

Note that the avoidance of buffer memory allocation and garbage collection for each scanned image is also achieved by #115.

115 has the additonal advantage of no memory overhead, as no additonal memory has to be allocated or cached, in contrast to the Memo cache here that is on top never pruned.