319 lines
19 KiB
XML
319 lines
19 KiB
XML
<?xml version="1.0"?>
|
|
<doc>
|
|
<assembly>
|
|
<name>AIFotoONLUS.Core</name>
|
|
</assembly>
|
|
<members>
|
|
<member name="T:AIFotoONLUS.Core.DetectedRegion">
|
|
<summary>
|
|
Represents a detected text region produced by the detection network.
|
|
</summary>
|
|
<param name="BoundingBox">Bounding rectangle of the detection in image coordinates.</param>
|
|
<param name="Confidence">Combined confidence score for the detection (objectness * class probability).</param>
|
|
<param name="ClassId">Class index predicted by the network (index into <see cref="P:AIFotoONLUS.Core.ModelConfiguration.NumberClasses"/>).</param>
|
|
<param name="CenterX">Center X coordinate (in pixels) of the bounding box, used to order detections left-to-right.</param>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.DetectedRegion.#ctor(OpenCvSharp.Rect,System.Single,System.Int32,System.Double)">
|
|
<summary>
|
|
Represents a detected text region produced by the detection network.
|
|
</summary>
|
|
<param name="BoundingBox">Bounding rectangle of the detection in image coordinates.</param>
|
|
<param name="Confidence">Combined confidence score for the detection (objectness * class probability).</param>
|
|
<param name="ClassId">Class index predicted by the network (index into <see cref="P:AIFotoONLUS.Core.ModelConfiguration.NumberClasses"/>).</param>
|
|
<param name="CenterX">Center X coordinate (in pixels) of the bounding box, used to order detections left-to-right.</param>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.DetectedRegion.BoundingBox">
|
|
<summary>Bounding rectangle of the detection in image coordinates.</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.DetectedRegion.Confidence">
|
|
<summary>Combined confidence score for the detection (objectness * class probability).</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.DetectedRegion.ClassId">
|
|
<summary>Class index predicted by the network (index into <see cref="P:AIFotoONLUS.Core.ModelConfiguration.NumberClasses"/>).</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.DetectedRegion.CenterX">
|
|
<summary>Center X coordinate (in pixels) of the bounding box, used to order detections left-to-right.</summary>
|
|
</member>
|
|
<member name="T:AIFotoONLUS.Core.RecognitionResult">
|
|
<summary>
|
|
Represents the result of recognizing a single region: recognized text,
|
|
its bounding box and confidence.
|
|
</summary>
|
|
<param name="Text">Recognized text for the region (usually a sequence of digits).</param>
|
|
<param name="BoundingBox">Bounding rectangle of the recognition result.</param>
|
|
<param name="Confidence">Confidence score associated with the recognition.</param>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.RecognitionResult.#ctor(System.String,OpenCvSharp.Rect,System.Double)">
|
|
<summary>
|
|
Represents the result of recognizing a single region: recognized text,
|
|
its bounding box and confidence.
|
|
</summary>
|
|
<param name="Text">Recognized text for the region (usually a sequence of digits).</param>
|
|
<param name="BoundingBox">Bounding rectangle of the recognition result.</param>
|
|
<param name="Confidence">Confidence score associated with the recognition.</param>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.RecognitionResult.Text">
|
|
<summary>Recognized text for the region (usually a sequence of digits).</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.RecognitionResult.BoundingBox">
|
|
<summary>Bounding rectangle of the recognition result.</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.RecognitionResult.Confidence">
|
|
<summary>Confidence score associated with the recognition.</summary>
|
|
</member>
|
|
<member name="T:AIFotoONLUS.Core.ImageResult">
|
|
<summary>
|
|
Aggregated result for a processed image.
|
|
</summary>
|
|
<param name="FileName">Name of the image file.</param>
|
|
<param name="Text">Comma-separated recognized texts found in the image (may be empty).</param>
|
|
<param name="FilePath">Full path to the processed image file.</param>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.ImageResult.#ctor(System.String,System.String,System.String)">
|
|
<summary>
|
|
Aggregated result for a processed image.
|
|
</summary>
|
|
<param name="FileName">Name of the image file.</param>
|
|
<param name="Text">Comma-separated recognized texts found in the image (may be empty).</param>
|
|
<param name="FilePath">Full path to the processed image file.</param>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ImageResult.FileName">
|
|
<summary>Name of the image file.</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ImageResult.Text">
|
|
<summary>Comma-separated recognized texts found in the image (may be empty).</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ImageResult.FilePath">
|
|
<summary>Full path to the processed image file.</summary>
|
|
</member>
|
|
<member name="T:AIFotoONLUS.Core.ModelConfiguration">
|
|
<summary>
|
|
Configuration options that control model file locations, input sizes
|
|
and runtime thresholds used by <see cref="T:AIFotoONLUS.Core.NumberRecognitionEngine"/>.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.DetectionCfg">
|
|
<summary>
|
|
Path to the Darknet configuration (.cfg) file for the detection network.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.DetectionWeights">
|
|
<summary>
|
|
Path to the Darknet weights (.weights) file for the detection network.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.RecognitionCfg">
|
|
<summary>
|
|
Path to the Darknet configuration (.cfg) file for the recognition network.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.RecognitionWeights">
|
|
<summary>
|
|
Path to the Darknet weights (.weights) file for the recognition network.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.ConfidenceThreshold">
|
|
<summary>
|
|
Confidence threshold used to filter out low-probability detections.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.NmsThreshold">
|
|
<summary>
|
|
Non-maximum suppression (NMS) IoU threshold used to remove overlapping
|
|
detection boxes.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.DetectionInputSize">
|
|
<summary>
|
|
Input size used when preparing the blob for the detection network.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.RecognitionInputSize">
|
|
<summary>
|
|
Input size used when preparing the blob for the recognition network.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.NumberClasses">
|
|
<summary>
|
|
Labels representing digit classes in the recognition model. The order
|
|
must match the class ordering used by the trained recognition network.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.UseGpu">
|
|
<summary>
|
|
When enabled, request OpenCV DNN CUDA backend/target for inference.
|
|
The installed OpenCV runtime must have CUDA support or model loading/forwarding may fail.
|
|
</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ModelConfiguration.EnableCropSaving">
|
|
<summary>
|
|
When enabled, recognition crops will be saved to disk under
|
|
"logs/crops" for diagnostic inspection. Disabled by default.
|
|
</summary>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.NumberRecognitionEngine.#ctor(AIFotoONLUS.Core.ModelConfiguration)">
|
|
<summary>
|
|
Create a new instance of <see cref="T:AIFotoONLUS.Core.NumberRecognitionEngine"/> using the
|
|
provided <see cref="T:AIFotoONLUS.Core.ModelConfiguration"/>. The constructor loads the
|
|
detection and recognition Darknet model files and prepares the OpenCV
|
|
DNN nets for CPU inference.
|
|
</summary>
|
|
<param name="cfg">Model configuration containing file paths, thresholds
|
|
and other options. Must not be <c>null</c>.</param>
|
|
<remarks>
|
|
This constructor will throw <see cref="T:System.IO.FileNotFoundException"/> when
|
|
any of the expected model files are missing. For logging purposes an
|
|
overload accepting an <see cref="T:Microsoft.Extensions.Logging.ILogger"/> is available.
|
|
</remarks>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.NumberRecognitionEngine.#ctor(AIFotoONLUS.Core.ModelConfiguration,Microsoft.Extensions.Logging.ILogger)">
|
|
<summary>
|
|
Create a new instance of <see cref="T:AIFotoONLUS.Core.NumberRecognitionEngine"/> with an
|
|
optional <see cref="T:Microsoft.Extensions.Logging.ILogger"/>. The logger will receive diagnostic
|
|
messages and errors produced by the engine during processing.
|
|
</summary>
|
|
<param name="cfg">Model configuration containing file paths and
|
|
runtime thresholds.</param>
|
|
<param name="logger">Optional logger for diagnostic messages.
|
|
May be <c>null</c>.</param>
|
|
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="cfg"/>
|
|
is <c>null</c>.</exception>
|
|
<exception cref="T:System.IO.FileNotFoundException">Thrown when one of the model
|
|
files referenced by <paramref name="cfg"/> does not exist.</exception>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.NumberRecognitionEngine.DetectTextRegions(OpenCvSharp.Mat)">
|
|
<summary>
|
|
Detect text regions in the supplied image using the detection network.
|
|
</summary>
|
|
<param name="image">Input image as an OpenCvSharp <see cref="T:OpenCvSharp.Mat"/>.
|
|
Must not be <c>null</c>.</param>
|
|
<returns>An enumerable of <see cref="T:AIFotoONLUS.Core.DetectedRegion"/> containing the
|
|
bounding boxes, confidence and class information for each detected
|
|
region. The results are already filtered with the configured
|
|
confidence and NMS thresholds.</returns>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.NumberRecognitionEngine.RecognizeDigits(OpenCvSharp.Mat,System.String)">
|
|
<summary>
|
|
Recognize digits inside a cropped image region using the recognition
|
|
network. The method runs the recognition network and returns the
|
|
concatenated sequence of recognized digit labels ordered left-to-right.
|
|
</summary>
|
|
<param name="croppedImage">Cropped image containing digits as
|
|
<see cref="T:OpenCvSharp.Mat"/>. Must not be <c>null</c>.</param>
|
|
<param name="context">Optional context string used for diagnostics
|
|
(e.g. when saving crop image files).</param>
|
|
<returns>A string containing recognized digits in left-to-right order.
|
|
Returns an empty string when no digits are recognized above the
|
|
configured confidence threshold.</returns>
|
|
</member>
|
|
<member name="T:AIFotoONLUS.Core.NumberRecognitionEngine.DetectionOutput">
|
|
<summary>
|
|
Small DTO that describes the name and shape of a detection network
|
|
forward output used for diagnostics.
|
|
</summary>
|
|
<param name="Name">Layer/output name.</param>
|
|
<param name="Rows">Number of rows in the output Mat.</param>
|
|
<param name="Cols">Number of columns in the output Mat.</param>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.NumberRecognitionEngine.DetectionOutput.#ctor(System.String,System.Int32,System.Int32)">
|
|
<summary>
|
|
Small DTO that describes the name and shape of a detection network
|
|
forward output used for diagnostics.
|
|
</summary>
|
|
<param name="Name">Layer/output name.</param>
|
|
<param name="Rows">Number of rows in the output Mat.</param>
|
|
<param name="Cols">Number of columns in the output Mat.</param>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.NumberRecognitionEngine.DetectionOutput.Name">
|
|
<summary>Layer/output name.</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.NumberRecognitionEngine.DetectionOutput.Rows">
|
|
<summary>Number of rows in the output Mat.</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.NumberRecognitionEngine.DetectionOutput.Cols">
|
|
<summary>Number of columns in the output Mat.</summary>
|
|
</member>
|
|
<member name="T:AIFotoONLUS.Core.NumberRecognitionEngine.DiagnosticResult">
|
|
<summary>
|
|
Result returned by <see cref="M:AIFotoONLUS.Core.NumberRecognitionEngine.ProcessFileWithDiagnostics(System.String)"/>, contains
|
|
the recognized text result and an array describing detection network
|
|
forward outputs (shapes and names) which are useful for debugging
|
|
model output layout mismatches.
|
|
</summary>
|
|
<param name="Result">Recognition result for the processed image.</param>
|
|
<param name="DetectionOutputs">Array describing detection net outputs.</param>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.NumberRecognitionEngine.DiagnosticResult.#ctor(AIFotoONLUS.Core.ImageResult,AIFotoONLUS.Core.NumberRecognitionEngine.DetectionOutput[])">
|
|
<summary>
|
|
Result returned by <see cref="M:AIFotoONLUS.Core.NumberRecognitionEngine.ProcessFileWithDiagnostics(System.String)"/>, contains
|
|
the recognized text result and an array describing detection network
|
|
forward outputs (shapes and names) which are useful for debugging
|
|
model output layout mismatches.
|
|
</summary>
|
|
<param name="Result">Recognition result for the processed image.</param>
|
|
<param name="DetectionOutputs">Array describing detection net outputs.</param>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.NumberRecognitionEngine.DiagnosticResult.Result">
|
|
<summary>Recognition result for the processed image.</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.NumberRecognitionEngine.DiagnosticResult.DetectionOutputs">
|
|
<summary>Array describing detection net outputs.</summary>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.NumberRecognitionEngine.ProcessFileWithDiagnostics(System.String)">
|
|
<summary>
|
|
Process a single image file and return the recognition result together
|
|
with detection network forward output shapes for diagnostics. This
|
|
method reads the image from disk, runs a forward pass over the
|
|
detection network to capture the raw output Mat shapes and then calls
|
|
the normal processing pipeline to return the recognized text.
|
|
</summary>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.NumberRecognitionEngine.ProcessImage(System.String)">
|
|
<summary>
|
|
Process a single image file and return the recognized text as an
|
|
<see cref="T:AIFotoONLUS.Core.ImageResult"/>. The method detects candidate text regions
|
|
and runs recognition on each crop. Multiple recognized digit sequences
|
|
are joined with a comma in the returned <see cref="P:AIFotoONLUS.Core.ImageResult.Text"/>.
|
|
</summary>
|
|
<param name="filePath">Path to an image file on disk. Supported
|
|
formats depend on OpenCV (typically JPEG, PNG, ...).</param>
|
|
<returns>An <see cref="T:AIFotoONLUS.Core.ImageResult"/> containing the file name and
|
|
recognized text (possibly empty).</returns>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.NumberRecognitionEngine.ProcessDirectory(System.String,System.Boolean)">
|
|
<summary>
|
|
Process all JPEG images in a directory and return the recognition
|
|
results. This is a blocking wrapper over <see cref="M:AIFotoONLUS.Core.NumberRecognitionEngine.ProcessDirectoryAsync(System.String,System.Boolean,System.Boolean,System.IProgress{AIFotoONLUS.Core.ProcessingStats},System.IProgress{AIFotoONLUS.Core.ImageResult},System.Threading.CancellationToken)"/>.
|
|
</summary>
|
|
<param name="directoryPath">Path to a directory containing images.</param>
|
|
<param name="skipTextNegative">If true, files whose names start with
|
|
"tn_" will be skipped (convention used to mark text-negative images).</param>
|
|
<returns>Collection of <see cref="T:AIFotoONLUS.Core.ImageResult"/> ordered by file name.</returns>
|
|
</member>
|
|
<member name="T:AIFotoONLUS.Core.ProcessingStats">
|
|
<summary>
|
|
Progress statistics reported during directory processing.
|
|
</summary>
|
|
<param name="TotalFiles">Total number of image files to process.</param>
|
|
<param name="ProcessedFiles">Number of files processed so far.</param>
|
|
<param name="ImagesPerSecond">Current processing throughput in images/second.</param>
|
|
</member>
|
|
<member name="M:AIFotoONLUS.Core.ProcessingStats.#ctor(System.Int32,System.Int32,System.Double)">
|
|
<summary>
|
|
Progress statistics reported during directory processing.
|
|
</summary>
|
|
<param name="TotalFiles">Total number of image files to process.</param>
|
|
<param name="ProcessedFiles">Number of files processed so far.</param>
|
|
<param name="ImagesPerSecond">Current processing throughput in images/second.</param>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ProcessingStats.TotalFiles">
|
|
<summary>Total number of image files to process.</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ProcessingStats.ProcessedFiles">
|
|
<summary>Number of files processed so far.</summary>
|
|
</member>
|
|
<member name="P:AIFotoONLUS.Core.ProcessingStats.ImagesPerSecond">
|
|
<summary>Current processing throughput in images/second.</summary>
|
|
</member>
|
|
</members>
|
|
</doc>
|