Skip to main content

cpselect

Alternative to Matlab's cpselect tool

Continuation of the cpselect project from Tobias Hoffmann

I have fixed the bug caused by the newer version of matplotlib. I have also asked if this project could be maintained by some other larger libraries like opencv or scikit-image, but none of them are able to do so!

I will try to keep this project up to date since some toolchains depend on it, but my Qt knowledge is quite rusty...

It would be amazing if we could switch from Qt to streamlit or dash for displaying the GUI in the browser! So if someone has an idea, please open up an issue for discussion :)

Prerequisites

You will need to have the following packages installed:

  • matplotlib (tested with 3.0.1)
  • Pillow (tested with 5.3.0)
  • PyQt5 (tested with 5.11.3)

Installing and import

Install the package using pip (since cpselect is already taken, I have opted for cpselect2)

pip install cpselect2

and import it with

from cpselect2.cpselect import cpselect

Using cpselect

Just call function cpselect. The function takes two inputs, two strings with the path to your pictures.

controlpointlist = cpselect("path/to/image1", "path/to/image2")

It will return a list object, which contains a dictionary for each control point.

[
    {
        'point_id': 1,
        'img1_x': 1060.4614978873824,
        'img1_y': 1152.554044351164,
        'img2_x': 136.567465687222,
        'img2_y': 1095.033125293419,
    },
    {
        'point_id': 2,
        'img1_x': 1681.815230178675,
        'img1_y': 727.6577421225597,
        'img2_x': 1378.2481704454449,
        'img2_y': 101.68856148684131,
    }
]

Metadata

Release files for cpselect2 1.0.6

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

Source distribution (sdist)

Source distribution for cpselect2 1.0.6
File Size Uploaded Provenance Actions
cpselect2-1.0.6.tar.gz 16.0 kB Without provenance Details for cpselect2-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cpselect2 1.0.6
File Interpreter ABI Platform Actions
cpselect2-1.0.6-py3-none-any.whl Python 3 none any Details for cpselect2-1.0.6-py3-none-any.whl

Total release size: 33.0 kB

Release files / cpselect2-1.0.6.tar.gz

Download URL cpselect2-1.0.6.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f397da702b6548919cece13202d024c5637276f66b91b6889ccaae0980715798
BLAKE2b-256 checksum
How to use checksums
7fa0fee1775e7bb9d07eb09be0878c2ce34cf510f00ece17f8b22c8d2bff7d9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.0 Linux/6.5.0-1017-azure

Release files / cpselect2-1.0.6-py3-none-any.whl

Download URL cpselect2-1.0.6-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
881f04c242c3fea4301be1853ef22db6da520dadd02b8dc632a522b1df946e0e
BLAKE2b-256 checksum
How to use checksums
040b65c6c91ebb9d6ac157b76bd7f6b01146b01fa657186cdd1b349d4754cc5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.0 Linux/6.5.0-1017-azure

Security for cpselect2 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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