Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@u4/opencv-build
Advanced tools
A simple script to auto build recent OpenCV + contrib version via npm 2021 Edition
A simple script to auto build recent OpenCV + contrib version via npm. This script is used to auto build opencv4nodejs.
new OpenCVBuilder().install()
new OpenCVBuilder(new OpenCVBuildEnv({version: "3.4.16", autoBuildBuildCuda: true, autoBuildWithoutContrib: false, })).install()
npm install opencv-build
for old nodejs
npm install --global windows-build-tools
It's possible to specify build environment variables by inserting them into the package.json
where the dependency is declared an object like:
{
"opencv4nodejs": {
"autoBuildFlags": "-DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_PC_FILE_NAME=opencv.pc",
"autoBuildOpencvVersion": "4.5.4"
}
}
The following opencv4nodejs parameters can be passed:
Can be set using the environment variables OPENCV4NODEJS_BUILD_CUDA
set any value to enable, the following cMake flag will be added:
Can be set using the environment variables OPENCV4NODEJS_AUTOBUILD_FLAGS
Append option to CMake flags.
Can be set using the environment variables OPENCV4NODEJS_AUTOBUILD_OPENCV_VERSION
Choose the openCV version you want to build default value is 3.4.16
.
Can be set using the environment variables OPENCV4NODEJS_AUTOBUILD_WITHOUT_CONTRIB
Set any value to enable, this option will skip openCV Contribs.
Can be set using the environment variables OPENCV4NODEJS_DISABLE_AUTOBUILD
Set any value to disable compilation from sources.
Over write the OPENCV_INCLUDE_DIR environment variables
Over write the OPENCV_LIB_DIR environment variables
Over write the OPENCV_BIN_DIR environment variables
OPENCV4NODEJS_AUTOBUILD_FLAGS=-DBUILD_LIST=core,imgproc,imgcodecs,videoio,highgui,video,calib3d,features2d,objdetect,dnn,ml,flann,photo,stitching,gapi
npm run build && OPENCV4NODEJS_AUTOBUILD_OPENCV_VERSION=3.4.15 OPENCV4NODEJS_AUTOBUILD_WITHOUT_CONTRIB=1 npm run do-install
npm run build && OPENCV4NODEJS_AUTOBUILD_OPENCV_VERSION=4.5.4 OPENCV4NODEJS_AUTOBUILD_WITHOUT_CONTRIB=1 npm run do-install
FAQs
Script to auto build recent OpenCV + contrib via npm 2024 Edition
The npm package @u4/opencv-build receives a total of 539 weekly downloads. As such, @u4/opencv-build popularity was classified as not popular.
We found that @u4/opencv-build demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.