Module Lunchify
Package jku.se

Class AnomalyDetection

java.lang.Object
jku.se.AnomalyDetection

public class AnomalyDetection extends Object
Utility class for detecting mismatches between OCR-extracted data and manually entered invoice data. Compares date, amount, and category fields to identify inconsistencies.
  • Constructor Details

    • AnomalyDetection

      public AnomalyDetection()
  • Method Details

    • detectMismatch

      public static boolean detectMismatch(Invoice invoice)
      Detects mismatches between OCR-extracted fields and actual invoice fields. Compares date, amount, and category.
      Parameters:
      invoice - The invoice to check.
      Returns:
      true if a mismatch is found, false otherwise.