Image

class tinder.image.BoundingBox[source]

A class to represent a rectangular region in a image.

You are encouraged to use from_ constructors.

bottom

Alias for field number 3

height

Alias for field number 5

left

Alias for field number 0

max_height

Alias for field number 7

max_width

Alias for field number 6

right

Alias for field number 2

top

Alias for field number 1

width

Alias for field number 4

tinder.image.pggan_bbox_from_landmarks(wh, e0e1m0m1s)[source]

[summary]

Parameters
  • wh (tuple) – (width, height)

  • e0e1m0m1s (list) – [ [ e0,e1,m0,m1] ]

Returns

A list of ([[x,y],[x,y],[x,y],[x,y]] in ccw, is_oversize)