Skip to main content

Cross-service Laber Agreement Score

Image recognition services provide different labels for the same images, with differences broadly either being different word choices for the same concept or not seeing same objects on both images. Cross-service Laber Agreement Score (COSLAB) is a method to evaluate the semantic similarity on image labels across several image recognition systems. It first produces each image a set of labels, one for each service. Then it uses word embedding models to find the closest match across label sets to see how much cross-service agreement there are for each label.

Conceptual how to use

Our work further highlights that image recognition services differ on what they see on images. Due to this, we suggest approaching them as interprentations instead of objective truths. In response, we propose two different strategies which you can employ to use them in your research:

  1. Inclusive strategy: to ensure that your work takes different interprentations into account, use more than one image recognition service to label the images. Then merge all labels together and acknowldge that results have inheritent differences emerging from different services.
  2. Rigorous strategy: to ensure that your work takes different interprentations into account, use more than one image recognition service to label the images. Then use COSLAB to choose only labels above a pre-defined threshold level for further analysis.

Use through Python code

from coslab import aws
from coslab import googlecloud
from coslab import azure_vision
from coslab import taggerresults
from coslab import tag_comparator

## establishing a container for all results
results = taggerresults.TaggerResults()

## establish classifiers
amazon = aws.AWS(api_id="", api_key="", api_region="")
google = googlecloud.GoogleCloud(service_account_info="")
azure = azure_vision.Azure(subscription_key="", endpoint="")

amazon.process_local( results, "image.png")
google.process_local( results, "image.png")
azure.process_local( results, "image.png")

results.export_pickle("image.pickle")

tag_comparator.compare_data( results )

Use through command line

You can access the full fun coslab-cli into the system, allowing

Installation

COSLAB is available via Pypi, so you can

python3 -m pip install coslab-core

References

Applications

  • None yet. Please let us know if you use it.

Acknowledgments

We generiously thank C. V. Åkerlund Foundation for supporting this work.

Metadata

Release files for coslab-core 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coslab-core 1.0.0
File Size Uploaded
coslab_core-1.0.0.tar.gz 19.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for coslab-core 1.0.0
File Interpreter ABI Platform
coslab_core-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 MB

Release files / coslab_core-1.0.0.tar.gz

Download URL coslab_core-1.0.0.tar.gz
Size 19.1 MB
Tags Source
SHA-256 checksum
How to use checksums
618632e5c8057aac7e919b8d9b72f788ae48867b7d1111f71403ee5f06515ae5
BLAKE2b-256 checksum
How to use checksums
b5d7c451b0160307096e01da9db94dffe479fc35c59a24bf854fb8e7f08511a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / coslab_core-1.0.0-py3-none-any.whl

Download URL coslab_core-1.0.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e71bd5adb0f65514379de197715430ad46bf0f7a31ee25ca5cfd92b28867101
BLAKE2b-256 checksum
How to use checksums
8e2ee7f34bc06131237320a7b5058dee466a25edeea8e95ad2c649e198c331f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

1 release file

0.9.1

1 release file

0.9

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page