File processing method, device and electronic equipment
By implementing automatic filtering and operation file processing methods in electronic devices, the problem of users spending a lot of time to filter files during the editing process is solved, and the editing efficiency and user experience are improved.
Patent Information
- Application Number
- CN202110450088.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-25
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-04-25
AI Technical Summary
When users edit files in electronic devices, they need to spend a lot of time to filter and select, resulting in cumbersome editing process, wasting time and reducing usage efficiency.
A file processing method is provided, by receiving input from a user to a target object in the first file, automatically filtering and executing N target files targeted in the electronic device, and the memory capacity occupied by the target file is determined according to the input parameters.
Users can directly filter out files containing specific objects through input and perform target operations, saving time, improving the efficiency of electronic devices, and avoid viewing and filtering one by one in massive files.
Smart Images

Figure CN113282547B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to a file processing method, device and electronic device. Background Art
[0002] With the development of electronic technology, electronic devices have more and more functions, and correspondingly, the content stored in electronic devices is also increasing.
[0003] Since users can use electronic devices to shoot or download files (such as static pictures, dynamic pictures, videos, etc.) anytime and anywhere, it is easy for electronic devices to store a large number of photos or videos of the same scene or person taken by users, or a large number of downloaded files. When users need to use a certain type of files with the same characteristics (for example, all containing images of user A), they need to look through a large number of useless files. In the related art, taking the example of a user needing to delete files containing characteristic B in an electronic device, the user needs to look through all the photos, videos or useless files before completing the screening and deleting them one by one.
[0004] Since the above process requires the user to spend a lot of time to screen and select in sequence before the editing operation can be performed, the editing process may be cumbersome, waste the user's time, and reduce the efficiency of using the electronic device. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide a file processing method, device and electronic device, which can solve the problem that the user needs to spend a lot of time screening and selecting files in sequence before executing the editing operation, which may make the editing process more cumbersome and waste the user's time.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] In a first aspect, an embodiment of the present application provides a file processing method, the method comprising: an electronic device receives a first input from a user regarding a target object in a first file; in response to the above first input, the electronic device performs a target operation on N target files in the electronic device; wherein the target files include target objects, and the memory capacity occupied by the above target files is determined based on the input parameters of the above first input, and N is a positive integer.
[0008] In a second aspect, an embodiment of the present application provides a file processing device, which includes a receiving module and an execution module; the receiving module is used to receive a first input from a user for a target object in a first file; the execution module is used to perform a target operation on N target files in an electronic device in response to the first input received by the receiving module; wherein the target files all include a target object, and the memory capacity occupied by the target files is determined based on the input parameters of the first input, and N is a positive integer.
[0009] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0011] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0012] In the embodiment of the present application, after receiving the first input of the user for the target object in the first file, the electronic device will perform the target operation on the N target files in the electronic device that all contain the target object, and the memory capacity occupied by the target file will be determined according to the input parameter of the first input. In this way, when the user needs to perform the target operation on the file containing a specific object in the electronic device, the first input can be used to directly filter out the file containing the specific object and the memory capacity occupied in the electronic device is the target memory capacity, and then the target operation is directly completed, so that the user does not need to check and filter the files he needs in turn in the massive files of the electronic device, which saves the time of the user performing the target operation on the target file and improves the efficiency of the user using the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 It is a flowchart of a file processing method provided by an embodiment of the present application;
[0014] Figure 2 One of the schematic diagrams of an interface used by a file processing method provided in an embodiment of the present application;
[0015] Figure 3 A second schematic diagram of an interface used in a file processing method provided in an embodiment of the present application;
[0016] Figure 4 A third schematic diagram of an interface used in a file processing method provided in an embodiment of the present application;
[0017] Figure 5 A schematic diagram of the structure of a file processing device provided in an embodiment of the present application;
[0018] Figure 6 One of the structural schematic diagrams of an electronic device provided in an embodiment of the present application;
[0019] Figure 7 The second structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0021] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0022] The file processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0023] The file processing method provided in the embodiment of the present application can be applied to a scenario where a user needs to perform a target operation on a memory capacity that contains a specific object and occupies a target memory capacity in an electronic device.
[0024] For the scenario where the user needs to perform a target operation on a file containing a specific object and the memory capacity occupied by the electronic device is the target memory capacity, assuming that user A needs to delete files larger than 5M (files include: static images, dynamic images and videos) containing the head portrait of user B in the electronic device, the user needs to open the photo application, video application and chat application in the electronic device, and view all the files in the above applications, filter out files containing the head portrait of user B and the memory capacity is larger than 5M from all the files, and then perform the target operation required on the electronic device. It can be seen from the above process that since the existing electronic devices usually have a large memory capacity, the user is likely to need to view a large number of files before filtering out the files that meet the user's needs, and since there are too many files, it is very likely that the screening will not be complete.
[0025] In the file processing method provided by the embodiment of the present application, after receiving the first input of the head portrait of user B in the first image from user A, the electronic device will perform a target operation on N target files in the electronic device that all contain the head portrait of user B and the memory capacity occupied by the target files is 5M according to the input parameters of the first input of the user. In this way, when the user needs to perform a target operation on a file containing a specific object, the head portrait of user B, in the electronic device, the file containing the head portrait of user B and the memory capacity occupied by the electronic device is 5M, and then the target operation is directly completed, thereby eliminating the need for the user to sequentially view and filter the files he needs in the massive files of the electronic device, saving the time spent by the user in performing the target operation on the target file and improving the efficiency of the user in using the electronic device.
[0026] This embodiment provides a file processing method, such as Figure 1 As shown, the file processing method includes the following steps 301 and 302:
[0027] Step 301: The file processing apparatus receives a first input from a user regarding a target object in a first file.
[0028] In an embodiment of the present application, the above-mentioned first file may be an image file, and / or a video file, and / or a video preview cover of a video file.
[0029] In the embodiment of the present application, the first file mentioned above may be any file in the electronic device.
[0030] Exemplarily, the first image may be an image in any application in the electronic device, such as a photo application, a chat application, a shopping application, etc.
[0031] In the embodiment of the present application, the target object may be portrait information in the first image, specific object information (eg, animal images, plant images, other object images, etc.), which is not limited in the embodiment of the present application.
[0032] In the embodiment of the present application, the first input is used to select a target object and is also used to determine the memory capacity occupied by a target file containing the target object.
[0033] In an embodiment of the present application, the above-mentioned first input can be a touch input, for example, a click input, a long press input, or a voice input, or an input of a special gesture, which is not limited in the present application.
[0034] Exemplarily, when the first input is a touch input, the electronic device can determine the memory capacity occupied by the target file containing the target object according to the input force of the user's touch input. For example, when the electronic device receives a press input with an input force corresponding to 10M by the user, it can be determined that the memory capacity occupied by the target file containing the target object is a file of 10M size containing the target object in the electronic device.
[0035] Exemplarily, when the first input is voice input, the electronic device can determine the memory capacity occupied by the target file containing the target object according to the voice content input by the user. For example, when the electronic device receives the user's voice input, and the voice content is that the electronic device needs to screen the file that occupies 10M of memory and contains the target object, it can be determined that the memory capacity occupied by the target file containing the target object is a 10M file in size containing the target object in the electronic device.
[0036] Step 302: In response to the first input, the file processing apparatus performs a target operation on N target files in the electronic device.
[0037] In an embodiment of the present application, the target file includes a target object, and the memory capacity occupied by the above target file is determined according to the input parameters of the above first input, and N is a positive integer.
[0038] In the embodiment of the present application, the above-mentioned target file can be a static image, a dynamic image, or a video, which is not limited in the embodiment of the present application.
[0039] It is understandable that when the above-mentioned target file is a video, the electronic device can identify each frame in the video one by one to check whether there is an object that is the same as the target object, so as to perform screening.
[0040] In the embodiment of the present application, the above input parameters may correspond to different parameters depending on the first input.
[0041] In one example, when the first input is a pressing input, the input parameter is an input pressure parameter.
[0042] In one example, when the first input is voice input, the input parameter is an input voice content parameter.
[0043] In the embodiment of the present application, the memory capacity occupied by the target file refers to the data capacity of the target file in the electronic device. For example, when the target file is image 1, the memory capacity occupied by image 1 is 5M; when the target file is video 1, the memory capacity occupied by video 1 is 100M.
[0044] In the embodiment of the present application, the above-mentioned target operation may be an editing operation of the electronic device on N target files, for example, a deletion operation or a transfer operation.
[0045] In the embodiment of the present application, the above-mentioned target operation can be preset in advance or customized by the user.
[0046] Exemplarily, when the target operation is a preset operation, the electronic device may trigger the electronic device to start the operation mode corresponding to the target operation after receiving the first input, thereby executing the first operation after the user ends the first input.
[0047] Exemplarily, when the target operation is a user-defined operation, the electronic device may display function prompt information in the display interface after receiving the user's first input, asking the user for the target operation to be performed, and determine the target operation based on the user's selection.
[0048] In an embodiment of the present application, before the electronic device receives the above-mentioned first input, the electronic device may first receive the user's input to trigger the electronic device to enter the target mode. After entering the target mode, the electronic device will start executing the above-mentioned steps 301 and 302.
[0049] In the file processing method provided in the embodiment of the present application, after receiving the first input of the user for the target object in the first image, the file processing device will perform the target operation on N target files in the electronic device that all contain the target object, and the memory capacity occupied by the target file will be determined according to the input parameter of the first input. In this way, when the user needs to perform a target operation on a file containing a specific object in the electronic device, the first input can be used to directly filter out the file containing the specific object and the memory capacity occupied in the electronic device is the target memory capacity, and then the target operation is directly completed, thereby eliminating the need for the user to sequentially view and filter the files they need in the massive files of the electronic device, saving the user's time in performing the target operation on the target file and improving the user's efficiency in using the electronic device.
[0050] Optionally, in an embodiment of the present application, when the first input is a pressing input, before performing the target operation on the N target files in the above step 302, the file processing method provided in the embodiment of the present application includes the following steps A1 and A2:
[0051] Step A1: The file processing device determines a first pressure level according to the input pressure parameter of the pressing input.
[0052] Step A2: the file processing device obtains the target files whose memory capacity occupied by the electronic device is the first memory capacity, and obtains the N target files.
[0053] Exemplarily, the first memory capacity corresponds to the first pressure level.
[0054] Exemplarily, the above-mentioned input pressure parameter refers to a parameter corresponding to the magnitude of the input force of the pressing input.
[0055] Exemplarily, the electronic device may sense different input pressure parameters according to different first input pressures.
[0056] It is understandable that existing electronic devices can utilize their own pressure sensing characteristics to pre-set different pressure levels for pressure parameters in different intervals, and set a corresponding relationship between the pressure level and the content capacity of the file.
[0057] Example 1: Assuming the target operation is the preset delete operation, such as Figure 2 As shown, an image 32 is displayed on the display interface 31 of the electronic device, and the image 32 includes the avatar 33 of user 1 and the avatar 34 of user 2. The electronic device receives a user's pressing input (i.e., the first input) on the area where the avatar 34 is located in the display interface 31 (i.e., the target object), and determines that the pressure level is level 3 (i.e., the first pressure level) according to the input strength value of the pressing input (i.e., the input parameter), and then obtains the memory capacity indicated by the pressure level, 5M-7M files (i.e., the files whose occupied memory capacity is the first memory capacity), obtains 100 files containing the avatar 34 and occupying 5M-7M of memory (i.e., the N target files), and performs a deletion operation (i.e., the target operation) on the 100 files.
[0058] In this way, the electronic device can determine the size of the target file by pressing the input parameters, and then directly complete the target operation, saving the user's time in screening files and improving the user's efficiency in using the electronic device.
[0059] Optionally, in an embodiment of the present application, when the target object includes biometric information, before obtaining the file of the target memory capacity in the above step A2, the file processing method provided in the embodiment of the present application includes the following step B1:
[0060] Step B1: The file processing device uses biometric recognition technology to obtain the target file including the target object in the electronic device.
[0061] On the basis of the above step B1, in the above step A2, the file processing method provided in the embodiment of the present application includes the following step B2:
[0062] Step B2: the file processing device selects the N target files whose occupied memory capacity is the target memory capacity from the target files.
[0063] Exemplarily, the biometric recognition technology may recognize biometric information in the first image. For example, the biometric recognition technology may be face recognition technology, and the biometric information may be information about a person's facial features.
[0064] Exemplarily, after identifying the biometric information in the first image, the electronic device can identify M target files in the electronic device that contain the above biometric information, and then, from the above M target files, combined with the input parameters of the first input, filter out the above N target files whose occupied memory capacity is the target memory capacity, where M is a positive integer greater than or equal to N.
[0065] Example 2: In combination with Example 1 above, after the electronic device receives the user's pressing input (i.e., the above-mentioned first input) on the area where the avatar 34 is located in the display interface 31 (i.e., the above-mentioned target object), the electronic device can activate face recognition technology, identify all files in the electronic device, and obtain 200 files containing the biometric information features of the avatar 34, and then filter out 100 files occupying 5M-7M of memory (i.e., the above-mentioned N target files) from these 200 files based on the input force value of the pressing input.
[0066] It should be noted that the user can directly release the first input of the finger on the first image after the pressing input reaches the target pressure level. At this time, the electronic device will record the maximum input pressure parameter before the release, and use the pressure parameter to obtain the file whose memory capacity occupied by the electronic device is the target memory capacity, obtain the N target files, and perform the target operation.
[0067] In this way, the electronic device can use biometric technology to accurately and quickly traverse all files in the electronic device and find all files containing the target object, thereby helping users to quickly screen and find the target file and saving the time of the electronic device to perform the target operation.
[0068] Optionally, in an embodiment of the present application, before the above step 301, the file processing method provided in the embodiment of the present application includes the following steps C1 and C2:
[0069] Step C1: the file processing device receives a second input from the user on the input parameter setting interface.
[0070] Step C2: In response to the second input, the file processing device sets a corresponding relationship between the input parameter and the memory capacity occupied by the file in the electronic device.
[0071] Exemplarily, the input parameter setting interface may be a display interface for inputting a correspondence between input parameters and memory capacity occupied by a file.
[0072] In one example, the input parameter setting interface may be an interface in any application, or may be a setting interface of the electronic device itself, which is not limited in this embodiment of the present application.
[0073] Exemplarily, the second input may be a touch input, such as a click input, a long press input, or a voice input, or an input of a special gesture, which is not limited in the embodiments of the present application.
[0074] In one example, the above correspondence may be a correspondence preset in advance by the electronic device. It is understandable that the electronic device may dynamically generate a correspondence between the input parameter and the memory capacity occupied by the file according to the distribution trend of the memory capacity occupied by all files in the electronic device. Figure 3 As shown in (a) in FIG. 1 , the input pressure parameter is divided into five levels, and the electronic device is divided into five parts of files corresponding to the five levels according to the distribution trend of the memory capacity occupied by all files in the electronic device.
[0075] In one example, the above correspondence may be a correspondence set by a user. Figure 3 As shown in (b) in the figure, the user can set the relationship between the input pressure parameter and the memory capacity occupied by the file in the input parameter setting interface.
[0076] In an example, the above correspondence may also be based on the memory capacity occupied by the electronic device receiving the first input image, and is divided into three groups of relationships between occupied memory and input parameters, with the precise value kept in single digits. Figure 3As shown in (c) in FIG. 1 , the input pressure parameter is divided into three levels, namely, a memory capacity greater than a memory capacity occupied by a subsequently received image of the first input, a memory capacity equal to a memory capacity occupied by a subsequently received image of the first input, and a memory capacity less than a memory capacity occupied by a subsequently received image of the first input, wherein the above memory capacity values are accurate to single digits.
[0077] In this way, the electronic device can set the input parameters in a variety of ways to determine the memory capacity occupied by the target file according to its own needs, so that the electronic device can flexibly determine the target file.
[0078] Optionally, in the embodiment of the present application, before performing the target operation on the N target files in the above step 302, the file processing method provided in the embodiment of the present application includes the following step D:
[0079] Step D: The file processing device displays prompt information on the first interface where the first image is located.
[0080] Exemplarily, the prompt information is used to indicate the occupied memory capacity corresponding to the input parameters of the first input.
[0081] Exemplarily, the above prompt information may be prompt information in the form of an image, prompt information in the form of text, or prompt information in a combination of multiple different forms.
[0082] Exemplarily, the first interface may be any interface of an electronic device.
[0083] Example 3: Combined with the above example 1, Figure 4 As shown in (a) of FIG. 1 , after the electronic device inputs the input force value (i.e., the above-mentioned input parameter) according to the pressing input, the pressure level input by the user (i.e., the above-mentioned prompt information) will be dynamically displayed on the current display interface of the electronic device, such as Figure 4 As shown in (b) in the figure, until the pressure level pressed by the user reaches level 3, that is, the pressure level required by the user is reached. At this time, the user maintains the pressing input with the same force until the electronic device completes the deletion operation.
[0084] In this way, the electronic device can clearly and concisely prompt the user of the current input parameter size through the prompt information, so that the user can clearly understand the memory size of the file he or she is deleting, which is convenient for the user to perform the target operation.
[0085] Optionally, in the embodiment of the present application, before performing the target operation on the N target files in the above step 302, the file processing method provided in the embodiment of the present application includes the following steps E1 and E2:
[0086] Step E1: the file processing device displays N identification information on the second interface where the first image is located.
[0087] Exemplarily, each piece of identification information indicates a target file;
[0088] Step E2: the file processing device receives a third input of K identification information among the N identification information by the user, where K is a positive integer less than or equal to N;
[0089] On this basis, performing the target operation on the N target files in the above step 302 includes the following step E3:
[0090] Step E3: In response to the third input, the file processing device performs target operations on K target files among the N target files.
[0091] Exemplarily, the target operation includes at least one of the following: deleting the target file, transferring the target file.
[0092] Exemplarily, the second interface may be any interface of the electronic device.
[0093] Exemplarily, the identification information may be image identification information or text identification information.
[0094] In an example, the identification information may be thumbnail information corresponding to the target file, or may be text indication information corresponding to the target file.
[0095] Exemplarily, the third input may be a touch input, a voice input, or a special gesture input, which is not limited in the embodiment of the present application.
[0096] Exemplarily, the third input is used to select K target files from N target files, and perform target operations on the K target files from the N target files.
[0097] In this way, the user can view and filter the target files determined by the electronic device through the identification information, so that the user can improve the accuracy of the target operation.
[0098] Optionally, in the embodiment of the present application, when the first input is a pressing input, before performing the target operation on the N target files in the step 302, the file processing method provided in the embodiment of the present application may further include the following steps F1 and F2:
[0099] Step F1: the file processing device determines a second pressure level according to the input pressure parameter of the pressing input and the memory capacity of the first file.
[0100] Step F2: the file processing device obtains target files whose memory capacity occupied by the electronic device is the second memory capacity, and obtains the N target files.
[0101] Exemplarily, the first memory capacity corresponds to the first pressure level.
[0102] Exemplarily, the above-mentioned input pressure parameter refers to a parameter corresponding to the magnitude of the input force of the pressing input.
[0103] Exemplarily, the electronic device may sense different input pressure parameters according to different first input pressures.
[0104] It is understandable that existing electronic devices can utilize their own pressure sensing characteristics in combination with the memory capacity of the above-mentioned first file, that is, use the memory capacity of the first file as a reference value to determine the pressure level and set the corresponding relationship between the pressure level and the content capacity of the file.
[0105] In one example, after receiving a pressing input on any file in the electronic device, the file processing device will use the memory capacity of the current first file as a reference value to divide the pressure level in real time. For example, the memory capacity of the first file is 20M, then compared to 20M, 0 to -10M (i.e. 20M to 10M) is one level, -10M to -20M (i.e. 10M to 0M) is one level, 0 to +10M (i.e. 20M to 30M) is one level, and +10M to +20M (i.e. 30M to 40M) is one level. That is, according to different pressing pressures, the electronic device determines the target file with 4 levels of memory capacity.
[0106] Example 4: Assuming the target operation is the preset delete operation, such as Figure 2 As shown, an image 32 is displayed on a display interface 31 of the electronic device, and the image 32 includes an avatar 33 of user 1 and an avatar 34 of user 2. The electronic device receives a user's pressing input (i.e., the first input) on the area where the avatar 34 is located in the display interface 31 (i.e., the target object), and determines the division method of the pressure level according to the memory capacity (20M) of the image 32, wherein 20M to 10M is the first level, 10M to 0M is the second level, that is, 20M to 30M is the third level, and 30M to 40M is the fourth level.
[0107] Afterwards, the electronic device determines that the pressure level is level 3 (i.e., the second pressure level mentioned above) according to the input force value of the press input (i.e., the above-mentioned input parameter), and then obtains the memory capacity indicated by the pressure level, 20M-30M files (i.e., the above-mentioned target files whose occupied memory capacity is the second memory capacity), obtains 50 files containing the avatar 34 and occupying 20M-30M of memory (i.e., the above-mentioned N target files), and performs a deletion operation on the above-mentioned 50 files (i.e., the above-mentioned target operation).
[0108] In this way, the file processing device can determine the pressure level division method in real time based on the first file selected by the user as a reference, and further determine the occupied capacity of the target file based on the pressure value actually input by the user, thereby enriching the method of determining the occupied capacity of the target file.
[0109] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.
[0110] It should be noted that the file processing method provided in the embodiment of the present application can be executed by a file processing device or a control module in the file processing device for executing the file processing method. In the embodiment of the present application, the file processing device provided in the embodiment of the present application is described by taking the file processing method executed by the file processing device as an example.
[0111] Figure 5 A possible structural diagram of a file processing device provided in an embodiment of the present application is provided. Figure 5 As shown, the above-mentioned device 600 includes a receiving module 601 and an execution module 602; the above-mentioned receiving module 601 is used to receive a first input from a user for a target object in a first file; the above-mentioned execution module 602 is used to perform a target operation on N target files in the electronic device in response to the above-mentioned first input received by the above-mentioned receiving module 601; wherein, the target files all include a target object, and the memory capacity occupied by the above-mentioned target files is determined according to the input parameters of the above-mentioned first input, and N is a positive integer.
[0112] The file processing device provided in the embodiment of the present application, after receiving the first input of the user for the target object in the first image, will perform the target operation on N target files in the electronic device that all contain the target object, and the memory capacity occupied by the target file will be determined according to the input parameter of the first input. In this way, when the user needs to perform the target operation on the file containing the specific object in the electronic device, the file containing the specific object and the memory capacity occupied in the electronic device as the target memory capacity can be directly filtered out through the first input, and then the target operation is directly completed, so that the user does not need to check and filter the files he needs in the massive files of the electronic device one by one, which saves the time of the user to perform the target operation on the target file and improves the efficiency of the user in using the electronic device.
[0113] Optionally, in an embodiment of the present application, when the above-mentioned first input is a press input, the above-mentioned device 600 also includes a determination module 603 and an acquisition module 604; the above-mentioned determination module 603 is used to determine the first pressure level according to the input pressure parameters of the above-mentioned press input received by the above-mentioned receiving module 602; the above-mentioned acquisition module 604 is used to obtain a target file whose memory capacity occupied by the above-mentioned electronic device is the first memory capacity, and obtain the above-mentioned N target files, and the above-mentioned first memory capacity corresponds to the above-mentioned first pressure level.
[0114] Optionally, in an embodiment of the present application, when the target object includes biometric information, the device further includes a screening module 605; the acquisition module 604 is further used to acquire the target file including the target object in the electronic device using biometric recognition technology; the screening module 605 is used to screen out the N target files whose occupied memory capacity is the target memory capacity from the target files acquired by the acquisition module 604.
[0115] Optionally, in an embodiment of the present application, the above-mentioned device 600 also includes a setting module 606; the above-mentioned receiving module 601 is also used to receive a second input from the user in the input parameter setting interface; the above-mentioned setting module 606 is used to set the correspondence between the input parameters and the memory capacity occupied by the file in the above-mentioned electronic device in response to the above-mentioned second input received by the above-mentioned receiving module 601.
[0116] Optionally, in an embodiment of the present application, the above-mentioned device 600 also includes a display module 607; the above-mentioned display module 607 is used to display prompt information on the first interface where the above-mentioned first image is located, and the above-mentioned prompt information is used to indicate the occupied memory capacity corresponding to the input parameters of the above-mentioned first input.
[0117] Optionally, in an embodiment of the present application, the above-mentioned device 600 also includes a display module 607; the above-mentioned display module 607 is used to display N identification information on the second interface where the above-mentioned first image is located, and each identification information indicates a target file; the above-mentioned receiving module 601 is also used to receive a third input from a user for K identification information among the N identification information displayed by the above-mentioned display module 607, K is a positive integer less than or equal to N; the above-mentioned execution module 601 is specifically used to perform a target operation on K target files among the above-mentioned N target files in response to the above-mentioned third input received by the above-mentioned receiving module 601, and the above-mentioned target operation includes at least one of the following: deleting the above-mentioned target file, and transmitting the above-mentioned target file.
[0118] Optionally, in an embodiment of the present application, when the above-mentioned first input is a press input, the above-mentioned device also includes a determination module 603 and an acquisition module 604; the above-mentioned determination module 603 is used to determine the second pressure level according to the input pressure parameters of the above-mentioned press input and the memory capacity of the above-mentioned first file; the above-mentioned acquisition module 604 is used to acquire the target file whose memory capacity occupied by the above-mentioned electronic device is the second memory capacity, and obtain the above-mentioned N target files, and the above-mentioned second memory capacity corresponds to the above-mentioned second pressure level.
[0119] The file processing device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0120] The file processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0121] The file processing device provided in the embodiment of the present application can achieve Figures 1 to 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0122] It should be noted that if Figure 5 As shown, modules that must be included in the electronic device 600 are indicated by solid-line boxes, such as the receiving module 601 ; modules that may or may not be included in the electronic device 600 are indicated by dotted-line boxes, such as the obtaining module 604 .
[0123] Optional, such as Figure 6 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned file processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0124] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0125] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0126] The electronic device 100 includes, but is not limited to, components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110. The user input unit 107 includes a touch panel 1071 and other input devices 1072, the display unit 106 includes a display panel 1061, the input unit 104 includes an image processor 1041 and a microphone 1042, and the memory 109 can be used to store software programs (such as an operating system, an application required for at least one function) and various data.
[0127] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0128] Among them, the user input unit 107 is used to receive a first input from a user for a target object in a first file; the processor 110 is used to perform a target operation on N target files in the electronic device in response to the first input received by the user input unit 107; wherein the target files all include a target object, and the memory capacity occupied by the target files is determined according to the input parameters of the first input, and N is a positive integer.
[0129] In the electronic device provided in the embodiment of the present application, after receiving the first input of the user for the target object in the first image, the electronic device will perform the target operation on N target files in the electronic device that all contain the target object, and the memory capacity occupied by the target file will be determined according to the input parameter of the first input. In this way, when the user needs to perform the target operation on the file containing a specific object in the electronic device, the file containing the specific object and the memory capacity occupied in the electronic device as the target memory capacity can be directly filtered out through the first input, and then the target operation is directly completed, so that the user does not need to check and filter the files he needs in turn in the massive files of the electronic device, which saves the time of the user performing the target operation on the target file and improves the efficiency of the user using the electronic device.
[0130] Optionally, in the case where the above-mentioned first input is a press input, the processor 110 is also used to determine the first pressure level according to the input pressure parameters of the above-mentioned press input; the processor 110 is also used to obtain a target file whose memory capacity occupied by the above-mentioned electronic device is the first memory capacity, and obtain the above-mentioned N target files, and the above-mentioned first memory capacity corresponds to the above-mentioned first pressure level.
[0131] Optionally, in the case where the target object includes biometric information, before obtaining the file of the target memory capacity, the processor 110 is used to adopt biometric recognition technology to obtain the target file including the target object in the electronic device; the processor 110 is used to filter out the N target files whose occupied memory capacity is the target memory capacity from the target files.
[0132] Optionally, the user input unit 107 is used to receive a second input from the user in an input parameter setting interface; the processor 110 is used to set a correspondence between the input parameter and the memory capacity occupied by the file in the electronic device in response to the second input received by the user input unit 107.
[0133] Optionally, the display unit 106 is used to display prompt information on the first interface where the first image is located, where the prompt information is used to indicate the occupied memory capacity corresponding to the input parameters of the first input.
[0134] Optionally, the display unit 106 is used to display N identification information on the second interface where the first image is located, and each identification information indicates a target file; the user input unit 107 is used to receive a third input from a user for K identification information among the N identification information displayed by the display unit 106, where K is a positive integer less than or equal to N; the processor 110 is specifically used to perform a target operation on K target files among the N target files in response to the third input received by the user input unit 107, and the target operation includes at least one of the following: deleting the target file and transferring the target file.
[0135] Optionally, in the case where the first input is a press input, the processor 110 is further used to determine a second pressure level based on the input pressure parameters of the press input and the memory capacity of the first file; the processor 110 is further used to obtain a target file whose memory capacity occupied by the electronic device is the second memory capacity, and obtain the N target files, and the second memory capacity corresponds to the second pressure level.
[0136] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 110 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0137] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned file processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0138] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0139] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned file processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0140] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0141] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0143] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A file processing method, characterized in that: The method comprises: receiving a first input from a user regarding a target object in a first file; In response to the first input, performing a target operation on N target files in the electronic device; The target file includes a target object, the memory capacity occupied by the target file is determined according to the input parameter of the first input, and N is a positive integer; Before performing the target operation on the N target files, the method further includes: Displaying N identification information on the second interface where the first image is located, each identification information indicates a target file; Receive a third input of K identification information among the N identification information by a user, where K is a positive integer less than or equal to N; The performing target operations on N target files in the electronic device includes: In response to the third input, target operations are performed on K target files among the N target files, and the target operations include at least one of the following: deleting the target files, and transferring the target files.
2. The method according to claim 1, characterized in that In the case where the first input is a pressing input, before performing the target operation on the N target files, the method further includes: Determining a first pressure level according to an input pressure parameter of the pressing input; Obtain target files whose memory capacity occupied by the electronic device is a first memory capacity to obtain the N target files, where the first memory capacity corresponds to the first pressure level.
3. The method according to claim 2, characterized in that In the case where the target object includes biometric information, before acquiring the target file of the first memory capacity, the method includes: Using biometric technology, obtaining a target file including the target object in the electronic device; The step of obtaining the target files of the first memory capacity to obtain the N target files includes: The N target files whose occupied memory capacity is the target memory capacity are screened out from the target files.
4. The method according to claim 1, characterized in that: Before receiving the first input from the user, the method further includes: Receiving a second input from the user in the input parameter setting interface; In response to the second input, a correspondence between the input parameter and the memory capacity occupied by the file in the electronic device is set.
5. The method according to claim 1, characterized in that Before performing the target operation on the N target files, the method further includes: Prompt information is displayed on the first interface where the first image is located, where the prompt information is used to indicate the occupied memory capacity corresponding to the input parameters of the first input.
6. The method according to claim 1, characterized in that In the case where the first input is a pressing input, before performing the target operation on the N target files, the method further includes: determining a second pressure level according to an input pressure parameter of the pressing input and a memory capacity of the first file; Obtain target files whose memory capacity occupied by the electronic device is a second memory capacity to obtain the N target files, where the second memory capacity corresponds to the second pressure level.
7. A file processing device, characterized in that: The device comprises a receiving module and an execution module; The receiving module is used to receive a first input of a user on a target object in a first file; The execution module is configured to execute a target operation on N target files in the electronic device in response to the first input received by the receiving module; Wherein, the target file includes a target object, the memory capacity occupied by the target file is determined according to the input parameter of the first input, and N is a positive integer; The device also includes a display module; The display module is used to display N identification information on the second interface where the first image is located, each identification information indicating a target file; The receiving module is further used to receive a third input of K identification information among the N identification information from a user, where K is a positive integer less than or equal to N; The execution module is specifically configured to execute a target operation on K target files among the N target files in response to the third input, wherein the target operation includes at least one of the following: deleting the target file, and transmitting the target file.
8. The device according to claim 7, characterized in that In the case where the first input is a pressing input, the device further includes a determining module and an acquiring module; The determining module is used to determine a first pressure level according to the input pressure parameter of the pressing input received by the receiving module; The acquisition module is used to acquire target files whose memory capacity occupied by the electronic device is a first memory capacity, and obtain the N target files, wherein the first memory capacity corresponds to the first pressure level.
9. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the file processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Picture screening method, picture screening device and electronic equipment
CN111309948A