CN115048016A - Adaptive image adjusting method, device and equipment and readable storage medium - Google Patents
Adaptive image adjusting method, device and equipment and readable storage medium Download PDFInfo
- Publication number
- CN115048016A CN115048016A CN202210770969.1A CN202210770969A CN115048016A CN 115048016 A CN115048016 A CN 115048016A CN 202210770969 A CN202210770969 A CN 202210770969A CN 115048016 A CN115048016 A CN 115048016A
- Authority
- CN
- China
- Prior art keywords
- data
- image
- editable
- display
- acquiring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000003044 adaptive effect Effects 0.000 title claims description 23
- 238000004590 computer program Methods 0.000 claims description 12
- 238000007781 pre-processing Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 claims description 5
- 238000005286 illumination Methods 0.000 claims description 4
- 238000000605 extraction Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 16
- 230000008569 process Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 230000017105 transposition Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The application relates to the technical field of images and discloses a method, a device, equipment and a readable storage medium for self-adaptive adjustment of images. According to the scheme of the application, after the image is acquired, corresponding adjustment is made according to different types of the image, so that the image can be normally displayed in the display, wherein the image is editable according to the type of the image, whether first data of the editable image can be adapted to second data of the display is judged, if the first data can not be adapted to the second data, the first data needs to be adjusted, so that the first data can be adapted to the second data, the editable image can be directly displayed in the display after the first data is adjusted to the second data, and the image can be directly displayed in the display if the first data can be adapted to the second data, so that the technical problem that the image in the prior art can not be adaptively displayed in the display is solved.
Description
Technical Field
The present application relates to the field of image technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for adaptive adjustment of an image.
Background
With the continuous improvement of display screens and the input of various different images, the requirements on image adaptive technology are higher and higher for better displaying image content, but the existing adaptive adjustment only performs adaptive adjustment on character parts and cannot adapt to the image, so that the existing technology has defects and needs to be improved.
Disclosure of Invention
The present application mainly aims to provide a method, an apparatus, a device, and a readable storage medium for adaptively adjusting various images, and aims to solve the technical problem that images cannot be adaptively displayed on a display in the prior art.
In order to achieve the above object, the present application provides a method for adaptively adjusting an image, including:
acquiring an image;
analyzing the image to obtain the type of the image;
judging whether the image is an editable image or not according to the type of the image;
if the image is an editable image, acquiring first data of the editable image and second data of the display;
judging whether the first data and the second data are suitable or not according to the first data and the second data;
and if the first data and the second data are not suitable, adjusting the proportion of the first data and the second data until the first data and the second data correspond to each other, and displaying an image on the display according to the adjusted first data.
Further, the step of determining whether the first data and the second data are suitable according to the first data and the second data includes:
acquiring the sizes of the first data and the second data;
comparing the size of the first data with the size of the second data.
Further, the first data includes: a first resolution, a first dimension, and a first coordinate;
the second data includes: a second resolution, a second dimension, and a second coordinate.
Further, before the step of adjusting the ratio of the first data and the second data until the corresponding step, the method includes:
detecting key points with unchanged scale and rotation of the image through a Gaussian differential function;
the key points are positioned, one or more directions are distributed to the key points based on the local gradient direction of the image, and the direction, the scale and the position of the image data relative to the key points are transformed;
measuring local gradients of the image at a selected scale in a neighborhood around each of said keypoints, the gradients being transformed into a representation that allows for relatively large local shape distortions and illumination variations;
the size information is compared to the gradient to determine the degree of image scaling.
Further, after the step of determining whether the image is an editable image according to the type of the image, the method further includes:
if the image is an uneditable image, acquiring third data of the uneditable image;
judging whether the third data is suitable for the second data or not;
if the third data is not suitable for the second data, identifying elements and element relations of the uneditable image content;
preprocessing the identified elements and element relationships;
automatically typesetting the preprocessed content;
and displaying the non-editable image on the display according to the typeset content.
Further, the step of preprocessing the identified elements and element relationships comprises:
memorizing the identified elements and element relation contents;
and (3) carrying out image drawing and element extraction on the non-editable image by taking the elements as units, adjusting and typesetting the positions of the elements based on a preset rule, and tracking and connecting and adjusting the relationship between the elements.
Further, the step of automatically typesetting the preprocessed content includes:
by means of recognition and repeated carving, the non-editable content is copied and drawn in the editable format page, converted into editable images for typesetting, and the original logic content is maintained for presentation.
The embodiment of the application further provides a method for adaptively adjusting an image, which comprises the following steps:
the first acquisition module is used for acquiring an image;
the analysis module is used for analyzing the image and acquiring the type of the image according to the analysis result;
the first judgment module is used for judging whether the image is an editable image or not according to the type of the image;
the second acquisition module is used for acquiring first data of an editable image and second data of the display if the image is the editable image;
the second judging module is used for judging whether the first data and the second data are suitable or not according to the first data and the second data;
and the display module is used for adjusting the proportion of the first data to correspond to the second data if the first data is not suitable for the second data, and displaying an image on the display according to the adjusted first data.
The present application further provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any one of the above.
The self-adaptive image adjusting method comprises the steps of after an image is obtained, making corresponding adjustment according to different types of the image to enable the image to be displayed normally in a display, wherein the type of the image is an editable image, judging whether first data of the editable image can be adapted to second data of the display or not, if the first data can not be adapted to the second data, indicating that the first data needs to be adjusted to enable the first data to be adapted to the second data, when the first data is adapted to the second data after adjustment is completed, directly displaying the editable image in the display, and if the first data can be adapted to the second data, directly displaying the editable image in the display, so that the technical problem that the image in the prior art can not be displayed in the display in a self-adaptive mode is solved.
Drawings
Fig. 1 is a schematic flowchart of an adaptive image adjustment method according to an embodiment of the present application;
FIG. 2 is a block diagram schematically illustrating a structure of an adaptive image adjusting apparatus according to an embodiment of the present disclosure;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides an adaptive image adjustment method, including:
s1, acquiring an image;
s2, analyzing the image to obtain the type of the image;
s3, judging whether the image is an editable image or not according to the type of the image;
s4, if the image is an editable image, acquiring first data of the editable image and second data of the display;
s5, judging whether the first data are suitable for the second data according to the first data and the second data;
and S6, if the first data and the second data are not suitable, adjusting the proportion of the first data and the second data until the first data and the second data correspond to each other, and displaying an image on the display according to the adjusted first data.
As described in the above steps S1-S2, the terminal can analyze the image by acquiring the image and analyzing the image by the terminal, and by analyzing the type of the image, wherein the similarity of the image can be divided into a plurality of kinds, and by analyzing the type of the image, the attribute of the image can be analyzed, and different processes can be made according to different types of images because the attributes of different types of images are different.
As described in the above steps S3-S4, the terminal can determine whether the acquired image is an editable image or not by acquiring the type of the image and determining the type of the attribute of the image, and the editable image and the non-editable image are adjusted differently, and if the terminal determines that the image is an editable image, first data of the editable image is acquired based on the determined editable image, and second data on the display is acquired by the terminal, and since the editable image can determine whether the first data and the second data are compatible by determining the size and the position in the first data and the size and the position in the second data, it indicates that the editable image can be directly displayed on the display without editing processing.
After the first data of the editable image and the second data of the display are obtained, as described in the above steps S5-S6, the terminal determines whether the first data of the editable image and the second data of the display are compatible, wherein the first data may include a size or a coordinate position, and determines whether the size or the coordinate position corresponds to the size or the coordinate position of the second data, if not, the size or the coordinate position of the first data cannot correspond to the size or the coordinate position of the second data, and if the terminal cannot directly place the editable image on the display for displaying, the terminal may adjust the first data of the editable image by scaling the first data of the editable image, wherein the scaling of the first data may keep the content of the editable image unchanged, and by adjusting the first data to correspond to the second data, the first data can be combined with the second data to show that the adjusted editable image can be directly put into a display for displaying, so that the image can automatically adapt to the display.
In this embodiment, after an image is acquired, corresponding adjustment is performed according to different types of images, so that the image can be normally displayed on a display, where the image is an editable image according to the type of the image, by determining whether first data of the editable image is adaptable to second data of the display, if the first data is not adaptable, it is indicated that the first data needs to be adjusted, so that the first data is adaptable to the second data, when the first data is adapted to the second data after adjustment is completed, the editable image can be directly displayed on the display, and if the first data is adaptable to the second data, the editable image can be directly displayed on the display, so as to solve the technical problem that the image in the prior art cannot be adaptively displayed on the display.
In another embodiment, the editable image may comprise a flowchart, a brain diagram, a system block diagram, or a diagram of another editable document, and in the editable image, the editable image needs to be displayed on a display, the display is in a reading mode/a note taking mode, and the user may switch the editable image backwards, for example: the terminal can adaptively adjust the editable image to display the whole content of the editable image on the display, or the user can enlarge or reduce the editable image, and the terminal can normally display the editable image on the display by adjusting the enlargement or reduction according to the proportion of the editable image.
It should be noted that the above adjustment manners for the editable image/icon include, but are not limited to: and adjusting connecting lines of the module block diagrams, the shapes of the module block diagrams and the positions of the module block diagrams based on the current display size, filling and adjusting blank positions based on a space-saving principle in a specified display area, and filling and arranging the blank positions in rows and columns according to a preset direction. Specifically, for example, the adjustment such as folding/stretching/turning of the connection lines of the whole diagram is realized, the memory of the module block diagram objects connected by the connection line terminals is realized, the line and column transposition is performed between the plurality of module blocks in the state of unchanged connection logic, and/or the adaptive typesetting is further formed by adapting the characters in the modules to the change of the block diagram after the appearance is changed in the aspect of 'width, height' by adjusting the position of the block diagram and adapting the display area.
Further, the step of determining whether the first data and the second data are suitable according to the first data and the second data includes:
s201, acquiring sizes of the first data and the second data;
s202, comparing the size of the first data with the size of the second data.
As described in the foregoing steps S201 to S202, in the step of determining the first data and the second data, the terminal may obtain the size of the first data and the size of the second data, and then determine whether the sizes of the first data and the second data are suitable, if the size of the first data and the size of the second data are suitable, the terminal may display an editable image directly on the display, and if the size of the first data and the size of the second data are not suitable, the terminal may scale the size of the first data so that the size of the first data corresponds to the size of the second data, and the editable image may be displayed on the display.
Further, the first data includes: a first resolution, a first dimension, and a first coordinate;
the second data includes: a second resolution, a second dimension, and a second coordinate.
In this embodiment, the size of the first dimension can be determined by the first coordinate in the first data of the editable image, wherein when the first data and the second data are adaptively adjusted, the first resolution is adjusted to adapt the first resolution to the second resolution, and the first resolution of any region of the editable image is adapted to the second resolution of the display, so that the editable image can be displayed on the display.
Further, before the step of adjusting the proportion of the first data and the proportion of the second data until the corresponding step, the method includes:
s401, detecting key points with unchanged scale and rotation of the image through a Gaussian differential function;
s402, positioning the key points, distributing the key points to one or more directions based on the local gradient direction of the image, and transforming the direction, the scale and the position of the image data relative to the key points;
s403, measuring local gradients of the image in a neighborhood around each key point on a selected scale, wherein the gradients are transformed into a representation which allows larger deformation of local shape and illumination change;
and S404, comparing the size information with the gradient to determine the image scaling degree.
As described in the above steps S401-S404, the key points are located in different scale spaces by gaussian differential functions, all subsequent operations on the image data are transformed with respect to the orientation, scale and position of the key points, thereby providing invariance to these transformations, the processing stability of the image is made decisive by the key points, local gradients of the image are measured at selected scales in the neighborhood around each key point, these gradients are transformed into a representation that allows for larger local shape deformations and illumination variations, the size information and gradients are compared, the degree of scaling of the editable image can be determined, and the editable image is adapted to the display by adjusting the scale of the first data in correspondence with the second data.
Further, after the step of determining whether the image is an editable image according to the type of the image, the method further includes:
s501, if the image is an uneditable image, acquiring third data of the uneditable image;
s502, judging whether the third data are suitable for the second data or not;
s503, if the third data is not suitable for the second data, identifying elements and element relations of the uneditable image content;
s504, preprocessing the identified elements and element relations;
s505, automatically typesetting the preprocessed content;
and S506, displaying the non-editable image on the display according to the typeset content.
As described in steps S501 to S502 above, the terminal may determine whether the acquired image is an uneditable image or not by acquiring the type of the image and determining the type of the attribute of the image, where the editable image and the uneditable image are adjusted in different manners, and if the terminal determines that the image is an uneditable image, third data of the uneditable image is acquired according to the determined uneditable image, and second data in the display is acquired by the terminal, and it is determined whether the third data and the second data are matched or not by determining that the third data and the second data are matched, and if the third data and the second data are matched, the terminal indicates that the uneditable image can be directly displayed on the display screen without editing processing.
As described in the foregoing steps S503-S506, if the terminal determines that the third data is not compatible with the second data, the content of the non-editable image needs to be adjusted to make the third data compatible with the second data, wherein in the adjustment of the content of the non-editable image, the content in the non-editable image needs to be automatically typeset, and the automatic typesetting will not affect the logic of the content of the non-editable image, and then the content of the text in the non-editable image is appropriately adjusted to make the third data compatible with the second data, and then the adjusted non-editable image is displayed on the display, thereby implementing the self-adaptive display of the non-editable image.
In another embodiment, the non-editable image is an image of which the image belongs to fixed attributes, and an image that cannot be modified or changed directly by a user may be referred to as a non-editable image.
If the image is of a non-editable type, the elements and element relations of the image content can be firstly identified (including the identification of the shape, the connection relation, the characters in the image, the connection relation, the semantic logic and the layout logic), the identified elements and element relation contents are memorized, then the non-editable image is subjected to drawing by taking the elements as units, the elements are extracted, the element positions are adjusted and typeset based on preset rules, and the relations are tracked and connected and adjusted (including line connection adjustment and logic connection adjustment), so that the original logic is not changed, but the non-editable image is suitable for a display screen to display. For example: the non-editable image contains elements such as characters, block diagrams and connecting lines, the block diagram of the characters, the contents such as logic lines connecting the characters and the characters, the connecting lines between the block diagrams, semantic logic and layout logic are recorded, the terminal needs to identify the contents of the non-editable image, memorize and trace typesetting through the identified contents, adjust the connecting block diagram of each content to enable the logic of the connecting block and the contents of the characters to be consistent with the original logic, and display all the contents on the display through the adjusted non-editable image, so that the non-editable image is displayed on the display in a self-adaptive mode.
Further, the step of preprocessing the identified elements and element relationships comprises:
s601, memorizing the identified elements and the element relation content;
s602, drawing and element extraction are carried out on the uneditable image by taking the elements as units, the position adjustment and typesetting of the elements are carried out on the basis of preset rules, and tracking and connection adjustment are carried out on the elements and the element relation.
According to the steps, the recognized elements and the element relation content are memorized, then the drawing is carried out on the non-editable image by taking the elements as units, the elements are extracted, the element position is adjusted and typeset based on the preset rule, and the relation is tracked and connected and adjusted (including line connection adjustment and logic connection adjustment), so that the original logic is not changed, but the non-editable image is suitable for a display screen and is displayed at the same time.
In another embodiment, when the terminal determines that the first data of the editable image is compatible with the second data in the display, the editable image may be displayed in the display.
Further, the step of automatically typesetting the preprocessed content includes:
and S701, copying and drawing the non-editable content on the editable format page in a mode of identification and repeated carving reproduction, converting the non-editable content into an editable image for typesetting, and keeping the original logic content for presentation.
As described in step S701, for the non-editable image, the non-editable content can be rendered by copying and rendering the non-editable content on the editable format page, converting the non-editable content into the editable image, and laying out the non-editable content while retaining the original logical content.
In another embodiment, when the terminal determines that the third data of the non-editable image is compatible with the second data in the display, the non-editable image may be displayed in the display.
Referring to fig. 2, an embodiment of the present application further provides an adaptive image adjusting apparatus, including:
the first acquisition module is used for acquiring an image;
the analysis module is used for analyzing the image and acquiring the type of the image according to the analysis result;
the first judgment module is used for judging whether the image is an editable image or not according to the type of the image;
the second acquisition module is used for acquiring first data of an editable image and second data of the display if the image is the editable image;
the second judging module is used for judging whether the first data and the second data are suitable or not according to the first data and the second data;
and the display module is used for adjusting the proportion of the first data to correspond to the second data if the first data is not suitable for the second data, and displaying an image on the display according to the adjusted first data.
Further, the second determination module includes:
the size obtaining submodule is used for obtaining the sizes of the first data and the second data;
the comparison module is used for comparing the size of the first data with the size of the second data;
and the first display sub-module is used for displaying an image on the display according to the first data if the first data is adaptive to the second data.
Further, the first judging module comprises:
the image acquisition sub-module is used for acquiring third data of the uneditable image if the image is the uneditable image;
the data judgment submodule is used for judging whether the third data is suitable for the second data;
a content identification sub-module, configured to identify the uneditable image content if the third data does not correspond to the second data;
the automatic typesetting submodule is used for automatically typesetting the identified content;
and the second display sub-module is used for displaying the non-editable image on the display according to the typeset content.
Further, the data judgment sub-module includes:
and the third display sub-module is used for displaying the non-editable image in the display when the terminal judges that the third data of the non-editable image is suitable with the second data in the display.
As described above, it can be understood that each component of the adaptive adjustment apparatus for images proposed in the present application may implement the function of any one of the above adaptive adjustment methods for images, and a detailed structure is not repeated.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for data such as question and answer data in the corpus. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of adaptive adjustment of an image.
The processor executes the self-adaptive adjusting method of the image to acquire the image; analyzing the image to obtain the type of the image; judging whether the image is an editable image or not according to the type of the image; if the image is an editable image, acquiring first data of the editable image and second data of the display; judging whether the first data and the second data are suitable or not according to the first data and the second data; and if the first data and the second data are not suitable, adjusting the proportion of the first data to correspond to the second data, and displaying an image on the display according to the adjusted first data.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing a method for adaptive adjustment of an image, acquiring the image; analyzing the image to obtain the type of the image; judging whether the image is an editable image or not according to the type of the image; if the image is an editable image, acquiring first data of the editable image and second data of the display; judging whether the first data and the second data are suitable or not according to the first data and the second data; and if the first data and the second data are not suitable, adjusting the proportion of the first data to correspond to the second data, and displaying an image on the display according to the adjusted first data.
After the image is acquired, corresponding adjustment is made according to different types of the image, so that the image can be normally displayed on the display, wherein the type of the image is an editable image, whether first data of the editable image can be adapted to second data of the display is judged, if the first data can not be adapted to the second data, the first data needs to be adjusted, so that the first data can be adapted to the second data, when the first data is adjusted to be adapted to the second data, the editable image can be directly displayed on the display, and if the first data can be adapted to the second data, the editable image can be directly displayed on the display, so that the technical problem that the image in the prior art can not be adaptively displayed on the display is solved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all the equivalent structures or equivalent processes that can be directly or indirectly applied to other related technical fields by using the contents of the specification and the drawings of the present application are also included in the scope of the present application.
Claims (10)
1. An adaptive image adjusting method for a terminal of a display, comprising:
acquiring an image;
analyzing the image to obtain the type of the image;
judging whether the image is an editable image or not according to the type of the image;
if the image is an editable image, acquiring first data of the editable image and second data of the display;
judging whether the first data and the second data are suitable or not according to the first data and the second data;
and if the first data and the second data are not suitable, adjusting the proportion of the first data and the second data until the first data and the second data correspond to each other, and displaying an image on the display according to the adjusted first data.
2. The method of claim 1, wherein the step of determining whether the first data and the second data are adaptive according to the first data and the second data comprises:
acquiring the sizes of the first data and the second data;
comparing the size of the first data with the size of the second data.
3. The method of adaptive adjustment of image according to claim 1, wherein the first data comprises: a first resolution, a first dimension, and a first coordinate;
the second data includes: a second resolution, a second dimension, and a second coordinate.
4. The method of claim 1, wherein the adjusting the ratio of the first data and the second data until the corresponding step is preceded, comprises:
detecting key points with unchanged scale and rotation of the image through a Gaussian differential function;
the key points are positioned, one or more directions are distributed to the key points based on the local gradient direction of the image, and the direction, the scale and the position of the image data relative to the key points are transformed;
measuring local gradients of the image at a selected scale in a neighborhood around each of said keypoints, the gradients being transformed into a representation that allows for relatively large local shape deformations and illumination variations;
the size information is compared to the gradient to determine the degree of image scaling.
5. The adaptive image adjustment method according to claim 1, wherein after the step of determining whether the image is an editable image according to the type of the image, the method further comprises:
if the image is an uneditable image, acquiring third data of the uneditable image;
judging whether the third data is suitable for the second data or not;
if the third data is not suitable for the second data, identifying elements and element relations of the uneditable image content;
preprocessing the identified elements and element relationships;
automatically typesetting the preprocessed content;
and displaying the non-editable image on the display according to the typeset content.
6. The method of adaptive adjustment of images according to claim 5, wherein the step of preprocessing the identified elements and element relationships comprises:
memorizing the identified elements and element relation contents;
and (3) carrying out image drawing and element extraction on the non-editable image by taking the elements as units, adjusting and typesetting the positions of the elements based on a preset rule, and tracking and connecting and adjusting the relationship between the elements.
7. The adaptive image adjustment method according to claim 5, wherein the step of automatically typesetting the preprocessed content comprises:
by means of recognition and repeated carving, the non-editable content is copied and drawn in the editable format page, converted into editable images for typesetting, and the original logic content is maintained for presentation.
8. An adaptive adjustment apparatus for an image, comprising:
the first acquisition module is used for acquiring an image;
the analysis module is used for analyzing the image and acquiring the type of the image according to the analysis result;
the first judgment module is used for judging whether the image is an editable image or not according to the type of the image;
the second acquisition module is used for acquiring first data of an editable image and second data of the display if the image is the editable image;
the second judging module is used for judging whether the first data and the second data are suitable or not according to the first data and the second data;
and the display module is used for adjusting the proportion of the first data to correspond to the second data if the first data is not suitable for the second data, and displaying an image on the display according to the adjusted first data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210770969.1A CN115048016A (en) | 2022-06-30 | 2022-06-30 | Adaptive image adjusting method, device and equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210770969.1A CN115048016A (en) | 2022-06-30 | 2022-06-30 | Adaptive image adjusting method, device and equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115048016A true CN115048016A (en) | 2022-09-13 |
Family
ID=83165652
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210770969.1A Pending CN115048016A (en) | 2022-06-30 | 2022-06-30 | Adaptive image adjusting method, device and equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115048016A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150346954A1 (en) * | 2014-05-30 | 2015-12-03 | International Business Machines Corporation | Flexible control in resizing of visual displays |
CN108052495A (en) * | 2017-12-28 | 2018-05-18 | 努比亚技术有限公司 | data display method, terminal and computer readable storage medium |
CN113126937A (en) * | 2019-12-31 | 2021-07-16 | Tcl集团股份有限公司 | Display terminal adjusting method and display terminal |
-
2022
- 2022-06-30 CN CN202210770969.1A patent/CN115048016A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150346954A1 (en) * | 2014-05-30 | 2015-12-03 | International Business Machines Corporation | Flexible control in resizing of visual displays |
CN108052495A (en) * | 2017-12-28 | 2018-05-18 | 努比亚技术有限公司 | data display method, terminal and computer readable storage medium |
CN113126937A (en) * | 2019-12-31 | 2021-07-16 | Tcl集团股份有限公司 | Display terminal adjusting method and display terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6230169B1 (en) | Apparatus with a display magnification changing function of annotation | |
CN102117269B (en) | Apparatus and method for digitizing documents | |
CN109657221B (en) | Document paragraph sorting method, sorting device, electronic equipment and storage medium | |
EP0738987B1 (en) | Processing machine readable forms | |
US20090110288A1 (en) | Document processing apparatus and document processing method | |
US20210141999A1 (en) | Method for displaying handwritten note in electronic book, electronic device and computer storage medium | |
CN110674814A (en) | Picture identification and translation method, terminal and medium | |
CN111914597A (en) | Document comparison identification method and device, electronic equipment and readable storage medium | |
CN112926421B (en) | Image processing method and device, electronic equipment and storage medium | |
CN112149561B (en) | Image processing method and device, electronic equipment and storage medium | |
CN110674811B (en) | Image recognition method and device | |
CN112906532B (en) | Image processing method and device, electronic equipment and storage medium | |
CN112381153A (en) | Bill classification method and device and computer equipment | |
CN112395532A (en) | Webpage table display method and device, computer equipment and storage medium | |
CN111368841A (en) | Text recognition method, device, equipment and storage medium | |
CN112365402B (en) | Intelligent winding method and device, storage medium and electronic equipment | |
CN114529933A (en) | Contract data difference comparison method, device, equipment and medium | |
CN113936187A (en) | Text image synthesis method and device, storage medium and electronic equipment | |
CN116778032A (en) | Answer sheet generation method, device, equipment and storage medium | |
CN115048016A (en) | Adaptive image adjusting method, device and equipment and readable storage medium | |
CN113868411A (en) | Contract comparison method and device, storage medium and computer equipment | |
JP4433741B2 (en) | Similarity calculation system, similarity calculation program, and similarity calculation method | |
JP4031189B2 (en) | Document recognition apparatus and document recognition method | |
JP2021140831A (en) | Document image processing system, document image processing method, and document image processing program | |
CN110751140A (en) | Character batch recognition method and device and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |