WO2022228301A1 - 文档生成方法、装置和电子设备 - Google Patents

文档生成方法、装置和电子设备 Download PDF

Info

Publication number
WO2022228301A1
WO2022228301A1 PCT/CN2022/088427 CN2022088427W WO2022228301A1 WO 2022228301 A1 WO2022228301 A1 WO 2022228301A1 CN 2022088427 W CN2022088427 W CN 2022088427W WO 2022228301 A1 WO2022228301 A1 WO 2022228301A1
Authority
WO
WIPO (PCT)
Prior art keywords
document
target
input
component
picture
Prior art date
Application number
PCT/CN2022/088427
Other languages
English (en)
French (fr)
Inventor
朱宗伟
郭永昌
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Priority to EP22794772.8A priority Critical patent/EP4318299A1/en
Publication of WO2022228301A1 publication Critical patent/WO2022228301A1/zh
Priority to US18/384,465 priority patent/US20240061990A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/55Rule-based translation
    • G06F40/56Natural language generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters

Definitions

  • the present application belongs to the technical field of image processing, and in particular relates to a document generation method, apparatus and electronic device.
  • the camera function of mobile phones greatly facilitates people's life and provides convenience for recording the content of life and work.
  • the existing mobile phone camera function cannot meet the requirements, which requires users to use other tools to complete the operation, which is time-consuming and labor-intensive.
  • the purpose of the embodiments of the present application is to provide a document generation method, apparatus and electronic device, which can solve the problem in the prior art that the photographing function of a mobile phone cannot quickly document the photographed photograph.
  • an embodiment of the present application provides a method for generating a document, and the method includes:
  • the target document is generated in response to a third input for generating the target document.
  • an embodiment of the present application provides an apparatus for generating a document, and the apparatus includes:
  • the first receiving module is used for receiving the first input that the user selects the type of the document to be generated in the shooting preview interface
  • a display module configured to, in response to the first input, enter a creation mode of a document of the target type, and display at least one component of the target document to be generated in the creation mode;
  • a second receiving module configured to receive a second input from the user for adding a picture to the at least one component
  • a photographing module for photographing a target picture in response to the second input
  • An adding module is used to add the target picture into the at least one component
  • a document generation module configured to generate the target document in response to a third input for generating the target document.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, 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, and implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product, the computer program product is stored in a non-transitory storage medium, and the computer program product is executed by at least one processor to implement the first aspect. method described.
  • an embodiment of the present application provides a communication device configured to execute the method described in the first aspect.
  • the user can freely select the type of the document to be created on the camera interface, and add the corresponding photo to any position in the document by taking a photo in real time, so as to realize the rapid documentation of the photo and generate a user Documentation of the specific organizational structure required.
  • FIG. 1 is a schematic flowchart of a method for generating a document according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a camera interface provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a document type provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a creation mode of a target document whose document type is PPT provided by the embodiment of the present application;
  • FIG. 5 is a schematic diagram of a creation mode of a target document whose document type is WORD provided by the embodiment of the present application;
  • FIG. 6 is a schematic diagram of a target component for selecting a picture to be inserted in a PPT document provided by an embodiment of the present application
  • FIG. 7 is a schematic diagram of completing picture shooting in the PPT document provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of a target component of selecting a picture to be inserted in a WORD document provided by an embodiment of the present application;
  • FIG. 9 is a schematic diagram of completing picture shooting in a WORD document provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of adding a picture in a notepad document provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a document generation apparatus provided by an embodiment of the application.
  • FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 is a schematic flowchart of a method for generating a document according to an embodiment of the present application.
  • the document generation method in the embodiment of the present application includes the following steps:
  • Step 101 Receive a first input from the user to select the type of the document to be generated in the shooting preview interface
  • the document generation method is applied to an electronic device. After opening the camera software of the electronic device, if the document mode needs to be used, the user can select the document option on the shooting preview interface, and select the document to be generated. type, the electronic device will receive the first input of the user selecting the type of the document to be generated in the shooting preview interface.
  • the type of the document in this embodiment of the present application may include format types such as WORD, presentation (PowerPoint, PPT), Portable Document Format (Portable Document Format, PDF), and notepad.
  • Step 102 In response to the first input, enter the creation mode of the document of the target type, and display at least one component of the target document to be generated in the creation mode;
  • the electronic device will, in response to the first input, enter the document creation mode of the target type, that is, the user selects the document to be generated on the shooting preview interface
  • the electronic device will create a document of the target type selected by the user (the document created here is just a template), and display at least one component of the target document to be generated in the creation mode;
  • the components are the structural components of the target document.
  • the components of different types of documents can be different.
  • the components of the document can be preset or customized, and the existing documents can also be called.
  • Step 103 receiving a second input from the user for adding a picture to the at least one component
  • the electronic device After displaying at least one component of the target document to be generated, if the user wants to add a picture to a certain component of the target document, he only needs to select the corresponding component of the document, and then use the camera to take the picture to be added. Yes; that is, the electronic device will receive the second input of the user adding a picture to at least one component of the target document, and the component may be any component of the target document selected by the user, the picture you want to add It can be obtained by real-time shooting with a camera, wherein pictures can be added to one component of the target document, or pictures can be added to two or more components of the target document, depending on user needs.
  • Step 104 In response to the second input, take a target picture and add the target picture to the at least one component.
  • the electronic device will, in response to the second input, start the camera to capture the target image, and add the captured target image to at least one component of the created target document middle. That is to say, the target picture captured by the camera will be quickly documented in the document of the target type selected by the user, and the documenting process of the picture is completed when the capturing is completed.
  • Step 105 Generate the target document in response to the third input of generating the target document.
  • the electronic device After the target picture is added to at least one component of the target document to be generated, in the case that the electronic device receives the third input from the user to generate the target document, the electronic device will respond to the third input of generating the target document.
  • the target document is generated, and the final generated target document contains the target picture added in at least one component in the preceding steps, which is equivalent to the process of taking pictures, that is, the documenting process of the pictures is synchronously performed.
  • the target document can be generated immediately upon completion, which greatly improves the efficiency of documenting pictures and saves the tedious process of documenting with other software tools.
  • the user can freely select the type of the document to be created on the shooting preview interface, and add the corresponding photo to any position in the document by taking a photo in real time, so as to realize the quick document of the photo , and generate documents of the specific organizational structure required by users.
  • FIG. 2 is a schematic diagram of a camera interface provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a document type provided by an embodiment of the present application.
  • options such as photographing and documenting may be displayed in the shooting preview interface
  • the first input may include a document Click input of the documentation option, if the documentation option is clicked, it is considered that the user has selected the documentation mode.
  • the documentation mode the photos taken by the camera can be documented to generate corresponding documents.
  • the electronic device may further display the types of documents available for selection in the camera interface, and the types of documents may include WORD, PPT, others, and so on.
  • FIG. 4 is a schematic diagram of a creation mode of a target document whose document type is PPT provided by an embodiment of the application
  • FIG. 5 is a schematic diagram of a creation mode of a target document whose document type is WORD provided by an embodiment of the application.
  • the first input may further include an input for selecting a target type from the optional document types displayed above. After the target type is selected, enter the The creation mode of the document of the target type. In the creation mode, at least one component of the target document, or at least part of the structural components of the target document will be displayed.
  • the PPT document creation mode For example, as shown in Figure 4, after selecting the PPT document type, it will enter the PPT document creation mode. In this creation mode, the components of the PPT document will be displayed, including the table of contents, topic 1, topic 2, Topic three, topic four, topic five, summary, etc., when displaying the components of the PPT document, the directory list of the target document, or the title of the component of the target document can be displayed; for another example, as shown in Figure 5, in After selecting the WORD document type, it will enter the WORD document creation mode. In this mode, the components of the WORD document will be displayed, including chapter 1, chapter 2, chapter 3, summary, etc. For each component, you can display the content list of the target document, or the title of each component of the target document.
  • the receiving a second input of the user adding a picture to the at least one component includes:
  • the taking a target picture in response to the second input, and adding the target picture to the at least one component includes:
  • a target picture is taken, and the target pictures are added to the target component in the order of shooting time.
  • FIG. 6 is a schematic diagram of selecting a target component for image insertion in a PPT document provided by an embodiment of the present application
  • FIG. 7 is a schematic diagram of completing picture shooting in a PPT document provided by an embodiment of the present application. As shown in FIG. 6 and FIG.
  • the first sub-input may be the input of clicking the target component of "Subject One" of the document, and the second sub-input may be clicking to take a photo
  • the electronic device will start the camera to shoot in response to the second input, and add the obtained pictures to the target component of the target document selected by the user in the order of the shooting time (that is, "Theme 1".
  • the target document can be saved in the document In the album, the default name of the target document may be a combination of the type of the target document and the creation time of the target document.
  • FIG. 8 is a schematic diagram of selecting a target component for image insertion in a WORD document provided by an embodiment of the present application
  • FIG. 9 is a schematic diagram of completing picture shooting in a WORD document provided by an embodiment of the present application. As shown in FIG. 8 and FIG.
  • the first sub-input of the component and the second sub-input of the user taking a picture may be the input of clicking the target component of "Chapter 1" of the target document, and the second sub-input may be The input of clicking the camera button, the electronic device will respond to the second input, start the camera to take pictures, and add the pictures obtained by taking pictures to the target component of the target document selected by the user in the order of the shooting time (that is, "" "Chapter 1"), after adding pictures in the "Chapter 1" section, you can continue to select other components of the target document and take pictures to add the captured pictures to other components of the target document.
  • the user can click the end button, the electronic device will end the document shooting, and save the result obtained by documenting the picture (that is, the corresponding WORD document), and the target document can be saved in the document In the album, the default name of the target document may be a combination of the type of the target document and the creation time of the target document.
  • FIG. 10 is a schematic diagram of adding a picture to a notepad document according to an embodiment of the present application.
  • taking the created document as a notepad document as an example, after each component of the target document is displayed in the creation mode (each component under the notepad document can be empty, that is, blank display), if a first sub-input in which the user selects a target component in the target document and a second sub-input in which the user takes a picture is received, for example, the first sub-input may be an input of clicking any position in the document, The second sub-input can be the input of clicking the camera button, the electronic device will respond to the second input, start the camera to take pictures, and add the pictures obtained by taking pictures to the target document selected by the user in the order of the shooting time.
  • the target document can be saved in In the document album, the default name of the target document may be a combination of the type of the target document and the creation time of the target document.
  • the document generation method further includes:
  • the position of the target picture in the target document is adjusted.
  • the electronic device will, in response to the fourth input, adjust the position sequence of the target pictures added to the target component of the target document, so that each target picture in the final generated target document is coherent in content.
  • the order of the pictures may be adjusted uniformly after the documentation of all pictures is completed, that is to say, the adjustment may be made after the addition of the target pictures of each component in the target document is completed. The order of the target pictures in the corresponding components, so that the target pictures in the final generated target document are coherent in content.
  • the user can freely select the type of the document to be created on the shooting preview interface, and add the corresponding photo to any position in the document by taking a photo in real time, so as to realize the rapid documentation of the photo and generate Documentation of the specific organizational structure that the user needs.
  • the execution body may be a document generation apparatus, or a control module in the document generation apparatus for executing the document generation method.
  • the document generating device provided by the embodiment of the present application is described by taking the document generating device executing the document generating method as an example.
  • FIG. 11 is a schematic structural diagram of a document generating apparatus provided by an embodiment of the present application.
  • the document generation apparatus 1100 in this embodiment of the present application includes:
  • the first receiving module 1101 is configured to receive the first input of the user selecting the type of the document to be generated in the shooting preview interface
  • a display module 1102 configured to, in response to the first input, enter a creation mode of a document of the target type, and display at least one component of the target document to be generated in the creation mode;
  • a second receiving module 1103, configured to receive a second input from the user for adding a picture to the at least one component
  • a photographing module 1104 configured to photograph a target picture in response to the second input
  • An adding module 1105 configured to add the target picture into the at least one component
  • the document generation module 1106 is configured to generate the target document in response to the third input of generating the target document.
  • the second receiving module 1103 includes:
  • a first receiving unit configured to receive a first sub-input of a user selecting a target component in the target document
  • a second receiving unit configured to receive a second sub-input of the user taking the target picture
  • the adding module includes:
  • the adding unit is configured to add the target pictures to the target components in the order of shooting time.
  • the display module 1102 includes:
  • a display unit configured to display a directory list of the target document in the creation mode.
  • the document generating apparatus 1100 further includes:
  • a fourth receiving module configured to receive a fourth input from a user to adjust the target picture in the target document
  • An adjustment module configured to adjust the position of the target picture in the target document in response to the fourth input.
  • the user can freely select the type of the document to be created on the shooting preview interface, and add the corresponding photo to any position in the document by taking a photo in real time, so as to realize the rapid documentation of the photo and generate Documentation of the specific organizational structure that the user needs.
  • the document generating apparatus in this embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant (personal digital assistant).
  • assistant, PDA personal digital assistant
  • the non-mobile electronic device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in the embodiments of the present application.
  • the document generating apparatus in this embodiment of the present application may be an apparatus having an operating system.
  • the operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the document generation apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 10 , which is not repeated here to avoid repetition.
  • an embodiment of the present application further provides an electronic device 1200, including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
  • an electronic device 1200 including a processor 1201, a memory 1202, a program or instruction stored in the memory 1202 and executable on the processor 1201,
  • the program or the instruction is executed by the processor 1201
  • each process of the above-mentioned document generation method embodiment can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1300 includes but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, and a processor 1310, etc. part.
  • the electronic device 1300 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1310 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 13 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the user input unit 1307 is used to receive the first input of the user selecting the type of the document to be generated in the shooting preview interface
  • a display unit 1306, configured to, in response to the first input, enter a creation mode of a document of the target type, and display at least one component of the target document to be generated in the creation mode;
  • a user input unit 1307 further configured to receive a second input from the user for adding a picture to the at least one component
  • a processor 1310 configured to add the target picture into the at least one component
  • the user input unit 1307 is further configured to receive a third input for generating the target document
  • the processor 1310 is further configured to generate the target document in response to the third input for generating the target document.
  • the user can freely select the type of the document to be created on the shooting preview interface, and add the corresponding photo to any position in the document by taking a photo in real time, so as to realize the rapid documentation of the photo and generate Documentation of the specific organizational structure that the user needs.
  • the user input unit 1307 is configured to receive a first sub-input of a user selecting a target component in the target document, and a second sub-input of a user to shoot a target picture;
  • the processor 1310 is configured to add the target pictures to the target components in the order of shooting time.
  • the display unit 1306 is configured to display the directory list of the target document in the creation mode.
  • the user input unit 1307 is further configured to receive a fourth input from the user for adjusting the target picture in the target document;
  • the processor 1310 is further configured to adjust the position of the target picture in the target document in response to the fourth input.
  • the input unit 1304 may include a graphics processor (Graphics Processing Unit, GPU) 13041 and a microphone 13042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 1306 may include a display panel 13061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1307 includes a touch panel 13071 and other input devices 13072 .
  • the touch panel 13071 is also called a touch screen.
  • the touch panel 13071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 13072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
  • Memory 1309 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 1310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1310.
  • the embodiments of the present application further provide a readable storage medium, the readable storage medium may be non-volatile or volatile, and a program or an instruction is stored on the readable storage medium, and the program or instruction is stored in the readable storage medium.
  • the processor executes, each process of the above-mentioned document generation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • Embodiments of the present application further provide a computer program product, where the computer program product is stored in a non-transitory storage medium, and the computer program product is executed by at least one processor to implement the document generation method provided by the embodiments of the present application and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • An 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 the above-mentioned document generation method embodiment.
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is configured to run a program or an instruction to implement the above-mentioned document generation method embodiment.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Document Processing Apparatus (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种文档生成方法、装置和电子设备,属于图像处理技术领域。所述文档生成方法包括:接收用户在拍摄预览界面选择待生成文档的类型的第一输入;响应于所述第一输入,进入目标类型的文档的创建模式,在所述创建模式下显示待生成的目标文档的至少一个组成部分;接收用户在所述至少一个组成部分添加图片的第二输入;响应于所述第二输入,拍摄目标图片,并将所述目标图片添加入所述至少一个组成部分中;响应于生成所述目标文档的第三输入,生成所述目标文档。

Description

文档生成方法、装置和电子设备
相关申请的交叉引用
本申请主张在2021年04月29日在中国提交的中国专利申请No.202110474177.5的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于图像处理技术领域,具体涉及一种文档生成方法、装置和电子设备。
背景技术
手机拍照功能极大方便了人们的生活,为记录生活和工作上的内容提供了便利。但针对一些具体的场景用途,例如,将拍摄的会议内容幻灯片照片快速文档化,现有的手机拍照功能还不能满足要求,这就需要用户借助其他工具完成操作,耗时耗力。
发明内容
本申请实施例的目的是提供一种文档生成方法、装置和电子设备,能够解决现有技术中手机拍照功能无法将拍摄的照片快速文档化的问题。
第一方面,本申请实施例提供了一种文档生成方法,该方法包括:
接收用户在拍摄预览界面选择待生成文档的类型的第一输入;
响应于所述第一输入,进入目标类型的文档的创建模式,在所述创建模式下显示待生成的目标文档的至少一个组成部分;
接收用户在所述至少一个组成部分添加图片的第二输入;
响应于所述第二输入,拍摄目标图片,并将所述目标图片添加入所述至少一个组成部分中;
响应于生成所述目标文档的第三输入,生成所述目标文档。
第二方面,本申请实施例提供了一种文档生成装置,该装置包括:
第一接收模块,用于接收用户在拍摄预览界面选择待生成文档的类型的 第一输入;
显示模块,用于响应于所述第一输入,进入目标类型的文档的创建模式,在所述创建模式下显示待生成的目标文档的至少一个组成部分;
第二接收模块,用于接收用户在所述至少一个组成部分添加图片的第二输入;
拍摄模块,用于响应于所述第二输入,拍摄目标图片;
添加模块,用于将所述目标图片添加入所述至少一个组成部分中;
文档生成模块,用于响应于生成所述目标文档的第三输入,生成所述目标文档。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品被存储在非瞬态的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法。
第七方面,本申请实施例提供一种通信设备,被配置为执行以实现如第一方面所述的方法。
在本申请实施例中,用户可以在相机界面自由选择想要创建的文档的类型,并通过即时拍摄照片的方式添加相应的照片到文档中的任意位置,从而实现照片的快速文档化,生成用户需要的具体组织结构的文档。
附图说明
图1为本申请实施例提供的一种文档生成方法的流程示意图;
图2为本申请实施例提供的一种相机界面的示意图;
图3为本申请实施例提供的文档类型的示意图;
图4为本申请实施例提供的文档类型为PPT的目标文档的创建模式示意图;
图5为本申请实施例提供的文档类型为WORD的目标文档的创建模式示意图;
图6为本申请实施例提供的在PPT文档中选择图片插入的目标组成部分的示意图;
图7为本申请实施例提供的PPT文档中完成图片拍摄的示意图;
图8为本申请实施例提供的在WORD文档中选择图片插入的目标组成部分的示意图;
图9为本申请实施例提供的WORD文档中完成图片拍摄的示意图;
图10为本申请实施例提供的在记事本文档中添加图片的示意图;
图11为本申请实施例提供的一种文档生成装置的结构示意图;
图12为本申请实施例提供的一种电子设备的结构示意图;
图13为实现本申请实施例的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的文档生成方法、装置和电子设备进行详细地说明。
请参考图1,图1为本申请实施例提供的一种文档生成方法的流程示意图。如图1所示,本申请实施例中的文档生成方法包括以下步骤:
步骤101:接收用户在拍摄预览界面选择待生成文档的类型的第一输入;
本申请实施例中,所述文档生成方法应用于电子设备,在打开电子设备的相机软件后,若需要使用文档化模式,则用户可以在拍摄预览界面选择文档化选项,并选择需要生成的文档的类型,电子设备将接收用户在拍摄预览界面选择需要生成的文档的类型的第一输入。可选地,本申请实施例中文档的类型可以包括WORD、演示文稿(PowerPoint,PPT)、可携带文档格式(Portable Document Format,PDF)、记事本等格式类型。
步骤102:响应于所述第一输入,进入目标类型的文档的创建模式,在所述创建模式下显示待生成的目标文档的至少一个组成部分;
本步骤中,电子设备在接收到所述第一输入后,将响应于所述第一输入,进入到目标类型的文档的创建模式,也就是说,用户在拍摄预览界面选择了需要生成的文档的类型后,电子设备将创建用户选择的目标类型的文档(此处创建的文档只是一个模板),并在所述创建模式下显示待生成的目标文档的至少一个组成部分;其中,目标文档的组成部分也即目标文档的结构组成,不同类型的文档的组成部分可以不同,文档的组成部分可以预先设置或定制,也可以调用现有的文档。
步骤103:接收用户在所述至少一个组成部分添加图片的第二输入;
在显示出待生成的目标文档的至少一个组成部分之后,若用户想在目标文档的某一组成部分中添加图片,则只需选择文档的相应组成部分,然后利用相机拍摄想要添加的图片即可;也就是说,电子设备将接收用户在所述目标文档的至少一个组成部分添加图片的第二输入,所述组成部分可以是用户选择的目标文档的任意一个组成部分,想要添加的图片可以通过相机进行实时拍摄获得,其中,可以在目标文档的一个组成部分中添加图片,也可以在目标文档的两个或两个以上的组成部分中添加图片,具体视用户需求而定。
步骤104:响应于所述第二输入,拍摄目标图片,并将所述目标图片添 加入所述至少一个组成部分中。
本步骤中,电子设备在接收到所述第二输入后,将响应于所述第二输入,启动相机拍摄目标图片,并将拍摄得到的目标图片添加到创建好的目标文档的至少一个组成部分中。也就是说,相机拍摄的目标图片将被快速地文档化到用户选择的目标类型的文档中,在完成拍摄的同时,即完成了图片的文档化过程。
步骤105:响应于生成所述目标文档的第三输入,生成所述目标文档。
在完成向待生成的目标文档的至少一个组成部分中添加目标图片后,在电子设备接收到用户生成所述目标文档的第三输入的情况下,电子设备将响应于生成所述目标文档的第三输入,生成所述目标文档,最终生成的目标文档中包含了前述步骤中在至少一个组成部分中添加的目标图片,相当于拍摄的过程中即在同步进行图片的文档化过程,在图片拍摄完成时便可立即生成目标文档,极大提高了图片的文档化效率,省去了借助其他软件工具进行文档化的繁琐过程。
由此,在本申请实施例中,用户可以在拍摄预览界面自由选择想要创建的文档的类型,并通过即时拍摄照片的方式添加相应的照片到文档中的任意位置,从而实现照片的快速文档化,生成用户需要的具体组织结构的文档。
请参考图2和图3,图2为本申请实施例提供的一种相机界面的示意图,图3为本申请实施例提供的文档类型的示意图。如图2和图3所示,在本申请的一些实施例中,电子设备进入到拍摄预览界面后,拍摄预览界面中可以显示有拍照、文档化等选项,所述第一输入可以包括对文档化选项的点击输入,若文档化选项被点击,即认为用户选择了文档化模式,在文档化模式下,可以将相机拍摄的照片文档化,生成相应的文档。在文档化选项被点击后,电子设备可以进一步在相机界面中显示可供选择的文档的类型,文档的类型可以包括WORD、PPT、其他等等。
请参考图4和图5,图4为本申请实施例提供的文档类型为PPT的目标文档的创建模式示意图,图5为本申请实施例提供的文档类型为WORD的目标文档的创建模式示意图。如图4和图5所示,本申请的一些实施例中,所述第一输入还可以包括在前述显示的可选的文档类型中选择目标类型的输入, 在选择了目标类型后,即进入目标类型的文档的创建模式,在所述创建模式下,将显示目标文档的至少一个组成部分,或者说目标文档的至少部分结构组成。例如,如图4所示,在选择了PPT这一文档类型后,将进入到PPT文档的创建模式,在该创建模式下,将显示PPT文档的组成部分,包括目录、主题一、主题二、主题三、主题四、主题五、总结等等,在显示PPT文档的组成部分时,可以显示目标文档的目录列表,或者说目标文档的组成部分的标题;又如,如图5所示,在选择了WORD这一文档类型后,将进入到WORD文档的创建模式,在该模式下,将显示WORD文档的组成部分,包括章节1、章节2、章节3、总结等等,在显示WORD文档的各个组成部分时,可以显示目标文档的目录列表,或者说目标文档的各个组成部分的标题。
本申请的一些实施例中,所述接收用户在所述至少一个组成部分添加图片的第二输入包括:
接收用户在所述目标文档中选择目标组成部分的第一子输入,以及接收用户拍摄目标图片的第二子输入;
所述响应于所述第二输入,拍摄目标图片,并将所述目标图片添加入所述至少一个组成部分中包括:
响应于所述第二输入,拍摄目标图片,并将所述目标图片按照拍摄时间的先后顺序添加至所述目标组成部分中。
请参考图6和图7,图6为本申请实施例提供的在PPT文档中选择图片插入的目标组成部分的示意图,图7为本申请实施例提供的PPT文档中完成图片拍摄的示意图。如图6和图7所示,本申请实施例中,以创建的文档为PPT文档为例,在创建模式下显示文档的各组成部分之后,若接收到用户在所述目标文档中选择目标组成部分的第一子输入以及用户拍摄图片的第二子输入,例如所述第一子输入可以是点击文档的“主题一”这一目标组成部分的输入,所述第二子输入可以为点击拍照按钮的输入,电子设备将响应于所述第二输入,启动相机进行拍摄,并将拍摄得到的图片按照拍摄时间的先后顺序依次添加到用户选择的目标文档的目标组成部分中(即“主题一”中),在完成“主题一”部分的图片添加后,可以继续选择目标文档的其他组成部分,并拍摄图片,以在目标文档的其他组成部分中添加拍摄的图片。在完成 最后的图片的拍摄后,用户可以点击结束按钮,电子设备将结束本次文档化拍摄,并将图片文档化得到的结果(即相应的PPT文档)进行保存,该目标文档可以保存在文档相册中,目标文档的默认名称可以为目标文档的类型与目标文档的创建时间的组合。
请参考图8和图9,图8为本申请实施例提供的在WORD文档中选择图片插入的目标组成部分的示意图,图9为本申请实施例提供的WORD文档中完成图片拍摄的示意图。如图8和图9所示,本申请实施例中,以创建的文档为WORD文档为例,在创建模式下显示目标文档的各组成部分之后,若接收到用户在所述目标文档中选择目标组成部分的第一子输入以及用户拍摄图片的第二子输入,例如所述第一子输入可以是点击目标文档的“章节一”这一目标组成部分的输入,所述第二子输入可以为点击拍照按钮的输入,电子设备将响应于所述第二输入,启动相机进行拍摄,并将拍摄得到的图片按照拍摄时间的先后顺序依次添加到用户选择的目标文档的目标组成部分中(即“章节1”中),在完成“章节1”部分的图片添加后,可以继续选择目标文档的其他组成部分,并拍摄图片,以在目标文档的其他组成部分中添加拍摄的图片。在完成最后的图片的拍摄后,用户可以点击结束按钮,电子设备将结束本次文档化拍摄,并将图片文档化得到的结果(即相应的WORD文档)进行保存,该目标文档可以保存在文档相册中,目标文档的默认名称可以为目标文档的类型与目标文档的创建时间的组合。
请参考图10,图10为本申请实施例提供的在记事本文档中添加图片的示意图。如图10所示,本申请实施例中,以创建的文档为记事本文档为例,在创建模式下显示目标文档的各组成部分之后(记事本文档下的各组成部分可以为空,即空白显示),若接收到用户在所述目标文档中选择目标组成部分的第一子输入以及用户拍摄图片的第二子输入,例如所述第一子输入可以是点击文档中的任意位置的输入,所述第二子输入可以为点击拍照按钮的输入,电子设备将响应于所述第二输入,启动相机进行拍摄,并将拍摄得到的图片按照拍摄时间的先后顺序依次添加到用户选择的目标文档的相应位置中。在完成最后的图片的拍摄后,用户可以点击结束按钮,电子设备将结束本次文档化拍摄,并将图片文档化得到的结果(即相应的记事本文档)进行保存, 该目标文档可以保存在文档相册中,目标文档的默认名称可以为目标文档的类型与目标文档的创建时间的组合。
在本申请的另一些实施例中,所述文档生成方法还包括:
接收用户调整所述目标文档中所述目标图片的第四输入;
响应于所述第四输入,调整所述目标图片在所述目标文档中的位置。
其中,在一种可选的实施方式中,在将拍摄得到的图片按照拍摄时间的先后顺序依次添加到用户选择的目标文档的目标组成部分之后,若接收到用户调整所述目标图片的第四输入,电子设备将响应于所述第四输入,对添加到目标文档的目标组成部分中的目标图片的位置顺序进行调整,以使最终生成的目标文档中的各目标图片在内容上连贯。在另一种可选的实施方式中,也可以在完成所有图片文档化之后,再统一调整图片的顺序,也就是说,可以在完成目标文档中各组成部分的目标图片的添加之后,再调整相应的组成部分中的目标图片的顺序,以使最终生成的目标文档中的各目标图片在内容上连贯。
在本申请实施例中,用户可以在拍摄预览界面自由选择想要创建的文档的类型,并通过即时拍摄照片的方式添加相应的照片到文档中的任意位置,从而实现照片的快速文档化,生成用户需要的具体组织结构的文档。
需要说明的是,本申请实施例提供的文档生成方法,执行主体可以为文档生成装置,或者该文档生成装置中的用于执行文档生成方法的控制模块。本申请实施例中以文档生成装置执行文档生成方法为例,说明本申请实施例提供的文档生成装置。
请参考图11,图11为本申请实施例提供的一种文档生成装置的结构示意图。如图11所示,本申请实施例中的文档生成装置1100包括:
第一接收模块1101,用于接收用户在拍摄预览界面选择待生成文档的类型的第一输入;
显示模块1102,用于响应于所述第一输入,进入目标类型的文档的创建模式,在所述创建模式下显示待生成的目标文档的至少一个组成部分;
第二接收模块1103,用于接收用户在所述至少一个组成部分添加图片的第二输入;
拍摄模块1104,用于响应于所述第二输入,拍摄目标图片;
添加模块1105,用于将所述目标图片添加入所述至少一个组成部分中;
文档生成模块1106,用于响应于生成所述目标文档的第三输入,生成所述目标文档。
可选地,所述第二接收模块1103包括:
第一接收单元,用于接收用户在所述目标文档中选择目标组成部分的第一子输入;
第二接收单元,用于接收用户拍摄目标图片的第二子输入;
所述添加模块包括:
添加单元,用于将所述目标图片按照拍摄时间的先后顺序添加至所述目标组成部分中。
可选地,所述显示模块1102包括:
显示单元,用于在所述创建模式下显示所述目标文档的目录列表。
可选地,所述文档生成装置1100还包括:
第四接收模块,用于接收用户调整所述目标文档中所述目标图片的第四输入;
调整模块,用于响应于所述第四输入,调整所述目标图片在所述目标文档中的位置。
在本申请实施例中,用户可以在拍摄预览界面自由选择想要创建的文档的类型,并通过即时拍摄照片的方式添加相应的照片到文档中的任意位置,从而实现照片的快速文档化,生成用户需要的具体组织结构的文档。
本申请实施例中的文档生成装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的文档生成装置可以为具有操作系统的装置。该操作系 统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的文档生成装置能够实现图1至图10的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图12所示,本申请实施例还提供一种电子设备1200,包括处理器1201,存储器1202,存储在存储器1202上并可在所述处理器1201上运行的程序或指令,该程序或指令被处理器1201执行时实现上述文档生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图13为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1300包括但不限于:射频单元1301、网络模块1302、音频输出单元1303、输入单元1304、传感器1305、显示单元1306、用户输入单元1307、接口单元1308、存储器1309、以及处理器1310等部件。
本领域技术人员可以理解,电子设备1300还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图13中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元1307,用于接收用户在拍摄预览界面选择待生成文档的类型的第一输入;
显示单元1306,用于响应于所述第一输入,进入目标类型的文档的创建模式,在所述创建模式下显示待生成的目标文档的至少一个组成部分;
用户输入单元1307,还用于接收用户在所述至少一个组成部分添加图片的第二输入;
输入单元1304,用于拍摄目标图片;
处理器1310,用于将所述目标图片添加入所述至少一个组成部分中;
用户输入单元1307,还用于接收生成所述目标文档的第三输入;
处理器1310,还用于响应于生成所述目标文档的第三输入,生成所述目标文档。
在本申请实施例中,用户可以在拍摄预览界面自由选择想要创建的文档的类型,并通过即时拍摄照片的方式添加相应的照片到文档中的任意位置,从而实现照片的快速文档化,生成用户需要的具体组织结构的文档。
可选地,用户输入单元1307,用于接收用户在所述目标文档中选择目标组成部分的第一子输入,以及接收用户拍摄目标图片的第二子输入;
处理器1310,用于将所述目标图片按照拍摄时间的先后顺序添加至所述目标组成部分中。
可选地,显示单元1306,用于在所述创建模式下显示所述目标文档的目录列表。
可选地,用户输入单元1307,还用于接收用户调整所述目标文档中所述目标图片的第四输入;
处理器1310,还用于响应于所述第四输入,调整所述目标图片在所述目标文档中的位置。
应理解的是,本申请实施例中,输入单元1304可以包括图形处理器(Graphics Processing Unit,GPU)13041和麦克风13042,图形处理器13041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1306可包括显示面板13061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板13061。用户输入单元1307包括触控面板13071以及其他输入设备13072。触控面板13071,也称为触摸屏。触控面板13071可包括触摸检测装置和触摸控制器两个部分。其他输入设备13072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1309可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1310中。
本申请实施例还提供一种可读存储介质,所述可读存储介质可以是非易 失的,也可以是易失的,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述文档生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品被存储在非瞬态的存储介质中,所述计算机程序产品被至少一个处理器执行以实现本申请实施例提供的文档生成方法中的步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述文档生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述 实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (13)

  1. 一种文档生成方法,包括:
    接收用户在拍摄预览界面选择待生成文档的类型的第一输入;
    响应于所述第一输入,进入目标类型的文档的创建模式,在所述创建模式下显示待生成的目标文档的至少一个组成部分;
    接收用户在所述至少一个组成部分添加图片的第二输入;
    响应于所述第二输入,拍摄目标图片,并将所述目标图片添加入所述至少一个组成部分中;
    响应于生成所述目标文档的第三输入,生成所述目标文档。
  2. 根据权利要求1所述的方法,其中,所述接收用户在所述至少一个组成部分添加图片的第二输入包括:
    接收用户在所述目标文档中选择目标组成部分的第一子输入,以及接收用户拍摄目标图片的第二子输入;
    所述响应于所述第二输入,拍摄目标图片,并将所述目标图片添加入所述至少一个组成部分中包括:
    响应于所述第二输入,拍摄目标图片,并将所述目标图片按照拍摄时间的先后顺序添加至所述目标组成部分中。
  3. 根据权利要求1所述的方法,其中,所述在所述创建模式下显示待生成的目标文档的至少一个组成部分包括:
    在所述创建模式下显示所述目标文档的目录列表。
  4. 根据权利要求1所述的方法,其中,还包括:
    接收用户调整所述目标文档中所述目标图片的第四输入;
    响应于所述第四输入,调整所述目标图片在所述目标文档中的位置。
  5. 一种文档生成装置,其中,包括:
    第一接收模块,用于接收用户在拍摄预览界面选择待生成文档的类型的第一输入;
    显示模块,用于响应于所述第一输入,进入目标类型的文档的创建模式,在所述创建模式下显示待生成的目标文档的至少一个组成部分;
    第二接收模块,用于接收用户在所述至少一个组成部分添加图片的第二输入;
    拍摄模块,用于响应于所述第二输入,拍摄目标图片;
    添加模块,用于将所述目标图片添加入所述至少一个组成部分中;
    文档生成模块,用于响应于生成所述目标文档的第三输入,生成所述目标文档。
  6. 根据权利要求5所述的装置,其中,所述第二接收模块包括:
    第一接收单元,用于接收用户在所述目标文档中选择目标组成部分的第一子输入;
    第二接收单元,用于接收用户拍摄目标图片的第二子输入;
    所述添加模块包括:
    添加单元,用于将所述目标图片按照拍摄时间的先后顺序添加至所述目标组成部分中。
  7. 根据权利要求5所述的装置,其中,所述显示模块包括:
    显示单元,用于在所述创建模式下显示所述目标文档的目录列表。
  8. 根据权利要求5所述的装置,其中,还包括:
    第四接收模块,用于接收用户调整所述目标文档中所述目标图片的第四输入;
    调整模块,用于响应于所述第四输入,调整所述目标图片在所述目标文档中的位置。
  9. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,其中,所述程序或指令被所述处理器执行时实现如权利要求1-4任一项所述的文档生成方法的步骤。
  10. 一种可读存储介质,所述可读存储介质上存储程序或指令,其中,所述程序或指令被处理器执行时实现如权利要求1-4任一项所述的文档生成方法的步骤。
  11. 一种芯片,包括处理器和通信接口,其中,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-4中任一项所述的文档生成方法的步骤。
  12. 一种计算机程序产品,其中,所述计算机程序产品被存储在非瞬态的可读存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1-4中任一项所述的文档生成方法的步骤。
  13. 一种通信设备,被配置为执行如权利要求1-4中任一项所述的文档生成方法的步骤。
PCT/CN2022/088427 2021-04-29 2022-04-22 文档生成方法、装置和电子设备 WO2022228301A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP22794772.8A EP4318299A1 (en) 2021-04-29 2022-04-22 Document generation method and apparatus and electronic device
US18/384,465 US20240061990A1 (en) 2021-04-29 2023-10-27 Document Generation Method and Electronic Device and Non-transitory Readable Storage Medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110474177.5 2021-04-29
CN202110474177.5A CN113139367A (zh) 2021-04-29 2021-04-29 文档生成方法、装置和电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/384,465 Continuation US20240061990A1 (en) 2021-04-29 2023-10-27 Document Generation Method and Electronic Device and Non-transitory Readable Storage Medium

Publications (1)

Publication Number Publication Date
WO2022228301A1 true WO2022228301A1 (zh) 2022-11-03

Family

ID=76817797

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/088427 WO2022228301A1 (zh) 2021-04-29 2022-04-22 文档生成方法、装置和电子设备

Country Status (4)

Country Link
US (1) US20240061990A1 (zh)
EP (1) EP4318299A1 (zh)
CN (1) CN113139367A (zh)
WO (1) WO2022228301A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113139367A (zh) * 2021-04-29 2021-07-20 维沃移动通信有限公司 文档生成方法、装置和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060008156A1 (en) * 2004-07-12 2006-01-12 Samsung Electronics Co., Ltd. Method and apparatus for generating electronic document by continuously photographing document in moving picture
CN102831106A (zh) * 2012-08-27 2012-12-19 腾讯科技(深圳)有限公司 一种移动终端的电子文档生成方法及移动终端
CN104794104A (zh) * 2015-04-30 2015-07-22 努比亚技术有限公司 多媒体文档的生成方法及装置
CN112396675A (zh) * 2019-08-12 2021-02-23 北京小米移动软件有限公司 图像处理方法、装置及存储介质
CN113139367A (zh) * 2021-04-29 2021-07-20 维沃移动通信有限公司 文档生成方法、装置和电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060008156A1 (en) * 2004-07-12 2006-01-12 Samsung Electronics Co., Ltd. Method and apparatus for generating electronic document by continuously photographing document in moving picture
CN102831106A (zh) * 2012-08-27 2012-12-19 腾讯科技(深圳)有限公司 一种移动终端的电子文档生成方法及移动终端
CN104794104A (zh) * 2015-04-30 2015-07-22 努比亚技术有限公司 多媒体文档的生成方法及装置
CN112396675A (zh) * 2019-08-12 2021-02-23 北京小米移动软件有限公司 图像处理方法、装置及存储介质
CN113139367A (zh) * 2021-04-29 2021-07-20 维沃移动通信有限公司 文档生成方法、装置和电子设备

Also Published As

Publication number Publication date
EP4318299A1 (en) 2024-02-07
CN113139367A (zh) 2021-07-20
US20240061990A1 (en) 2024-02-22

Similar Documents

Publication Publication Date Title
WO2022012657A1 (zh) 图像编辑方法、装置和电子设备
WO2022089568A1 (zh) 文件分享的方法、装置和电子设备
CN107748615B (zh) 屏幕的控制方法、装置、存储介质及电子设备
WO2022161267A1 (zh) 视频录制方法及装置
WO2022156606A1 (zh) 信息处理方法、装置及电子设备
WO2022206476A1 (zh) 水印处理方法、装置、电子设备及介质
WO2022143971A1 (zh) 一种视频处理方法、装置和电子设备
WO2022206582A1 (zh) 视频处理方法、装置、电子设备和存储介质
WO2022135323A1 (zh) 图像生成方法、装置和电子设备
CN112672061B (zh) 视频拍摄方法、装置、电子设备及介质
WO2023072156A1 (zh) 一种拍摄方法、拍摄装置、电子设备和可读存储介质
WO2023040896A1 (zh) 内容分享方法、装置和电子设备
CN112269522A (zh) 图像处理方法、装置、电子设备和可读存储介质
WO2022143382A1 (zh) 图像处理方法及装置
US20240061990A1 (en) Document Generation Method and Electronic Device and Non-transitory Readable Storage Medium
WO2022156665A1 (zh) 一种数据隔离方法和电子设备
WO2022111458A1 (zh) 图像拍摄方法和装置、电子设备及存储介质
WO2016197549A1 (zh) 一种进行搜索的方法和装置
WO2023155858A1 (zh) 文档编辑方法及其装置
WO2023143529A1 (zh) 拍摄方法、装置和电子设备
WO2023185701A1 (zh) 一种显示方法及其装置、电子设备和可读存储介质
WO2023155874A1 (zh) 应用图标管理方法、装置和电子设备
WO2023174297A1 (zh) 屏幕控制方法、装置及电子设备
TWI782137B (zh) 生成、展示資料物件資訊的方法及裝置
WO2023020328A1 (zh) 一种对象操控方法、装置及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22794772

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022794772

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022794772

Country of ref document: EP

Effective date: 20231026

NENP Non-entry into the national phase

Ref country code: DE