Get the largest blank square area in a picture
Project description
Get the largest blank square area in a picture
$pip install a-cv2-find-biggest-square
#adding to cv2
from a_cv2_imshow_thread import add_imshow_thread_to_cv2
add_imshow_thread_to_cv2()
from a_cv2_find_biggest_square import add_find_biggest_square_to_cv2
add_find_biggest_square_to_cv2()
import cv2
bil = r"https://github.com/hansalemaos/screenshots/raw/main/cv2_putTrueTypeText_000015.png"
box, resultpic, length = cv2.find_largest_square(
image=bil, scale_percent=30, gaussian_blur=6, draw_result=True
)
cv2.imshow_thread(resultpic)
#without adding to cv
from a_cv2_imshow_thread import add_imshow_thread_to_cv2
add_imshow_thread_to_cv2()
from a_cv2_find_biggest_square import find_largest_square
import cv2
bil = r"https://github.com/hansalemaos/screenshots/raw/main/cv2_putTrueTypeText_000015.png"
box, resultpic, length = find_largest_square(
image=bil, scale_percent=30, gaussian_blur=6, draw_result=True
)
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_find_biggest_square-0.10.tar.gz
.
File metadata
- Download URL: a_cv2_find_biggest_square-0.10.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd9a07bd5e88367ee2df89f7121177c5823fe31ba820093f2e8382a41ea07d84 |
|
MD5 | 1a718ea11ec744aad4127d35c31f8a2c |
|
BLAKE2b-256 | e7a07f1619a06454acdee4be2277b90be37e814c235b7f0f48393c42c75c72d3 |
File details
Details for the file a_cv2_find_biggest_square-0.10-py3-none-any.whl
.
File metadata
- Download URL: a_cv2_find_biggest_square-0.10-py3-none-any.whl
- Upload date:
- Size: 5.6 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 | 209f78f454dad02258c6e8c2bef2150e7688ee151b52e88a687fc9da7d7c472b |
|
MD5 | 2d7219d59dbbbf44811636250dd6895b |
|
BLAKE2b-256 | 273696930f018cdf8e64c9186060f23e5b3c7ac584228704ffebded174f2af1b |