Skip to content

opencv example in README leads to incorrect color identification with default settings #6

@rrtaylor

Description

@rrtaylor

In the README example, an image file is opened using opencv, which will open the file in BGR. However, the color_names.npz dataset that comes with the repo is stored as RGB. Therefore if you use the example verbatim, you will get incorrect color identifications. Since from_file.py uses skimage.io instead of opencv, the only corrections needed are on the README, which are:

  • replacing opencv calls with skimage.io calls
  • removing any mention of needing color name files stored as BGR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions