12 lines
290 B
Python
12 lines
290 B
Python
from image_prediction.info import Info
|
|
|
|
|
|
def get_base_position_metadata(width, height, page_width, page_height):
|
|
return {
|
|
Info.WIDTH: width,
|
|
Info.HEIGHT: height,
|
|
Info.PAGE_IDX: 0,
|
|
Info.PAGE_WIDTH: page_width,
|
|
Info.PAGE_HEIGHT: page_height,
|
|
}
|