Module: Mindee

Defined in:
lib/mindee/version.rb,
lib/mindee.rb,
lib/mindee/client.rb,
lib/mindee/http/error.rb,
lib/mindee/http/endpoint.rb,
lib/mindee/input/sources.rb,
lib/mindee/pdf/pdf_tools.rb,
lib/mindee/geometry/point.rb,
lib/mindee/geometry/utils.rb,
lib/mindee/geometry/min_max.rb,
lib/mindee/geometry/polygon.rb,
lib/mindee/image/image_utils.rb,
lib/mindee/pdf/pdf_processor.rb,
lib/mindee/pdf/pdf_compressor.rb,
lib/mindee/parsing/common/page.rb,
lib/mindee/product/us/w9/w9_v1.rb,
lib/mindee/input/local_response.rb,
lib/mindee/geometry/quadrilateral.rb,
lib/mindee/image/image_compressor.rb,
lib/mindee/parsing/common/ocr/ocr.rb,
lib/mindee/parsing/common/product.rb,
lib/mindee/parsing/common/document.rb,
lib/mindee/http/response_validation.rb,
lib/mindee/parsing/common/inference.rb,
lib/mindee/product/custom/custom_v1.rb,
lib/mindee/product/resume/resume_v1.rb,
lib/mindee/product/us/w9/w9_v1_page.rb,
lib/mindee/parsing/common/prediction.rb,
lib/mindee/parsing/custom/list_field.rb,
lib/mindee/parsing/common/orientation.rb,
lib/mindee/parsing/standard/tax_field.rb,
lib/mindee/product/cropper/cropper_v1.rb,
lib/mindee/product/invoice/invoice_v4.rb,
lib/mindee/product/receipt/receipt_v4.rb,
lib/mindee/product/receipt/receipt_v5.rb,
lib/mindee/parsing/common/api_response.rb,
lib/mindee/parsing/standard/base_field.rb,
lib/mindee/parsing/standard/date_field.rb,
lib/mindee/parsing/common/extras/extras.rb,
lib/mindee/product/passport/passport_v1.rb,
lib/mindee/product/us/w9/w9_v1_document.rb,
lib/mindee/parsing/common/ocr/mvision_v1.rb,
lib/mindee/parsing/standard/amount_field.rb,
lib/mindee/parsing/standard/locale_field.rb,
lib/mindee/parsing/standard/string_field.rb,
lib/mindee/product/custom/custom_v1_page.rb,
lib/mindee/product/fr/id_card/id_card_v1.rb,
lib/mindee/product/fr/id_card/id_card_v2.rb,
lib/mindee/product/fr/payslip/payslip_v2.rb,
lib/mindee/product/resume/resume_v1_page.rb,
lib/mindee/product/us/us_mail/us_mail_v2.rb,
lib/mindee/parsing/standard/boolean_field.rb,
lib/mindee/product/generated/generated_v1.rb,
lib/mindee/parsing/standard/position_field.rb,
lib/mindee/product/cropper/cropper_v1_page.rb,
lib/mindee/product/invoice/invoice_v4_page.rb,
lib/mindee/product/receipt/receipt_v4_page.rb,
lib/mindee/product/receipt/receipt_v5_page.rb,
lib/mindee/extraction/common/extracted_image.rb,
lib/mindee/extraction/common/image_extractor.rb,
lib/mindee/product/custom/custom_v1_document.rb,
lib/mindee/product/fr/payslip/payslip_v2_pto.rb,
lib/mindee/product/passport/passport_v1_page.rb,
lib/mindee/product/resume/resume_v1_document.rb,
lib/mindee/product/resume/resume_v1_language.rb,
lib/mindee/product/fr/id_card/id_card_v1_page.rb,
lib/mindee/product/fr/id_card/id_card_v2_page.rb,
lib/mindee/product/fr/payslip/payslip_v2_page.rb,
lib/mindee/product/resume/resume_v1_education.rb,
lib/mindee/product/us/us_mail/us_mail_v2_page.rb,
lib/mindee/parsing/common/extras/cropper_extra.rb,
lib/mindee/parsing/custom/classification_field.rb,
lib/mindee/product/cropper/cropper_v1_document.rb,
lib/mindee/product/generated/generated_v1_page.rb,
lib/mindee/product/invoice/invoice_v4_document.rb,
lib/mindee/product/receipt/receipt_v4_document.rb,
lib/mindee/product/receipt/receipt_v5_document.rb,
lib/mindee/product/us/bank_check/bank_check_v1.rb,
lib/mindee/product/invoice/invoice_v4_line_item.rb,
lib/mindee/product/receipt/receipt_v5_line_item.rb,
lib/mindee/product/resume/resume_v1_certificate.rb,
lib/mindee/parsing/standard/classification_field.rb,
lib/mindee/product/fr/carte_grise/carte_grise_v1.rb,
lib/mindee/product/fr/energy_bill/energy_bill_v1.rb,
lib/mindee/product/passport/passport_v1_document.rb,
lib/mindee/extraction/pdf_extractor/extracted_pdf.rb,
lib/mindee/extraction/pdf_extractor/pdf_extractor.rb,
lib/mindee/extraction/tax_extractor/ocr_extractor.rb,
lib/mindee/extraction/tax_extractor/tax_extractor.rb,
lib/mindee/parsing/generated/generated_list_field.rb,
lib/mindee/parsing/standard/payment_details_field.rb,
lib/mindee/product/business_card/business_card_v1.rb,
lib/mindee/product/delivery_note/delivery_note_v1.rb,
lib/mindee/product/fr/id_card/id_card_v1_document.rb,
lib/mindee/product/fr/id_card/id_card_v2_document.rb,
lib/mindee/product/fr/payslip/payslip_v2_document.rb,
lib/mindee/product/fr/payslip/payslip_v2_employee.rb,
lib/mindee/product/fr/payslip/payslip_v2_employer.rb,
lib/mindee/product/us/us_mail/us_mail_v2_document.rb,
lib/mindee/product/fr/carte_vitale/carte_vitale_v1.rb,
lib/mindee/product/generated/generated_v1_document.rb,
lib/mindee/parsing/generated/generated_object_field.rb,
lib/mindee/product/barcode_reader/barcode_reader_v1.rb,
lib/mindee/product/bill_of_lading/bill_of_lading_v1.rb,
lib/mindee/product/fr/payslip/payslip_v2_employment.rb,
lib/mindee/product/fr/payslip/payslip_v2_pay_detail.rb,
lib/mindee/product/fr/payslip/payslip_v2_pay_period.rb,
lib/mindee/product/us/bank_check/bank_check_v1_page.rb,
lib/mindee/parsing/common/extras/full_text_ocr_extra.rb,
lib/mindee/product/eu/license_plate/license_plate_v1.rb,
lib/mindee/product/generated/generated_v1_prediction.rb,
lib/mindee/product/fr/carte_grise/carte_grise_v1_page.rb,
lib/mindee/product/fr/energy_bill/energy_bill_v1_page.rb,
lib/mindee/parsing/standard/company_registration_field.rb,
lib/mindee/product/business_card/business_card_v1_page.rb,
lib/mindee/product/delivery_note/delivery_note_v1_page.rb,
lib/mindee/product/eu/driver_license/driver_license_v1.rb,
lib/mindee/product/fr/bank_statement/bank_statement_v1.rb,
lib/mindee/product/fr/payslip/payslip_v2_salary_detail.rb,
lib/mindee/product/us/driver_license/driver_license_v1.rb,
lib/mindee/product/fr/carte_vitale/carte_vitale_v1_page.rb,
lib/mindee/product/international_id/international_id_v1.rb,
lib/mindee/product/international_id/international_id_v2.rb,
lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb,
lib/mindee/product/proof_of_address/proof_of_address_v1.rb,
lib/mindee/product/resume/resume_v1_social_networks_url.rb,
lib/mindee/product/us/bank_check/bank_check_v1_document.rb,
lib/mindee/product/us/us_mail/us_mail_v2_sender_address.rb,
lib/mindee/product/barcode_reader/barcode_reader_v1_page.rb,
lib/mindee/product/bill_of_lading/bill_of_lading_v1_page.rb,
lib/mindee/product/us/healthcare_card/healthcare_card_v1.rb,
lib/mindee/product/eu/license_plate/license_plate_v1_page.rb,
lib/mindee/product/fr/carte_grise/carte_grise_v1_document.rb,
lib/mindee/product/fr/energy_bill/energy_bill_v1_document.rb,
lib/mindee/product/ind/indian_passport/indian_passport_v1.rb,
lib/mindee/product/business_card/business_card_v1_document.rb,
lib/mindee/product/delivery_note/delivery_note_v1_document.rb,
lib/mindee/product/us/us_mail/us_mail_v2_recipient_address.rb,
lib/mindee/product/bill_of_lading/bill_of_lading_v1_carrier.rb,
lib/mindee/product/bill_of_lading/bill_of_lading_v1_shipper.rb,
lib/mindee/product/eu/driver_license/driver_license_v1_page.rb,
lib/mindee/product/financial_document/financial_document_v1.rb,
lib/mindee/product/fr/bank_statement/bank_statement_v1_page.rb,
lib/mindee/product/fr/carte_vitale/carte_vitale_v1_document.rb,
lib/mindee/product/resume/resume_v1_professional_experience.rb,
lib/mindee/product/us/driver_license/driver_license_v1_page.rb,
lib/mindee/product/barcode_reader/barcode_reader_v1_document.rb,
lib/mindee/product/bill_of_lading/bill_of_lading_v1_document.rb,
lib/mindee/product/fr/payslip/payslip_v2_bank_account_detail.rb,
lib/mindee/product/international_id/international_id_v1_page.rb,
lib/mindee/product/international_id/international_id_v2_page.rb,
lib/mindee/product/invoice_splitter/invoice_splitter_v1_page.rb,
lib/mindee/product/proof_of_address/proof_of_address_v1_page.rb,
lib/mindee/product/bill_of_lading/bill_of_lading_v1_consignee.rb,
lib/mindee/product/eu/license_plate/license_plate_v1_document.rb,
lib/mindee/product/fr/energy_bill/energy_bill_v1_energy_usage.rb,
lib/mindee/product/fr/energy_bill/energy_bill_v1_meter_detail.rb,
lib/mindee/product/fr/energy_bill/energy_bill_v1_subscription.rb,
lib/mindee/product/us/healthcare_card/healthcare_card_v1_page.rb,
lib/mindee/product/ind/indian_passport/indian_passport_v1_page.rb,
lib/mindee/product/us/healthcare_card/healthcare_card_v1_copay.rb,
lib/mindee/product/eu/driver_license/driver_license_v1_document.rb,
lib/mindee/product/fr/bank_statement/bank_statement_v1_document.rb,
lib/mindee/product/us/driver_license/driver_license_v1_document.rb,
lib/mindee/product/bill_of_lading/bill_of_lading_v1_carrier_item.rb,
lib/mindee/product/bill_of_lading/bill_of_lading_v1_notify_party.rb,
lib/mindee/product/financial_document/financial_document_v1_page.rb,
lib/mindee/product/fr/energy_bill/energy_bill_v1_energy_consumer.rb,
lib/mindee/product/fr/energy_bill/energy_bill_v1_energy_supplier.rb,
lib/mindee/product/international_id/international_id_v1_document.rb,
lib/mindee/product/international_id/international_id_v2_document.rb,
lib/mindee/product/invoice_splitter/invoice_splitter_v1_document.rb,
lib/mindee/product/proof_of_address/proof_of_address_v1_document.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1.rb,
lib/mindee/product/us/healthcare_card/healthcare_card_v1_document.rb,
lib/mindee/product/fr/bank_account_details/bank_account_details_v1.rb,
lib/mindee/product/fr/bank_account_details/bank_account_details_v2.rb,
lib/mindee/product/fr/bank_statement/bank_statement_v1_transaction.rb,
lib/mindee/product/ind/indian_passport/indian_passport_v1_document.rb,
lib/mindee/product/financial_document/financial_document_v1_document.rb,
lib/mindee/product/financial_document/financial_document_v1_line_item.rb,
lib/mindee/product/multi_receipts_detector/multi_receipts_detector_v1.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_page.rb,
lib/mindee/extraction/multi_receipts_extractor/multi_receipts_extractor.rb,
lib/mindee/product/fr/bank_account_details/bank_account_details_v1_page.rb,
lib/mindee/product/fr/bank_account_details/bank_account_details_v2_bban.rb,
lib/mindee/product/fr/bank_account_details/bank_account_details_v2_page.rb,
lib/mindee/product/fr/energy_bill/energy_bill_v1_taxes_and_contribution.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_sodium.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_calorie.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_protein.rb,
lib/mindee/product/multi_receipts_detector/multi_receipts_detector_v1_page.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_document.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_nutrient.rb,
lib/mindee/product/fr/bank_account_details/bank_account_details_v1_document.rb,
lib/mindee/product/fr/bank_account_details/bank_account_details_v2_document.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_total_fat.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_trans_fat.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_added_sugar.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_cholesterol.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_total_sugar.rb,
lib/mindee/product/multi_receipts_detector/multi_receipts_detector_v1_document.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_serving_size.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_dietary_fiber.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_saturated_fat.rb,
lib/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_total_carbohydrate.rb

Overview

Mindee

Defined Under Namespace

Modules: Extraction, Geometry, HTTP, Image, Input, PDF, Parsing, Product Classes: Client

Constant Summary collapse

VERSION =

Current version.

'3.16.0'
PLATFORM =

Current platform.

find_platform.freeze

Class Method Summary collapse

Class Method Details

.find_platformString

Finds and return the current platform.

Returns:

  • (String)


10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/mindee/version.rb', line 10

def self.find_platform
  host = RbConfig::CONFIG['host_os']
  platforms = {
    linux: %r{linux|cygwin},
    windows: %r{mswin|mingw|bccwin|wince|emx|win32},
    macos: %r{mac|darwin},
    bsd: %r{bsd},
    solaris: %r{solaris|sunos},
  }
  platforms.each do |os, regexp|
    return os unless (regexp =~ host).nil?
  end
end