Movatterモバイル変換


[0]ホーム

URL:


CN110647500A - File storage method, device, terminal and computer-readable storage medium - Google Patents

File storage method, device, terminal and computer-readable storage medium
Download PDF

Info

Publication number
CN110647500A
CN110647500ACN201910902221.0ACN201910902221ACN110647500ACN 110647500 ACN110647500 ACN 110647500ACN 201910902221 ACN201910902221 ACN 201910902221ACN 110647500 ACN110647500 ACN 110647500A
Authority
CN
China
Prior art keywords
file
original
photo
storage
target
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
CN201910902221.0A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910902221.0ApriorityCriticalpatent/CN110647500A/en
Publication of CN110647500ApublicationCriticalpatent/CN110647500A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The application belongs to the technical field of computers, and particularly relates to a file storage method, a file storage device, a file storage terminal and a computer-readable storage medium, wherein the method comprises the following steps: acquiring a first target file obtained by processing an original file and storage path information of the original file; synthesizing the storage path information of the original file into the first target file to generate a second target file; storing the second target file; the storage space of the terminal is saved while the file can support repeated editing operation, and the technical problem that the file storage needs to occupy a larger data storage space is solved. In addition, the data volume during file forwarding is reduced.

Description

Translated fromChinese
文件存储方法、装置、终端及计算机可读存储介质File storage method, device, terminal and computer-readable storage medium

技术领域technical field

本申请属于计算机技术领域,尤其涉及一种文件存储方法、装置、终端及计算机可读存储介质。The present application belongs to the field of computer technology, and in particular, relates to a file storage method, device, terminal, and computer-readable storage medium.

背景技术Background technique

目前,终端一般都会存储有大量的照片、音频、视频、文档等文件,并且,有可能需要对这些文件进行反复编辑的操作。At present, a terminal generally stores a large number of files such as photos, audios, videos, documents, etc., and it may be necessary to perform repeated editing operations on these files.

然而,为了保证文件可以支持反复编辑的操作,在对文件进行存储时一般需要同时存储修改后的文件和未经修改的原始文件,导致文件存储需要占用较大的存储空间。However, in order to ensure that the file can support repeated editing operations, it is generally necessary to store the modified file and the unmodified original file at the same time when the file is stored, so that the file storage needs to occupy a large storage space.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种文件存储方法、装置、终端及计算机可读存储介质,可以解决目前文件存储需要占用较大的存储空间的技术问题。The embodiments of the present application provide a file storage method, device, terminal, and computer-readable storage medium, which can solve the technical problem that the current file storage needs to occupy a large storage space.

本申请实施例第一方面提供一种文件存储方法,包括:A first aspect of the embodiments of the present application provides a file storage method, including:

获取对原始文件进行处理得到的第一目标文件,以及所述原始文件的存储路径信息;Obtain the first target file obtained by processing the original file, and the storage path information of the original file;

将所述原始文件的存储路径信息合成到所述第一目标文件中,生成第二目标文件;synthesizing the storage path information of the original file into the first target file to generate a second target file;

对所述第二目标文件进行存储。The second target file is stored.

本申请实施例第二方面提供一种文件存储装置,包括:A second aspect of the embodiments of the present application provides a file storage device, including:

获取单元,用于获取对原始文件进行处理得到的第一目标文件,以及所述原始文件的存储路径信息;an acquisition unit for acquiring the first target file obtained by processing the original file, and storage path information of the original file;

合成单元,用于将所述原始文件的存储路径信息合成到所述第一目标文件中,生成第二目标文件;a synthesizing unit for synthesizing the storage path information of the original file into the first target file to generate a second target file;

存储单元,用于对所述第二目标文件进行存储。The storage unit is used for storing the second target file.

本申请实施例第三方面提供一种终端,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述方法的步骤。A third aspect of an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the above method when the computer program is executed.

本申请实施例第四方面提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the foregoing method are implemented.

本申请实施例中,通过获取对原始文件进行处理得到的第一目标文件,以及原始文件的存储路径信息,并将原始文件的存储路径信息合成到第一目标文件中,生成第二目标文件,使得第二目标文件中不仅包括对原始文件进行处理得到的第一目标文件,还包括原始文件的存储路径信息,因此,在需要获取原始文件时,可以利用第二目标文件中保存的原始文件的存储路径信息,即可便捷地根据原始文件的路径信息查找到原始文件,使得终端可以不需要同时保存原始文件和第一目标文件,并且,也不需要将原始文件和第一目标文件保存成同一个文件,而只需要保存第二目标文件即可,实现了在保证文件可以支持反复编辑操作的同时,节约了终端的存储空间,特别是当终端存在对同一原始文件进行处理得到的多个第一目标文件时,只需要对一份原始文件进行存储即可,而不需要在每个第一目标文件中均合成一份原始文件,解决文件存储需要占用较大的数据存储空间的技术问题。另外,还减少了文件转发时的数据量;即,对文件进行转发时,只需要转发第二目标文件即可,不需要同时发送第一目标文件和原始文件。In the embodiment of the present application, the second target file is generated by acquiring the first target file obtained by processing the original file and the storage path information of the original file, and synthesizing the storage path information of the original file into the first target file, Make the second target file include not only the first target file obtained by processing the original file, but also the storage path information of the original file. Therefore, when the original file needs to be obtained, the original file saved in the second target file can be used. By storing the path information, the original file can be easily found according to the path information of the original file, so that the terminal does not need to save the original file and the first target file at the same time, and also does not need to save the original file and the first target file as the same file. One file, but only the second target file needs to be saved, which saves the storage space of the terminal while ensuring that the file can support repeated editing operations, especially when the terminal has multiple files obtained by processing the same original file. When there is one target file, only one original file needs to be stored, and one original file does not need to be synthesized in each first target file, which solves the technical problem that the file storage needs to occupy a large data storage space. In addition, the amount of data during file forwarding is also reduced; that is, when forwarding a file, only the second target file needs to be forwarded, and the first target file and the original file do not need to be sent at the same time.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following drawings will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.

图1是本申请实施例提供的一种文件存储方法的第一实现流程示意图;FIG. 1 is a schematic flowchart of a first implementation of a file storage method provided by an embodiment of the present application;

图2是本申请实施例提供的一种文件存储方法的步骤103的实现流程示意图;FIG. 2 is a schematic flowchart of the implementation ofstep 103 of a file storage method provided by an embodiment of the present application;

图3是本申请实施例提供的第二照片文件的存储结构示意图;3 is a schematic diagram of a storage structure of a second photo file provided by an embodiment of the present application;

图4是本申请实施例提供的一种文件存储方法步骤202的具体实现流程示意图;FIG. 4 is a schematic flowchart of a specific implementation of step 202 of a file storage method provided by an embodiment of the present application;

图5是本申请实施例提供的一种文件存储方法第二具体实现流程示意图;5 is a schematic flowchart of a second specific implementation of a file storage method provided by an embodiment of the present application;

图6是本申请实施例提供的对原始照片文件进行处理的效果示意图;6 is a schematic diagram of the effect of processing an original photo file provided by an embodiment of the present application;

图7是本申请实施例提供的对原始照片文件进行处理得到第一照片文件的实现流程示意图;7 is a schematic flowchart of an implementation of processing an original photo file to obtain a first photo file provided by an embodiment of the present application;

图8是本申请实施例提供的文本区域的边缘特征点的示意图;8 is a schematic diagram of edge feature points of a text area provided by an embodiment of the present application;

图9是本申请实施例提供的对待显示照片进行显示的实现流程示意图;FIG. 9 is a schematic flowchart of an implementation of displaying a photo to be displayed provided by an embodiment of the present application;

图10a是本申请实施例提供的对待显示照片进行显示的第一示意图;10a is a first schematic diagram of displaying a photo to be displayed provided by an embodiment of the present application;

图10b是本申请实施例提供的对待显示照片进行显示的第二示意图;10b is a second schematic diagram of displaying a photo to be displayed provided by an embodiment of the present application;

图11是本申请实施例提供的文件存储装置的结构示意图;11 is a schematic structural diagram of a file storage device provided by an embodiment of the present application;

图12是本申请实施例提供的终端的结构示意图。FIG. 12 is a schematic structural diagram of a terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other features , whole, step, operation, element, component and/or the presence or addition of a collection thereof.

还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the application herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.

还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .

如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting" . Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".

目前,终端一般都会存储有大量的照片、音频、视频、文档等文件,并且,有可能需要对这些文件进行反复编辑的操作。At present, a terminal generally stores a large number of files such as photos, audios, videos, documents, etc., and it may be necessary to perform repeated editing operations on these files.

然而,为了保证文件可以支持反复编辑操作,在对文件进行存储时一般需要同时存储修改后的文件和未经修改的原始文件,导致文件存储需要占用较大的存储空间。However, in order to ensure that the file can support repeated editing operations, it is generally necessary to store the modified file and the unmodified original file at the same time when the file is stored, so that the file storage needs to occupy a large storage space.

例如,在对原始文件A进行第一次编辑操作生成文件B之后,若仅仅保存文件B,则在需要以原始文件A为基础,重新进行文件编辑时,有可能会因为原始文件A的丢失而无法进行重新进行编辑。For example, after the first editing operation is performed on the original file A to generate the file B, if only the file B is saved, when the original file A needs to be re-edited, the original file A may be lost due to the loss of the original file. Re-editing is not possible.

因此,为了保证文件可以支持多次编辑操作,在对文件进行存储时一般需要同时存储修改后的文件和未经修改的原始文件。Therefore, in order to ensure that the file can support multiple editing operations, it is generally necessary to store the modified file and the unmodified original file at the same time when the file is stored.

例如,在需要对文档进行多个版本的修改时,可以将修改后的文档和未经修改的原始文档保存在同一个新文档中,以便在需要对原始文档重新进行编辑时,可以快速地找到原始文档。For example, when multiple versions of a document need to be modified, the modified document and the original unmodified document can be saved in the same new document, so that when the original document needs to be re-edited, it can be quickly found original document.

然而,该新文档占用的存储空间大于修改后的文档占用的存储空间,以及未经修改的原始文档占用的存储空间;所以,目前,同时存储修改后的文件和未经修改的原始文件时,容易导致文件存储需要占用较大的存储空间的问题。However, the storage space occupied by the new document is larger than the storage space occupied by the modified document and the storage space occupied by the original unmodified document; therefore, currently, when storing the modified file and the original unmodified file at the same time, It is easy to cause the problem that the file storage needs to occupy a large storage space.

基于此,本申请实施例提供一种文件存储方法、装置、终端及计算机可读存储介质,可以解决文件存储需要占用较大的数据存储空间的问题。Based on this, the embodiments of the present application provide a file storage method, device, terminal, and computer-readable storage medium, which can solve the problem that file storage needs to occupy a large data storage space.

为了说明本申请的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present application, the following specific embodiments are used for description.

如图1示出了本申请实施例提供的一种文件存储方法的实现流程示意图,该方法应用于终端,可以由终端上配置的文件存储装置执行,适用于需减少文件存储占用的数据存储空间的情形。其中,上述终端可以为手机、平板电脑、可穿戴设备等智能终端。FIG. 1 shows a schematic diagram of the implementation flow of a file storage method provided by an embodiment of the present application. The method is applied to a terminal, can be executed by a file storage device configured on the terminal, and is suitable for reducing the data storage space occupied by file storage. situation. Wherein, the above-mentioned terminal may be an intelligent terminal such as a mobile phone, a tablet computer, a wearable device, and the like.

在本申请的一些实施方式中,上述文件存储方法可以包括步骤101至步骤103。In some embodiments of the present application, the above-mentioned file storage method may includesteps 101 to 103 .

步骤101,获取对原始文件进行处理得到的第一目标文件,以及原始文件的存储路径信息。Step 101: Obtain a first target file obtained by processing the original file, and storage path information of the original file.

其中,上述原始文件可以包括照片、音频、视频、文档等多种类型的文件。Wherein, the above-mentioned original files may include files of various types such as photos, audios, videos, and documents.

上述获取对原始文件进行处理得到的第一目标文件,可以包括获取对原始照片文件进行文本提取、裁剪、美白、涂鸦、贴图等一种或多种处理操作得到的第一照片文件;或者,获取对原始视频文件进行拼接、剪辑等一种或多种处理操作得到的第一视频文件;或者,获取对原始文档文件进行增删操作得到的第一文档文件。The above-mentioned obtaining the first target file obtained by processing the original file may include obtaining the first photo file obtained by performing one or more processing operations such as text extraction, cropping, whitening, graffiti, mapping, etc. on the original photo file; or, obtaining The first video file obtained by performing one or more processing operations such as splicing and editing on the original video file; or, obtaining the first document file obtained by adding and deleting the original document file.

需要说明的是,上述仅仅是对文件的类型以及处理操作的类型进行举例说明,不表示为对文件的类型,以及对文件进行处理的处理类型的限定,在本申请的其他实施方式中,上述文件还可以包括其他类型的文件,相应的,上述对文件的处理操作也可以包括其他多种类型的处理操作。It should be noted that the above is only an illustration of the types of files and the types of processing operations, and is not meant to be a limitation on the types of files and the types of processing for processing files. In other embodiments of the present application, the above The files may also include other types of files, and accordingly, the above-mentioned processing operations on the files may also include other multiple types of processing operations.

步骤102,将原始文件的存储路径信息合成到第一目标文件中,生成第二目标文件。Step 102, synthesizing the storage path information of the original file into the first target file to generate a second target file.

步骤103,对第二目标文件进行存储。Step 103, store the second target file.

在本申请实施例中,上述原始文件的存储路径信息是指原始文件的存储位置信息。In the embodiment of the present application, the above-mentioned storage path information of the original file refers to the storage location information of the original file.

本申请实施例中,通过获取对原始文件进行处理得到的第一目标文件,以及原始文件的存储路径信息,并将原始文件的存储路径信息合成到第一目标文件中,生成第二目标文件,使得第二目标文件中不仅包括对原始文件进行处理得到的第一目标文件,还包括原始文件的存储路径信息,因此,在需要获取原始文件时,可以利用第二目标文件中保存的原始文件的存储路径信息,即可便捷地根据原始文件的路径信息查找到原始文件,使得终端可以不需要同时保存原始文件和第一目标文件,并且,也不需要将原始文件和第一目标文件保存成同一个文件,而只需要保存第二目标文件即可,实现了在保证文件可以支持反复编辑操作的同时,节约了终端的存储空间,特别是当终端存在对同一原始文件进行处理得到的多个第一目标文件时,只需要对一份原始文件进行存储即可,而不需要在每个第一目标文件中均合成一份原始文件,解决文件存储需要占用较大的数据存储空间的技术问题。另外,还减少了文件转发时的数据量;即,对文件进行转发时,只需要转发第二目标文件即可,不需要同时发送第一目标文件和原始文件。In the embodiment of the present application, the second target file is generated by acquiring the first target file obtained by processing the original file and the storage path information of the original file, and synthesizing the storage path information of the original file into the first target file, Make the second target file include not only the first target file obtained by processing the original file, but also the storage path information of the original file. Therefore, when the original file needs to be obtained, the original file saved in the second target file can be used. By storing the path information, the original file can be easily found according to the path information of the original file, so that the terminal does not need to save the original file and the first target file at the same time, and also does not need to save the original file and the first target file as the same file. One file, but only the second target file needs to be saved, which saves the storage space of the terminal while ensuring that the file can support repeated editing operations, especially when the terminal has multiple files obtained by processing the same original file. When there is one target file, only one original file needs to be stored, and one original file does not need to be synthesized in each first target file, which solves the technical problem that the file storage needs to occupy a large data storage space. In addition, the amount of data during file forwarding is also reduced; that is, when forwarding a file, only the second target file needs to be forwarded, and the first target file and the original file do not need to be sent at the same time.

在上述图1所示的文件存储方法中,如图2所示,将原始文件的存储路径信息合成到第一目标文件中,生成第二目标文件,可以包括:步骤201至步骤202。In the above file storage method shown in FIG. 1 , as shown in FIG. 2 , the storage path information of the original file is synthesized into the first target file to generate the second target file, which may include steps 201 to 202 .

步骤201,识别第一目标文件的数据结束标识符。Step 201: Identify the data end identifier of the first target file.

本申请实施例中,在对文件进行存储时,文件头部存储有数据起始标识符,而在文件的尾部存储有数据结束标识符,使得终端进行数据读取时,可以辨认出是否读完了整个文件。In the embodiment of the present application, when the file is stored, the data start identifier is stored at the head of the file, and the data end identifier is stored at the end of the file, so that when the terminal reads the data, it can identify whether the reading is completed. the entire file.

具体的,数据起始标识符用于标识文件内容的起始位置,数据结束标识符用于标识文件内容的结束位置。终端进行文件内容的读取时,需要识别出数据起始标识符,然后再依次读取出文件内容,并在识别到数据结束标识符时,结束文件内容的读取。Specifically, the data start identifier is used to identify the start position of the file content, and the data end identifier is used to identify the end position of the file content. When the terminal reads the file content, it needs to identify the data start identifier, and then read the file content in turn, and ends the reading of the file content when it recognizes the data end identifier.

因此,本申请实施例中可以识别到第一目标文件的数据结束标识符。Therefore, in this embodiment of the present application, the data end identifier of the first target file can be identified.

步骤202,在第一目标文件的数据结束标识符之后,增加原始文件的存储路径信息,得到所述第二目标文件。Step 202: After the data end identifier of the first target file, add storage path information of the original file to obtain the second target file.

本申请实施例中,通过识别第一目标文件的数据结束标识符,并在第一目标文件的数据结束标识符之后,增加原始文件的存储路径信息,得到第二目标文件,实现了在不影响终端对第一目标文件的读取的情况下,在第二目标文件中同时保存了原始文件的存储路径信息。In the embodiment of the present application, by identifying the data end identifier of the first target file, and after the data end identifier of the first target file, the storage path information of the original file is added to obtain the second target file, so that the second target file can be obtained without affecting the When the terminal reads the first target file, the storage path information of the original file is simultaneously stored in the second target file.

例如,如图3所示,当原始文件为原始照片文件时,获取对原始照片文件进行处理得到的第一照片文件之后,可以识别出第一照片文件的数据起始标识符(Start of Image,SoI)31以及数据结束标识符(End of Image,EoI)32,此时,将原始照片文件的存储路径信息33存放在第一照片的数据结束标识符32后面,得到与第一照片文件对应的第二照片文件。For example, as shown in FIG. 3, when the original file is an original photo file, after obtaining the first photo file obtained by processing the original photo file, the data start identifier (Start of Image, SoI) 31 and the data end identifier (End of Image, EoI) 32, at this time, thestorage path information 33 of the original photo file is stored in the back of thedata end identifier 32 of the first photo, and the corresponding data of the first photo file is obtained. Second photo file.

在实际应用中,当同一存储路径中包含多个不同文件对应的原始文件时,为了准确获取与第一目标文件对应的原始文件,如图4所示,上述在第一目标文件的数据结束标识符之后,增加原始文件的存储路径信息,得到第二目标文件,可以包括:步骤401至步骤402。In practical applications, when the same storage path contains multiple original files corresponding to different files, in order to accurately obtain the original file corresponding to the first target file, as shown in FIG. After the symbol is added, the storage path information of the original file is added to obtain the second target file, which may includesteps 401 to 402 .

步骤401,获取用于标识原始文件的标识参数。Step 401: Acquire identification parameters for identifying the original file.

在本申请的一些实施方式中,可以利用预先定义的幻数作为原始文件的标识参数。其中,幻数是指可以直接使用的常数,通常情况下,为用户自定义的数据,例如,定义为00021354ff。In some embodiments of the present application, a predefined magic number can be used as the identification parameter of the original file. Among them, the magic number refers to a constant that can be used directly. Usually, it is user-defined data, for example, it is defined as 00021354ff.

本申请实施例中,利用预先定义的幻数作为标识上述原始文件的标识参数可以使得该标识参数自由度较高,并且可以增强用户参与度。In the embodiment of the present application, using a predefined magic number as an identification parameter for identifying the above-mentioned original file can make the identification parameter have a higher degree of freedom, and can enhance user participation.

在本申请的另外一些实施例中,获取用于标识原始文件的标识参数时,还可以通过对原始文件的内容进行加密处理,得到用于标识上述原始文件的标识参数。In some other embodiments of the present application, when acquiring the identification parameter for identifying the original file, the identification parameter for identifying the above-mentioned original file may also be obtained by encrypting the content of the original file.

其中,对上述原始文件的内容进行加密处理,得到用于标识上述原始文件的标识参数,可以包括:利用哈希算法对上述原始文件的存储路径信息进行加密处理,得到上述原始文件的内容对应的哈希值,并利用该哈希值作为标识上述原始文件的标识参数。Wherein, performing encryption processing on the content of the above-mentioned original file to obtain an identification parameter for identifying the above-mentioned original file may include: using a hash algorithm to encrypt the storage path information of the above-mentioned original file, and obtaining the corresponding content of the above-mentioned original file. hash value, and use the hash value as an identification parameter for identifying the above-mentioned original file.

步骤402,在第一目标文件的数据结束标识符之后,增加原始文件的标识参数以及原始文件的存储路径信息,得到第二目标文件。Instep 402, after the data end identifier of the first target file, the identification parameter of the original file and the storage path information of the original file are added to obtain the second target file.

需要说明的是,上述幻数与加密处理得到的原始文件的标识参数是唯一的,也就是说,每个原始文件的标识参数是不同的,通过识别原始文件的标识参数即可从同一存储路径中的多个原始文件中获取到与第二目标文件唯一对应的原始文件。因此,在实际应用中,即使多个不同文件对应的原始文件存放在同一路径,也可以通过原始文件的存储路径信息和原始文件的标识参数获取到与第二目标文件对应的原始文件。It should be noted that the above magic number and the identification parameter of the original file obtained by the encryption process are unique, that is to say, the identification parameter of each original file is different, and the identification parameter of the original file can be identified from the same storage path. The original file uniquely corresponding to the second target file is obtained from the plurality of original files in . Therefore, in practical applications, even if the original files corresponding to multiple different files are stored in the same path, the original file corresponding to the second target file can be obtained through the storage path information of the original file and the identification parameter of the original file.

在本申请的一些实施方式中,当上述原始文件为原始照片文件时,如图5所示,上述文件存储方法可以包括:步骤501至步骤505。In some embodiments of the present application, when the above-mentioned original file is an original photo file, as shown in FIG. 5 , the above-mentioned file storage method may includesteps 501 to 505 .

步骤501,接收拍照指令。Step 501, receiving a photographing instruction.

本申请实施例中,上述拍照指令包括点击拍照预览界面上的虚拟控件触发的拍照指令、按压物理按键触发的拍照指令、通过语音触发的拍照指令或者其他方式触发的拍照指令。In the embodiment of the present application, the above-mentioned photographing instructions include photographing instructions triggered by clicking a virtual control on the photographing preview interface, photographing instructions triggered by pressing a physical button, photographing instructions triggered by voice, or photographing instructions triggered by other means.

步骤502,根据拍照指令获取相机拍摄得到的原始照片文件。Step 502: Acquire the original photo file obtained by the camera according to the photographing instruction.

本申请实施例中,原始照片文件是指相机采集外界环境光信息,得到的照片文件,即,未进行编辑操作的照片文件。In the embodiment of the present application, the original photo file refers to a photo file obtained by collecting ambient light information by a camera, that is, a photo file that has not been edited.

例如,如图6所示,终端在接收到用户通过点击虚拟控件61触发的拍照指令后,获取到原始照片文件62。For example, as shown in FIG. 6 , after receiving the photographing instruction triggered by the user by clicking thevirtual control 61 , the terminal obtains theoriginal photo file 62 .

步骤503,对原始照片文件进行处理得到第一照片文件,并对原始照片文件进行存储,生成原始照片文件的存储路径信息。Step 503: Process the original photo file to obtain a first photo file, and store the original photo file to generate storage path information of the original photo file.

在本申请实施例中,上述对原始照片文件进行处理得到第一照片文件的过程中,可以包括对原始照片文件进行文本提取、裁剪、美白、涂鸦、贴图、白平衡等一种或多种处理,得到的第一照片文件。In the embodiment of the present application, the above-mentioned process of processing the original photo file to obtain the first photo file may include one or more processing such as text extraction, cropping, whitening, graffiti, texture, and white balance on the original photo file. , to get the first photo file.

具体的,在本申请的一些实施方式中,如图7所示,上述对原始照片文件进行处理得到第一照片文件,可以包括:步骤701至步骤702。Specifically, in some embodiments of the present application, as shown in FIG. 7 , the above-mentioned processing of the original photo file to obtain the first photo file may include steps 701 to 702 .

步骤701,对原始照片文件进行文本识别,得到原始照片文件的文本区域。Step 701: Perform text recognition on the original photo file to obtain a text area of the original photo file.

例如,如图6所示,通过对原始照片文件进行文本识别,即可得到原始照片文件的文本区域63。For example, as shown in FIG. 6 , by performing text recognition on the original photo file, thetext area 63 of the original photo file can be obtained.

具体的,在本申请的一些实施方式中,可以利用OCR技术对原始照片文件进行文本识别,得到原始照片文件的文本区域。Specifically, in some embodiments of the present application, OCR technology can be used to perform text recognition on the original photo file to obtain the text area of the original photo file.

另外,在本申请的一些实施方式中,对于不需要精确地提取原始照片文件的文本区域的应用场景中,上述对原始照片文件进行文本识别,得到原始照片文件的文本区域的过程中,可以采用边缘提取算法,提取原始照片中的一个或多个封闭区域,并将所述一个或多个封闭区域分别作为原始照片文件的文本区域。In addition, in some embodiments of the present application, in the application scenario that does not need to accurately extract the text area of the original photo file, in the above process of performing text recognition on the original photo file to obtain the text area of the original photo file, you can use The edge extraction algorithm extracts one or more closed areas in the original photo, and uses the one or more closed areas as text areas of the original photo file respectively.

步骤702,提取文本区域,并对提取出的文本区域进行处理,得到第一照片文件。Step 702: Extract a text area, and process the extracted text area to obtain a first photo file.

上述提取文本区域是指将文本区域从原始照片文件中分离出来,得到仅仅包含文本区域的照片。The above-mentioned extracting the text area refers to separating the text area from the original photo file to obtain a photo containing only the text area.

需要说明的是,在上述提取文本区域,并对提取出的文本区域进行处理,得到第一照片文件的过程中,若从原始照片文件中提取出多个文本区域,则可以对提取出的多个文本区域中的每个文本区域进行处理,得到多个第一照片文件;或者,将提取出的多个文本区域拼接为一个文本区域之后,对拼接得到的文本区域进行处理,得到第一照片文件。It should be noted that, in the process of extracting the text region and processing the extracted text region to obtain the first photo file, if multiple text regions are extracted from the original photo file, the extracted multiple text regions can be processed. Each text area in the text areas is processed to obtain a plurality of first photo files; or, after splicing the extracted multiple text areas into one text area, the text areas obtained by splicing are processed to obtain the first photo files document.

在本申请的一些实施方式中,上述对提取出的文本区域进行处理可以包括对提取出的文本区域进行校正处理,或者,对提取出的文本区域进行文本编辑、涂鸦和/或贴图处理。In some embodiments of the present application, the above-mentioned processing on the extracted text area may include performing correction processing on the extracted text area, or performing text editing, graffiti and/or texture processing on the extracted text area.

具体的,上述对提取出的文本区域进行校正处理可以包括:对文本区域进行透视变换,调整文本区域中存在的透视畸变。Specifically, the above-mentioned correction processing on the extracted text area may include: performing perspective transformation on the text area to adjust the perspective distortion existing in the text area.

另外,在本申请的一些实施方式中,由于文本区域的尺寸小于原始照片文件的尺寸,因此,对文本区域的内容进行显示时,若需要填充整个显示屏的显示界面,则有可能因为分辨率降低,导致第一照片文件的显示出现模糊,因此,上述对提取出的文本区域进行校正处理还可以包括:对文本区域进行上采样,得到与原始照片文件尺寸相同且分辨率大于阈值的第一照片文件。In addition, in some embodiments of the present application, since the size of the text area is smaller than the size of the original photo file, when displaying the content of the text area, if the display interface of the entire display screen needs to be filled, the resolution may Therefore, the above-mentioned correction processing for the extracted text area may further include: up-sampling the text area to obtain a first photo file with the same size as the original photo file and a resolution greater than the threshold value. photo files.

需要说明的是,上述仅仅是对对文本区域进行处理的方式进行举例说明,并不表示为对本申请保护范围的限定。在本申请的其他实施方式中,在对文本区域进行处理时,还可以包括其他处理方式。It should be noted that the above is only an example to illustrate the manner of processing the text area, and is not intended to limit the protection scope of the present application. In other embodiments of the present application, when processing the text area, other processing methods may also be included.

如图6所示,对提取出的文本区域63进行校正处理,可以得到第一照片文件64。As shown in FIG. 6 , afirst photo file 64 can be obtained by performing correction processing on the extractedtext area 63 .

步骤504,将原始照片文件的存储路径信息合成到所述第一照片文件中,生成第二照片文件。Step 504, synthesizing the storage path information of the original photo file into the first photo file to generate a second photo file.

步骤505,对第二照片文件进行存储。Step 505, store the second photo file.

本申请实施例中,上述步骤504至步骤505的具体实现方式可以参考上述步骤102至步骤103的具体实现过程,此处不再赘述。In this embodiment of the present application, for the specific implementation manner of the foregoingsteps 504 to 505, reference may be made to the specific implementation process of the foregoingsteps 102 to 103, which will not be repeated here.

需要说明的是,在上述步骤503中,对原始照片文件进行存储,还可以包括:获取文本区域在原始照片文件中的位置信息,对携带位置信息的原始照片文件进行存储。It should be noted that, in the above-mentioned step 503, storing the original photo file may further include: acquiring the position information of the text area in the original photo file, and storing the original photo file carrying the position information.

也就是说,可以将识别出的原始照片文件的文本区域的位置信息合成到原始照片文件中,使得在对原始照片文件进行重新编辑时,原始照片文件中可以显示可供用户进行区域调整的参考点。That is to say, the identified location information of the text area of the original photo file can be synthesized into the original photo file, so that when the original photo file is re-edited, the original photo file can display a reference for the user to adjust the area. point.

其中,上述获取文本区域在原始照片文件中的位置信息可以包括:获取文本区域的边缘特征点(参考点)在原始照片文件中的坐标信息。Wherein, obtaining the position information of the text area in the original photo file may include: obtaining coordinate information of edge feature points (reference points) of the text area in the original photo file.

具体的,在本申请的一些实施方式中,上述获取文本区域的边缘特征点在原始照片文件中的坐标信息可以包括:对提取到的文本区域进行多边形拟合,得到多边形的各个顶点(边缘特征点),并确定所述多边形的各个顶点在原始照片文件中对应的坐标信息,同时,将所述多边形的各个顶点在原始照片文件中对应的坐标信息确定为所述文本区域的边缘特征点在原始照片文件中的坐标信息。Specifically, in some embodiments of the present application, obtaining the coordinate information of the edge feature points of the text area in the original photo file may include: performing polygon fitting on the extracted text area to obtain each vertex (edge feature of the polygon) of the polygon. point), and determine the corresponding coordinate information of each vertex of the polygon in the original photo file, and at the same time, determine the corresponding coordinate information of each vertex of the polygon in the original photo file as the edge feature point of the text area at Coordinate information in the original photo file.

例如,如图8所示,对提取到的文本区域82进行四边形拟合,得到的四边形的顶点a、b、c、d,并确定顶点a、b、c、d在原始照片文件81中对应的坐标信息(x1,y1)、(x2,y2)、(x3,y3)、(x4,y4),同时,将该坐标信息确定为所述文本区域的边缘特征点在原始照片文件中的坐标信息。For example, as shown in FIG. 8 , perform quadrilateral fitting on the extractedtext area 82 to obtain vertices a, b, c, and d of the quadrilateral, and determine that the vertices a, b, c, and d correspond to theoriginal photo file 81 The coordinate information of (x1 , y1 ), (x2 , y2 ), (x3 , y3 ), (x4 , y4 ), at the same time, the coordinate information is determined as the edge feature of the text area The coordinate information of the point in the original photo file.

本申请实施例中,通过对携带有文本区域在原始照片文件中的位置信息的原始照片文件进行存储,使得在对原始照片文件进行重新编辑时,可以根据该位置信息在原始照片文件中显示可供用户进行文本区域调整的参考点,进而可以通过获取用户对在原始照片文件中的参考点的调整操作,得到调整后的文本区域,并进一步地得到调整后的第一目标文件,实现对原始照片文件的重新编辑。In the embodiment of the present application, by storing the original photo file carrying the position information of the text area in the original photo file, when the original photo file is re-edited, the available information can be displayed in the original photo file according to the position information. The reference point for the user to adjust the text area, and then the adjusted text area can be obtained by obtaining the user's adjustment operation on the reference point in the original photo file, and the adjusted first target file can be obtained. Re-editing of photo files.

例如,在对携带有文本区域的边缘特征点的坐标信息a、b、c、d的原始照片文件进行存储之后,可以通过获取用户对在原始照片文件中的参考点a、b、c、d的进行移动的调整操作,得到调整后的文本区域(即,a、b、c、d调整后的四边形包围的区域),并进一步地得到调整后的第一目标文件,实现对原始照片文件的重新编辑。For example, after storing the original photo file carrying the coordinate information a, b, c, and d of the edge feature points of the text area, the user's reference points a, b, c, and d in the original photo file can be obtained by obtaining to obtain the adjusted text area (that is, the area surrounded by the adjusted quadrilaterals after a, b, c, and d), and further obtain the adjusted first target file, so as to realize the original photo file re-edit.

另外,本申请的一些实施方式中,上述原始文件以及第二目标文件可以一同存储在同一终端上,也可以分别存储在不同终端,例如,可以将第二目标文件存储在本地终端,而将原始文件存储在云盘服务器等终端。In addition, in some embodiments of the present application, the above-mentioned original file and the second target file may be stored together on the same terminal, or may be stored in different terminals, for example, the second target file may be stored in the local terminal, while the original Files are stored on terminals such as cloud disk servers.

在本申请的一些实施方式中,如图9所示,上述对第二目标文件进行存储之后,可以包括:步骤901至步骤902。In some embodiments of the present application, as shown in FIG. 9 , after the above-mentioned storage of the second target file, steps 901 to 902 may be included.

步骤901,获取待读取文件。Step 901, acquiring the file to be read.

在本申请实施例中,上述待读取文件是指终端存储的文件。例如,终端存储的原始照片文件、第二照片文件、原始视频文件、第二视频文件、原始文档文件、第二文档文件等等。In the embodiment of the present application, the above-mentioned file to be read refers to a file stored by the terminal. For example, the terminal stores the original photo file, the second photo file, the original video file, the second video file, the original document file, the second document file, and so on.

步骤902,若待读取文件合成有待读取文件对应的原始文件的存储路径信息,则在待读取文件对应的显示界面生成用于获取待读取文件对应的原始文件的控件。具体地,当待读取文件没有合成待读取文件对应的原始文件的存储路径信息时,说明待读取文件为原始文件,即未经过处理的文件,因此,可以不需要在待读取文件对应的显示界面生成用于获取待读取文件对应的原始文件的控件。当待读取文件合成有待读取文件对应的原始文件的存储路径信息,则说明待读取文件为经处理后的文件,存在与其对应的原始文件,此时,可以在对待读取文件进行显示时,在待读取文件对应的显示界面生成用于获取待读取文件对应的原始文件的控件,以便用户在触发该控件时,可以获取到与该读取文件对应的原始文件。Step 902: If the file to be read is synthesized into the storage path information of the original file corresponding to the file to be read, a control for acquiring the original file corresponding to the file to be read is generated on the display interface corresponding to the file to be read. Specifically, when the file to be read does not synthesize the storage path information of the original file corresponding to the file to be read, it indicates that the file to be read is an original file, that is, an unprocessed file. The corresponding display interface generates a control for acquiring the original file corresponding to the file to be read. When the file to be read is synthesized into the storage path information of the original file corresponding to the file to be read, it means that the file to be read is a processed file and there is an original file corresponding to the file to be read. When the control is generated, a control for obtaining the original file corresponding to the file to be read is generated on the display interface corresponding to the file to be read, so that when the user triggers the control, the original file corresponding to the read file can be obtained.

例如,当待读取文件为待显示照片文件时,若待显示照片文件没有合成待显示照片文件对应的原始照片文件的存储路径信息时,说明该待显示照片文件为原始照片文件,即未经过处理的照片文件,因此,可以不需要在显示界面生成用于获取待显示照片文件对应的原始照片文件的控件。当待显示照片的待显示照片文件合成有待显示照片文件对应的原始照片文件的存储路径信息,则说明该待显示照片文件为经处理后的照片,存在与其对应的原始照片文件,此时,可以在对该待显示照片进行显示时,在待显示的照片文件对应的显示界面生成用于获取待显示照片文件对应的原始照片文件的控件,以便用户在触发该控件时,可以获取到与该待显示照片文件对应的原始照片文件。For example, when the to-be-read file is a to-be-displayed photo file, if the to-be-displayed photo file does not synthesize the storage path information of the original photo file corresponding to the to-be-displayed photo file, it indicates that the to-be-displayed photo file is an original photo file. Therefore, it is not necessary to generate a control for acquiring the original photo file corresponding to the photo file to be displayed on the display interface. When the to-be-displayed photo file of the to-be-displayed photo is synthesized with the storage path information of the original photo file corresponding to the to-be-displayed photo file, it means that the to-be-displayed photo file is a processed photo, and there is an original photo file corresponding to the to-be-displayed photo file. When displaying the to-be-displayed photo, a control for acquiring the original photo file corresponding to the to-be-displayed photo file is generated on the display interface corresponding to the to-be-displayed photo file, so that when the user triggers the control, the control can be obtained with the to-be-displayed photo file. Displays the original photo file corresponding to the photo file.

例如,如图10a所示,检测到待显示照片11的待显示照片文件合成有待显示照片文件对应的原始照片文件的存储路径信息时,可以在对该待显示照片进行显示时,在显示界面生成用于获取待显示照片文件对应的原始照片文件的控件12,使得用户在触发该控件时,可以获取到与该待显示照片文件对应的原始照片文件。For example, as shown in FIG. 10a, when it is detected that the to-be-displayed photo file of the to-be-displayed photo 11 is synthesized into the storage path information of the original photo file corresponding to the to-be-displayed photo file, the to-be-displayed photo can be displayed on the display interface when the storage path information is displayed. Thecontrol 12 for acquiring the original photo file corresponding to the photo file to be displayed, so that when the user triggers the control, the original photo file corresponding to the photo file to be displayed can be acquired.

具体的,在本发明的一些实施方式中,在上述待读取文件对应的显示界面生成用于获取所述待读取文件对应的原始文件的控件之后,可以包括:接收对所述控件的触发操作,并根据所述触发操作生成与所述待读取文件对应的原始文件的存储路径信息对应的标识码信息。Specifically, in some embodiments of the present invention, after the control for acquiring the original file corresponding to the file to be read is generated on the display interface corresponding to the file to be read, the control may include: receiving a trigger for the control operation, and the identification code information corresponding to the storage path information of the original file corresponding to the to-be-read file is generated according to the trigger operation.

例如,接收对所述控件的触发操作,并根据所述触发操作生成与所述待显示照片文件对应的原始照片文件的存储路径信息对应的标识码信息。For example, a trigger operation on the control is received, and according to the trigger operation, identification code information corresponding to the storage path information of the original photo file corresponding to the to-be-displayed photo file is generated.

在本申请的一些实施方式中,上述标识码信息可以是条形码、二维码。In some embodiments of the present application, the above identification code information may be a barcode or a two-dimensional code.

具体的,如图10b所示,当接收到对控件12的触发操作时,生成与所述待显示照片文件对应的原始照片文件的存储路径信息对应的二维码13,使得,用户扫描该二维码,即可访问原始照片文件的网页,并从所述网页中获取并显示所述待显示照片文件对应的原始照片文件。Specifically, as shown in FIG. 10b, when a trigger operation on thecontrol 12 is received, a two-dimensional code 13 corresponding to the storage path information of the original photo file corresponding to the photo file to be displayed is generated, so that the user scans the two-dimensional code 13. You can access the web page of the original photo file, and obtain and display the original photo file corresponding to the photo file to be displayed from the web page.

在本申请的另外一些实施方式中,在上述待读取文件对应的显示界面生成用于获取所述待读取文件对应的原始文件的控件之后,还可以包括:接收对所述控件的触发操作,并根据所述触发操作以及所述待读取文件对应的原始文件的存储路径信息加载用于访问原始文件的网页,并从所述网页中获取所述待读取文件对应的原始文件。In some other embodiments of the present application, after the control for acquiring the original file corresponding to the file to be read is generated on the display interface corresponding to the file to be read, the control may further include: receiving a trigger operation on the control , and load a webpage for accessing the original file according to the trigger operation and the storage path information of the original file corresponding to the to-be-read file, and obtain the original file corresponding to the to-be-read file from the webpage.

例如,接收对所述控件的触发操作,并根据所述触发操作以及所述待显示照片文件对应的原始照片文件的存储路径信息加载用于访问原始照片文件的网页,并从所述网页中获取并显示所述待显示照片文件对应的原始照片文件。For example, receive a trigger operation on the control, and load a webpage for accessing the original photo file according to the trigger operation and the storage path information of the original photo file corresponding to the to-be-displayed photo file, and obtain from the webpage and displaying the original photo file corresponding to the photo file to be displayed.

在本申请的另外一些实施方式中,在上述待读取文件对应的显示界面生成用于获取所述待读取文件对应的原始文件的控件之后,还可以包括:接收对所述控件的触发操作,并根据所述触发操作以及所述待读取文件对应的原始文件的存储路径信息从本地存储空间中获取所述待读取文件对应的原始文件。In some other embodiments of the present application, after the control for acquiring the original file corresponding to the file to be read is generated on the display interface corresponding to the file to be read, the control may further include: receiving a trigger operation on the control , and obtain the original file corresponding to the to-be-read file from the local storage space according to the trigger operation and the storage path information of the original file corresponding to the to-be-read file.

例如,接收对所述控件的触发操作,并根据所述触发操作以及所述待显示照片文件对应的原始照片文件的存储路径信息从本地存储空间中获取并显示所述原始照片文件。For example, a trigger operation on the control is received, and the original photo file is acquired and displayed from the local storage space according to the trigger operation and storage path information of the original photo file corresponding to the to-be-displayed photo file.

在本申请实施例中,当原始文件存储在本地存储空间中时,则可以在接收对所述控件的触发操作时,直接从本地存储空间中获取并显示所述原始文件,以减少用户的操作步骤,提高用户体验。另外,当原始文件存储在云端服务器或者其他非本地存储空间中时,则可以在接收对所述控件的触发操作时,显示待读取文件对应的原始文件的存储路径信息对应的标识码信息,用户通过对标识码进一步操作,如扫描二维码,即可获取原始文件;也可以直接加载用于访问原始文件的网页,并从所述网页中获取并显示所述待读取文件对应的原始文件;从而在实现通过第二目标文件获取原始文件的同时,将原始文件与第二目标文件分离,使得在需要对第二目标文件进行转发操作时,可以降低文件转发时的数据量。并且可以将原始文件储存在云端服务器,使得原始文件不用占用本地存储空间,减少对终端存储空间的占用。In this embodiment of the present application, when the original file is stored in the local storage space, the original file can be directly obtained and displayed from the local storage space when receiving a trigger operation on the control, so as to reduce user operations steps to improve user experience. In addition, when the original file is stored in the cloud server or other non-local storage space, the identification code information corresponding to the storage path information of the original file corresponding to the file to be read may be displayed when receiving the trigger operation on the control, The user can obtain the original file by further operating the identification code, such as scanning the QR code; or directly load the webpage for accessing the original file, and obtain and display the original file corresponding to the file to be read from the webpage. Therefore, while obtaining the original file through the second target file, the original file is separated from the second target file, so that when the second target file needs to be forwarded, the amount of data during file forwarding can be reduced. And the original file can be stored in the cloud server, so that the original file does not occupy the local storage space and reduces the occupation of the terminal storage space.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为根据本发明,某些步骤可以采用其它顺序进行。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because in accordance with the present invention, certain steps may be performed in other orders.

图11示出了本申请实施例提供的一种文件存储装置1100的结构示意图,包括获取单元1101、合成单元1102和存储单元1103。FIG. 11 shows a schematic structural diagram of afile storage device 1100 provided by an embodiment of the present application, including anacquisition unit 1101 , asynthesis unit 1102 , and astorage unit 1103 .

获取单元1101,用于获取对原始文件进行处理得到的第一目标文件,以及所述原始文件的存储路径信息;an obtainingunit 1101, configured to obtain a first target file obtained by processing an original file, and storage path information of the original file;

合成单元1102,用于将所述原始文件的存储路径信息合成到所述第一目标文件中,生成第二目标文件;asynthesizing unit 1102, configured to synthesize the storage path information of the original file into the first target file to generate a second target file;

存储单元1103,用于对所述第二目标文件进行存储。Thestorage unit 1103 is configured to store the second target file.

在本申请的一些实施方式中,上述合成单元1102,还用于识别所述第一目标文件的数据结束标识符;在所述第一目标文件的数据结束标识符之后,增加所述原始文件的存储路径信息,得到所述第二目标文件。In some embodiments of the present application, the above-mentionedsynthesizing unit 1102 is further configured to identify the data end identifier of the first target file; after the data end identifier of the first target file, add the data end identifier of the original file. The path information is stored to obtain the second target file.

在本申请的一些实施方式中,上述合成单元1102,还用于获取用于标识所述原始文件的标识参数;在所述第一目标文件的数据结束标识符之后,增加所述原始文件的标识参数以及所述原始文件的存储路径信息,得到所述第二目标文件。In some embodiments of the present application, the above-mentionedsynthesizing unit 1102 is further configured to obtain an identification parameter for identifying the original file; after the data end identifier of the first target file, add the identification of the original file parameters and the storage path information of the original file to obtain the second target file.

在本申请的一些实施方式中,上述获取单元1101,还用于接收拍照指令;根据所述拍照指令获取相机拍摄得到的所述原始照片文件;对所述原始照片文件进行处理得到第一照片文件,并在对所述原始照片文件进行处理得到第一照片文件之后,对所述原始照片文件进行存储,并生成所述原始照片文件的存储路径信息。In some embodiments of the present application, the obtainingunit 1101 is further configured to receive a photographing instruction; obtain the original photograph file obtained by the camera according to the photographing instruction; process the original photograph file to obtain a first photograph file , and after processing the original photo file to obtain the first photo file, the original photo file is stored, and the storage path information of the original photo file is generated.

可选的,上述文件存储装置还可以包括处理单元,用于对所述原始照片文件进行文本识别,得到所述原始照片文件的文本区域;提取所述文本区域,并对提取出的所述文本区域进行处理,得到所述第一照片文件。Optionally, the above-mentioned file storage device may further include a processing unit for performing text recognition on the original photo file to obtain a text area of the original photo file; extracting the text area, and processing the extracted text. The region is processed to obtain the first photo file.

在本申请的一些实施方式中,上述存储单元1103,还用于获取所述文本区域在所述原始照片文件中的位置信息;对携带所述位置信息的原始照片文件进行存储。In some embodiments of the present application, the above-mentionedstorage unit 1103 is further configured to acquire the position information of the text area in the original photo file; and store the original photo file carrying the position information.

可选的,上述文件存储装置还可以包括显示单元,用于,在所述对所述第二目标文件进行存储之后,获取待读取文件;若所述待读取文件合成有所述待读取文件对应的原始文件的存储路径信息,则在所述待读取文件对应的显示界面生成用于获取所述待读取文件对应的原始文件的控件。Optionally, the above-mentioned file storage device may further include a display unit, configured to obtain the file to be read after the second target file is stored; if the to-be-read file is synthesized with the to-be-read file The storage path information of the original file corresponding to the file is obtained, and a control for obtaining the original file corresponding to the to-be-read file is generated on the display interface corresponding to the to-be-read file.

在本申请的一些实施方式中,上述显示单元,还用于接收对所述控件的触发操作,并根据所述触发操作生成与所述待读取文件对应的原始文件的存储路径信息对应的标识码信息;或者,接收对所述控件的触发操作,并根据所述触发操作以及所述待读取文件对应的原始文件的存储路径信息加载用于访问原始文件的网页,并从所述网页中获取所述待读取文件对应的原始文件;或者,接收对所述控件的触发操作,并根据所述触发操作以及所述待读取文件对应的原始文件的存储路径信息从本地存储空间中获取所述待读取文件对应的原始文件。In some embodiments of the present application, the above-mentioned display unit is further configured to receive a trigger operation on the control, and generate an identifier corresponding to the storage path information of the original file corresponding to the to-be-read file according to the trigger operation or, receive a trigger operation on the control, load a webpage for accessing the original file according to the trigger operation and the storage path information of the original file corresponding to the to-be-read file, and load the webpage for accessing the original file from the webpage. Obtain the original file corresponding to the file to be read; or, receive a trigger operation on the control, and obtain from the local storage space according to the trigger operation and the storage path information of the original file corresponding to the file to be read The original file corresponding to the file to be read.

需要说明的是,为描述的方便和简洁,上述描述的文件存储装置11的具体工作过程,可以参考上述图1至图10中描述的方法的对应过程,在此不再赘述。It should be noted that, for the convenience and brevity of description, for the specific working process of thefile storage device 11 described above, reference may be made to the corresponding processes of the methods described in FIG. 1 to FIG. 10 , which will not be repeated here.

如图12所示,本申请提供一种用于实现上述文件存储方法的终端,该终端可以包括:处理器121、存储器122、一个或多个输入设备113(图11中仅示出一个)和一个或多个输出设备114(图11中仅示出一个)。处理器111、存储器112、输入设备113和输出设备114通过总线115连接。As shown in FIG. 12 , the present application provides a terminal for implementing the above file storage method. The terminal may include: a processor 121, a memory 122, one or more input devices 113 (only one is shown in FIG. 11), and One or more output devices 114 (only one is shown in Figure 11). The processor 111 , the memory 112 , the input device 113 and the output device 114 are connected by a bus 115 .

应当理解,在本申请实施例中,所称处理器121可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiments of the present application, the processor 121 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated An integrated circuit (Application Specific Integrated Circuit, ASIC), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

输入设备123可以包括虚拟键盘、触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备124可以包括显示器、扬声器等。The input device 123 may include a virtual keyboard, a touchpad, a fingerprint sensor (for collecting user's fingerprint information and fingerprint direction information), a microphone, and the like, and the output device 124 may include a display, a speaker, and the like.

存储器122可以包括只读存储器和随机存取存储器,并向处理器121提供指令和数据。存储器122的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器122还可以存储设备类型的信息。Memory 122 may include read-only memory and random access memory, and provides instructions and data to processor 121 . A portion or all of memory 122 may also include non-volatile random access memory. For example, memory 122 may also store device type information.

上述存储器122存储有计算机程序,上述计算机程序可在上述处理器121上运行,例如,上述计算机程序为文件存储方法的程序。上述处理器121执行上述计算机程序时实现上述文件存储方法实施例中的步骤,例如图1所示的步骤101至步骤103。或者,上述处理器121执行上述计算机程序时实现上述装置实施例中各单元的功能,例如图11所示单元1101至1103的功能。The above-mentioned memory 122 stores a computer program, and the above-mentioned computer program can be executed on the above-mentioned processor 121. For example, the above-mentioned computer program is a program of a file storage method. When the above-mentioned processor 121 executes the above-mentioned computer program, the steps in the above-mentioned embodiments of the above-mentioned file storage method are implemented, for example, steps 101 to 103 shown in FIG. 1 . Alternatively, when the above-mentioned processor 121 executes the above-mentioned computer program, the functions of each unit in the above-mentioned apparatus embodiment, for example, the functions of theunits 1101 to 1103 shown in FIG. 11 , are implemented.

上述计算机程序可以被分割成一个或多个模块/单元,上述一个或者多个模块/单元被存储在上述存储器122中,并由上述处理器121执行,以完成本申请。上述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述上述计算机程序在上述进行文件存储的第一终端中的执行过程。例如,上述计算机程序可以被分割成获取单元、合成单元和存储单元,各单元具体功能如下:The above-mentioned computer program can be divided into one or more modules/units, and the above-mentioned one or more modules/units are stored in the above-mentioned memory 122 and executed by the above-mentioned processor 121 to complete the present application. The above-mentioned one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the above-mentioned computer program in the above-mentioned first terminal for file storage. For example, the above computer program can be divided into an acquisition unit, a synthesis unit and a storage unit, and the specific functions of each unit are as follows:

获取单元,用于获取对原始文件进行处理得到的第一目标文件,以及所述原始文件的存储路径信息;an acquisition unit for acquiring the first target file obtained by processing the original file, and storage path information of the original file;

合成单元,用于将所述原始文件的存储路径信息合成到所述第一目标文件中,生成第二目标文件;a synthesizing unit for synthesizing the storage path information of the original file into the first target file to generate a second target file;

存储单元,用于对所述第二目标文件进行存储。The storage unit is used for storing the second target file.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现上述各实施例中的文件存储方法的步骤。The embodiments of the present application provide a computer program product, which, when the computer program product runs on a terminal device, enables the terminal device to implement the steps of the file storage methods in the foregoing embodiments.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/终端和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are only illustrative. For example, the division of the above modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components. May be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

上述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the above-mentioned integrated modules/units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM), random Access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media does not Including electrical carrier signals and telecommunication signals.

以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that the above-mentioned embodiments can still be used for The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the present application. within the scope of protection of the application.

Claims (11)

Translated fromChinese
1.一种文件存储方法,其特征在于,包括:1. a file storage method, is characterized in that, comprises:获取对原始文件进行处理得到的第一目标文件,以及所述原始文件的存储路径信息;Obtain the first target file obtained by processing the original file, and the storage path information of the original file;将所述原始文件的存储路径信息合成到所述第一目标文件中,生成第二目标文件;synthesizing the storage path information of the original file into the first target file to generate a second target file;对所述第二目标文件进行存储。The second target file is stored.2.如权利要求1所述的文件存储方法,其特征在于,所述将所述原始文件的存储路径信息合成到所述第一目标文件中,生成第二目标文件,包括:2. The file storage method according to claim 1, wherein the synthesizing the storage path information of the original file into the first target file to generate the second target file comprises:识别所述第一目标文件的数据结束标识符;identifying an end-of-data identifier of the first target file;在所述第一目标文件的数据结束标识符之后,增加所述原始文件的存储路径信息,得到所述第二目标文件。After the data end identifier of the first target file, the storage path information of the original file is added to obtain the second target file.3.如权利要求2所述的文件存储方法,其特征在于,所述在所述第一目标文件的数据结束标识符之后,增加所述原始文件的存储路径信息,得到所述第二目标文件,包括:3. The file storage method according to claim 2, wherein after the data end identifier of the first target file, the storage path information of the original file is added to obtain the second target file ,include:获取用于标识所述原始文件的标识参数;obtaining an identification parameter for identifying the original file;在所述第一目标文件的数据结束标识符之后,增加所述原始文件的标识参数以及所述原始文件的存储路径信息,得到所述第二目标文件。After the data end identifier of the first target file, the identification parameter of the original file and the storage path information of the original file are added to obtain the second target file.4.如权利要求1所述的文件存储方法,其特征在于,所述原始文件为原始照片文件;所述获取对原始文件进行处理得到的第一目标文件,以及所述原始文件的存储路径,包括:4. The file storage method according to claim 1, wherein the original file is an original photo file; the first target file obtained by processing the original file, and the storage path of the original file, include:接收拍照指令;receive photographing instructions;根据所述拍照指令获取相机拍摄得到的所述原始照片文件;Obtain the original photo file obtained by the camera according to the photographing instruction;对所述原始照片文件进行处理得到第一照片文件,并对所述原始照片文件进行存储,生成所述原始照片文件的存储路径信息。The original photo file is processed to obtain a first photo file, and the original photo file is stored to generate storage path information of the original photo file.5.如权利要求4所述的文件存储方法,其特征在于,所述对所述原始照片文件进行处理得到第一照片文件,包括:5. The file storage method according to claim 4, wherein the processing of the original photo file to obtain the first photo file comprises:对所述原始照片文件进行文本识别,得到所述原始照片文件的文本区域;Perform text recognition on the original photo file to obtain the text area of the original photo file;提取所述文本区域,并对提取出的所述文本区域进行处理,得到所述第一照片文件;extracting the text area, and processing the extracted text area to obtain the first photo file;所述将所述原始文件的存储路径信息合成到所述第一目标文件中,生成第二目标文件,包括:The synthesizing the storage path information of the original file into the first target file to generate the second target file includes:将所述原始照片文件的存储路径信息合成到所述第一照片文件中,生成第二照片文件;synthesizing the storage path information of the original photo file into the first photo file to generate a second photo file;所述对所述第二目标文件进行存储,包括:The storing of the second target file includes:对所述第二照片文件进行存储。The second photo file is stored.6.如权利要求5所述的文件存储方法,其特征在于,所述对所述原始照片文件进行存储,包括:6. The file storage method according to claim 5, wherein the storing the original photo file comprises:获取所述文本区域在所述原始照片文件中的位置信息;obtaining the position information of the text area in the original photo file;对携带所述位置信息的原始照片文件进行存储。The original photo file carrying the location information is stored.7.如权利要求1所述的文件存储方法,其特征在于,在所述对所述第二目标文件进行存储之后,包括:7. The file storage method according to claim 1, wherein after the storing the second target file, the method comprises:获取待读取文件;Get the file to be read;若所述待读取文件合成有所述待读取文件对应的原始文件的存储路径信息,则在所述待读取文件对应的显示界面生成用于获取所述待读取文件对应的原始文件的控件。If the to-be-read file is synthesized with the storage path information of the original file corresponding to the to-be-read file, generating the original file corresponding to the to-be-read file on the display interface corresponding to the to-be-read file for obtaining the to-be-read file 's controls.8.如权利要求7所述的文件存储方法,其特征在于,所述在所述待读取文件对应的显示界面生成用于获取所述待读取文件对应的原始文件的控件之后,包括:8. The file storage method according to claim 7, wherein after the control for acquiring the original file corresponding to the file to be read is generated on the display interface corresponding to the file to be read, comprising:接收对所述控件的触发操作,并根据所述触发操作生成与所述待读取文件对应的原始文件的存储路径信息对应的标识码信息;receiving a trigger operation on the control, and generating identification code information corresponding to the storage path information of the original file corresponding to the to-be-read file according to the trigger operation;或者,or,接收对所述控件的触发操作,并根据所述触发操作以及所述待读取文件对应的原始文件的存储路径信息加载用于访问原始文件的网页,并从所述网页中获取所述待读取文件对应的原始文件;Receive a trigger operation on the control, load a webpage for accessing the original file according to the trigger operation and the storage path information of the original file corresponding to the to-be-read file, and obtain the to-be-read from the webpage Get the original file corresponding to the file;或者,or,接收对所述控件的触发操作,并根据所述触发操作以及所述待读取文件对应的原始文件的存储路径信息从本地存储空间中获取所述待读取文件对应的原始文件。A trigger operation on the control is received, and the original file corresponding to the to-be-read file is acquired from the local storage space according to the trigger operation and the storage path information of the original file corresponding to the to-be-read file.9.一种文件存储装置,其特征在于,包括:9. A file storage device, characterized in that, comprising:获取单元,用于获取对原始文件进行处理得到的第一目标文件,以及所述原始文件的存储路径信息;an acquisition unit for acquiring the first target file obtained by processing the original file, and storage path information of the original file;合成单元,用于将所述原始文件的存储路径信息合成到所述第一目标文件中,生成第二目标文件;a synthesizing unit for synthesizing the storage path information of the original file into the first target file to generate a second target file;存储单元,用于对所述第二目标文件进行存储。The storage unit is used for storing the second target file.10.一种终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至8任意一项所述方法的步骤。10. A terminal, comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor implements the computer program as claimed in claim 1 when the processor executes the computer program to the steps of any one of the methods described in 8.11.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8任意一项所述方法的步骤。11. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented .
CN201910902221.0A2019-09-232019-09-23 File storage method, device, terminal and computer-readable storage mediumPendingCN110647500A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910902221.0ACN110647500A (en)2019-09-232019-09-23 File storage method, device, terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910902221.0ACN110647500A (en)2019-09-232019-09-23 File storage method, device, terminal and computer-readable storage medium

Publications (1)

Publication NumberPublication Date
CN110647500Atrue CN110647500A (en)2020-01-03

Family

ID=69011089

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910902221.0APendingCN110647500A (en)2019-09-232019-09-23 File storage method, device, terminal and computer-readable storage medium

Country Status (1)

CountryLink
CN (1)CN110647500A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2023179539A1 (en)*2022-03-212023-09-28维沃移动通信有限公司Video editing method and apparatus, and electronic device
WO2024151079A1 (en)*2023-01-102024-07-18삼성전자 주식회사Method and device for editing image in electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102521257A (en)*2011-11-182012-06-27百度在线网络技术(北京)有限公司Method and device for providing corresponding on-line picture according to thumbnail
CN106294798A (en)*2016-08-152017-01-04华为技术有限公司A kind of images share method based on thumbnail and terminal
CN106844431A (en)*2016-12-122017-06-13北京猎豹移动科技有限公司File memory method, device and its electronic equipment
CN106991180A (en)*2017-04-072017-07-28维沃移动通信有限公司A kind of document display method and mobile terminal
CN107426088A (en)*2017-07-202017-12-01北京小米移动软件有限公司Pictorial information processing method and processing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102521257A (en)*2011-11-182012-06-27百度在线网络技术(北京)有限公司Method and device for providing corresponding on-line picture according to thumbnail
CN106294798A (en)*2016-08-152017-01-04华为技术有限公司A kind of images share method based on thumbnail and terminal
CN106844431A (en)*2016-12-122017-06-13北京猎豹移动科技有限公司File memory method, device and its electronic equipment
CN106991180A (en)*2017-04-072017-07-28维沃移动通信有限公司A kind of document display method and mobile terminal
CN107426088A (en)*2017-07-202017-12-01北京小米移动软件有限公司Pictorial information processing method and processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2023179539A1 (en)*2022-03-212023-09-28维沃移动通信有限公司Video editing method and apparatus, and electronic device
WO2024151079A1 (en)*2023-01-102024-07-18삼성전자 주식회사Method and device for editing image in electronic device

Similar Documents

PublicationPublication DateTitle
US10002451B2 (en)Text-based image resizing
CN104169913B (en) A picture display method and device, and terminal equipment
CN111316627B (en) A shooting method, user terminal and computer-readable storage medium
US20100250588A1 (en)Image searching system and image searching method
WO2021175040A1 (en)Video processing method and related device
CN111290684B (en) Image display method, image display device and terminal device
CN104580888A (en) An image processing method and terminal
CN110717452B (en)Image recognition method, device, terminal and computer readable storage medium
CN111818385B (en)Video processing method, video processing device and terminal equipment
CN109167939B (en)Automatic text collocation method and device and computer storage medium
CN110765799B (en)Client code scanning identification method, device, equipment and storage medium
AU2014271204B2 (en)Image recognition of vehicle parts
KR20130120175A (en)Apparatus, method and computer readable recording medium for generating a caricature automatically
CN111583273A (en) Readable storage medium, display device and image processing method thereof
TW201502998A (en)Image recognizing method, apparatus, terminal apparatus and server
WO2024193061A1 (en)Image processing method and apparatus, computer readable storage medium, and electronic device
CN110647500A (en) File storage method, device, terminal and computer-readable storage medium
WO2024251049A1 (en)Media data processing method and apparatus, electronic device, and readable storage medium
CN102768755B (en)Obtain the method and apparatus of the thumbnail of picture
CN108270973B (en)Photographing processing method, mobile terminal and computer readable storage medium
CN113056905B (en) System and method for capturing telephoto-like images
CN104375892B (en)A kind of intelligence quickly starts the method, device and mobile terminal for realizing recognition of face
CN110610178A (en) Image recognition method, device, terminal and computer-readable storage medium
CN106650727A (en)Information display method and AR (augmented reality) device
CN105590098A (en)Image identification method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20200103

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp