Ask Your Question

m93c's profile - activity

2020-12-23 09:02:04 -0600 received badge  Popular Question (source)
2018-09-27 09:21:54 -0600 commented question Number plate recognition using tessract

You can perform dilation/erosion operation to highlight text. If you mean the Tesseract library you can put the special

2018-09-19 02:53:04 -0600 commented question Read white and black words when threshold

maybe apply a bitwise_not for the white text plates?

2018-09-19 01:32:36 -0600 received badge  Enthusiast
2018-09-14 02:32:20 -0600 commented question JAVA - Removing noise of processed image OPENCV

Do you have to read ALL the text on the card? However I'll do something like crop only the card shape from the image and

2018-09-14 02:12:08 -0600 commented question (X,Y) coordinate using python openCV

I think one way is to look for white color (thresholding or masks), draw contours on the new image (only the dice should

2018-09-14 02:01:20 -0600 commented question OpenCV.js in Web Worker problem

Ok, no problem. I've seen it can handle 2-3 classifiers in the main thread so I'll put them there for now.

2018-09-13 07:38:15 -0600 commented question OpenCV.js in Web Worker problem

I wanted to declare a classifier in a thread and then use it only in that thread. Another thread will use a different cl

2018-09-12 06:54:18 -0600 asked a question OpenCV.js in Web Worker problem

OpenCV.js in Web Worker problem Hi everyone! In my application I have to use multiple haar cascades so I thought that us

2018-09-07 07:31:04 -0600 received badge  Teacher (source)
2018-09-07 07:16:43 -0600 received badge  Scholar (source)
2018-09-07 07:14:44 -0600 marked best answer OpenCV.js unable to load haar cascades

Hi everyone,
I was tring to implement the face detection example with opencv.js.
The problem is that there's no way of importing the necessary haar cascade.
My project structure is as follows:

  • index.html
  • js
    • myjs.js
    • opencv.js
    • utils.js
  • haar
    • haarcascade_frontalface_default.xml


In "myjs.js" I try to load the cascade as shown in the example using my path to the cascade:

let classifier = new cv.CascadeClassifier();
classifier.load('../haar/haarcascade_frontalface_default.xml');

The function returns always false indicating the loading failure, independently if using the relative or the absolute path. Because of this I can't use the "detectMultiScale" function...

Can anyone help me please?

2018-09-07 07:14:02 -0600 received badge  Supporter (source)
2018-09-07 07:11:54 -0600 received badge  Self-Learner (source)
2018-09-07 07:08:57 -0600 received badge  Editor (source)
2018-09-07 07:08:57 -0600 edited answer OpenCV.js unable to load haar cascades

Thanks holger and berak for helping me to solve this problem. After a deep examination of the code in the example I've f

2018-09-07 05:31:46 -0600 commented answer OpenCV.js unable to load haar cascades

Ok solved, just use the function "createFileFromUrl" from utils.js. I'll post a detailed answer tomorrow because I signe

2018-09-07 03:31:11 -0600 commented answer OpenCV.js unable to load haar cascades

Ok I launched the index with a webserver, I can query the cascade file but I stiil can't import it. It does not even do

2018-09-07 02:36:34 -0600 asked a question OpenCV.js unable to load haar cascades

OpenCV.js unable to load haar cascades Hi everyone, I was tring to implement the face detection example with opencv.js.