OpenCV 5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches

Enumerations

enum  Code {
  StsOk = 0 ,
  StsBackTrace = -1 ,
  StsError = -2 ,
  StsInternal = -3 ,
  StsNoMem = -4 ,
  StsBadArg = -5 ,
  StsBadFunc = -6 ,
  StsNoConv = -7 ,
  StsAutoTrace = -8 ,
  HeaderIsNull = -9 ,
  BadImageSize = -10 ,
  BadOffset = -11 ,
  BadDataPtr = -12 ,
  BadStep = -13 ,
  BadModelOrChSeq = -14 ,
  BadNumChannels = -15 ,
  BadNumChannel1U = -16 ,
  BadDepth = -17 ,
  BadAlphaChannel = -18 ,
  BadOrder = -19 ,
  BadOrigin = -20 ,
  BadAlign = -21 ,
  BadCallBack = -22 ,
  BadTileSize = -23 ,
  BadCOI = -24 ,
  BadROISize = -25 ,
  MaskIsTiled = -26 ,
  StsNullPtr = -27 ,
  StsVecLengthErr = -28 ,
  StsFilterStructContentErr = -29 ,
  StsKernelStructContentErr = -30 ,
  StsFilterOffsetErr = -31 ,
  StsBadSize = -201 ,
  StsDivByZero = -202 ,
  StsInplaceNotSupported = -203 ,
  StsObjectNotFound = -204 ,
  StsUnmatchedFormats = -205 ,
  StsBadFlag = -206 ,
  StsBadPoint = -207 ,
  StsBadMask = -208 ,
  StsUnmatchedSizes = -209 ,
  StsUnsupportedFormat = -210 ,
  StsOutOfRange = -211 ,
  StsParseError = -212 ,
  StsNotImplemented = -213 ,
  StsBadMemBlock = -214 ,
  StsAssert = -215 ,
  GpuNotSupported = -216 ,
  GpuApiCallError = -217 ,
  OpenGlNotSupported = -218 ,
  OpenGlApiCallError = -219 ,
  OpenCLApiCallError = -220 ,
  OpenCLDoubleNotSupported = -221 ,
  OpenCLInitError = -222 ,
  OpenCLNoAMDBlasFft = -223
}
 error codes More...
 

Enumeration Type Documentation

◆ Code

error codes

Enumerator
StsOk 
Python: cv.Error.StsOk

everything is ok

StsBackTrace 
Python: cv.Error.StsBackTrace

pseudo error for back trace

StsError 
Python: cv.Error.StsError

unknown /unspecified error

StsInternal 
Python: cv.Error.StsInternal

internal error (bad state)

StsNoMem 
Python: cv.Error.StsNoMem

insufficient memory

StsBadArg 
Python: cv.Error.StsBadArg

function arg/param is bad

StsBadFunc 
Python: cv.Error.StsBadFunc

unsupported function

StsNoConv 
Python: cv.Error.StsNoConv

iteration didn't converge

StsAutoTrace 
Python: cv.Error.StsAutoTrace

tracing

HeaderIsNull 
Python: cv.Error.HeaderIsNull

image header is NULL

BadImageSize 
Python: cv.Error.BadImageSize

image size is invalid

BadOffset 
Python: cv.Error.BadOffset

offset is invalid

BadDataPtr 
Python: cv.Error.BadDataPtr
BadStep 
Python: cv.Error.BadStep

image step is wrong, this may happen for a non-continuous matrix.

BadModelOrChSeq 
Python: cv.Error.BadModelOrChSeq
BadNumChannels 
Python: cv.Error.BadNumChannels

bad number of channels, for example, some functions accept only single channel matrices.

BadNumChannel1U 
Python: cv.Error.BadNumChannel1U
BadDepth 
Python: cv.Error.BadDepth

input image depth is not supported by the function

BadAlphaChannel 
Python: cv.Error.BadAlphaChannel
BadOrder 
Python: cv.Error.BadOrder

number of dimensions is out of range

BadOrigin 
Python: cv.Error.BadOrigin

incorrect input origin

BadAlign 
Python: cv.Error.BadAlign

incorrect input align

BadCallBack 
Python: cv.Error.BadCallBack
BadTileSize 
Python: cv.Error.BadTileSize
BadCOI 
Python: cv.Error.BadCOI

input COI is not supported

BadROISize 
Python: cv.Error.BadROISize

incorrect input roi

MaskIsTiled 
Python: cv.Error.MaskIsTiled
StsNullPtr 
Python: cv.Error.StsNullPtr

null pointer

StsVecLengthErr 
Python: cv.Error.StsVecLengthErr

incorrect vector length

StsFilterStructContentErr 
Python: cv.Error.StsFilterStructContentErr

incorrect filter structure content

StsKernelStructContentErr 
Python: cv.Error.StsKernelStructContentErr

incorrect transform kernel content

StsFilterOffsetErr 
Python: cv.Error.StsFilterOffsetErr

incorrect filter offset value

StsBadSize 
Python: cv.Error.StsBadSize

the input/output structure size is incorrect

StsDivByZero 
Python: cv.Error.StsDivByZero

division by zero

StsInplaceNotSupported 
Python: cv.Error.StsInplaceNotSupported

in-place operation is not supported

StsObjectNotFound 
Python: cv.Error.StsObjectNotFound

request can't be completed

StsUnmatchedFormats 
Python: cv.Error.StsUnmatchedFormats

formats of input/output arrays differ

StsBadFlag 
Python: cv.Error.StsBadFlag

flag is wrong or not supported

StsBadPoint 
Python: cv.Error.StsBadPoint

bad CvPoint

StsBadMask 
Python: cv.Error.StsBadMask

bad format of mask (neither 8uC1 nor 8sC1)

StsUnmatchedSizes 
Python: cv.Error.StsUnmatchedSizes

sizes of input/output structures do not match

StsUnsupportedFormat 
Python: cv.Error.StsUnsupportedFormat

the data format/type is not supported by the function

StsOutOfRange 
Python: cv.Error.StsOutOfRange

some of parameters are out of range

StsParseError 
Python: cv.Error.StsParseError

invalid syntax/structure of the parsed file

StsNotImplemented 
Python: cv.Error.StsNotImplemented

the requested function/feature is not implemented

StsBadMemBlock 
Python: cv.Error.StsBadMemBlock

an allocated block has been corrupted

StsAssert 
Python: cv.Error.StsAssert

assertion failed

GpuNotSupported 
Python: cv.Error.GpuNotSupported

no CUDA support

GpuApiCallError 
Python: cv.Error.GpuApiCallError

GPU API call error.

OpenGlNotSupported 
Python: cv.Error.OpenGlNotSupported

no OpenGL support

OpenGlApiCallError 
Python: cv.Error.OpenGlApiCallError

OpenGL API call error.

OpenCLApiCallError 
Python: cv.Error.OpenCLApiCallError

OpenCL API call error.

OpenCLDoubleNotSupported 
Python: cv.Error.OpenCLDoubleNotSupported
OpenCLInitError 
Python: cv.Error.OpenCLInitError

OpenCL initialization error.

OpenCLNoAMDBlasFft 
Python: cv.Error.OpenCLNoAMDBlasFft