javascript - Only get Object of boxes when using QuaggaJS -
i using quaggajs. when move barcode in front of camera, results got object of boxes
below instead of complete results.
i tried figure out, failed. may cause this? thanks
{ "boxes": [ [ [77.4074243622672, 410.9288668804402], [0.050203235235130705, 310.53619724086366], [360.15706727788256, 33.05711026051813], [437.5142884049146, 133.44977990009465] ], [ [248.90769330706507, 415.2041489551161], [198.9532321622869, 352.62160512937635], [339.546160777576, 240.3979259789976], [389.5006219223542, 302.98046980473737] ] ] }
the codes here:
quagga.init({ inputstream : { name : "live", type : "livestream", target: document.queryselector('#myvideo') }, decoder : { readers : ["code_128_reader"] } }, function(err) { if (err) { console.log(err); return } console.log("initialization finished. ready start"); quagga.start(); quagga.onprocessed(res => { console.log(res); // here got object of boxes }) });
Comments
Post a Comment