cocohelper
User Reference:
Installation
Usage
API Reference
cocohelper
adapters
dataframe
errors
filters
helper
importer
joins
merge
splitters
stats
transforms
compose
crop
CenterCrop
Crop
RandomCrop
SizeMode
_check_bbox
_crop_bbox
_crop_bbox()
_crop_segmentation
_norm_bbox
crop_img
randomflip
resize
transform
utils
validator
visualizer
cocohelper
API Reference
cocohelper
transforms
crop
_crop_bbox
View page source
_crop_bbox
cocohelper.transforms.crop.
_crop_bbox
(
bbox
,
xywh
)
[source]
Parameters
:
bbox
(
List
[
int
]
) –
xywh
(
Tuple
[
int
,
int
,
int
,
int
]
) –
Return type
:
List
[int]