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

Slow Response Time - OpenCV and Express.js #126

Open
krzychuuu132 opened this issue Feb 13, 2024 · 0 comments
Open

Slow Response Time - OpenCV and Express.js #126

krzychuuu132 opened this issue Feb 13, 2024 · 0 comments

Comments

@krzychuuu132
Copy link

Hello,

I've deployed an Express.js application with OpenCV using the @opencv4nodejs module on https://dashboard.render.com/ with the Starter plan of 0.5 CPU and 512 MB of RAM.

I faced significant challenges during the build process due to the long build time and resources consumed by this library, but I eventually succeeded. I created an endpoint in Express.js where I perform object detection, retrieve the position of the detected object, and return the response.

However, the issue arises with the response time, as I need to wait for up to 9 seconds to receive the data, whereas in my application, I require data from this endpoint every 2 seconds. Is this even feasible? Or perhaps I'm doing something wrong and there's a way to optimize it? It's possible that I'm using too weak a server for this type of operation ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant