Open Source Computer Vision Library https://opencv.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Miguel Daipré 888469a842
fix: performance typo
1 month ago
..
perf_imgproc fix: js perf tests 4 months ago
README.md Fix spelling typos 5 years ago
base.js Merge pull request #19771 from lionkunonly:opencvjsNodeFix 4 years ago
package.json fix: performance typo 1 month ago
perf_64bits.html Merge pull request #18068 from lionkunonly:gsoc_2020_simd 4 years ago
perf_64bits.js fix: js perf tests 4 months ago
perf_helpfunc.js fix: js perf tests 4 months ago

README.md

OpenCV.js Performance Test

Node.js Version

Prerequisites

  1. node.js, npm: Make sure you have installed these beforehand with the system package manager.

  2. Benchmark.js: Make sure you have installed Benchmark.js by npm before use. Please run npm install in the directory <build_dir>/bin/perf.

How to Use

For example, if you want to test the performance of cvtColor, please run perf_cvtcolor.js by node in terminal:

node perf_cvtcolor.js

All tests of cvtColor will be run by above command.

If you just want to run one specific case, please use --test_param_filter="()" flag, like:

node perf_cvtcolor.js --test_param_filter="(1920x1080, COLOR_BGR2GRAY)"

Browser Version

How to Use

To run performance tests, please launch a local web server in <build_dir>/bin folder. For example, node http-server which serves on localhost:8080.

Navigate the web browser to the kernel page you want to test, like http://localhost:8080/perf/imgproc/cvtcolor.html.

You can input the parameter, and then click the Run button to run the specific case, or it will run all the cases.