Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow double quotes for ICDAR Word Recognition #375

Merged
merged 7 commits into from
Jul 22, 2021

Conversation

sizov-kirill
Copy link

@sizov-kirill sizov-kirill commented Jul 22, 2021

Summary

Fixed #374.

How to test

Load ICDAR Word Recognition dataset with double quotes in the captions.

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

captions = []
for caption in objects[1:]:
if caption[0] != '\"' or caption[-1] != '\"':
log.warning('Captions must be inside double quotes, \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else branch contradicts this message. Maybe, it should tell that a pairing quote is not found?

Copy link
Contributor

@zhiltsov-max zhiltsov-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the changelog

@zhiltsov-max zhiltsov-max merged commit 551fa11 into develop Jul 22, 2021
@zhiltsov-max zhiltsov-max deleted the sk/fix-icdar-word-recognition branch July 22, 2021 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot import captions with double quotes ICDAR Word Recognition
2 participants