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

[BUG] Nodemon crashes when using cv.findContour() function #682

Open
Jovaaa opened this issue Jul 21, 2021 · 0 comments
Open

[BUG] Nodemon crashes when using cv.findContour() function #682

Jovaaa opened this issue Jul 21, 2021 · 0 comments
Labels

Comments

@Jovaaa
Copy link

Jovaaa commented Jul 21, 2021

I read the image, convert to grayscale, use gaussian blur, use canny, and now I started with findContours(). This is where the problem starts. It finds the contours - sometimes works once, and then the second time crashes.

This is my code:

image

And this is what I get in console:

image

I'm also wondering if this is a problem with load balancing, I never used pm2.

When I use this endpoint without the findContours() function, it works every time.

I'm using react as a frontend to send the image. I've noticed that npm starts multiple node.exe instances when starting both express backend and react - maybe this is an issue?

image

If someone can help I will much appreciate that. Thanks

Edit: I didn't mention, I'm using OpenCV 2.4 version like it says in the opencv npm package, I followed these instructions for installation: #378 (comment)

@Jovaaa Jovaaa added the bug label Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant