Skip to main content

图片处理

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


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.20030617.tar.gz (154.7 kB view details)

Uploaded Source

Built Distribution

image_app-0.0.3.20030617-py3-none-any.whl (156.7 kB view details)

Uploaded Python 3

File details

Details for the file image_app-0.0.3.20030617.tar.gz.

File metadata

  • Download URL: image_app-0.0.3.20030617.tar.gz
  • Upload date:
  • Size: 154.7 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

Hashes for image_app-0.0.3.20030617.tar.gz
Algorithm Hash digest
SHA256 fc6155a96d5e88f9907e78099111d00795aded0d84bc785bd72d8152241aae95
MD5 c8778a64eb41b041a599ffdf6e3b6489
BLAKE2b-256 26d4bb3d3c003cb8703b3110a235f817f388563d8629b3f8905efea43eb0f3cb

See more details on using hashes here.

File details

Details for the file image_app-0.0.3.20030617-py3-none-any.whl.

File metadata

  • Download URL: image_app-0.0.3.20030617-py3-none-any.whl
  • Upload date:
  • Size: 156.7 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

Hashes for image_app-0.0.3.20030617-py3-none-any.whl
Algorithm Hash digest
SHA256 c278cb7aff2733f05fbee3cbfc388114e3d24f0577a9050790cf09b66375c108
MD5 55a3efac6e5ccff7462c068eaa45a0b6
BLAKE2b-256 f1b26b3663d42cf74792c19afe5609041e72e1fbcb69a0e7ef694518c4a0b92b

See more details on using hashes here.

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