# Image size adjustment method and device based on model reasoning

*Источник: Google Patents*
*Дата: 2026-09-04*
*Язык: en*

Image size adjustment method and device based on model reasoning

The invention discloses an image size adjustment method and device based on model reasoning, and a storage medium, wherein the method comprises the steps of generating a summarizing mapping table, acquiring the data size of an image or a video frame, judging whether the image size or the video frame size is in a specific range, judging whether the image size or the video frame size is larger than the maximum input size based on a memory and a video memory of an execution device and the summarizing mapping table if the image size or the video frame size is in the specific range, preprocessing the image or the video frame, scaling the image size or the video frame size into the specific range, performing data block processing on the compressed image or the compressed video frame, performing model reasoning, obtaining a reasoning result, amplifying the spliced reasoning result to the image or the video frame size before compression, and outputting.

[Оригинал](https://patents.google.com/patent/CN116630145B/en)