A processing method and apparatus, electronic device, and storage medium

By dynamically adjusting the combination of functional modules based on file type, source, and data content, the problem of complex operation in existing technologies is solved, and the user experience of quickly finding the target function is improved.

CN117519819BActive Publication Date: 2026-07-03LENOVO (BEIJING) LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LENOVO (BEIJING) LTD
Filing Date
2023-10-30
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In existing technologies, multiple operations are required to find the target function for the same type of files, resulting in complex and time-consuming operations that negatively impact user experience.

Method used

By determining factors such as the category, source, and data content of the target file, the combination of target functional modules is dynamically adjusted, and the launchers of functional modules that match the file are displayed, thereby improving the accuracy and relevance of the module combination.

Benefits of technology

It shortens the time required to find the target function, reduces the complexity of operation, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117519819B_ABST
    Figure CN117519819B_ABST
Patent Text Reader

Abstract

This disclosure provides a processing method, apparatus, electronic device, and storage medium. The method includes: obtaining a target file; determining a target functional module combination based on the target file, wherein the target functional module combination belongs to a set of functional modules of a target application, and the target functional module combination is a part of the set of functional modules; and displaying a launcher for initiating target functional modules in the set of target functional modules while displaying the data content of the target file; wherein, if the target file is a first file, the target functional module combination is a first functional module combination; if the target file is a second file different from the first file, the target functional module combination is a second functional module combination; the first file and the second file are of the same category, and the first functional module combination and the second functional module combination are different.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to, but is not limited to, the field of electronic technology, and in particular to a processing method and apparatus, electronic equipment, and storage medium. Background Technology

[0002] In related technologies, the same function is displayed for files of the same category in the target application, requiring multiple operations to find the target function. This results in complex operations, long processing times, and negatively impacts the user experience. Summary of the Invention

[0003] This disclosure provides at least one processing method and apparatus, an electronic device, and a storage medium.

[0004] The technical solution of this disclosure embodiment is implemented as follows:

[0005] This disclosure provides a processing method, the method comprising:

[0006] Obtain the target file;

[0007] Based on the target file, a target functional module combination is determined. The target functional module combination belongs to the functional module set of the target application, and the target functional module combination is a part of the functional module set.

[0008] During the process of displaying the data content of the target file, a launcher for invoking the target function modules in the target function module combination is displayed;

[0009] Wherein, if the target file is a first file, the target functional module combination is a first functional module combination;

[0010] If the target file is a second file that is different from the first file, the target functional module combination is a second functional module combination;

[0011] The first file and the second file are of the same category, but the first combination of functional modules is different from the second combination of functional modules.

[0012] This disclosure provides a processing apparatus, the apparatus comprising:

[0013] The acquisition module is used to obtain the target file;

[0014] The determining module is used to determine a target functional module combination based on the target file, wherein the target functional module combination belongs to the functional module set of the target application, and the target functional module combination is a part of the functional module set;

[0015] The display module is used to display the data content of the target file and, in the process, to display the launcher used to invoke the target function module in the target function module combination;

[0016] Wherein, if the target file is a first file, the target functional module combination is a first functional module combination; if the target file is a second file different from the first file, the target functional module combination is a second functional module combination; the first file and the second file are of the same category, but the first functional module combination and the second functional module combination are different.

[0017] This disclosure provides an electronic device including a processor and a memory, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the above-described method.

[0018] This disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method.

[0019] This disclosure provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements the above-described method.

[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the specification, serve to illustrate the technical solutions of this disclosure.

[0022] Figure 1 A schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure;

[0023] Figure 2 A schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure;

[0024] Figure 3 A schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure;

[0025] Figure 4 A schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure;

[0026] Figure 5 A schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure;

[0027] Figure 6A A schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure;

[0028] Figure 6B A schematic diagram of an image editing interface provided in an embodiment of this disclosure;

[0029] Figure 6C A schematic diagram of an image editing interface provided in an embodiment of this disclosure;

[0030] Figure 7 This is a schematic diagram of the composition structure of a processing device provided in an embodiment of the present disclosure;

[0031] Figure 8 This is a schematic diagram of the hardware entity of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0032] To make the objectives, technical solutions, and advantages of this disclosure clearer, the disclosure will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this disclosure. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0033] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0034] In the following description, the terms “first, second, third” are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that “first, second, third” may be interchanged in a specific order or sequence where permitted, so that the embodiments of this disclosure described herein can be implemented in an order other than that illustrated or described herein.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for descriptive purposes only.

[0036] The method provided in this disclosure can be executed by an electronic device, which can be a laptop, tablet, desktop computer, mobile device (e.g., mobile phone, portable music player, personal digital assistant, dedicated messaging device, portable gaming device), and other types of terminals.

[0037] The technical solutions in the embodiments of this disclosure will now be clearly and completely described with reference to the accompanying drawings.

[0038] Figure 1 This is a schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure, as shown below. Figure 1 As shown, the method includes steps S11 to S13, wherein:

[0039] Step S11: Obtain the target file.

[0040] Here, the target file can be any suitable file, such as an image, video, or document. In implementation, the target file can be obtained through any suitable method, such as a file selected by the user, a file sent by another device, or a file captured by an electronic device. In some implementations, the number of target files can be at least one.

[0041] Step S12: Based on the target file, determine the target functional module combination, which belongs to the functional module set of the target application and is a part of the functional module set; wherein, if the target file is a first file, the target functional module combination is a first functional module combination; if the target file is a second file different from the first file, the target functional module combination is a second functional module combination; the first file and the second file are of the same category, and the first functional module combination and the second functional module combination are different.

[0042] Here, the target application can be any suitable application capable of manipulating the target file. For example, for images, the target application can include, but is not limited to, image viewers, multimedia editors, and other applications that manipulate images. In some implementations, the target application can be an application that operates on all types of target files, or an application that operates on at least one type of target file.

[0043] The functional module set includes multiple functional modules, and this functional module set is the collection of all functional modules in the target application.

[0044] The target functional module combination includes at least one functional module, and each functional module can be a commonly used functional module. This target functional module combination can be a first functional module combination, a second functional module combination, other functional module combinations, etc. Different functional module combinations differ from one another. In some embodiments, the differences between these different functional module combinations may be that each functional module combination contains a different number of functional modules, each functional module combination contains at least one different functional module, and / or the functional modules in each functional module combination have different priorities. Different files correspond to different target functional module combinations.

[0045] In some implementations, each target functional module in the target functional module combination is a plurality of functional modules located at different levels. For example, the target functional module combination includes functional module 1, functional module 2 and functional module 31, wherein functional module 1, functional module 2 and functional module 3 are located at the same level, and functional module 31 is a sub-functional module of functional module 3.

[0046] In some implementations, each target functional module in the target functional module combination is a plurality of functional modules located at the same level.

[0047] The first / second functional module combination (and other functional modules mentioned later) also includes at least one functional module. The first functional module combination and the second functional module combination are different in that they contain different numbers of functional modules, contain at least one different functional module, and / or the functional modules in the two functional module combinations have different priorities.

[0048] For example, the first functional module combination includes functional module 1 and functional module 2, and the second functional module combination includes functional module 2, functional module 3 and functional module 4.

[0049] For example, both the first and second functional module combinations include functional modules 1 to 4. The priority of each functional module in the first functional module combination is: functional module 1 > functional module 2 > functional module 4 > functional module 3, while the priority of each functional module in the second functional module combination is: functional module 4 > functional module 3 > functional module 2 > functional module 1.

[0050] In some implementations, files can be categorized based on at least one of the following: usage scenario, source, file format, etc. In practice, those skilled in the art can categorize files and the number of file categories according to actual needs; this disclosure does not impose any limitations.

[0051] For example, files can be categorized by file format, such as multimedia files and office files. Multimedia files can include images, videos, and audio files. Office files can be Word, Excel, PowerPoint, or TXT files.

[0052] For example, files can be categorized into at least two types based on their source, such as a first source and a second source. In some embodiments, the first source indicates that the file originates from an electronic device, such as being acquired by a capture device or generated locally. The second source indicates that the file originates from a non-electronic device, such as being generated or acquired by another device. In some embodiments, the first source indicates that the file originates from a first obtaining device, which is a device that generates an image based on ambient light sensing information, such as a camera device. The second source indicates that the file originates from a second obtaining device, which is a device that generates an image based on content displayed on a screen, such as a screenshot application.

[0053] In some implementations, the target file may include, but is not limited to, a first file, a second file, etc. The first file and the second file are files of the same category. The difference between the first file and the second file may be at least one of the following: the data content they contain, their source, or the category of the display content used for screen display. The difference in data content may be due to the presence of different types of data and / or the number of different data types. For example, the first file may contain only text, while the second file may contain both text and images. The category of the display content can be any suitable category; for example, the category may include, but is not limited to, text, images, video, and audio.

[0054] In some implementations, the first file and the second file may be the same file, but the content displayed on the screen in the first file and the second file may differ. This difference in content may be due to differences in category, the number of categories included, etc. For example, the first file may be used for displaying text, while the second file may be used for displaying both text and video. In some implementations, the first file may be the file in its original state, and the second file may be the file from the last closed state, wherein the content displayed on the screen in the first file and the second file differs.

[0055] In some implementations, the first file and the second file may be two files of the same category, but at least one of the following is different: the data content contained in the first file and the second file, the source of the data, the category of the display content used for screen display, etc.

[0056] In some implementations, the target functional module combination can be determined based on at least one of the following: the data content contained in the target file, its source, and the display content used for screen display. For example, if the source of the target file is a first obtaining device, the target functional module combination is a first functional module combination; if the source of the target file is a second obtaining device, the target functional module combination is a second functional module combination. As another example, if the data content contained in the target file includes data of the same type, the target functional module combination is a first functional module combination; if the data content contained in the target file includes data of different types, the target functional module combination is a second functional module combination.

[0057] Step S13: During the process of displaying the data content of the target file, the launcher used to activate the target function module in the target function module combination is displayed.

[0058] Here, the launcher can be any suitable component that can receive operations, such as icons, buttons, etc.

[0059] In some implementations, if the target functional module combination includes multiple functional modules at different levels, the functional module can be displayed, or both the functional module and its ancestor functional modules can be displayed simultaneously. For example, if the target functional module combination includes functional module 1, functional module 211, and functional module 3, where functional module 1, functional module 2, and functional module 3 belong to the same level, and functional module 211 is a sub-functional module of functional module 21, and functional module 21 is a sub-functional module of functional module 2, then functional module 1, functional module 211, and functional module 3 can be displayed, or functional module 1, functional module 2, and functional module 3 can be displayed, with functional module 211 displayed around functional module 2.

[0060] In some implementations, the layout of each target functional module in the target functional module combination can be determined based on the attribute information of the target functional module combination. This attribute information may include, but is not limited to, the number of functional modules in the target functional module combination and the hierarchical information of each functional module. The layout may include, but is not limited to, display size, display position, and display order.

[0061] In some implementations, the launcher of the first target functional module in the target functional module combination can be displayed separately. The first target functional module can be the first functional module, the most frequently used functional module, a user-defined functional module, the last used functional module, etc. The distinguishing display can be done in any suitable way, such as highlighting, selecting, or adding a box.

[0062] In some implementations, when the first target functional module has at least one sub-functional module, a combination of target sub-functional modules may be displayed around the first target functional module. This combination of target sub-functional modules is determined from the at least one sub-functional module according to the priority of each sub-functional module. The priority of each sub-functional module can be determined in any suitable way, such as at least one of the following: frequency of use, user preference, name, usage duration, etc.

[0063] In this embodiment of the disclosure, different files of the same category have different combinations of target functional modules. Compared with multiple files of the same category having the same combination of functional modules, this improves the accuracy and relevance of the combination of target functional modules, so that users can quickly find the target function that matches the target file, shorten the time for finding the target function, reduce the complexity of operation, and thus improve the user's operating experience.

[0064] Figure 2 This is a schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure, as shown below. Figure 2 As shown, the method includes steps S21 to S25, wherein:

[0065] Step S21: Obtain the target file.

[0066] Here, step S21 corresponds to step S11 mentioned above. When implementing it, you can refer to the specific implementation of step S11 mentioned above.

[0067] Step S22: Obtain the first target parameter of the target file used to characterize the category.

[0068] Here, the first target parameter is used to characterize the category of the target file. The category of the target file can be determined based on at least one of the following: usage scenario, source, file format, etc. The first target parameter includes at least one category. For example, if all files are divided according to different sources, then the category of all files includes the source category. Or, for another example, if all files are initially divided according to different sources, and then further divided according to the file format of all files, then the category of each file includes both the source category and the file format category.

[0069] The methods for obtaining the first target parameter can include, but are not limited to, determination by the electronic device, transmission from other devices, or selection by the user. For example, a correspondence between different files and multiple first target parameters can be pre-established. Then, through this correspondence, the first target parameter matching the target file can be obtained. This can shorten the determination time of the first target parameter for the target file. Another example is receiving the first target parameter transmitted by other devices. Yet another example is obtaining the first target parameter selected by the user in the interface.

[0070] Step S23: Based on the first target parameter, determine the target set, wherein the functional modules included in the target set are used to change the display effect of the data content of the target file.

[0071] Here, the target set includes multiple functional modules. This target set belongs to the set of functional modules of the target application. The target set may include, but is not limited to, a first set, a second set, etc. The first set differs from the second set, which may be because the two sets contain different numbers of functional modules, and / or the two sets contain at least one different functional module. The target set may include, but is not limited to, combinations of first functional modules, combinations of second functional modules, etc.

[0072] Since the display effect is adapted to the data content, the functional modules included in the target set are also adapted to the data content. For example, if the data content includes text, then the target set may include functional modules that change the display effect of the text, such as text size, text background color, text bolding, text color, etc.; if the data content includes images, then the target set may include, but is not limited to, functional modules that change the display effect of the images, such as cropping, brightness adjustment, scaling, filters, enhancement, mosaic, annotation, etc.

[0073] In some embodiments, step S23 includes step S231 and / or step S232, wherein:

[0074] Step S231: If the first target parameter indicates that the target file is a first category, determine the target set as the first set.

[0075] Here, the first category may include at least one category, for example, the first category includes at least one of the following: source category, file format category, use case category, etc.

[0076] The first set includes functional modules used to change the display effect of the data content of the target file. This first set includes at least one functional module. This first set is adapted to this first category.

[0077] For example, if the first category includes a source category, and if the source category indicates that the target file is a first source, then the first set is determined from multiple functional modules corresponding to the first source; if the source category indicates that the target file is a second source, then the first set is determined from multiple functional modules corresponding to the second source.

[0078] For example, if the first category includes a source category and a file format category, and if the source category indicates that the target file is a first source and the file format category is a first format, then the first set is determined from multiple functional modules that are in the first source and belong to the first format; if the source category indicates that the target file is a first source and the file format category is a second format, then the first set is determined from multiple functional modules that are in the first source and belong to the second format; if the source category indicates that the target file is a second source and the file format category is a first format, then the first set is determined from multiple functional modules that are in the second source and belong to the first format. The first format and the second format are different.

[0079] In some implementations, the first set is determined according to the priority of the corresponding multiple functional modules. The priority of each functional module can be determined in any suitable way, such as at least one of the following: frequency of use, user preference, name, usage duration, etc.

[0080] Step S232: If the first target parameter indicates that the target file is a second category different from the first category, determine the target set as the second set.

[0081] Here, the second category may include at least one category, such as a source category, a file format category, a usage scenario category, etc. In some embodiments, the second category may differ from the first category by being two categories within the same category, two categories within different categories, or having a different number of categories. For example, both the first and second categories may include a source category, wherein the source category in the first category indicates that the target file originates from a first obtaining device (corresponding to the aforementioned first source), and the source category in the second category indicates that the target file originates from a second obtaining device (corresponding to the aforementioned second source).

[0082] The functional modules included in the second set are used to change the display effect of the data content of the target file. The second set differs from the first set in at least some aspects. In implementation, the method for determining the second set is similar to that for determining the first set; however, the method for determining the first set in step S231 described above can be referred to during implementation.

[0083] Step S24: Based on the target set and the target file, determine the target functional module combination, wherein the target functional module combination belongs to the functional module set of the target application, and the target functional module combination is a part of the functional module set; wherein, if the target file is a first file, the target functional module combination is a first functional module combination; if the target file is a second file different from the first file, the target functional module combination is a second functional module combination; the first file and the second file are of the same category, the first functional module combination and the second functional module combination are different, and the first functional module combination and the second functional module combination belong to the target set.

[0084] Here, the target functional module combination belongs to the target set. The method for determining the target functional module combination can be found in the specific implementation of step S12 above.

[0085] In some implementations, the target functional module combination can be determined from the target set based on at least one of the data content contained in the target file, its source, the type of display content used for screen display, etc.

[0086] For example, when the first target parameter of the target file indicates that the category of the target file is a first source (corresponding to the aforementioned source category), the set of functional modules corresponding to the first source is selected from the set of functional modules in the target application as the target set; then, based on the data content contained in the target file and / or the category of the display content used for screen display, the target functional module combination is determined from the target set. For example, if the data content contained in the target file is all text, the target functional module combination can be determined from multiple functional modules corresponding to text in the target set; if the data content contained in the target file is text + image, then the target functional module combination can be determined from multiple functional modules corresponding to text and multiple functional modules corresponding to images in the target set.

[0087] For example, when the first target parameter of the target file indicates that the target file's category is an image (corresponding to the aforementioned file format category), the set of functional modules corresponding to the image is selected from the set of functional modules in the target application as the target set. Then, based on the image's source, the data content it contains, and / or the category of the display content used for screen display, the target functional module combination is determined from the target set. For instance, if the image's source indicates that the image originates from a first obtaining device, then the target functional module combination can be determined from the multiple functional modules in the target set corresponding to the first obtaining device; if the image indicates that the image originates from a second obtaining device, then the target functional module combination can be determined from the multiple functional modules in the target set corresponding to the second obtaining device.

[0088] Step S25: During the process of displaying the data content of the target file, a launcher for invoking the target function module in the target function module combination is displayed.

[0089] Here, step S25 corresponds to step S13 mentioned above. In implementation, please refer to the specific implementation of step S13 mentioned above.

[0090] In this embodiment, firstly, a target set for changing the display effect is determined based on the category of the target file, improving the accuracy and relevance of the target function set. Secondly, the target function module combination is determined from the target function set, which narrows the scope and improves efficiency compared to determining the target function module combination from the function module set of the target application. Finally, by determining different target function module combinations for multiple files of the same category according to different files, the accuracy and relevance of the target function module combination are improved compared to multiple files of the same category having the same function module combination. This allows users to quickly find the target function that matches the target file, shortens the target function search time, reduces the complexity of operation, and thus improves the user experience. At the same time, it also narrows the scope of determining the target function module combination, thereby improving processing efficiency.

[0091] Figure 3 This is a schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure, as shown below. Figure 3 As shown, the method includes steps S31 to S33, wherein:

[0092] Step S31: Obtain the target file.

[0093] Here, step S31 corresponds to step S11 mentioned above. When implementing it, you can refer to the specific implementation of step S11 mentioned above.

[0094] Step S32: Based on the second target parameter of the target file used to characterize the source, determine the target functional module combination, wherein the target functional module combination belongs to the functional module set of the target application, and the target functional module combination is a part of the functional module set; wherein, if the second target parameter characterizes the source of the target file as a first obtaining device, the target functional module combination is a first functional module combination; if the second target parameter characterizes the source of the target file as a second obtaining device, the target functional module combination is a second functional module combination; the first obtaining device is a device for generating an image based on ambient light sensing information; the second obtaining device is a device for generating an image based on display content for the screen; the first functional module combination and the second functional module combination are different.

[0095] Here, the second target parameter characterizes the source of the target file. Different sources correspond to different combinations of target functional modules. The first / second acquisition device can be any suitable device capable of implementing this function; for example, the first acquisition device can be a camera, and the second acquisition device can be a screen controller.

[0096] The first and second functional module combinations are different because they contain different numbers of functional modules, contain at least one different functional module, and / or the functional modules in the two functional module combinations have different priorities.

[0097] For example, when the target file is an image, if the image indicates that it originates from a first acquiring device, then the first functional module combination is determined from multiple functional modules originating from the first acquiring device; if the image indicates that it originates from a second acquiring device, then the second functional module combination is determined from multiple functional modules originating from the second acquiring device. The first / second functional module combination is determined based on the priority of the corresponding multiple functional modules, and the priority of each functional module can be determined in any suitable way, such as at least one of the following: usage frequency, user preference, name, usage duration, etc.

[0098] Step S33: During the process of displaying the data content of the target file, the launcher used to activate the target function module in the target function module combination is displayed.

[0099] Here, step S33 corresponds to step S13 mentioned above. When implementing it, you can refer to the specific implementation of step S13 mentioned above.

[0100] In this embodiment of the disclosure, by determining different combinations of target functional modules for different files of the same category according to the source of the files, the accuracy and relevance of the combination of target functional modules are improved compared to multiple files of the same category having the same combination of functional modules. This allows users to quickly find the target function that matches the target file, shortens the search time for the target function, reduces the complexity of the operation, and thus improves the user's operating experience.

[0101] Figure 4 This is a schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure, as shown below. Figure 4 As shown, the method includes steps S41 to S43, wherein:

[0102] Step S41: Obtain the target file.

[0103] Here, step S41 corresponds to step S11 mentioned above. When implementing it, you can refer to the specific implementation of step S11 mentioned above.

[0104] Step S42: Based on the data content of the target file, determine the target functional module combination, which belongs to the functional module set of the target application and is a part of the functional module set; wherein, if the data content includes data of the same type, the target functional module combination is a first functional module combination; if the data content includes data of different types, the target functional module combination is a second functional module combination; the first functional module combination and the second functional module combination are different.

[0105] Here, the data content can include at least one type. For example, text, images, videos, audio, etc.

[0106] The first functional module combination includes at least one functional module that operates on data content of the same type. The first functional module combination is adapted to the type of the data content. For example, if the data content only includes text, then the first functional module combination is determined from multiple functional modules for text; if the data content only includes images, then the first functional module combination is determined from multiple functional modules for images.

[0107] The second functional module combination includes at least one functional module for operating on different types of data content. The second functional module combination is adapted to the type of data content. For example, if the data content includes text and images, then the second functional module combination is determined from multiple functional modules for text and multiple functional modules for images; if the data content includes text and video, then the second functional module combination is determined from multiple functional modules for text and multiple functional modules for video.

[0108] In some implementations, the combination of the first / second functional modules is determined based on the priority of the corresponding multiple functional modules. The priority of each functional module can be determined in any suitable way, such as at least one of the following: number of uses, user preference, name, usage duration, etc.

[0109] Step S43: During the process of displaying the data content of the target file, the launcher used to activate the target function module in the target function module combination is displayed.

[0110] Here, step S43 corresponds to step S13 mentioned above. When implementing it, you can refer to the specific implementation of step S13 mentioned above.

[0111] In this embodiment of the disclosure, different combinations of target functional modules are determined according to the type of data content of the file. Compared with multiple files of the same category having the same combination of functional modules, the accuracy and relevance of the combination of target functional modules are improved, so that users can quickly find the target function that matches the target file, shorten the search time for the target function, reduce the complexity of the operation, and thus improve the user's operating experience.

[0112] Figure 5 This is a schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure, as shown below. Figure 5 As shown, the method includes steps S51 to S54, wherein:

[0113] Step S51: Obtain the target file.

[0114] Here, step S51 corresponds to step S11 mentioned above. When implementing it, you can refer to the specific implementation of step S11 mentioned above.

[0115] Step S52: Obtain the first display content of the target file for screen display.

[0116] Here, the first displayed content is at least a portion of the target file. The first displayed content can be obtained in any suitable way, such as by an electronic device reading the target file, or by other devices sending it.

[0117] Step S53: Based on the category of the first displayed content, determine the target functional module combination, wherein the target functional module combination belongs to the functional module set of the target application, and the target functional module combination is a part of the functional module set.

[0118] The category of the first displayed content can include at least one category. For example, text, images, video, audio, etc. The target functional module combination is adapted to the category of the first displayed content.

[0119] For example, if the category of the first displayed content includes text, then the target functional module combination is determined from multiple functional modules of the text; if the category of the first displayed content includes an image, then the target functional module combination is determined from multiple functional modules of the image.

[0120] For example, if the category of the first displayed content includes text and images, then the target functional module combination is determined from multiple functional modules of the text and multiple functional modules of the images; if the category of the first displayed content includes text and video, then the target functional module combination is determined from multiple functional modules of the text and multiple functional modules of the video.

[0121] In some implementations, the target functional module combination is determined based on the priority of the corresponding multiple functional modules. The priority of each functional module can be determined in any suitable way, such as at least one of the following: number of uses, user preference, name, usage duration, etc.

[0122] Step S54: During the process of displaying the data content of the target file, the launcher used to activate the target function module in the target function module combination is displayed.

[0123] Here, step S54 corresponds to step S13 mentioned above. When implementing it, you can refer to the specific implementation of step S13 mentioned above.

[0124] In this embodiment of the disclosure, by determining different combinations of target functional modules according to the type of the first display content used for screen display, the accuracy and relevance of the combination of target functional modules are improved compared to multiple files of the same category or the same file having the same combination of functional modules. This allows users to quickly find the target function that matches the target file, shortens the time for finding the target function, reduces the complexity of operation, and thus improves the user's operating experience.

[0125] In some embodiments, the method further includes step S55, wherein:

[0126] Step S55: If the display content of the target file used for screen display is replaced by the second display content and the category of the first display content is different from the category of the second display content, determine that the target function combination is switched from the third function module combination to the fourth function module combination.

[0127] Here, the second displayed content differs from the first displayed content. This second displayed content can be content from the target file or content modified from the first displayed content. The category of the second displayed content can be the same as or different from the category of the first displayed content. In implementation, if the category of the second displayed content is the same as the category of the first displayed content, the target function combination does not need to be switched; if the category of the second displayed content is different from the category of the first displayed content, it is necessary to switch from the third function module combination to the fourth function module combination.

[0128] The third functional module combination can be a target functional combination determined based on the category of the first displayed content. In implementation, refer to the specific implementation method of step S53 above.

[0129] The fourth functional module combination can be a target functional combination determined based on the category of the second display content. In implementation, the target functional combination determined based on the category of the second display content is similar to the target functional combination determined based on the category of the first display content. For implementation, please refer to the specific implementation method of the aforementioned step S53.

[0130] In this embodiment of the disclosure, by changing the target function combination according to the change of the category of the displayed content, the accuracy and relevance of the target function combination are improved, so that users can quickly find the target function that matches the displayed content, shorten the target function search time, reduce the complexity of operation, and thus improve the user's operating experience.

[0131] In some embodiments, the method further includes step S56, wherein:

[0132] Step S56: Determine the target functional module combination based on the category of the third display content; wherein, the third display content is the selected content in the display content of the target file used for screen display.

[0133] Here, the third displayed content is the content selected through a preset selection operation. This selection operation can be any suitable operation, such as long press, selection, etc.

[0134] The category of the third display content can include at least one category. For example, text, images, video, audio, etc. The target functional module combination is adapted to the category of the third display content, and the target functional module combination includes at least one functional module. For example, if the category of the third display content includes text, then the target functional module combination is determined from multiple functional modules of the text; if the category of the third display content includes images, then the target functional module combination is determined from multiple functional modules of the images.

[0135] In some implementations, if the category of the third displayed content differs from the category of the displayed content on the screen, the target functional module combination is determined to switch from the fifth functional module combination to the sixth functional module combination. The fifth functional module combination is adapted to the displayed content on the screen, and the sixth functional module combination is adapted to the category of the third displayed content. For example, if the displayed content on the screen includes text and images, then the fifth functional module combination is determined from multiple functional modules for the text and multiple functional modules for the images; if the user selects the image through a preset selection operation, then the sixth functional module combination is determined from multiple functional modules for the images.

[0136] In some implementations, the fifth / sixth functional module combination is determined based on the priority of the corresponding multiple functional modules. The priority of each functional module can be determined in any suitable way, such as at least one of the following: number of uses, user preference, name, usage duration, etc.

[0137] In this embodiment, the target function combination module is modified accordingly based on the selected content to adapt the target function combination module to the selected content, thereby improving the accuracy and relevance of the target function combination. This allows users to quickly find the target function that matches the displayed content, shortens the target function search time, reduces the complexity of operation, and thus improves the user's operating experience.

[0138] The following describes the application of the processing method provided in this embodiment in a real-world scenario, using the example of editing an image with an image editor.

[0139] In related technologies, before sharing an image, it may be necessary to preprocess it. For example, for photos, this might involve applying filters, beautifying, and adjusting lighting; for screenshots, it might involve annotation and mosaic effects. However, if the image editor displays the same functions for all images, users may need to perform multiple steps to find the desired function. For instance, for screenshots, since the currently displayed functions do not include a mosaic function, users need to perform multiple steps to find it. This results in complex and time-consuming operations, negatively impacting the user experience.

[0140] This disclosure provides a processing method that determines the corresponding target functional module combination in real time based on the source and content of the image. Compared with all images having the same functional module combination, this method improves the accuracy and relevance of the target functional module combination, enabling users to quickly find the target function that matches the target image, shortening the target function search time, reducing the complexity of operation, and thus improving the user's operating experience.

[0141] Figure 6A This is a schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure, as shown below. Figure 6A As shown, the method includes steps S601 to S606, wherein:

[0142] Step S601: Select the chosen image as the target image (corresponding to the aforementioned target file);

[0143] Step S602: Analyze the target image to obtain the source of the target image (corresponding to the aforementioned second target parameter);

[0144] Here, the source of the target image can be determined based on its attributes such as time, aperture, and acquisition device.

[0145] Step S603: Determine whether the source of the target image is a photograph. If yes, proceed to step S604; otherwise, proceed to step S605.

[0146] Step S604: Determine the target functional module combination based on the priority of the multiple functional modules corresponding to the photo, and proceed to step S606.

[0147] Here, the priority of each functional module can be determined based on at least one of the following: usage frequency, user preference, duration, etc. The functional modules in this target functional module combination can be multiple functional modules at the same level or multiple functional modules at different levels. In some implementations, a correspondence between photos and multiple functional modules can be pre-established, so that multiple functional modules corresponding to a photo can be obtained based on this correspondence.

[0148] In some implementations, since the target application can edit images, videos, documents, etc., the target set corresponding to the image can be determined from the set of functional modules of the target application. Then, based on the source of the image, multiple functional modules corresponding to each source image can be determined from the target set corresponding to the image. For example, if the image is a photograph, multiple functional modules corresponding to photographs can be determined from the target set; if the image is a screenshot, multiple functional modules corresponding to screenshots can be determined from the target set.

[0149] Step S605: Determine the target functional module combination based on the priority of the multiple functional modules corresponding to the screenshot, and proceed to step S606.

[0150] Here, a correspondence between screenshots and multiple functional modules can be pre-established. Based on this correspondence, the corresponding functional modules for each screenshot can be obtained. In some implementations, the functional modules corresponding to photos and screenshots can be the same, but the priorities of each functional module can differ. For example, for filters, photos are used more frequently than screenshots; therefore, the filter has a higher priority in photos than in screenshots. Similarly, for mosaics, screenshots are used more frequently than photos; therefore, the mosaic has a higher priority in screenshots than in photos.

[0151] Step S606: Display the target image and the launchers of each target function module in the target function module combination.

[0152] Here, the display order of each target functional module can be determined according to its priority, and each target functional module can be displayed sequentially according to its display order. In some implementations, the first target functional module is displayed by default. In some implementations, if the first target functional module has sub-functional modules, at least one target sub-functional module of the first target functional module can also be displayed. Each target sub-functional module is determined from the multiple sub-functional modules of the first target functional module.

[0153] Figure 6B This is a schematic diagram of an image editing interface provided in an embodiment of the present disclosure, such as... Figure 6B As shown, the image editing interface 600 includes a photo 611 and a target function module combination 612. The target function module combination 612 includes adjustments 613, filters 614, cropping 615, and more 616. This target function module combination 612 is determined from multiple function modules corresponding to the photo 611. In implementation, the first function, adjustment 613, is selected by default. Since adjustment 613 has multiple sub-functions, a target sub-function combination 6130 is displayed on adjustment 613. This target sub-function combination includes at least one target sub-function, such as automatic color correction, exposure, or contrast. The display order of each target sub-function is determined according to its corresponding priority. More 616 is used to display other function modules in the target function module combination 612 and / or other function modules corresponding to the photo 611.

[0154] Figure 6C This is a schematic diagram of an image editing interface provided in an embodiment of the present disclosure, such as... Figure 6C As shown, the image editing interface 600 includes a screenshot 621 and a target function module combination 622. The target function module combination 622 includes cropping 623, annotation 624, mosaic 625, and more 626. This target function module combination 622 is determined from multiple function modules corresponding to the screenshot 621. In implementation, the first function, cropping 623, is selected by default. Since cropping 623 does not have sub-functions, displaying cropping 623 is sufficient. More 626 is used to display other function modules in the target function module combination 622 and / or other function modules corresponding to the screenshot 621.

[0155] Based on the above embodiments, this disclosure provides a processing apparatus. Figure 7 This is a schematic diagram of the composition structure of a processing device provided in an embodiment of the present disclosure, as shown below. Figure 7 As shown, the processing device 70 includes an acquisition module 71, a determination module 72, and a display module 73, wherein:

[0156] The acquisition module 71 is used to acquire the target file;

[0157] The determining module 72 is used to determine a target functional module combination based on the target file, wherein the target functional module combination belongs to the functional module set of the target application, and the target functional module combination is a part of the functional module set;

[0158] The display module 73 is used to display a launcher for activating the target function module in the target function module combination during the process of displaying the data content of the target file; wherein, if the target file is a first file, the target function module combination is a first function module combination; if the target file is a second file different from the first file, the target function module combination is a second function module combination; the first file and the second file are of the same category, and the first function module combination and the second function module combination are different.

[0159] In some implementations, the determining module 72 is further configured to: obtain a first target parameter of the target file for characterizing the category; if the first target parameter characterizes the target file as a first category, determine a first set, wherein the functional modules included in the first set are used to change the display effect of the data content of the target file, and the first functional module combination and the second functional module combination belong to the first set; and determine the target functional module combination based on the first set and the target file.

[0160] In some embodiments, the determining module 72 is further configured to: determine the target functional module combination based on a second target parameter of the target file that characterizes the source; wherein, if the second target parameter characterizes the source of the target file as a first obtaining device, the target functional module combination is a first functional module combination; if the second target parameter characterizes the source of the target file as a second obtaining device, the target functional module combination is a second functional module combination; the first obtaining device is an apparatus for generating an image based on ambient light sensing information; the second obtaining device is an apparatus for generating an image based on display content for a screen.

[0161] In some embodiments, the determining module 72 is further configured to: determine the target functional module combination based on the data content of the target file; wherein, if the data content includes data of the same type, the target functional module combination is a first functional module combination; if the data content includes data of different types, the target functional module combination is a second functional module combination.

[0162] In some embodiments, the determining module 72 is further configured to: obtain first display content of the target file for screen display; determine the target functional module combination based on the category of the first display content; wherein, if the display content of the target file for screen display is replaced by a second display content and the category of the first display content is different from the category of the second display content, the target functional combination is determined to switch from a third functional module combination to a fourth functional module combination.

[0163] In some embodiments, the determining module 72 is further configured to: determine the target functional module combination based on the category of the third display content; wherein the third display content is the content selected from the display content of the target file for screen display.

[0164] In some implementations, each target functional module in the target functional module combination is a plurality of functional modules located at different levels.

[0165] The description of the above apparatus embodiments is similar to that of the above method embodiments, and has similar beneficial effects. For technical details not disclosed in the apparatus embodiments of this disclosure, please refer to the description of the method embodiments of this disclosure for understanding.

[0166] It should be noted that, in the embodiments of this disclosure, if the above methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this disclosure, or the parts that contribute to related technologies, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this disclosure are not limited to any specific hardware and software combination.

[0167] This disclosure provides an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the above-described method.

[0168] This disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method. The computer-readable storage medium can be transient or non-transient.

[0169] This disclosure provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described method. This computer program product can be implemented specifically through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied as a computer storage medium; in another optional embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.

[0170] It should be noted that, Figure 8 This is a schematic diagram of the hardware entity of an electronic device provided in an embodiment of the present disclosure, such as... Figure 8 As shown, the hardware entity of the electronic device 800 includes: a processor 801, a communication interface 802, and a memory 803, wherein:

[0171] The processor 801 typically controls the overall operation of the electronic device 800.

[0172] Communication interface 802 enables electronic devices to communicate with other terminals or servers via a network.

[0173] The memory 803 is configured to store instructions and applications executable by the processor 801, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data, and video communication data) in the processor 801 and various modules in the electronic device 800. It can be implemented using flash memory or random access memory (RAM). Data transfer between the processor 801, the communication interface 802, and the memory 803 can be performed via bus 804.

[0174] It should be noted that the descriptions of the storage medium and device embodiments above are similar to those of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this disclosure, please refer to the descriptions of the method embodiments of this disclosure for understanding.

[0175] It should be understood that the phrase "an embodiment" or "one embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this disclosure. Therefore, "in one embodiment" or "one embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this disclosure, the sequence numbers of the above-described processes do not imply a sequential 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 this disclosure. The sequence numbers of the above-described embodiments are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0176] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0177] In the several embodiments provided in this disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components may be combined, or integrated into another system, or some features may be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0178] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0179] In addition, each functional unit in the embodiments of this disclosure can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0180] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0181] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, magnetic disks, or optical disks.

[0182] The above description is merely an embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A processing method, the method comprising: Obtain the target file; Based on the target file, a target functional module combination is determined. The target functional module combination belongs to the functional module set of the target application, and the target functional module combination is a part of the functional module set. During the process of displaying the data content of the target file, a launcher for invoking the target function modules in the target function module combination is displayed; Wherein, if the target file is a first file, the target functional module combination is a first functional module combination; If the target file is a second file that is different from the first file, the target functional module combination is a second functional module combination; The first file and the second file are of the same category, but the first combination of functional modules is different from the second combination of functional modules.

2. The method according to claim 1, wherein determining the target functional module combination based on the target file includes: Obtain the first target parameter of the target file used to characterize the category; If the first target parameter indicates that the target file is a first category, a first set is determined. The functional modules included in the first set are used to change the display effect of the data content of the target file. The first functional module combination and the second functional module combination belong to the first set. Based on the first set and the target file, the target functional module combination is determined.

3. The method according to claim 1, wherein determining the target functional module combination based on the target file includes: The target functional module combination is determined based on the second target parameter used to characterize the source in the target file; Wherein, if the second target parameter indicates that the source of the target file is the first obtaining device, the target functional module combination is the first functional module combination; If the second target parameter indicates that the source of the target file is a second obtaining device, then the target functional module combination is a second functional module combination; The first obtaining device is a device for generating an image based on ambient light sensing information; The second obtaining device is an apparatus for generating an image based on the display content for the screen.

4. The method according to claim 1, wherein determining the target functional module combination based on the target file includes: Based on the data content of the target file, the target functional module combination is determined; Wherein, if the data content includes data of the same type, the target functional module combination is the first functional module combination; If the data content includes different types of data, the target functional module combination is a second functional module combination.

5. The method according to claim 1, wherein determining the target functional module combination based on the target file includes: Obtain the first display content of the target file for screen display; Based on the category of the first displayed content, the target functional module combination is determined; If the display content of the target file used for screen display is replaced by the second display content and the category of the first display content is different from the category of the second display content, it is determined that the target functional module combination is switched from the third functional module combination to the fourth functional module combination.

6. The method according to claim 5, further comprising: The target functional module combination is determined based on the category of the third displayed content; The third display content is the selected content in the display content of the target file used for screen display.

7. The method according to any one of claims 1 to 6, wherein each target functional module in the target functional module combination is a plurality of functional modules located at different levels.

8. A processing apparatus, the apparatus comprising: The acquisition module is used to obtain the target file; The determining module is used to determine a target functional module combination based on the target file, wherein the target functional module combination belongs to the functional module set of the target application, and the target functional module combination is a part of the functional module set; The display module is used to display the data content of the target file and, in the process, to display the launcher used to invoke the target function module in the target function module combination; Wherein, if the target file is a first file, the target functional module combination is a first functional module combination; If the target file is a second file that is different from the first file, the target functional module combination is a second functional module combination; The first file and the second file are of the same category, but the first combination of functional modules is different from the second combination of functional modules.

9. An electronic device comprising a processor and a memory, said memory storing a computer program operable on the processor, wherein, When the processor executes the computer program, it implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of any one of claims 1 to 7.