Changeset 37050
- Timestamp:
- 2022-12-23T10:29:40+13:00 (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ImagePlugin.pm
r36271 r37050 150 150 # A plugin inheriting from this might be able to derive text from the image 151 151 # (e.g., through GoogleVisionAPI), and so don't just assume there is no 152 # text for the image -- check it 's text length, and only set the dummy152 # text for the image -- check its text length, and only set the dummy 153 153 # text if it is zero 154 if ($doc_obj->get_total_text_length() == 0) { 155 #we have no text - adds dummy text and NoText metadata 156 $self->add_dummy_text($doc_obj, $doc_obj->get_top_section()); 157 } 154 $self->add_dummy_text_if_empty($doc_obj, $doc_obj->get_top_section()); 158 155 159 156 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.