CN113849111A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN113849111A
CN113849111A CN202111137661.5A CN202111137661A CN113849111A CN 113849111 A CN113849111 A CN 113849111A CN 202111137661 A CN202111137661 A CN 202111137661A CN 113849111 A CN113849111 A CN 113849111A
Authority
CN
China
Prior art keywords
image
display area
text
images
determining
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
Application number
CN202111137661.5A
Other languages
Chinese (zh)
Inventor
李凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202111137661.5A priority Critical patent/CN113849111A/en
Publication of CN113849111A publication Critical patent/CN113849111A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04845Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application discloses an image processing method and device, wherein the method comprises the following steps: acquiring a first image containing text content; determining a target display area of the first image and display parameters of the target display area; determining a plurality of second images according to the display parameters; wherein the second image is formed from the first image and the second image contains at least one text; and arranging a plurality of second images in the target display area so as to display the text content through the target display area. The method processes the image containing the text content, can display the text content in a display mode suitable for reading on the basis of keeping the original text style, enables a user to comfortably and smoothly read the text content, and improves the reading experience of the user.

Description

Image processing method and device
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to an image processing method and apparatus.
Background
With the development of electronic devices and related technologies such as image processing, the display modes of images by electronic devices are more and more flexible and diversified. For example, for an image displayed on a smart phone, a user may zoom in or zoom out the image by sliding the touch screen, and when the smart phone rotates, the image also rotates, and the picture size is adaptively adjusted.
When a character is included in an image, the character is actually displayed in the form of an image, and the image and the character included in the image are displayed in the same display manner. When the display mode of the image is changed, the display mode of the characters in the image is synchronously changed. For example, when the image is zoomed, the characters are zoomed synchronously, and when the image is rotated, the characters are rotated synchronously.
However, this method simply displays the image in the same display manner without distinguishing the content, and in some cases, it may cause a hindrance to the user in reading the text. For example, when an image is enlarged to a size larger than the display screen, the text may not be displayed on the display screen in its entirety, requiring the user to drag the image to be able to view the entire text. Or, when the image is reduced to be capable of being displayed in a full screen, the character content cannot be recognized due to the small character size.
Disclosure of Invention
The application provides an image processing method and device, and the technical scheme adopted by the embodiment of the application is as follows:
a first aspect of the present application provides an image processing method, including:
acquiring a first image containing text content;
determining a target display area of the first image and display parameters of the target display area;
determining a plurality of second images according to the display parameters; wherein the second image is formed from the first image and the second image contains at least one text;
and arranging a plurality of second images in the target display area so as to display the text content through the target display area.
In some embodiments, said determining a plurality of second images according to said display parameters comprises:
and dividing the first image into a plurality of second images according to the display parameters.
In some embodiments, said obtaining a first image containing textual content comprises:
performing text line detection on a third image containing the text content to obtain a text line image containing text lines;
correspondingly, the dividing the first image into a plurality of second images according to the display parameters includes:
and dividing the text line image into a plurality of second images according to the display parameters.
In some embodiments, said determining a plurality of second images according to said display parameters comprises:
and combining a plurality of first images to form the second image according to the display parameters.
In some embodiments, said obtaining a first image containing textual content comprises:
detecting each character in a third image containing character content to obtain a single character image containing a single character;
and performing character recognition on the single character image to acquire text information corresponding to the character content.
In some embodiments, said combining a plurality of said first images to form said second image according to said display parameters comprises, in some embodiments:
and combining a plurality of the single-image images to form the second image according to the display parameters and the text information.
In some embodiments, said determining a plurality of second images according to said display parameters comprises:
determining an arrangement scheme of the first image in the target display area according to the display parameters and the image parameters of the first image;
processing the first image to form a plurality of second images according to the arrangement.
In some embodiments, the determining the target display area of the first image and the display parameters of the target display area comprises:
and determining the target display area in an application program interface of the target application, and determining the display parameters of the target display area.
In some embodiments, the determining the target display area in the application program interface of the target application includes:
and determining the target display area in the application program interface according to the current display content of the application program interface.
A second aspect of the present application provides an image processing apparatus comprising:
the acquisition module is used for acquiring a first image containing text content;
the first determination module is used for determining a target display area of the first image and display parameters of the target display area;
the second determining module is used for determining a plurality of second images according to the display parameters; wherein the second image is formed from the first image and the second image contains at least one text;
and the arrangement module is used for arranging the plurality of second images in the target display area so as to display the text contents through the target display area.
The image processing method comprises the steps of obtaining a first image containing text, determining a target display area of the first image and display parameters of the target display area, processing the first image according to the display parameters to form a plurality of second images matched with the target display area, arranging the plurality of second images in the target display area, and displaying the text through the target display area. So, on the basis of keeping original text style, can demonstrate the literal content with the mode that is fit for reading, make the user can be comfortable and smooth and easy reading literal content, be of value to improving user's reading experience.
Drawings
FIG. 1 is a flowchart of an image processing method according to a first embodiment of the present application;
fig. 2 to 4 are schematic diagrams of a scene of an image processing method according to a first embodiment of the present application;
fig. 5 to 7 are schematic views of another scene of the image processing method according to the first embodiment of the present application;
fig. 8 is a flowchart of step S101 of the image processing method according to the first embodiment of the present application;
FIG. 9 is a diagram illustrating another scenario of an image processing method according to a first embodiment of the present application;
fig. 10 is a block diagram of an image processing apparatus according to a second embodiment of the present application;
fig. 11 is a block diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
A first embodiment of the present application provides an image processing method, which is used for processing an image containing text, and displaying the text in a display manner suitable for reading on the basis of keeping an original text style, so that a user can comfortably and smoothly read the text, and the reading experience of the user is improved.
Fig. 1 is a flowchart of an image processing method according to a first embodiment of the present application, and referring to fig. 1, the image processing method according to the embodiment of the present application may specifically include the following steps:
s101, a first image containing character content is obtained.
The first image may be an image containing only text content, for example, a screenshot of a text editor or a text reader. The first image may also contain, for example, a background image, a motif or other image elements. In specific implementation, one first image containing text content may be acquired, or a plurality of first images containing text content may be acquired.
In an initial state, the first image may be an individual image. For example, a first image is acquired when it needs to be inserted into an application program interface of a target application. Also for example, when a display operation is performed on the first image, the first image is acquired. For another example, in the first image display process, the first image may be acquired in response to an operation instruction for adjusting the first image display mode.
In the initial state, the first image may also be included in another image. For example, when the other image is displayed, the first image including text content in the other image is acquired. Or, when the display mode of the other image is adjusted, the first image containing the text content in the other image is acquired.
S102, determining a target display area of the first image and display parameters of the target display area.
The target display area may be a display area in which text content in the first image is to be displayed, or may be a display area in which the first image is currently displayed. The display parameters of the target display area may include parameters such as size, resolution, brightness, and contrast of the display area.
For example, an operation instruction may be acquired, where the operation instruction is used to instruct to place a first image or another image including the first image in a target display area for display; based on the operation instruction, a target display area indicated by the operation instruction can be determined, and display parameters of the target display area can be determined.
For example, in the process of displaying the first image, if an operation instruction for adjusting the display mode of the first image is acquired, the target display area in which the display mode of the first image is adjusted may be determined based on the operation instruction, and the display parameter of the target display area may be determined. For example, the size and resolution of the target display area may be determined.
S103, determining a plurality of second images according to the display parameters; the second image is formed by the first image and comprises at least one character.
In order to enable the character content to be adaptive to the target display area, the first image can be processed based on the display parameters of the target display area to obtain a plurality of second images, so that the purpose of combining or dividing the character content is achieved, and the plurality of second images can be adaptive to the target display area. For example, the image size of the second image is adapted to the display size of the target display area, or the text content contained in the second image when displayed in the target display area is suitable for viewing on the basis of the resolution and the display size of the target display area.
In an alternative embodiment, the arrangement scheme of the first image in the target display area may be determined according to the display parameter and the image parameter of the first image. For example, the arrangement scheme of the first images in the target display area is determined according to the size and the resolution of the target display area and the size and the resolution of the first images. This arrangement actually characterizes the arrangement of the text content in the first image. According to this arrangement, the first image is processed to form a plurality of second images. For example, the first image is segmented or combined to form a plurality of second images.
And S104, arranging the plurality of second images in the target display area so as to display the text content through the target display area.
Due to the fact that the second images are matched with the target display area, the second images are arranged in the target display area, the purpose that the text content is arranged in the target display area in a suitable viewing mode can be achieved, and the text content is displayed through the target display area. For example, the plurality of second images are arranged in an application program interface of the target application, and the text content is displayed in a mode suitable for viewing through the application program interface of the target application. Alternatively, on the basis of having determined the arrangement scheme of the first images in the target display area, a plurality of second images may be arranged in the target display area based on the arrangement scheme.
The image processing method comprises the steps of obtaining a first image containing text, determining a target display area of the first image and display parameters of the target display area, processing the first image according to the display parameters to form a plurality of second images matched with the target display area, arranging the plurality of second images in the target display area, and displaying the text through the target display area. So, on the basis of keeping original text style, can demonstrate the literal content with the mode that is fit for reading, make the user can be comfortable and smooth and easy reading literal content, be of value to improving user's reading experience.
In some embodiments, the step S102 of determining the target display area of the first image and the display parameters of the target display area includes:
and determining a target display area in an application program interface of the target application, and determining display parameters of the target display area.
The target application may be an application program that is to present text content in the first image. Optionally, an operation instruction may be obtained, where the operation instruction is used to instruct the first image to be displayed through the target application, the target application may be determined according to the operation instruction, interface parameters of an application program interface of the target application may be further determined, and a target display area in the application program interface and display parameters of the target display area may be determined according to the interface parameters.
For example, as shown in fig. 2, when the user sends an operation instruction through the input device to instruct to insert the first image into the text editor, according to the operation instruction, the text editor may be determined as the target application, and the margin parameters of the text editor are determined, for example, the distances between the upper side, the lower side, the left side and the right side of the text editor are respectively 2.7cm, 2.6cm, 2.7cm and 2cm, and according to the margin parameters of the text editor, the target display area is a middle area excluding the margin area of the page in the application program interface of the text editor, as shown in fig. 2.
The target application may also be the application currently displaying the first image. Optionally, when the image editor displays the first image, as shown in fig. 5, if the display mode of the first image is adjusted, for example, if the first image is enlarged, as shown in fig. 6, the display mode of the text content in the first image is incomplete, and the display mode of the text content in the first image needs to be adjusted, so that the user can view the complete text content, at this time, the image editor is the target application, an application program interface of the target application is an application program interface of the image editor, and the target display area is an area for displaying the image in the image editor, as shown in fig. 5 and fig. 6.
In some embodiments, determining a target display area in an application program interface of a target application includes:
and determining a target display area in the application program interface according to the current display content of the application program interface.
In the case that the currently displayed content already exists in the application program interface, the target display area may be determined in the application program interface according to the currently displayed content. Because the current display content exists, there are two main arrangement modes for arranging the second images in the application program interface, one is that the current display content and the second images are arranged without being overlapped with each other, and in this case, the target display area can be determined in the display area which is not occupied by the current display content in the application program interface.
The other is that the second image can be superimposed on the current display content, for this case, the visual effect of the second image superimposed on the current display content needs to be considered, the content type of the current display content can be determined, and the target display area can be determined based on the content type of the current display content. For example, in the case of having a currently displayed image in the application program interface, the element type of each image element in the currently displayed image may be determined, and the target display area may be determined according to the element type of the image element, for example, an area having a single background color in the currently displayed image may be determined as the target display area, so that when a plurality of second images are arranged in the target display area and are superimposed with the currently displayed image, a better display effect can be formed together.
The currently displayed image may be an image different from the first image, or may be the first image itself. For example, when the first image is displayed by the image editor and the scaling operation is performed on the first image, the display manner of the first image in the image viewer may be changed, and the target display area may be determined in the image viewer based on the display manner of the first image in the image viewer; acquiring a plurality of second images containing text contents in the first image according to the display parameters of the target display area; and superposing the plurality of second images on the first image with the changed display mode.
It should be noted that, in implementation, the target display area is not limited to an area in the application program interface, but may be other areas, for example, a display area on a specific display unit, or a picture area on a picture.
In some embodiments, the step S103 of determining a plurality of second images according to the display parameters may include:
the first image is divided into a plurality of second images according to the display parameters.
Optionally, the first image may be divided into a plurality of second images according to the display parameter of the target display area and the image parameter of the first image, so that the second images are adapted to the target display area. For example, the first image may be divided into a plurality of second images according to the size of the target display area, the size of the first image, and the size of a single character in the first image. In this way, when the plurality of divided second images are placed in the target display area, the text content included in the second images can be displayed in a size suitable for viewing.
Taking an interactive scene as an example, when a user sends a screenshot image containing text content to an interactive object, the screenshot image is a first image. The target display area is the window of the instant interactive program, and the display parameters of the window are determined. The arrangement scheme of the screenshot image can be determined according to the size and the resolution of the window and the size and the resolution of the screenshot image, and the screenshot image is divided into a plurality of second images according to the arrangement scheme. For example, when the screenshot image includes a plurality of text regions, the single text region may be divided into a second image, and the text regions may be further divided into a plurality of second images. In this way, when the second image composed of a single text area is displayed on the window, the size and resolution of the text content are suitable for viewing, and the interactive object can comfortably view the text content in the text area.
In an alternative embodiment, step S101, acquiring a first image containing text content may include:
performing text line detection on a third image containing the text content to obtain a text line image containing text lines;
correspondingly, dividing the first image into a plurality of second images according to the display parameters comprises:
and dividing the text line image into a plurality of second images according to the display parameters.
That is, the first image may be a text line image included in the third image, the third image including text content is acquired, and text line detection may be performed on the third image to acquire a text line image including text lines. The text line image may be divided into a plurality of second images according to display parameters of the target display area.
Taking the first image as the text line image and the third image as the complete image including the text line image as an example, when the image editor displays the third image, the text content in the third image is incompletely displayed due to zooming, as shown in fig. 5 and 6. At this time, the target display area is narrow, and the text line image is wide, so that text line detection can be performed on the first image, the text line image including the text lines is obtained, and the text line image is divided into a plurality of sections, thereby forming a plurality of narrow text line images as the second image. Then, the plurality of second images are arranged in the target display area, as shown in fig. 7, so that the text content in the first image can be displayed in a proper size and in a whole manner, and the user can read the text content conveniently.
In some embodiments, step S103, determining a plurality of second images according to the display parameters includes:
and combining the plurality of first images to form a second image according to the display parameters.
That is, in the implementation, the first image is not limited to be divided into the plurality of second images, and the plurality of first images may be combined to form the second image. For example, each first image may include fewer characters and the target display area may be larger in size, and in this case, a plurality of first images may be combined to form the second image. And then, arranging the second image in the target display area so as to integrally display the text content and facilitate reading of a user.
The second image is formed by combining a plurality of first images, the plurality of first images can be combined into one image, or the plurality of first images can be combined according to a fixed relative position relationship to form one image group. That is, the second image may be a single image or an image group formed by combining a plurality of first images having a fixed relative positional relationship.
As shown in fig. 8, in some embodiments, step S101, acquiring a first image containing text content includes:
detecting each character in a third image containing character content to obtain a single character image containing a single character;
carrying out character recognition on the single character image to acquire text information corresponding to character contents;
correspondingly, according to the display parameters, the method for combining the plurality of first images to form the second image comprises the following steps:
and combining the plurality of single images to form a second image according to the display parameters and the text information.
Optionally, the third image containing the text content is obtained, a text line detection module may be used to perform text line detection on the third image to obtain a text line image, and a single character in the text line image is detected to obtain a single character image containing the single character. And acquiring index information of each single character image according to the text line detection result and the single character detection result, wherein the index information is used for identifying the sequence of the single character images. Carrying out character recognition on the single character image through a character recognition module to obtain character information; and combining the character information to form text information corresponding to the character content according to the index information. These single-character images and text information may be stored in a single-character image database.
On the basis of determining the target display area, the arrangement module can combine a plurality of single-image images to form a second image according to the display parameters and the text information of the target display area. For example, in the process of displaying the third image through the image viewer, if the display manner of the third image is adjusted, for example, if the zoom operation is performed on the third image, and the text content is not displayed completely, the target display area may be re-determined in the image viewer, the single character images may be combined to form the second image based on the display parameters and the text information of the target display area, the second image is arranged in the target display area in an overlapping manner, and a plurality of second images are superimposed on the third image to generate the fourth image, as shown in fig. 9.
For example, when a third image containing a text is required to be inserted into the text editor as shown in fig. 2, since the width of the third image is wide and the width of the text editor is narrow, when the third image is directly inserted into the text editor, as shown in fig. 3, the text may not be seen by the user because the font is small, and if the text information is directly recognized and inserted into the text editor, the text style may change due to the lack of the font template. At this time, the image processing method according to the embodiment of the present application may be used to detect each character in the third image, obtain a single character image containing a single character for character recognition, obtain text information corresponding to the character content, recombine a plurality of single character images to form a text line image according to the display parameters and the text information of the target display area, and arrange the text line image formed by recombining the plurality of character images in the target display area, as shown in fig. 4.
Referring to fig. 10, a second embodiment of the present application provides an image processing apparatus including:
an obtaining module 201, configured to obtain a first image containing text content;
a first determining module 202, configured to determine a target display area of the first image and a display parameter of the target display area;
a second determining module 203, configured to determine a plurality of second images according to the display parameter; wherein the second image is formed from the first image and the second image contains at least one text;
the arranging module 204 is configured to arrange the plurality of second images in the target display area, so as to display the text content through the target display area.
In some embodiments, the second determining module 203 is specifically configured to:
and dividing the first image into a plurality of second images according to the display parameters.
In some embodiments, the obtaining module 201 is specifically configured to:
performing text line detection on a third image containing the text content to obtain a text line image containing text lines;
correspondingly, the second determining module 203 is specifically configured to:
and dividing the text line image into a plurality of second images according to the display parameters.
In some embodiments, the second determining module 203 is specifically configured to:
and combining a plurality of first images to form the second image according to the display parameters.
In some embodiments, the obtaining module 201 is specifically configured to:
detecting each character in a third image containing character content to obtain a single character image containing a single character;
and performing character recognition on the single character image to acquire text information corresponding to the character content.
In some embodiments, the second determining module 203 is specifically configured to:
and combining a plurality of the single-image images to form the second image according to the display parameters and the text information.
In some embodiments, the second determining module 203 is specifically configured to:
determining an arrangement scheme of the first image in the target display area according to the display parameters and the image parameters of the first image;
processing the first image to form a plurality of second images according to the arrangement.
In some embodiments, the first determining module 202 is specifically configured to:
and determining the target display area in an application program interface of the target application, and determining the display parameters of the target display area.
In some embodiments, the first determining module 202 is specifically configured to:
and determining the target display area in the application program interface according to the current display content of the application program interface.
Referring to fig. 11, the third embodiment of the present application further provides an electronic device, which at least includes a memory 301 and a processor 302, where the memory 301 stores a program, and the processor 302 implements the method according to any of the above embodiments when executing the program on the memory 301.
It will be apparent to one skilled in the art that embodiments of the present application may be provided as methods, electronic devices, computer-readable storage media, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
The processor may be a general purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof. A general purpose processor may be a microprocessor or any conventional processor or the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
The readable storage medium may be a magnetic disk, an optical disk, a DVD, a USB, a Read Only Memory (ROM), a Random Access Memory (RAM), etc., and the specific form of the storage medium is not limited in this application.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. An image processing method comprising:
acquiring a first image containing text content;
determining a target display area of the first image and display parameters of the target display area;
determining a plurality of second images according to the display parameters; wherein the second image is formed from the first image and the second image contains at least one text;
and arranging a plurality of second images in the target display area so as to display the text content through the target display area.
2. The method of claim 1, wherein said determining a plurality of second images according to the display parameter comprises:
and dividing the first image into a plurality of second images according to the display parameters.
3. The method of claim 2, wherein said obtaining a first image containing textual content comprises:
performing text line detection on a third image containing the text content to obtain a text line image containing text lines;
correspondingly, the dividing the first image into a plurality of second images according to the display parameters includes:
and dividing the text line image into a plurality of second images according to the display parameters.
4. The method of claim 1, wherein said determining a plurality of second images according to the display parameter comprises:
and combining a plurality of first images to form the second image according to the display parameters.
5. The method of claim 4, wherein said obtaining a first image containing textual content comprises:
detecting each character in a third image containing character content to obtain a single character image containing a single character;
and performing character recognition on the single character image to acquire text information corresponding to the character content.
6. The method of claim 5, wherein said combining a plurality of said first images to form said second image according to said display parameters comprises:
and combining a plurality of the single-image images to form the second image according to the display parameters and the text information.
7. The method of claim 1, wherein said determining a plurality of second images according to the display parameter comprises:
determining an arrangement scheme of the first image in the target display area according to the display parameters and the image parameters of the first image;
processing the first image to form a plurality of second images according to the arrangement.
8. The method of claim 1, wherein the determining a target display area of the first image and display parameters of the target display area comprises:
and determining the target display area in an application program interface of the target application, and determining the display parameters of the target display area.
9. The method of claim 8, wherein the determining the target display area in an application program interface of a target application comprises:
and determining the target display area in the application program interface according to the current display content of the application program interface.
10. An image processing apparatus comprising:
the acquisition module is used for acquiring a first image containing text content;
the first determination module is used for determining a target display area of the first image and display parameters of the target display area;
the second determining module is used for determining a plurality of second images according to the display parameters; wherein the second image is formed from the first image and the second image contains at least one text;
and the arrangement module is used for arranging the plurality of second images in the target display area so as to display the text contents through the target display area.
CN202111137661.5A 2021-09-27 2021-09-27 Image processing method and device Pending CN113849111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111137661.5A CN113849111A (en) 2021-09-27 2021-09-27 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111137661.5A CN113849111A (en) 2021-09-27 2021-09-27 Image processing method and device

Publications (1)

Publication Number Publication Date
CN113849111A true CN113849111A (en) 2021-12-28

Family

ID=78980173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111137661.5A Pending CN113849111A (en) 2021-09-27 2021-09-27 Image processing method and device

Country Status (1)

Country Link
CN (1) CN113849111A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116661667A (en) * 2023-07-28 2023-08-29 北京安锐卓越信息技术股份有限公司 Poster picture processing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586237A (en) * 2020-04-30 2020-08-25 维沃移动通信有限公司 Image display method and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586237A (en) * 2020-04-30 2020-08-25 维沃移动通信有限公司 Image display method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116661667A (en) * 2023-07-28 2023-08-29 北京安锐卓越信息技术股份有限公司 Poster picture processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10810454B2 (en) Apparatus, method and program for image search
EP2869237A1 (en) Image display apparatus, image display method, and computer program product
EP3940589A1 (en) Layout analysis method, electronic device and computer program product
EP3525164A1 (en) Image processing apparatus and image processing method
US20200042146A1 (en) Method and device for displaying page of electronic book, and terminal device
JPWO2007004489A1 (en) Image processing apparatus and image processing method
US9767388B2 (en) Method and system for verification by reading
KR102090973B1 (en) Information processing apparatus, information processing method, and storage medium
US20100315315A1 (en) Optimal graphics panelization for mobile displays
KR20200050091A (en) Method and Electronic device for reading a barcode
CN110738598A (en) Image adaptation method, electronic device and storage medium
CN113849111A (en) Image processing method and device
EP2144201A2 (en) Image processing apparatus and image processing method
CN111124111A (en) Processing method and electronic equipment
US11144715B2 (en) Efficient data entry system for electronic forms
US8249395B2 (en) System, method, and computer program product for picture resizing
US10789715B2 (en) Image processing device, image processing method, and information storage medium
US11367296B2 (en) Layout analysis
WO2022063191A1 (en) Electronic-book handwritten note display method, computing device, and computer storage medium
US20210073458A1 (en) Comic data display system, method, and program
Ponsard et al. An accessible viewer for digital comic books
CN114882517A (en) Text processing method, device and system
CN112748978A (en) Display area determination method and device and related equipment
Kous et al. Investigation of the accessibility of non-text content published on websites
US20130104014A1 (en) Viewer unit, server unit, display control method, digital comic editing method and non-transitory computer-readable medium

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