mirror of
https://github.com/opencv/opencv.git
synced 2026-09-13 05:42:51 -05:00
Merge pull request #18068 from lionkunonly:gsoc_2020_simd
[GSoC] OpenCV.js: WASM SIMD optimization 2.0 * gsoc_2020_simd Add perf test for filter2d * add perf test for kernel scharr and kernel gaussianBlur * add perf test for blur, medianBlur, erode, dilate * fix the errors for the opencv PR robot fix the trailing whitespace. * add perf tests for kernel remap, warpAffine, warpPersepective, pyrDown * fix a bug in modules/js/perf/perf_imgproc/perf_remap.js * add function smoothBorder in helpfun.js and remove replicated function in perf test of warpAffine and warpPrespective * fix the trailing white space issues * add OpenCV.js loader * Implement the Loader with help of WebAssembly Feature Detection, remove trailing whitespaces * modify the explantion for loader in js_setup.markdown and fix bug in loader.js
This commit is contained in:
@@ -201,6 +201,9 @@ class Builder:
|
||||
def build_doc(self):
|
||||
execute(["make", "-j", str(multiprocessing.cpu_count()), "doxygen"])
|
||||
|
||||
def build_loader(self):
|
||||
execute(["make", "-j", str(multiprocessing.cpu_count()), "opencv_js_loader"])
|
||||
|
||||
|
||||
#===================================================================================================
|
||||
|
||||
@@ -221,6 +224,7 @@ if __name__ == "__main__":
|
||||
parser.add_argument('--build_test', action="store_true", help="Build tests")
|
||||
parser.add_argument('--build_perf', action="store_true", help="Build performance tests")
|
||||
parser.add_argument('--build_doc', action="store_true", help="Build tutorials")
|
||||
parser.add_argument('--build_loader', action="store_true", help="Build OpenCV.js loader")
|
||||
parser.add_argument('--clean_build_dir', action="store_true", help="Clean build dir")
|
||||
parser.add_argument('--skip_config', action="store_true", help="Skip cmake config")
|
||||
parser.add_argument('--config_only', action="store_true", help="Only do cmake config")
|
||||
@@ -292,6 +296,11 @@ if __name__ == "__main__":
|
||||
log.info("=====")
|
||||
builder.build_doc()
|
||||
|
||||
if args.build_loader:
|
||||
log.info("=====")
|
||||
log.info("===== Building OpenCV.js loader")
|
||||
log.info("=====")
|
||||
builder.build_loader()
|
||||
|
||||
log.info("=====")
|
||||
log.info("===== Build finished")
|
||||
@@ -316,3 +325,8 @@ if __name__ == "__main__":
|
||||
opencvjs_tutorial_path = find_file("tutorial_js_root.html", os.path.join(builder.build_dir, "doc", "doxygen", "html"))
|
||||
if check_file(opencvjs_tutorial_path):
|
||||
log.info("OpenCV.js tutorials location: %s", opencvjs_tutorial_path)
|
||||
|
||||
if args.build_loader:
|
||||
opencvjs_loader_path = os.path.join(builder.build_dir, "bin", "loader.js")
|
||||
if check_file(opencvjs_loader_path):
|
||||
log.info("OpenCV.js loader location: %s", opencvjs_loader_path)
|
||||
|
||||
Reference in New Issue
Block a user