Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hansalemaos/a_cv2_find_biggest_square
Get the largest blank square area in a picture
https://github.com/hansalemaos/a_cv2_find_biggest_square
cv2 opencv python square
Last synced: 6 days ago
JSON representation
Get the largest blank square area in a picture
- Host: GitHub
- URL: https://github.com/hansalemaos/a_cv2_find_biggest_square
- Owner: hansalemaos
- License: mit
- Created: 2022-11-13T04:33:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-13T04:33:05.000Z (about 2 years ago)
- Last Synced: 2024-10-12T16:22:51.567Z (about 1 month ago)
- Topics: cv2, opencv, python, square
- Language: Python
- Homepage: https://pypi.org/project/a-cv2-find-biggest-square/
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Get the largest blank square area in a picture
```python
$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
)```