Skip to content

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

@Jovaaa

Description

@Jovaaa

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions