Issue:
An error occurred when I tried to create a ZPT file with a 3.6MB JPEG image using the ZapWorks CLI.
zapworks train ■■■.jpg
Training the image - this may take a few moments…
C:\Users\■■■\AppData\Roaming\npm\node_modules@zappar\zapworks-cli\node_modules\jpeg-js\lib\decoder.js:1051
throw new Error(maxMemoryUsageInMB limit exceeded by at least ${exceededAmount}MB
);
^
Error: maxMemoryUsageInMB limit exceeded by at least 133MB
at Function.requestMemoryAllocation (C:\Users\■■■\AppData\Roaming\npm\node_modules@zappar\zapworks-cli\node_modules\jpeg-js\lib\decoder.js:1051:13)
at Object.decode [as image/jpeg] (C:\Users\■■■\AppData\Roaming\npm\node_modules@zappar\zapworks-cli\node_modules\jpeg-js\lib\decoder.js:1101:15)
at Jimp.parseBitmap (C:\Users\■■■\AppData\Roaming\npm\node_modules@zappar\zapworks-cli\node_modules@jimp\core\dist\utils\image-bitmap.js:196:53)
at Jimp.parseBitmap (C:\Users\■■■\AppData\Roaming\npm\node_modules@zappar\zapworks-cli\node_modules@jimp\core\dist\index.js:431:32)
at C:\Users\■■■\AppData\Roaming\npm\node_modules@zappar\zapworks-cli\node_modules@jimp\core\dist\index.js:373:15
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
methodName: ‘constructor’
}
ZapWorks Studio successfully created the ZPT file and the image tracking was also successful.
The execution environment is as follows.
Windows 10
NodeJS v16.14.0
@zappar/zapworks-cli 1.0.0
I’m thinking of ZapWorks Studio and zapworks CLI or Universal AR for accuracy in creating ZPT files and image tracking. Is there any difference? I am planning to develop Universal AR application in the future.
Until now, we have been creating them in ZapWorks Studio. As for the development, it is natural that there is a difference between Universal AR and ZapWorks Studio, but I believe that there is no difference in accuracy and quality, but if there are any areas where Universal AR is inferior, please share that information as well.
Thanks.