Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cvtColor perf test and Haar face detector failed with OpenCV.js+simd #15794

Open
Wenzhao-Xiang opened this issue Oct 28, 2019 · 1 comment
Open

Comments

@Wenzhao-Xiang
Copy link
Contributor

System information (version)
  • OpenCV => OpenCV master
  • Operating System / Platform => Ubuntu 16.04
  • Compiler => Emscripten: 1.39.0, LLVM upstream backend
Detailed description
Test Time: 2019/10/24
Test Environment:
  OS: Ubuntu 16.04
  Emscripten: 1.39.0, LLVM upstream backend
  Browser: Chrome, Version 79.0.3941.4 (Official Build) dev (64-bit)
  Hardware: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz with 12 logical cores

In my test, cvtColor with param YUV2BGR made chrome crash with OpenCV.js+simd.
And the same situation came to haar face detector, too.

@aleksazh
Copy link

The same issue comes when applying bilateral filter (cv.bilateralFilter) and perspective transformation (cv.warpPerspective). Chrome crashes with Aw Snap error.

Steps to reproduce

Use bilateral filter:

cv.cvtColor(src, mat, cv.COLOR_RGBA2RGB);
cv.bilateralFilter(mat, dstC3, bilateralDiameter, bilateralSigma, bilateralSigma, cv.BORDER_DEFAULT);

Apply perspective transformation:

let M = cv.getPerspectiveTransform(imgTri, dstTri);
cv.warpPerspective(image, warpedImage, M, new cv.Size(w, h));
System information
  • OpenCV => OpenCV master
  • Operating System / Platform => Ubuntu 18.04
  • Compiler => Emscripten: 1.39.0, LLVM upstream backend
Test Time: 2019/10/24
Test Environment:
  OS: Ubuntu 18.04
  Emscripten: 1.39.0, LLVM upstream backend
  Browser: Chrome, Version 79.0.3938.0 (Official Build) dev (64-bit)
  Hardware: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz with 8 logical cores

+cc (@huningxin , @riju )

aleksazh added a commit to aleksazh/WebCamera that referenced this issue Jan 16, 2020
aleksazh added a commit to aleksazh/WebCamera that referenced this issue Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants