Display method and device, electronic equipment and storage medium
By identifying and increasing the text fonts in comic bubbles on electronic devices, the problem of inconvenient reading caused by small screen sizes is solved, and high-definition display on electronic devices is achieved.
Patent Information
- Application Number
- CN202410815297.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When comics are displayed on electronic devices, the screen size is smaller than the comic original size, resulting in the text fonts in the bubbles shrinking and making it difficult for readers to read clearly.
By obtaining the bubble area from the target display screen of the comic, identify and determine the text font size. If it is smaller than the preset value, the font size is increased, and the increased text is displayed in the bubble area, using scrolling or multi-page display. to ensure clear display.
It improves the clarity of comics displayed on electronic devices, ensuring that readers can clearly read the text content in the bubbles, and improving the reading experience.
Smart Images

Figure CN118585115A
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a display method, device, electronic device and storage medium for displaying comics on an electronic device. Background Art
[0002] Electronic ink screen technology uses electrophoresis technology to display images. The display effect of this type of screen is very close to that of traditional paper, so it is also called "electronic paper". Electronic ink is usually made of a thin film composed of a large number of microcapsules. The microcapsules contain pigment particles with different charges. In the initial state, the pigment particles are suspended in the microcapsules. When an electric field in a certain direction is applied, the corresponding pigment particles are pushed to the top, and the microcapsules will display different colors. Microcapsules of different colors form various texts and patterns.
[0003] In recent years, with the development of science and technology, portable electronic devices represented by smart phones, tablet computers, and e-readers have become more and more popular. More and more readers like to read comics on portable electronic devices (especially e-readers, tablet computers, and mobile phones), especially on electronic ink screens, because electronic ink screens have the advantages of eye protection and low blue light radiation, which are suitable for long-term reading and learning. However, since the main distribution channels for comic works are currently paper newspapers, magazines, books, etc., cartoonists create comic works in large sizes and do not consider the display effects of these comic works on electronic devices with smaller screens. Without changing the way cartoonists create, there are currently some methods for displaying comics on electronic devices to achieve the purpose of optimizing the display effects of comic works on electronic devices.
[0004] Therefore, when comics are displayed on electronic devices, the screen size of the electronic device is often smaller than the size of the original comics. In order to display the comics normally, the electronic device usually reduces the comics proportionally, and the text on the comics is also reduced proportionally accordingly, which may cause readers to not be able to see the text content in the dialog box (commonly known as the bubble), which brings inconvenience to readers. Summary of the invention
[0005] The present application provides a method, device, electronic device and storage medium for displaying comics on an electronic device, so as to improve the clarity of comics displayed on the electronic device.
[0006] In a first aspect, the present application provides a method for displaying comics on an electronic device, comprising: Obtaining a bubble area from a target display screen of the comic; Identify the bubble area to obtain the font size of the text in the bubble area; Determine whether the font size is smaller than a preset font size value, and if so, execute the next step; Enlarging the font size of the text in the bubble area; The text with enlarged font is displayed in the bubble area.
[0007] In some embodiments of the present application, the step of obtaining a bubble area from a target display screen of the cartoon includes: Performing edge detection on the target display image to obtain a target area; Obtaining regional characteristics of the target area; It is determined whether the region feature is a preset bubble feature, and if so, the target region corresponding to the region feature is a bubble region.
[0008] In some embodiments of the present application, before the step of performing edge detection on the target display screen to obtain the target area, the step of obtaining the bubble area from the target display screen of the cartoon further includes: The target display picture is subjected to image preprocessing, wherein the image preprocessing includes grayscale processing.
[0009] In some embodiments of the present application, before the step of determining whether the font size is smaller than a preset font size value and executing the next step if yes, the display method further includes: Obtaining an interface size of a display interface of the electronic device when displaying the target display screen; A preset font size value of the text is obtained according to the interface size.
[0010] In some embodiments of the present application, the step of identifying the bubble area to obtain the font size of the text in the bubble area includes: Segmenting the bubble area to obtain text blocks in the bubble area; Perform OCR recognition on the text block to obtain the text in the bubble area and the font size of the text in the bubble area.
[0011] In some embodiments of the present application, before the step of segmenting the bubble area to obtain the text block in the bubble area, the display method further includes: Perform image noise reduction processing on the bubble area.
[0012] In some embodiments of the present application, the step of increasing the font size of the text in the bubble area includes: The font size of the text in the bubble area is increased to the preset font size value.
[0013] In some embodiments of the present application, the step of increasing the font size of the text in the bubble area includes: Segmenting the bubble area to obtain text blocks in the bubble area; Enlarging the text block in the bubble area; The step of displaying the text with enlarged font in the bubble area comprises: The enlarged text block is displayed in the bubble area.
[0014] In some embodiments of the present application, the step of displaying the text with enlarged font in the bubble area includes: Obtaining the longest text length of the text after the font enlargement processing; Determine whether the longest text length is greater than the length of the bubble area in the text arrangement direction; If yes, displaying the text with enlarged font in the bubble area in a scrolling display manner; If not, the text with enlarged font size is directly displayed in the bubble area.
[0015] In some embodiments of the present application, the step of displaying the text with enlarged font in the bubble area includes: Obtaining the longest text length of the text after the font enlargement processing; Determine whether the longest text length is greater than the length of the bubble area in the text arrangement direction; If yes, the text with enlarged font is displayed in the bubble area in a multi-page display mode, and the bubble area is provided with a page turning key or the page turning is realized by clicking the bubble area; If not, the text with enlarged font size is directly displayed in the bubble area.
[0016] In some embodiments of the present application, before the step of obtaining the bubble area from the target display screen of the comic, the display method further includes: Obtaining an interface size of a display interface of the electronic device when displaying a target display screen; Determine whether the interface size is smaller than a preset size, and if so, execute the next step.
[0017] In a second aspect, an embodiment of the present application further provides a display device for displaying comics on an electronic device, comprising: An acquisition module, the acquisition module is used to obtain a bubble area from a target display screen of the comic; A recognition module, the recognition module is used to identify the bubble area to obtain the font size of the text in the bubble area; A first judging module, the first judging module is used to judge whether the font size is smaller than a preset font size value, and if so, execute the next step; An enlargement module, the enlargement module is used to enlarge the font of the text in the bubble area; A display module is used to display the text with enlarged font in the bubble area.
[0018] In a third aspect, an embodiment of the present application further provides an electronic device, including: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the electronic device implements the display method as described in any one of the first aspects.
[0019] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the display method as described in any one of the first aspects is implemented.
[0020] The present application provides a method, device, electronic device and storage medium for displaying comics on an electronic device, wherein the display method comprises: obtaining a bubble area from a target display screen of the comic; identifying the bubble area to obtain the font size of the text in the bubble area; determining whether the font size is less than a preset font size value, and if so, executing the next step; performing font enlargement processing on the text in the bubble area; and displaying the text with the enlarged font in the bubble area. The present application determines whether the font size is less than a preset font size value, and then, after obtaining a positive result, performs font enlargement processing on the text in the bubble area, and displays the text with the enlarged font in the bubble area, so that the reader can clearly see the text in the bubble area, thereby improving the clarity of the comic displayed on the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of Embodiment 1 of a method for displaying comics on an electronic device provided by the present application; Figure 2 This is a flowchart of step S10 of embodiment 1 of the method for displaying comics on an electronic device provided by the present application; Figure 3 This is a flowchart of step S10 of Embodiment 2 of the method for displaying comics on an electronic device provided by the present application; Figure 4 A flowchart of Embodiment 2 of a method for displaying comics on an electronic device provided by the present application; Figure 5 This is a flowchart of step S20 of embodiment 1 of the method for displaying comics on an electronic device provided by the present application; Figure 6 A flowchart of step S20 of embodiment 2 of the method for displaying comics on an electronic device provided by the present application; Figure 7 A flowchart of step S40 of the method for displaying comics on an electronic device provided by the present application; Figure 8 This is a flowchart of step S50 of Embodiment 1 of the method for displaying comics on an electronic device provided by the present application; Fig. 9 This is a flowchart of step S50 of Embodiment 2 of the method for displaying comics on an electronic device provided by the present application; Fig.10 A schematic diagram of the structure of a display device for displaying comics on an electronic device provided by the present application; Fig.11 A schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION
[0022] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present application, rather than to limit the embodiments of the present application. It should also be noted that, for ease of description, only parts related to the embodiments of the present application are shown in the accompanying drawings, rather than all structures.
[0023] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, but not to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more, and it cannot be understood as indicating or implying relative importance. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship. In addition, unless otherwise clearly specified and limited, the terms "set", "install", "connect", "connect", and "connect in series" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be a connection between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood in specific circumstances.
[0024] The display method provided in the embodiments of the present application can be used in electronic devices, especially electronic devices equipped with ink screens. The electronic devices can be electronic devices such as tablet computers, mobile phones, e-readers, personal digital assistants (PDAs) based on ink screens, etc. Specifically, the electronic devices can include an ink screen, an image processing module, a microcontroller, a screen driver module, a timing control circuit, and a power control circuit.
[0025] The following is a detailed description of the various embodiments of the present application.
[0026] Figure 1 This is a flowchart of Example 1 of the display method for displaying comics on an electronic device provided by the present application. The display method for displaying comics on an electronic device provided by the embodiment of the present application can be executed by a display device, which can be implemented by hardware and / or software and integrated in an electronic device equipped with an ink screen.
[0027] The following description takes the display method of a comic strip displayed on an electronic device executed by a display device as an example. Figure 1 , the display method comprises: Step S10: obtaining a bubble area from the target display screen of the cartoon.
[0028] Among them, the target display screen of the comic can be the current display screen of the comic being displayed on the electronic device, or it can be a to-be-displayed screen that has not yet been displayed on the electronic device. The dialog box (that is, the bubble) in the comic is used to display the text content. If the text in the comic is adjusted directly, the onomatopeia, interjection, and auxiliary words in the non-bubble area of the comic may be included in the range to be adjusted, resulting in out-of-range adjustment. Therefore, in the present application, the bubble area is first obtained, and then the text in the bubble area is adjusted to ensure the accuracy of the text adjustment.
[0029] Step S20: Identify the bubble area to obtain the font size of the text in the bubble area.
[0030] That is, the present application identifies the bubble area to obtain the text and the font size of the text in the bubble area. The present application needs to determine the font size of the text before adjusting the text in the bubble area.
[0031] Step S30: determine whether the font size is smaller than a preset font size value, and if so, proceed to the next step.
[0032] The preset font size value may be a preset fixed value or an unfixed value. Specifically, the preset font size value may be determined according to information on the display interface, and the information on the display interface includes size, etc. Therefore, the present application determines whether the font size is smaller than the preset font size value. When the font size is greater than or equal to the preset font size value, it means that the font size of the text can be clearly seen by the reader, and the font size of the text does not need to be adjusted at this time, and the next step is not executed; when the font size is smaller than the preset font size value, it means that the font size of the text cannot be clearly seen by the reader, and the font size of the text needs to be adjusted at this time, and the next step is executed.
[0033] Step S40: enlarge the font size of the text in the bubble area.
[0034] After executing step S30, when the font size is smaller than the preset font size value, which means that the font size of the text cannot be clearly seen by the reader, step S40 is executed to enlarge the font size of the text in the bubble area.
[0035] In an embodiment of the present application, the step of enlarging the font of the text in the bubble area includes: increasing the font size of the text in the bubble area to the preset font size value.
[0036] It should be noted that the font size of the text in the bubble area can be increased to any value, which is within the scope of protection of this application. In the embodiment of this application, for the sake of comic beauty and overall viewing, the font size of the text in the bubble area is increased to the preset font size value.
[0037] Step S50: displaying the text with enlarged font in the bubble area.
[0038] To summarize, the present application determines whether the font size is smaller than a preset font size value, and then upon obtaining a positive result, performs font enlargement processing on the text in the bubble area, and displays the text after font enlargement processing in the bubble area, so that readers can clearly see the text in the bubble area, thereby improving the clarity of the comics displayed on electronic devices; in addition, the present application first obtains the bubble area, and then adjusts the text in the bubble area, thereby ensuring the accuracy of the text adjustment.
[0039] Please refer to Figure 2 , Figure 2 This is a flow chart of step S10 of an embodiment 1 of a method for displaying a comic on an electronic device provided by the present application. Further, in an embodiment of the present application, the step of obtaining a bubble area from a target display screen of the comic includes: Step S11, performing edge detection on the target display image to obtain a target area; Step S12, obtaining the regional characteristics of the target area; Step S13: determine whether the region feature is a preset bubble feature, and if so, the target region corresponding to the region feature is a bubble region.
[0040] Among them, edge detection is a technology in image processing and computer vision, which is used to identify the edge or outline of an object in an image. Specifically, edge detection uses gradient operations (such as Sobel, Canny, Laplacian and other algorithms) to emphasize the edge or outline of an object in an image, and then identify the outline area of the object. Therefore, the target area can be obtained by edge detection of the target display screen, and the target area is an area including the bubble area. Then, the regional features of the target area are obtained, and the regional features of the target area can be obtained by using a feature description algorithm, such as SIFT algorithm, SURF algorithm or ORB algorithm, and the regional features can be the coordinates and directions of the key points in the target area, or can be features that can distinguish the bubble area from other areas. Finally, it is determined whether the regional feature is a preset bubble feature. If so, the target area corresponding to the regional feature is a bubble area. That is, when the regional feature is a preset bubble feature, the target area corresponding to the regional feature is a bubble area. Specifically, the region feature and the preset bubble feature can be matched using a FLANN matcher or a BFMatcher matcher, and if the region feature and the preset bubble feature match, the target region corresponding to the region feature is the bubble region. In some embodiments of the present application, the preset bubble feature can be the coordinates and directions of key points related to the text.
[0041] Please refer to Figure 3 , Figure 3 This is a flow chart of step S10 of embodiment 2 of the method for displaying comics on an electronic device provided by this application. Figure 2 On the basis of the provided display method, further, before the step of performing edge detection on the target display screen to obtain the target area, the step of obtaining the bubble area from the target display screen of the cartoon further includes: Step S14: performing image preprocessing on the target display image, wherein the image preprocessing includes grayscale processing.
[0042] Since the target display screen may contain some unnecessary information, the present application performs image preprocessing on the target display screen, and the image preprocessing includes grayscale processing, thereby filtering out unnecessary information on the target display screen and improving the accuracy of bubble detection. Furthermore, the image preprocessing also includes adjusting the image size, distortion correction, etc., which can also improve the accuracy of bubble detection.
[0043] Please refer to Figure 4 , Figure 4 This is a flow chart of Embodiment 2 of the method for displaying comics on an electronic device provided by this application. Figure 1On the basis of the provided display method, further, before the step of determining whether the font size is smaller than a preset font size value and executing the next step if yes, the display method further includes: Step S60: obtaining the interface size of the display interface of the electronic device when displaying the target display screen; Step S70: obtaining a preset font size value of the text according to the interface size.
[0044] In this embodiment, the present application obtains the preset font size value in a dynamic manner, because when the electronic device displays the target display screen, the reader will adjust the interface size of the display interface of the electronic device when displaying the target display screen according to the use needs. Therefore, if the preset font size value is set with a fixed value, it cannot adapt to the reader's usage habits, and the reader's usage experience is poor. However, the present application obtains the interface size of the display interface of the electronic device when displaying the target display screen, and then obtains the preset font size value of the text according to the interface size. Specifically, different interface sizes correspond to different preset font size values, and the larger the interface size, the larger the corresponding preset font size value. Therefore, the present application can adapt to the reader's usage habits and improve the reader's usage experience.
[0045] Please refer to Figure 5 , Figure 5 This is a flow chart of step S20 of the embodiment 1 of the method for displaying comics on an electronic device provided by the present application. Figure 1 On the basis of the provided display method, further, in an embodiment of the present application, the step of identifying the bubble area to obtain the font size of the text in the bubble area includes: Step S21, segmenting the bubble area to obtain text blocks in the bubble area; Step S22: Perform OCR recognition on the text block to obtain the text in the bubble area and the font size of the text in the bubble area.
[0046] In the present application, the bubble area is first segmented by combining features such as grayscale, texture and shape to obtain text blocks, and then the text blocks are subjected to OCR recognition to obtain the text in the bubble area and the font size of the text in the bubble area.
[0047] Please refer to Figure 6 , Figure 6 This is a flow chart of step S20 of the second embodiment of the method for displaying comics on an electronic device provided by the present application. Figure 5On the basis of the provided display method, further, in an embodiment of the present application, before the step of segmenting the bubble area to obtain the text block in the bubble area, the display method further includes: Step S23: performing image noise reduction processing on the bubble area.
[0048] The bubble area is scaled when displayed on an electronic device, and the bubble area may not be clear enough or there is noise. Before the bubble area is segmented, it is necessary to perform image noise reduction on the bubble area to obtain a better segmentation effect. Image noise reduction is an important part of digital image processing, which aims to reduce or eliminate noise in the image, thereby improving image quality. Noise can exist in an image in various forms, including additive noise, multiplicative noise, and quantization noise. Different noise reduction methods can be used for different types of noise, such as mean filter, geometric mean filter, harmonic mean filter, inverse harmonic mean filter, adaptive Wiener filter, median filter, morphological noise filter, and wavelet denoising. Noise reduction methods such as contrast enhancement, grayscale or binarization can also be used.
[0049] Please refer to Figure 7 , Figure 7 This is a flowchart of step S40 of the method for displaying comics on an electronic device provided by the present application. Figure 1 On the basis of the provided display method, further, in an embodiment of the present application, the step of increasing the font size of the text in the bubble area includes: Step S41, segmenting the bubble area to obtain text blocks in the bubble area; Step S42, enlarging the text block in the bubble area; The step of displaying the text with enlarged font in the bubble area comprises: The enlarged text block is displayed in the bubble area.
[0050] That is, the present application performs font enlargement processing on the text block in the bubble area by enlarging the text block in the bubble area, and correspondingly displays the enlarged text block in the bubble area. Therefore, in this embodiment, there is no need to identify the text block, and the text block can be directly enlarged, which is conducive to reducing the calculation process and improving the display speed.
[0051] Furthermore, the step of displaying the enlarged text block in the bubble area includes: Arranging the enlarged text blocks according to the arrangement of the texts in the bubble area; Obtaining the longest text length of the arranged text blocks; Determine whether the longest text length is greater than the length of the bubble area in the text arrangement direction; If yes, displaying the arranged text blocks in a scrolling display manner in the bubble area; If not, the arranged text tiles are directly displayed in the bubble area.
[0052] Specifically, after the text block in the bubble area is enlarged, the length of the text changes, and the text may be a paragraph or several paragraphs. Therefore, after the text block in the bubble area is enlarged, the application obtains the longest text length of the text after the font enlargement processing, that is, the longest text length of the text block after arrangement, wherein the longest text length of the text refers to the length of the longest paragraph of text in the text, and then determines whether the longest text length is greater than the length of the bubble area in the text arrangement direction.
[0053] If the longest text length is greater than the length of the bubble area in the text arrangement direction, it means that the text exceeds the range of the bubble area, so the arranged text block is displayed in the bubble area in a scrolling display mode; if the longest text length is not greater than the length of the bubble area in the text arrangement direction, it means that the text does not exceed the range of the bubble area, and the arranged text block is directly displayed in the bubble area. Therefore, this application ensures that the text after the font enlargement processing can be fully displayed.
[0054] Please refer to Figure 8 , Figure 8 This is a flow chart of step S50 of the embodiment 1 of the method for displaying comics on an electronic device provided by the present application. Figure 1 On the basis of the provided display method, further, in an embodiment of the present application, the step of displaying the text with enlarged font in the bubble area includes: Step S51, obtaining the longest text length of the text after the font enlargement processing; Step S52, determining whether the longest text length is greater than the length of the bubble area in the text arrangement direction; Step S53: if yes, displaying the text with enlarged font in the bubble area in a scrolling display manner; Step S54: If not, directly display the text with enlarged font in the bubble area.
[0055] Specifically, after the text in the bubble area is enlarged, the length of the text changes, and the text may be a paragraph or several paragraphs. Therefore, after the text in the bubble area is enlarged, the application obtains the longest text length of the text after the font enlargement processing, where the longest text length of the text refers to the length of the longest paragraph of text in the text, and then determines whether the longest text length is greater than the length of the bubble area in the text arrangement direction.
[0056] If the longest text length is greater than the length of the bubble area in the text arrangement direction, it means that the text exceeds the range of the bubble area, so the text with enlarged font is displayed in the bubble area in a scrolling display mode; if the longest text length is not greater than the length of the bubble area in the text arrangement direction, it means that the text does not exceed the range of the bubble area, and the text with enlarged font is directly displayed in the bubble area. Therefore, this application ensures that the text with enlarged font can be fully displayed.
[0057] Please refer to Fig. 9 , Fig. 9 This is a flow chart of step S50 of embodiment 2 of the method for displaying comics on an electronic device provided by this application. Figure 1 On the basis of the provided display method, further, in an embodiment of the present application, the step of displaying the text with enlarged font in the bubble area includes: Step S55, obtaining the longest text length of the text after the font enlargement processing; Step S56, determining whether the longest text length is greater than the length of the bubble area in the text arrangement direction; Step S57: if yes, displaying the text with enlarged font in the bubble area in a multi-page display mode, wherein the bubble area is provided with a page turning key or the page turning is realized by clicking the bubble area; Step S58: If not, directly display the text with enlarged font in the bubble area.
[0058] Specifically, after the text in the bubble area is enlarged, the length of the text changes, and the text may be a paragraph or several paragraphs. Therefore, after the text in the bubble area is enlarged, the application obtains the longest text length of the text after the font enlargement processing, where the longest text length of the text refers to the length of the longest paragraph of text in the text, and then determines whether the longest text length is greater than the length of the bubble area in the text arrangement direction.
[0059] If the longest text length is greater than the length of the bubble area in the text arrangement direction, it means that the text exceeds the range of the bubble area, so the text with enlarged font is displayed in the bubble area in a multi-page display mode, and the bubble area is provided with a page turning key or the page turning is realized by clicking the bubble area, and all the texts with enlarged font can be viewed by clicking the page turning key; if the longest text length is not greater than the length of the bubble area in the text arrangement direction, it means that the text does not exceed the range of the bubble area, and the text with enlarged font is directly displayed in the bubble area. Therefore, this application ensures that the text with enlarged font can be fully displayed.
[0060] Fig.10 This is a schematic diagram of the structure of a display device for displaying comics on an electronic device provided by the present application. Fig.10 The display device for displaying the comic on the electronic device includes an acquisition module 10, a recognition module 20, a first judgment module 30, an enlargement module 40 and a display module 50.
[0061] Wherein, the acquisition module 10 is used to obtain the bubble area from the target display screen of the comic; The recognition module 20 is used to recognize the bubble area and obtain the font size of the text in the bubble area; The first judging module 30 is used to judge whether the font size is smaller than a preset font size value, and if so, execute the next step; The enlargement module 40 is used to enlarge the font of the text in the bubble area; The display module 50 is used to display the text with enlarged font in the bubble area.
[0062] The present application determines whether the font size is smaller than a preset font size value, and upon obtaining a positive result, performs font enlargement processing on the text in the bubble area, and displays the text after font enlargement processing in the bubble area, so that readers can clearly see the text in the bubble area, thereby improving the clarity of the comics displayed on electronic devices; in addition, the present application first obtains the bubble area, and then adjusts the text in the bubble area, thereby ensuring the accuracy of the text adjustment.
[0063] The display device for displaying comics on an electronic device provided in the embodiments of the present application is included in the electronic device and can be used to execute any display method provided in the above embodiments, and has corresponding functions and beneficial effects.
[0064] It is worth noting that in the embodiment of the display device for displaying the above-mentioned comics on the electronic device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.
[0065] Fig.11 A schematic diagram of the structure of the electronic device provided in this application, such as Fig.11 As shown, the electronic device includes one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the electronic device implements the display method of displaying comics on the electronic device as described above, Fig.11 A processor 201 is taken as an example.
[0066] The memory 202, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules. The processor 201 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 202, that is, realizes the above-mentioned display method.
[0067] The memory 202 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 202 may further include a memory remotely arranged relative to the processor 201, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0068] The electronic device mentioned above includes a handwriting input device, which can be used to execute any of the above display methods and has corresponding functions and beneficial effects.
[0069] The present application also provides a storage medium containing computer executable instructions, which are used to perform the display method when executed by a computer processor. The computer program can also implement the relevant operations in the display method provided in any embodiment of the present application when executed by the processor, and has corresponding functions and beneficial effects.
[0070] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
[0071] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0072] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0073] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0074] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0075] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A method for displaying comics on an electronic device, characterized in that: include: Obtaining a bubble area from a target display screen of the comic; Identify the bubble area to obtain the font size of the text in the bubble area; Determine whether the font size is smaller than a preset font size value, and if so, execute the next step; Enlarging the font size of the text in the bubble area; The text with enlarged font is displayed in the bubble area.
2. The display method according to claim 1, characterized in that: The step of obtaining the bubble area from the target display screen of the cartoon comprises: Performing edge detection on the target display image to obtain a target area; Obtaining regional characteristics of the target area; It is determined whether the region feature is a preset bubble feature, and if so, the target region corresponding to the region feature is a bubble region.
3. The display method according to claim 2, characterized in that: Before the step of performing edge detection on the target display screen to obtain the target area, the step of obtaining the bubble area from the target display screen of the cartoon further includes: The target display picture is subjected to image preprocessing, wherein the image preprocessing includes grayscale processing.
4. The display method according to claim 1, characterized in that: Before the step of determining whether the font size is smaller than a preset font size value and executing the next step if yes, the display method further includes: Obtaining an interface size of a display interface of the electronic device when displaying the target display screen; A preset font size value of the text is obtained according to the interface size.
5. The display method according to claim 1, characterized in that: The step of identifying the bubble area to obtain the font size of the text in the bubble area includes: Segmenting the bubble area to obtain text blocks in the bubble area; Perform OCR recognition on the text block to obtain the text in the bubble area and the font size of the text in the bubble area.
6. The display method according to claim 5, characterized in that: Before the step of segmenting the bubble area to obtain the text block in the bubble area, the display method further includes: Perform image noise reduction processing on the bubble area.
7. The display method according to claim 1, characterized in that: The step of increasing the font size of the text in the bubble area comprises: The font size of the text in the bubble area is increased to the preset font size value.
8. The display method according to claim 1, characterized in that: The step of increasing the font size of the text in the bubble area comprises: Segmenting the bubble area to obtain text blocks in the bubble area; Enlarging the text block in the bubble area; The step of displaying the text with enlarged font in the bubble area comprises: The enlarged text block is displayed in the bubble area.
9. The display method according to claim 1, characterized in that: The step of displaying the text with enlarged font in the bubble area comprises: Obtaining the longest text length of the text after the font enlargement processing; Determine whether the longest text length is greater than the length of the bubble area in the text arrangement direction; If yes, displaying the text with enlarged font in the bubble area in a scrolling display manner; If not, the text with enlarged font size is directly displayed in the bubble area.
10. The display method according to claim 1, characterized in that: The step of displaying the text with enlarged font in the bubble area comprises: Obtaining the longest text length of the text after the font enlargement processing; Determine whether the longest text length is greater than the length of the bubble area in the text arrangement direction; If yes, the text with enlarged font is displayed in the bubble area in a multi-page display mode, and the bubble area is provided with a page turning key or the page turning is realized by clicking the bubble area; If not, the text with enlarged font size is directly displayed in the bubble area.
11. The display method according to claim 1, characterized in that: Before the step of obtaining the bubble area from the target display screen of the comic, the display method further includes: Obtaining an interface size of a display interface of the electronic device when displaying a target display screen; Determine whether the interface size is smaller than a preset size, and if so, execute the next step.
12. A display device for displaying comics on an electronic device, characterized in that: include: An acquisition module, the acquisition module is used to obtain a bubble area from a target display screen of the comic; A recognition module, the recognition module is used to identify the bubble area to obtain the font size of the text in the bubble area; A first judging module, the first judging module is used to judge whether the font size is smaller than a preset font size value, and if so, execute the next step; An enlargement module, the enlargement module is used to enlarge the font of the text in the bubble area; A display module is used to display the text with enlarged font in the bubble area.
13. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the electronic device implements the display method as described in any one of claims 1-11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the display method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
A method and device for proportional setting of font attributes
CA2666471A1
Picture document processing method and device
CN102567300A
Displaying control method and terminal device
CN106649207A
Automatic translation of digital graphic novels
CN107615269A
Method, device and equipment for positioning characters in cartoon bubbles and readable storage medium
CN111444903A
