Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
opencv.js meanStdDev implementation

I am using opencv.js to get average color from a masked region, the API I am using is cv.meanStdDev. The code:

            let mask = cv.Mat.zeros(image.cols, image.rows, cv.CV_8UC3);
            let mean = new cv.Mat;
            let std = new cv.Mat;

            cv.meanStdDev(image, mean, std);

is good, but when I add the last 'mask' parameter:

            cv.meanStdDev(image, mean, std, mask);

in browser console it prints:

Uncaught 6577936

And the script stopped. Seems like the implementation of meanStdDev is broken?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!