# Understand Python Pillow bbox for Beginners – Python Pillow Tutorial

By | August 30, 2020

Python pillow bbox, which is also called bounding box. It is wildely used in pillow. In this tutorial, we will discuss some basic feature of it to help pillow beginners to understand.

## Syntax of bbox

In pillow, bbox is a tutple, it contains four elements:

(left, upper, right, lower)

which determine a pixel coordinate of region.

For example:

bbox = ( 200, 100, 300, 400)

which means the size of region is: width = 300 – 200 = 100, height = 400 – 100 = 300.

Meanwhile, we can find:

right >= left

lower >= upper

## How to use pillow bbox?

We can set a bbox rigion with a tuple

Meanwhile, we can set bbox = None, it often means the screen size of a computer.