Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a_cv2_find_biggest_square-0.10.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

a_cv2_find_biggest_square-0.10-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page