图片处理
Project description
Documentation
The documentation is hosted at https://github.com/BingerYang/image_app
Installation
pip install image_app
Usage
在一张图中找到连续相似的一片片长方向区域
# -*- coding: utf-8 -*-
import os
from image_app import load_smooth_area
import cv2
path = os.path.abspath("1.jpg")
image = cv2.imread(path)
rects = load_smooth_area(image)
for rect in rects:
cv2.rectangle(image, (rect[0], rect[1]), (rect[2], rect[3]), (120, 78, 255), 2)
cv2.imwrite('test.jpg', image)
cv2.imshow("test", image)
cv2.waitKey(3000)
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
image_app-0.0.3.20030218.tar.gz
(154.2 kB
view details)
Built Distribution
File details
Details for the file image_app-0.0.3.20030218.tar.gz
.
File metadata
- Download URL: image_app-0.0.3.20030218.tar.gz
- Upload date:
- Size: 154.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27c200ec70195d62a346f527460c36d829071f6935def7f73549333b53a1caf7 |
|
MD5 | 0042dce1ee56f544a7eee332b71c0db3 |
|
BLAKE2b-256 | a3b72c5752511a35e10c5b5a941cef641854045f85e1b8db88e71fc14614cbaa |
File details
Details for the file image_app-0.0.3.20030218-py3-none-any.whl
.
File metadata
- Download URL: image_app-0.0.3.20030218-py3-none-any.whl
- Upload date:
- Size: 156.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d22c8d3107ae6d74650356f8478523c9b1a846fb99c29f0429b9bfc2427b9b95 |
|
MD5 | d4b35812c3aa7e22d6645a30a81dbc3f |
|
BLAKE2b-256 | 3ce8afa3b7edbe998f67c4f7162db997be2948f504479734e89ef620df49d4d8 |