Picture processing method and electronic equipment
Through the intelligent photo frame function, text and photo frames are added at the same time during the image editing process, and text is automatically generated based on the image content, which solves the problems of cumbersome operation and poor text matching effects in the existing technology, and achieves efficient and high-quality text border effects, improving user experience.
Patent Information
- Application Number
- CN202311583536.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-11-03
- Filing Date
- 2023-11-23
- Publication Date
- 2025-05-13
AI Technical Summary
In the prior art, when users add text to photos, the operation is complicated and the text is poor, making it difficult to meet users' expectations for the photo atmosphere.
Provides a picture processing method, which adds text and photo frames when editing pictures through the intelligent photo frame function, automatically generates text according to the image content, and supports users to manually edit text.
It realizes efficient and high-quality completion of text border effects and pictures, improves user experience, simplifies the operation process, and improves the effect of photo text.
Smart Images

Figure CN119991866A_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on November 3, 2023, with application number 202311461740.0 and application name “A method and electronic device for image processing”, all contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of image processing, and more specifically, to a method and electronic device for image processing. Background Art
[0003] With the increasing popularity of smart terminals and the increasing power of shooting functions, more and more users use smart terminals to take photos to record their lives. After obtaining the photos, users have the need to further edit the photos so that the photos have a desired atmosphere.
[0004] In the prior art, the user's photo processing operation includes adding text to the photo. However, the traditional processing method requires the user to manually select text from the text library, which is cumbersome and the effect of adding text to the photo is not good. Summary of the invention
[0005] In view of this, the present application provides a method for image processing, an electronic device, a computer-readable storage medium, and a computer program product. In the process of editing images, it supports adding text and photo frames to images at the same time, and efficiently and high-quality completes the text border effect image, thereby improving the user experience.
[0006] In a first aspect, a method for image processing is provided, comprising:
[0007] In response to a first operation of the user, displaying a first interface, the first interface including a first picture and a first display area, the first display area including at least a thumbnail of a first photo frame option;
[0008] In response to a user clicking on the thumbnail of the first photo frame option, a second interface is displayed, the second interface including a second picture; the second picture includes the first picture, a first photo frame and a first text, and the first text is located in an area corresponding to the first photo frame.
[0009] The above scheme can be executed by an electronic device or a chip in the electronic device. Based on the above scheme, in the process of editing a picture, the electronic device responds to the user clicking on the thumbnail of the smart photo frame and applies the smart photo frame to the picture. The picture after applying the smart photo frame includes not only the photo frame but also the corresponding text. Compared with the editing operation that can only add a photo frame or only add text, the embodiment of the present application generates text for the picture and adds it to the photo frame while adding the photo frame, thereby completing the text border effect picture efficiently and with high quality.
[0010] In a possible implementation, the first photo frame is a border area displayed after the photo frame effect corresponding to the first photo frame option is applied to the first picture; the first accompanying text is text generated based on the content of the first picture; the font style of the first accompanying text is generated based on the style of the first photo frame; the font type of the first accompanying text corresponds to the first photo frame option.
[0011] The caption in the picture is automatically generated based on the content of the picture (e.g., the screen content). Compared with the editing operation that can only add a photo frame or only add text, the smart photo frame in the embodiment of the present application can intelligently generate captions for the picture while adding a photo frame, thereby completing the text frame effect picture efficiently and with high quality.
[0012] In order to further enrich the user's editing experience, based on the smart photo frame, the embodiment of the present application also supports users to manually edit the text in the picture.
[0013] In a possible implementation, the second interface further includes an editing control; and the method further includes:
[0014] In response to a user clicking on the editing control, a third interface is displayed, wherein the third interface includes the second image and a first window, wherein the first window includes a first option and a plurality of texts generated based on the first image, wherein the plurality of texts includes at least the first text and the second text;
[0015] In response to the user clicking on the second text, the text in the second picture is replaced with the second text.
[0016] Therefore, if the user is not satisfied with the text generated in the picture after applying the smart photo frame, he or she can manually switch the text, which improves the user's editing experience.
[0017] The embodiment of the present application also provides a control for changing the recommended text. In a possible implementation, the first window also includes a first change control; in response to the user clicking the first change control, some or all of the multiple texts in the first window change.
[0018] Therefore, if the user is not satisfied with the recommended text, the user can choose to change the recommended text. In this way, the user can select a satisfactory text to apply to the picture based on the multiple texts recommended after the change, providing the user with more choices.
[0019] The embodiment of the present application also provides a control for quickly changing the text in the picture.
[0020] In a possible implementation, the second interface further includes a second change control; in response to a user clicking on the second change control, the caption in the second image is replaced with any caption among the multiple captions except the first caption.
[0021] Therefore, if the user is not satisfied with the text generated in the picture after applying the smart photo frame, the text in the picture can be quickly replaced based on the second replacement control, thereby improving the user experience.
[0022] The embodiment of the present application also provides a function of switching text types. In a possible implementation, the first window also includes a second option; in response to the user clicking the second option, a fourth interface is displayed, the fourth interface includes the second picture and the second window, the second window includes the first option, the second option and a plurality of font type icons, the plurality of font type icons include a first font type icon and a second font type icon; wherein the font type of the first accompanying text is the first font type;
[0023] In response to a user clicking on the icon of the second font type, the font type of the first accompanying text in the second picture is changed from the first font type to the second font type.
[0024] Therefore, if the user is not satisfied with the text type generated in the picture after applying the smart photo frame, then the user can choose to switch the text type in the picture.
[0025] It is understandable that the fonts in the font library may include local fonts and cloud fonts. If the user selects a cloud font, then the cloud font is downloaded to provide the user with more font options.
[0026] In a possible implementation, the multiple font type icons further include an icon of a third font type, the icon of the third font type includes a to-be-downloaded flag, and the to-be-downloaded flag is used to indicate that the font corresponding to the third font type is in a to-be-downloaded state;
[0027] In response to a user clicking on the icon of the third font type, downloading the third font type, and displaying the icon of the third font type without the to-be-downloaded mark after the download is completed;
[0028] After the third font type is downloaded, the font type of the first accompanying text in the second picture is switched to the third font type.
[0029] The embodiment of the present application also provides a function of switching text styles. In a possible implementation, the first window also includes a third option; in response to the user clicking the third option, a sixth interface is displayed, the sixth interface includes the second picture and the third window, the third window includes the first option, the second option, the third option and controls for parameters related to the font style, the parameters related to the font style at least include a color control and / or a transparency control;
[0030] In response to the user adjusting the color control, the font color of the first accompanying text in the second picture is changed from a first color to a second color;
[0031] In response to the user's operation of adjusting the transparency control, the font transparency of the first text in the second picture is changed from a first transparency to a second transparency.
[0032] Therefore, if the user is not satisfied with the text style generated in the picture after applying the smart photo frame, then the user can choose to adjust the text style in the picture, further enriching the user's editing experience.
[0033] In a possible implementation manner, the first display area further includes a thumbnail of a second photo frame option, wherein the second photo frame option and the first photo frame option are different photo frame options;
[0034] In response to a user clicking on the thumbnail of the second photo frame option, a fifth interface is displayed, and the fifth interface includes a third picture; the third picture is a picture generated after the second photo frame option is applied to the first picture, and the third picture includes the first picture, a second photo frame and a third text; the second photo frame is different from the first photo frame; the third text is located in an area corresponding to the second photo frame; the font type and / or font style of the third text is different from that of the first text.
[0035] Optionally, the content of the third accompanying text is the same as or different from the content of the first accompanying text. Therefore, the embodiment of the present application can provide more smart photo frame options for users to choose from.
[0036] In a possible implementation, the first photo frame is a border area displayed after the photo frame effect corresponding to the first photo frame option is applied to the first picture; the first accompanying text is text generated based on the content of the first picture; the font style of the first accompanying text is generated based on the style of the first photo frame; the font type of the first accompanying text corresponds to the first photo frame option.
[0037] In a possible implementation, the thumbnail of the first photo frame option includes a first identifier, which is used to identify the smart text photo frame; the first display area also includes a thumbnail of a third photo frame option, which does not include the first identifier.
[0038] In a possible implementation, in response to a user clicking on a thumbnail of the third photo frame option, a seventh interface is displayed, where the seventh interface includes a third picture, and the third picture includes the first picture and a third photo frame.
[0039] Therefore, in order to better distinguish between ordinary photo frames and the smart photo frame of the embodiment of the present application, an identifier may be added to the thumbnail icon of the smart photo frame so that the user can quickly find the smart photo frame.
[0040] In a possible implementation, before displaying the second interface, the method further includes:
[0041] A scanning animation effect is displayed, where the scanning animation effect includes at least one picture frame, and each picture frame includes the first picture and a scanning line.
[0042] In a possible implementation, the first photo frame includes an upper frame area, a lower frame area, a left frame area, and a right frame area; and the size specifications of each frame area of the first photo frame are determined based on a preset rule.
[0043] In a possible implementation, the padding values of the upper border area, the left border area, and the right border area are a first ratio of the width of the second image; the padding value of the lower border area is a second ratio of the width of the second image. Optionally, the second ratio may be a first multiple of the first ratio.
[0044] In a second aspect, an electronic device is provided, comprising a unit for executing the method in any one of the implementations of the first aspect or the second aspect. The electronic device may be a terminal device or a chip in the terminal device. The electronic device comprises an input unit, a display unit, and a processing unit.
[0045] When the electronic device is a terminal device, the processing unit may be a processor, the input unit may be a communication interface, and the display unit may be a graphics processing module and a screen; the terminal device may also include a memory for storing computer program code, and when the processor executes the computer program code stored in the memory, the terminal device executes the method in any one of the implementation modes of the first aspect.
[0046] When the electronic device is a chip in a terminal device, the processing unit may be a logic processing unit inside the chip, the input unit may be an input interface, a pin or a circuit, etc., and the display unit may be a graphics processing unit inside the chip; the chip may also include a memory, which may be a memory inside the chip (for example, a register, a cache, etc.) or a memory located outside the chip (for example, a read-only memory, a random access memory, etc.); the memory is used to store computer program code, and when the processor executes the computer program code stored in the memory, the chip executes the method in any one of the implementations of the first aspect.
[0047] In one implementation, the processing unit is used to call the display unit to display a first interface in response to a first operation of the user, wherein the first interface includes a first picture and a first display area, and the first display area includes at least a thumbnail of a first photo frame option;
[0048] In response to a user clicking on the thumbnail of the first photo frame option, the display unit is called to display a second interface, the second interface includes a second picture; the second picture includes the first picture, the first photo frame and the first text; the first text is located in the area corresponding to the first photo frame.
[0049] In one implementation, the second interface further includes an editing control; the processing unit is further configured to, in response to a user clicking on the editing control, call the display unit to display a third interface, wherein the third interface includes the second image and a first window, wherein the first window includes a first option and a plurality of texts generated based on the first image, wherein the plurality of texts include at least the first text and the second text;
[0050] In response to the user clicking on the second text, the text in the second picture is replaced with the second text.
[0051] In one implementation, the first window further includes a second option; the processing unit is further configured to, in response to a user clicking on the second option, call the display unit to display a fourth interface, wherein the fourth interface includes the second picture and the second window, and the second window includes the first option, the second option, and a plurality of font type icons, wherein the plurality of font type icons include an icon of a first font type and an icon of a second font type; wherein the font type of the first accompanying text is the first font type;
[0052] In response to a user clicking on the icon of the second font type, the font type of the first accompanying text in the second picture is changed from the first font type to the second font type.
[0053] In one implementation, the first window further includes a third option; the processing unit is further configured to, in response to a user clicking on the third option, call the display unit to display a sixth interface, wherein the sixth interface includes the second picture and the third window, and the third window includes the first option, the second option, the third option, and controls for parameters related to the font style, wherein the parameters related to the font style include at least a color control and / or a transparency control;
[0054] In response to the user adjusting the color control, the font color of the first accompanying text in the second picture is changed from a first color to a second color;
[0055] In response to the user's operation of adjusting the transparency control, the font transparency of the first text in the second picture is changed from a first transparency to a second transparency.
[0056] It can be understood that the relevant technical effects can be referred to the description in the first aspect, and for the sake of brevity, they will not be repeated here.
[0057] It can also be understood that only some implementations of the processing unit and the display unit are illustrated here, and the processing unit and / or the display unit can also execute other implementations in the first aspect mentioned above.
[0058] According to a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by an electronic device, the electronic device executes the method in any one of the implementations of the first aspect.
[0059] According to a fourth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed by an electronic device, the electronic device executes the method in any one of the implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 is a schematic diagram of a hardware system of an electronic device applicable to the present application;
[0061] Figure 2 This is an example diagram of an interface of an application scenario of an embodiment of the present application;
[0062] Figure 3A What is shown in FIG. 1 is an example diagram of an interface of an application smart photo frame according to an embodiment of the present application;
[0063] Figure 3B FIG. 2 shows another example interface diagram of the application smart photo frame according to an embodiment of the present application;
[0064] Figure 4Shown is an example diagram of an interface of a scanning animation effect when a smart photo frame is used in an embodiment of the present application;
[0065] Figure 5 What is shown is an example diagram of an interface for switching text in an embodiment of the present application;
[0066] Figure 6 What is shown is an example diagram of an interface for changing the recommended text in an embodiment of the present application;
[0067] Figure 7 Another example of an interface for switching text in an embodiment of the present application is shown;
[0068] Figure 8 What is shown is an example diagram of an interface for selecting a font type in an embodiment of the present application;
[0069] Fig. 9 What is shown is an example diagram of an interface for selecting a font style in an embodiment of the present application;
[0070] Fig.10 What is shown is a schematic flow chart of a picture processing method according to an embodiment of the present application;
[0071] Fig.11 Shown is a schematic diagram of the software architecture of the present application. DETAILED DESCRIPTION
[0072] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0073] In the embodiments of the present application, unless otherwise specified, “plurality” may mean two or more than two.
[0074] A method for image processing in an embodiment of the present application can be applied to an electronic device. The electronic device has a function of image processing, or in other words, is installed with an application capable of image processing. In some embodiments, a gallery application is installed in the electronic device.
[0075] It is understandable that the description here is only based on the picture library application as an example, and the embodiments of the present application are not limited thereto. In fact, the embodiments of the present application are also applicable to other applications that support processing of pictures.
[0076] In some embodiments of the present application, the electronic device may be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, and the like.
[0077] Figure 1 A schematic structural diagram of an electronic device 100 provided in an embodiment of the present application is shown. Figure 1 A hardware system of an electronic device suitable for the present application is shown.
[0078] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0079] It should be noted that Figure 1 The structure shown does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include Figure 1 More or fewer components than those shown, or the electronic device 100 may include Figure 1 Combinations of some of the components shown, or the electronic device 100 may include Figure 1 Subassemblies of some of the components shown. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0080] The processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Different processing units may be independent devices or integrated devices.
[0081] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0082] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0083] In some embodiments, the processor 110 may include one or more interfaces. For example, the processor 110 may include at least one of the following interfaces: an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and a USB interface. Figure 1The connection relationship between the modules shown is only a schematic illustration and does not constitute a limitation on the connection relationship between the modules of the electronic device 100. Optionally, the modules of the electronic device 100 may also adopt a combination of multiple connection modes in the above embodiments.
[0084] In some embodiments, the processor 110 is used to call the display screen 194 to display a first interface in response to a first operation of the user, wherein the first interface includes a first picture and a first display area, and the first display area includes at least a thumbnail of a first photo frame option; in response to the user clicking on the thumbnail of the first photo frame option, call the display screen 194 to display a second interface, wherein the second interface includes a second picture; the second picture includes the first picture, a first photo frame and a first text; the first text is located in the area corresponding to the first photo frame.
[0085] The electronic device 100 can realize the display function through the GPU, the display screen 194 and the application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0086] The display screen 194 can be used to display images or videos. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (Mini LED), a micro light-emitting diode (Micro LED), a micro OLED (Micro OLED) or a quantum dot light emitting diode (QLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. As a possible implementation method, when a user views the discovery page of the gallery application, the display screen 194 can be used to display the first recommendation position, and display cards of photos of today in previous years or cards of moment videos in the first recommendation position.
[0087] The electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
[0088] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can perform algorithm optimization on the noise, brightness and color of the image. The ISP can also optimize the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0089] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard red green blue (RGB), YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0090] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals.
[0091] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0092] NPU is a processor that draws on the structure of biological neural networks, such as the transmission mode between neurons in the human brain to quickly process input information, and can also continuously self-learn. Through NPU, the electronic device 100 can realize intelligent cognition and other functions, such as image recognition, face recognition, voice recognition and text understanding.
[0093] The external memory interface 120 may be used to connect an external memory card, such as a secure digital (SD) card, to expand the storage capacity of the electronic device 100 .
[0094] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, and at least one application required for a function (for example, a sound playback function and an image playback function). The data storage area may store data created during the use of the electronic device 100 (for example, audio data and a phone book). In addition, the internal memory 121 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, and a universal flash storage (UFS). The processor 110 executes various processing methods of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0095] The electronic device 100 can implement audio functions, such as music playing and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor.
[0096] The touch sensor 180K is also called a touch control device. The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch control screen. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor 180K can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100 and set at a different position from the display screen 194.
[0097] The key 190 includes a power key and a volume key. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive a key input signal and implement a function related to the key input signal.
[0098] The technical solutions involved in the following embodiments can all be implemented in the electronic device 100 having the above hardware architecture.
[0099] In order to provide users with more abundant image processing functions, the embodiment of the present application provides a smart photo frame function, which can quickly add text to the picture by combining smart text matching with the photo frame. Among them, "smart text matching" can be understood as intelligently recommending appropriate text (or copywriting) to the user based on the content of the picture. In addition, the style of the text added to the photo can be intelligently matched according to one or more of the content of the picture, the color of the picture, and the style of the border.
[0100] For ease of understanding, the following embodiments of the present application will be described in detail with Figure 1 Taking the electronic device with the structure shown as an example, the method for image processing provided by the embodiment of the present application is specifically described in combination with the figure and application scenario. The embodiment of the present application will take the electronic device as a mobile phone, and the mobile phone has a gallery application installed as an example to describe in detail a method for image processing in the embodiment of the present application.
[0101] In some embodiments, the present application provides an entry to the smart photo frame in the photo editing page.
[0102] The photo editing page can be a page for editing a certain photo in the gallery application, or it can be a page of other applications with the function of editing pictures. The embodiment of the present application does not specifically limit how to enter the photo editing page. For example, the photo editing page can be entered in the gallery application. Of course, entering the photo editing page through the gallery application is only an example. In fact, there are other ways to enter the photo editing page to edit the photo. For ease of understanding, the following description is combined with the interface.
[0103] refer to Figure 2 , Figure 2 FIG. 1 is a schematic diagram showing an example of a graphical user interface (GUI) of a smart photo frame entrance provided by an embodiment of the present application. Figure 2 As shown in (1), the interface shows the desktop of the mobile phone, and the mobile phone displays the current output interface content. The interface displays multiple applications (applications, Apps). The interface includes an icon 201 of the gallery application and icons of other applications. In response to the user clicking the icon 201 of the gallery application, the mobile phone displays the interface of the gallery application. For example, the interface of the gallery application may include a photo page of the gallery application, such as Figure 2 The interface 10 shown in (2) is an example of a photo page. The interface 10 displays at least one photo thumbnail, and the at least one photo thumbnail is displayed in order from the latest to the earliest date. The bottom of the interface 10 contains photo options, album options, moment options, and creation options (or discovery options). Figure 2The photo page is shown in (2). Since the photo page is shown in the interface 10, the icon status of the photo option is different from that of the other three options (album option, moment option and creation option). For example, the icon color of the photo option may be darker than that of the other three options.
[0104] For example, Figure 2 (2) includes a thumbnail of a photo (or image) 202. In response to the user clicking on the thumbnail of the photo 202, the mobile phone displays Figure 2 The interface shown in (3) is shown in the figure. Figure 2 As shown in (3), the original image of photo 202 is displayed in the interface. For example, the original image of photo 202 was taken at 10:50 am on February 14, 2022. Figure 2 The interface shown in (3) includes an editing control 101. Of course, in addition to the editing control 101, the interface also includes a sharing control, a favorite control, a delete control, and more controls. In response to the user clicking on the sharing control, the mobile phone can share the photo 202. In response to the user clicking on the favorite control, the mobile phone adds the photo 202 to the favorites album. In response to the user clicking on the editing control, the mobile phone performs an editing operation on the photo 202. In response to the user clicking on the delete control, the mobile phone deletes the photo 202. In response to the user clicking on more controls, the mobile phone displays other operations for the photo 202 (e.g., copy, move, rename, rotate, etc.).
[0105] In some embodiments, the mobile phone responds to the user clicking Figure 2 The operation of the editing control 101 shown in (3) enters the editing state of the photo 202, for example, Figure 3A The editing interface shown in (1) is shown in the figure. Figure 3A As shown in (1), the editing interface includes a photo 202. Optionally, the photo 202 may include a grid, so that the user can refer to the grid to perform editing operations on the photo 202. A first area, a second area, and a third area are displayed below the photo 202.
[0106] The first area is used to display the provided picture ratio options. For example, the ratio options displayed in the first area include: free ratio, original ratio (i.e. the original ratio of the photo), 9:16, 16:9, 3:4, 4:3, etc. For example, Figure 3A In (1), the ratio of the photo 202 currently shown is the original ratio. In the process of editing the photo 202, the user can manually select the ratio of the photo 202. After selecting a ratio, the option icon corresponding to the ratio selected by the user is displayed in the interface, which can be distinguished from other unselected ratios, for example, Figure 3AThe icon of "original ratio" shown in (1) is displayed in bold, and the line is obviously thicker than the icons of other ratios. It can be understood that in actual implementation, other methods can be used to distinguish whether the ratio option is selected by the user, such as distinguishing by different colors.
[0107] The second area is used to display the relevant controls for rotating the photo. The mobile phone changes the rotation angle of the photo 202 in response to the user's sliding operation to the left or right in the second area.
[0108] The third area is used to display multiple options or controls for editing photos. The third area includes a photo frame control 102. The photo frame control is used to add a photo frame to the photo. In the embodiment of the present application, the photo frame control 102 can be used to enter the page of the smart photo frame.
[0109] It is understood that in addition to the photo frame control 102, the photo editing page may also include other editing options. For example, Figure 3A The graffiti control, text control, mosaic control, watermark control and blur control in the interface shown in (1). In response to the user clicking the graffiti control, the mobile phone can display the relevant editing operations of graffiti on the photo. In response to the user clicking the text control, the mobile phone displays the relevant editing operations of manually adding text to the photo. In response to the user clicking the mosaic control, the mobile phone displays the relevant editing operations of performing mosaic processing on the photo. In response to the user clicking the watermark control, the mobile phone displays the relevant editing operations of adding or removing watermarks from the photo. In response to the user clicking the blur, the mobile phone displays the relevant editing operations of blurring the photo.
[0110] It is understandable. Figure 3A The various editing options in the third area shown in (1) are only exemplary descriptions, and the embodiments of the present application are not limited thereto. For example, by sliding left or right at the bottom of the screen, the user can display other editing options that are not presented in the interface, such as: Figure 3A The retained color controls shown in (3) above.
[0111] like Figure 3A As shown in (1), the editing interface also includes a return control 104 and a save control 103. In response to the user clicking the return control 104, the mobile phone can return to the interface before the editing state, for example, Figure 2 In the interface shown in (3), in response to the user clicking the save control 103, the mobile phone can save the edited photo 202.
[0112] In some embodiments, the mobile phone displays a Figure 3A The photo frame selection interface shown in (2) is shown in the figure. Figure 3AAs shown in (2), the interface includes a photo frame area. The photo frame area is used to present thumbnails of different photo frame options.
[0113] In the embodiment of the present application, the photo frame area includes thumbnail icons of the smart photo frames provided in the embodiment of the present application, such as the thumbnail of the smart photo frame 105-1 and the thumbnail of the smart photo frame 105-2. For the photo frame thumbnails provided in the photo frame area, if the user selects a photo frame, the border line of the thumbnail corresponding to the selected photo frame can be thicker than that of other unselected photo frames to achieve the purpose of distinction. Of course, different colors can also be used to distinguish whether it is selected.
[0114] Optionally, the thumbnail of the smart photo frame 105-1 includes a logo 11 and a first font sample. The logo 11 is used to distinguish the smart photo frame from an ordinary photo frame. For example, the logo 11 may be an AI logo.
[0115] The first font sample in the thumbnail of the smart photo frame 105-1 may be optional and is only used to illustrate the font type and / or style. It is understandable that the text content of the first font sample may also be preset, for example, Figure 3A In order to enjoy delicious food, the embodiments of the present application are not limited to this.
[0116] It is understood that the photo frame area may also include an icon 105-4. Icon 105-4 indicates that no photo frame has been added. In the first photo frame selection interface, the photo 202 has no photo frame by default, that is, icon 105-4 is selected by default. It can be seen that Figure 3A The border lines of the icon 105-4 shown in (2) are thicker than the lines of the icons of other photo frames. This indicates that the icon 105-4 is in a selected state, that is, the photo 202 is not currently added with a photo frame.
[0117] Of course, the photo frame area may also include thumbnail icons of traditional photo frames, such as traditional photo frame 105-3. The user can slide left or right in the photo frame area to switch different photo frames. The difference between the traditional photo frame and the smart photo frame provided in the embodiment of the present application is that the traditional photo frame cannot automatically add text to the photo frame.
[0118] The smart photo frame provided in the embodiment of the present application can add text and photo frame to the picture at the same time; and the text content is intelligently matched based on the content of the picture. In some embodiments, after the mobile phone responds to the user clicking the thumbnail of the smart photo frame 105-1, the smart photo frame 105-1 is applied to the photo 202, and the text content is intelligently matched based on the content of the picture. Figure 3A The interface shown in (3) is shown in the figure. Figure 3AAs shown in (3), the picture 106 displayed in the interface is the effect after applying the smart photo frame 105-1 to the photo 202, that is, the picture after adding text and a frame. The picture 106 includes the content of the photo 202, the photo frame (that is, the gray filled area of the picture 106 shown in the figure) and the text (for example, the "copy A*********" shown in the figure). Among them, the copy A can be a sentence, not just a single word or a single word. The meaning expressed by the copy A matches the content contained in the picture. The content contained in the picture here can refer to the content contained in the picture itself, not the information such as the shooting time or shooting location of the picture. For example, if the photo 202 is a landscape photo, then the copy A is the copy related to the description of the scenery, or the copy A can include the landscape elements included in the photo 202.
[0119] The text content in the picture 106 is intelligently matched based on the content of the picture to ensure the overall effect of the picture, making the picture effect more beautiful. The font type and font style (such as color, transparency and other parameters) of the text in the picture 106 are determined based on the frame style of the smart frame 105-1.
[0120] Here, it is uniformly explained that the embodiments of the present application do not limit the specific filling color and / or pattern of the photo frame corresponding to the smart photo frame. The gray filling area of the photo frame in the figure is only for the convenience of illustration.
[0121] The embodiment of the present application does not specifically limit the manner of determining the style and / or type of the text in the picture 106. Optionally, in some embodiments, the style and / or type of the text in the picture 106 may be related to the border style (or the frame type) corresponding to the smart photo frame. Exemplarily, if the border style is a border of a related retro type (e.g., a border with curled edges), the color and / or style of the font may match the border style.
[0122] When generating a copy for the image 106 based on the content of the image 106, multiple copies may be matched in the copy library. In order to generate the most appropriate copy based on the image content, the copy that is finally presented in the image may be determined based on the confidence parameter corresponding to each copy. For example, the copy with the highest confidence among multiple copies matching the image content may be selected and presented in the image after the photo frame is added.
[0123] Optionally, the confidence parameter corresponding to each copy can be determined based on a priori values or based on the user's preference data collected during use. Figure 5If another copy is reselected by manually modifying the text as shown, the electronic device can feed back the user's selection to the server for subsequent updating of copy-related data or learning models. Optionally, the number of characters corresponding to the text in picture 106 can be set to a preset number. For example, for full-width characters, the number of characters corresponding to the text in picture 106 does not exceed 15. For another example, for half-width characters, the number of characters corresponding to the text in picture 106 does not exceed 30.
[0124] Optionally, the format corresponding to the text in the picture 106 may be the default format corresponding to the smart photo frame 105-1. The embodiment of the present application does not specifically limit the default format. For example, the default text alignment of the smart photo frame 105-1 is center alignment. For another example, the default font size of the smart photo frame 105-1 is xxdp. For another example, the default text font of the smart photo frame 105-1 is You Ran Xiao Kai.
[0125] The embodiment of the present application does not specifically limit the frame specifications of the smart photo frame. In some embodiments, the filling value of the upper area of the photo frame (which can be understood as the area from the upper frame of the photo 202 in the picture 106 to the upper frame of the picture 106) can be a first ratio of the picture width; the filling value of the left area of the photo frame (which can be understood as the area from the left frame of the photo 202 in the picture 106 to the left frame of the picture 106) can be a second ratio of the picture width; the filling value of the right area of the photo frame (which can be understood as the area from the right frame of the photo 202 in the picture 106 to the right frame of the picture 106) can be a third ratio of the picture width. Optionally, the first ratio, the second ratio, and the third ratio can be the same or different, and there is no limitation on this.
[0126] In some embodiments, the fill value of the lower region of the photo frame may be a first multiple of the fill value of the left region (or the right region or the upper region).
[0127] For example, if the original image has a ratio of 100*100, the design rule of the photo frame may be: the upper border, the left border and the right border are all 10% of the width of the original image; the lower border is n times of 10%, where n is an integer greater than or equal to 1.
[0128] In some embodiments, if the width of the original image is less than the first threshold, then after adding the smart photo frame, the width of the generated image can be expanded to the first threshold to obtain an image that meets the size specification. It should be noted that when the image is enlarged or reduced, the proportion of the original image will not be changed, but the original image will be enlarged or reduced in proportion based on the proportion of the original image.
[0129] For example, if the ratio of the original picture is 50*50, then by enlarging the original picture in equal proportion, a 500*500 picture is obtained, and then the frame area is determined based on the design rules of the frame.
[0130] It can be understood that the above-mentioned design rules for the photo frame specifications of the smart photo frame are merely exemplary descriptions, and the embodiments of the present application are not limited thereto.
[0131] Optionally, Figure 3A The interface shown in (3) also includes an edit text control 107. The edit text control 107 is used to provide the user with one or more of the following functions: edit the content of the text, edit the style of the text, and edit the font type of the text. Figures 5 to 9 The interface diagram shown is described below.
[0132] It is understandable that after obtaining the picture 106 , the user can save the picture 106 . Figure 3A The save control 103 in the interface shown in (3) can provide a function of saving the image 106. Optionally, in response to the user clicking the save control 103, the mobile phone displays a save option on the interface, and the save option can include a save method of overwriting the original image and a save method of saving a separate image. The relevant save method can refer to the implementation in the relevant technology, which will not be repeated here.
[0133] Optionally, when the user selects the "Save as" saving method, the location where the picture 106 is saved in the gallery application can be adjacent to the location where the original picture (photo 202) is saved in the gallery application. Optionally, the name of the picture 106 can be determined by referring to the name of the photo 202. For example, if the photo 202 is named "landscape", then the name of the picture 106 is "landscape 1".
[0134] Optionally, Figure 3A (4) shows that the user will Figure 3A After the picture 106 shown in (3) is saved, the mobile phone displays the interface in response to the user's operation of viewing the picture 106 in the gallery application.
[0135] Optionally, Figure 3AThe photo frame area shown in (2) may include thumbnails of multiple smart photo frames. For example, the photo frame area also includes a thumbnail of smart photo frame 105-2, and smart photo frame 105-2 corresponds to different photo frame effects than smart photo frame 105-1. Similarly, the thumbnail of smart photo frame 105-2 includes logo 12 and a second font sample. Logo 12 is also used to distinguish smart photo frames from ordinary photo frames. Furthermore, the second font sample and the first font sample are different types of fonts, that is, smart photo frame 105-1 and smart photo frame 105-2 use different types of fonts. In some embodiments, smart photo frame 105-2 and smart photo frame 105-1 correspond to different photo frame effects, which can be manifested in one or more of the following: (1) different photo frame styles; (2) different font types; (3) different font styles. Optionally, different photo frame styles include one or more of the following: different photo frame shapes; different colors of photo frame fill areas; different textures or patterns filled with photo frame fill areas.
[0136] It should be noted that Figure 3A In the example, the photo 202 is used for illustration, and the embodiments of the present application are not limited thereto. In addition, the photo frame style corresponding to the same smart photo frame, the font style and font type of the text generated for the photo can be fixed. For example, if Figure 3A If the picture to be edited in is a picture different from the picture 202, then the picture obtained after applying the smart photo frame 105-1 has the same style as the picture 202. Figure 3A The photo frame styles of the picture 106 shown in (3) are the same, but the difference is that the content of the generated copy is different. This is because the content of the generated copy depends on the picture content of the picture itself, while the text type and / or text style of the copy is related to the photo frame corresponding to the smart photo frame.
[0137] It should also be noted that for the same picture, when different smart photo frames are applied, the text content generated for the picture is based on the same copy library or the same text matching algorithm. In this way, in some cases, for the same picture, after different smart photo frames are applied, the text content added to the picture may be the same or different; however, the type of text and / or the style of text is different. Of course, the style of the photo frame can also be different.
[0138] Optionally, based on the ranking of the confidences of the texts, after applying different smart photo frames to the same picture, the contents of the texts added to the pictures may be the same, that is, they are all the texts with the highest confidences.
[0139] refer to Figure 3B , Figure 3B FIG. 2 shows an example of an interface of another smart photo frame. Figure 3BAs shown in (1), in response to the user clicking on the thumbnail of the smart photo frame 105-2, the mobile phone displays the following after applying the smart photo frame 105-2: Figure 3B The interface shown in (2) is shown in the figure. Figure 3B The interface shown in (1) is similar to Figure 3A The interface shown in (2) is similar. For related descriptions, please refer to Figure 3A The description of (2) in the above will not be repeated here. Figure 3B As shown in (2), the picture 108 displayed in the interface is the effect of applying the smart photo frame 105-2 to the photo 202, that is, the picture after adding text and a border. The picture 108 includes the content of the photo 202, the border (i.e. Figure 3B The gray filled area of the picture 108 shown in (2)) and text (for example, the text A********* shown in the figure). Figure 3A The frame specifications (i.e., the area of the gray filled area) of the picture 106 and the picture 108 shown in (3) are different from those of the picture 106, and the font types of the text are different. Furthermore, the text styles of the two may also be different. For example, the different frame specifications may also include different frame shapes.
[0140] It should be understood that Figure 3B The interface shown in is merely an example description of another smart photo frame, and the embodiments of the present application are not limited thereto.
[0141] Understandably, Figure 3A or Figure 3B The photo frame area shown in the figure may include thumbnails of more smart photo frames. The figure only takes the smart photo frame 105-1 and the smart photo frame 105-2 as examples for description, and the embodiments of the present application are not limited to this.
[0142] When the user clicks on the smart photo frame, the phone will automatically run relevant algorithms (including the smart text matching algorithm and the text matching photo frame algorithm). When running the relevant algorithms, the content of the photo will be scanned and recognized in order to match the appropriate text based on the content of the photo. During the photo recognition process, animation effects can be displayed in the interface to enhance the user's visual experience.
[0143] In some embodiments, the mobile phone displays an animation effect of identifying a picture in response to a user clicking on a certain smart photo frame. For example, the mobile phone displays an animation effect of identifying a picture in response to a user clicking on a thumbnail of the smart photo frame 105-1. Figure 4 The animation effect is composed of the picture frames shown in FIG. Figure 3A As an example, in the interface Figure 3A In the interface shown in (2) Figure 3A Between the interfaces shown in (3), the mobile phone will display an animation effect. This animation effect can be understood as the animation effect of scanning the content in the picture.
[0144] for example, Figure 4 Medium (1) to Figure 4 The interface shown in (3) is a partial frame of the animation effect. The frame includes a scan line, which can move from the bottom of the picture to the top, and then from the top to the bottom, rolling back and forth to achieve the animation effect of dynamic recognition of the picture. Of course, the display duration of the animation effect may depend on the computing power of the mobile phone. If the mobile phone takes a long time to run the algorithm, the animation effect will continue to scroll until the generated text and photo frame are applied to the picture and displayed. Figure 3A If the mobile phone runs the algorithm for a short time, the duration of the animation effect will be reduced accordingly, and after the algorithm is completed, the generated text and photo frame will be applied to the picture, showing Figure 3A The interface shown in (3).
[0145] Understandably, Figure 4 Medium (1) to Figure 4 The picture frames shown in (3) are only partial examples of animation effects, and the embodiments of the present application are not limited to this.
[0146] It is understandable. Figure 4 The scanning animation effect shown in FIG. 1 may also occur in other scenarios after selecting the smart photo frame, and the embodiments of the present application are not limited thereto. Figure 3B Zhong (1) and Figure 3B Between the interfaces shown in (2), the phone will display Figure 4 The animation effect shown in .
[0147] The mobile phone automatically adds text and a photo frame to the picture in response to the smart photo frame selected by the user. In order to further enhance the user experience, the embodiment of the present application also provides a function of editing the accompanying text to provide users with more independent choices.
[0148] In some embodiments, the mobile phone modifies or switches the text added through the smart photo frame in response to the user's operation.
[0149] Figure 5 The figure shows an example of an interface where a user manually modifies the text. Figure 5 As shown in (1), the picture 106 displayed in the interface is an example of a picture after the smart photo frame 105-1 is applied to the photo 202. Below the picture 106, the interface also includes an edit text control 107. In response to the user clicking the edit text control 107, the mobile phone displays Figure 5 The interface shown in (2).
[0150] like Figure 5As shown in (2), the interface includes a picture 106 and a window 50. The window 50 includes a text input box, a smart text option 501, a font option 502, and a style option 503. Among them, the text input box is used to display the text of the picture 106. Figure 5 The text input box shown in (2) displays the text corresponding to the smart photo frame 105-1.
[0151] Figure 5 The page of the smart text option 501 is displayed in the window 50 shown in (2). The smart text option 501 provides five types of texts, namely: text A; text B; text C; text D and text E. The five types of texts have different contents. In response to the user manually clicking on the text E, the mobile phone displays Figure 5 The interface shown in (3).
[0152] Optionally, the five types of text provided by the smart text option 501 can be intelligently recommended based on the content of the photo 202. The embodiment of the present application does not specifically limit the intelligent text matching algorithm. In some embodiments, the text generated based on the content of the picture may include the content of the elements in the picture. For example, the photo 202 includes landscape elements such as the sky, the sun, white clouds, and the peaks, and corresponding texts can be generated based on these elements; accordingly, the text generated for the photo 202 may include one or more of the elements such as the sky, the sun, the white clouds, and the peaks.
[0153] Understandably, Figure 5 The five types of text shown in the figure are merely exemplary descriptions, and the embodiments of the present application are not limited thereto.
[0154] It is also understood that the present embodiment does not specifically limit the number of recommended texts. Figure 5 Among the five documents shown in (2), the user can view other documents by sliding upward in window 50.
[0155] Optionally, for different smart photo frames, when the user selects a smart photo frame to enter the smart text recommendation page of the text editing page, except for the default font type of the smart photo frame, the content of the other texts recommended to the user for the user to choose independently can be the same, and the arrangement order of the recommended texts can also be the same. Figure 5 (2) shows that after selecting the smart photo frame 105-1, Figure 5 The edit text control 107 shown in (1) enters the smart text recommendation page. Figure 3B The edit text control 107 shown in (2) enters the smart text recommendation page, and the content of the recommended text can be Figure 5The contents of the texts shown in (1) are the same, and their arrangement order may also be the same.
[0156] like Figure 5 In the interface shown in (3), the text displayed in picture 106-1 is the text E selected by the user. Correspondingly, the text displayed in the text input box in window 50 is also changed to text E. It can be seen that the text in picture 106-1 has changed compared to picture 106, that is, the text displayed in picture 106-1 is the text manually selected by the user.
[0157] Understandably, Figure 5 The interface in which the user manually selects text to modify the text in the picture is only an exemplary description, and the embodiments of the present application are not limited thereto. In fact, the user can select any text shown in the interface.
[0158] Of course, if the user can also manually enter text in the text input box, this embodiment of the present application is not limited to this.
[0159] The foregoing Figure 5 The interface shown in FIG. 1 is a user manual text selection interface. The present application embodiment also provides a control for switching recommended texts to achieve a function of quickly switching the recommended texts displayed below the picture. Figure 6 The following describes the interface example.
[0160] Figure 6 Shown in FIG. 1 is an example of an interface in which a user manually switches the text. Figure 6 The interface shown in (1) is similar to Figure 5 The interface shown in (1) is similar to that shown in (1). For related descriptions, please refer to Figure 5 The description shown in (1) is not repeated here. In response to the user clicking the edit text control 107, the mobile phone displays Figure 6 The interface shown in (2).
[0161] like Figure 6 The interface shown in (2) includes a picture 106 and a window 60. The window 60 includes a change control 601, a text input box, a smart text option, a font option, and a style option. The window 60 also includes five types of texts recommended based on the content of the picture, namely: text A; text B; text C; text D and text E. Among them, the text input box is used to display the text of the picture 106. Figure 6 The text input box shown in (2) shows the text currently displayed in the picture 106 after the smart photo frame 105-1 is applied, for example, text A. It can be seen that Figure 6 The window 60 shown in (2) is compared to Figure 5The window 50 shown in (2) is added with a change control 601. The change control 601 is used to switch the five texts displayed below the picture 106.
[0162] It is understood that the replacement control 601 may also have other names, and the embodiment of the present application is not limited thereto, for example, a replacement control, etc. It is also understood that the icon of the replacement control 601 may also have other forms, Figure 6 The replacement control 601 shown in (2) is only an example description, and the embodiments of the present application are not limited to this.
[0163] The phone responds to the user clicking Figure 6 The operation of replacing the control 601 shown in (2) shows Figure 6 The interface shown in (3) is shown in the figure. Figure 6 As shown in (3), the five types of text displayed in the window 60 are switched to: Text 1; Text 2; Text 3; Text 4; Text 5. Figure 6 The contents of the five types of copywriting shown in (3) are different from Figure 6 Further, the mobile phone responds again to the user clicking Figure 6 The operation of replacing the control 601 shown in (3) shows Figure 6 The interface shown in (4) is shown in the figure. Figure 6 As shown in (4), the five types of text displayed in the window 60 are switched to: text 6; text 7; text 8; text 9; and text 10. Figure 6 The contents of the five types of copywriting shown in (4) are different from Figure 6 The contents of the five types of text shown in (3).
[0164] It can be seen that based on the replacement control 601, it is possible to quickly switch to a variety of texts recommended for the picture, thereby providing users with more choices and improving the user experience.
[0165] The present application also provides a quick text switching control to achieve the function of quickly switching the text in the picture. Figure 7 The interface examples in are described in this article. Figure 7 , Figure 7 What is shown in FIG. 1 is an example diagram of an interface for quickly changing text in a picture.
[0166] In some embodiments, the mobile phone responds to the user clicking Figure 3A The thumbnail of the smart photo frame shown in (2) (e.g., smart photo frame 105-1) can be displayed Figure 7 The interface shown in (1) is shown in Figure 1. Figure 3A The interface shown in (3) Figure 7The interface shown in (1) not only includes the edit text control 107, but also adds a change control (or a change control) 701.
[0167] The phone responds to the user clicking Figure 7 The operation of replacing the control 701 shown in (1) shows Figure 7 The interface shown in (2) is shown in the figure. Figure 7 As shown in (2), compared with Figure 7 The text in picture 106 shown in (1) is A, and the text in picture 106-4 has been replaced with text B.
[0168] Further, the mobile phone responds again to the user clicking Figure 7 The operation of replacing the control 701 shown in (2) shows Figure 7 The interface shown in (3) is shown in the figure. Figure 7 As shown in (3), compared with Figure 7 The text in picture 106-4 shown in (2) is B, and the text in picture 106-5 has been replaced with text C.
[0169] It can be seen that based on the replacement control 701, it is also possible to quickly switch the text in the picture to improve the user experience.
[0170] In some embodiments, the font of the text added to the picture by the smart photo frame can be manually changed or adjusted. Figure 8 The examples in are described.
[0171] Exemplarily, the mobile phone responds to the user clicking Figure 5 Medium (2) or Figure 5 502 shown in (3), or, in response to the user clicking Figure 6 Medium (2) or Figure 6 Medium (3) or Figure 6 The font option 602 shown in (4) shows Figure 8 The interface shown in (1) is shown in the figure. Figure 8 The interface shown in (1) includes window 80 and picture 106. Window 80 currently displays settings or parameters related to font types. For example, window 80 includes icon 802-1 of Honor font, icon 802-2 of font type 1, and 14 other types of fonts. Among these 14 types of fonts, the font with a to-be-downloaded mark (for example, a downward arrow in the figure) in the icon indicates that the font is a cloud font. For example, font type 7, font type 9, and font type 11 are all fonts to be downloaded. Figure 8 In the picture 106 shown in (1), after the smart photo frame 105-1 is applied, the default font is Honor, which is the font corresponding to the icon 802-1.
[0172] In response to the user clicking on icon 802-2, the mobile phone displays Figure 8 The interface shown in (2) is shown in the figure. Figure 8 As shown in (2), the font type of the text in the picture 106-6 is the font type 1 corresponding to the icon 802-2. That is, after the user manually switches the font, the font type of the text in the picture will change accordingly.
[0173] In some embodiments, during the same picture editing process, if the user manually switches the font and then switches the border style, the font style will no longer be automatically matched. For example, assuming that the default font corresponding to smart photo frame A is font A, and the default font corresponding to smart photo frame B is font B, the user applies smart photo frame A during the editing of photo 1. If the user changes the font of the photo after applying smart photo frame A to font B when manually switching the font, then when the user selects smart photo frame B again, font B will no longer be automatically matched.
[0174] It is understandable that the fonts in the font library can usually be preset. Optionally, the fonts in the font library are usually free commercial fonts, and can also include extended font libraries, etc. The fonts in the font library include local fonts and cloud fonts. Cloud fonts can be understood as fonts stored in a cloud server. For cloud fonts, the mobile phone executes an operation of downloading the font in response to the user clicking on the cloud font operation.
[0175] For example, Figure 8 The font type 9 shown in (2) is a cloud font. In response to the user clicking the icon 802-3 corresponding to the font type 9, the mobile phone starts downloading the font type 9. During the font download process, the download process can be displayed through dynamic icons, such as: Figure 8 The icon 802-3 shown in (3) shows a loading icon, indicating that the font type 9 is being downloaded. After the font type 9 is downloaded, the font type 9 will be automatically applied to the text in the picture. Figure 8 The font type of the text in the picture 106-7 shown in (4) is consistent with the font type 9. In addition, after the font type 9 is downloaded, the icon 802-3 corresponding to the font type 9 no longer displays the waiting to be downloaded mark.
[0176] Understandably, Figure 8 The various font types shown in the figure are merely exemplary descriptions, and the embodiments of the present application are not limited thereto.
[0177] It should be noted that for different smart photo frames, when a user selects a smart photo frame to enter the font type editing page, except for the default font type of the smart photo frame, the other font types recommended to the user for the user to choose can be the same, and the sorting order of the recommended font types can also be the same. Figure 8 (1) shows that Figure 3A The edit text control 107 shown in (3) enters the font type recommendation page. If Figure 3B The edit text control 107 shown in (2) enters the font type recommendation page, and the content of the recommended font type can be Figure 8 The font content is the same as that shown in (1), and the arrangement order can also be the same as Figure 8 The order of the font types shown in (1) is the same.
[0178] Furthermore, for cloud fonts, if the user has already downloaded the font after selecting a smart photo frame, then when the user subsequently enters the font type recommendation page through other smart photo frames, there is no need to download it again, or in other words, the cloud font is already a local font. Figure 8 After the font type 9 shown in (3) is downloaded, when the user enters the font editing page again through the smart photo frame 105-2, the icon corresponding to the font type 9 no longer includes the pending download mark, that is, the font type 9 can be used directly.
[0179] In some embodiments, the style of the text added to the picture by the smart photo frame can be manually changed or adjusted. Fig. 9 The examples in are described.
[0180] Exemplarily, the mobile phone responds to the user clicking Figure 5 Medium (2) or Figure 5 3) or, in response to the user clicking Figure 6 Medium (2) or Figure 6 Medium (3) or Figure 6 The style option 603 shown in (4) shows Fig. 9 The interface shown in . Fig. 9 As shown in (1), the interface includes a window 90 and a picture 106. The window 90 currently displays setting items or parameters related to the font style. For example, the window 90 includes a font color setting control 901 and a font transparency adjustment control 902.
[0181] Fig. 9 The color corresponding to the font color setting control 901 shown in (1) can be understood as the default color after the smart photo frame 105-1 is applied. The user can change or manually adjust the color of the text in the picture 106 through the font color setting control 901. For example, in response to the user adjusting the font color setting control 901, the mobile phone displays the following Fig. 9 The interface shown in (2) in Figure 1. As you can see, compared to Fig. 9 The interface shown in (1) Fig. 9The color of the text in the picture 106 shown in (2) changes. It can be understood that the specific color cannot be indicated due to the limitation of black and white pictures. Fig. 9 The examples do not limit the protection scope of the embodiments of the present application, and the specific colors may be subject to actual implementation.
[0182] Fig. 9 The color corresponding to the font transparency adjustment control 902 shown in (1) can be understood as the default transparency parameter (e.g., 50) after the smart photo frame 105-1 is applied. The user can change or manually adjust the transparency of the text in the picture 106 through the font transparency adjustment control 902. For example, in response to the user adjusting the font transparency adjustment control 902, the mobile phone displays the following Fig. 9 The interface shown in (3) in Figure 1. As you can see, compared to Fig. 9 The interface shown in (1) Fig. 9 The transparency parameter of the text in the picture 106 shown in (3) changes, for example, the transparency parameter is 5.
[0183] It should be noted that for different smart photo frames, when a user selects a smart photo frame and enters the font style adjustment page of the text editing page, the controls displayed to the user for the user to adjust the font style independently may include color controls and / or transparency controls. Fig. 9 (1) shows that Figure 3A The edit text control 107 shown in (3) enters the font type recommendation page. If Figure 3B The edit text control 107 shown in (2) enters the font type recommendation page, and the recommended control for adjusting the font style can be used with Fig. 9 The controls are the same as those shown in (1).
[0184] It can be seen that based on Figure 8 as well as Fig. 9 In the interface example, users can flexibly choose to change the font and / or style of the text in the image to achieve the desired effect, which significantly improves the user experience.
[0185] Understandably, Figures 2 to 9 The interface diagram shown in the figure is only for ease of understanding, and is not intended to limit the embodiments of the present application to the examples shown in the figure. Figures 2 to 9 The examples in can be equivalently transformed to obtain more implementation methods.
[0186] Please refer to Fig.10 , is a schematic flow chart of a picture processing method provided in an embodiment of the present application. Fig.10 As shown, the method includes:
[0187] Step 910: In response to a first operation of the user, a first interface is displayed, wherein the first interface includes a first picture and a first display area, wherein the first display area includes at least a thumbnail of a first photo frame option.
[0188] For example, the first operation can be Figure 3A (1) The user clicks the photo frame control 102. The first interface is Figure 3A The first display area can be Figure 3A The thumbnail of the first photo frame option is Figure 3A A thumbnail of the smart photo frame 105 - 1 shown in ( 2 ) .
[0189] Step 920: In response to the user clicking on the thumbnail of the first photo frame option, a second interface is displayed, wherein the second interface includes a second picture; the second picture includes the first picture, the first photo frame, and the first text; the first text is located in the area corresponding to the first photo frame. The second picture can be understood as a picture generated after the first photo frame option is applied to the first picture.
[0190] Among them, the first photo frame is a border area displayed after the photo frame effect corresponding to the first photo frame option is applied to the first picture; the first accompanying text is text generated based on the content of the first picture; the font style of the first accompanying text is generated based on the style of the first photo frame; the font type of the first accompanying text corresponds to the first photo frame option.
[0191] For example, the second interface is Figure 3A The second picture is Figure 3A The first caption is the text in the gray filled area of the picture 106. The first photo frame is the gray filled area of the picture 106.
[0192] In the embodiment of the present application, by providing the function of a smart photo frame during the editing process of a picture, the smart text is combined with the photo frame, thereby realizing the rapid addition of text to the picture. Compared with the editing operation that can only add a photo frame or only add text, the smart photo frame of the embodiment of the present application intelligently generates text for the picture while adding the photo frame, thereby completing the text border effect picture efficiently and with high quality. Moreover, the style of the text automatically generated based on the content of the picture can be intelligently matched according to the content, color and border style of the picture, thereby ensuring the overall picture effect of the picture and enriching the visual experience.
[0193] Moreover, the caption in the picture in the embodiment of the present application is automatically generated based on the content of the picture (e.g., the screen content). Compared with the editing operation that can only add a photo frame or only add text, the smart photo frame in the embodiment of the present application can intelligently generate captions for the picture while adding a photo frame, thereby completing the text frame effect picture efficiently and with high quality.
[0194] In order to further enrich the user's editing experience, based on the smart photo frame, the embodiment of the present application also supports users to manually edit the text in the picture.
[0195] In some embodiments, optionally, the second interface further includes an editing control; and the method further includes:
[0196] In response to a user clicking on the editing control, a third interface is displayed, wherein the third interface includes the second image and a first window, wherein the first window includes a first option and a plurality of texts generated based on the first image, wherein the plurality of texts includes at least the first text and the second text;
[0197] In response to the user clicking on the second text, the first text in the second picture is replaced with the second text.
[0198] Exemplarily, the operation of the user clicking the edit control is Figure 5 (1) The user clicks the edit text control 107. The third interface is Figure 5 The first window is Figure 5 The first option is Figure 5 The second option is the smart text option 501 shown in (2). Figure 5 The font option 502 shown in (2) is shown in FIG. 5; the third option is Figure 5 The style option 503 shown in (2) is: Figure 5 The text in the picture shown in (2) is "Surrounded by green mountains and clear waters, a casual shot is a landscape." The second caption is Figure 5 The text in the window 50 shown in (2) is "A sky as tranquil as an oil painting".
[0199] In the page for editing the text, the electronic device can display multiple recommended texts to the user. If the user is not satisfied with the recommended text, the user can choose to change the recommended text. The embodiment of the present application provides a control for changing the recommended text to provide the user with more choices.
[0200] Optionally, the first window further includes a first change control; in response to a user clicking on the first change control, part or all of the multiple texts in the first window change.
[0201] For example, the first replacement control is Figure 6 (2) shows a change control 601. After the user clicks the change control 601, the recommended text in the window 60 changes.
[0202] If the user is not satisfied with the text generated in the picture after applying the smart photo frame, the text in the picture can be quickly replaced. The embodiment of the present application provides a control for quickly replacing the text in the picture.
[0203] Optionally, the second interface further includes a second change control; in response to the user clicking on the second change control, the text in the second image is changed to any text among the multiple texts except the first text.
[0204] For example, the second replacement control is Figure 7 The replacement control 701 described in (1).
[0205] If the user is not satisfied with the text type generated in the picture after applying the smart photo frame, then the user can choose to switch the text type in the picture. The embodiment of the present application provides a function of switching text types.
[0206] Optionally, the first window further includes a second option; the method further includes: in response to a user clicking on the second option, displaying a fourth interface, the fourth interface including the second picture and the second window, the second window including the first option, the second option and a plurality of font type icons, the plurality of font type icons including an icon of a first font type and an icon of a second font type; wherein the font type of the first accompanying text is the first font type;
[0207] In response to a user clicking on the icon of the second font type, the font type of the first accompanying text in the second picture is changed from the first font type to the second font type.
[0208] Exemplarily, the second window is Figure 8 The operation of the user clicking the icon of the second font type is the operation of the user clicking the icon 802-2.
[0209] It is understandable that the fonts in the font library may include local fonts and cloud fonts. If the user selects a cloud font, then the cloud font is downloaded to provide the user with more font options.
[0210] Optionally, the multiple font type icons further include an icon of a third font type, the icon of the third font type includes a to-be-downloaded flag, and the to-be-downloaded flag is used to indicate that the font corresponding to the third font type is in a to-be-downloaded state;
[0211] In response to a user clicking on the icon of the third font type, downloading the third font type, and displaying the icon of the third font type without the to-be-downloaded mark after the download is completed;
[0212] After the third font type is downloaded, the font type of the first accompanying text in the second picture is switched to the third font type.
[0213] For example, the icon for the third font type is Figure 8 Icon 802-3 shown in (2).
[0214] If the user is not satisfied with the text style generated in the picture after applying the smart photo frame, then the user can choose to adjust the text style in the picture. The embodiment of the present application provides a function of switching text styles.
[0215] Optionally, the first window further includes a third option; the method further includes: in response to a user clicking on the third option, displaying a sixth interface, the sixth interface including the second picture and a third window, the third window including the first option, the second option, the third option and controls for parameters related to the font style, the parameters related to the font style at least including a color control and / or a transparency control;
[0216] In response to the user adjusting the color control, the font color of the first accompanying text in the second picture is changed from a first color to a second color;
[0217] In response to the user's operation of adjusting the transparency control, the font transparency of the first text in the second picture is changed from a first transparency to a second transparency.
[0218] For example, the sixth interface is Fig. 9 The third window is Fig. 9 Window 90 shown in (1). The color control is Fig. 9 The control 901 shown in (1) is Fig. 9 Control 902 shown in (1).
[0219] It is understandable that the embodiments of the present application can provide more smart photo frame options for users to choose from.
[0220] Optionally, the first display area further includes a thumbnail of a second photo frame option, wherein the second photo frame option and the first photo frame option are different photo frame options;
[0221] In response to a user clicking on the thumbnail of the second photo frame option, a fifth interface is displayed, and the fifth interface includes a third picture; the third picture is a picture generated after the second photo frame option is applied to the first picture, and the third picture includes the first picture, a second photo frame and a third text; the second photo frame is different from the first photo frame; the third text is located in an area corresponding to the second photo frame; the font type and / or font style of the third text is different from that of the first text.
[0222] Optionally, the third text has the same or different content from the first text.
[0223] In other words, the difference between the third picture and the second picture includes one or more of the following: the first text and the second text correspond to different font types; the first photo frame and the second photo frame are different; the first text and the second text correspond to different font styles; the first text and the second text have different contents.
[0224] Optionally, the first photo frame option is different from the second photo frame option, which is reflected in one or more of the following: the first photo frame option and the second photo frame option correspond to different photo frame effects; the first photo frame option and the second photo frame option correspond to different font types; the first photo frame option and the second photo frame option correspond to different font styles.
[0225] In order to better distinguish between ordinary photo frames and the smart photo frame of the embodiment of the present application, an identifier may be added to the thumbnail icon of the smart photo frame so that the user can quickly find the smart photo frame.
[0226] Optionally, the thumbnail of the first photo frame option includes a first identifier, which is used to identify the smart text photo frame; the first display area also includes a thumbnail of a third photo frame option, which does not include the first identifier.
[0227] For example, the first identifier is Figure 3A The third photo frame option has a thumbnail of 11, or AI logo, as shown in (2). Figure 3A The photo frame 105-3 shown in (2).
[0228] Optionally, in response to the user clicking on the thumbnail of the third photo frame option, a seventh interface is displayed, the seventh interface including a third picture, the third picture including the first picture and the third photo frame. That is, after selecting the ordinary photo frame, the picture generated after applying the ordinary photo frame does not include text.
[0229] Optionally, before displaying the second interface, the method further includes: displaying a scanning animation effect, the scanning animation effect including at least one picture frame, each picture frame including the first picture and a scanning line.
[0230] For example, some frames of the scan animation effect are Figure 4 The picture frame shown in .
[0231] Optionally, the first photo frame includes an upper frame area, a lower frame area, a left frame area and a right frame area; and the size specifications of each frame area of the first photo frame are determined based on a preset rule.
[0232] Optionally, the filling values of the upper border area, the left border area and the right border area are a first proportion of the width of the second image; and the filling value of the lower border area is a second proportion of the width of the second image.
[0233] For example, the specifications of the first photo frame are Figure 3A The area corresponding to the gray filled area in the picture 106 shown in (3).
[0234] Fig.11 1 is a schematic diagram of the software structure of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into five layers, from top to bottom, namely, the application (APP) layer, the application framework layer (abbreviated as FWK), the system library and the kernel layer.
[0235] The application layer can include a series of application packages. For example, Fig.11 As shown, the application layer includes a camera application and a gallery application.
[0236] It is understandable that the application layer may also include other applications, such as calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, browser, WeChat, Alipay, Taobao and other applications.
[0237] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions.
[0238] It can be understood that the application framework layer may also include other contents, such as a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
[0239] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, and capture the screen.
[0240] Content providers are used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, and phone books.
[0241] The view system includes visual controls, such as controls for displaying text and controls for displaying pictures. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying pictures. The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0242] like Fig.11 As shown, the system library may include camera service functionality.
[0243] The system library may also include multiple functional modules, such as: a surface manager, a media library, a 3D graphics processing library (such as: an open graphics library for embedded systems (OpenGL ES)) and a 2D graphics engine (such as: the skia graphics library (SGL)).
[0244] The surface manager is used to manage the display subsystem and provide the fusion of 2D layers and 3D layers for multiple applications.
[0245] The media library supports playback and recording of multiple audio formats, playback and recording of multiple video formats, and still image files. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, moving picture experts group audio layer III (MP3), advanced audio coding (AAC), adaptive multi-rate (AMR), joint photographic experts group (JPG) and portable network graphics (PNG).
[0246] The 3D graphics processing library can be used to implement 3D graphics drawing, image rendering, compositing and layer processing.
[0247] A 2D graphics engine is a drawing engine for 2D drawings.
[0248] The kernel layer is the layer between hardware and software. Fig.11 As shown, the kernel layer may include driver modules such as display driver and camera driver. Among them, the camera driver is the driver layer of the camera device, which is mainly responsible for the interaction with the hardware.
[0249] Exemplarily, the gallery application in the application layer receives a viewing operation triggered by a user, the viewing operation being used to view the photo with the frame added, and the gallery application displays the photo on a display screen by calling a display driver.
[0250] As can be seen from the above, the image processing method provided by this application adds an entry for the "smart photo frame" function in the gallery application. By combining smart text with the photo frame, it is possible to quickly add text to the image; and it can intelligently match the style of the text according to the content, color, and border style of the image. In addition, the text automatically generated according to the content of the image supports users to switch quickly, and the text border effect image is completed efficiently and with high quality, greatly improving the user experience.
[0251] The embodiment of the present application provides a chip system, which includes one or more processors for calling and running instructions stored in the memory from the memory, so that the method of the embodiment of the present application is executed. The chip system can be composed of chips, or it can include chips and other discrete devices.
[0252] Among them, the chip system may include an input circuit or interface for sending information or data, and an output circuit or interface for receiving information or data.
[0253] The present application also provides a computer program product, which, when executed by a processor, implements the method described in any method embodiment of the present application.
[0254] The computer program product can be stored in a memory, and is finally converted into an executable target file that can be executed by a processor after preprocessing, compiling, assembling and linking.
[0255] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method described in any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.
[0256] The computer-readable storage medium may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM).
[0257] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.
[0258] In several embodiments provided in the present application, the disclosed systems, devices and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not performed. The device embodiments described above are merely schematic, and the division of units is only a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.
[0259] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0260] In addition, the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0261] The terms (or numbers) "first", "second", ..., etc. that appear in the embodiments of the present application are only used for descriptive purposes, that is, only to distinguish different objects, such as different "pictures", etc., and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first", "second", ..., etc. may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, "at least one (item)" refers to one or more. "Multiple" means two or more. "At least one of the following (items)" or similar expressions thereof refers to any combination of these items, including any combination of a single (item) or a plurality of (items).
[0262] In short, the above is only a preferred embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in the protection scope of this application.
Claims
1. A method for image processing, characterized in that: include: In response to a first operation of the user, displaying a first interface, the first interface including a first picture and a first display area, the first display area including at least a thumbnail of a first photo frame option; In response to a user clicking on the thumbnail of the first photo frame option, a second interface is displayed, the second interface including a second picture; the second picture includes the first picture, the first photo frame and the first text; the first text is located in an area corresponding to the first photo frame.
2. The method according to claim 1, characterized in that The second interface also includes an editing control; the method also includes: In response to a user clicking on the editing control, a third interface is displayed, wherein the third interface includes the second image and a first window, wherein the first window includes a first option and a plurality of texts generated based on the first image, wherein the plurality of texts includes at least the first text and the second text; In response to the user clicking on the second text, the text in the second picture is replaced with the second text.
3. The method according to claim 2, characterized in that The first window also includes a first change control; In response to the user clicking the first change control, part or all of the multiple texts in the first window change.
4. The method according to any one of claims 1 to 3, characterized in that The second interface also includes a second change control; In response to the user clicking the second change control, the caption in the second image is replaced with any caption among the multiple captions except the first caption.
5. The method according to any one of claims 2 to 4, characterized in that The first window also includes a second option; the method also includes: In response to the user clicking the second option, a fourth interface is displayed, wherein the fourth interface includes the second picture and a second window, wherein the second window includes the first option, the second option, and a plurality of font type icons, wherein the plurality of font type icons include an icon of a first font type and an icon of a second font type; wherein the font type of the first accompanying text is the first font type; In response to a user clicking on the icon of the second font type, the font type of the first accompanying text in the second picture is changed from the first font type to the second font type.
6. The method according to claim 5, characterized in that The multiple font type icons further include an icon of a third font type, the icon of the third font type includes a to-be-downloaded flag, and the to-be-downloaded flag is used to indicate that the font corresponding to the third font type is in a to-be-downloaded state; The method further comprises: In response to a user clicking on the icon of the third font type, downloading the third font type; After the download is completed, the icon of the third font type in the second window does not include the to-be-downloaded mark; After the third font type is downloaded, the font type of the first accompanying text in the second picture is switched to the third font type.
7. The method according to any one of claims 2 to 6, characterized in that The first window also includes a third option; the method also includes: In response to the user clicking the third option, a sixth interface is displayed, wherein the sixth interface includes the second picture and a third window, wherein the third window includes the first option, the second option, the third option, and controls for parameters related to the font style, wherein the parameters related to the font style include at least a color control and / or a transparency control; In response to the user adjusting the color control, the font color of the first accompanying text in the second picture is changed from a first color to a second color; In response to the user's operation of adjusting the transparency control, the font transparency of the first text in the second picture is changed from a first transparency to a second transparency.
8. The method according to any one of claims 1 to 7, characterized in that The first display area also includes a thumbnail of a second photo frame option, wherein the second photo frame option and the first photo frame option are different photo frame options; the method further includes: In response to a user clicking on the thumbnail of the second photo frame option, a fifth interface is displayed, wherein the fifth interface includes a third picture; the third picture includes the first picture, a second photo frame, and a third text; the second photo frame is different from the first photo frame; the third text is located in an area corresponding to the second photo frame; the third text has a different font type and / or font style from the first text.
9. The method according to claim 8, characterized in that The content of the first accompanying text is the same as or different from the content of the third accompanying text.
10. The method according to any one of claims 1 to 9, characterized in that The thumbnail of the first photo frame option includes a first identifier, which is used to identify the smart text photo frame; the first display area also includes a thumbnail of a third photo frame option, which does not include the first identifier.
11. The method according to claim 10, characterized in that The method further comprises: In response to the user clicking on the thumbnail of the third photo frame option, a seventh interface is displayed, wherein the seventh interface includes a third picture, and the third picture includes the first picture and a third photo frame.
12. The method according to any one of claims 1 to 11, characterized in that The first photo frame is a border area displayed after the photo frame effect corresponding to the first photo frame option is applied to the first picture; the first accompanying text is text generated based on the content of the first picture; the font style of the first accompanying text is generated based on the style of the first photo frame; the font type of the first accompanying text corresponds to the first photo frame option.
13. The method according to any one of claims 1 to 12, characterized in that Before displaying the second interface, the method further includes: A scanning animation effect is displayed, where the scanning animation effect includes at least one picture frame, and each picture frame includes the first picture and a scanning line.
14. The method according to any one of claims 1 to 13, characterized in that The first photo frame includes an upper frame area, a lower frame area, a left frame area and a right frame area; the size specifications of each frame area of the first photo frame are determined based on a preset rule.
15. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the processor and the memory are coupled, and the memory is used to store a computer program. When the computer program is executed by the processor, the electronic device executes the method according to any one of claims 1 to 14.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the electronic device executes the method according to any one of claims 1 to 14.
17. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 14.