Changeset 36989


Ignore:
Timestamp:
2022-12-07T23:42:57+13:00 (6 months ago)
Author:
davidb
Message:

Initial work on developing a PagedImagePlugin that uses Google Vision API to OCR pages as part of the ingest process

Location:
gs3-extensions/structured-image/trunk/perllib/plugins
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/structured-image/trunk/perllib/plugins/GoogleVisionAPIConverter.pm

    r36988 r36989  
    115115sub run_convert {
    116116    my $self = shift (@_);
    117     my ($base_dir,$filename,$file,$doc_obj) = @_;
     117    my ($filename,$file,$doc_obj) = @_;
    118118   
    119119    my $section = $doc_obj->get_top_section();
  • gs3-extensions/structured-image/trunk/perllib/plugins/GoogleVisionImagePlugin.pm

    r36988 r36989  
    44# ImagePlugin to use Google Vision API allowing for: metadata labelling
    55# of objects within a scene; OCR text recognition.
     6#
    67# A component of the Greenstone digital library software
    78# from the New Zealand Digital Library Project at the
     
    8283    my $url_encoded_filename = &util::rename_file($utf8_filename_no_path, $self->{'file_rename_method'});
    8384   
    84     $self->run_convert($base_dir,$filename_full_path,$url_encoded_filename,$doc_obj);
     85    $self->run_convert($filename_full_path,$url_encoded_filename,$doc_obj);
    8586   
    8687    $self->SUPER::process(@_);
Note: See TracChangeset for help on using the changeset viewer.