Skip to content

huangshiyu13/image_pylib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image_pylib

This repository intents to build a general image processing python library. This is for personal usage.

Usage

  • have a look at showLable.py

API

  • read_img: read in a image
  • read_ano:read in the annotation
  • drawBox(thr=-1.0, showName = False): draw the boxes in annotation onto the image. thr is the threshold for the bounding box's score, showName means showing the class names
  • save_img(imgName): save image to the path 'imgName'
  • pureResize(width, height): resize image without padding
  • cleanAno(w0, h0): remove the bad boxes
  • resize(width, height, scale=1.0): resize image with random padding
  • resizeBBXs(r, x_d, y_d): resize boxes

About

image processing library for python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages