Click or drag to resize

Cv2FindChessboardCorners Method (InputArray, Size, OutputArray, ChessboardFlags)

Finds the positions of internal corners of the chessboard.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static bool FindChessboardCorners(
	InputArray image,
	Size patternSize,
	OutputArray corners,
	ChessboardFlags flags = ChessboardFlags.AdaptiveThresh|ChessboardFlags.NormalizeImage
)

Parameters

image
Type: OpenCvSharpInputArray
Source chessboard view. It must be an 8-bit grayscale or color image.
patternSize
Type: OpenCvSharpSize
Number of inner corners per a chessboard row and column ( patternSize = Size(points_per_row,points_per_colum) = Size(columns, rows) ).
corners
Type: OpenCvSharpOutputArray
Output array of detected corners.
flags (Optional)
Type: OpenCvSharpChessboardFlags
Various operation flags that can be zero or a combination of the ChessboardFlag values

Return Value

Type: Boolean
The function returns true if all of the corners are found and they are placed in a certain order (row by row, left to right in every row). Otherwise, if the function fails to find all the corners or reorder them, it returns false.
See Also