CN113672745A - File storage method and device - Google Patents

File storage method and device Download PDF

Info

Publication number
CN113672745A
CN113672745A CN202111004250.9A CN202111004250A CN113672745A CN 113672745 A CN113672745 A CN 113672745A CN 202111004250 A CN202111004250 A CN 202111004250A CN 113672745 A CN113672745 A CN 113672745A
Authority
CN
China
Prior art keywords
input
target
storage
user
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111004250.9A
Other languages
Chinese (zh)
Inventor
张希琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202111004250.9A priority Critical patent/CN113672745A/en
Publication of CN113672745A publication Critical patent/CN113672745A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/41Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/45Clustering; Classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a file storage method and device, and belongs to the technical field of image processing. The file storage method comprises the following steps: receiving a first input of a user; determining a target storage path of a multimedia file to be shot in response to the first input; receiving a second input of shooting by the user on the shooting preview interface; and responding to the second input, shooting a target multimedia file, and storing the target multimedia file into a target album corresponding to the target storage path.

Description

File storage method and device
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a file storage method and device.
Background
At present, the shooting function is the core configuration and function of the smart device, and as more and more users use mobile phones to shoot, a great amount of multimedia files such as photos or videos are accumulated in the smart device, and how to classify and arrange the multimedia files becomes a subject of general consideration in the industry.
The existing photo classification and arrangement technology is mainly used for classifying and arranging the existing photos after shooting, and comprises the following steps: automatically assigning photo albums by application or date; scanning and recognizing the photos through a background, so as to divide the photo album according to the characters or the photo subjects; and the user is supported to manually arrange the photos.
The inventor researches the existing photo sorting schemes, and finds that the sorting basis of the first scheme is rough, which results in unbalanced number of photos in each photo album, more photos in some photo albums and less photos in other photo albums, and the sorting means is not efficient. While the second scheme may achieve the ideal classification effect, it consumes the device resources and is not efficient. The last third scheme relies on manpower to classify photos, and is not efficient.
Disclosure of Invention
The embodiment of the application aims to provide a file storage method and device, and the problem that the efficiency of classifying and sorting shot multimedia files is low can be solved.
In a first aspect, an embodiment of the present application provides a file storage method, where the file storage method includes:
receiving a first input of a user;
determining a target storage path of a multimedia file to be shot in response to the first input;
receiving a second input of shooting by the user on the shooting preview interface;
and responding to the second input, shooting a target multimedia file, and storing the target multimedia file into a target album corresponding to the target storage path.
In a second aspect, an embodiment of the present application provides an apparatus for storing a file, where the apparatus includes:
the first receiving module receives a first input of a user;
the determining module is used for responding to the first input and determining a target storage path of the multimedia file to be shot;
the second receiving module is used for receiving a second input of shooting performed by the user on the shooting preview interface;
and the shooting module is used for responding to the second input, shooting the target multimedia file and storing the target multimedia file into the target album corresponding to the target storage path.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method according to the first aspect.
In the embodiment of the application, the target storage path of the multimedia file to be shot is determined before the multimedia file is shot, so that the shot target multimedia file can be distributed to the corresponding target album immediately when the multimedia file is shot. Therefore, according to the technical scheme provided by the embodiment of the application, the target storage path is obtained in advance when the target multimedia file is shot, the problem of low efficiency caused by the existing after-treatment scheme is solved, and the efficiency of classifying and treating the shot multimedia file is improved.
Drawings
FIG. 1 is a flowchart of a method for storing a file according to an embodiment of the present application;
FIG. 2 is a second flowchart of a file storage method according to an embodiment of the present application;
FIG. 3 is one of application scenarios of a method for storing a file provided by an embodiment of the present application;
fig. 4 is a second application scenario diagram of the file storage method according to the embodiment of the present application;
FIG. 5 is a third flowchart of a method for storing a file according to an embodiment of the present application;
fig. 6 is a third application scenario diagram of a file storage method according to an embodiment of the present application;
FIG. 7 is a fourth flowchart of a method for storing files provided by an embodiment of the present application;
FIG. 8 is a fifth flowchart of a method for storing files provided by an embodiment of the present application;
FIG. 9 is a sixth flowchart of a method for storing documents provided by an embodiment of the present application;
FIG. 10 is a fourth schematic view of an application scenario of a method for storing a file according to an embodiment of the present application;
fig. 11 is a fifth schematic view of an application scenario of a method for storing a file according to an embodiment of the present application;
FIG. 12 is a seventh flowchart of a method for storing documents provided by an embodiment of the present application;
FIG. 13 is an eighth flowchart of a method for storing documents provided by an embodiment of the present application;
FIG. 14 is a ninth flowchart of a method for storing documents provided by an embodiment of the present application;
FIG. 15 is a sixth schematic view of an application scenario of a method for storing a file according to an embodiment of the present application;
fig. 16 is a seventh application scenario diagram of a method for storing a file provided by an embodiment of the present application;
FIG. 17 is a schematic structural diagram of an apparatus for storing files according to an embodiment of the present application;
FIG. 18 is a second schematic structural diagram of a document storage apparatus according to an embodiment of the present application;
FIG. 19 is a third schematic structural diagram of an apparatus for storing documents according to an embodiment of the present application;
FIG. 20 is a fourth schematic structural diagram of a file storage apparatus according to an embodiment of the present application;
FIG. 21 is a fifth exemplary diagram illustrating a file storage apparatus according to an embodiment of the present disclosure;
fig. 22 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 23 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes the file storage method provided by the embodiment of the present application in detail through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for storing a file according to an embodiment of the present application, where an execution subject of the method may be a shooting device, or a control module in the shooting device for executing a method for shooting and storing a file. Specifically, the photographing device may include, but is not limited to, a mobile phone having a photographing and storing function, or a communication device such as a tablet computer.
The following describes a method for storing files provided by an embodiment of the present application with reference to steps in fig. 1.
Step 110: receiving a first input of a user;
step 120: and determining a target storage path of the multimedia file to be shot in response to the first input.
In the embodiment of the application, a first input triggers the determination of a target storage path, and then the target multimedia file is stored according to the target storage path when the target multimedia file is shot.
Step 130: receiving a second input of shooting by the user on the shooting preview interface;
step 140: and responding to the second input, shooting a target multimedia file, and storing the target multimedia file into a target album corresponding to the target storage path.
The second input may be a trigger operation of a photographing button or a pressing operation of a physical button. And triggering a shooting instruction through a second input, and shooting by the shooting equipment based on the shooting instruction to obtain multimedia files such as photos or videos. In the case that the target storage path is determined before the photographing, the target multimedia file may be immediately stored in the corresponding target album while the target multimedia file is obtained by the photographing.
In the embodiment of the application, the target storage path of the multimedia file to be shot is determined before the multimedia file is shot, so that the shot target multimedia file can be distributed to the corresponding target album immediately when the multimedia file is shot. Therefore, according to the technical scheme provided by the embodiment of the application, the target storage path is obtained in advance when the target multimedia file is shot, the problem of low efficiency caused by the existing after-treatment scheme is solved, and the efficiency of classifying and treating the shot multimedia file is improved.
Optionally, the target album may be one or more, and when there are multiple target albums, the target multimedia file may be stored in multiple albums at the same time, which is not limited herein.
Optionally, referring to fig. 2, an embodiment of the present application provides a method for determining file storage of a target storage path before receiving a first input, and the steps of the method are specifically described as follows.
Step 210: receiving a third input of the user;
step 220: and responding to the third input, and displaying a setting interface of a storage folder of the multimedia file to be shot.
Specifically, the third input is one of the following inputs:
triggering operation on a camera icon;
and performing sliding operation on the touch screen based on the target gesture action.
Optionally, in a case that the third input is a trigger operation on a camera icon and the trigger operation satisfies a target trigger condition, a setting interface of a storage folder of the multimedia file to be shot is displayed in response to the third input.
Under the condition that the trigger operation meets a target trigger condition, responding to the second input, and displaying a setting interface of a storage folder;
wherein the target trigger condition comprises at least one of:
the trigger operation is pressing, and the pressing time length exceeds the target time length;
the trigger operation is pressing and the pressing pressure exceeds the target pressure;
the trigger operation is a target type trigger action.
Specifically, the third input is a start operation of a setting interface of the storage folder. In practical application, for example, the camera icon is pressed for a long time and the pressing time exceeds the set target time, or the camera icon is pressed for a long time and the pressing pressure exceeds the set target pressure, or the camera icon is clicked for two or three times, and the like.
Step 230: receiving a first input of a user on a setting interface of the storage folder;
step 240: responding to the first input, obtaining the target storage path corresponding to the set storage folder, and displaying the shooting preview interface;
step 250: receiving a second input of shooting by the user on the shooting preview interface;
step 260: and responding to the second input, shooting a target multimedia file, and storing the target multimedia file into a target album corresponding to the target storage path.
For the specific form of the first input shown in fig. 2, reference may be made to the first input in the embodiment shown in fig. 1, and for the specific form of the second input shown in fig. 2, reference may be made to the second input in the embodiment shown in fig. 1, which will not be described in detail herein.
In the embodiment of the application, the shooting preview interface may be activated or not activated when the third input is received. And under the condition of not starting, the third input is starting operation of the shooting preview interface, and a starting instruction of the shooting preview interface is triggered, but before the shooting preview interface is started, the shooting equipment displays a setting interface of the storage folder, and immediately starts and displays the shooting preview interface when a target storage path is obtained. According to the method and the device, the setting process of the target storage path is integrated into the starting process of the shooting preview interface, and the shooting preview interface is started immediately when the target album corresponding to the target storage path is set.
When the shooting preview interface is started, the third input is foreground display switching operation of the shooting preview interface under the condition that the shooting preview interface is switched to a background operation, but before the shooting preview interface is displayed, a setting interface of the storage folder is displayed, and when a target storage path is obtained, the shooting preview interface is immediately switched to the foreground to display.
Alternatively, the specific form of the third input may be different from the start operation or the foreground display switching operation of the single shooting preview interface.
In the embodiment of the present application, the specific form of the third input may be different from the start operation of the single shooting preview interface. For example, the start operation of the shooting preview interface is to click a camera icon, the shooting preview interface can be started immediately without displaying the setting interface of the storage folder, and when the second input is to press the camera icon for a long time, press the camera icon again or double click the camera icon, the setting interface of the storage folder is displayed first, and then the shooting preview interface is displayed.
Optionally, in a case that the setting interface of the storage folder includes identifiers of a plurality of storage folders, the first input is a selection operation of a user on an identifier of a target storage folder in the identifiers of the plurality of storage folders, and the target storage path is a storage path of the target storage folder.
The setting interface of the storage folders can be displayed in a menu form, and the identifications of the plurality of storage folders are displayed in a menu option form. In this way, in response to the third input, a pull-down menu is displayed that displays the identities of the plurality of storage folders as menu options.
Alternatively, the setting interface of the storage folder may be displayed in the form of an icon folder. In this way, in response to the third input, a plurality of icon folders, which correspond to the plurality of storage folders, respectively, are displayed.
In this embodiment, the correspondence between each storage folder and the storage path is set in advance, and the storage folders and the storage paths may be in one-to-one correspondence, so that the target storage path may be determined according to the selection of the user on the identifier of the target storage folder.
In a specific application scenario, referring to fig. 3, the shooting device receives a long press or a double press or double-click of a camera icon by a user, and pops up scrollable menus, where each menu corresponds to a photo attribution album option for the user to select.
Fig. 3 illustrates menu options for the "shoot to" portal including, by way of example and not limitation, shoot to temporary album, shoot to landscape album, shoot to home album, shoot to private album, etc. shoot to … album.
In a specific application scenario, referring to fig. 4, a plurality of entries "shoot to xxx album" are combined into a "camera" icon in a manner similar to an application folder organization manner, after a user clicks the "camera" icon, a shooting device receives a click operation of the user, pops up the icon folder, and displays the "shoot to xxx album" icon folder for the user to select.
In the "shoot to" entry, icons of a plurality of albums, such as a temporary album, a style album, a date album, a family album, a private album, and the like pop up, which is an example and will not be described in detail.
Optionally, in a case that the setting interface of the storage folder is an input window, the third input is a text input of an identifier of the storage folder in the input window by a user, and the target storage path is a storage path corresponding to the storage folder having the identifier.
In this embodiment, a text input of a user is received through an input window, and with an identifier, such as a name, of an input target album as a keyword, the photographing apparatus automatically searches the storage folder and displays an icon of the corresponding target album for the user to confirm.
Alternatively, the input text content may be the name of a target album to be created, and in response to the text input, a storage folder corresponding to the target album is created with the input text as the name of the target album and a target storage path is allocated to the target album.
In addition, the sliding operation of the touch screen based on the target gesture motion may be a command for triggering a shooting preview interface, and at this time, a setting interface of the storage folder is automatically popped up at first.
Optionally, referring to fig. 5, an embodiment of the present application provides a method for determining text storage of a target storage path before receiving a first input, and steps of the method are described as follows.
Step 510: receiving a fourth input by the user;
step 520: displaying a negative one-screen in response to the fourth input, wherein a plurality of icon folders are disposed on the negative one-screen.
In this embodiment, the photographing apparatus presets one minus screen in advance, and icon folders of a plurality of storage folders are loaded in the one minus screen. Wherein, the fourth input may be a sliding operation on the touch screen, such as sliding up, sliding down, sliding left, or sliding right, to switch to minus one screen. The fourth input may also be a manipulation of a physical button, which is not limited herein.
In a specific application scenario, referring to fig. 6, the user slides to the negative one screen, and the "shoot to xxx album" icons are arranged in the negative one screen in the form of an icon matrix for the user to select.
With continued reference to FIG. 5, step 530: receiving a first input of a user selecting a target icon folder from a plurality of icon folders;
step 540: responding to the first input, and obtaining a target storage path corresponding to the target icon folder;
step 550: receiving a second input of the user;
step 560: and responding to the second input, shooting a target multimedia file, and storing the target multimedia file into a target album corresponding to the target storage path.
For the specific form of the first input shown in fig. 2, reference may be made to the first input in the embodiment shown in fig. 1, and for the specific form of the second input shown in fig. 2, reference may be made to the second input in the embodiment shown in fig. 1, which will not be described in detail herein.
Optionally, referring to fig. 7, an embodiment of the present application provides a method for determining folder storage of a target storage path before receiving a first input, and steps of the method are described as follows.
Step 710: receiving a sixth input of the target physical key or the physical key combination by the user;
step 720: and responding to the sixth input, displaying a shooting preview interface, and obtaining the target storage path corresponding to the target physical key or the physical key combination.
In a specific application scenario, a shortcut key setting entry may be provided in a system setting, and user configuration is supported, for example: the combination of volume plus intelligent key is correspondingly turned on and the camera is shot to a long-term album by default; and the combination of volume reduction plus intelligent key is corresponding to the camera opening and the default shooting to temporary photo album.
Wherein, the wisdom key is a virtual or entity button on the smart machine, and this wisdom key is different from the last button that corresponds fixed function of smart machine, and the function of wisdom key is customizable, allows the user-defined.
Step 730: receiving a second input of shooting by the user on the shooting preview interface;
step 740: and responding to the second input, shooting a target multimedia file, and storing the target multimedia file into a target album corresponding to the target storage path.
The specific form of the second input shown in fig. 2 may refer to the second input in the embodiment shown in fig. 1, and will not be described in detail here.
In the embodiment of the application, a specific shortcut key or a shortcut key combination is configured in advance, so that in practical application, when the specific shortcut key or the shortcut key combination is detected to be triggered, a camera is opened and a target album is obtained in response to the trigger.
Optionally, in a specific application scenario, referring to fig. 8, the file storage method includes the following steps:
step 810: receiving input of a user at a camera inlet, wherein the camera inlet is a camera icon, a physical key of a shooting device or a negative screen, and a camera program is started immediately and a shooting preview interface is displayed when the camera slides from a current interface to the negative screen;
step 820: displaying an album setting interface at the camera portal in response to the input;
step 830: receiving and responding to the selection of a target album by a user, starting a camera, and entering a shooting preview interface;
step 840: receiving and responding to the click of a shutter by a user, and taking one or a group of photos, wherein the specific form of the shutter can be a screen button or a physical key;
step 850: and storing the pictures obtained by shooting to a target album set by the camera entrance.
Optionally, referring to fig. 9, a method for determining file storage of a target storage path before receiving a first input provided by an embodiment of the present application includes the following steps:
step 910: receiving a fifth input of the user in a case where the photographing preview interface is displayed;
step 920: displaying a plurality of album identification options on a shooting preview interface in response to a fifth input;
step 930: receiving a first input of a user selecting a target album option from a plurality of album identification options;
step 940: responding to a first input, and obtaining the target storage path corresponding to a target album option;
step 950: receiving a second input of shooting by the user on the shooting preview interface;
step 960: and responding to the second input, shooting a target multimedia file, and storing the target multimedia file into a target album corresponding to the target storage path.
In this embodiment, in the case of starting and displaying a shooting preview interface, before shooting a target multimedia file, an album identification option is displayed for a user to select.
In a specific application scenario, referring to fig. 10, a left-sliding operation is received in a shooting preview interface, and an album option is displayed on the right side of a screen; and receiving the selection of the user on the album option B, and magnifying and displaying the icon of the album option B.
Alternatively, referring to fig. 11, a slide-up operation is received in the capture preview interface, popping up an album option for selection by the user.
Therefore, the form of the fifth input is not limited.
Optionally, in a case where the user selects an option of the target album among the album identification options, the plurality of options are not displayed on the photographing preview interface. This can avoid multiple album identification options from obscuring the view in the capture preview interface.
Based on this concept, in a specific application scenario, referring to fig. 12, the method for storing the file includes the following steps:
step 1210: starting a camera program, and entering a shooting preview interface;
step 1220: responding to user triggering, displaying a selection column of shooting to xxx album, and receiving a selection of a target album by a user;
step 1230: receiving and responding to a click of a shutter by a user, and taking one or a group of photos;
step 1240: storing the shot pictures into the target album;
step 1250: receiving the trigger of a user on a shooting preview interface;
returning to step 1220, the album switching is implemented.
According to the embodiment, the requirement of the user for switching the target album in the shooting process is met, and the shot pictures after switching are stored in a new target album.
Optionally, referring to fig. 13, a method for providing folder storage based on setting of a target storage path in a multimedia file preview interface display process according to an embodiment of the present application includes the following steps:
step 1310: receiving a first input of a user;
step 1320: determining a target storage path of a multimedia file to be shot in response to the first input;
step 1330: receiving a second input of shooting by the user on the shooting preview interface;
step 1340: responding to the second input, shooting a target multimedia file, and storing the target multimedia file into a target album corresponding to the target storage path;
step 1350: receiving a sixth input of the user;
step 1360: responding to the sixth input, displaying a multimedia file preview interface of the target multimedia file, and displaying a plurality of icon folders on the multimedia file preview interface;
step 1370: receiving a seventh input that the user selects a target icon folder from the icon folders;
step 1380: and responding to the seventh input, and storing the target multimedia file to a storage path corresponding to the target icon folder.
The multimedia file preview interface is an interface for displaying and reviewing the target multimedia file shot after the camera is started currently under the condition that the target multimedia file is shot and the camera program is not exited. Under the condition that the current target multimedia file is displayed through the multimedia file preview interface, the current camera program does not exit, and at the moment, a storage path can be determined for the target multimedia file which is displayed immediately. After storage, the user can immediately return to the shooting preview interface or exit the camera program.
In this embodiment, on the basis of determining the target storage path of the target multimedia file, the storage path may be further determined again according to a user selection through the multimedia file preview interface. In this case, the target multimedia file may be transferred to the storage path determined again from the target album corresponding to the target storage path, or may be copied to the storage path determined again.
In a specific application scenario, referring to the steps of the file storage method shown in fig. 14:
step 1410: after the picture is obtained by shooting, entering a multimedia file preview interface, and displaying the picture shot after the starting;
step 1420: the shooting equipment displays a photo album entry of 'shooting to …' for the user to select a photo attribution photo album;
step 1430: and the shooting equipment stores the photos to the photo attribution photo album selected by the user.
Referring to fig. 15, after a photo is taken, receiving a trigger of a user to an icon corresponding to a multimedia file preview interface; referring to fig. 16, in response to the trigger, the photograph just taken is displayed instantaneously, and icon folders for respective albums, such as "temporary album", "album 1", "album 2", "album 3", … …, are displayed below the screen for the user to select.
Optionally, when the target album includes a temporary album, in a case where the time length of the photo stored in the target album exceeds a target time length, the photo is deleted.
The target duration is preset, the shooting device scans the temporary photo album through a preset timing task, and automatically deletes the photo album after the photo is found to be out of date, and the photo is moved to the recently deleted photo album. This can clear up system redundancy in time, alleviates the storage burden.
In the file storage method provided in the embodiment of the present application, the execution subject may be a shooting device, or a control module in the shooting device for executing shooting and file storage methods. The embodiment of the present application describes a shooting device provided in the embodiment of the present application by taking a method for executing shooting and storing a file by a shooting device as an example.
Referring to fig. 17, the apparatus includes:
a first receiving module 1710, which receives a first input of a user;
the determining module 1720, responding to the first input, determining a target storage path of the multimedia file to be shot;
the second receiving module 1730, which receives a second input of the user to perform the shooting on the shooting preview interface;
the shooting module 1740 is configured to, in response to the second input, shoot a target multimedia file, and store the target multimedia file in a target album corresponding to the target storage path.
Alternatively, referring to fig. 18, compared to the apparatus shown in fig. 17, the apparatus may further include:
a third receiving module 1810 that receives a third input from the user before receiving the first input from the user;
the first display module 1820, in response to the third input, displays a setting interface of a storage folder of the multimedia file to be shot;
the first receiving module 1830 is specifically configured to receive a first input of a user on a setting interface of the storage folder;
the determining module 1840 is specifically configured to, in response to the first input, obtain the target storage path corresponding to the set storage folder, and display the shooting preview interface.
Optionally, in a case that the setting interface of the storage folders includes identifiers of a plurality of storage folders, the first input is a selection operation of a user on an identifier of a target storage folder in the identifiers of the plurality of storage folders, and the target storage path is a storage path of the target storage folder; or
And under the condition that the setting interface is an input window, the first input is text input of the identification of the storage folder in the input window by a user, and the target storage path is a storage path corresponding to the storage folder with the identification.
Optionally, in a case that the third input is a trigger operation on a camera icon, the first display module is specifically configured to:
under the condition that the third input is trigger operation on a camera icon and the trigger operation meets a target trigger condition, responding to the third input, and displaying a setting interface of a storage folder of the multimedia file to be shot;
wherein the target trigger condition comprises at least one of:
the trigger operation is pressing, and the pressing time length exceeds the target time length;
the trigger operation is pressing and the pressing pressure exceeds the target pressure;
the trigger operation is a target type trigger action.
Alternatively, referring to fig. 19, compared to the apparatus shown in fig. 17, the apparatus may further include:
a fourth receiving module 1910 receiving a fourth input of the user before receiving the first input of the user;
a second display module 1920 that, in response to the fourth input, displays a negative one-screen on which a plurality of icon folders are disposed;
the first receiving module 1930 is specifically configured to receive a first input that a user selects a target icon folder from the plurality of icon folders;
the determining module 1940 is specifically configured to, in response to the first input, obtain the target storage path corresponding to the target icon folder.
Referring to fig. 20, the present apparatus may further include, as compared to the apparatus shown in fig. 17:
a fifth receiving module 2010, configured to receive a fifth input of the user when the shooting preview interface is displayed before the first input of the user is received;
a third display module 2020 displaying a plurality of album identification options on the photographing preview interface in response to the fifth input;
the first receiving module 2030 is specifically configured to receive a first input that a user selects a target album option from the plurality of album identification options;
the determining module 2040 is specifically configured to, in response to the first input, obtain the target storage path corresponding to the target album option.
Alternatively, referring to fig. 21, compared to the apparatus shown in fig. 17, the apparatus may further include:
a sixth receiving module 2110 for receiving a sixth input from the user;
a fourth display module 2120, configured to display a multimedia file preview interface of the target multimedia file in response to the sixth input, and display a plurality of icon folders on the multimedia file preview interface;
a seventh receiving module 2130, configured to receive a seventh input that the user selects a target icon folder from among the icon folders;
the storage module 2140, in response to the seventh input, stores the target multimedia file to the storage path corresponding to the target icon folder.
By using the file storage device of the embodiment of the application, the target storage path of the multimedia file to be shot is determined before the multimedia file is shot, so that the shot target multimedia file can be distributed to the corresponding target album immediately when the multimedia file is shot. Therefore, according to the technical scheme provided by the embodiment of the application, the target storage path is obtained in advance when the target multimedia file is shot, the problem of low efficiency caused by the existing after-treatment scheme is solved, and the efficiency of classifying and treating the shot multimedia file is improved.
The file storage device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The file storage device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The file storage device provided in the embodiment of the present application can implement each process implemented by the method embodiments in fig. 1 to fig. 16, and is not described here again to avoid repetition.
Optionally, as shown in fig. 22, an electronic device 2200 is further provided in this embodiment of the present application, and includes a processor 2201, a memory 2202, and a program or an instruction stored in the memory 2202 and executable on the processor 2201, where the program or the instruction, when executed by the processor 2201, implements each process of the above-mentioned method embodiment of storing a file, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 23 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 2300 includes, but is not limited to: radio frequency unit 2301, network module 2302, audio output unit 2303, input unit 2304, sensor 2305, display unit 2306, user input unit 2307, interface unit 2308, memory 2309, and processor 2310.
Those skilled in the art will appreciate that the electronic device 2300 may also include a power supply (e.g., a battery) to power the various components, which may be logically coupled to the processor 2310 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 23 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description thereof is omitted.
The input unit 2304 is configured to receive a first input of a user;
a processor 2310 for determining a target storage path of a multimedia file to be photographed in response to the first input;
an input unit 2304, further configured to receive a second input of shooting at the shooting preview interface by the user;
the processor 2310 is further configured to capture a target multimedia file in response to the second input, and store the target multimedia file in a target album corresponding to the target storage path.
With the electronic equipment of the embodiment, by determining the target storage path of the multimedia file to be shot before shooting the multimedia file, the shot target multimedia file can be distributed into the corresponding target album immediately when the multimedia file is shot. Therefore, according to the technical scheme provided by the embodiment of the application, the target storage path is obtained in advance when the target multimedia file is shot, the problem of low efficiency caused by the existing after-treatment scheme is solved, and the efficiency of classifying and treating the shot multimedia file is improved. Optionally, the input unit 2304 is further configured to receive a third input from the user before the receiving the first input from the user;
a display unit 2306 for displaying a setting interface of a storage folder of a multimedia file to be photographed in response to the third input;
an input unit 2304, further configured to receive a first input of a user on a setting interface of the storage folder;
the processor 2310 is further configured to, in response to the first input, obtain the target storage path corresponding to the set storage folder, and display the shooting preview interface through the display unit 2306.
Optionally, the input unit 2304 is further configured to receive a fourth input of the user before the receiving of the first input of the user;
a display unit 2306, further configured to display a negative one-screen in response to the fourth input, wherein a plurality of icon folders are disposed on the negative one-screen;
an input unit 2304, further configured to receive a first input that a user selects a target icon folder among the plurality of icon folders;
the processor 2310 is further configured to, in response to the first input, obtain the target storage path corresponding to the target icon folder.
Optionally, the input unit 2304 is further configured to receive a fifth input from the user while the shooting preview interface is displayed;
a display unit 2306, further configured to display a plurality of album identification options on the shooting preview interface in response to the fifth input;
an input unit 2304, further configured to receive a first input that a user selects a target album option among the plurality of album identification options;
the processor 2310 is further configured to obtain the target storage path corresponding to the target album option in response to the first input.
Optionally, the input unit 2304 is further configured to receive a sixth input from the user;
a display unit 2306, further configured to display a multimedia file preview interface of the target multimedia file in response to the sixth input, and display a plurality of icon folders on the multimedia file preview interface;
an input unit 2304, further configured to receive a seventh input that a user selects a target icon folder among the icon folders;
the processor 2310 is further configured to, in response to the seventh input, store the target multimedia file to a storage path corresponding to the target icon folder.
It should be understood that in the embodiment of the present application, the input Unit 2304 may include a Graphics Processing Unit (GPU) 2341 and a microphone 2342, and the Graphics processor 2341 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 2306 may include a display panel 2361, and the display panel 2361 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 2307 includes a touch panel 2371 and other input devices 2372. The touch panel 2371 is also referred to as a touch screen. The touch panel 2371 may include two parts of a touch detection device and a touch controller. Other input devices 2372 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 2309 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 2310 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor can be separate from and integrated with the processor 2310.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the method for storing a file according to the embodiment of the present application, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the method and embodiment of file storage, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the processes of the recording method embodiment are implemented, and the same technical effects can be achieved, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (17)

1. A method of file storage, comprising:
receiving a first input of a user;
determining a target storage path of a multimedia file to be shot in response to the first input;
receiving a second input of shooting by the user on the shooting preview interface;
and responding to the second input, shooting a target multimedia file, and storing the target multimedia file into a target album corresponding to the target storage path.
2. The method of file storage according to claim 1, wherein prior to said receiving a first input from a user, said method further comprises:
receiving a third input of the user;
responding to the third input, and displaying a setting interface of a storage folder of the multimedia file to be shot;
the receiving a first input of a user comprises:
receiving a first input of a user on a setting interface of the storage folder;
the determining a target storage path of the multimedia file to be shot in response to the first input comprises:
and responding to the first input, obtaining the target storage path corresponding to the set storage folder, and displaying the shooting preview interface.
3. The method of claim 2, wherein in the case that the setting interface of the storage folder comprises identifications of a plurality of storage folders, the first input is a user selection operation of an identification of a target storage folder in the identifications of the plurality of storage folders, and the target storage path is a storage path of the target storage folder; or
And under the condition that the setting interface of the storage folder is an input window, the first input is text input of the identification of the storage folder in the input window by a user, and the target storage path is the storage path corresponding to the storage folder with the identification.
4. The method for storing files according to claim 3, wherein in the case that the third input is a trigger operation on a camera icon, the displaying a setting interface of a storage folder of multimedia files to be shot in response to the third input includes:
under the condition that the third input is trigger operation on a camera icon and the trigger operation meets a target trigger condition, responding to the third input, and displaying a setting interface of a storage folder of the multimedia file to be shot;
wherein the target trigger condition comprises at least one of:
the trigger operation is pressing, and the pressing time length exceeds the target time length;
the trigger operation is pressing and the pressing pressure exceeds the target pressure;
the trigger operation is a target type trigger action.
5. The method of file storage according to claim 1, wherein prior to said receiving a first input from a user, said method further comprises:
receiving a fourth input by the user;
displaying a negative one-screen in response to the fourth input, wherein a plurality of icon folders are arranged on the negative one-screen;
the receiving a first input of a user comprises:
receiving a first input of a user selecting a target icon folder among the plurality of icon folders;
the determining a target storage path of the multimedia file to be shot in response to the first input comprises:
and responding to the first input, and obtaining the target storage path corresponding to the target icon folder.
6. The method of file storage according to claim 1, wherein prior to said receiving a first input from a user, said method further comprises:
receiving a fifth input of a user under the condition that the shooting preview interface is displayed;
displaying a plurality of album identification options on the shooting preview interface in response to the fifth input;
the receiving a first input of a user comprises:
receiving a first input of a user for selecting a target album option from the plurality of album identification options;
the determining a target storage path of the multimedia file to be shot in response to the first input comprises:
and responding to the first input, and obtaining the target storage path corresponding to the target album option.
7. The method of file storage according to claim 1, further comprising:
receiving a sixth input of the user;
responding to the sixth input, displaying a multimedia file preview interface of the target multimedia file, and displaying a plurality of icon folders on the multimedia file preview interface;
receiving a seventh input that a user selects a target icon folder in each icon folder;
and responding to the seventh input, and storing the target multimedia file to a storage path corresponding to the target icon folder.
8. An apparatus for file storage, comprising:
the first receiving module receives a first input of a user;
the determining module is used for responding to the first input and determining a target storage path of the multimedia file to be shot;
the second receiving module is used for receiving a second input of shooting performed by the user on the shooting preview interface;
and the shooting module is used for responding to the second input, shooting the target multimedia file and storing the target multimedia file into the target album corresponding to the target storage path.
9. The apparatus for file storage according to claim 8, wherein said apparatus further comprises:
a third receiving module, receiving a third input of the user before the receiving the first input of the user;
the first display module responds to the third input and displays a setting interface of a storage folder of the multimedia file to be shot;
the first receiving module is specifically used for receiving a first input of a user on a setting interface of the storage folder;
the determining module is specifically configured to, in response to the first input, obtain the target storage path corresponding to the set storage folder, and display the shooting preview interface.
10. The apparatus for storing files according to claim 9, wherein in case that the setting interface of the storage folder includes identifications of a plurality of storage folders, the first input is a user selection operation of an identification of a target storage folder among the identifications of the plurality of storage folders, and the target storage path is a storage path of the target storage folder; or
And under the condition that the setting interface is an input window, the first input is text input of the identification of the storage folder in the input window by a user, and the target storage path is a storage path corresponding to the storage folder with the identification.
11. The apparatus according to claim 10, wherein in a case where the third input is a trigger operation on a camera icon, the first display module is specifically configured to:
under the condition that the third input is trigger operation on a camera icon and the trigger operation meets a target trigger condition, responding to the third input, and displaying a setting interface of a storage folder of the multimedia file to be shot;
wherein the target trigger condition comprises at least one of:
the trigger operation is pressing, and the pressing time length exceeds the target time length;
the trigger operation is pressing and the pressing pressure exceeds the target pressure;
the trigger operation is a target type trigger action.
12. The apparatus for file storage according to claim 8, wherein said apparatus further comprises:
the fourth receiving module receives a fourth input of the user before receiving the first input of the user;
the second display module responds to the fourth input and displays a negative one screen, wherein a plurality of icon folders are arranged on the negative one screen;
the first receiving module is specifically configured to receive a first input that a user selects a target icon folder from the plurality of icon folders;
the determining module is specifically configured to, in response to the first input, obtain the target storage path corresponding to the target icon folder.
13. The apparatus for file storage according to claim 8, wherein said apparatus further comprises:
the fifth receiving module is used for receiving a fifth input of the user under the condition that the shooting preview interface is displayed before the first input of the user is received;
the third display module responds to the fifth input and displays a plurality of album identification options on the shooting preview interface;
the first receiving module is specifically used for receiving a first input of a user for selecting a target album option from the plurality of album identification options;
the determining module is specifically configured to, in response to the first input, obtain the target storage path corresponding to the target album option.
14. The apparatus for file storage according to claim 8, wherein said apparatus further comprises:
a sixth receiving module, configured to receive a sixth input from the user;
the fourth display module responds to the sixth input, displays a multimedia file preview interface of the target multimedia file, and displays a plurality of icon folders on the multimedia file preview interface;
a seventh receiving module, configured to receive a seventh input that a user selects a target icon folder from among the icon folders;
and the storage module responds to the seventh input and stores the target multimedia file to the storage path corresponding to the target icon folder.
15. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the method of file storage according to claims 1-7.
16. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the method of file storage according to claims 1-7.
17. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of file storage according to any one of claims 1 to 7 when executed by a processor.
CN202111004250.9A 2021-08-30 2021-08-30 File storage method and device Pending CN113672745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111004250.9A CN113672745A (en) 2021-08-30 2021-08-30 File storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111004250.9A CN113672745A (en) 2021-08-30 2021-08-30 File storage method and device

Publications (1)

Publication Number Publication Date
CN113672745A true CN113672745A (en) 2021-11-19

Family

ID=78547378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111004250.9A Pending CN113672745A (en) 2021-08-30 2021-08-30 File storage method and device

Country Status (1)

Country Link
CN (1) CN113672745A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023151512A1 (en) * 2022-02-08 2023-08-17 维沃移动通信有限公司 Multimedia file management method and apparatus, electronic device, and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023151512A1 (en) * 2022-02-08 2023-08-17 维沃移动通信有限公司 Multimedia file management method and apparatus, electronic device, and medium

Similar Documents

Publication Publication Date Title
CN113093968B (en) Shooting interface display method and device, electronic equipment and medium
CN110572575A (en) camera shooting control method and device
CN112269508A (en) Display method and device and electronic equipment
CN112948844B (en) Control method and device and electronic equipment
CN113311968B (en) Application program association method and device
CN112954046A (en) Information sending method, information sending device and electronic equipment
CN112083854A (en) Application program running method and device
CN113849092A (en) Content sharing method and device and electronic equipment
CN113253883A (en) Application interface display method and device and electronic equipment
CN113672745A (en) File storage method and device
CN112416212B (en) Program access method, apparatus, electronic device and readable storage medium
CN112399010B (en) Page display method and device and electronic equipment
CN111880701B (en) Page switching method and device and electronic equipment
CN112187626B (en) File processing method and device and electronic equipment
CN112035026B (en) Information display method and device, electronic equipment and storage medium
CN113590008A (en) Chat message display method and device and electronic equipment
CN112383709A (en) Picture display method, device and equipment
WO2022247830A1 (en) Picture management method and apparatus, and electronic device
CN112783388A (en) Display method, display device and electronic equipment
CN113127425B (en) Picture processing method and device and electronic equipment
CN113271378B (en) Image processing method and device and electronic equipment
CN113794833B (en) Shooting method and device and electronic equipment
CN113163256B (en) Method and device for generating operation flow file based on video
CN113779293A (en) Image downloading method, device, electronic equipment and medium
CN112764648A (en) Screen capturing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination