Calculate the simlilarity of 2 pictures with OpenCV
Project description
$pip install a-cv2-calculate_simlilarity
from a_cv2_calculate_simlilarity import add_similarity_to_cv2
add_similarity_to_cv2() #monkeypatch
#if you don't want to use a monkey patch:
#from a_cv2_calculate_simlilarity import calculate_simlilarity
xx=cv2.calculate_simlilarity_of_2_pics(r"https://avatars.githubusercontent.com/u/77182807?v=4", r"https://avatars.githubusercontent.com/u/77182807?v=4")
yy=cv2.calculate_simlilarity_of_2_pics(r"https://avatars.githubusercontent.com/u/77182807?v=4", r'https://avatars.githubusercontent.com/u/1024025?v=4')
xx
Out[5]: (1.0, 1.0, 1.0, 0.0)
yy
Out[6]: (0.04821188521851477, 0.04095997109929877, 0.02169693238520613, 0.0)
Parameters:
im1:Any
image1 as url,file path,base64,numpy,PIL
im2:Any
image1 as url,file path,base64,numpy,PIL
Returns:
tuple
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file a_cv2_calculate_simlilarity-0.10.tar.gz
.
File metadata
- Download URL: a_cv2_calculate_simlilarity-0.10.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2138bb12a60736a8ad454e29d23d67e5755921ce7afa869286c2a02bc7fe495d |
|
MD5 | 0c2314b1578dd2b3746f9a23d03f16ea |
|
BLAKE2b-256 | ff313d76751a339209240cac46f0443bad158875bb34d38609bc6e7181c32c38 |
File details
Details for the file a_cv2_calculate_simlilarity-0.10-py3-none-any.whl
.
File metadata
- Download URL: a_cv2_calculate_simlilarity-0.10-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e61a64495013959fde101dafcb15621c7baeb1e6ecc585688a9128cc7ac8f86e |
|
MD5 | 6a52f784701c352be8f393b346d1d319 |
|
BLAKE2b-256 | dbc860338ee6a74a3e52040abf0c3160295bef2ba4545f3e429c83573bd9e133 |