79335812

Date: 2025-01-07 11:27:56
Score: 0.5
Natty:
Report link

i have found the solution follow the below steps step:1 download opencv and extract it set the paths in environment variable (system variable path(bin,include,lib))

step:2 Install Python 2.7 or Python 3.x. Add Python to the system PATH during installation.(add the path to the system variable)

step:3 Download and install Visual Studio Community Edition. During installation, select the Desktop Development with C++ workload. add the path to the system variable inside the environment variable check it properly install or not(in Developer command prompt run the command "cl") step:4 then in your node project terminal run this "npm install opencv-build " after this run "npm install opencv4nodejs" it will be installed succesfully step:5 check its installed properly in app.js use this

const cv = require('opencv4nodejs'); console.log('OpenCV version:', cv.version);

the output will be OpenCV version: { major: 3, minor: 4, revision: 6 }

if any problem arises conatact me on [email protected]

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Soumya ranjan Mansingh