Browse Source

Fixed documentation.

pull/859/head
Canming Huang 2 years ago
parent
commit
207875be37
  1. 49
      Emgu.CV.Contrib/Aruco/GridBoard.cs
  2. 2
      Emgu.CV.Models/TesseractModel.cs

49
Emgu.CV.Contrib/Aruco/GridBoard.cs

@ -36,12 +36,12 @@ namespace Emgu.CV.Aruco
/// <summary>
/// Create a GridBoard object.
/// </summary>
/// <param name="markersX">number of markers in X direction</param>
/// <param name="markersY">number of markers in Y direction</param>
/// <param name="markerLength">marker side length (normally in meters)</param>
/// <param name="markerSeparation">separation between two markers (same unit than markerLenght)</param>
/// <param name="dictionary">dictionary of markers indicating the type of markers. The first markersX*markersY markers in the dictionary are used.</param>
/// <param name="firstMarker"> id of first marker in dictionary to use on board.</param>
/// <param name="markersX">Number of markers in X direction</param>
/// <param name="markersY">Number of markers in Y direction</param>
/// <param name="markerLength">Marker side length (normally in meters)</param>
/// <param name="markerSeparation">Separation between two markers (same unit than markerLenght)</param>
/// <param name="dictionary">Dictionary of markers indicating the type of markers. The first markersX*markersY markers in the dictionary are used.</param>
/// <param name="ids">set of marker ids in dictionary to use on board.</param>
public GridBoard(
int markersX,
int markersY,
@ -60,22 +60,6 @@ namespace Emgu.CV.Aruco
}
}
/*
/// <summary>
/// Draw a GridBoard.
/// </summary>
/// <param name="outSize">size of the output image in pixels.</param>
/// <param name="img">output image with the board. The size of this image will be outSize and the board will be on the center, keeping the board proportions.</param>
/// <param name="marginSize">minimum margins (in pixels) of the board in the output image</param>
/// <param name="borderBits">width of the marker borders.</param>
public void Draw(Size outSize, IOutputArray img, int marginSize = 0, int borderBits = 1)
{
using (OutputArray oaImg = img.GetOutputArray())
ArucoInvoke.cveArucoGridBoardDraw(_ptr, ref outSize, oaImg, marginSize, borderBits);
}
*/
/// <summary>
/// Release the unmanaged resource associated with this GridBoard
/// </summary>
@ -120,20 +104,6 @@ namespace Emgu.CV.Aruco
_ptr = ArucoInvoke.cveCharucoBoardCreate(squaresX, squaresY, squareLength, markerLength, dictionary, ref _boardPtr, ref _sharedPtr);
}
/*
/// <summary>
/// Draw a ChArUco board
/// </summary>
/// <param name="outSize">size of the output image in pixels.</param>
/// <param name="img">output image with the board. The size of this image will be outSize and the board will be on the center, keeping the board proportions.</param>
/// <param name="margindSize">minimum margins (in pixels) of the board in the output image</param>
/// <param name="borderBits">width of the marker borders.</param>
public void Draw(Size outSize, IOutputArray img, int margindSize = 0, int borderBits = 1)
{
using (OutputArray oaImg = img.GetOutputArray())
ArucoInvoke.cveCharucoBoardDraw(_ptr, ref outSize, oaImg, margindSize, borderBits);
}*/
/// <summary>
/// Release the unmanaged resource associated with this ChArUco board
/// </summary>
@ -161,18 +131,11 @@ namespace Emgu.CV.Aruco
[DllImport(CvInvoke.ExternLibrary, CallingConvention = CvInvoke.CvCallingConvention)]
internal static extern void cveArucoGridBoardRelease(ref IntPtr gridBoard, ref IntPtr sharedPtr);
//[DllImport(CvInvoke.ExternLibrary, CallingConvention = CvInvoke.CvCallingConvention)]
//internal static extern void cveArucoGridBoardDraw(IntPtr gridBoard, ref Size outSize, IntPtr img, int marginSize, int borderBits);
[DllImport(CvInvoke.ExternLibrary, CallingConvention = CvInvoke.CvCallingConvention)]
internal static extern IntPtr cveCharucoBoardCreate(
int squaresX, int squaresY, float squareLength, float markerLength,
IntPtr dictionary, ref IntPtr boardPtr, ref IntPtr sharedPtr);
//[DllImport(CvInvoke.ExternLibrary, CallingConvention = CvInvoke.CvCallingConvention)]
//internal static extern void cveCharucoBoardDraw(IntPtr charucoBoard, ref Size outSize, IntPtr img, int marginSize, int borderBits);
[DllImport(CvInvoke.ExternLibrary, CallingConvention = CvInvoke.CvCallingConvention)]
internal static extern void cveCharucoBoardRelease(ref IntPtr charucoBoard, ref IntPtr sharedPtr);
}

2
Emgu.CV.Models/TesseractModel.cs

@ -33,7 +33,7 @@ namespace Emgu.CV.Models
private String _modelFolderName;
/// <summary>
/// Create a tesseract model with the specific language & mode
/// Create a tesseract model with the specific language and mode.
/// </summary>
/// <param name="lang">The language model</param>
/// <param name="mode">The ocr engine mode</param>

Loading…
Cancel
Save