-
Notifications
You must be signed in to change notification settings - Fork 851
Description
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:
And this is what I get in console:
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?
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)