WO2015192713A1 - Image processing method and device, mobile terminal, and computer storage medium - Google Patents

Image processing method and device, mobile terminal, and computer storage medium Download PDF

Info

Publication number
WO2015192713A1
WO2015192713A1 PCT/CN2015/080302 CN2015080302W WO2015192713A1 WO 2015192713 A1 WO2015192713 A1 WO 2015192713A1 CN 2015080302 W CN2015080302 W CN 2015080302W WO 2015192713 A1 WO2015192713 A1 WO 2015192713A1
Authority
WO
WIPO (PCT)
Prior art keywords
template
splicing
instruction
user
stitching
Prior art date
Application number
PCT/CN2015/080302
Other languages
French (fr)
Chinese (zh)
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 努比亚技术有限公司
Publication of WO2015192713A1 publication Critical patent/WO2015192713A1/en

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects

Definitions

  • the present invention relates to a picture processing technology in the field of image data processing, and in particular, to a method, an apparatus, and a mobile terminal for performing picture processing in a shooting process.
  • the prior art provides a picture stitching software or a photo wall application software.
  • the software is designed to allow users to freely select multiple images to be placed in the template, resulting in a picture containing multiple photos, each frame being framed to the specified frame position.
  • Such applications can connect multiple different images with templates as a medium to facilitate sharing of images and the like.
  • Embodiments of the present invention provide a method and apparatus for performing picture processing in a process capable of shooting And the mobile terminal and the computer storage medium, in order to solve the problem that the user cannot find the picture taken in time during the shooting process is ideal, and the defect that cannot be retaken or retaked in time is caused.
  • a method for performing picture processing in a shooting process includes the following steps: displaying a preview picture of a framing in real time, the preview picture being an alternate splicing material; receiving a picture splicing instruction, Entering a picture stitching mode; receiving an operation instruction; and synthesizing the selected stitching material and the user-selected stitching template according to the operation instruction.
  • the synthesizing processing of the selected splicing material and the user-selected splicing template comprises: determining a type of the operation instruction; if the operation instruction is a template selection instruction or a template replacement instruction Initializing the selected mosaic template, and displaying the mosaic template after initialization; if the operation instruction is a drag instruction, adding or modifying the mosaic material in the mosaic template according to a user operation, and The result is stored in the buffer area; if the operation instruction is an end instruction, a preset splicing algorithm is called, and the splicing template and the splicing material are spliced and combined according to the data in the buffer area.
  • the adding or modifying a spliced material in the splicing template according to a user operation, and storing the result of the operation in a buffer area comprising: selecting an alternative according to a user operation The spliced material is dragged into the splicing template as a splicing material, and data of the candidate preview image is stored in the buffer area; or, according to a user operation, the splicing material in the splicing template is removed, and The data of the spliced material to be removed is deleted from the buffer area; or, according to the operation of the user, the candidate splicing material is dragged into the splicing template to replace the existing splicing material, and the splicing will be replaced.
  • the data of the material is deleted from the buffer area, and the data of the candidate spliced material is stored in the buffer area; or, according to the operation of the user, the order of the spliced materials in the splicing template is modified, and The data in the buffer area is modified accordingly.
  • the method further includes: displaying an effect diagram of the compositing process and prompting the user to select whether to The result of the synthesis process is stored; the result of the synthesis process is stored or deleted according to the user's selection.
  • an apparatus for performing picture processing during a shooting process comprising: a display unit configured to display a preview picture of a framing, the preview picture being an alternative splicing material a receiving unit configured to receive a picture stitching instruction when the display unit displays a preview picture; the processing unit is configured to enter the picture stitching mode after the receiving unit receives the picture stitching instruction; the receiving unit is further configured to be in After the processing unit enters the splicing mode, the operation unit receives the operation instruction; the processing unit is further configured to perform the compositing processing on the selected splicing material and the splicing template selected by the user according to the receiving operation instruction received by the receiving unit.
  • the processing unit comprising: a determining module configured to determine a type of an operation instruction received by the receiving unit; and an execution module configured to determine, in the determining module, that the operation instruction is a template selection When the instruction or template replaces the instruction, the splicing template selected by the user is initialized; the display unit is further configured to display the splicing template after the execution module initializes the splicing template selected by the user; the execution module is further configured to be When the determining module determines that the operation instruction is a drag instruction, adding or modifying the spliced material in the splicing template according to a user operation, and storing the result of the operation in a buffer area, or configured to be in the determining When the module determines that the operation instruction is an end instruction, the preset splicing algorithm is called, and the splicing template and the splicing material are spliced and combined according to the data in the buffer area.
  • execution module includes a trigger sub-module, a first execution sub-module, a second execution sub-module, a third execution sub-module, and a fourth execution sub-module;
  • the triggering submodule is configured to trigger, in the first execution submodule, the second execution submodule, the third execution submodule, and the fourth execution submodule, when the operation instruction is a drag instruction
  • the first execution sub-module is configured to drag an alternate mosaic material into the mosaic template as a mosaic material, and store data of the candidate mosaic material into the buffer area;
  • the second execution sub-module is configured to remove the mosaic material in the mosaic template, and delete data of the removed mosaic material from the buffer area;
  • the third execution sub-module is configured to replace the existing mosaic material in the mosaic template by dragging the candidate mosaic material, and delete the data of the replaced mosaic material from the buffer area, and Data of the alternative spliced material is stored in the buffer area;
  • the fourth execution submodule is configured to modify an order of the stitched materials in the stitching template, and modify data in the buffer area accordingly.
  • the display unit is further configured to display a result of the synthesizing process and prompt a user to select whether to store a result of the synthesizing process; the processing unit is further configured to be based on a user The result of the synthesis process is selected, stored or deleted.
  • a mobile terminal comprising the apparatus for performing picture processing during photographing as described above.
  • a computer storage medium in which executable instructions are stored, the executable instructions being used to perform the above-described method of picture processing.
  • the method and device for performing picture processing in the shooting process can receive the picture splicing instruction when the display unit displays the preview picture of the framing, thereby entering the picture splicing mode and directly framing the framing.
  • the preview image is used as an alternative stitching material, and then the selected stitching material is combined with the user-selected stitching template according to the received operation instruction, so that the user can directly obtain the ideal picture at the shooting scene, avoiding
  • the prior art is unsatisfactory because the shooting effect is unsatisfactory, which makes the user feel embarrassed and improves the user experience.
  • FIG. 1 is a schematic block diagram of an apparatus for performing picture processing in a shooting process according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for performing picture processing in a shooting process according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for performing picture processing in a shooting process according to an embodiment of the present invention.
  • the present invention provides a mobile terminal that performs picture processing during shooting, and the mobile terminal may be a smartphone with an imaging device or a camera or video camera having an image processing function.
  • the mobile terminal is provided with means capable of performing picture processing during shooting.
  • the device includes:
  • the display unit 101 is configured to display a preview image of the framing and use the displayed preview image as an alternative splicing material.
  • the preview image can be obtained by collecting data of the camera hardware, and the effect pre-processing operation is performed according to the preset effect parameter.
  • the receiving unit 102 is configured to receive a picture stitching instruction when the display unit displays the preview picture.
  • the processing unit 103 is configured to enter the image after the receiving unit 102 receives the splicing instruction Stitching mode.
  • the display unit 101 can simultaneously display the preview picture and the stitching template to facilitate the user to perform the stitching operation.
  • the preview image or the splicing template can be reduced to a certain corner of the display unit 101 as needed, and the reduced preview image or the splicing template can be redisplayed when needed, for example, when the splicing operation is performed, so that the user can view the current The result of the stitching and a series of stitching control operations.
  • the receiving unit 102 is further configured to receive an operation instruction after the processing unit 103 enters the stitching mode.
  • the processing unit 103 is further configured to perform a synthesis process on the selected mosaic material and the user-selected mosaic template according to the receiving operation instruction received by the receiving unit 102.
  • the processing unit 103 includes:
  • a determining module configured to determine a type of an operation instruction received by the receiving unit
  • the execution module (coupled with the determination module) is configured to initialize the splicing template selected by the user when the determining module determines that the operation instruction is a template selection instruction or a template replacement instruction;
  • the display unit 101 is further configured to display the splicing template after the execution module initializes the splicing template selected by the user;
  • the execution module is further configured to: when the determining module determines that the operation instruction is a drag instruction, add or modify the spliced material in the splicing template according to a specific operation according to a specific operation, and store the result of the operation in a buffer area, Or configured to: when the determining module determines that the operation instruction is an end instruction, retrieve a preset splicing algorithm, and perform splicing and splicing the splicing template and the splicing material according to the data in the buffer area.
  • the execution module includes a trigger submodule, a first execution submodule, a second execution submodule, a third execution submodule, and a fourth execution submodule (the trigger unit is respectively associated with the first execution submodule, the second execution submodule, and the third execution
  • the sub-module and the fourth execution sub-module are coupled to each other; specifically, when the judging module judges that the operation instruction is a drag instruction, the trigger sub-module triggers the first execution sub-module and the second execution
  • the sub-module, the third sub-module, and the fourth sub-module perform corresponding processing according to the specific operation of the user, where the first execution sub-module is configured to drag the alternate splicing material into the splicing
  • the template is used as a splicing material, and the data of the candidate spliced material is stored in the buffer area; the second execution sub-module is configured to remove the spliced material in the splicing template, and the data of the s
  • the third execution sub-module is configured to replace the existing mosaic material in the mosaic template by dragging the candidate mosaic material into the mosaic template, and delete the data of the replaced mosaic material from the buffer area, and The data of the candidate spliced material is stored in the buffer area; the fourth execution sub-module is configured to modify the order of the spliced materials in the splicing template, and modify the data in the buffer area accordingly.
  • the execution module retrieves a preset splicing algorithm, and according to the data in the buffer area, the splicing template and the splicing material are spliced and combined, and can be implemented by two methods.
  • Method 1 Firstly, the splicing template is first decomposed, and then the decomposed part is superimposed with the corresponding splicing material (the respective superpositions can be multi-threaded concurrent operations), and finally the fitting operation is performed on the result of each superposition operation.
  • Method 2 First, the splicing material is scaled so that it can correspond to each part of the splicing template, and then the spliced material is respectively pasted into the specified position of the splicing template (here, multi-thread concurrent operation can also be used, and finally summarized) .
  • the display unit 101 After the execution module splicing and synthesizing the splicing template and the splicing material, the display unit 101.
  • the method is further configured to display the result of the synthesizing process and prompt the user to select whether to store the result of the synthesizing process; the processing unit 103 is further configured to store or delete the result of the synthesizing process according to the user's selection.
  • the apparatus for performing image processing in the shooting process can receive the image stitching instruction when the display unit 101 displays the preview image of the framing, thereby entering the image stitching mode, and directly using the preview image of the framing as an alternative stitching material. Then, according to the received operation instruction, the selected mosaic material is combined with the user-selected mosaic template, so that the user can directly obtain the ideal picture at the shooting scene, thereby avoiding the prior art processing of the captured image. The user feels regret because the shooting effect is not ideal, which enhances the user experience.
  • the present invention also provides a method for performing picture processing during shooting.
  • the method includes:
  • S204 includes the following steps:
  • the operation instruction is a template selection instruction or a template replacement instruction, initializing the selected mosaic template, and displaying the mosaic template after initialization;
  • the operation instruction is a drag instruction
  • the spliced material is added or modified in the splicing template according to a specific operation, and the result of the operation is stored in the buffer area;
  • the operation instruction is an end instruction
  • the preset splicing algorithm is called, and the splicing template and the splicing material are spliced and synthesized according to the data in the buffer area.
  • the operation instruction is a drag instruction
  • the specific operation is in the mosaic template. Add or modify the stitched material and store the results of the operation in the buffer, including:
  • the candidate mosaic material is dragged into the mosaic template to replace the existing mosaic material, and the data of the replaced mosaic material is deleted from the buffer area, and the data of the candidate mosaic material is deleted.
  • the order of the stitched materials in the stitching template is modified, and the data in the buffer area is modified accordingly.
  • this step can display only a rough composite rendering, and the final splicing material and splicing template synthesis will be more accurate than the displayed compositing effect.
  • the method for performing image processing in the shooting process can receive the image stitching instruction when displaying the preview image of the framing, thereby entering the image stitching mode, directly using the preview image of the framing as an alternative stitching material, and then according to The received operation instruction combines the selected spliced material with the splicing template selected by the user, so that the user can directly obtain the ideal picture at the shooting scene, thereby avoiding the prior art processing effect on the captured picture.
  • the ideal makes the user feel sorry and enhances the user experience.
  • FIG. 3 is another method for performing image processing during shooting according to the above two embodiments of the present invention.
  • the method includes:
  • the preview image of the framing will be displayed in the form of a small window outside the splicing template
  • step S306. Determine whether the type of the received operation instruction is a drag instruction. If yes, execute step S307; otherwise, perform step 308.
  • step S307. Add, delete, or replace the spliced material in the splicing template according to the specific operation of the user, or modify the order of the spliced materials, and store the result of the operation in the buffer area, and perform step S305.
  • step S307 is as follows:
  • the operation can be implemented by sliding the screen from the splicing material (ie, preview picture) displayed outside the splicing template in the mobile terminal to the splicing frame specified in the splicing template.
  • the stitched data is added to the stitched data pool, where the stitched data is data containing the stitched material.
  • the splicing material is deleted from the splicing template, and the operation can be performed by sliding the splicing material out of the splicing frame from a splicing frame of the splicing template.
  • the stitched data corresponding to the stitched material is removed from the data pool.
  • S3073 replacing the stitching material in a splicing frame of the splicing template, can overwrite the existing splicing material by directly dragging the new splicing material from outside the splicing frame.
  • This operation can be considered as a combination of (1) and (2) to remove the old stitched material from the stitching frame and then add a new stitching material.
  • S3074 the order of splicing pictures is modified. This operation can be implemented by placing a finger in two splicing frames and performing a finger folding operation.
  • Step S308 Determine whether the type of the received operation instruction is a template replacement instruction, and if yes, execute Step S309, otherwise step S310 is performed.
  • step S310 Determine whether the received operation instruction is an end instruction. If yes, execute step S311, otherwise execute step S305.
  • S311 splicing and synthesizing the current splicing template and the splicing material.
  • the user can preview the effect of the stitching after splicing the image into the process, and after the stitching is completed, so that it is possible to find out whether the processed image is ideal in time, and when the image is not satisfactory, it can be timely. Re-framing and taking pictures at the shooting scene until you get the ideal picture.
  • the method for performing image processing in the shooting process can receive the image stitching instruction when displaying the preview image of the framing, thereby entering the image stitching mode, directly using the preview image of the framing as an alternative stitching material, and then according to The received operation instruction combines the selected spliced material with the splicing template selected by the user, so that the user can directly obtain the ideal picture at the shooting scene, thereby avoiding the prior art processing effect on the captured picture.
  • the ideal makes the user feel sorry and enhances the user experience.
  • An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores executable instructions, and the executable instructions are used to execute the method for sharing pictures shown in FIG. 1.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage medium includes: a mobile storage device, a random access memory (RAM), a read-only memory (ROM), a magnetic disk, or an optical disk.
  • RAM random access memory
  • ROM read-only memory
  • magnetic disk or an optical disk.
  • optical disk A medium that can store program code.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a RAM, a ROM, a magnetic disk, or an optical disk.

Abstract

An image processing method and device, a mobile terminal, and a computer storage medium. The method comprises: displaying a preview image of framing, the preview image being a candidate stitching material; receiving an image stitching instruction and entering an image stitching mode; receiving an operation instruction; and synthesizing the selected stitching material and a stitching template according to the operation instruction.

Description

图片处理的方法、装置及移动终端、计算机存储介质Image processing method, device, mobile terminal, computer storage medium 技术领域Technical field
本发明涉及图像数据处理领域的图片处理技术,尤其涉及在拍摄过程中进行图片处理的方法、装置及移动终端。The present invention relates to a picture processing technology in the field of image data processing, and in particular, to a method, an apparatus, and a mobile terminal for performing picture processing in a shooting process.
背景技术Background technique
随着数字成像技术的发展,图像拍摄已经在日常生活中得到了普及和应用,人们已经习惯于随时拍下各类图片或影像,但是拍摄出来的图片都是单一图片,内容和视觉效果比较单调。With the development of digital imaging technology, image shooting has been popularized and applied in daily life. People have been accustomed to taking various pictures or images at any time, but the pictures taken are single pictures, and the content and visual effects are relatively monotonous. .
为了获得较好的视觉效果,现有技术提供了图片拼接软件或者照片墙应用软件。这些软件都是通过给定模板,用户可以自由选定多张图片放到模板中,从而生成一张包含多张照片,并且每张照片都被框定到指定相框位置的图片。这类应用可以将多张不同的图片以模板作为媒介连接起来,为用户分享图片等提供便利。In order to obtain a better visual effect, the prior art provides a picture stitching software or a photo wall application software. The software is designed to allow users to freely select multiple images to be placed in the template, resulting in a picture containing multiple photos, each frame being framed to the specified frame position. Such applications can connect multiple different images with templates as a medium to facilitate sharing of images and the like.
但是现有技术的上述软件仅适用于计算机,而且拼图过程中需要的素材都是事先已经拍摄好的,因此在操作的过程中即使发现效果不理想也没法对素材的内容进行修改,用户难免感到遗憾。另一方面,在某些应用场景下,比如超级市场购物、动物园拍摄小动物、植物园拍摄植物花卉,等等,用户会希望能够在现场就对图片进行处理,以便获取理想的处理结果。因此,有必要提供一种能够拍摄的过程中进行图片处理的方法、装置及移动终端,以提升用户体验。However, the above-mentioned software of the prior art is only applicable to a computer, and the materials required in the puzzle process are already taken in advance, so even if the effect is not satisfactory during the operation, the content of the material cannot be modified, and the user is inevitably inevitably I feel sorry. On the other hand, in some application scenarios, such as supermarket shopping, zoo shooting small animals, botanical gardens, plant flowers, etc., users will want to be able to process the pictures on the spot in order to get the desired results. Therefore, it is necessary to provide a method, a device and a mobile terminal for performing image processing in a process of shooting to enhance the user experience.
发明内容Summary of the invention
本发明实施例提供一种能够拍摄的过程中进行图片处理的方法、装置 及移动终端、计算机存储介质,以解决用户不能在拍摄过程中及时发现拍摄的图片是否理想,导致的不能及时补拍或重拍的缺陷。Embodiments of the present invention provide a method and apparatus for performing picture processing in a process capable of shooting And the mobile terminal and the computer storage medium, in order to solve the problem that the user cannot find the picture taken in time during the shooting process is ideal, and the defect that cannot be retaken or retaked in time is caused.
本发明实施例解决上述技术问题所采用的技术方案如下:The technical solutions adopted by the embodiments of the present invention to solve the above technical problems are as follows:
根据本发明实施例的一个方面,提供一种在拍摄过程中进行图片处理的方法,包括如下步骤:实时显示取景的预览图片,所述预览图片即为备选的拼接素材;接收图片拼接指令,进入图片拼接模式;接收操作指令;根据所述操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理。According to an aspect of the embodiments of the present invention, a method for performing picture processing in a shooting process includes the following steps: displaying a preview picture of a framing in real time, the preview picture being an alternate splicing material; receiving a picture splicing instruction, Entering a picture stitching mode; receiving an operation instruction; and synthesizing the selected stitching material and the user-selected stitching template according to the operation instruction.
提供一种如上所述的方法,所述将被选中的拼接素材与用户选择的拼接模板进行合成处理,包括:判断所述操作指令的类型;若所述操作指令为模板选择指令或模板替换指令,初始化被选择的拼接模板,并在初始化之后显示所述拼接模板;若所述操作指令为拖动指令,根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区;若所述操作指令为结束指令,调取预设的拼接算法,根据所述缓存区内的数据,对所述拼接模板与拼接素材进行拼接合成。Providing a method as described above, the synthesizing processing of the selected splicing material and the user-selected splicing template comprises: determining a type of the operation instruction; if the operation instruction is a template selection instruction or a template replacement instruction Initializing the selected mosaic template, and displaying the mosaic template after initialization; if the operation instruction is a drag instruction, adding or modifying the mosaic material in the mosaic template according to a user operation, and The result is stored in the buffer area; if the operation instruction is an end instruction, a preset splicing algorithm is called, and the splicing template and the splicing material are spliced and combined according to the data in the buffer area.
提供一种如上所述的方法,所述根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区,包括:根据用户的操作,将备选的拼接素材拖入所述拼接模板中作为拼接素材,并将所述备选的预览图片的数据存储到所述缓存区;或者,根据用户的操作,移除所述拼接模板中的拼接素材,并将被移除的拼接素材的数据从所述缓存区删除;或者,根据用户的操作,将所述备选的拼接素材拖入所述拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从所述缓存区中删除,并将所述备选的拼接素材的数据存储到所述缓存区中;或者,根据用户的操作,修改所述拼接模板中的拼接素材的顺序,并相应地修改所述缓存区中数据。 Providing a method as described above, the adding or modifying a spliced material in the splicing template according to a user operation, and storing the result of the operation in a buffer area, comprising: selecting an alternative according to a user operation The spliced material is dragged into the splicing template as a splicing material, and data of the candidate preview image is stored in the buffer area; or, according to a user operation, the splicing material in the splicing template is removed, and The data of the spliced material to be removed is deleted from the buffer area; or, according to the operation of the user, the candidate splicing material is dragged into the splicing template to replace the existing splicing material, and the splicing will be replaced. The data of the material is deleted from the buffer area, and the data of the candidate spliced material is stored in the buffer area; or, according to the operation of the user, the order of the spliced materials in the splicing template is modified, and The data in the buffer area is modified accordingly.
提供一种如上所述的方法,所述将被选中的拼接素材与用户选择的拼接模板进行合成处理之后,所述方法还包括:显示所述合成处理的效果图并提示用户选择是否对所述合成处理的结果进行存储;根据用户的选择,存储或删除所述合成处理的结果。Providing a method as described above, after the spliced material selected by the user is combined with the splicing template selected by the user, the method further includes: displaying an effect diagram of the compositing process and prompting the user to select whether to The result of the synthesis process is stored; the result of the synthesis process is stored or deleted according to the user's selection.
根据本发明实施例的另一个方面,提供一种在拍摄过程中进行图片处理的装置,所述装置包括:显示单元,配置为显示取景的预览图片,所述预览图片即为备选的拼接素材;接收单元,配置为在所述显示单元显示预览图片时接收图片拼接指令;处理单元,配置为所述接收单元接收了图片拼接指令之后,进入图片拼接模式;所述接收单元,还配置为在所述处理单元进入拼接模式之后,接收操作指令;所述处理单元,还配置为根据所述接收单元接收的接收操作指令将被选中的拼接素材与用户选择的拼接模板进行合成处理。According to another aspect of the embodiments of the present invention, there is provided an apparatus for performing picture processing during a shooting process, the apparatus comprising: a display unit configured to display a preview picture of a framing, the preview picture being an alternative splicing material a receiving unit configured to receive a picture stitching instruction when the display unit displays a preview picture; the processing unit is configured to enter the picture stitching mode after the receiving unit receives the picture stitching instruction; the receiving unit is further configured to be in After the processing unit enters the splicing mode, the operation unit receives the operation instruction; the processing unit is further configured to perform the compositing processing on the selected splicing material and the splicing template selected by the user according to the receiving operation instruction received by the receiving unit.
提供一种如上所述的装置,所述处理单元包括:判断模块,配置为判断所述接收单元接收的操作指令的类型;执行模块,配置为在所述判断模块判断所述操作指令为模板选择指令或模板替换指令时,初始化用户选择的拼接模板;所述显示单元,还配置为在所述执行模块初始化用户选择的拼接模板之后,显示所述拼接模板;所述执行模块,还配置为在所述判断模块判断所述操作指令为拖动指令时,根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区,或者配置为在所述判断模块判断所述操作指令为结束指令时,调取预设的拼接算法,根据所述缓存区内的数据,对所述拼接模板与拼接素材进行拼接合成。A device as described above, the processing unit comprising: a determining module configured to determine a type of an operation instruction received by the receiving unit; and an execution module configured to determine, in the determining module, that the operation instruction is a template selection When the instruction or template replaces the instruction, the splicing template selected by the user is initialized; the display unit is further configured to display the splicing template after the execution module initializes the splicing template selected by the user; the execution module is further configured to be When the determining module determines that the operation instruction is a drag instruction, adding or modifying the spliced material in the splicing template according to a user operation, and storing the result of the operation in a buffer area, or configured to be in the determining When the module determines that the operation instruction is an end instruction, the preset splicing algorithm is called, and the splicing template and the splicing material are spliced and combined according to the data in the buffer area.
提供一种如上所述的装置,所述执行模块,包括触发子模块、第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块;其中,An apparatus as described above, wherein the execution module includes a trigger sub-module, a first execution sub-module, a second execution sub-module, a third execution sub-module, and a fourth execution sub-module;
所述触发子模块,配置为在所述操作指令为拖动指令时,触发所述第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块中的 一个子模块:The triggering submodule is configured to trigger, in the first execution submodule, the second execution submodule, the third execution submodule, and the fourth execution submodule, when the operation instruction is a drag instruction A submodule:
所述第一执行子模块,配置为将备选的拼接素材拖入所述拼接模板中作为拼接素材,并将所述备选的拼接素材的数据存储到所述缓存区;The first execution sub-module is configured to drag an alternate mosaic material into the mosaic template as a mosaic material, and store data of the candidate mosaic material into the buffer area;
所述第二执行子模块,配置为移除所述拼接模板中的拼接素材,并将被移除的拼接素材的数据从所述缓存区删除;The second execution sub-module is configured to remove the mosaic material in the mosaic template, and delete data of the removed mosaic material from the buffer area;
所述第三执行子模块,配置为在所述备选的拼接素材拖入所述拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从所述缓存区中删除,并将所述备选的拼接素材的数据存储到所述缓存区中;The third execution sub-module is configured to replace the existing mosaic material in the mosaic template by dragging the candidate mosaic material, and delete the data of the replaced mosaic material from the buffer area, and Data of the alternative spliced material is stored in the buffer area;
所述第四执行子模块,配置为修改所述拼接模板中的拼接素材的顺序,并相应地修改所述缓存区中数据。The fourth execution submodule is configured to modify an order of the stitched materials in the stitching template, and modify data in the buffer area accordingly.
提供一种如上所述的装置,所述显示单元,还配置为显示所述合成处理的结果并提示用户选择是否对所述合成处理的结果进行存储;所述处理单元,还配置为根据用户的选择,存储或删除所述合成处理的结果。Providing an apparatus as described above, wherein the display unit is further configured to display a result of the synthesizing process and prompt a user to select whether to store a result of the synthesizing process; the processing unit is further configured to be based on a user The result of the synthesis process is selected, stored or deleted.
根据本发明实施例的又一方面,提供了一种移动终端,包括如上所述的在拍摄过程中进行图片处理的装置。According to still another aspect of an embodiment of the present invention, there is provided a mobile terminal comprising the apparatus for performing picture processing during photographing as described above.
根据本发明实施例的又一方面,提供了一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行上述的图片处理的方法。According to still another aspect of an embodiment of the present invention, a computer storage medium is provided, in which executable instructions are stored, the executable instructions being used to perform the above-described method of picture processing.
本发明实施例的在拍摄过程中进行图片处理的方法、装置及移动终端、计算机存储介质,能够在显示单元显示取景的预览图片时,接收图片拼接指令,从而进入图片拼接模式,直接将取景的预览图片作为备选的拼接素材,然后根据接收的操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理,因此这样用户可以在拍摄现场直接获取理想的图片,避 免了现有技术对拍摄的图片处理的过程中因拍摄效果不理想而使用户感到遗憾,提升了用户的体验。The method and device for performing picture processing in the shooting process, and the mobile terminal and the computer storage medium can receive the picture splicing instruction when the display unit displays the preview picture of the framing, thereby entering the picture splicing mode and directly framing the framing. The preview image is used as an alternative stitching material, and then the selected stitching material is combined with the user-selected stitching template according to the received operation instruction, so that the user can directly obtain the ideal picture at the shooting scene, avoiding In the process of processing the taken pictures, the prior art is unsatisfactory because the shooting effect is unsatisfactory, which makes the user feel sorry and improves the user experience.
附图说明DRAWINGS
图1为本发明实施例提供的一种在拍摄过程中进行图片处理的装置的模块示意图;1 is a schematic block diagram of an apparatus for performing picture processing in a shooting process according to an embodiment of the present invention;
图2为本发明实施例提供的一种在拍摄过程中进行图片处理的方法的流程图;2 is a flowchart of a method for performing picture processing in a shooting process according to an embodiment of the present invention;
图3为本发明实施例提供的另一种在拍摄过程中进行图片处理的方法的流程图。FIG. 3 is a flowchart of another method for performing picture processing in a shooting process according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments, in order to make the present invention. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供了一种在拍摄过程中进行图片处理的移动终端,该移动终端可以是带有摄像装置的智能手机或具有图像处理功能的照相机或摄像机。该移动终端设有能够在在拍摄过程中进行图片处理的装置。The present invention provides a mobile terminal that performs picture processing during shooting, and the mobile terminal may be a smartphone with an imaging device or a camera or video camera having an image processing function. The mobile terminal is provided with means capable of performing picture processing during shooting.
请参阅图1,该装置包括:Referring to Figure 1, the device includes:
显示单元101,配置为显示取景的预览图片,并将显示的预览图片作为备选的拼接素材。The display unit 101 is configured to display a preview image of the framing and use the displayed preview image as an alternative splicing material.
具体的,可以通过采集摄像头硬件的数据获取预览图片,并根据预设的效果参数进行效果预处理操作。Specifically, the preview image can be obtained by collecting data of the camera hardware, and the effect pre-processing operation is performed according to the preset effect parameter.
接收单元102,配置为在该显示单元显示预览图片时接收图片拼接指令。The receiving unit 102 is configured to receive a picture stitching instruction when the display unit displays the preview picture.
处理单元103,配置为在该接收单元102接收到拼接指令后,进入图片 拼接模式。The processing unit 103 is configured to enter the image after the receiving unit 102 receives the splicing instruction Stitching mode.
具体的,当进入图片拼接模式后,显示单元101可同时显示预览图片及拼接模板,以方便用户进行拼接操作。比如用户可以根据需要将该预览图片或拼接模板缩小到显示单元101的某个角落上,需要的时候(比如进行拼接操作时)将缩小的预览图片或拼接模板重新显示出来,从而方便用户查看当前的拼接结果,并进行一系列的拼接控制操作。Specifically, after entering the picture stitching mode, the display unit 101 can simultaneously display the preview picture and the stitching template to facilitate the user to perform the stitching operation. For example, the preview image or the splicing template can be reduced to a certain corner of the display unit 101 as needed, and the reduced preview image or the splicing template can be redisplayed when needed, for example, when the splicing operation is performed, so that the user can view the current The result of the stitching and a series of stitching control operations.
接收单元102,还配置为在该处理单元103进入拼接模式之后,接收操作指令。The receiving unit 102 is further configured to receive an operation instruction after the processing unit 103 enters the stitching mode.
处理单元103,还配置为根据该接收单元102接收的接收操作指令将被选中的拼接素材与用户选择的拼接模板进行合成处理。The processing unit 103 is further configured to perform a synthesis process on the selected mosaic material and the user-selected mosaic template according to the receiving operation instruction received by the receiving unit 102.
具体的,处理单元103包括:Specifically, the processing unit 103 includes:
判断模块,配置为判断该接收单元接收的操作指令的类型;a determining module configured to determine a type of an operation instruction received by the receiving unit;
执行模块(与判断模块耦合),配置为在该判断模块判断该操作指令为模板选择指令或模板替换指令时,初始化用户选择的拼接模板;The execution module (coupled with the determination module) is configured to initialize the splicing template selected by the user when the determining module determines that the operation instruction is a template selection instruction or a template replacement instruction;
此时,显示单元101,还配置为在该执行模块初始化用户选择的拼接模板之后,显示该拼接模板;At this time, the display unit 101 is further configured to display the splicing template after the execution module initializes the splicing template selected by the user;
该执行模块,还配置为在该判断模块判断该操作指令为拖动指令时,根据具体操作根据具体的操作在该拼接模板中添加或修改拼接素材,并将该操作的结果存储到缓存区,或者配置为在该判断模块判断该操作指令为结束指令时,调取预设的拼接算法,根据该缓存区内的数据,对该拼接模板与拼接素材进行拼接合成。The execution module is further configured to: when the determining module determines that the operation instruction is a drag instruction, add or modify the spliced material in the splicing template according to a specific operation according to a specific operation, and store the result of the operation in a buffer area, Or configured to: when the determining module determines that the operation instruction is an end instruction, retrieve a preset splicing algorithm, and perform splicing and splicing the splicing template and the splicing material according to the data in the buffer area.
执行模块包括触发子模块、第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块(触发单元分别与第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块耦合);具体的,当判断模块判断操作指令为拖动指令时,触发子模块触发第一执行子模块、第二执行 子模块、第三执行子模块和第四执行子模块中的一个子模块则根据用户的具体操作进行相应的处理,其中,第一执行子模块,配置为将备选的拼接素材拖入该拼接模板中作为拼接素材,并将该备选的拼接素材的数据存储到该缓存区;第二执行子模块,配置为移除该拼接模板中的拼接素材,并将被移除的拼接素材的数据从该缓存区删除;第三执行子模块,配置为在该备选的拼接素材拖入该拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从该缓存区中删除,并将该备选的拼接素材的数据存储到该缓存区中;第四执行子模块,配置为修改该拼接模板中的拼接素材的顺序,并相应地修改该缓存区中数据。The execution module includes a trigger submodule, a first execution submodule, a second execution submodule, a third execution submodule, and a fourth execution submodule (the trigger unit is respectively associated with the first execution submodule, the second execution submodule, and the third execution The sub-module and the fourth execution sub-module are coupled to each other; specifically, when the judging module judges that the operation instruction is a drag instruction, the trigger sub-module triggers the first execution sub-module and the second execution The sub-module, the third sub-module, and the fourth sub-module perform corresponding processing according to the specific operation of the user, where the first execution sub-module is configured to drag the alternate splicing material into the splicing The template is used as a splicing material, and the data of the candidate spliced material is stored in the buffer area; the second execution sub-module is configured to remove the spliced material in the splicing template, and the data of the spliced material to be removed is removed. The third execution sub-module is configured to replace the existing mosaic material in the mosaic template by dragging the candidate mosaic material into the mosaic template, and delete the data of the replaced mosaic material from the buffer area, and The data of the candidate spliced material is stored in the buffer area; the fourth execution sub-module is configured to modify the order of the spliced materials in the splicing template, and modify the data in the buffer area accordingly.
实际应用中,显示单元101可以由液晶显示面板及相关显示驱动电路实现;接收单元102可由支持人机交互的组件如键盘、鼠标、或支持触控操作的显示101实现;处理单元103可以处理器配合内存实现,其中内存用户存储供处理单元103处理的数据,这里的处理器可以CPU、微处理器(MCU);处理单元103也可以有专用集成电路(ASIC)或逻辑可编程门阵列(FPGA)实现。In practical applications, the display unit 101 can be implemented by a liquid crystal display panel and an associated display driving circuit; the receiving unit 102 can be implemented by a component that supports human-computer interaction, such as a keyboard, a mouse, or a display 101 that supports touch operations; the processing unit 103 can be a processor. In conjunction with a memory implementation, where the memory user stores data for processing by the processing unit 103, the processor herein may be a CPU or a microprocessor (MCU); the processing unit 103 may also have an application specific integrated circuit (ASIC) or a logic programmable gate array (FPGA). )achieve.
本实施例中,在该操作指令为结束指令时,执行模块调取预设的拼接算法,根据该缓存区内的数据,对该拼接模板与拼接素材进行拼接合成时,可以通过两种方法实现对该缓存区的拼接模板及拼接素材的拼接:In this embodiment, when the operation instruction is an end instruction, the execution module retrieves a preset splicing algorithm, and according to the data in the buffer area, the splicing template and the splicing material are spliced and combined, and can be implemented by two methods. The splicing template of the buffer area and the splicing of the spliced material:
方法一:先将拼接模板先进行分解,然后将分解的部分与对应的拼接素材做叠加操作(各自的叠加可以采用多线程并发操作),最后在对每个叠加操作的结果做贴合操作。Method 1: Firstly, the splicing template is first decomposed, and then the decomposed part is superimposed with the corresponding splicing material (the respective superpositions can be multi-threaded concurrent operations), and finally the fitting operation is performed on the result of each superposition operation.
方法二:先将拼接素材进行缩放操作,使之可以与拼接模板的各部分对应,然后将缩放后的拼接素材分别粘贴到拼接模板的指定位置(这里也可采用多线程并发操作,最后汇总)。Method 2: First, the splicing material is scaled so that it can correspond to each part of the splicing template, and then the spliced material is respectively pasted into the specified position of the splicing template (here, multi-thread concurrent operation can also be used, and finally summarized) .
当执行模块对该拼接模板与拼接素材进行拼接合成之后,显示单元 101,还配置为显示该合成处理的结果并提示用户选择是否对该合成处理的结果进行存储;处理单元103,还配置为根据用户的选择,存储或删除该合成处理的结果。After the execution module splicing and synthesizing the splicing template and the splicing material, the display unit 101. The method is further configured to display the result of the synthesizing process and prompt the user to select whether to store the result of the synthesizing process; the processing unit 103 is further configured to store or delete the result of the synthesizing process according to the user's selection.
本实施例提供的在拍摄过程中进行图片处理的装置,能够在显示单元101显示取景的预览图片时,接收图片拼接指令,从而进入图片拼接模式,直接将取景的预览图片作为备选的拼接素材,然后根据接收的操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理,因此这样用户可以在拍摄现场直接获取理想的图片,避免了现有技术对拍摄的图片处理的过程中因拍摄效果不理想而使用户感到遗憾,提升了用户的体验。The apparatus for performing image processing in the shooting process provided by the embodiment can receive the image stitching instruction when the display unit 101 displays the preview image of the framing, thereby entering the image stitching mode, and directly using the preview image of the framing as an alternative stitching material. Then, according to the received operation instruction, the selected mosaic material is combined with the user-selected mosaic template, so that the user can directly obtain the ideal picture at the shooting scene, thereby avoiding the prior art processing of the captured image. The user feels regret because the shooting effect is not ideal, which enhances the user experience.
在上述实施例的基础上,本发明还提供了一种在拍摄过程中进行图片处理的方法,请参阅图2,方法包括:On the basis of the above embodiments, the present invention also provides a method for performing picture processing during shooting. Referring to FIG. 2, the method includes:
S201、实时显示取景的预览图片,该预览图片即备选的拼接素材;S201. Display a preview image of the framing in real time, and the preview image is an alternative splicing material;
S202、接收图片拼接指令,进入图片拼接模式;S202. Receive a picture stitching instruction, and enter a picture stitching mode.
S203、接收操作指令;S203. Receive an operation instruction.
S204、根据该操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理。S204. Synthesize the spliced material selected by the user and the splicing template selected by the user according to the operation instruction.
具体的,S204包括如下步骤:Specifically, S204 includes the following steps:
判断该操作指令的类型;Determine the type of the operation instruction;
若该操作指令为模板选择指令或模板替换指令,初始化被选择的拼接模板,并在初始化之后显示该拼接模板;If the operation instruction is a template selection instruction or a template replacement instruction, initializing the selected mosaic template, and displaying the mosaic template after initialization;
若该操作指令为拖动指令,根据具体的操作在该拼接模板中添加或修改拼接素材,并将该操作的结果存储到缓存区;If the operation instruction is a drag instruction, the spliced material is added or modified in the splicing template according to a specific operation, and the result of the operation is stored in the buffer area;
若该操作指令为结束指令,调取预设的拼接算法,根据该缓存区内的数据,对该拼接模板与拼接素材进行拼接合成。If the operation instruction is an end instruction, the preset splicing algorithm is called, and the splicing template and the splicing material are spliced and synthesized according to the data in the buffer area.
具体的,当操作指令为拖动指令时,根据具体的操作在该拼接模板中 添加或修改拼接素材,并将该操作的结果存储到缓存区,包括:Specifically, when the operation instruction is a drag instruction, the specific operation is in the mosaic template. Add or modify the stitched material and store the results of the operation in the buffer, including:
根据用户的操作,将备选的拼接素材拖入该拼接模板中作为拼接素材,并将该备选的拼接素材的数据存储到该缓存区;或者Dragging the alternate stitching material into the stitching template as a stitching material according to the user's operation, and storing the data of the candidate stitching material into the buffer area; or
根据用户的操作,移除该拼接模板中的拼接素材,并将被移除的拼接素材的数据从该缓存区删除;或者,Removing the stitched material in the stitching template according to the user's operation, and deleting the data of the removed stitching material from the buffer area; or
根据用户的操作,将该备选的拼接素材拖入该拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从该缓存区中删除,并将该备选的拼接素材的数据存储到该缓存区中;或者,According to the operation of the user, the candidate mosaic material is dragged into the mosaic template to replace the existing mosaic material, and the data of the replaced mosaic material is deleted from the buffer area, and the data of the candidate mosaic material is deleted. Stored in this cache; or,
根据用户的操作,修改该拼接模板中的拼接素材的顺序,并相应地修改该缓存区中数据。According to the operation of the user, the order of the stitched materials in the stitching template is modified, and the data in the buffer area is modified accordingly.
S205、显示该合成处理的效果并提示用户选择是否对该合成处理的结果进行存储。S205. Display the effect of the synthesizing process and prompt the user to select whether to store the result of the synthesizing process.
在实际应用中,为了使移动终端对用户的操作实现快速反应,因此该步骤可以只显示一个粗略的合成效果图,而最终拼接素材及拼接模板的合成将比显示的合成效果更加精确。In practical applications, in order to enable the mobile terminal to quickly respond to the user's operation, this step can display only a rough composite rendering, and the final splicing material and splicing template synthesis will be more accurate than the displayed compositing effect.
S206、根据用户的选择,存储或删除该合成处理的结果。S206. Store or delete the result of the synthesizing process according to a user's selection.
本实施例提供的在拍摄过程中进行图片处理的方法,能够在显示取景的预览图片时,接收图片拼接指令,从而进入图片拼接模式,直接将取景的预览图片作为备选的拼接素材,然后根据接收的操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理,因此用户可以在拍摄现场直接获取理想的图片,避免了现有技术对拍摄的图片处理的过程中因拍摄效果不理想而使用户感到遗憾,提升了用户的体验。The method for performing image processing in the shooting process provided by the embodiment can receive the image stitching instruction when displaying the preview image of the framing, thereby entering the image stitching mode, directly using the preview image of the framing as an alternative stitching material, and then according to The received operation instruction combines the selected spliced material with the splicing template selected by the user, so that the user can directly obtain the ideal picture at the shooting scene, thereby avoiding the prior art processing effect on the captured picture. The ideal makes the user feel sorry and enhances the user experience.
请参阅图3,为本发明在上述两个实施例的基础上提供的另一种在拍摄过程中进行图片处理的方法,方法包括:Please refer to FIG. 3 , which is another method for performing image processing during shooting according to the above two embodiments of the present invention. The method includes:
S301、在拍摄的过程中,实时显示取景的预览图片; S301. Displaying a preview image of the framing in real time during the shooting process;
S302、接收图片拼接指令;S302. Receive a picture stitching instruction.
S303、进入图片拼接模式;S303. Enter a picture stitching mode.
S304、初始化默认的拼接模板,并在初始化之后显示该默认的拼接S304. Initialize a default stitching template, and display the default stitching after initialization.
此时,取景的预览图片将以小窗口的形式显示在拼接模板之外;At this point, the preview image of the framing will be displayed in the form of a small window outside the splicing template;
S305、等待并接收操作指令;S305. Wait and receive an operation instruction.
S306、判断接收的操作指令的类型是否为拖动指令,若是,执行步骤S307,否则执行步骤308。S306. Determine whether the type of the received operation instruction is a drag instruction. If yes, execute step S307; otherwise, perform step 308.
S307、根据用户的具体操,在拼接模板中添加、删除、替换拼接素材,或修改拼接素材的顺序,并将操作的结果存储到缓存区,执行步骤S305。S307. Add, delete, or replace the spliced material in the splicing template according to the specific operation of the user, or modify the order of the spliced materials, and store the result of the operation in the buffer area, and perform step S305.
具体的,步骤S307的实现方式如下:Specifically, the implementation manner of step S307 is as follows:
S3071,添加拼接素材到拼接模板中,这一操作可以通过在移动终端中从显示在拼接模板之外的拼接素材(即预览图片)滑动屏幕到拼接模板中指定的拼接框中实现。此时将添加拼接数据到拼接数据池中,其中拼接数据是包含拼接素材的数据。S3071, adding the splicing material to the splicing template, the operation can be implemented by sliding the screen from the splicing material (ie, preview picture) displayed outside the splicing template in the mobile terminal to the splicing frame specified in the splicing template. The stitched data is added to the stitched data pool, where the stitched data is data containing the stitched material.
S3072,从拼接模板中删除拼接素材,这一操作可以通过从拼接模板的某个拼接框中将拼接素材滑动出拼接框实现。此时将从数据池中移除与该拼接素材对应的拼接数据。S3072, the splicing material is deleted from the splicing template, and the operation can be performed by sliding the splicing material out of the splicing frame from a splicing frame of the splicing template. The stitched data corresponding to the stitched material is removed from the data pool.
S3073,替换拼接模板的某个拼接框中的拼接素材,可以通过从拼接框外直接拖动新的拼接素材覆盖已经存在的拼接素材。这个操作可以视为(1)和(2)的组合操作即从拼接框中删除旧的拼接素材,然后添加新的拼接素材。S3073, replacing the stitching material in a splicing frame of the splicing template, can overwrite the existing splicing material by directly dragging the new splicing material from outside the splicing frame. This operation can be considered as a combination of (1) and (2) to remove the old stitched material from the stitching frame and then add a new stitching material.
S3074,修改拼接图片的顺序,这一操作可以通过将手指放到两个拼接框中,执行手指收拢操作实现。S3074, the order of splicing pictures is modified. This operation can be implemented by placing a finger in two splicing frames and performing a finger folding operation.
需要说明的是,每次在上述各动作执行之后,拼接数据池中的拼接数据及其变化都将被存储到缓存区中。It should be noted that each time after the above actions are performed, the spliced data in the spliced data pool and its changes will be stored in the buffer area.
S308、判断接收的操作指令的类型是否为模板替换指令,若是,执行 步骤S309,否则执行步骤S310。S308. Determine whether the type of the received operation instruction is a template replacement instruction, and if yes, execute Step S309, otherwise step S310 is performed.
S309、将用户选择的拼接模板替换默认的拼接模板,并显示用户选择的模板,执行步骤S305。S309. Replace the splicing template selected by the user with the default splicing template, and display the template selected by the user, and perform step S305.
S310、判断接收的操作指令是否为结束指令,若是,则执行步骤S311,否则执行步骤S305。S310. Determine whether the received operation instruction is an end instruction. If yes, execute step S311, otherwise execute step S305.
S311、对当前的拼接模板与拼接素材进行拼接合成。S311: splicing and synthesizing the current splicing template and the splicing material.
在实际应用中,用户可以在对图片进行拼接到过程中,以及完成拼接之后,对拼接的效果进行预览,因此能够及时发现处理后的图片是否理想,当对拍摄的图片不满意时,可以及时在拍摄现场重新取景并进行图片处理,直至获取理想的图片。In practical applications, the user can preview the effect of the stitching after splicing the image into the process, and after the stitching is completed, so that it is possible to find out whether the processed image is ideal in time, and when the image is not satisfactory, it can be timely. Re-framing and taking pictures at the shooting scene until you get the ideal picture.
本实施例提供的在拍摄过程中进行图片处理的方法,能够在显示取景的预览图片时,接收图片拼接指令,从而进入图片拼接模式,直接将取景的预览图片作为备选的拼接素材,然后根据接收的操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理,因此用户可以在拍摄现场直接获取理想的图片,避免了现有技术对拍摄的图片处理的过程中因拍摄效果不理想而使用户感到遗憾,提升了用户的体验。The method for performing image processing in the shooting process provided by the embodiment can receive the image stitching instruction when displaying the preview image of the framing, thereby entering the image stitching mode, directly using the preview image of the framing as an alternative stitching material, and then according to The received operation instruction combines the selected spliced material with the splicing template selected by the user, so that the user can directly obtain the ideal picture at the shooting scene, thereby avoiding the prior art processing effect on the captured picture. The ideal makes the user feel sorry and enhances the user experience.
本发明实施例提供一种计算机存储介质,所述计算机存储介质存储有可执行指令,所述可执行指令用于执行图1所示的共享图片的方法。An embodiment of the present invention provides a computer storage medium, where the computer storage medium stores executable instructions, and the executable instructions are used to execute the method for sharing pictures shown in FIG. 1.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、随机存取存储器(RAM,Random Access Memory)、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage medium includes: a mobile storage device, a random access memory (RAM), a read-only memory (ROM), a magnetic disk, or an optical disk. A medium that can store program code.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、RAM、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making A computer device (which may be a personal computer, server, or network device, etc.) performs all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a RAM, a ROM, a magnetic disk, or an optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (10)

  1. 一种图片处理的方法,包括:A method of image processing, comprising:
    实时显示取景的预览图片,所述预览图片即为备选的拼接素材;Displaying a preview image of the framing in real time, and the preview image is an alternative splicing material;
    接收图片拼接指令,进入图片拼接模式;Receiving a picture stitching instruction and entering a picture stitching mode;
    接收操作指令;Receiving an operation instruction;
    根据所述操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理。According to the operation instruction, the selected mosaic material is combined with the user-selected mosaic template.
  2. 根据权利要求1所述的方法,其中,所述将被选中的拼接素材与用户选择的拼接模板进行合成处理,包括:The method according to claim 1, wherein the splicing material to be selected is combined with the splicing template selected by the user, including:
    判断所述操作指令的类型;Determining the type of the operation instruction;
    若所述操作指令为模板选择指令或模板替换指令,初始化被选择的拼接模板,并在初始化之后显示所述拼接模板;If the operation instruction is a template selection instruction or a template replacement instruction, initializing the selected mosaic template, and displaying the mosaic template after initialization;
    若所述操作指令为拖动指令,根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区;If the operation instruction is a drag instruction, adding or modifying the spliced material in the splicing template according to a user operation, and storing the result of the operation in a buffer area;
    若所述操作指令为结束指令,调取预设的拼接算法,根据所述缓存区内的数据,对所述拼接模板与拼接素材进行拼接合成。If the operation instruction is an end instruction, a preset splicing algorithm is called, and the splicing template and the splicing material are spliced and combined according to the data in the buffer area.
  3. 根据权利要求2所述的方法,其中,所述根据具体的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区,包括:The method according to claim 2, wherein the adding or modifying the spliced material in the splicing template according to a specific operation and storing the result of the operation to the buffer area comprises:
    根据用户的操作,将所述备选的拼接素材拖入所述拼接模板中,并将所述备选的拼接素材的数据存储到所述缓存区;或者,Dragging the candidate stitching material into the stitching template according to a user operation, and storing data of the candidate stitching material into the buffer area; or
    根据用户的操作,移除所述拼接模板中的拼接素材,并将被移除的拼接素材的数据从所述缓存区删除;或者,Removing the stitched material in the stitching template according to a user operation, and deleting data of the removed stitching material from the buffer area; or
    根据用户的操作,将所述备选的拼接素材拖入所述拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从所述缓存区中删除,并将所述备选的拼接素材的数据存储到所述缓存区中;或者, Dragging the candidate stitching material into the stitching template to replace the existing stitching material according to an operation of the user, deleting data of the replaced stitching material from the buffer area, and deleting the candidate The data of the stitched material is stored in the buffer area; or
    根据用户的操作,修改所述拼接模板中的拼接素材的顺序,并相应地修改所述缓存区中数据。Modifying the order of the stitched materials in the stitching template according to the operation of the user, and modifying the data in the buffer area accordingly.
  4. 根据权利要求1至3任一项所述的方法,其中,所述将被选中的拼接素材与用户选择的拼接模板进行合成处理之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein after the splicing material to be selected is combined with the splicing template selected by the user, the method further comprises:
    显示所述合成处理的效果图并提示用户选择是否对所述合成处理的结果进行存储;Displaying an effect map of the synthesizing process and prompting the user to select whether to store the result of the synthesizing process;
    根据用户的选择,存储或删除所述合成处理的结果。The result of the synthesis process is stored or deleted according to the user's selection.
  5. 一种图片处理的装置,所述装置包括:A device for image processing, the device comprising:
    显示单元,配置为显示取景的预览图片,所述预览图片即为备选的拼接素材;a display unit configured to display a preview image of the framing, the preview image being an alternate spliced material;
    接收单元,配置为在所述显示单元显示预览图片时接收图片拼接指令;a receiving unit, configured to receive a picture stitching instruction when the display unit displays a preview picture;
    处理单元,配置为所述接收单元接收了图片拼接指令之后,进入图片拼接模式;The processing unit is configured to enter the picture stitching mode after the receiving unit receives the picture stitching instruction;
    所述接收单元,还配置为在所述处理单元进入拼接模式之后,接收操作指令;The receiving unit is further configured to receive an operation instruction after the processing unit enters the splicing mode;
    所述处理单元,还配置为根据所述接收单元接收的接收操作指令将被选中的拼接素材与用户选择的拼接模板进行合成处理。The processing unit is further configured to perform a synthesis process on the selected splicing material and the splicing template selected by the user according to the receiving operation instruction received by the receiving unit.
  6. 根据权利要求5所述的装置,其中,所述处理单元包括:The apparatus of claim 5 wherein said processing unit comprises:
    判断模块,配置为判断所述接收单元接收的操作指令的类型;a determining module configured to determine a type of an operation instruction received by the receiving unit;
    执行模块,配置为在所述判断模块判断所述操作指令为模板选择指令或模板替换指令时,初始化用户选择的拼接模板;An execution module, configured to initialize a splicing template selected by a user when the determining module determines that the operation instruction is a template selection instruction or a template replacement instruction;
    所述显示单元,还配置为在所述执行模块初始化用户选择的拼接模板之后,显示所述拼接模板;The display unit is further configured to display the splicing template after the execution module initializes the splicing template selected by the user;
    所述执行模块,还配置为在所述判断模块判断所述操作指令为拖动指令时,根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述 操作的结果存储到缓存区;The execution module is further configured to: when the determining module determines that the operation instruction is a drag instruction, add or modify a spliced material in the splicing template according to a user operation, and The result of the operation is stored in the buffer area;
    在所述判断模块判断所述操作指令为结束指令时,调取预设的拼接算法,根据所述缓存区内的数据,对所述拼接模板与拼接素材进行拼接合成。When the determining module determines that the operation instruction is an end instruction, the preset splicing algorithm is called, and the splicing template and the splicing material are spliced and combined according to the data in the buffer area.
  7. 根据权利要求6所述的装置,其中,所述执行模块,包括触发子模块、第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块;其中The apparatus according to claim 6, wherein the execution module comprises a trigger submodule, a first execution submodule, a second execution submodule, a third execution submodule, and a fourth execution submodule;
    所述触发子模块,配置为在所述操作指令为拖动指令时,根据用户的操作,触发所述第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块中的一个子模块:The triggering submodule is configured to trigger the first execution submodule, the second execution submodule, the third execution submodule, and the fourth execution submodule according to a user operation when the operation instruction is a drag instruction A submodule in:
    所述第一执行子模块,配置为将备选的拼接素材拖入所述拼接模板中作为拼接素材,并将所述备选的拼接素材的数据存储到所述缓存区;The first execution sub-module is configured to drag an alternate mosaic material into the mosaic template as a mosaic material, and store data of the candidate mosaic material into the buffer area;
    所述第二执行子模块,配置为移除所述拼接模板中的拼接素材,并将被移除的拼接素材的数据从所述缓存区删除;The second execution sub-module is configured to remove the mosaic material in the mosaic template, and delete data of the removed mosaic material from the buffer area;
    所述第三执行子模块,配置为在所述备选的拼接素材拖入所述拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从所述缓存区中删除,并将所述备选的拼接素材的数据存储到所述缓存区中;The third execution sub-module is configured to replace the existing mosaic material in the mosaic template by dragging the candidate mosaic material, and delete the data of the replaced mosaic material from the buffer area, and Data of the alternative spliced material is stored in the buffer area;
    所述第四执行子模块,配置为修改所述拼接模板中的拼接素材的顺序,并相应地修改所述缓存区中数据。The fourth execution submodule is configured to modify an order of the stitched materials in the stitching template, and modify data in the buffer area accordingly.
  8. 根据权利要求6或7所述的装置,其中,The apparatus according to claim 6 or 7, wherein
    所述显示单元,还配置为显示所述合成处理的效果图并提示用户选择是否对所述合成处理的结果进行存储;The display unit is further configured to display an effect diagram of the synthesizing process and prompt the user to select whether to store the result of the synthesizing process;
    所述处理单元,还配置为根据用户的选择,存储或删除所述合成处理的结果。The processing unit is further configured to store or delete a result of the synthesizing process according to a user's selection.
  9. 一种移动终端,包括权利要求5至8任一项所述的图片处理的装置。A mobile terminal comprising the apparatus for picture processing according to any one of claims 5 to 8.
  10. 一种计算机存储介质,所述计算机存储介质中存储有可执行指令, 所述可执行指令用于执行权利要求1至4任一项所述的图片处理的方法。 A computer storage medium storing executable instructions in the computer storage medium, The executable instructions are for performing the method of picture processing according to any one of claims 1 to 4.
PCT/CN2015/080302 2014-06-19 2015-05-29 Image processing method and device, mobile terminal, and computer storage medium WO2015192713A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410275950.5A CN104023178A (en) 2014-06-19 2014-06-19 Device and method for image processing in shooting process and mobile terminal
CN201410275950.5 2014-06-19

Publications (1)

Publication Number Publication Date
WO2015192713A1 true WO2015192713A1 (en) 2015-12-23

Family

ID=51439727

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080302 WO2015192713A1 (en) 2014-06-19 2015-05-29 Image processing method and device, mobile terminal, and computer storage medium

Country Status (2)

Country Link
CN (1) CN104023178A (en)
WO (1) WO2015192713A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775095A (en) * 2016-12-27 2017-05-31 维沃移动通信有限公司 A kind of picture mosaic gage profile method for previewing and mobile terminal
CN111161149A (en) * 2019-12-30 2020-05-15 上海连尚网络科技有限公司 Image display method and device

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023178A (en) * 2014-06-19 2014-09-03 深圳市中兴移动通信有限公司 Device and method for image processing in shooting process and mobile terminal
CN105635553B (en) * 2014-10-30 2021-01-26 腾讯科技(深圳)有限公司 Image shooting method and device
CN106572295A (en) * 2015-10-13 2017-04-19 阿里巴巴集团控股有限公司 Image processing method and device
CN106204442A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Picture splicing method and device and electronic equipment
CN106327425B (en) * 2016-08-03 2020-05-29 亳州鼎源科技信息有限公司 Mobile terminal and picture processing method
CN106611404A (en) * 2016-11-22 2017-05-03 维沃移动通信有限公司 Puzzle template selecting method and mobile terminal
CN107529095A (en) * 2017-08-24 2017-12-29 上海与德科技有限公司 A kind of video-splicing method and device
CN108776950A (en) * 2018-06-07 2018-11-09 北京本邦科技股份有限公司 Picture-adjusting method based on mobile terminal and device
CN109379542A (en) * 2018-10-23 2019-02-22 深圳豪客互联网有限公司 A kind of shooting picture joining method, device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201054156Y (en) * 2007-05-29 2008-04-30 翟卫东 Scenario album making device
CN101442600A (en) * 2008-12-11 2009-05-27 深圳华为通信技术有限公司 Method, apparatus and terminal for dynamically processing image
CN101841662A (en) * 2010-04-16 2010-09-22 华为终端有限公司 Method for acquiring photo frame composite image by mobile terminal and mobile terminal
CN201919040U (en) * 2010-11-24 2011-08-03 龙旗科技(上海)有限公司 Camera mobile phone with function of advanced scanistor
CN104023178A (en) * 2014-06-19 2014-09-03 深圳市中兴移动通信有限公司 Device and method for image processing in shooting process and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1613060A1 (en) * 2004-07-02 2006-01-04 Sony Ericsson Mobile Communications AB Capturing a sequence of images
CN102572227A (en) * 2010-12-23 2012-07-11 华晶科技股份有限公司 Image shooting device and image splicing method thereof
CN103037165A (en) * 2012-12-21 2013-04-10 厦门美图网科技有限公司 Photographing method of immediate-collaging and real-time filter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201054156Y (en) * 2007-05-29 2008-04-30 翟卫东 Scenario album making device
CN101442600A (en) * 2008-12-11 2009-05-27 深圳华为通信技术有限公司 Method, apparatus and terminal for dynamically processing image
CN101841662A (en) * 2010-04-16 2010-09-22 华为终端有限公司 Method for acquiring photo frame composite image by mobile terminal and mobile terminal
CN201919040U (en) * 2010-11-24 2011-08-03 龙旗科技(上海)有限公司 Camera mobile phone with function of advanced scanistor
CN104023178A (en) * 2014-06-19 2014-09-03 深圳市中兴移动通信有限公司 Device and method for image processing in shooting process and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775095A (en) * 2016-12-27 2017-05-31 维沃移动通信有限公司 A kind of picture mosaic gage profile method for previewing and mobile terminal
CN106775095B (en) * 2016-12-27 2018-09-04 维沃移动通信有限公司 A kind of picture mosaic gage profile method for previewing and mobile terminal
CN111161149A (en) * 2019-12-30 2020-05-15 上海连尚网络科技有限公司 Image display method and device
CN111161149B (en) * 2019-12-30 2023-11-17 上海连尚网络科技有限公司 Image display method and device

Also Published As

Publication number Publication date
CN104023178A (en) 2014-09-03

Similar Documents

Publication Publication Date Title
WO2015192713A1 (en) Image processing method and device, mobile terminal, and computer storage medium
US10652455B2 (en) Guided video capture for item listings
US10809879B2 (en) Displaying simulated media content item enhancements on mobile devices
US10284789B2 (en) Dynamic generation of image of a scene based on removal of undesired object present in the scene
WO2019192351A1 (en) Short video capture method, device and electronic terminal
US9300876B2 (en) Fill with camera ink
US9772771B2 (en) Image processing for introducing blurring effects to an image
US9478006B2 (en) Content aware cropping
US9373187B2 (en) Method and apparatus for producing a cinemagraph
US10629167B2 (en) Display apparatus and control method thereof
US20160253298A1 (en) Photo and Document Integration
WO2017032233A1 (en) Image generation method and device
US20150277749A1 (en) Method and apparatus for swipe shift photo browsing
WO2020001022A1 (en) Image expansion method, computing device and computer storage medium
KR20150119621A (en) display apparatus and image composition method thereof
WO2023093851A1 (en) Image cropping method and apparatus, and electronic device
KR20150011742A (en) User terminal device and the control method thereof
CN111754607A (en) Picture processing method and device, electronic equipment and computer readable storage medium
KR20160067802A (en) A method and apparatus for generating automatic animation
WO2013082832A1 (en) Method and device for image processing
US20180070093A1 (en) Display apparatus and control method thereof
US20150177944A1 (en) Capturing objects in editable format using gestures
JP6520920B2 (en) Image processing device
JP2017049686A (en) Image processing device
CN110072063B (en) Photographing method, photographing device and electronic equipment

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: 15809712

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/05/17)

122 Ep: pct application non-entry in european phase

Ref document number: 15809712

Country of ref document: EP

Kind code of ref document: A1