Compare commits
6 commits
44af20ead5
...
5202369356
| Author | SHA1 | Date | |
|---|---|---|---|
| 5202369356 | |||
| 4fdf1660fe | |||
| 3bde2c607f | |||
| 20d8803f54 | |||
| e34b71beda | |||
| 8020fb6d25 |
14 changed files with 44476 additions and 278 deletions
5
Directory.Build.props
Normal file
5
Directory.Build.props
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<Project>
|
||||
<PropertyGroup Condition="'$(MinVerSkip)' == '' and '$(GITHUB_ACTIONS)' != 'true' and '$(CI)' != 'true'">
|
||||
<MinVerSkip>true</MinVerSkip>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
246
NUMBER_RECOGNITION_TRAINING.md
Normal file
246
NUMBER_RECOGNITION_TRAINING.md
Normal file
|
|
@ -0,0 +1,246 @@
|
|||
# Further Training for Number Recognition
|
||||
|
||||
## Scope
|
||||
|
||||
This guide is only about the number-recognition pipeline in this repository. It
|
||||
does not cover face recognition, face detection, identity matching, or the
|
||||
separate FaceAI system.
|
||||
|
||||
The application uses two Darknet networks:
|
||||
|
||||
1. `models/detection.cfg` and `models/detection.weights` find a number/text
|
||||
region in the full image. This is a one-class detector.
|
||||
2. `models/recognition.cfg` and `models/recognition.weights` find individual
|
||||
digit boxes inside that region. The ten classes are `0` through `9`, and the
|
||||
application orders detections by horizontal position to build the number.
|
||||
|
||||
The recognizer is a legacy Darknet YOLO `region` network with a 140x120 input,
|
||||
five anchors, ten classes, and 75 output filters (`5 * (4 + 1 + 10)`). The
|
||||
region detector is separate: it uses a 416x416 input and one class. The .NET
|
||||
engine loads both `.cfg` and `.weights` files directly through OpenCvSharp; it
|
||||
does not currently have a training command or training-data pipeline.
|
||||
|
||||
## Modernize the Format or the Model
|
||||
|
||||
There are two different kinds of modernization. They have different costs and
|
||||
should be evaluated separately.
|
||||
|
||||
### Convert the Existing Model for Inference
|
||||
|
||||
The current weights may be exportable to ONNX, a portable model format that can
|
||||
be consumed by runtimes such as ONNX Runtime or OpenCV DNN. This changes how the
|
||||
existing model is deployed; it does not change what it learned. Conversion by
|
||||
itself will not add font or background coverage, and it is not guaranteed to
|
||||
make inference faster.
|
||||
|
||||
The recognizer uses Darknet's legacy `[region]` output. Confirm that the chosen
|
||||
export/conversion path supports this exact network and preserves its outputs.
|
||||
The current application interprets YOLO-style boxes, combines objectness and
|
||||
class scores, applies NMS, and maps class IDs to digits. A converted model may
|
||||
need a different output decoder, even if its predictions are equivalent. Keep
|
||||
the original `.cfg` and `.weights` as the reference and rollback option.
|
||||
|
||||
### Replace the Architecture
|
||||
|
||||
A newer detector can still predict one box per digit, preserving the current
|
||||
left-to-right assembly contract, or a sequence-recognition model can predict a
|
||||
whole number directly. These are model changes, not file conversions. Existing
|
||||
weights generally cannot be loaded as weights for a different architecture;
|
||||
plan to train the replacement from a compatible pretrained checkpoint or from
|
||||
scratch using the annotated data described above.
|
||||
|
||||
Replacing the architecture also requires updating the .NET inference path:
|
||||
input preprocessing, model loading, output decoding, confidence handling, and
|
||||
possibly the class/sequence decoding logic. A whole-number sequence model has a
|
||||
different output contract from ten separate digit classes and cannot be
|
||||
plugged into `RecognizeDigits` without changing that code. Keep the region
|
||||
detector and recognizer as separate decisions unless evidence supports replacing
|
||||
both.
|
||||
|
||||
### Measure Before Choosing
|
||||
|
||||
Neither ONNX conversion nor a newer architecture guarantees better speed. The
|
||||
digit recognizer processes small 140x120 crops, so the full-image detector,
|
||||
image loading, number-crop count, CPU/GPU choice, and runtime overhead can be
|
||||
significant parts of total latency. Compare candidates on the actual deployment
|
||||
hardware and the same held-out images. Record warm and cold-start time, median
|
||||
and tail end-to-end latency, throughput for the expected workload, and
|
||||
recognition metrics by font and background. Compare CPU and GPU separately if
|
||||
both are supported; GPU is not automatically faster for small or single-crop
|
||||
workloads.
|
||||
|
||||
A low-risk modernization experiment is:
|
||||
|
||||
1. Freeze a representative test set and record the current model's accuracy
|
||||
and end-to-end timing.
|
||||
2. Try converting only the digit recognizer first, leaving the region detector
|
||||
and application behavior unchanged. Keep the converted files and any new
|
||||
decoder isolated from the production model.
|
||||
3. Compare per-crop predictions and full-image number results, then benchmark
|
||||
end-to-end latency on the target hardware. Treat output mismatches as a
|
||||
compatibility issue to investigate, not as an acceptable conversion detail.
|
||||
4. If conversion does not meet the speed or portability goal, or accuracy is
|
||||
the priority, evaluate a newly trained architecture on the same data and
|
||||
test set. Include the engineering and retraining cost in the comparison.
|
||||
5. Promote a candidate only if it meets pre-agreed accuracy and performance
|
||||
requirements, and retain the original model for rollback.
|
||||
|
||||
## Decide Which Network Needs Training
|
||||
|
||||
First inspect actual inference inputs and outputs. Enable crop saving with
|
||||
`ModelConfiguration.EnableCropSaving` and collect representative images from
|
||||
the conditions that are failing. The saved crops show what the digit recognizer
|
||||
actually receives.
|
||||
|
||||
- If a crop contains the complete number but digits are missed or confused,
|
||||
improve the digit recognizer dataset and fine-tune `recognition.weights`.
|
||||
- If the region detector misses the number or returns a crop that cuts digits
|
||||
off, improve the full-image detector dataset and train `detection.weights`.
|
||||
- If both happen, evaluate and train the networks separately, then validate the
|
||||
combined pipeline. Do not assume that changing only the recognizer fixes bad
|
||||
crops.
|
||||
|
||||
Different fonts primarily affect the digit recognizer. New backgrounds can
|
||||
affect both networks: full-image backgrounds affect region detection, while
|
||||
backgrounds visible inside the cropped number affect digit recognition.
|
||||
|
||||
## Build the Digit Dataset
|
||||
|
||||
Create a versioned dataset of number-region crops that resemble the crops passed
|
||||
to `RecognizeDigits`. Include real examples from every supported font, print
|
||||
style, size, color, background, camera, and capture condition. Include examples
|
||||
that currently work as well as the new difficult cases, so fine-tuning does not
|
||||
erase existing capabilities.
|
||||
|
||||
For every crop, draw one tight bounding box around each visible digit and assign
|
||||
its class ID. Use the standard Darknet YOLO label format, one line per digit:
|
||||
|
||||
```text
|
||||
class_id center_x center_y width height
|
||||
```
|
||||
|
||||
The four box values are normalized to the image dimensions and range from 0 to
|
||||
1. Keep the class mapping fixed and identical everywhere:
|
||||
|
||||
```text
|
||||
0 -> 0
|
||||
1 -> 1
|
||||
2 -> 2
|
||||
3 -> 3
|
||||
4 -> 4
|
||||
5 -> 5
|
||||
6 -> 6
|
||||
7 -> 7
|
||||
8 -> 8
|
||||
9 -> 9
|
||||
```
|
||||
|
||||
Use a matching image and label filename, for example `crop-001.jpg` and
|
||||
`crop-001.txt`. Include negative crops with no digits if the selected Darknet
|
||||
training setup supports empty annotations. These teach the detector not to
|
||||
invent numbers from background texture, logos, or nearby text. Do not label
|
||||
letters or punctuation as digits; the current output contract only represents
|
||||
the ten digit classes.
|
||||
|
||||
Split data into training, validation, and a held-out test set by original
|
||||
photograph, event, location, or capture session, not by randomly splitting
|
||||
near-duplicate crops. Keep the test set untouched during training. Balance the
|
||||
digits and report results separately by font and background so a strong overall
|
||||
score cannot hide one failing group.
|
||||
|
||||
Synthetic examples can add font and background coverage. Render digits using
|
||||
the target fonts and plausible sizes, colors, spacing, perspective, blur,
|
||||
lighting, compression, and noise, and generate matching boxes automatically.
|
||||
Keep synthetic examples visually close to real captures and retain real images
|
||||
in validation and test sets. Avoid transformations that do not occur in the
|
||||
application, such as arbitrary rotations if numbers are expected to be read
|
||||
left-to-right.
|
||||
|
||||
## Fine-Tune the Digit Recognizer
|
||||
|
||||
1. Record a baseline by running the current model on the fixed test set. Keep
|
||||
both per-crop digit predictions and end-to-end number strings.
|
||||
2. Verify that the existing recognition weights load with the exact
|
||||
`recognition.cfg`. Their training origin and provenance are not documented
|
||||
here, so confirm compatibility and baseline quality before using them as a
|
||||
starting checkpoint. Preserve the original files unchanged.
|
||||
3. Pin a Darknet source revision/build that can train this legacy `[region]`
|
||||
architecture. Do not assume a current Darknet build or a YOLOv3/YOLOv4
|
||||
training recipe is compatible.
|
||||
4. Create a separate training config and Darknet data files for the digit
|
||||
dataset. The names file must list `0` through `9` in that exact order. Set
|
||||
the training and validation image lists and a dedicated checkpoint/backup
|
||||
directory.
|
||||
5. Preserve the recognizer architecture and inference contract: ten classes,
|
||||
five anchors, 140x120 input, and 75 filters before the `[region]` layer.
|
||||
Choose batch size, subdivisions, learning schedule, and training duration
|
||||
for the available hardware and dataset; do not blindly reuse the config's
|
||||
existing schedule. Keep checkpoints and logs separate from `models/` while
|
||||
training.
|
||||
6. Fine-tune from the verified existing recognition weights when compatible.
|
||||
Monitor validation results and retain the best checkpoint, not merely the
|
||||
last one. If anchors are recalculated, update the matching config and
|
||||
preserve the required output shape.
|
||||
7. Evaluate the candidate on the untouched test set and compare it with the
|
||||
baseline. Inspect confusing pairs such as `0`/`O`-like glyphs, `1`/`7`, and
|
||||
`3`/`8`, plus missed and duplicate digit boxes.
|
||||
|
||||
The application preprocesses recognizer inputs at 140x120, scales pixel values
|
||||
by 1/255, and swaps red/blue channels before inference. Training crops and
|
||||
evaluation should use the same aspect-ratio behavior and color-channel
|
||||
convention. At inference, the engine combines objectness and class probability,
|
||||
applies its confidence and NMS thresholds, and concatenates digit classes from
|
||||
left to right. Training metrics alone do not verify this complete behavior.
|
||||
|
||||
## Train the Number-Region Detector Only When Needed
|
||||
|
||||
The region detector needs a different dataset: full input images with a box
|
||||
around each complete number/text region, using the single `number-region` class.
|
||||
Its labels must not be per-digit labels. Keep the detector's one-class
|
||||
architecture consistent: its YOLO heads use one class and 18 filters
|
||||
(`3 * (4 + 1 + 1)`). Use the same held-out full images to measure whether the
|
||||
complete region is found and contains every digit.
|
||||
|
||||
Train and evaluate this model independently from the digit recognizer. A
|
||||
background change can require detector retraining even when the cropped digits
|
||||
are already recognized correctly.
|
||||
|
||||
## Validate and Integrate a Candidate
|
||||
|
||||
Evaluate both individual digit crops and full images. Record at least:
|
||||
|
||||
- Per-digit precision, recall, and class confusion.
|
||||
- Exact whole-number accuracy and character error rate.
|
||||
- Region-detection recall and the rate of incomplete or incorrect crops.
|
||||
- False positive numbers on images/crops with no target number.
|
||||
- Results grouped by font, background, image quality, and capture source.
|
||||
|
||||
Choose acceptance thresholds before training. Compare old and new weights on
|
||||
the same test set, including examples from previously supported conditions.
|
||||
Check the .NET end-to-end path on representative files with CPU inference; also
|
||||
check GPU inference if it is a deployment mode. Tune confidence/NMS settings
|
||||
only after checking the model, and record any threshold changes separately.
|
||||
|
||||
For promotion, package the candidate `.weights` with its exact matching `.cfg`
|
||||
and keep the original pair available for rollback. Point only the relevant
|
||||
`ModelConfiguration` paths at the candidate pair. Keep the digit class order
|
||||
identical to `NumberClasses`; no label or application-code change should be
|
||||
needed when the ten digit classes and network output shape remain unchanged.
|
||||
Load the pair with `NumberRecognitionEngine` and verify the actual full-image
|
||||
pipeline before replacing any deployed model.
|
||||
|
||||
Keep a training record with the dataset version and split lists, annotation
|
||||
rules, augmentation settings, Darknet revision/build, exact training command,
|
||||
starting checkpoint, config, logs, selected checkpoint, evaluation report, and
|
||||
hashes of the promoted files. Store candidate files separately until they pass
|
||||
the acceptance checks.
|
||||
|
||||
## Current Repository Gap
|
||||
|
||||
The repository currently contains the inference configs and weights, but no
|
||||
annotated training dataset, dataset manifests, Darknet training environment,
|
||||
or repeatable training/evaluation scripts. The existing `scripts/py_diag.py` is
|
||||
a diagnostic helper, not a trainer. The steps above define the required
|
||||
workflow; making it repeatable will require adding a versioned dataset
|
||||
specification and training/evaluation tooling. Do not replace the checked-in
|
||||
weights until that workflow and its test-set comparison are in place.
|
||||
|
|
@ -59,6 +59,12 @@ Troubleshooting
|
|||
compatible with the expected output layout. Use
|
||||
`ProcessFileWithDiagnostics` to inspect output layer shapes.
|
||||
|
||||
Further training
|
||||
- For the number-recognition model training and evaluation workflow, see
|
||||
[NUMBER_RECOGNITION_TRAINING.md](NUMBER_RECOGNITION_TRAINING.md). This covers
|
||||
the digit recognizer and its separate number-region detector; face recognition
|
||||
is out of scope.
|
||||
|
||||
License & Notes
|
||||
This project is provided as-is. See repository for licensing information and
|
||||
for the model files distribution terms (models are usually not redistributed
|
||||
|
|
|
|||
10
diag_first_console.txt
Normal file
10
diag_first_console.txt
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\NumberRecognitionEngine.cs(45,29): warning CS8601: Possible null reference assignment. [K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj]
|
||||
K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\NumberRecognitionEngine.cs(46,31): warning CS8601: Possible null reference assignment. [K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj]
|
||||
K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\NumberRecognitionEngine.cs(48,13): warning CS8602: Dereference of a possibly null reference. [K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj]
|
||||
K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\NumberRecognitionEngine.cs(50,13): warning CS8602: Dereference of a possibly null reference. [K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj]
|
||||
K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\NumberRecognitionEngine.cs(72,58): warning CS8619: Nullability of reference types in value of type 'string?[]' doesn't match target type 'string[]'. [K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj]
|
||||
K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\NumberRecognitionEngine.cs(94,44): warning CS8604: Possible null reference argument for parameter 'outBlobNames' in 'void Net.Forward(IEnumerable<Mat> outputBlobs, IEnumerable<string> outBlobNames)'. [K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj]
|
||||
K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\NumberRecognitionEngine.cs(288,17): warning CS8602: Dereference of a possibly null reference. [K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj]
|
||||
K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\NumberRecognitionEngine.cs(290,17): warning CS8602: Dereference of a possibly null reference. [K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj]
|
||||
K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\NumberRecognitionEngine.cs(340,41): warning CS8602: Dereference of a possibly null reference. [K:\vs\AIFotoONLUS\src\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj]
|
||||
No images found in directory.
|
||||
1
diagnostic_console.txt
Normal file
1
diagnostic_console.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
Results written to diagnostic_out.csv
|
||||
1
diagnostic_out.csv
Normal file
1
diagnostic_out.csv
Normal file
|
|
@ -0,0 +1 @@
|
|||
filename,text
|
||||
|
42639
pack_diag.txt
Normal file
42639
pack_diag.txt
Normal file
File diff suppressed because it is too large
Load diff
151
plan-migrateYoloToNet10.prompt.md
Normal file
151
plan-migrateYoloToNet10.prompt.md
Normal file
|
|
@ -0,0 +1,151 @@
|
|||
# Plan: Migrate YOLO Number Recognition to .NET 10
|
||||
|
||||
**Summary:**
|
||||
Port the existing Python YOLO-based number detection/recognition system to .NET 10 using **OpenCvSharp4**. This library provides 1:1 API mapping to the Python cv2.dnn code, requires no model conversion, and works directly with the existing Darknet .cfg/.weights files. The solution will consist of three projects: a core library for model inference, a console application for batch processing, and a WPF frontend for interactive use. OpenCvSharp was selected over alternatives (ONNX Runtime, Emgu.CV) because it requires minimal code changes and no model conversion workflow.
|
||||
|
||||
**Steps**
|
||||
|
||||
1. **Create Solution Structure**
|
||||
- Create .NET 10 solution with three projects:
|
||||
- `AIFotoONLUS.Core` - Class library (.NET 10)
|
||||
- `AIFotoONLUS.Console` - Console app (.NET 10)
|
||||
- `AIFotoONLUS.WPF` - WPF application (.NET 10)
|
||||
- Add NuGet packages to Core project:
|
||||
- `OpenCvSharp4` (latest 4.x)
|
||||
- `OpenCvSharp4.runtime.win` (for Windows deployment)
|
||||
- Reference Core library from Console and WPF projects
|
||||
|
||||
2. **Implement Core Library - Model Management**
|
||||
- Create `ModelConfiguration` class to store model paths and inference parameters
|
||||
- Properties: detection model path/config, recognition model path/config
|
||||
- Confidence threshold (0.5), NMS threshold (0.4)
|
||||
- Input sizes: detection (416×416), recognition (140×120)
|
||||
- Number classes array: ['0'-'9']
|
||||
- Create `NumberRecognitionEngine` class as main entry point
|
||||
- Constructor: loads both networks using `CvDnn.ReadNetFromDarknet()`
|
||||
- Store loaded `Net` objects as private fields
|
||||
- Implement `IDisposable` to properly dispose OpenCV resources
|
||||
|
||||
3. **Implement Core Library - Detection Logic**
|
||||
- Port `recog_text()` function to `DetectTextRegions()` method in `NumberRecognitionEngine`
|
||||
- Input: `Mat` image object
|
||||
- Create blob with `CvDnn.BlobFromImage(image, 0.00392, new Size(416,416), ...)`
|
||||
- Run inference: `detectionNet.Forward(GetOutputLayers(detectionNet))`
|
||||
- Parse output layers to extract bounding boxes, confidences, class IDs, center Y coordinates
|
||||
- Apply NMS: `CvDnn.NMSBoxes(boxes, confidences, 0.5f, 0.4f, out indices)`
|
||||
- Return `List<DetectedRegion>` with bounding box data
|
||||
- Create helper method `GetOutputLayers()` - equivalent to Python's `get_output_layers()`
|
||||
- Get `Net.GetLayerNames()` and unconnected output layers
|
||||
- Return array of layer names
|
||||
|
||||
4. **Implement Core Library - Recognition Logic**
|
||||
- Port `recog_number()` to `RecognizeDigits()` method in `NumberRecognitionEngine`
|
||||
- Input: cropped `Mat` image (text region)
|
||||
- Create blob with size (140×120) and scale 0.00392
|
||||
- Run inference through recognition network
|
||||
- Extract digit detections with confidence > 0.5
|
||||
- Apply NMS on detected digits
|
||||
- Sort digits left-to-right by center X coordinate (bubble sort from Python)
|
||||
- Return recognized string (concatenated digit classes)
|
||||
- Implement `CropImage()` helper method
|
||||
- Port boundary checking logic: `check_min_value()`, `check_X_max_value()`, `check_Y_max_value()`
|
||||
- Add 10% padding around detected region as in Python version
|
||||
- Create `DetectedRegion` and `RecognitionResult` data classes for type safety
|
||||
|
||||
5. **Implement Core Library - End-to-End Pipeline**
|
||||
- Create `ProcessImage()` method in `NumberRecognitionEngine`
|
||||
- Input: file path (string)
|
||||
- Load image using `Cv2.ImRead()`
|
||||
- Call `DetectTextRegions()` to find text boxes
|
||||
- For each detected region, crop and call `RecognizeDigits()`
|
||||
- Return `ImageResult` object containing filename and list of recognized text strings
|
||||
- Create `ProcessDirectory()` method for batch operations
|
||||
- Input: directory path, recursive flag, output CSV path, optional text-negative filter
|
||||
- Scan for .jpg/.JPG files (match Python behavior)
|
||||
- Process each image with `ProcessImage()`
|
||||
- Aggregate results into `List<ImageResult>`
|
||||
- Return results for caller to handle output
|
||||
|
||||
6. **Implement Console Application**
|
||||
- Create command-line argument parser (use `System.CommandLine` NuGet package)
|
||||
- `-d/--directory`: source directory path
|
||||
- `-c/--csv`: output CSV file path
|
||||
- `-tn/--textnegative`: skip files starting with "tn_" (optional flag)
|
||||
- Main logic:
|
||||
- Parse arguments and validate (directory exists, CSV has .csv extension)
|
||||
- Instantiate `ModelConfiguration` with hardcoded model paths (models/detection.*, models/recognition.*)
|
||||
- Create `NumberRecognitionEngine` instance
|
||||
- Call `ProcessDirectory()` with parsed parameters
|
||||
- Write results to CSV file using `CsvHelper` NuGet package or manual CSV writing
|
||||
- CSV format: filename, text (comma-separated if multiple detections)
|
||||
- Match Python output format from `det.py` line 289
|
||||
- Display progress/results to console (e.g., "Processing image X of Y")
|
||||
|
||||
7. **Implement WPF Application - Main Window**
|
||||
- Create `MainWindow.xaml` with MVVM pattern:
|
||||
- Top section: Model configuration panel
|
||||
- Labels and TextBoxes for: detection model .cfg/.weights paths, recognition model .cfg/.weights paths
|
||||
- "Load Models" button
|
||||
- Middle section: Input selection panel
|
||||
- "Select Directory" button with directory browser dialog
|
||||
- "Select Files" button with file picker (multi-select)
|
||||
- Checkbox for recursive directory scanning
|
||||
- Checkbox for text-negative filtering
|
||||
- Bottom section: Results panel
|
||||
- DataGrid to display results (columns: Filename, Recognized Text)
|
||||
- "Process" button to start inference
|
||||
- "Export CSV" button to save results
|
||||
- Progress bar and status text
|
||||
- Create `MainViewModel` with properties/commands:
|
||||
- Observable properties for all UI bindings
|
||||
- `ICommand` for LoadModels, SelectDirectory, SelectFiles, Process, ExportCsv
|
||||
- Bind button states to model loaded status
|
||||
|
||||
8. **Implement WPF Application - Image Processing**
|
||||
- In `MainViewModel.ProcessCommand`:
|
||||
- Validate models are loaded and input is selected
|
||||
- Run processing on background thread using `Task.Run()` to avoid UI freeze
|
||||
- Update progress bar via `IProgress<T>` and `Progress<T>`
|
||||
- Call `NumberRecognitionEngine.ProcessDirectory()` or process individual files
|
||||
- Update observable collection bound to DataGrid with results
|
||||
- Handle exceptions and display errors via MessageBox
|
||||
- Implement CSV export functionality:
|
||||
- Use SaveFileDialog to get output path
|
||||
- Write DataGrid results to CSV matching console app format
|
||||
- Optional: Add image preview panel showing currently processed image with bounding boxes
|
||||
- Convert OpenCV Mat to WPF BitmapSource using `OpenCvSharp.Extensions` methods
|
||||
|
||||
9. **Configuration and Deployment**
|
||||
- Create `appsettings.json` for both Console and WPF apps with default model paths
|
||||
- Parse using `Microsoft.Extensions.Configuration` NuGet package
|
||||
- Allow override via UI (WPF) or command-line (Console)
|
||||
- Copy models directory (detection.cfg/.weights, recognition.cfg/.weights) to output directory
|
||||
- Set "Copy to Output Directory" = "Copy if newer" in project files
|
||||
- Create `README.md` with usage instructions for both applications
|
||||
- Add error handling for missing model files with clear error messages
|
||||
|
||||
10. **Testing and Validation**
|
||||
- Create unit test project targeting Core library (optional but recommended)
|
||||
- Integration test: Run console app with `images/onlus` directory
|
||||
- Compare CSV output with Python script results to verify parity
|
||||
- Test WPF app with single file and directory modes
|
||||
- Verify image dimensions are read correctly (Python uses `image.shape`)
|
||||
- Confirm NMS and sorting produce same results as Python
|
||||
|
||||
**Verification**
|
||||
|
||||
- Run console app: `AIFotoONLUS.Console.exe -d ./images/onlus -c test_output.csv`
|
||||
- Compare output CSV with results from Python `python det.py -d ./images/onlus -c python_output.csv`
|
||||
- Launch WPF app, load models, process same directory, verify DataGrid shows matching results
|
||||
- Verify model files load successfully (no exceptions during `ReadNetFromDarknet`)
|
||||
- Test with various image sizes to ensure cropping/boundary logic works correctly
|
||||
- Check that digit sorting (left-to-right) produces correctly ordered number strings
|
||||
|
||||
**Decisions**
|
||||
|
||||
- **OpenCvSharp4 over ONNX Runtime**: Chose OpenCvSharp for direct Darknet .cfg/.weights support without model conversion, enabling faster migration with existing model files
|
||||
- **MVVM pattern for WPF**: Enables clean separation of concerns and testability vs code-behind approach
|
||||
- **Separate Core library**: Allows reuse across Console and WPF, enables future integration (web API, other frontends)
|
||||
- **.NET 10**: Latest LTS version with long-term support through November 2028
|
||||
- **System.CommandLine for CLI**: Modern, type-safe command-line parsing vs manual args parsing
|
||||
- **Background threading in WPF**: Prevents UI freeze during long-running inference operations on large image sets
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
|
|
@ -6,12 +6,12 @@
|
|||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NLog" Version="6.1.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.3" />
|
||||
<PackageReference Include="NLog.Extensions.Logging" Version="6.1.1" />
|
||||
<PackageReference Include="NLog" Version="6.1.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.8" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.8" />
|
||||
<PackageReference Include="NLog.Extensions.Logging" Version="6.1.3" />
|
||||
<!-- MinVer for tag-based semantic versioning -->
|
||||
<PackageReference Include="MinVer" Version="3.1.0" PrivateAssets="all" />
|
||||
<PackageReference Include="MinVer" Version="7.0.0" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AIFotoONLUS.Core\AIFotoONLUS.Core.csproj" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
|
|
@ -22,13 +22,44 @@
|
|||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<IncludeSymbols>false</IncludeSymbols>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows'))">
|
||||
<UseCudaOpenCvRuntime>true</UseCudaOpenCvRuntime>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="OpenCvSharp4" Version="4.13.0.20260214" />
|
||||
<PackageReference Include="OpenCvSharp4.runtime.win" Version="4.13.0.20260214" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.3" />
|
||||
<PackageReference Include="OpenCvSharp4" Version="4.5.0.20201013" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="OpenCvSharp4.runtime.win.cuda" Version="4.5.0.20201013" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="NtvLibs.cuda11.cudart64_110.runtime.win-x64" Version="11.8.0" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="NtvLibs.cuda11.cublas64_11.runtime.win-x64" Version="11.8.0" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="NtvLibs.cuda11.cublasLt64_11.runtime.win-x64.f00" Version="11.8.0" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="NtvLibs.cuda11.cublasLt64_11.runtime.win-x64.f01" Version="11.8.0" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="NtvLibs.cuDNN.cuda11.cudnn64_8.runtime.win-x64" Version="8.9.7.29" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="NtvLibs.cuDNN.cuda11.cudnn_ops_infer64_8.runtime.win-x64" Version="8.9.7.29" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="NtvLibs.cuDNN.cuda11.cudnn_adv_infer64_8.runtime.win-x64" Version="8.9.7.29" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="NtvLibs.cuDNN.cuda11.cudnn_cnn_infer64_8.runtime.win-x64.f00" Version="8.9.7.29" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="NtvLibs.cuDNN.cuda11.cudnn_cnn_infer64_8.runtime.win-x64.f01" Version="8.9.7.29" Condition="'$(UseCudaOpenCvRuntime)' == 'true'" />
|
||||
<PackageReference Include="OpenCvSharp4" Version="4.13.0.20260214" Condition="'$(UseCudaOpenCvRuntime)' != 'true'" />
|
||||
<PackageReference Include="OpenCvSharp4.runtime.win" Version="4.13.0.20260214" Condition="'$(UseCudaOpenCvRuntime)' != 'true'" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.8" />
|
||||
<!-- Use MinVer to infer versions from Git tags (applies at pack/build time) -->
|
||||
<PackageReference Include="MinVer" Version="3.1.0" PrivateAssets="all" />
|
||||
<PackageReference Include="MinVer" Version="7.0.0" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="AssembleCudaInferenceLibraries" AfterTargets="Build" Condition="'$(UseCudaOpenCvRuntime)' == 'true' and $([MSBuild]::IsOsPlatform('Windows'))">
|
||||
<PropertyGroup>
|
||||
<_CublasLtFragment0>$(NuGetPackageRoot)ntvlibs.cuda11.cublaslt64_11.runtime.win-x64.f00\11.8.0\fragments\win-x64\native\cublasLt64_11.dll.f00</_CublasLtFragment0>
|
||||
<_CublasLtFragment1>$(NuGetPackageRoot)ntvlibs.cuda11.cublaslt64_11.runtime.win-x64.f01\11.8.0\fragments\win-x64\native\cublasLt64_11.dll.f01</_CublasLtFragment1>
|
||||
<_CudnnCnnInferFragment0>$(NuGetPackageRoot)ntvlibs.cudnn.cuda11.cudnn_cnn_infer64_8.runtime.win-x64.f00\8.9.7.29\fragments\win-x64\native\cudnn_cnn_infer64_8.dll.f00</_CudnnCnnInferFragment0>
|
||||
<_CudnnCnnInferFragment1>$(NuGetPackageRoot)ntvlibs.cudnn.cuda11.cudnn_cnn_infer64_8.runtime.win-x64.f01\8.9.7.29\fragments\win-x64\native\cudnn_cnn_infer64_8.dll.f01</_CudnnCnnInferFragment1>
|
||||
</PropertyGroup>
|
||||
|
||||
<Message Importance="High" Text="Assembling CUDA runtime fragments into $(TargetDir)" />
|
||||
|
||||
<ReadLinesFromFile File="$(_CublasLtFragment0)">
|
||||
<Output TaskParameter="Lines" ItemName="_UnusedCublasLtProbe" />
|
||||
</ReadLinesFromFile>
|
||||
|
||||
<Exec Command="powershell -NoProfile -ExecutionPolicy Bypass -Command "$ErrorActionPreference='Stop'; $targetDir = [System.IO.Path]::GetFullPath('$(TargetDir)'); function Join-Binary([string]$outFile, [string[]]$parts) { $outPath = Join-Path $targetDir $outFile; $stream = [System.IO.File]::Create($outPath); try { foreach ($part in $parts) { $input = [System.IO.File]::OpenRead($part); try { $input.CopyTo($stream) } finally { $input.Dispose() } } } finally { $stream.Dispose() } }; Join-Binary 'cublasLt64_11.dll' @('$(_CublasLtFragment0)', '$(_CublasLtFragment1)'); Join-Binary 'cudnn_cnn_infer64_8.dll' @('$(_CudnnCnnInferFragment0)', '$(_CudnnCnnInferFragment1)')"" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
@ -290,18 +290,6 @@
|
|||
"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="M:AIFotoONLUS.Core.NumberRecognitionEngine.RecognizeDigits(OpenCvSharp.Mat,OpenCvSharp.Dnn.Net,System.String)">
|
||||
<summary>
|
||||
Worker overload of <see cref="M:AIFotoONLUS.Core.NumberRecognitionEngine.RecognizeDigits(OpenCvSharp.Mat,System.String)"/> that
|
||||
accepts a <see cref="T:OpenCvSharp.Dnn.Net"/> instance. This is used by the parallel
|
||||
processing pipeline where each worker owns its own Net instance.
|
||||
</summary>
|
||||
<param name="croppedImage">Cropped region to recognize.</param>
|
||||
<param name="recognitionNet">Recognition <see cref="T:OpenCvSharp.Dnn.Net"/> to execute
|
||||
the forward pass with.</param>
|
||||
<param name="context">Optional context string for diagnostics.</param>
|
||||
<returns>Recognized digit sequence or empty string.</returns>
|
||||
</member>
|
||||
<member name="T:AIFotoONLUS.Core.ProcessingStats">
|
||||
<summary>
|
||||
Progress statistics reported during directory processing.
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ namespace AIFotoONLUS.Core
|
|||
|
||||
public class NumberRecognitionEngine : IDisposable
|
||||
{
|
||||
private static readonly ConcurrentDictionary<string, byte> ValidatedGpuRuntimeCache = new(StringComparer.OrdinalIgnoreCase);
|
||||
private readonly Net _detectionNet;
|
||||
private readonly Net _recognitionNet;
|
||||
private readonly object _detectionLock = new();
|
||||
|
|
@ -100,7 +101,7 @@ namespace AIFotoONLUS.Core
|
|||
// Let OpenCV use multiple threads internally (use number of logical processors)
|
||||
try
|
||||
{
|
||||
Cv2.SetNumThreads(Environment.ProcessorCount);
|
||||
Cv2.SetNumThreads(_cfg.UseGpu ? 1 : Environment.ProcessorCount);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
@ -109,7 +110,7 @@ namespace AIFotoONLUS.Core
|
|||
|
||||
if (_cfg.UseGpu)
|
||||
{
|
||||
ValidateGpuRuntime();
|
||||
EnsureGpuRuntimeValidated();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -166,13 +167,42 @@ namespace AIFotoONLUS.Core
|
|||
{
|
||||
if (useGpu)
|
||||
{
|
||||
net.SetPreferableBackend(Backend.CUDA);
|
||||
net.SetPreferableTarget(Target.CUDA);
|
||||
net.SetPreferableBackend(Net.Backend.CUDA);
|
||||
try
|
||||
{
|
||||
net.SetPreferableTarget(Net.Target.CUDA_FP16);
|
||||
}
|
||||
catch
|
||||
{
|
||||
net.SetPreferableTarget(Net.Target.CUDA);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
net.SetPreferableBackend(Backend.OPENCV);
|
||||
net.SetPreferableTarget(Target.CPU);
|
||||
net.SetPreferableBackend(Net.Backend.OPENCV);
|
||||
net.SetPreferableTarget(Net.Target.CPU);
|
||||
}
|
||||
|
||||
private void EnsureGpuRuntimeValidated()
|
||||
{
|
||||
var cacheKey = string.Join(
|
||||
"|",
|
||||
_cfg.DetectionCfg,
|
||||
_cfg.DetectionWeights,
|
||||
_cfg.RecognitionCfg,
|
||||
_cfg.RecognitionWeights,
|
||||
_cfg.DetectionInputSize.Width,
|
||||
_cfg.DetectionInputSize.Height,
|
||||
_cfg.RecognitionInputSize.Width,
|
||||
_cfg.RecognitionInputSize.Height);
|
||||
|
||||
if (ValidatedGpuRuntimeCache.ContainsKey(cacheKey))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ValidateGpuRuntime();
|
||||
ValidatedGpuRuntimeCache.TryAdd(cacheKey, 0);
|
||||
}
|
||||
|
||||
private void ValidateGpuRuntime()
|
||||
|
|
@ -208,7 +238,10 @@ namespace AIFotoONLUS.Core
|
|||
{
|
||||
if (image is null) throw new ArgumentNullException(nameof(image));
|
||||
|
||||
return DetectTextRegions(_detectionNet, image);
|
||||
lock (_detectionLock)
|
||||
{
|
||||
return DetectTextRegions(_detectionNet, image);
|
||||
}
|
||||
}
|
||||
|
||||
// Internal variant that accepts a Net instance so it can be used from parallel workers
|
||||
|
|
@ -217,104 +250,15 @@ namespace AIFotoONLUS.Core
|
|||
using var blob = CvDnn.BlobFromImage(image, 0.00392, _cfg.DetectionInputSize, new Scalar(0, 0, 0), true, false);
|
||||
detectionNet.SetInput(blob);
|
||||
|
||||
var outNames = GetOutputLayerNames(detectionNet);
|
||||
var outsList = new List<Mat>();
|
||||
detectionNet.Forward(outsList, outNames);
|
||||
|
||||
Mat[] outs = outsList.ToArray();
|
||||
if (outs.Length == 0)
|
||||
{
|
||||
// Try per-output Forward calls as a fallback; use their results for detection
|
||||
if (outNames != null)
|
||||
{
|
||||
var fallback = new List<Mat>();
|
||||
for (int on = 0; on < outNames.Length; on++)
|
||||
{
|
||||
try
|
||||
{
|
||||
var single = detectionNet.Forward(outNames[on]);
|
||||
fallback.Add(single);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger?.LogError(ex, "Fallback Forward failed for {name}", outNames[on]);
|
||||
}
|
||||
}
|
||||
if (fallback.Count > 0)
|
||||
{
|
||||
outs = fallback.ToArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Diagnostic: dump outs shapes and a sample of values to help debugging
|
||||
var outs = ForwardNet(detectionNet, "Detection fallback forward failed for {name}");
|
||||
try
|
||||
{
|
||||
// diagnostic dumping removed for performance; keep errors only
|
||||
return ParseDetectedRegions(outs, 0, 1, image.Width, image.Height);
|
||||
}
|
||||
catch (Exception ex)
|
||||
finally
|
||||
{
|
||||
_logger?.LogError(ex, "Error dumping outs");
|
||||
DisposeMats(outs);
|
||||
}
|
||||
|
||||
var boxes = new List<Rect>();
|
||||
var confidences = new List<float>();
|
||||
var classIds = new List<int>();
|
||||
var centerXList = new List<double>();
|
||||
|
||||
int imgW = image.Width;
|
||||
int imgH = image.Height;
|
||||
foreach (var outMat in outs)
|
||||
{
|
||||
for (int i = 0; i < outMat.Rows; i++)
|
||||
{
|
||||
float cx = outMat.At<float>(i, 0) * imgW;
|
||||
float cy = outMat.At<float>(i, 1) * imgH;
|
||||
float w = outMat.At<float>(i, 2) * imgW;
|
||||
float h = outMat.At<float>(i, 3) * imgH;
|
||||
|
||||
// YOLO output layout: [cx, cy, w, h, objectness, class1, class2, ...]
|
||||
float objectness = outMat.At<float>(i, 4);
|
||||
float maxScore = 0f;
|
||||
int bestClass = -1;
|
||||
for (int c = 5; c < outMat.Cols; c++)
|
||||
{
|
||||
float classProb = outMat.At<float>(i, c);
|
||||
float score = objectness * classProb; // combine objectness and class probability
|
||||
if (score > maxScore)
|
||||
{
|
||||
maxScore = score;
|
||||
bestClass = c - 5;
|
||||
}
|
||||
}
|
||||
|
||||
if (maxScore > _cfg.ConfidenceThreshold)
|
||||
{
|
||||
int x = (int)Math.Max(0, Math.Round(cx - w / 2));
|
||||
int y = (int)Math.Max(0, Math.Round(cy - h / 2));
|
||||
var rect = new Rect(x, y, (int)Math.Round(w), (int)Math.Round(h));
|
||||
boxes.Add(rect);
|
||||
confidences.Add(maxScore);
|
||||
classIds.Add(bestClass);
|
||||
centerXList.Add(cx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (boxes.Count == 0) return Enumerable.Empty<DetectedRegion>();
|
||||
|
||||
|
||||
|
||||
CvDnn.NMSBoxes(boxes, confidences, (float)_cfg.ConfidenceThreshold, (float)_cfg.NmsThreshold, out int[] indices);
|
||||
|
||||
var results = new List<DetectedRegion>();
|
||||
foreach (var idx in indices)
|
||||
{
|
||||
var b = boxes[idx];
|
||||
double centerX = b.X + b.Width / 2.0;
|
||||
results.Add(new DetectedRegion(b, confidences[idx], classIds[idx], centerX));
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -333,6 +277,16 @@ namespace AIFotoONLUS.Core
|
|||
{
|
||||
if (croppedImage is null) throw new ArgumentNullException(nameof(croppedImage));
|
||||
|
||||
lock (_recognitionLock)
|
||||
{
|
||||
return RecognizeDigits(croppedImage, _recognitionNet, context);
|
||||
}
|
||||
}
|
||||
|
||||
private string RecognizeDigits(Mat croppedImage, Net recognitionNet, string? context = null)
|
||||
{
|
||||
if (croppedImage is null) throw new ArgumentNullException(nameof(croppedImage));
|
||||
|
||||
// Optionally save crop image for diagnostics when enabled in configuration
|
||||
if (_cfg.EnableCropSaving)
|
||||
{
|
||||
|
|
@ -351,79 +305,17 @@ namespace AIFotoONLUS.Core
|
|||
}
|
||||
|
||||
using var blob = CvDnn.BlobFromImage(croppedImage, 0.00392, _cfg.RecognitionInputSize, new Scalar(0, 0, 0), true, false);
|
||||
_recognitionNet.SetInput(blob);
|
||||
recognitionNet.SetInput(blob);
|
||||
|
||||
var outNames = GetOutputLayerNames(_recognitionNet);
|
||||
var outsList = new List<Mat>();
|
||||
_recognitionNet.Forward(outsList, outNames);
|
||||
Mat[] outs = outsList.ToArray();
|
||||
|
||||
// Fallback: try per-output Forward if no mats were returned
|
||||
if (outs.Length == 0 && outNames != null)
|
||||
var outs = ForwardNet(recognitionNet, "Recognition fallback forward failed for {name}");
|
||||
try
|
||||
{
|
||||
var fallback = new List<Mat>();
|
||||
foreach (var n in outNames)
|
||||
{
|
||||
try
|
||||
{
|
||||
var m = _recognitionNet.Forward(n);
|
||||
fallback.Add(m);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger?.LogError(ex, "Recognition fallback forward failed for {name}", n);
|
||||
}
|
||||
}
|
||||
if (fallback.Count > 0) outs = fallback.ToArray();
|
||||
return ParseRecognizedDigits(outs, 0, 1, croppedImage.Width, croppedImage.Height);
|
||||
}
|
||||
|
||||
var boxes = new List<Rect>();
|
||||
var confidences = new List<float>();
|
||||
var classIds = new List<int>();
|
||||
var centerXList = new List<double>();
|
||||
int imgW = croppedImage.Width;
|
||||
int imgH = croppedImage.Height;
|
||||
|
||||
foreach (var outMat in outs)
|
||||
finally
|
||||
{
|
||||
for (int i = 0; i < outMat.Rows; i++)
|
||||
{
|
||||
float cx = outMat.At<float>(i, 0) * imgW;
|
||||
float cy = outMat.At<float>(i, 1) * imgH;
|
||||
float w = outMat.At<float>(i, 2) * imgW;
|
||||
float h = outMat.At<float>(i, 3) * imgH;
|
||||
float objectness = outMat.At<float>(i, 4);
|
||||
float maxScore = 0f;
|
||||
int bestClass = -1;
|
||||
for (int c = 5; c < outMat.Cols; c++)
|
||||
{
|
||||
float classProb = outMat.At<float>(i, c);
|
||||
float score = objectness * classProb;
|
||||
if (score > maxScore)
|
||||
{
|
||||
maxScore = score;
|
||||
bestClass = c - 5;
|
||||
}
|
||||
}
|
||||
if (maxScore > _cfg.ConfidenceThreshold)
|
||||
{
|
||||
int x = (int)Math.Max(0, Math.Round(cx - w / 2));
|
||||
int y = (int)Math.Max(0, Math.Round(cy - h / 2));
|
||||
boxes.Add(new Rect(x, y, (int)Math.Round(w), (int)Math.Round(h)));
|
||||
confidences.Add(maxScore);
|
||||
classIds.Add(bestClass);
|
||||
centerXList.Add(cx);
|
||||
}
|
||||
}
|
||||
DisposeMats(outs);
|
||||
}
|
||||
|
||||
if (classIds.Count == 0) return string.Empty;
|
||||
|
||||
CvDnn.NMSBoxes(boxes, confidences, (float)_cfg.ConfidenceThreshold, (float)_cfg.NmsThreshold, out int[] keep);
|
||||
var ordered = keep.Select(i => new { Idx = i, Cx = centerXList[i], ClassId = classIds[i] })
|
||||
.OrderBy(x => x.Cx)
|
||||
.Select(x => _cfg.NumberClasses[x.ClassId]);
|
||||
return string.Concat(ordered);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -445,6 +337,10 @@ namespace AIFotoONLUS.Core
|
|||
/// <param name="DetectionOutputs">Array describing detection net outputs.</param>
|
||||
public record DiagnosticResult(ImageResult Result, DetectionOutput[] DetectionOutputs);
|
||||
|
||||
private sealed record ImageBatchItem(string FilePath, string FileName, Mat Image);
|
||||
|
||||
private sealed record CropBatchItem(int ImageIndex, Mat Crop, Rect BoundingBox, string Context);
|
||||
|
||||
/// <summary>
|
||||
/// Process a single image file and return the recognition result together
|
||||
/// with detection network forward output shapes for diagnostics. This
|
||||
|
|
@ -511,12 +407,7 @@ namespace AIFotoONLUS.Core
|
|||
var txt = RecognizeDigits(crop, ctx);
|
||||
if (!string.IsNullOrEmpty(txt)) texts.Add(txt);
|
||||
}
|
||||
var result = new ImageResult(Path.GetFileName(filePath), string.Join(",", texts), filePath);
|
||||
if (!string.IsNullOrEmpty(result.Text))
|
||||
_logger?.LogInformation("Processed image {file} -> {text}", result.FileName, result.Text);
|
||||
else
|
||||
_logger?.LogDebug("Processed image {file} -> (no text)", result.FileName);
|
||||
return result;
|
||||
return new ImageResult(Path.GetFileName(filePath), string.Join(",", texts), filePath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -533,20 +424,32 @@ namespace AIFotoONLUS.Core
|
|||
return ProcessDirectoryAsync(directoryPath, skipTextNegative).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<ImageResult>> ProcessDirectoryAsync(string directoryPath, bool skipTextNegative = false, bool recursive = false, IProgress<ProcessingStats>? progress = null, IProgress<ImageResult>? resultProgress = null, CancellationToken cancellationToken = default)
|
||||
public async Task<IEnumerable<ImageResult>> ProcessFilesAsync(IEnumerable<string> filePaths, bool skipTextNegative = false, int? maxDegreeOfParallelism = null, IProgress<ProcessingStats>? progress = null, IProgress<ImageResult>? resultProgress = null, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (!Directory.Exists(directoryPath)) throw new DirectoryNotFoundException(directoryPath);
|
||||
var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;
|
||||
var files = Directory.EnumerateFiles(directoryPath, "*.*", searchOption)
|
||||
.Where(f => f.EndsWith(".jpg", StringComparison.OrdinalIgnoreCase) || f.EndsWith(".jpeg", StringComparison.OrdinalIgnoreCase))
|
||||
if (filePaths is null) throw new ArgumentNullException(nameof(filePaths));
|
||||
|
||||
var files = filePaths
|
||||
.Where(f => !string.IsNullOrWhiteSpace(f))
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.ToArray();
|
||||
|
||||
var dop = maxDegreeOfParallelism.GetValueOrDefault();
|
||||
if (dop <= 0)
|
||||
{
|
||||
dop = Environment.ProcessorCount;
|
||||
}
|
||||
|
||||
if (_cfg.UseGpu)
|
||||
{
|
||||
return await ProcessFilesGpuBatchedAsync(files, skipTextNegative, dop, progress, resultProgress, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
var bag = new ConcurrentBag<ImageResult>();
|
||||
|
||||
var dop = Environment.ProcessorCount;
|
||||
var total = files.Length;
|
||||
var processed = 0;
|
||||
var sw = System.Diagnostics.Stopwatch.StartNew();
|
||||
var enableRecoveryFallbacks = !_cfg.UseGpu;
|
||||
|
||||
// Per-thread nets (each worker gets its own pair) to allow parallel forward calls
|
||||
var netsBag = new ConcurrentBag<(Net detNet, Net recNet)>();
|
||||
|
|
@ -578,15 +481,12 @@ namespace AIFotoONLUS.Core
|
|||
|
||||
var regions = DetectTextRegions(nets.detNet, image).ToArray();
|
||||
var texts = new List<string>();
|
||||
// minimal logging for performance
|
||||
foreach (var r in regions)
|
||||
{
|
||||
using var crop = new Mat(image, r.BoundingBox);
|
||||
var ctx = $"{filename}_{r.BoundingBox.X}_{r.BoundingBox.Y}_{r.BoundingBox.Width}x{r.BoundingBox.Height}";
|
||||
var txt = RecognizeDigits(crop, nets.recNet, ctx);
|
||||
// minimal logging for performance
|
||||
// Fallback: if empty, try a fresh net (diagnostic)
|
||||
if (string.IsNullOrEmpty(txt))
|
||||
if (enableRecoveryFallbacks && string.IsNullOrEmpty(txt))
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -597,11 +497,11 @@ namespace AIFotoONLUS.Core
|
|||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(txt)) texts.Add(txt);
|
||||
}
|
||||
|
||||
// If no text was recognized with per-thread nets, try one more time using the shared nets under a lock
|
||||
if (texts.Count == 0)
|
||||
if (enableRecoveryFallbacks && texts.Count == 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -610,6 +510,7 @@ namespace AIFotoONLUS.Core
|
|||
{
|
||||
sharedRegions = DetectTextRegions(image).ToArray();
|
||||
}
|
||||
|
||||
var sharedTexts = new List<string>();
|
||||
foreach (var r2 in sharedRegions)
|
||||
{
|
||||
|
|
@ -620,11 +521,13 @@ namespace AIFotoONLUS.Core
|
|||
{
|
||||
txt2 = RecognizeDigits(crop2, ctx2);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(txt2))
|
||||
{
|
||||
sharedTexts.Add(txt2);
|
||||
}
|
||||
}
|
||||
|
||||
if (sharedTexts.Count > 0)
|
||||
{
|
||||
texts = sharedTexts;
|
||||
|
|
@ -665,7 +568,6 @@ namespace AIFotoONLUS.Core
|
|||
}
|
||||
}, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
// dispose created nets
|
||||
while (netsBag.TryTake(out var pair))
|
||||
{
|
||||
try { pair.detNet.Dispose(); } catch { }
|
||||
|
|
@ -676,108 +578,307 @@ namespace AIFotoONLUS.Core
|
|||
return bag.OrderBy(b => b.FileName).ToList();
|
||||
}
|
||||
|
||||
// Overload RecognizeDigits that accepts a Net for worker threads
|
||||
/// <summary>
|
||||
/// Worker overload of <see cref="RecognizeDigits(Mat,string?)"/> that
|
||||
/// accepts a <see cref="Net"/> instance. This is used by the parallel
|
||||
/// processing pipeline where each worker owns its own Net instance.
|
||||
/// </summary>
|
||||
/// <param name="croppedImage">Cropped region to recognize.</param>
|
||||
/// <param name="recognitionNet">Recognition <see cref="Net"/> to execute
|
||||
/// the forward pass with.</param>
|
||||
/// <param name="context">Optional context string for diagnostics.</param>
|
||||
/// <returns>Recognized digit sequence or empty string.</returns>
|
||||
private string RecognizeDigits(Mat croppedImage, Net recognitionNet, string? context = null)
|
||||
private async Task<IEnumerable<ImageResult>> ProcessFilesGpuBatchedAsync(string[] files, bool skipTextNegative, int batchSize, IProgress<ProcessingStats>? progress, IProgress<ImageResult>? resultProgress, CancellationToken cancellationToken)
|
||||
{
|
||||
if (croppedImage is null) throw new ArgumentNullException(nameof(croppedImage));
|
||||
var effectiveFiles = files
|
||||
.Where(f => !skipTextNegative || !Path.GetFileName(f).StartsWith("tn_", StringComparison.OrdinalIgnoreCase))
|
||||
.ToArray();
|
||||
var results = new ConcurrentBag<ImageResult>();
|
||||
var total = effectiveFiles.Length;
|
||||
var processed = 0;
|
||||
var sw = Stopwatch.StartNew();
|
||||
var pipeline = ResolveGpuPipelineSettings(batchSize);
|
||||
var recognitionBatchSize = Math.Clamp(pipeline.BatchSize * 4, pipeline.BatchSize, 128);
|
||||
var fileBatches = effectiveFiles
|
||||
.Chunk(pipeline.BatchSize)
|
||||
.Select(chunk => chunk.ToArray())
|
||||
.ToArray();
|
||||
|
||||
// Optionally save crop image for diagnostics when enabled in configuration
|
||||
if (_cfg.EnableCropSaving)
|
||||
await Task.Run(() =>
|
||||
{
|
||||
var netsBag = new ConcurrentBag<(Net DetectionNet, Net RecognitionNet)>();
|
||||
var threadLocalNets = new ThreadLocal<(Net DetectionNet, Net RecognitionNet)>(() =>
|
||||
{
|
||||
var detectionNet = CvDnn.ReadNetFromDarknet(_cfg.DetectionCfg, _cfg.DetectionWeights);
|
||||
var recognitionNet = CvDnn.ReadNetFromDarknet(_cfg.RecognitionCfg, _cfg.RecognitionWeights);
|
||||
ConfigureNetRuntime(detectionNet, useGpu: true);
|
||||
ConfigureNetRuntime(recognitionNet, useGpu: true);
|
||||
netsBag.Add((detectionNet, recognitionNet));
|
||||
return (detectionNet, recognitionNet);
|
||||
});
|
||||
|
||||
try
|
||||
{
|
||||
var cropsDir = Path.Combine("logs", "crops");
|
||||
Directory.CreateDirectory(cropsDir);
|
||||
var fname = $"{(string.IsNullOrEmpty(context) ? "crop" : SanitizeFileName(context))}_{DateTime.UtcNow:yyyyMMdd_HHmmss_fff}_{Guid.NewGuid():N}.jpg";
|
||||
var full = Path.Combine(cropsDir, fname);
|
||||
Cv2.ImWrite(full, croppedImage);
|
||||
Parallel.ForEach(fileBatches, new ParallelOptions { MaxDegreeOfParallelism = pipeline.WorkerCount, CancellationToken = cancellationToken }, batchFiles =>
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
var nets = threadLocalNets.Value;
|
||||
IReadOnlyList<ImageResult> batchResults;
|
||||
try
|
||||
{
|
||||
batchResults = ProcessGpuImageBatch(batchFiles, nets.DetectionNet, nets.RecognitionNet, recognitionBatchSize, cancellationToken);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger?.LogWarning(ex, "GPU batch OCR failed for {Count} image(s); retrying the batch one image at a time", batchFiles.Length);
|
||||
batchResults = ProcessGpuImagesIndividually(batchFiles, cancellationToken);
|
||||
}
|
||||
|
||||
foreach (var result in batchResults)
|
||||
{
|
||||
results.Add(result);
|
||||
resultProgress?.Report(result);
|
||||
|
||||
var proc = Interlocked.Increment(ref processed);
|
||||
if (progress != null)
|
||||
{
|
||||
var elapsed = Math.Max(1, sw.ElapsedMilliseconds);
|
||||
progress.Report(new ProcessingStats(total, proc, proc * 1000.0 / elapsed));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
finally
|
||||
{
|
||||
while (netsBag.TryTake(out var nets))
|
||||
{
|
||||
try { nets.DetectionNet.Dispose(); } catch { }
|
||||
try { nets.RecognitionNet.Dispose(); } catch { }
|
||||
}
|
||||
|
||||
threadLocalNets.Dispose();
|
||||
}
|
||||
}, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
return results.OrderBy(r => r.FileName).ToList();
|
||||
}
|
||||
|
||||
private static (int BatchSize, int WorkerCount) ResolveGpuPipelineSettings(int targetInFlightImages)
|
||||
{
|
||||
var target = Math.Clamp(targetInFlightImages, 1, 96);
|
||||
var workerCount = target switch
|
||||
{
|
||||
<= 8 => 1,
|
||||
<= 16 => 2,
|
||||
_ => 4
|
||||
};
|
||||
var batchSize = Math.Clamp((int)Math.Ceiling(target / (double)workerCount), 1, 16);
|
||||
return (batchSize, workerCount);
|
||||
}
|
||||
|
||||
private IReadOnlyList<ImageResult> ProcessGpuImagesIndividually(IReadOnlyList<string> files, CancellationToken cancellationToken)
|
||||
{
|
||||
var results = new List<ImageResult>(files.Count);
|
||||
foreach (var file in files)
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
try
|
||||
{
|
||||
results.Add(ProcessImage(file));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger?.LogError(ex, "Failed saving crop for diagnostics");
|
||||
_logger?.LogError(ex, "Error processing image {file}", Path.GetFileName(file));
|
||||
results.Add(new ImageResult(Path.GetFileName(file), string.Empty, file));
|
||||
}
|
||||
}
|
||||
|
||||
using var blob = CvDnn.BlobFromImage(croppedImage, 0.00392, _cfg.RecognitionInputSize, new Scalar(0, 0, 0), true, false);
|
||||
return results;
|
||||
}
|
||||
|
||||
private IReadOnlyList<ImageResult> ProcessGpuImageBatch(IReadOnlyList<string> files, Net detectionNet, Net recognitionNet, int recognitionBatchSize, CancellationToken cancellationToken)
|
||||
{
|
||||
var images = new List<ImageBatchItem>(files.Count);
|
||||
var crops = new List<CropBatchItem>();
|
||||
|
||||
try
|
||||
{
|
||||
foreach (var file in files)
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
var image = Cv2.ImRead(file);
|
||||
if (image.Empty())
|
||||
{
|
||||
image.Dispose();
|
||||
throw new InvalidOperationException($"OpenCV could not read image: {file}");
|
||||
}
|
||||
|
||||
images.Add(new ImageBatchItem(file, Path.GetFileName(file), image));
|
||||
}
|
||||
|
||||
var regionsByImage = DetectTextRegionsBatch(detectionNet, images.Select(i => i.Image).ToArray());
|
||||
var textsByImage = Enumerable.Range(0, images.Count).Select(_ => new List<string>()).ToArray();
|
||||
|
||||
for (var imageIndex = 0; imageIndex < images.Count; imageIndex++)
|
||||
{
|
||||
foreach (var region in regionsByImage[imageIndex])
|
||||
{
|
||||
var boundingBox = ClampRect(region.BoundingBox, images[imageIndex].Image.Width, images[imageIndex].Image.Height);
|
||||
if (boundingBox.Width <= 0 || boundingBox.Height <= 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var crop = new Mat(images[imageIndex].Image, boundingBox);
|
||||
var context = $"{images[imageIndex].FileName}_{boundingBox.X}_{boundingBox.Y}_{boundingBox.Width}x{boundingBox.Height}";
|
||||
crops.Add(new CropBatchItem(imageIndex, crop, boundingBox, context));
|
||||
}
|
||||
}
|
||||
|
||||
for (var offset = 0; offset < crops.Count; offset += recognitionBatchSize)
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
var cropBatch = crops.Skip(offset).Take(recognitionBatchSize).ToArray();
|
||||
var recognizedTexts = RecognizeDigitsBatch(recognitionNet, cropBatch);
|
||||
for (var i = 0; i < cropBatch.Length; i++)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(recognizedTexts[i]))
|
||||
{
|
||||
textsByImage[cropBatch[i].ImageIndex].Add(recognizedTexts[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return images
|
||||
.Select((image, index) => new ImageResult(image.FileName, string.Join(",", textsByImage[index]), image.FilePath))
|
||||
.ToList();
|
||||
}
|
||||
finally
|
||||
{
|
||||
foreach (var crop in crops)
|
||||
{
|
||||
crop.Crop.Dispose();
|
||||
}
|
||||
|
||||
foreach (var image in images)
|
||||
{
|
||||
image.Image.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private IReadOnlyList<DetectedRegion[]> DetectTextRegionsBatch(Net detectionNet, IReadOnlyList<Mat> images)
|
||||
{
|
||||
using var blob = CvDnn.BlobFromImages(images, 0.00392, _cfg.DetectionInputSize, new Scalar(0, 0, 0), true, false);
|
||||
detectionNet.SetInput(blob);
|
||||
|
||||
var outs = ForwardNet(detectionNet, "Detection batch fallback forward failed for {name}");
|
||||
try
|
||||
{
|
||||
return images
|
||||
.Select((image, batchIndex) => ParseDetectedRegions(outs, batchIndex, images.Count, image.Width, image.Height))
|
||||
.ToArray();
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeMats(outs);
|
||||
}
|
||||
}
|
||||
|
||||
private string[] RecognizeDigitsBatch(Net recognitionNet, IReadOnlyList<CropBatchItem> crops)
|
||||
{
|
||||
if (crops.Count == 0)
|
||||
{
|
||||
return Array.Empty<string>();
|
||||
}
|
||||
|
||||
if (_cfg.EnableCropSaving)
|
||||
{
|
||||
SaveDiagnosticCrops(crops);
|
||||
}
|
||||
|
||||
using var blob = CvDnn.BlobFromImages(crops.Select(c => c.Crop), 0.00392, _cfg.RecognitionInputSize, new Scalar(0, 0, 0), true, false);
|
||||
recognitionNet.SetInput(blob);
|
||||
|
||||
var outNames = GetOutputLayerNames(recognitionNet);
|
||||
var outsList = new List<Mat>();
|
||||
recognitionNet.Forward(outsList, outNames);
|
||||
Mat[] outs = outsList.ToArray();
|
||||
var outs = ForwardNet(recognitionNet, "Recognition batch fallback forward failed for {name}");
|
||||
try
|
||||
{
|
||||
return crops
|
||||
.Select((crop, batchIndex) => ParseRecognizedDigits(outs, batchIndex, crops.Count, crop.Crop.Width, crop.Crop.Height))
|
||||
.ToArray();
|
||||
}
|
||||
finally
|
||||
{
|
||||
DisposeMats(outs);
|
||||
}
|
||||
}
|
||||
|
||||
private Mat[] ForwardNet(Net net, string fallbackFailureMessage)
|
||||
{
|
||||
var outNames = GetOutputLayerNames(net);
|
||||
var outsList = new List<Mat>();
|
||||
try
|
||||
{
|
||||
net.Forward(outsList, outNames);
|
||||
}
|
||||
catch
|
||||
{
|
||||
DisposeMats(outsList);
|
||||
throw;
|
||||
}
|
||||
|
||||
var outs = outsList.ToArray();
|
||||
|
||||
if (outs.Length == 0 && outNames != null)
|
||||
{
|
||||
var fallback = new List<Mat>();
|
||||
foreach (var name in outNames)
|
||||
{
|
||||
try
|
||||
{
|
||||
fallback.Add(net.Forward(name));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger?.LogError(ex, fallbackFailureMessage, name);
|
||||
}
|
||||
}
|
||||
|
||||
if (fallback.Count > 0)
|
||||
{
|
||||
outs = fallback.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
return outs;
|
||||
}
|
||||
|
||||
private DetectedRegion[] ParseDetectedRegions(Mat[] outs, int batchIndex, int batchCount, int imageWidth, int imageHeight)
|
||||
{
|
||||
var boxes = new List<Rect>();
|
||||
var confidences = new List<float>();
|
||||
var classIds = new List<int>();
|
||||
var centerXList = new List<double>();
|
||||
int imgW = croppedImage.Width;
|
||||
int imgH = croppedImage.Height;
|
||||
|
||||
// Diagnostic: if no outs, try per-output Forward
|
||||
if (outs.Length == 0 && outNames != null)
|
||||
{
|
||||
var fallback = new List<Mat>();
|
||||
foreach (var n in outNames)
|
||||
{
|
||||
try
|
||||
{
|
||||
var m = recognitionNet.Forward(n);
|
||||
fallback.Add(m);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger?.LogError(ex, "Recognition fallback forward failed for {name}", n);
|
||||
}
|
||||
}
|
||||
if (fallback.Count > 0) outs = fallback.ToArray();
|
||||
}
|
||||
|
||||
// Diagnostic: dump outs shapes and a sample of values to help debugging
|
||||
try
|
||||
{
|
||||
// diagnostic dumping removed for performance; keep errors only
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger?.LogError(ex, "Error dumping recognition outs");
|
||||
}
|
||||
|
||||
foreach (var outMat in outs)
|
||||
{
|
||||
for (int i = 0; i < outMat.Rows; i++)
|
||||
var rows = GetYoloRows(outMat, batchCount);
|
||||
var cols = GetYoloCols(outMat);
|
||||
for (var row = 0; row < rows; row++)
|
||||
{
|
||||
float cx = outMat.At<float>(i, 0) * imgW;
|
||||
float cy = outMat.At<float>(i, 1) * imgH;
|
||||
float w = outMat.At<float>(i, 2) * imgW;
|
||||
float h = outMat.At<float>(i, 3) * imgH;
|
||||
float objectness = outMat.At<float>(i, 4);
|
||||
float maxScore = 0f;
|
||||
int bestClass = -1;
|
||||
for (int c = 5; c < outMat.Cols; c++)
|
||||
var cx = GetYoloValue(outMat, batchIndex, batchCount, row, 0) * imageWidth;
|
||||
var cy = GetYoloValue(outMat, batchIndex, batchCount, row, 1) * imageHeight;
|
||||
var width = GetYoloValue(outMat, batchIndex, batchCount, row, 2) * imageWidth;
|
||||
var height = GetYoloValue(outMat, batchIndex, batchCount, row, 3) * imageHeight;
|
||||
var objectness = GetYoloValue(outMat, batchIndex, batchCount, row, 4);
|
||||
var maxScore = 0f;
|
||||
var bestClass = -1;
|
||||
|
||||
for (var col = 5; col < cols; col++)
|
||||
{
|
||||
float classProb = outMat.At<float>(i, c);
|
||||
float score = objectness * classProb;
|
||||
var score = objectness * GetYoloValue(outMat, batchIndex, batchCount, row, col);
|
||||
if (score > maxScore)
|
||||
{
|
||||
maxScore = score;
|
||||
bestClass = c - 5;
|
||||
bestClass = col - 5;
|
||||
}
|
||||
}
|
||||
|
||||
if (maxScore > _cfg.ConfidenceThreshold)
|
||||
{
|
||||
int x = (int)Math.Max(0, Math.Round(cx - w / 2));
|
||||
int y = (int)Math.Max(0, Math.Round(cy - h / 2));
|
||||
boxes.Add(new Rect(x, y, (int)Math.Round(w), (int)Math.Round(h)));
|
||||
var x = (int)Math.Max(0, Math.Round(cx - width / 2));
|
||||
var y = (int)Math.Max(0, Math.Round(cy - height / 2));
|
||||
boxes.Add(new Rect(x, y, (int)Math.Round(width), (int)Math.Round(height)));
|
||||
confidences.Add(maxScore);
|
||||
classIds.Add(bestClass);
|
||||
centerXList.Add(cx);
|
||||
|
|
@ -785,13 +886,156 @@ namespace AIFotoONLUS.Core
|
|||
}
|
||||
}
|
||||
|
||||
if (classIds.Count == 0) return string.Empty;
|
||||
if (boxes.Count == 0)
|
||||
{
|
||||
return Array.Empty<DetectedRegion>();
|
||||
}
|
||||
|
||||
CvDnn.NMSBoxes(boxes, confidences, (float)_cfg.ConfidenceThreshold, (float)_cfg.NmsThreshold, out int[] indices);
|
||||
return indices
|
||||
.Select(index =>
|
||||
{
|
||||
var box = boxes[index];
|
||||
return new DetectedRegion(box, confidences[index], classIds[index], box.X + box.Width / 2.0);
|
||||
})
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
private string ParseRecognizedDigits(Mat[] outs, int batchIndex, int batchCount, int cropWidth, int cropHeight)
|
||||
{
|
||||
var boxes = new List<Rect>();
|
||||
var confidences = new List<float>();
|
||||
var classIds = new List<int>();
|
||||
var centerXList = new List<double>();
|
||||
|
||||
foreach (var outMat in outs)
|
||||
{
|
||||
var rows = GetYoloRows(outMat, batchCount);
|
||||
var cols = GetYoloCols(outMat);
|
||||
for (var row = 0; row < rows; row++)
|
||||
{
|
||||
var cx = GetYoloValue(outMat, batchIndex, batchCount, row, 0) * cropWidth;
|
||||
var cy = GetYoloValue(outMat, batchIndex, batchCount, row, 1) * cropHeight;
|
||||
var width = GetYoloValue(outMat, batchIndex, batchCount, row, 2) * cropWidth;
|
||||
var height = GetYoloValue(outMat, batchIndex, batchCount, row, 3) * cropHeight;
|
||||
var objectness = GetYoloValue(outMat, batchIndex, batchCount, row, 4);
|
||||
var maxScore = 0f;
|
||||
var bestClass = -1;
|
||||
|
||||
for (var col = 5; col < cols; col++)
|
||||
{
|
||||
var score = objectness * GetYoloValue(outMat, batchIndex, batchCount, row, col);
|
||||
if (score > maxScore)
|
||||
{
|
||||
maxScore = score;
|
||||
bestClass = col - 5;
|
||||
}
|
||||
}
|
||||
|
||||
if (maxScore > _cfg.ConfidenceThreshold)
|
||||
{
|
||||
boxes.Add(new Rect(
|
||||
(int)Math.Max(0, Math.Round(cx - width / 2)),
|
||||
(int)Math.Max(0, Math.Round(cy - height / 2)),
|
||||
(int)Math.Round(width),
|
||||
(int)Math.Round(height)));
|
||||
confidences.Add(maxScore);
|
||||
classIds.Add(bestClass);
|
||||
centerXList.Add(cx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (classIds.Count == 0)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
CvDnn.NMSBoxes(boxes, confidences, (float)_cfg.ConfidenceThreshold, (float)_cfg.NmsThreshold, out int[] keep);
|
||||
var ordered = keep.Select(i => new { Idx = i, Cx = centerXList[i], ClassId = classIds[i] })
|
||||
.OrderBy(x => x.Cx)
|
||||
.Select(x => _cfg.NumberClasses[x.ClassId]);
|
||||
return string.Concat(ordered);
|
||||
return string.Concat(keep
|
||||
.Select(index => new { CenterX = centerXList[index], ClassId = classIds[index] })
|
||||
.OrderBy(item => item.CenterX)
|
||||
.Where(item => item.ClassId >= 0 && item.ClassId < _cfg.NumberClasses.Length)
|
||||
.Select(item => _cfg.NumberClasses[item.ClassId]));
|
||||
}
|
||||
|
||||
private static int GetYoloRows(Mat output, int batchCount)
|
||||
{
|
||||
if (output.Dims >= 3)
|
||||
{
|
||||
return output.Size(1);
|
||||
}
|
||||
|
||||
return batchCount > 1 && output.Rows % batchCount == 0
|
||||
? output.Rows / batchCount
|
||||
: output.Rows;
|
||||
}
|
||||
|
||||
private static int GetYoloCols(Mat output)
|
||||
{
|
||||
return output.Dims >= 3 ? output.Size(2) : output.Cols;
|
||||
}
|
||||
|
||||
private static float GetYoloValue(Mat output, int batchIndex, int batchCount, int row, int col)
|
||||
{
|
||||
if (output.Dims >= 3)
|
||||
{
|
||||
return output.At<float>(batchIndex, row, col);
|
||||
}
|
||||
|
||||
if (batchCount > 1 && output.Rows % batchCount == 0)
|
||||
{
|
||||
return output.At<float>(batchIndex * (output.Rows / batchCount) + row, col);
|
||||
}
|
||||
|
||||
return output.At<float>(row, col);
|
||||
}
|
||||
|
||||
private static Rect ClampRect(Rect rect, int imageWidth, int imageHeight)
|
||||
{
|
||||
var x = Math.Clamp(rect.X, 0, imageWidth);
|
||||
var y = Math.Clamp(rect.Y, 0, imageHeight);
|
||||
var right = Math.Clamp(rect.X + rect.Width, 0, imageWidth);
|
||||
var bottom = Math.Clamp(rect.Y + rect.Height, 0, imageHeight);
|
||||
return new Rect(x, y, Math.Max(0, right - x), Math.Max(0, bottom - y));
|
||||
}
|
||||
|
||||
private void SaveDiagnosticCrops(IEnumerable<CropBatchItem> crops)
|
||||
{
|
||||
try
|
||||
{
|
||||
var cropsDir = Path.Combine("logs", "crops");
|
||||
Directory.CreateDirectory(cropsDir);
|
||||
foreach (var crop in crops)
|
||||
{
|
||||
var fileName = $"{SanitizeFileName(crop.Context)}_{DateTime.UtcNow:yyyyMMdd_HHmmss_fff}_{Guid.NewGuid():N}.jpg";
|
||||
Cv2.ImWrite(Path.Combine(cropsDir, fileName), crop.Crop);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger?.LogError(ex, "Failed saving batched crops for diagnostics");
|
||||
}
|
||||
}
|
||||
|
||||
private static void DisposeMats(IEnumerable<Mat> mats)
|
||||
{
|
||||
foreach (var mat in mats)
|
||||
{
|
||||
mat.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<ImageResult>> ProcessDirectoryAsync(string directoryPath, bool skipTextNegative = false, bool recursive = false, IProgress<ProcessingStats>? progress = null, IProgress<ImageResult>? resultProgress = null, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (!Directory.Exists(directoryPath)) throw new DirectoryNotFoundException(directoryPath);
|
||||
var searchOption = recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly;
|
||||
var files = Directory.EnumerateFiles(directoryPath, "*.*", searchOption)
|
||||
.Where(f => f.EndsWith(".jpg", StringComparison.OrdinalIgnoreCase) || f.EndsWith(".jpeg", StringComparison.OrdinalIgnoreCase))
|
||||
.ToArray();
|
||||
|
||||
return await ProcessFilesAsync(files, skipTextNegative, maxDegreeOfParallelism: null, progress, resultProgress, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net10.0-windows</TargetFramework>
|
||||
|
|
@ -8,12 +8,12 @@
|
|||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NLog" Version="6.1.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.3" />
|
||||
<PackageReference Include="NLog.Extensions.Logging" Version="6.1.1" />
|
||||
<PackageReference Include="NLog" Version="6.1.3" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.8" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.8" />
|
||||
<PackageReference Include="NLog.Extensions.Logging" Version="6.1.3" />
|
||||
<!-- MinVer for tag-based semantic versioning -->
|
||||
<PackageReference Include="MinVer" Version="3.1.0" PrivateAssets="all" />
|
||||
<PackageReference Include="MinVer" Version="7.0.0" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<!-- Fallback version when no tag is present -->
|
||||
|
|
|
|||
876
test.csv
Normal file
876
test.csv
Normal file
|
|
@ -0,0 +1,876 @@
|
|||
filename,text
|
||||
LEO_5052.JPG,12
|
||||
LEO_5053.JPG,212
|
||||
LEO_5054.JPG,212
|
||||
LEO_5055.JPG,212
|
||||
LEO_5056.JPG,212
|
||||
LEO_5057.JPG,212
|
||||
LEO_5058.JPG,212
|
||||
LEO_5059.JPG,12
|
||||
LEO_5061.JPG,12
|
||||
LEO_5074.JPG,202
|
||||
LEO_5075.JPG,202
|
||||
LEO_5076.JPG,202
|
||||
LEO_5077.JPG,202
|
||||
LEO_5078.JPG,202
|
||||
LEO_5079.JPG,202
|
||||
LEO_5080.JPG,202
|
||||
LEO_5081.JPG,202
|
||||
LEO_5082.JPG,02
|
||||
LEO_5100.JPG,82
|
||||
LEO_5101.JPG,382
|
||||
LEO_5102.JPG,382
|
||||
LEO_5103.JPG,382
|
||||
LEO_5104.JPG,382
|
||||
LEO_5107.JPG,498
|
||||
LEO_5108.JPG,498
|
||||
LEO_5109.JPG,498
|
||||
LEO_5110.JPG,498
|
||||
LEO_5111.JPG,498
|
||||
LEO_5112.JPG,498
|
||||
LEO_5113.JPG,498
|
||||
LEO_5114.JPG,498
|
||||
LEO_5115.JPG,498
|
||||
LEO_5116.JPG,498
|
||||
LEO_5117.JPG,185
|
||||
LEO_5119.JPG,185
|
||||
LEO_5120.JPG,185
|
||||
LEO_5121.JPG,185
|
||||
LEO_5123.JPG,185
|
||||
LEO_5124.JPG,185
|
||||
LEO_5127.JPG,185
|
||||
LEO_5128.JPG,185
|
||||
LEO_5129.JPG,"333,203"
|
||||
LEO_5130.JPG,"333,"
|
||||
LEO_5131.JPG,333
|
||||
LEO_5132.JPG,"203,333"
|
||||
LEO_5133.JPG,"203,333"
|
||||
LEO_5134.JPG,"203,333"
|
||||
LEO_5135.JPG,"33,203"
|
||||
LEO_5136.JPG,"333,203"
|
||||
LEO_5137.JPG,"203,333"
|
||||
LEO_5138.JPG,"333,203"
|
||||
LEO_5139.JPG,"333,203"
|
||||
LEO_5140.JPG,"333,203"
|
||||
LEO_5141.JPG,"333,203"
|
||||
LEO_5142.JPG,"333,203"
|
||||
LEO_5143.JPG,"33,103"
|
||||
LEO_5144.JPG,133
|
||||
LEO_5145.JPG,339
|
||||
LEO_5146.JPG,339
|
||||
LEO_5147.JPG,339
|
||||
LEO_5148.JPG,339
|
||||
LEO_5149.JPG,339
|
||||
LEO_5150.JPG,339
|
||||
LEO_5151.JPG,339
|
||||
LEO_5152.JPG,339
|
||||
LEO_5153.JPG,2
|
||||
LEO_5154.JPG,244
|
||||
LEO_5155.JPG,244
|
||||
LEO_5156.JPG,244
|
||||
LEO_5157.JPG,244
|
||||
LEO_5158.JPG,244
|
||||
LEO_5159.JPG,144
|
||||
LEO_5160.JPG,309
|
||||
LEO_5161.JPG,3091
|
||||
LEO_5162.JPG,3
|
||||
LEO_5163.JPG,30
|
||||
LEO_5164.JPG,"195,186"
|
||||
LEO_5165.JPG,"186,195"
|
||||
LEO_5166.JPG,"186,195,"
|
||||
LEO_5167.JPG,"862,196,195"
|
||||
LEO_5168.JPG,"195,16"
|
||||
LEO_5169.JPG,196
|
||||
LEO_5170.JPG,500
|
||||
LEO_5171.JPG,500
|
||||
LEO_5172.JPG,500
|
||||
LEO_5173.JPG,500
|
||||
LEO_5174.JPG,500
|
||||
LEO_5175.JPG,500
|
||||
LEO_5176.JPG,50
|
||||
LEO_5177.JPG,222
|
||||
LEO_5178.JPG,222
|
||||
LEO_5179.JPG,222
|
||||
LEO_5180.JPG,222
|
||||
LEO_5181.JPG,222
|
||||
LEO_5182.JPG,222
|
||||
LEO_5185.JPG,5
|
||||
LEO_5187.JPG,355
|
||||
LEO_5188.JPG,355
|
||||
LEO_5189.JPG,355
|
||||
LEO_5190.JPG,355
|
||||
LEO_5191.JPG,355
|
||||
LEO_5192.JPG,387
|
||||
LEO_5193.JPG,387
|
||||
LEO_5194.JPG,387
|
||||
LEO_5195.JPG,387
|
||||
LEO_5196.JPG,329
|
||||
LEO_5197.JPG,329
|
||||
LEO_5198.JPG,329
|
||||
LEO_5199.JPG,329
|
||||
LEO_5200.JPG,329
|
||||
LEO_5201.JPG,329
|
||||
LEO_5202.JPG,241
|
||||
LEO_5203.JPG,"24,"
|
||||
LEO_5204.JPG,241
|
||||
LEO_5205.JPG,241
|
||||
LEO_5206.JPG,"241,229"
|
||||
LEO_5207.JPG,"241,229"
|
||||
LEO_5208.JPG,241
|
||||
LEO_5209.JPG,229
|
||||
LEO_5210.JPG,229
|
||||
LEO_5211.JPG,229
|
||||
LEO_5212.JPG,758
|
||||
LEO_5213.JPG,75
|
||||
LEO_5214.JPG,758
|
||||
LEO_5215.JPG,75
|
||||
LEO_5216.JPG,758
|
||||
LEO_5217.JPG,"205,92"
|
||||
LEO_5218.JPG,"205,92"
|
||||
LEO_5219.JPG,"92,205,247"
|
||||
LEO_5220.JPG,"92,247,205"
|
||||
LEO_5221.JPG,"92,247,205"
|
||||
LEO_5222.JPG,247
|
||||
LEO_5223.JPG,346
|
||||
LEO_5224.JPG,346
|
||||
LEO_5225.JPG,3
|
||||
LEO_5229.JPG,28
|
||||
LEO_5230.JPG,28
|
||||
LEO_5231.JPG,28
|
||||
LEO_5232.JPG,28
|
||||
LEO_5233.JPG,28
|
||||
LEO_5234.JPG,28
|
||||
LEO_5235.JPG,"282,331,3"
|
||||
LEO_5236.JPG,"331,28"
|
||||
LEO_5237.JPG,"82,331"
|
||||
LEO_5238.JPG,"282,331"
|
||||
LEO_5239.JPG,82
|
||||
LEO_5240.JPG,"282,209"
|
||||
LEO_5241.JPG,82
|
||||
LEO_5242.JPG,"282,33,331"
|
||||
LEO_5244.JPG,331
|
||||
LEO_5245.JPG,33
|
||||
LEO_5246.JPG,"331,09"
|
||||
LEO_5247.JPG,"331,20"
|
||||
LEO_5248.JPG,209
|
||||
LEO_5249.JPG,209
|
||||
LEO_5250.JPG,209
|
||||
LEO_5251.JPG,238
|
||||
LEO_5252.JPG,238
|
||||
LEO_5253.JPG,238
|
||||
LEO_5254.JPG,238
|
||||
LEO_5255.JPG,238
|
||||
LEO_5256.JPG,238
|
||||
LEO_5257.JPG,238
|
||||
LEO_5258.JPG,238
|
||||
LEO_5259.JPG,"255,31,224"
|
||||
LEO_5260.JPG,"255,224,311"
|
||||
LEO_5261.JPG,"255,311"
|
||||
LEO_5262.JPG,"255,311"
|
||||
LEO_5263.JPG,"255,311,2"
|
||||
LEO_5264.JPG,"311,220,275"
|
||||
LEO_5265.JPG,"220,4"
|
||||
LEO_5266.JPG,"215,224,220"
|
||||
LEO_5267.JPG,"224,220"
|
||||
LEO_5268.JPG,1
|
||||
LEO_5269.JPG,184
|
||||
LEO_5270.JPG,184
|
||||
LEO_5271.JPG,184
|
||||
LEO_5272.JPG,184
|
||||
LEO_5273.JPG,"184,315"
|
||||
LEO_5274.JPG,15
|
||||
LEO_5275.JPG,315
|
||||
LEO_5276.JPG,3
|
||||
LEO_5277.JPG,315
|
||||
LEO_5278.JPG,3
|
||||
LEO_5279.JPG,315
|
||||
LEO_5280.JPG,315
|
||||
LEO_5281.JPG,250
|
||||
LEO_5283.JPG,250
|
||||
LEO_5284.JPG,250
|
||||
LEO_5285.JPG,250
|
||||
LEO_5286.JPG,250
|
||||
LEO_5287.JPG,250
|
||||
LEO_5288.JPG,250
|
||||
LEO_5289.JPG,250
|
||||
LEO_5290.JPG,250
|
||||
LEO_5291.JPG,250
|
||||
LEO_5292.JPG,260
|
||||
LEO_5293.JPG,260
|
||||
LEO_5294.JPG,260
|
||||
LEO_5295.JPG,260
|
||||
LEO_5296.JPG,260
|
||||
LEO_5297.JPG,260
|
||||
LEO_5298.JPG,260
|
||||
LEO_5299.JPG,260
|
||||
LEO_5300.JPG,260
|
||||
LEO_5301.JPG,"328,319"
|
||||
LEO_5302.JPG,"328,319"
|
||||
LEO_5303.JPG,"328,319"
|
||||
LEO_5304.JPG,"328,319"
|
||||
LEO_5305.JPG,"328,319"
|
||||
LEO_5306.JPG,"328,319"
|
||||
LEO_5307.JPG,"328,319"
|
||||
LEO_5308.JPG,"3281,319"
|
||||
LEO_5309.JPG,"328,251"
|
||||
LEO_5311.JPG,"257,6,3"
|
||||
LEO_5312.JPG,"57,362"
|
||||
LEO_5313.JPG,362
|
||||
LEO_5314.JPG,36
|
||||
LEO_5315.JPG,"6,310"
|
||||
LEO_5316.JPG,"310,366"
|
||||
LEO_5317.JPG,"310,366"
|
||||
LEO_5318.JPG,"366,30"
|
||||
LEO_5319.JPG,"366,310"
|
||||
LEO_5320.JPG,"310,6"
|
||||
LEO_5321.JPG,310
|
||||
LEO_5322.JPG,310
|
||||
LEO_5323.JPG,310
|
||||
LEO_5324.JPG,354
|
||||
LEO_5325.JPG,"354,204"
|
||||
LEO_5326.JPG,"204,54"
|
||||
LEO_5327.JPG,"354,204,1"
|
||||
LEO_5328.JPG,"204,381,354"
|
||||
LEO_5329.JPG,"204,381,354"
|
||||
LEO_5330.JPG,"204,1,354"
|
||||
LEO_5331.JPG,"354,38"
|
||||
LEO_5332.JPG,354
|
||||
LEO_5333.JPG,54
|
||||
LEO_5334.JPG,354
|
||||
LEO_5336.JPG,0
|
||||
LEO_5337.JPG,0
|
||||
LEO_5338.JPG,"0,911"
|
||||
LEO_5339.JPG,961
|
||||
LEO_5340.JPG,961
|
||||
LEO_5341.JPG,961
|
||||
LEO_5342.JPG,961
|
||||
LEO_5343.JPG,961
|
||||
LEO_5344.JPG,961
|
||||
LEO_5345.JPG,961
|
||||
LEO_5346.JPG,961
|
||||
LEO_5347.JPG,961
|
||||
LEO_5348.JPG,961
|
||||
LEO_5349.JPG,961
|
||||
LEO_5350.JPG,961
|
||||
LEO_5351.JPG,961
|
||||
LEO_5352.JPG,"384,264"
|
||||
LEO_5353.JPG,"264,384"
|
||||
LEO_5354.JPG,"384,264"
|
||||
LEO_5355.JPG,"384,264"
|
||||
LEO_5356.JPG,"264,384"
|
||||
LEO_5357.JPG,"264,3"
|
||||
LEO_5358.JPG,"264,4"
|
||||
LEO_5360.JPG,"361,152"
|
||||
LEO_5361.JPG,"361,15"
|
||||
LEO_5362.JPG,"52,361"
|
||||
LEO_5363.JPG,"361,152"
|
||||
LEO_5364.JPG,"361,152"
|
||||
LEO_5365.JPG,"361,152"
|
||||
LEO_5366.JPG,"152,361"
|
||||
LEO_5367.JPG,"361,152"
|
||||
LEO_5369.JPG,201
|
||||
LEO_5370.JPG,201
|
||||
LEO_5371.JPG,"201,180"
|
||||
LEO_5372.JPG,"201,235,258"
|
||||
LEO_5373.JPG,"201,180,235,6"
|
||||
LEO_5374.JPG,"201,235,80,258"
|
||||
LEO_5375.JPG,"201,235,226"
|
||||
LEO_5376.JPG,"235,180"
|
||||
LEO_5377.JPG,"235,180,58"
|
||||
LEO_5378.JPG,"235,180,258"
|
||||
LEO_5379.JPG,"180,235,258,226"
|
||||
LEO_5380.JPG,"180,258,226"
|
||||
LEO_5381.JPG,"180,5,226"
|
||||
LEO_5382.JPG,"180,6"
|
||||
LEO_5383.JPG,"180,226,58"
|
||||
LEO_5384.JPG,"258,180,226"
|
||||
LEO_5385.JPG,278
|
||||
LEO_5386.JPG,278
|
||||
LEO_5387.JPG,278
|
||||
LEO_5388.JPG,278
|
||||
LEO_5389.JPG,764
|
||||
LEO_5390.JPG,764
|
||||
LEO_5391.JPG,764
|
||||
LEO_5392.JPG,764
|
||||
LEO_5393.JPG,764
|
||||
LEO_5394.JPG,764
|
||||
LEO_5395.JPG,2
|
||||
LEO_5396.JPG,"01,0"
|
||||
LEO_5397.JPG,207
|
||||
LEO_5398.JPG,207
|
||||
LEO_5399.JPG,"207,21"
|
||||
LEO_5400.JPG,207
|
||||
LEO_5401.JPG,"207,211"
|
||||
LEO_5402.JPG,207
|
||||
LEO_5403.JPG,"207,211"
|
||||
LEO_5404.JPG,"207,211"
|
||||
LEO_5405.JPG,211
|
||||
LEO_5406.JPG,211
|
||||
LEO_5407.JPG,211
|
||||
LEO_5408.JPG,"211,294"
|
||||
LEO_5409.JPG,"211,294"
|
||||
LEO_5410.JPG,"21,294"
|
||||
LEO_5411.JPG,294
|
||||
LEO_5412.JPG,294
|
||||
LEO_5413.JPG,294
|
||||
LEO_5414.JPG,294
|
||||
LEO_5415.JPG,294
|
||||
LEO_5416.JPG,294
|
||||
LEO_5417.JPG,324
|
||||
LEO_5418.JPG,324
|
||||
LEO_5419.JPG,324
|
||||
LEO_5420.JPG,324
|
||||
LEO_5421.JPG,324
|
||||
LEO_5422.JPG,324
|
||||
LEO_5423.JPG,324
|
||||
LEO_5424.JPG,324
|
||||
LEO_5425.JPG,353
|
||||
LEO_5426.JPG,353
|
||||
LEO_5427.JPG,353
|
||||
LEO_5428.JPG,353
|
||||
LEO_5429.JPG,"225,276"
|
||||
LEO_5430.JPG,"268,22,276"
|
||||
LEO_5431.JPG,"268,225,276"
|
||||
LEO_5432.JPG,"2,225"
|
||||
LEO_5433.JPG,"268,225"
|
||||
LEO_5434.JPG,225
|
||||
LEO_5435.JPG,"225,276"
|
||||
LEO_5436.JPG,"276,48"
|
||||
LEO_5437.JPG,"276,"
|
||||
LEO_5438.JPG,48
|
||||
LEO_5439.JPG,48
|
||||
LEO_5440.JPG,48
|
||||
LEO_5442.JPG,48
|
||||
LEO_5443.JPG,15
|
||||
LEO_5444.JPG,"15,"
|
||||
LEO_5445.JPG,"15,"
|
||||
LEO_5446.JPG,15
|
||||
LEO_5447.JPG,"15,"
|
||||
LEO_5448.JPG,15
|
||||
LEO_5449.JPG,"15,"
|
||||
LEO_5450.JPG,9
|
||||
LEO_5460.JPG,237
|
||||
LEO_5461.JPG,237
|
||||
LEO_5462.JPG,237
|
||||
LEO_5463.JPG,237
|
||||
LEO_5464.JPG,237
|
||||
LEO_5465.JPG,"237,17"
|
||||
LEO_5466.JPG,237
|
||||
LEO_5467.JPG,237
|
||||
LEO_5468.JPG,"172,170"
|
||||
LEO_5469.JPG,"172,170"
|
||||
LEO_5470.JPG,170
|
||||
LEO_5471.JPG,170
|
||||
LEO_5472.JPG,170
|
||||
LEO_5473.JPG,"170,172"
|
||||
LEO_5474.JPG,"172,17"
|
||||
LEO_5475.JPG,12
|
||||
LEO_5476.JPG,172
|
||||
LEO_5477.JPG,172
|
||||
LEO_5478.JPG,172
|
||||
LEO_5479.JPG,72
|
||||
LEO_5480.JPG,959
|
||||
LEO_5481.JPG,959
|
||||
LEO_5482.JPG,959
|
||||
LEO_5483.JPG,"959,232"
|
||||
LEO_5484.JPG,"9,232"
|
||||
LEO_5485.JPG,959
|
||||
LEO_5486.JPG,059
|
||||
LEO_5487.JPG,232
|
||||
LEO_5488.JPG,232
|
||||
LEO_5489.JPG,232
|
||||
LEO_5490.JPG,232
|
||||
LEO_5491.JPG,232
|
||||
LEO_5492.JPG,232
|
||||
LEO_5493.JPG,232
|
||||
LEO_5494.JPG,"30,"
|
||||
LEO_5495.JPG,"230,171"
|
||||
LEO_5496.JPG,230
|
||||
LEO_5497.JPG,"71,30"
|
||||
LEO_5498.JPG,"230,171"
|
||||
LEO_5499.JPG,"230,171"
|
||||
LEO_5500.JPG,230
|
||||
LEO_5501.JPG,230
|
||||
LEO_5502.JPG,230
|
||||
LEO_5503.JPG,230
|
||||
LEO_5504.JPG,171
|
||||
LEO_5505.JPG,171
|
||||
LEO_5506.JPG,171
|
||||
LEO_5507.JPG,171
|
||||
LEO_5508.JPG,171
|
||||
LEO_5509.JPG,17
|
||||
LEO_5510.JPG,171
|
||||
LEO_5511.JPG,3
|
||||
LEO_5512.JPG,338
|
||||
LEO_5513.JPG,338
|
||||
LEO_5514.JPG,338
|
||||
LEO_5515.JPG,338
|
||||
LEO_5516.JPG,338
|
||||
LEO_5517.JPG,338
|
||||
LEO_5518.JPG,"982,977"
|
||||
LEO_5519.JPG,"982,977"
|
||||
LEO_5520.JPG,"982,977"
|
||||
LEO_5521.JPG,"977,982"
|
||||
LEO_5522.JPG,"982,977"
|
||||
LEO_5523.JPG,"982,977"
|
||||
LEO_5524.JPG,"977,982"
|
||||
LEO_5525.JPG,"982,977"
|
||||
LEO_5526.JPG,"982,977"
|
||||
LEO_5527.JPG,"9,"
|
||||
LEO_5528.JPG,97
|
||||
LEO_5529.JPG,977
|
||||
LEO_5530.JPG,215
|
||||
LEO_5531.JPG,215
|
||||
LEO_5533.JPG,215
|
||||
LEO_5534.JPG,215
|
||||
LEO_5535.JPG,215
|
||||
LEO_5536.JPG,215
|
||||
LEO_5537.JPG,215
|
||||
LEO_5538.JPG,215
|
||||
LEO_5539.JPG,197
|
||||
LEO_5540.JPG,197
|
||||
LEO_5541.JPG,"197,316"
|
||||
LEO_5542.JPG,"197,"
|
||||
LEO_5543.JPG,197
|
||||
LEO_5544.JPG,197
|
||||
LEO_5545.JPG,197
|
||||
LEO_5546.JPG,191
|
||||
LEO_5547.JPG,191
|
||||
LEO_5548.JPG,"197,67"
|
||||
LEO_5549.JPG,"197,67"
|
||||
LEO_5550.JPG,"67,196"
|
||||
LEO_5551.JPG,"38,316"
|
||||
LEO_5552.JPG,"3,316"
|
||||
LEO_5553.JPG,316
|
||||
LEO_5554.JPG,"386,31"
|
||||
LEO_5555.JPG,386
|
||||
LEO_5556.JPG,386
|
||||
LEO_5557.JPG,"386,263"
|
||||
LEO_5558.JPG,"386,263"
|
||||
LEO_5559.JPG,"386,263"
|
||||
LEO_5560.JPG,"386,263"
|
||||
LEO_5561.JPG,386
|
||||
LEO_5562.JPG,386
|
||||
LEO_5563.JPG,"295,263"
|
||||
LEO_5564.JPG,"263,295"
|
||||
LEO_5565.JPG,"263,295"
|
||||
LEO_5566.JPG,"63,295"
|
||||
LEO_5567.JPG,"263,295"
|
||||
LEO_5568.JPG,295
|
||||
LEO_5569.JPG,295
|
||||
LEO_5570.JPG,"295,298"
|
||||
LEO_5571.JPG,"295,"
|
||||
LEO_5572.JPG,298
|
||||
LEO_5573.JPG,298
|
||||
LEO_5574.JPG,298
|
||||
LEO_5575.JPG,"298,116"
|
||||
LEO_5576.JPG,"16,298"
|
||||
LEO_5577.JPG,116
|
||||
LEO_5578.JPG,983
|
||||
LEO_5579.JPG,983
|
||||
LEO_5580.JPG,983
|
||||
LEO_5581.JPG,"983,279"
|
||||
LEO_5582.JPG,"983,79"
|
||||
LEO_5583.JPG,98
|
||||
LEO_5584.JPG,279
|
||||
LEO_5585.JPG,79
|
||||
LEO_5586.JPG,79
|
||||
LEO_5587.JPG,79
|
||||
LEO_5588.JPG,79
|
||||
LEO_5589.JPG,"79,30"
|
||||
LEO_5590.JPG,09
|
||||
LEO_5591.JPG,"312,300"
|
||||
LEO_5592.JPG,0
|
||||
LEO_5593.JPG,"312,300"
|
||||
LEO_5594.JPG,"300,312"
|
||||
LEO_5595.JPG,"312,300"
|
||||
LEO_5597.JPG,"312,3006"
|
||||
LEO_5599.JPG,3
|
||||
LEO_5600.JPG,284
|
||||
LEO_5601.JPG,284
|
||||
LEO_5602.JPG,"284,378"
|
||||
LEO_5603.JPG,284
|
||||
LEO_5604.JPG,284
|
||||
LEO_5605.JPG,184
|
||||
LEO_5606.JPG,378
|
||||
LEO_5607.JPG,378
|
||||
LEO_5608.JPG,378
|
||||
LEO_5609.JPG,378
|
||||
LEO_5610.JPG,378
|
||||
LEO_5611.JPG,378
|
||||
LEO_5612.JPG,378
|
||||
LEO_5613.JPG,"962,54"
|
||||
LEO_5614.JPG,"962,54"
|
||||
LEO_5615.JPG,"962,54"
|
||||
LEO_5616.JPG,"962,"
|
||||
LEO_5617.JPG,062
|
||||
LEO_5618.JPG,962
|
||||
LEO_5619.JPG,962
|
||||
LEO_5620.JPG,062
|
||||
LEO_5621.JPG,"62,54"
|
||||
LEO_5622.JPG,"2,54"
|
||||
LEO_5623.JPG,"062,54,541"
|
||||
LEO_5624.JPG,"962,54"
|
||||
LEO_5625.JPG,354
|
||||
LEO_5626.JPG,54
|
||||
LEO_5627.JPG,363
|
||||
LEO_5628.JPG,"831,363"
|
||||
LEO_5629.JPG,"363,831"
|
||||
LEO_5630.JPG,"363,1"
|
||||
LEO_5631.JPG,63
|
||||
LEO_5632.JPG,36
|
||||
LEO_5633.JPG,"363,831"
|
||||
LEO_5635.JPG,831
|
||||
LEO_5636.JPG,31
|
||||
LEO_5637.JPG,831
|
||||
LEO_5638.JPG,346
|
||||
LEO_5639.JPG,346
|
||||
LEO_5640.JPG,34
|
||||
LEO_5641.JPG,34
|
||||
LEO_5642.JPG,343
|
||||
LEO_5643.JPG,346
|
||||
LEO_5644.JPG,343
|
||||
LEO_5645.JPG,343
|
||||
LEO_5646.JPG,343
|
||||
LEO_5647.JPG,343
|
||||
LEO_5648.JPG,343
|
||||
LEO_5649.JPG,"17,208,223"
|
||||
LEO_5650.JPG,"208,17,22"
|
||||
LEO_5651.JPG,"17,208"
|
||||
LEO_5652.JPG,"17,208"
|
||||
LEO_5653.JPG,"208,17,223"
|
||||
LEO_5654.JPG,"17,208"
|
||||
LEO_5655.JPG,"17,208"
|
||||
LEO_5656.JPG,"208,17,240"
|
||||
LEO_5657.JPG,"208,240"
|
||||
LEO_5658.JPG,"223,240,976"
|
||||
LEO_5659.JPG,"223,976,240"
|
||||
LEO_5660.JPG,"240,223,76,399"
|
||||
LEO_5661.JPG,"240,223,976"
|
||||
LEO_5662.JPG,"240,223,976"
|
||||
LEO_5663.JPG,"140,223,976"
|
||||
LEO_5664.JPG,"976,399,0"
|
||||
LEO_5665.JPG,"076,399"
|
||||
LEO_5666.JPG,"76,399"
|
||||
LEO_5667.JPG,"399,7,182"
|
||||
LEO_5668.JPG,"182,76"
|
||||
LEO_5669.JPG,182
|
||||
LEO_5670.JPG,182
|
||||
LEO_5671.JPG,182
|
||||
LEO_5672.JPG,182
|
||||
LEO_5673.JPG,352
|
||||
LEO_5674.JPG,352
|
||||
LEO_5675.JPG,352
|
||||
LEO_5676.JPG,352
|
||||
LEO_5677.JPG,352
|
||||
LEO_5678.JPG,352
|
||||
LEO_5679.JPG,"352,356"
|
||||
LEO_5680.JPG,"356,239"
|
||||
LEO_5681.JPG,356
|
||||
LEO_5682.JPG,356
|
||||
LEO_5683.JPG,"239,35"
|
||||
LEO_5684.JPG,"239,972"
|
||||
LEO_5685.JPG,"239,972"
|
||||
LEO_5686.JPG,"239,97"
|
||||
LEO_5687.JPG,239
|
||||
LEO_5688.JPG,"239,966,972"
|
||||
LEO_5689.JPG,"972,96"
|
||||
LEO_5690.JPG,"972,966"
|
||||
LEO_5691.JPG,"972,966"
|
||||
LEO_5692.JPG,"72,966"
|
||||
LEO_5693.JPG,"72,966"
|
||||
LEO_5694.JPG,"966,972"
|
||||
LEO_5700.JPG,313
|
||||
LEO_5701.JPG,"313,32"
|
||||
LEO_5702.JPG,"313,323,"
|
||||
LEO_5703.JPG,"313,327,213"
|
||||
LEO_5704.JPG,"313,3,323"
|
||||
LEO_5705.JPG,313
|
||||
LEO_5706.JPG,313
|
||||
LEO_5707.JPG,323
|
||||
LEO_5708.JPG,323
|
||||
LEO_5709.JPG,"323,213"
|
||||
LEO_5710.JPG,213
|
||||
LEO_5711.JPG,213
|
||||
LEO_5712.JPG,213
|
||||
LEO_5713.JPG,213
|
||||
LEO_5714.JPG,213
|
||||
LEO_5715.JPG,213
|
||||
LEO_5716.JPG,213
|
||||
LEO_5717.JPG,213
|
||||
LEO_5718.JPG,"154,158"
|
||||
LEO_5719.JPG,"154,925,158"
|
||||
LEO_5720.JPG,"154,9,1"
|
||||
LEO_5721.JPG,"926,154"
|
||||
LEO_5722.JPG,"154,58"
|
||||
LEO_5723.JPG,"154,926"
|
||||
LEO_5724.JPG,"92,158,154"
|
||||
LEO_5725.JPG,"926,158"
|
||||
LEO_5726.JPG,58
|
||||
LEO_5727.JPG,"158,926"
|
||||
LEO_5728.JPG,5
|
||||
LEO_5729.JPG,158
|
||||
LEO_5730.JPG,158
|
||||
LEO_5732.JPG,307
|
||||
LEO_5733.JPG,07
|
||||
LEO_5734.JPG,307
|
||||
LEO_5735.JPG,307
|
||||
LEO_5736.JPG,307
|
||||
LEO_5738.JPG,307
|
||||
LEO_5739.JPG,307
|
||||
LEO_5740.JPG,307
|
||||
LEO_5741.JPG,307
|
||||
LEO_5742.JPG,307
|
||||
LEO_5743.JPG,07
|
||||
LEO_5744.JPG,973
|
||||
LEO_5745.JPG,973
|
||||
LEO_5746.JPG,973
|
||||
LEO_5747.JPG,973
|
||||
LEO_5748.JPG,973
|
||||
LEO_5749.JPG,973
|
||||
LEO_5750.JPG,973
|
||||
LEO_5751.JPG,973
|
||||
LEO_5752.JPG,973
|
||||
LEO_5753.JPG,973
|
||||
LEO_5754.JPG,973
|
||||
LEO_5755.JPG,973
|
||||
LEO_5756.JPG,973
|
||||
LEO_5757.JPG,973
|
||||
LEO_5758.JPG,973
|
||||
LEO_5759.JPG,322
|
||||
LEO_5760.JPG,322
|
||||
LEO_5761.JPG,322
|
||||
LEO_5762.JPG,322
|
||||
LEO_5763.JPG,322
|
||||
LEO_5764.JPG,322
|
||||
LEO_5765.JPG,322
|
||||
LEO_5766.JPG,322
|
||||
LEO_5767.JPG,322
|
||||
LEO_5768.JPG,322
|
||||
LEO_5769.JPG,22
|
||||
LEO_5770.JPG,22
|
||||
LEO_5771.JPG,43
|
||||
LEO_5772.JPG,43
|
||||
LEO_5773.JPG,"43,306"
|
||||
LEO_5774.JPG,43
|
||||
LEO_5775.JPG,"43,06"
|
||||
LEO_5776.JPG,"43,306"
|
||||
LEO_5777.JPG,"43,306"
|
||||
LEO_5778.JPG,"43,06"
|
||||
LEO_5779.JPG,43
|
||||
LEO_5780.JPG,06
|
||||
LEO_5782.JPG,306
|
||||
LEO_5783.JPG,06
|
||||
LEO_5784.JPG,06
|
||||
LEO_5785.JPG,306
|
||||
LEO_5786.JPG,06
|
||||
LEO_5787.JPG,06
|
||||
LEO_5788.JPG,06
|
||||
LEO_5789.JPG,297
|
||||
LEO_5790.JPG,297
|
||||
LEO_5791.JPG,297
|
||||
LEO_5792.JPG,305
|
||||
LEO_5795.JPG,305
|
||||
LEO_5796.JPG,305
|
||||
LEO_5797.JPG,305
|
||||
LEO_5798.JPG,305
|
||||
LEO_5799.JPG,305
|
||||
LEO_5800.JPG,3
|
||||
LEO_5801.JPG,"3750,217"
|
||||
LEO_5802.JPG,"3750,211"
|
||||
LEO_5803.JPG,"217,750"
|
||||
LEO_5804.JPG,"3750,2"
|
||||
LEO_5805.JPG,370
|
||||
LEO_5806.JPG,370
|
||||
LEO_5807.JPG,370
|
||||
LEO_5808.JPG,3750
|
||||
LEO_5809.JPG,217
|
||||
LEO_5810.JPG,"217,243"
|
||||
LEO_5811.JPG,"217,43"
|
||||
LEO_5812.JPG,"217,243,22"
|
||||
LEO_5813.JPG,"243,20"
|
||||
LEO_5814.JPG,"0,243"
|
||||
LEO_5815.JPG,"243,20"
|
||||
LEO_5816.JPG,"243,308"
|
||||
LEO_5817.JPG,"308,253"
|
||||
LEO_5818.JPG,"308,253"
|
||||
LEO_5819.JPG,308
|
||||
LEO_5820.JPG,"308,258"
|
||||
LEO_5821.JPG,308
|
||||
LEO_5822.JPG,"253,308"
|
||||
LEO_5823.JPG,53
|
||||
LEO_5824.JPG,253
|
||||
LEO_5825.JPG,"253,1"
|
||||
LEO_5826.JPG,"253,981"
|
||||
LEO_5827.JPG,"253,981"
|
||||
LEO_5828.JPG,"253,981"
|
||||
LEO_5829.JPG,"253,981"
|
||||
LEO_5830.JPG,981
|
||||
LEO_5831.JPG,981
|
||||
LEO_5837.JPG,"364,262"
|
||||
LEO_5838.JPG,"64,262"
|
||||
LEO_5839.JPG,"262,364"
|
||||
LEO_5840.JPG,"364,262"
|
||||
LEO_5841.JPG,"164,262"
|
||||
LEO_5842.JPG,064
|
||||
LEO_5843.JPG,"262,364"
|
||||
LEO_5844.JPG,"364,1262"
|
||||
LEO_5845.JPG,"664,262"
|
||||
LEO_5846.JPG,259
|
||||
LEO_5847.JPG,2590
|
||||
LEO_5848.JPG,259
|
||||
LEO_5849.JPG,259
|
||||
LEO_5850.JPG,985
|
||||
LEO_5851.JPG,985
|
||||
LEO_5852.JPG,985
|
||||
LEO_5853.JPG,"985,199"
|
||||
LEO_5854.JPG,"985,199"
|
||||
LEO_5855.JPG,199
|
||||
LEO_5856.JPG,199
|
||||
LEO_5857.JPG,"495,256"
|
||||
LEO_5858.JPG,",256"
|
||||
LEO_5859.JPG,"495,256"
|
||||
LEO_5860.JPG,"495,256"
|
||||
LEO_5861.JPG,"256,495"
|
||||
LEO_5862.JPG,"495,256"
|
||||
LEO_5863.JPG,"495,256"
|
||||
LEO_5864.JPG,"95,256"
|
||||
LEO_5865.JPG,"256,495,"
|
||||
LEO_5866.JPG,"256,495"
|
||||
LEO_5867.JPG,"256,95"
|
||||
LEO_5868.JPG,"256,95"
|
||||
LEO_5869.JPG,"256,95,1"
|
||||
LEO_5870.JPG,256
|
||||
LEO_5872.JPG,7
|
||||
LEO_5873.JPG,7
|
||||
LEO_5874.JPG,380
|
||||
LEO_5875.JPG,"380,"
|
||||
LEO_5876.JPG,380
|
||||
LEO_5877.JPG,83
|
||||
LEO_5878.JPG,83
|
||||
LEO_5879.JPG,"8,91"
|
||||
LEO_5880.JPG,"971,83"
|
||||
LEO_5881.JPG,"9,"
|
||||
LEO_5882.JPG,971
|
||||
LEO_5883.JPG,971
|
||||
LEO_5884.JPG,345
|
||||
LEO_5885.JPG,345
|
||||
LEO_5887.JPG,345
|
||||
LEO_5888.JPG,345
|
||||
LEO_5889.JPG,345
|
||||
LEO_5890.JPG,345
|
||||
LEO_5891.JPG,345
|
||||
LEO_5892.JPG,345
|
||||
LEO_5893.JPG,345
|
||||
LEO_5894.JPG,345
|
||||
LEO_5895.JPG,345
|
||||
LEO_5903.JPG,"292,88,292"
|
||||
LEO_5904.JPG,"88,292,390"
|
||||
LEO_5905.JPG,"292,88"
|
||||
LEO_5906.JPG,"292,88,390"
|
||||
LEO_5907.JPG,"292,88,390"
|
||||
LEO_5908.JPG,"292,88"
|
||||
LEO_5909.JPG,292
|
||||
LEO_5910.JPG,"292,390"
|
||||
LEO_5911.JPG,"292,390"
|
||||
LEO_5912.JPG,292
|
||||
LEO_5913.JPG,2921
|
||||
LEO_5914.JPG,"292,88"
|
||||
LEO_5915.JPG,"292,88"
|
||||
LEO_5916.JPG,"292,88"
|
||||
LEO_5917.JPG,390
|
||||
LEO_5918.JPG,390
|
||||
LEO_5919.JPG,390
|
||||
LEO_5920.JPG,390
|
||||
LEO_5921.JPG,390
|
||||
LEO_5922.JPG,390
|
||||
LEO_5923.JPG,390
|
||||
LEO_5924.JPG,"330,290"
|
||||
LEO_5925.JPG,"290,330"
|
||||
LEO_5926.JPG,"290,330,974"
|
||||
LEO_5927.JPG,290
|
||||
LEO_5928.JPG,290
|
||||
LEO_5929.JPG,"290,30"
|
||||
LEO_5930.JPG,"290,330"
|
||||
LEO_5931.JPG,"290,330"
|
||||
LEO_5932.JPG,"290,330"
|
||||
LEO_5933.JPG,"330,290,97"
|
||||
LEO_5934.JPG,"330,90,974"
|
||||
LEO_5935.JPG,330
|
||||
LEO_5936.JPG,"974,221"
|
||||
LEO_5937.JPG,974
|
||||
LEO_5938.JPG,97
|
||||
LEO_5939.JPG,974
|
||||
LEO_5940.JPG,974
|
||||
LEO_5941.JPG,974
|
||||
LEO_5942.JPG,"221,249"
|
||||
LEO_5943.JPG,"221,249"
|
||||
LEO_5944.JPG,"221,9"
|
||||
LEO_5945.JPG,"221,24"
|
||||
LEO_5946.JPG,"221,20"
|
||||
LEO_5947.JPG,"249,221"
|
||||
LEO_5948.JPG,"21,249"
|
||||
LEO_5949.JPG,"221,2"
|
||||
LEO_5950.JPG,22
|
||||
LEO_5951.JPG,"249,221"
|
||||
LEO_5952.JPG,"221,249"
|
||||
LEO_5953.JPG,"121,227"
|
||||
LEO_5954.JPG,"21,227"
|
||||
LEO_5955.JPG,"1,227"
|
||||
LEO_5956.JPG,227
|
||||
LEO_5957.JPG,227
|
||||
LEO_5958.JPG,227
|
||||
LEO_5959.JPG,227
|
||||
LEO_5960.JPG,22
|
||||
LEO_5961.JPG,"960,372,87"
|
||||
LEO_5962.JPG,"960,372,187"
|
||||
LEO_5963.JPG,"960,372,187"
|
||||
LEO_5964.JPG,"96,372,81"
|
||||
LEO_5965.JPG,"960,87,372"
|
||||
LEO_5966.JPG,"960,372,8"
|
||||
LEO_5967.JPG,"96,372"
|
||||
LEO_5968.JPG,"960,372"
|
||||
LEO_5969.JPG,"960,372"
|
||||
LEO_5970.JPG,372
|
||||
LEO_5972.JPG,372
|
||||
LEO_5973.JPG,72
|
||||
LEO_5974.JPG,32
|
||||
LEO_5975.JPG,72
|
||||
LEO_5976.JPG,"372,187"
|
||||
LEO_5977.JPG,187
|
||||
LEO_5978.JPG,187
|
||||
LEO_5979.JPG,187
|
||||
LEO_5980.JPG,"187,25"
|
||||
LEO_5981.JPG,187
|
||||
LEO_5982.JPG,187
|
||||
LEO_5983.JPG,265
|
||||
LEO_5984.JPG,"265,978"
|
||||
LEO_5985.JPG,"265,978,"
|
||||
LEO_5986.JPG,"265,978"
|
||||
LEO_5987.JPG,"265,978"
|
||||
LEO_5988.JPG,"978,18"
|
||||
LEO_5989.JPG,"18,978"
|
||||
LEO_5990.JPG,"978,18,326"
|
||||
LEO_5991.JPG,"978,18,18"
|
||||
LEO_5992.JPG,"978,18"
|
||||
LEO_5993.JPG,"978,18"
|
||||
LEO_5994.JPG,"978,18"
|
||||
LEO_5995.JPG,"18,978"
|
||||
LEO_5996.JPG,"978,18"
|
||||
LEO_5997.JPG,326
|
||||
LEO_5998.JPG,326
|
||||
LEO_5999.JPG,326
|
||||
LEO_6000.JPG,326
|
||||
LEO_6001.JPG,"326,975"
|
||||
LEO_6002.JPG,326
|
||||
LEO_6003.JPG,"326,5"
|
||||
LEO_6004.JPG,"326,348,975"
|
||||
LEO_6005.JPG,"326,75"
|
||||
LEO_6006.JPG,"326,648,"
|
||||
LEO_6007.JPG,"326,348,,48"
|
||||
LEO_6008.JPG,"326,975,348"
|
||||
LEO_6009.JPG,"326,975,348"
|
||||
LEO_6010.JPG,"326,348,975,288"
|
||||
LEO_6011.JPG,"326,975,48,88"
|
||||
LEO_6012.JPG,"48,975,28"
|
||||
LEO_6013.JPG,"048,975"
|
||||
|
Can't render this file because it contains an unexpected character in line 43 and column 22.
|
Loading…
Add table
Add a link
Reference in a new issue