这是所有OpenCV的方法(通过print(dir("cv2"))
可获得cv2的所有方法和属性),在该网址下可以查到多种语言的用法:https://docs.opencv.org/3.0-beta/index.html
。
‘absdiff’, ‘accumulate’, ‘accumulateProduct’, ‘accumulateSquare’, ‘accumulateWeighted’, ‘adaptiveThreshold’, ‘add’, ‘addText’, ‘addWeighted’, ‘applyColorMap’, ‘approxPolyDP’, ‘arcLength’, ‘arrowedLine’, ‘batchDistance’, ‘bilateralFilter’, ‘bitwise_and’, ‘bitwise_not’, ‘bitwise_or’, ‘bitwise_xor’, ‘blur’, ‘borderInterpolate’, ‘boundingRect’, ‘boxFilter’, ‘boxPoints’, ‘buildOpticalFlowPyramid’, ‘calcBackProject’, ‘calcCovarMatrix’, ‘calcHist’, ‘calcOpticalFlowFarneback’, ‘calcOpticalFlowPyrLK’, ‘calibrateCamera’, ‘calibrateCameraExtended’, ‘calibrateCameraRO’, ‘calibrateCameraROExtended’, ‘calibrateHandEye’, ‘calibrationMatrixValues’, ‘cartToPolar’, ‘checkChessboard’, ‘checkHardwareSupport’, ‘checkRange’, ‘circle’, ‘clipLine’, ‘colorChange’, ‘compare’, ‘compareHist’, ‘completeSymm’, ‘composeRT’, ‘computeCorrespondEpilines’, ‘computeECC’, ‘connectedComponents’, ‘connectedComponentsWithAlgorithm’, ‘connectedComponentsWithStats’, ‘connectedComponentsWithStatsWithAlgorithm’, ‘contourArea’, ‘convertFp16’, ‘convertMaps’, ‘convertPointsFromHomogeneous’, ‘convertPointsToHomogeneous’, ‘convertScaleAbs’, ‘convexHull’, ‘convexityDefects’, ‘copyMakeBorder’, ‘copyTo’, ‘cornerEigenValsAndVecs’, ‘cornerHarris’, ‘cornerMinEigenVal’, ‘cornerSubPix’, ‘correctMatches’, ‘countNonZero’, ‘createAlignMTB’, ‘createBackgroundSubtractorKNN’, ‘createBackgroundSubtractorMOG2’, ‘createButton’, ‘createCLAHE’, ‘createCalibrateDebevec’, ‘createCalibrateRobertson’, ‘createGeneralizedHoughBallard’, ‘createGeneralizedHoughGuil’, ‘createHanningWindow’, ‘createLineSegmentDetector’, ‘createMergeDebevec’, ‘createMergeMertens’, ‘createMergeRobertson’, ‘createTonemap’, ‘createTonemapDrago’, ‘createTonemapMantiuk’, ‘createTonemapReinhard’, ‘createTrackbar’, ‘cubeRoot’, ‘cuda’, ‘cuda_BufferPool’, ‘cuda_DeviceInfo’, ‘cuda_Event’, ‘cuda_GpuMat’, ‘cuda_GpuMat_Allocator’, ‘cuda_HostMem’, ‘cuda_Stream’, ‘cuda_TargetArchs’, ‘cv2’, ‘cvtColor’, ‘cvtColorTwoPlane’, ‘data’, ‘dct’, ‘decolor’, ‘decomposeEssentialMat’, ‘decomposeHomographyMat’, ‘decomposeProjectionMatrix’, ‘demosaicing’, ‘denoise_TVL1’, ‘destroyAllWindows’, ‘destroyWindow’, ‘detail’, ‘detailEnhance’, ‘detail_AffineBasedEstimator’, ‘detail_AffineBestOf2NearestMatcher’, ‘detail_BestOf2NearestMatcher’, ‘detail_BestOf2NearestRangeMatcher’, ‘detail_Blender’, ‘detail_BlocksChannelsCompensator’, ‘detail_BlocksCompensator’, ‘detail_BlocksGainCompensator’, ‘detail_BundleAdjusterAffine’, ‘detail_BundleAdjusterAffinePartial’, ‘detail_BundleAdjusterBase’, ‘detail_BundleAdjusterRay’, ‘detail_BundleAdjusterReproj’, ‘detail_CameraParams’, ‘detail_ChannelsCompensator’, ‘detail_DpSeamFinder’, ‘detail_Estimator’, ‘detail_ExposureCompensator’, ‘detail_FeatherBlender’, ‘detail_FeaturesMatcher’, ‘detail_GainCompensator’, ‘detail_GraphCutSeamFinder’, ‘detail_HomographyBasedEstimator’, ‘detail_ImageFeatures’, ‘detail_MatchesInfo’, ‘detail_MultiBandBlender’, ‘detail_NoBundleAdjuster’, ‘detail_NoExposureCompensator’, ‘detail_NoSeamFinder’, ‘detail_PairwiseSeamFinder’, ‘detail_ProjectorBase’, ‘detail_SeamFinder’, ‘detail_SphericalProjector’, ‘detail_Timelapser’, ‘detail_TimelapserCrop’, ‘detail_VoronoiSeamFinder’, ‘determinant’, ‘dft’, ‘dilate’, ‘displayOverlay’, ‘displayStatusBar’, ‘distanceTransform’, ‘distanceTransformWithLabels’, ‘divide’, ‘dnn’, ‘dnn_DictValue’, ‘dnn_Layer’, ‘dnn_Net’, ‘dnn_registerLayer’, ‘dnn_unregisterLayer’, ‘drawChessboardCorners’, ‘drawContours’, ‘drawFrameAxes’, ‘drawKeypoints’, ‘drawMarker’, ‘drawMatches’, ‘drawMatchesKnn’, ‘edgePreservingFilter’, ‘eigen’, ‘eigenNonSymmetric’, ‘ellipse’, ‘ellipse2Poly’, ‘equalizeHist’, ‘erode’, ‘error’, ‘estimateAffine2D’, ‘estimateAffine3D’, ‘estimateAffinePartial2D’, ‘exp’, ‘extractChannel’, ‘fastAtan2’, ‘fastNlMeansDenoising’, ‘fastNlMeansDenoisingColored’, ‘fastNlMeansDenoisingColoredMulti’, ‘fastNlMeansDenoisingMulti’, ‘fillConvexPoly’, ‘fillPoly’, ‘filter2D’, ‘filterHomographyDecompByVisibleRefpoints’, ‘filterSpeckles’, ‘find4QuadCornerSubpix’, ‘findChessboardCorners’, ‘findChessboardCornersSB’, ‘findCirclesGrid’, ‘findContours’, ‘findEssentialMat’, ‘findFundamentalMat’, ‘findHomography’, ‘findNonZero’, ‘findTransformECC’, ‘fisheye’, ‘fitEllipse’, ‘fitEllipseAMS’, ‘fitEllipseDirect’, ‘fitLine’, ‘flann’, ‘flann_Index’, ‘flip’, ‘floodFill’, ‘gemm’, ‘getAffineTransform’, ‘getBuildInformation’, ‘getCPUTickCount’, ‘getDefaultNewCameraMatrix’, ‘getDerivKernels’, ‘getFontScaleFromHeight’, ‘getGaborKernel’, ‘getGaussianKernel’, ‘getHardwareFeatureName’, ‘getNumThreads’, ‘getNumberOfCPUs’, ‘getOptimalDFTSize’, ‘getOptimalNewCameraMatrix’, ‘getPerspectiveTransform’, ‘getRectSubPix’, ‘getRotationMatrix2D’, ‘getStructuringElement’, ‘getTextSize’, ‘getThreadNum’, ‘getTickCount’, ‘getTickFrequency’, ‘getTrackbarPos’, ‘getValidDisparityROI’, ‘getVersionMajor’, ‘getVersionMinor’, ‘getVersionRevision’, ‘getVersionString’, ‘getWindowImageRect’, ‘getWindowProperty’, ‘goodFeaturesToTrack’, ‘grabCut’, ‘groupRectangles’, ‘haarcascades’, ‘haveImageReader’, ‘haveImageWriter’, ‘haveOpenVX’, ‘hconcat’, ‘idct’, ‘idft’, ‘illuminationChange’, ‘imdecode’, ‘imencode’, ‘importlib’, ‘imread’, ‘imreadmulti’, ‘imshow’, ‘imwrite’, ‘inRange’, ‘initCameraMatrix2D’, ‘initUndistortRectifyMap’, ‘inpaint’, ‘insertChannel’, ‘instr’, ‘integral’, ‘integral2’, ‘integral3’, ‘intersectConvexConvex’, ‘invert’, ‘invertAffineTransform’, ‘ipp’, ‘isContourConvex’, ‘kmeans’, ‘line’, ‘linearPolar’, ‘log’, ‘logPolar’, ‘magnitude’, ‘matMulDeriv’, ‘matchShapes’, ‘matchTemplate’, ‘max’, ‘mean’, ‘meanShift’, ‘meanStdDev’, ‘medianBlur’, ‘merge’, ‘min’, ‘minAreaRect’, ‘minEnclosingCircle’, ‘minEnclosingTriangle’, ‘minMaxLoc’, ‘mixChannels’, ‘ml’, ‘ml_ANN_MLP’, ‘ml_Boost’, ‘ml_DTrees’, ‘ml_EM’, ‘ml_KNearest’, ‘ml_LogisticRegression’, ‘ml_NormalBayesClassifier’, ‘ml_ParamGrid’, ‘ml_RTrees’, ‘ml_SVM’, ‘ml_SVMSGD’, ‘ml_StatModel’, ‘ml_TrainData’, ‘moments’, ‘morphologyEx’, ‘moveWindow’, ‘mulSpectrums’, ‘mulTransposed’, ‘multiply’, ‘namedWindow’, ‘norm’, ‘normalize’, ‘ocl’, ‘ocl_Device’, ‘ogl’, ‘os’, ‘patchNaNs’, ‘pencilSketch’, ‘perspectiveTransform’, ‘phase’, ‘phaseCorrelate’, ‘pointPolygonTest’, ‘polarToCart’, ‘polylines’, ‘pow’, ‘preCornerDetect’, ‘projectPoints’, ‘putText’, ‘pyrDown’, ‘pyrMeanShiftFiltering’, ‘pyrUp’, ‘randShuffle’, ‘randn’, ‘randu’, ‘readOpticalFlow’, ‘recoverPose’, ‘rectangle’, ‘rectify3Collinear’, ‘redirectError’, ‘reduce’, ‘remap’, ‘repeat’, ‘reprojectImageTo3D’, ‘resize’, ‘resizeWindow’, ‘rotate’, ‘rotatedRectangleIntersection’, ‘samples’, ‘sampsonDistance’, ‘scaleAdd’, ‘seamlessClone’, ‘selectROI’, ‘selectROIs’, ‘sepFilter2D’, ‘setIdentity’, ‘setMouseCallback’, ‘setNumThreads’, ‘setRNGSeed’, ‘setTrackbarMax’, ‘setTrackbarMin’, ‘setTrackbarPos’, ‘setUseOpenVX’, ‘setUseOptimized’, ‘setWindowProperty’, ‘setWindowTitle’, ‘solve’, ‘solveCubic’, ‘solveLP’, ‘solveP3P’, ‘solvePnP’, ‘solvePnPGeneric’, ‘solvePnPRansac’, ‘solvePnPRefineLM’, ‘solvePnPRefineVVS’, ‘solvePoly’, ‘sort’, ‘sortIdx’, ‘spatialGradient’, ‘split’, ‘sqrBoxFilter’, ‘sqrt’, ‘startWindowThread’, ‘stereoCalibrate’, ‘stereoCalibrateExtended’, ‘stereoRectify’, ‘stereoRectifyUncalibrated’, ‘stylization’, ‘subtract’, ‘sumElems’, ‘textureFlattening’, ‘threshold’, ‘trace’, ‘transform’, ‘transpose’, ‘triangulatePoints’, ‘undistort’, ‘undistortPoints’, ‘undistortPointsIter’, ‘useOpenVX’, ‘useOptimized’, ‘utils’, ‘validateDisparity’, ‘vconcat’, ‘videoio_registry’, ‘waitKey’, ‘waitKeyEx’, ‘warpAffine’, ‘warpPerspective’, ‘warpPolar’, ‘watershed’, ‘writeOpticalFlow’