Skip to main content

自定义相关工具库

Project description

引言

在实际工作中一些常见的可视化库(例如:matplotlib, cv2, PIL等)对于部分常用功能支持的不够好,在实际使用的时候往往需要进一步改写封装,本库用于记录一些在实际使用的时候基于现有的一些可视化库,自己改写的一些函数,这些函数会比原有的库兼容性更好。

功能描述

CVUtils

包括但是不限于以下功能:

  1. show_image(image, mode="bgr"):展示图片
  2. read_image(filename):读取中文路径下的图片
  3. resize2gray(image, new_shape):统一尺寸并修改为灰度图像
  4. cv2AddChineseText(img, text, position, textColor=(0, 255, 0), textSize=30, stroke_width=2):在图片中添加中文文本
  5. copy_files(all_filepath, output_path):使用协程技术拷贝文件,支持批量操作(速度极快)
  6. split_rectangle_image_from_imageArray(ori_image, left_top_point, right_bottom_point):切分矩形区域
  7. image_correction(img):霍夫变换图片校正
  8. Num2Plate(plate_nums):针对车牌识别任务,将数值列表还原为中文车牌
  9. save_list2txt(list_, output_file):将列表中的内容按行存储到指定文件中
  10. train_test_split2txt(filenames, test_size=0.2, output_dir=None):训练集测试集切分,针对图片

SpiderUtils

包括但不限于以下功能:

更多功能持续开发中~~~

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

MingLogUtils-1.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MingLogUtils-1.0.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file MingLogUtils-1.0.0.tar.gz.

File metadata

  • Download URL: MingLogUtils-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for MingLogUtils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0fa6c2d7273fa4d804247c3bb37bf7a3bef9052174f33e2f3d2105fe2685f980
MD5 7020eaa6299622a2be44aad3b54cc9ea
BLAKE2b-256 e7b074b3bd08f9e8a12859fe4e12d5a693f59a8944ed3b9b8c4c4df0d6911ff6

See more details on using hashes here.

File details

Details for the file MingLogUtils-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: MingLogUtils-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for MingLogUtils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b20d34c9342afae2f5a922baa46bc35503fbde6f9a993b5af146c92088b433d
MD5 534d7580d30977d9c9c75b40d76705a6
BLAKE2b-256 d1edf2f4e897c4ac3a57c9d3a70566e9c53406e908b06a645b96d9279d9509ac

See more details on using hashes here.

Supported by

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