WO2015192713A1 - 图片处理的方法、装置及移动终端、计算机存储介质 - Google Patents

图片处理的方法、装置及移动终端、计算机存储介质 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
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 努比亚技术有限公司
Publication of WO2015192713A1 publication Critical patent/WO2015192713A1/zh

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.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例公开了一种图片处理的方法、装置及移动终端、计算机存储介质,方法包括:显示取景的预览图片,该预览图片即为备选的拼接素材;接收图片拼接指令,进入图片拼接模式;接收操作指令;根据所述操作指令,将被选中的拼接素材与拼接模板进行合成处理。

Description

图片处理的方法、装置及移动终端、计算机存储介质 技术领域
本发明涉及图像数据处理领域的图片处理技术,尤其涉及在拍摄过程中进行图片处理的方法、装置及移动终端。
背景技术
随着数字成像技术的发展,图像拍摄已经在日常生活中得到了普及和应用,人们已经习惯于随时拍下各类图片或影像,但是拍摄出来的图片都是单一图片,内容和视觉效果比较单调。
为了获得较好的视觉效果,现有技术提供了图片拼接软件或者照片墙应用软件。这些软件都是通过给定模板,用户可以自由选定多张图片放到模板中,从而生成一张包含多张照片,并且每张照片都被框定到指定相框位置的图片。这类应用可以将多张不同的图片以模板作为媒介连接起来,为用户分享图片等提供便利。
但是现有技术的上述软件仅适用于计算机,而且拼图过程中需要的素材都是事先已经拍摄好的,因此在操作的过程中即使发现效果不理想也没法对素材的内容进行修改,用户难免感到遗憾。另一方面,在某些应用场景下,比如超级市场购物、动物园拍摄小动物、植物园拍摄植物花卉,等等,用户会希望能够在现场就对图片进行处理,以便获取理想的处理结果。因此,有必要提供一种能够拍摄的过程中进行图片处理的方法、装置及移动终端,以提升用户体验。
发明内容
本发明实施例提供一种能够拍摄的过程中进行图片处理的方法、装置 及移动终端、计算机存储介质,以解决用户不能在拍摄过程中及时发现拍摄的图片是否理想,导致的不能及时补拍或重拍的缺陷。
本发明实施例解决上述技术问题所采用的技术方案如下:
根据本发明实施例的一个方面,提供一种在拍摄过程中进行图片处理的方法,包括如下步骤:实时显示取景的预览图片,所述预览图片即为备选的拼接素材;接收图片拼接指令,进入图片拼接模式;接收操作指令;根据所述操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理。
提供一种如上所述的方法,所述将被选中的拼接素材与用户选择的拼接模板进行合成处理,包括:判断所述操作指令的类型;若所述操作指令为模板选择指令或模板替换指令,初始化被选择的拼接模板,并在初始化之后显示所述拼接模板;若所述操作指令为拖动指令,根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区;若所述操作指令为结束指令,调取预设的拼接算法,根据所述缓存区内的数据,对所述拼接模板与拼接素材进行拼接合成。
提供一种如上所述的方法,所述根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区,包括:根据用户的操作,将备选的拼接素材拖入所述拼接模板中作为拼接素材,并将所述备选的预览图片的数据存储到所述缓存区;或者,根据用户的操作,移除所述拼接模板中的拼接素材,并将被移除的拼接素材的数据从所述缓存区删除;或者,根据用户的操作,将所述备选的拼接素材拖入所述拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从所述缓存区中删除,并将所述备选的拼接素材的数据存储到所述缓存区中;或者,根据用户的操作,修改所述拼接模板中的拼接素材的顺序,并相应地修改所述缓存区中数据。
提供一种如上所述的方法,所述将被选中的拼接素材与用户选择的拼接模板进行合成处理之后,所述方法还包括:显示所述合成处理的效果图并提示用户选择是否对所述合成处理的结果进行存储;根据用户的选择,存储或删除所述合成处理的结果。
根据本发明实施例的另一个方面,提供一种在拍摄过程中进行图片处理的装置,所述装置包括:显示单元,配置为显示取景的预览图片,所述预览图片即为备选的拼接素材;接收单元,配置为在所述显示单元显示预览图片时接收图片拼接指令;处理单元,配置为所述接收单元接收了图片拼接指令之后,进入图片拼接模式;所述接收单元,还配置为在所述处理单元进入拼接模式之后,接收操作指令;所述处理单元,还配置为根据所述接收单元接收的接收操作指令将被选中的拼接素材与用户选择的拼接模板进行合成处理。
提供一种如上所述的装置,所述处理单元包括:判断模块,配置为判断所述接收单元接收的操作指令的类型;执行模块,配置为在所述判断模块判断所述操作指令为模板选择指令或模板替换指令时,初始化用户选择的拼接模板;所述显示单元,还配置为在所述执行模块初始化用户选择的拼接模板之后,显示所述拼接模板;所述执行模块,还配置为在所述判断模块判断所述操作指令为拖动指令时,根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区,或者配置为在所述判断模块判断所述操作指令为结束指令时,调取预设的拼接算法,根据所述缓存区内的数据,对所述拼接模板与拼接素材进行拼接合成。
提供一种如上所述的装置,所述执行模块,包括触发子模块、第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块;其中,
所述触发子模块,配置为在所述操作指令为拖动指令时,触发所述第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块中的 一个子模块:
所述第一执行子模块,配置为将备选的拼接素材拖入所述拼接模板中作为拼接素材,并将所述备选的拼接素材的数据存储到所述缓存区;
所述第二执行子模块,配置为移除所述拼接模板中的拼接素材,并将被移除的拼接素材的数据从所述缓存区删除;
所述第三执行子模块,配置为在所述备选的拼接素材拖入所述拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从所述缓存区中删除,并将所述备选的拼接素材的数据存储到所述缓存区中;
所述第四执行子模块,配置为修改所述拼接模板中的拼接素材的顺序,并相应地修改所述缓存区中数据。
提供一种如上所述的装置,所述显示单元,还配置为显示所述合成处理的结果并提示用户选择是否对所述合成处理的结果进行存储;所述处理单元,还配置为根据用户的选择,存储或删除所述合成处理的结果。
根据本发明实施例的又一方面,提供了一种移动终端,包括如上所述的在拍摄过程中进行图片处理的装置。
根据本发明实施例的又一方面,提供了一种计算机存储介质,所述计算机存储介质中存储有可执行指令,所述可执行指令用于执行上述的图片处理的方法。
本发明实施例的在拍摄过程中进行图片处理的方法、装置及移动终端、计算机存储介质,能够在显示单元显示取景的预览图片时,接收图片拼接指令,从而进入图片拼接模式,直接将取景的预览图片作为备选的拼接素材,然后根据接收的操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理,因此这样用户可以在拍摄现场直接获取理想的图片,避 免了现有技术对拍摄的图片处理的过程中因拍摄效果不理想而使用户感到遗憾,提升了用户的体验。
附图说明
图1为本发明实施例提供的一种在拍摄过程中进行图片处理的装置的模块示意图;
图2为本发明实施例提供的一种在拍摄过程中进行图片处理的方法的流程图;
图3为本发明实施例提供的另一种在拍摄过程中进行图片处理的方法的流程图。
具体实施方式
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供了一种在拍摄过程中进行图片处理的移动终端,该移动终端可以是带有摄像装置的智能手机或具有图像处理功能的照相机或摄像机。该移动终端设有能够在在拍摄过程中进行图片处理的装置。
请参阅图1,该装置包括:
显示单元101,配置为显示取景的预览图片,并将显示的预览图片作为备选的拼接素材。
具体的,可以通过采集摄像头硬件的数据获取预览图片,并根据预设的效果参数进行效果预处理操作。
接收单元102,配置为在该显示单元显示预览图片时接收图片拼接指令。
处理单元103,配置为在该接收单元102接收到拼接指令后,进入图片 拼接模式。
具体的,当进入图片拼接模式后,显示单元101可同时显示预览图片及拼接模板,以方便用户进行拼接操作。比如用户可以根据需要将该预览图片或拼接模板缩小到显示单元101的某个角落上,需要的时候(比如进行拼接操作时)将缩小的预览图片或拼接模板重新显示出来,从而方便用户查看当前的拼接结果,并进行一系列的拼接控制操作。
接收单元102,还配置为在该处理单元103进入拼接模式之后,接收操作指令。
处理单元103,还配置为根据该接收单元102接收的接收操作指令将被选中的拼接素材与用户选择的拼接模板进行合成处理。
具体的,处理单元103包括:
判断模块,配置为判断该接收单元接收的操作指令的类型;
执行模块(与判断模块耦合),配置为在该判断模块判断该操作指令为模板选择指令或模板替换指令时,初始化用户选择的拼接模板;
此时,显示单元101,还配置为在该执行模块初始化用户选择的拼接模板之后,显示该拼接模板;
该执行模块,还配置为在该判断模块判断该操作指令为拖动指令时,根据具体操作根据具体的操作在该拼接模板中添加或修改拼接素材,并将该操作的结果存储到缓存区,或者配置为在该判断模块判断该操作指令为结束指令时,调取预设的拼接算法,根据该缓存区内的数据,对该拼接模板与拼接素材进行拼接合成。
执行模块包括触发子模块、第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块(触发单元分别与第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块耦合);具体的,当判断模块判断操作指令为拖动指令时,触发子模块触发第一执行子模块、第二执行 子模块、第三执行子模块和第四执行子模块中的一个子模块则根据用户的具体操作进行相应的处理,其中,第一执行子模块,配置为将备选的拼接素材拖入该拼接模板中作为拼接素材,并将该备选的拼接素材的数据存储到该缓存区;第二执行子模块,配置为移除该拼接模板中的拼接素材,并将被移除的拼接素材的数据从该缓存区删除;第三执行子模块,配置为在该备选的拼接素材拖入该拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从该缓存区中删除,并将该备选的拼接素材的数据存储到该缓存区中;第四执行子模块,配置为修改该拼接模板中的拼接素材的顺序,并相应地修改该缓存区中数据。
实际应用中,显示单元101可以由液晶显示面板及相关显示驱动电路实现;接收单元102可由支持人机交互的组件如键盘、鼠标、或支持触控操作的显示101实现;处理单元103可以处理器配合内存实现,其中内存用户存储供处理单元103处理的数据,这里的处理器可以CPU、微处理器(MCU);处理单元103也可以有专用集成电路(ASIC)或逻辑可编程门阵列(FPGA)实现。
本实施例中,在该操作指令为结束指令时,执行模块调取预设的拼接算法,根据该缓存区内的数据,对该拼接模板与拼接素材进行拼接合成时,可以通过两种方法实现对该缓存区的拼接模板及拼接素材的拼接:
方法一:先将拼接模板先进行分解,然后将分解的部分与对应的拼接素材做叠加操作(各自的叠加可以采用多线程并发操作),最后在对每个叠加操作的结果做贴合操作。
方法二:先将拼接素材进行缩放操作,使之可以与拼接模板的各部分对应,然后将缩放后的拼接素材分别粘贴到拼接模板的指定位置(这里也可采用多线程并发操作,最后汇总)。
当执行模块对该拼接模板与拼接素材进行拼接合成之后,显示单元 101,还配置为显示该合成处理的结果并提示用户选择是否对该合成处理的结果进行存储;处理单元103,还配置为根据用户的选择,存储或删除该合成处理的结果。
本实施例提供的在拍摄过程中进行图片处理的装置,能够在显示单元101显示取景的预览图片时,接收图片拼接指令,从而进入图片拼接模式,直接将取景的预览图片作为备选的拼接素材,然后根据接收的操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理,因此这样用户可以在拍摄现场直接获取理想的图片,避免了现有技术对拍摄的图片处理的过程中因拍摄效果不理想而使用户感到遗憾,提升了用户的体验。
在上述实施例的基础上,本发明还提供了一种在拍摄过程中进行图片处理的方法,请参阅图2,方法包括:
S201、实时显示取景的预览图片,该预览图片即备选的拼接素材;
S202、接收图片拼接指令,进入图片拼接模式;
S203、接收操作指令;
S204、根据该操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理。
具体的,S204包括如下步骤:
判断该操作指令的类型;
若该操作指令为模板选择指令或模板替换指令,初始化被选择的拼接模板,并在初始化之后显示该拼接模板;
若该操作指令为拖动指令,根据具体的操作在该拼接模板中添加或修改拼接素材,并将该操作的结果存储到缓存区;
若该操作指令为结束指令,调取预设的拼接算法,根据该缓存区内的数据,对该拼接模板与拼接素材进行拼接合成。
具体的,当操作指令为拖动指令时,根据具体的操作在该拼接模板中 添加或修改拼接素材,并将该操作的结果存储到缓存区,包括:
根据用户的操作,将备选的拼接素材拖入该拼接模板中作为拼接素材,并将该备选的拼接素材的数据存储到该缓存区;或者
根据用户的操作,移除该拼接模板中的拼接素材,并将被移除的拼接素材的数据从该缓存区删除;或者,
根据用户的操作,将该备选的拼接素材拖入该拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从该缓存区中删除,并将该备选的拼接素材的数据存储到该缓存区中;或者,
根据用户的操作,修改该拼接模板中的拼接素材的顺序,并相应地修改该缓存区中数据。
S205、显示该合成处理的效果并提示用户选择是否对该合成处理的结果进行存储。
在实际应用中,为了使移动终端对用户的操作实现快速反应,因此该步骤可以只显示一个粗略的合成效果图,而最终拼接素材及拼接模板的合成将比显示的合成效果更加精确。
S206、根据用户的选择,存储或删除该合成处理的结果。
本实施例提供的在拍摄过程中进行图片处理的方法,能够在显示取景的预览图片时,接收图片拼接指令,从而进入图片拼接模式,直接将取景的预览图片作为备选的拼接素材,然后根据接收的操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理,因此用户可以在拍摄现场直接获取理想的图片,避免了现有技术对拍摄的图片处理的过程中因拍摄效果不理想而使用户感到遗憾,提升了用户的体验。
请参阅图3,为本发明在上述两个实施例的基础上提供的另一种在拍摄过程中进行图片处理的方法,方法包括:
S301、在拍摄的过程中,实时显示取景的预览图片;
S302、接收图片拼接指令;
S303、进入图片拼接模式;
S304、初始化默认的拼接模板,并在初始化之后显示该默认的拼接
此时,取景的预览图片将以小窗口的形式显示在拼接模板之外;
S305、等待并接收操作指令;
S306、判断接收的操作指令的类型是否为拖动指令,若是,执行步骤S307,否则执行步骤308。
S307、根据用户的具体操,在拼接模板中添加、删除、替换拼接素材,或修改拼接素材的顺序,并将操作的结果存储到缓存区,执行步骤S305。
具体的,步骤S307的实现方式如下:
S3071,添加拼接素材到拼接模板中,这一操作可以通过在移动终端中从显示在拼接模板之外的拼接素材(即预览图片)滑动屏幕到拼接模板中指定的拼接框中实现。此时将添加拼接数据到拼接数据池中,其中拼接数据是包含拼接素材的数据。
S3072,从拼接模板中删除拼接素材,这一操作可以通过从拼接模板的某个拼接框中将拼接素材滑动出拼接框实现。此时将从数据池中移除与该拼接素材对应的拼接数据。
S3073,替换拼接模板的某个拼接框中的拼接素材,可以通过从拼接框外直接拖动新的拼接素材覆盖已经存在的拼接素材。这个操作可以视为(1)和(2)的组合操作即从拼接框中删除旧的拼接素材,然后添加新的拼接素材。
S3074,修改拼接图片的顺序,这一操作可以通过将手指放到两个拼接框中,执行手指收拢操作实现。
需要说明的是,每次在上述各动作执行之后,拼接数据池中的拼接数据及其变化都将被存储到缓存区中。
S308、判断接收的操作指令的类型是否为模板替换指令,若是,执行 步骤S309,否则执行步骤S310。
S309、将用户选择的拼接模板替换默认的拼接模板,并显示用户选择的模板,执行步骤S305。
S310、判断接收的操作指令是否为结束指令,若是,则执行步骤S311,否则执行步骤S305。
S311、对当前的拼接模板与拼接素材进行拼接合成。
在实际应用中,用户可以在对图片进行拼接到过程中,以及完成拼接之后,对拼接的效果进行预览,因此能够及时发现处理后的图片是否理想,当对拍摄的图片不满意时,可以及时在拍摄现场重新取景并进行图片处理,直至获取理想的图片。
本实施例提供的在拍摄过程中进行图片处理的方法,能够在显示取景的预览图片时,接收图片拼接指令,从而进入图片拼接模式,直接将取景的预览图片作为备选的拼接素材,然后根据接收的操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理,因此用户可以在拍摄现场直接获取理想的图片,避免了现有技术对拍摄的图片处理的过程中因拍摄效果不理想而使用户感到遗憾,提升了用户的体验。
本发明实施例提供一种计算机存储介质,所述计算机存储介质存储有可执行指令,所述可执行指令用于执行图1所示的共享图片的方法。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、随机存取存储器(RAM,Random Access Memory)、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、RAM、ROM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (10)

  1. 一种图片处理的方法,包括:
    实时显示取景的预览图片,所述预览图片即为备选的拼接素材;
    接收图片拼接指令,进入图片拼接模式;
    接收操作指令;
    根据所述操作指令,将被选中的拼接素材与用户选择的拼接模板进行合成处理。
  2. 根据权利要求1所述的方法,其中,所述将被选中的拼接素材与用户选择的拼接模板进行合成处理,包括:
    判断所述操作指令的类型;
    若所述操作指令为模板选择指令或模板替换指令,初始化被选择的拼接模板,并在初始化之后显示所述拼接模板;
    若所述操作指令为拖动指令,根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区;
    若所述操作指令为结束指令,调取预设的拼接算法,根据所述缓存区内的数据,对所述拼接模板与拼接素材进行拼接合成。
  3. 根据权利要求2所述的方法,其中,所述根据具体的操作在所述拼接模板中添加或修改拼接素材,并将所述操作的结果存储到缓存区,包括:
    根据用户的操作,将所述备选的拼接素材拖入所述拼接模板中,并将所述备选的拼接素材的数据存储到所述缓存区;或者,
    根据用户的操作,移除所述拼接模板中的拼接素材,并将被移除的拼接素材的数据从所述缓存区删除;或者,
    根据用户的操作,将所述备选的拼接素材拖入所述拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从所述缓存区中删除,并将所述备选的拼接素材的数据存储到所述缓存区中;或者,
    根据用户的操作,修改所述拼接模板中的拼接素材的顺序,并相应地修改所述缓存区中数据。
  4. 根据权利要求1至3任一项所述的方法,其中,所述将被选中的拼接素材与用户选择的拼接模板进行合成处理之后,所述方法还包括:
    显示所述合成处理的效果图并提示用户选择是否对所述合成处理的结果进行存储;
    根据用户的选择,存储或删除所述合成处理的结果。
  5. 一种图片处理的装置,所述装置包括:
    显示单元,配置为显示取景的预览图片,所述预览图片即为备选的拼接素材;
    接收单元,配置为在所述显示单元显示预览图片时接收图片拼接指令;
    处理单元,配置为所述接收单元接收了图片拼接指令之后,进入图片拼接模式;
    所述接收单元,还配置为在所述处理单元进入拼接模式之后,接收操作指令;
    所述处理单元,还配置为根据所述接收单元接收的接收操作指令将被选中的拼接素材与用户选择的拼接模板进行合成处理。
  6. 根据权利要求5所述的装置,其中,所述处理单元包括:
    判断模块,配置为判断所述接收单元接收的操作指令的类型;
    执行模块,配置为在所述判断模块判断所述操作指令为模板选择指令或模板替换指令时,初始化用户选择的拼接模板;
    所述显示单元,还配置为在所述执行模块初始化用户选择的拼接模板之后,显示所述拼接模板;
    所述执行模块,还配置为在所述判断模块判断所述操作指令为拖动指令时,根据用户的操作在所述拼接模板中添加或修改拼接素材,并将所述 操作的结果存储到缓存区;
    在所述判断模块判断所述操作指令为结束指令时,调取预设的拼接算法,根据所述缓存区内的数据,对所述拼接模板与拼接素材进行拼接合成。
  7. 根据权利要求6所述的装置,其中,所述执行模块,包括触发子模块、第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块;其中
    所述触发子模块,配置为在所述操作指令为拖动指令时,根据用户的操作,触发所述第一执行子模块、第二执行子模块、第三执行子模块和第四执行子模块中的一个子模块:
    所述第一执行子模块,配置为将备选的拼接素材拖入所述拼接模板中作为拼接素材,并将所述备选的拼接素材的数据存储到所述缓存区;
    所述第二执行子模块,配置为移除所述拼接模板中的拼接素材,并将被移除的拼接素材的数据从所述缓存区删除;
    所述第三执行子模块,配置为在所述备选的拼接素材拖入所述拼接模板中替换已有的拼接素材,将被替换的拼接素材的数据从所述缓存区中删除,并将所述备选的拼接素材的数据存储到所述缓存区中;
    所述第四执行子模块,配置为修改所述拼接模板中的拼接素材的顺序,并相应地修改所述缓存区中数据。
  8. 根据权利要求6或7所述的装置,其中,
    所述显示单元,还配置为显示所述合成处理的效果图并提示用户选择是否对所述合成处理的结果进行存储;
    所述处理单元,还配置为根据用户的选择,存储或删除所述合成处理的结果。
  9. 一种移动终端,包括权利要求5至8任一项所述的图片处理的装置。
  10. 一种计算机存储介质,所述计算机存储介质中存储有可执行指令, 所述可执行指令用于执行权利要求1至4任一项所述的图片处理的方法。
PCT/CN2015/080302 2014-06-19 2015-05-29 图片处理的方法、装置及移动终端、计算机存储介质 WO2015192713A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410275950.5A CN104023178A (zh) 2014-06-19 2014-06-19 一种在拍摄过程中进行图片处理的方法、装置及移动终端
CN201410275950.5 2014-06-19

Publications (1)

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

Family

ID=51439727

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080302 WO2015192713A1 (zh) 2014-06-19 2015-05-29 图片处理的方法、装置及移动终端、计算机存储介质

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775095A (zh) * 2016-12-27 2017-05-31 维沃移动通信有限公司 一种拼图样板轮廓预览方法及移动终端
CN111161149A (zh) * 2019-12-30 2020-05-15 上海连尚网络科技有限公司 图像显示方法和装置

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023178A (zh) * 2014-06-19 2014-09-03 深圳市中兴移动通信有限公司 一种在拍摄过程中进行图片处理的方法、装置及移动终端
CN105635553B (zh) * 2014-10-30 2021-01-26 腾讯科技(深圳)有限公司 一种图像拍摄方法和装置
CN106572295A (zh) * 2015-10-13 2017-04-19 阿里巴巴集团控股有限公司 一种图片处理方法及装置
CN106204442A (zh) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 一种图片拼接的方法、装置及电子设备
CN106327425B (zh) * 2016-08-03 2020-05-29 亳州鼎源科技信息有限公司 一种移动终端及图片处理方法
CN106611404A (zh) * 2016-11-22 2017-05-03 维沃移动通信有限公司 一种选择拼图模板的方法及移动终端
CN107529095A (zh) * 2017-08-24 2017-12-29 上海与德科技有限公司 一种视频拼接方法及装置
CN108776950A (zh) * 2018-06-07 2018-11-09 北京本邦科技股份有限公司 基于移动端的图片调整方法及装置
CN109379542A (zh) * 2018-10-23 2019-02-22 深圳豪客互联网有限公司 一种拍摄画面拼接方法、装置及计算机可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201054156Y (zh) * 2007-05-29 2008-04-30 翟卫东 情景相册制作装置
CN101442600A (zh) * 2008-12-11 2009-05-27 深圳华为通信技术有限公司 动态处理图像的方法、装置及终端
CN101841662A (zh) * 2010-04-16 2010-09-22 华为终端有限公司 移动终端获得相框合成图像的方法及移动终端
CN201919040U (zh) * 2010-11-24 2011-08-03 龙旗科技(上海)有限公司 一种具有高级扫描仪功能的照相手机
CN104023178A (zh) * 2014-06-19 2014-09-03 深圳市中兴移动通信有限公司 一种在拍摄过程中进行图片处理的方法、装置及移动终端

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 (zh) * 2010-12-23 2012-07-11 华晶科技股份有限公司 影像拍摄装置及其影像拼接方法
CN103037165A (zh) * 2012-12-21 2013-04-10 厦门美图网科技有限公司 一种实时滤镜即时拼贴的拍照方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201054156Y (zh) * 2007-05-29 2008-04-30 翟卫东 情景相册制作装置
CN101442600A (zh) * 2008-12-11 2009-05-27 深圳华为通信技术有限公司 动态处理图像的方法、装置及终端
CN101841662A (zh) * 2010-04-16 2010-09-22 华为终端有限公司 移动终端获得相框合成图像的方法及移动终端
CN201919040U (zh) * 2010-11-24 2011-08-03 龙旗科技(上海)有限公司 一种具有高级扫描仪功能的照相手机
CN104023178A (zh) * 2014-06-19 2014-09-03 深圳市中兴移动通信有限公司 一种在拍摄过程中进行图片处理的方法、装置及移动终端

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775095A (zh) * 2016-12-27 2017-05-31 维沃移动通信有限公司 一种拼图样板轮廓预览方法及移动终端
CN106775095B (zh) * 2016-12-27 2018-09-04 维沃移动通信有限公司 一种拼图样板轮廓预览方法及移动终端
CN111161149A (zh) * 2019-12-30 2020-05-15 上海连尚网络科技有限公司 图像显示方法和装置
CN111161149B (zh) * 2019-12-30 2023-11-17 上海连尚网络科技有限公司 图像显示方法和装置

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2015192713A1 (zh) 图片处理的方法、装置及移动终端、计算机存储介质
US10652455B2 (en) Guided video capture for item listings
US10809879B2 (en) Displaying simulated media content item enhancements on mobile devices
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
US20160253298A1 (en) Photo and Document Integration
US20180247613A1 (en) Display apparatus and control method thereof
WO2017032233A1 (zh) 一种图像生成方法及装置
WO2020001022A1 (zh) 图片展示方法、计算设备及计算机存储介质
US20150277749A1 (en) Method and apparatus for swipe shift photo browsing
WO2023093851A1 (zh) 图像裁剪方法、装置及电子设备
CN111754607A (zh) 图片处理方法及装置、电子设备、计算机可读存储介质
KR20160067802A (ko) 자동 애니메이션을 생성하기 위한 방법 및 장치
WO2013082832A1 (zh) 一种图像处理的方法及其装置
US20180070093A1 (en) Display apparatus and control method thereof
JP6520920B2 (ja) 画像処理装置
JP2017049686A (ja) 画像処理装置
WO2023283894A1 (zh) 图像处理方法及装置
CN114025237A (zh) 视频生成方法、装置和电子设备
CN110072063B (zh) 拍照方法、拍照装置和电子设备
JP2007166383A (ja) デジタルカメラ及び画像合成方法並びにプログラム
CN114363521B (zh) 图像处理方法、装置及电子设备
CN112583976B (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: 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