picslate.make_picture.Img

class picslate.make_picture.Img(image: object)[source]

Bases: object

Img.

__init__(image: object) None[source]

__init__. Image and its numpy matrix

Parameters

image (object) –

Return type

None

Methods

__init__(image)

__init__.

background_color(pos[, pmax])

background_color.

font_color(pos)

font_color.

remove_text(pos[, color])

remove_text.

background_color(pos: (<class 'int'>, <class 'int'>, <class 'int'>, <class 'int'>), pmax: int = 10) -> (<class 'int'>, <class 'int'>, <class 'int'>)[source]

background_color. find background color

Parameters
  • pos ((int, int, int, int)) – position to search

  • pmax (int) – max pixel to evaluate

Return type

(int, int, int)

font_color(pos: (<class 'int'>, <class 'int'>, <class 'int'>, <class 'int'>)) -> (<class 'int'>, <class 'int'>, <class 'int'>)[source]

font_color. find color font

Parameters

pos ((int, int, int, int)) – position to search

Return type

(int, int, int)

remove_text(pos: (<class 'int'>, <class 'int'>, <class 'int'>, <class 'int'>), color: (<class 'int'>, <class 'int'>, <class 'int'>) = None) None[source]

remove_text. Remove object inside position

Parameters
  • pos ((int, int, int, int)) – position to be replaces

  • color (None | (int, int, int)) – color to replace

Return type

None