mirror of https://github.com/opencv/opencv.git
Merge pull request #25986 from asmorkalov:as/js_for_contrib
Split Javascript white-list to support contrib modules #25986 Single whitelist converted to several per-module json files. They are concatenated automatically and can be overriden by user config. Related to https://github.com/opencv/opencv/pull/25656 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMakepull/10318/merge
parent
697512bb9f
commit
6c6d5cd7b2
11 changed files with 295 additions and 12 deletions
@ -0,0 +1,21 @@ |
||||
{ |
||||
"whitelist": |
||||
{ |
||||
"": [ |
||||
"findHomography", |
||||
"calibrateCameraExtended", |
||||
"drawFrameAxes", |
||||
"estimateAffine2D", |
||||
"getDefaultNewCameraMatrix", |
||||
"initUndistortRectifyMap", |
||||
"Rodrigues", |
||||
"solvePnP", |
||||
"solvePnPRansac", |
||||
"solvePnPRefineLM", |
||||
"projectPoints", |
||||
"undistort", |
||||
"fisheye_initUndistortRectifyMap", |
||||
"fisheye_projectPoints" |
||||
] |
||||
} |
||||
} |
@ -0,0 +1,15 @@ |
||||
{ |
||||
"whitelist": |
||||
{ |
||||
"": [ |
||||
"absdiff", "add", "addWeighted", "bitwise_and", "bitwise_not", "bitwise_or", "bitwise_xor", "cartToPolar", |
||||
"compare", "convertScaleAbs", "copyMakeBorder", "countNonZero", "determinant", "dft", "divide", "eigen", |
||||
"exp", "flip", "getOptimalDFTSize","gemm", "hconcat", "inRange", "invert", "kmeans", "log", "magnitude", |
||||
"max", "mean", "meanStdDev", "merge", "min", "minMaxLoc", "mixChannels", "multiply", "norm", "normalize", |
||||
"perspectiveTransform", "polarToCart", "pow", "randn", "randu", "reduce", "repeat", "rotate", "setIdentity", "setRNGSeed", |
||||
"solve", "solvePoly", "split", "sqrt", "subtract", "trace", "transform", "transpose", "vconcat", |
||||
"setLogLevel", "getLogLevel", "LUT" |
||||
], |
||||
"Algorithm": [] |
||||
} |
||||
} |
@ -0,0 +1,12 @@ |
||||
{ |
||||
"whitelist": |
||||
{ |
||||
"dnn_Net": ["setInput", "forward", "setPreferableBackend","getUnconnectedOutLayersNames"], |
||||
"": ["readNetFromCaffe", "readNetFromTensorflow", "readNetFromTorch", "readNetFromDarknet", |
||||
"readNetFromONNX", "readNetFromTFLite", "readNet", "blobFromImage"] |
||||
}, |
||||
"namespace_prefix_override": |
||||
{ |
||||
"dnn": "" |
||||
} |
||||
} |
@ -0,0 +1,19 @@ |
||||
{ |
||||
"whitelist": |
||||
{ |
||||
"Feature2D": ["detect", "compute", "detectAndCompute", "descriptorSize", "descriptorType", "defaultNorm", "empty", "getDefaultName"], |
||||
"BRISK": ["create", "getDefaultName"], |
||||
"ORB": ["create", "setMaxFeatures", "setScaleFactor", "setNLevels", "setEdgeThreshold", "setFastThreshold", "setFirstLevel", "setWTA_K", "setScoreType", "setPatchSize", "getFastThreshold", "getDefaultName"], |
||||
"MSER": ["create", "detectRegions", "setDelta", "getDelta", "setMinArea", "getMinArea", "setMaxArea", "getMaxArea", "setPass2Only", "getPass2Only", "getDefaultName"], |
||||
"FastFeatureDetector": ["create", "setThreshold", "getThreshold", "setNonmaxSuppression", "getNonmaxSuppression", "setType", "getType", "getDefaultName"], |
||||
"AgastFeatureDetector": ["create", "setThreshold", "getThreshold", "setNonmaxSuppression", "getNonmaxSuppression", "setType", "getType", "getDefaultName"], |
||||
"GFTTDetector": ["create", "setMaxFeatures", "getMaxFeatures", "setQualityLevel", "getQualityLevel", "setMinDistance", "getMinDistance", "setBlockSize", "getBlockSize", "setHarrisDetector", "getHarrisDetector", "setK", "getK", "getDefaultName"], |
||||
"SimpleBlobDetector": ["create", "setParams", "getParams", "getDefaultName"], |
||||
"SimpleBlobDetector_Params": [], |
||||
"KAZE": ["create", "setExtended", "getExtended", "setUpright", "getUpright", "setThreshold", "getThreshold", "setNOctaves", "getNOctaves", "setNOctaveLayers", "getNOctaveLayers", "setDiffusivity", "getDiffusivity", "getDefaultName"], |
||||
"AKAZE": ["create", "setDescriptorType", "getDescriptorType", "setDescriptorSize", "getDescriptorSize", "setDescriptorChannels", "getDescriptorChannels", "setThreshold", "getThreshold", "setNOctaves", "getNOctaves", "setNOctaveLayers", "getNOctaveLayers", "setDiffusivity", "getDiffusivity", "getDefaultName"], |
||||
"DescriptorMatcher": ["add", "clear", "empty", "isMaskSupported", "train", "match", "knnMatch", "radiusMatch", "clone", "create"], |
||||
"BFMatcher": ["isMaskSupported", "create"], |
||||
"": ["drawKeypoints", "drawMatches", "drawMatchesKnn"] |
||||
} |
||||
} |
@ -0,0 +1,95 @@ |
||||
{ |
||||
"whitelist": |
||||
{ |
||||
"": [ |
||||
"Canny", |
||||
"GaussianBlur", |
||||
"Laplacian", |
||||
"HoughLines", |
||||
"HoughLinesP", |
||||
"HoughCircles", |
||||
"Scharr", |
||||
"Sobel", |
||||
"adaptiveThreshold", |
||||
"approxPolyDP", |
||||
"arcLength", |
||||
"bilateralFilter", |
||||
"blur", |
||||
"boundingRect", |
||||
"boxFilter", |
||||
"calcBackProject", |
||||
"calcHist", |
||||
"circle", |
||||
"compareHist", |
||||
"connectedComponents", |
||||
"connectedComponentsWithStats", |
||||
"contourArea", |
||||
"convexHull", |
||||
"convexityDefects", |
||||
"cornerHarris", |
||||
"cornerMinEigenVal", |
||||
"createCLAHE", |
||||
"createLineSegmentDetector", |
||||
"cvtColor", |
||||
"demosaicing", |
||||
"dilate", |
||||
"distanceTransform", |
||||
"distanceTransformWithLabels", |
||||
"drawContours", |
||||
"ellipse", |
||||
"ellipse2Poly", |
||||
"equalizeHist", |
||||
"erode", |
||||
"filter2D", |
||||
"findContours", |
||||
"fitEllipse", |
||||
"fitLine", |
||||
"floodFill", |
||||
"getAffineTransform", |
||||
"getPerspectiveTransform", |
||||
"getRotationMatrix2D", |
||||
"getStructuringElement", |
||||
"goodFeaturesToTrack", |
||||
"grabCut", |
||||
"integral", |
||||
"integral2", |
||||
"isContourConvex", |
||||
"line", |
||||
"matchShapes", |
||||
"matchTemplate", |
||||
"medianBlur", |
||||
"minAreaRect", |
||||
"minEnclosingCircle", |
||||
"moments", |
||||
"morphologyEx", |
||||
"pointPolygonTest", |
||||
"putText", |
||||
"pyrDown", |
||||
"pyrUp", |
||||
"rectangle", |
||||
"remap", |
||||
"resize", |
||||
"sepFilter2D", |
||||
"threshold", |
||||
"warpAffine", |
||||
"warpPerspective", |
||||
"warpPolar", |
||||
"watershed", |
||||
"fillPoly", |
||||
"fillConvexPoly", |
||||
"polylines" |
||||
], |
||||
"CLAHE": ["apply", "collectGarbage", "getClipLimit", "getTilesGridSize", "setClipLimit", "setTilesGridSize"], |
||||
"segmentation_IntelligentScissorsMB": [ |
||||
"IntelligentScissorsMB", |
||||
"setWeights", |
||||
"setGradientMagnitudeMaxLimit", |
||||
"setEdgeFeatureZeroCrossingParameters", |
||||
"setEdgeFeatureCannyParameters", |
||||
"applyImage", |
||||
"applyImageFeatures", |
||||
"buildMap", |
||||
"getContour" |
||||
] |
||||
} |
||||
} |
@ -0,0 +1,28 @@ |
||||
{ |
||||
"whitelist": |
||||
{ |
||||
"": ["groupRectangles", "getPredefinedDictionary", "extendDictionary", "drawDetectedMarkers", "generateImageMarker", "drawDetectedCornersCharuco", "drawDetectedDiamonds"], |
||||
"HOGDescriptor": ["load", "HOGDescriptor", "getDefaultPeopleDetector", "getDaimlerPeopleDetector", "setSVMDetector", "detectMultiScale"], |
||||
"CascadeClassifier": ["load", "detectMultiScale2", "CascadeClassifier", "detectMultiScale3", "empty", "detectMultiScale"], |
||||
"GraphicalCodeDetector": ["decode", "detect", "detectAndDecode", "detectMulti", "decodeMulti", "detectAndDecodeMulti"], |
||||
"QRCodeDetector": ["QRCodeDetector", "decode", "detect", "detectAndDecode", "detectMulti", "decodeMulti", "detectAndDecodeMulti", "decodeCurved", "detectAndDecodeCurved", "setEpsX", "setEpsY"], |
||||
"aruco_PredefinedDictionaryType": [], |
||||
"aruco_Dictionary": ["Dictionary", "getDistanceToId", "generateImageMarker", "getByteListFromBits", "getBitsFromByteList"], |
||||
"aruco_Board": ["Board", "matchImagePoints", "generateImage"], |
||||
"aruco_GridBoard": ["GridBoard", "generateImage", "getGridSize", "getMarkerLength", "getMarkerSeparation", "matchImagePoints"], |
||||
"aruco_CharucoParameters": ["CharucoParameters"], |
||||
"aruco_CharucoBoard": ["CharucoBoard", "generateImage", "getChessboardCorners", "getNearestMarkerCorners", "checkCharucoCornersCollinear", "matchImagePoints", "getLegacyPattern", "setLegacyPattern"], |
||||
"aruco_DetectorParameters": ["DetectorParameters"], |
||||
"aruco_RefineParameters": ["RefineParameters"], |
||||
"aruco_ArucoDetector": ["ArucoDetector", "detectMarkers", "refineDetectedMarkers", "setDictionary", "setDetectorParameters", "setRefineParameters"], |
||||
"aruco_CharucoDetector": ["CharucoDetector", "setBoard", "setCharucoParameters", "setDetectorParameters", "setRefineParameters", "detectBoard", "detectDiamonds"], |
||||
"QRCodeDetectorAruco_Params": ["Params"], |
||||
"QRCodeDetectorAruco": ["QRCodeDetectorAruco", "decode", "detect", "detectAndDecode", "detectMulti", "decodeMulti", "detectAndDecodeMulti", "setDetectorParameters", "setArucoParameters"], |
||||
"barcode_BarcodeDetector": ["BarcodeDetector", "decode", "detect", "detectAndDecode", "detectMulti", "decodeMulti", "detectAndDecodeMulti", "decodeWithType", "detectAndDecodeWithType"], |
||||
"FaceDetectorYN": ["setInputSize", "getInputSize", "setScoreThreshold", "getScoreThreshold", "setNMSThreshold", "getNMSThreshold", "setTopK", "getTopK", "detect", "create"] |
||||
}, |
||||
"namespace_prefix_override": |
||||
{ |
||||
"aruco": "" |
||||
} |
||||
} |
@ -0,0 +1,25 @@ |
||||
{ |
||||
"whitelist": |
||||
{ |
||||
"": [ |
||||
"createAlignMTB", "createCalibrateDebevec", "createCalibrateRobertson", |
||||
"createMergeDebevec", "createMergeMertens", "createMergeRobertson", |
||||
"createTonemapDrago", "createTonemapMantiuk", "createTonemapReinhard", "inpaint"], |
||||
"CalibrateCRF": ["process"], |
||||
"AlignMTB" : ["calculateShift", "shiftMat", "computeBitmaps", "getMaxBits", "setMaxBits", |
||||
"getExcludeRange", "setExcludeRange", "getCut", "setCut"], |
||||
"CalibrateDebevec" : ["getLambda", "setLambda", "getSamples", "setSamples", "getRandom", "setRandom"], |
||||
"CalibrateRobertson" : ["getMaxIter", "setMaxIter", "getThreshold", "setThreshold", "getRadiance"], |
||||
"MergeExposures" : ["process"], |
||||
"MergeDebevec" : ["process"], |
||||
"MergeMertens" : ["process", "getContrastWeight", "setContrastWeight", "getSaturationWeight", |
||||
"setSaturationWeight", "getExposureWeight", "setExposureWeight"], |
||||
"MergeRobertson" : ["process"], |
||||
"Tonemap" : ["process" , "getGamma", "setGamma"], |
||||
"TonemapDrago" : ["getSaturation", "setSaturation", "getBias", "setBias", |
||||
"getSigmaColor", "setSigmaColor", "getSigmaSpace","setSigmaSpace"], |
||||
"TonemapMantiuk" : ["getScale", "setScale", "getSaturation", "setSaturation"], |
||||
"TonemapReinhard" : ["getIntensity", "setIntensity", "getLightAdaptation", "setLightAdaptation", |
||||
"getColorAdaptation", "setColorAdaptation"] |
||||
} |
||||
} |
@ -0,0 +1,17 @@ |
||||
{ |
||||
"whitelist": |
||||
{ |
||||
"": [ |
||||
"CamShift", |
||||
"calcOpticalFlowFarneback", |
||||
"calcOpticalFlowPyrLK", |
||||
"createBackgroundSubtractorMOG2", |
||||
"findTransformECC", |
||||
"meanShift" |
||||
], |
||||
"BackgroundSubtractorMOG2": ["BackgroundSubtractorMOG2", "apply"], |
||||
"BackgroundSubtractor": ["apply", "getBackgroundImage"], |
||||
"TrackerMIL": ["create"], |
||||
"TrackerMIL_Params": [] |
||||
} |
||||
} |
Loading…
Reference in new issue