Ask Your Question

Lucy8's profile - activity

2022-08-23 23:02:03 -0600 received badge  Notable Question (source)
2022-08-23 23:02:03 -0600 received badge  Popular Question (source)
2020-01-23 02:12:40 -0600 commented answer point inside rect

in this case, I suggest creating a contour from that rectangle points which seems possible (see here ) and then use poi

2020-01-23 01:22:12 -0600 answered a question VideoCapture memory leak when using read function to get frame data inside a loop,opencv3.4.6

Every Mat frame keeps a lot of data, it should be cleared. To do that you should use imread and then release to free up

2020-01-23 01:05:23 -0600 edited answer point inside rect

you should compare your point x and y coordinates with rectangle points, so if the p0 is the top-left vertex of the rect

2020-01-23 01:02:56 -0600 answered a question point inside rect

you should compare your point x and y coordinates with rectangle points, so if the p0 is the top-left vertex of the rect

2019-12-05 01:59:35 -0600 asked a question HSV white color range in JS

HSV white color range in JS I would like to track white color using webcam and Opencv.js. Here is the question/answer wi

2019-12-05 01:59:22 -0600 asked a question HSV white color range in JS

HSV white color range in JS I would like to track white color using webcam and Opencv.js. Here is the question/answer wi

2019-09-23 09:53:30 -0600 commented question Getting new cv.Point2fVector() is not a constructor error in opencvjs

First of all, to create a new point you can simply use an object, like this const newPoint = { x: 0, y:0 } I don't th

2019-09-23 09:00:37 -0600 commented question Opencv.js: Getting (index):413 Uncaught (in promise) abort("OOM"). Build with -s ASSERTIONS=1 for more info.

I had a similar problem, my code written in JS was running for 1-2 mins (time depended on the device) and then suddenly

2019-06-17 06:56:01 -0600 commented question Detection of red rectangle and environment lighting

I suggest after Core.inRange blur the image and then use threshold instead of bitwise_or and Canny, then use findContour

2019-05-29 07:06:51 -0600 answered a question Detect when the imshow window is closed using X by user

Put this before imshow if cv2.waitKey(1) & 0xFF == ord('q'): cv2.destroyAllWindows() Then if you hit q on you

2019-05-29 06:44:22 -0600 commented answer OpenCV.js unable to track coloured circle and draw circle on target.

Yes but please specify the functions that you can't find. For example, js doesn't have Point2f but you don't need it. He

2019-05-29 06:27:51 -0600 commented answer OpenCV.js unable to track coloured circle and draw circle on target.

That doesn't sound right. Seems something is incorrect. Please open developer tools in browser and check in console whet

2019-05-29 03:08:05 -0600 commented answer OpenCV.js unable to track coloured circle and draw circle on target.

I downloaded that version of opencv.js and tried, it also has cv.findContours. Here is a small example that worked for m

2019-05-29 02:55:56 -0600 commented answer OpenCV.js unable to track coloured circle and draw circle on target.

I downloaded that version of opencv.js and tried, it also has cv.findContours. Here is a small example that worked for m

2019-05-28 03:04:12 -0600 commented answer OpenCV.js unable to track coloured circle and draw circle on target.

Hi, I know that struggle because I also started OpenCV with javascript and used opencv.js. There are not so many tutoria

2019-05-24 03:27:49 -0600 edited answer OpenCV.js unable to track coloured circle and draw circle on target.

If you are able to detect targets and your problem is that you need to filter only green ones then you need to get the a

2019-05-24 03:26:53 -0600 answered a question OpenCV.js unable to track coloured circle and draw circle on target.

If you are able to detect targets and your problem is that you need to filter only green ones then you need to get the a

2019-02-13 00:56:35 -0600 commented question [JAVA] Extreme points in contours

You can find all extreme points and then compare them with each other. Here is solution of finding all extreme points f

2019-02-13 00:54:27 -0600 commented question [JAVA] Extreme points in contours

You can find all the extreme points and then compare them with each other. Here is solution of finding all extreme poin

2019-02-12 01:48:06 -0600 commented question How to find contour vertices in JS? Editing/Understanging FindContours Points in JS

Yes, I mean from the image borders and again you are right img.rows-y is what I need, thanks!!

2019-02-12 01:23:19 -0600 commented question How to find contour vertices in JS? Editing/Understanging FindContours Points in JS

After your comment, I've tried intPtr instead of charPtr const [x, y] = cnt.intPtr(j); and now it's work, thank you!!

2019-02-12 01:16:50 -0600 commented question How to find contour vertices in JS? Editing/Understanging FindContours Points in JS

After your comment, I've tried intPtr instead of charPtr const [x, y] = target.intPtr(j); and now it's work, thank yo

2019-02-12 01:16:29 -0600 commented question How to find contour vertices in JS? Editing/Understanging FindContours Points in JS

After your comment, I've tried intPtr instead of charPtr var [x, y] = target.intPtr(j); and now it's work, thank you!

2019-02-11 08:50:16 -0600 asked a question How to find contour vertices in JS? Editing/Understanging FindContours Points in JS

How to find contour vertices in JS? Editing/Understanging FindContours Points in JS I want to draw a small circle in eac

2019-02-11 05:07:58 -0600 edited question Detect is the contour is in the mask area with JS

Detect is the contour is in the mask area with JS I'm using findContours(), after finding contours I want to check is th

2019-02-11 05:07:20 -0600 asked a question Detect is the contour is in the mask area with JS

Detect is the contour is in the mask area with JS I'm using findContours(), after finding contours I want to check is it

2019-02-06 04:31:52 -0600 answered a question Is there a way to read videos from internet?(Opencv.JS)

In your HTML you have to have a <video></video> tag, if want it to be hidden, just give style="display:none"

2019-02-06 04:31:27 -0600 commented question Is there a way to read videos from internet?(Opencv.JS)

In your HTML you have to have a <video></video> tag, if want it to be hidden, just give style="display:none"

2019-01-24 00:30:08 -0600 asked a question cv.inpaint in OpenCV.js

cv.inpaint in OpenCV.js I'm using opencv.js and I've built it as it is described in the official documentation Now I wa

2019-01-23 07:42:32 -0600 answered a question how to include opencv.js and opencv.wasm into html?

Keep opencv.js and opencv_js.wasm in the same directory. Then simply include opencv.js in your HTML <script src="./

2019-01-23 06:42:03 -0600 answered a question How to create a mask in OpenCV.js?

const mask = cv.Mat.zeros(8, 8, cv.CV_8UC3);

2019-01-23 06:14:28 -0600 commented question Could not generate .wasm file when building opencv.js

Exactly the same problem here. I've also tried to build the latest version and there were only 2 files in the build_wasm

2019-01-18 06:48:58 -0600 commented answer How to increase TOTAL_MEMORY for OpenCV JS?

Thank you! I'll try it

2019-01-15 00:03:02 -0600 received badge  Enthusiast
2019-01-14 06:14:20 -0600 received badge  Supporter (source)
2019-01-14 06:11:38 -0600 asked a question How to increase TOTAL_MEMORY for OpenCV JS?

How to increase TOTAL_MEMORY for OpenCV JS? I am using *opencv.js *. After some time working (about 1 min) it crashes a

2018-12-25 07:36:17 -0600 commented answer addWeighted in OpenCV JS

Thank you, it solved my problem

2018-12-25 07:34:26 -0600 marked best answer addWeighted in OpenCV JS

I want to use addweighted function with opencv.js. I've attached opencv.js to my HTML

<script src="opencv.js"></script>

And here is the code that I use

const image1 = cv.imread(imgElement);
const image2 = image.clone();  //image2 is cloned from image1  to be sure that they have the same size
const addWeightedMat = new cv.Mat(image1.rows, image1.cols, image1.type());
const alpha = 0.7;
const betta = 0.3;
const gamma = 0;

cv.addWeighted(image1, alpha, image2, betta, addWeightedMat, gamma);

The Error message says

Uncaught TypeError: Cannot convert "[object Object]" to double
at Object.toWireType (opencv.js:24)
at Object.addWeighted (eval at new_ (opencv.js:24), <anonymous>:11:26)
at Object.addWeighted (opencv.js:24)

How can I fix this?

2018-12-25 07:34:26 -0600 received badge  Scholar (source)
2018-12-25 06:49:24 -0600 received badge  Editor (source)
2018-12-25 06:49:24 -0600 edited question addWeighted in OpenCV JS

addWeighted in OpenCV JS I want to use addweighted function with opencv.js. I've attached opencv.js to my HTML <sc

2018-12-25 06:47:48 -0600 commented question addWeighted in OpenCV JS

Sure, will replace it

2018-12-25 06:43:53 -0600 asked a question addWeighted in OpenCV JS

addWeighted in OpenCV JS I want to use addweighted function with opencv.js. I've attached opencv.js to my HTML <sc