WO2015106508A1 - 一种图像呈现方法、终端设备及计算机存储介质 - Google Patents

一种图像呈现方法、终端设备及计算机存储介质 Download PDF

Info

Publication number
WO2015106508A1
WO2015106508A1 PCT/CN2014/076891 CN2014076891W WO2015106508A1 WO 2015106508 A1 WO2015106508 A1 WO 2015106508A1 CN 2014076891 W CN2014076891 W CN 2014076891W WO 2015106508 A1 WO2015106508 A1 WO 2015106508A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
area
target
preview
image
Prior art date
Application number
PCT/CN2014/076891
Other languages
English (en)
French (fr)
Inventor
郭彦伶
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US15/110,236 priority Critical patent/US20160337593A1/en
Publication of WO2015106508A1 publication Critical patent/WO2015106508A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • 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
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/21Intermediate information storage
    • H04N1/2104Intermediate information storage for one or a few pictures
    • H04N1/2112Intermediate information storage for one or a few pictures using still video cameras
    • H04N1/2129Recording in, or reproducing from, a specific memory area or areas, or recording or reproducing at a specific moment
    • H04N1/2133Recording or reproducing at a specific moment, e.g. time interval or time-lapse
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/21Intermediate information storage
    • H04N1/2104Intermediate information storage for one or a few pictures
    • H04N1/2112Intermediate information storage for one or a few pictures using still video cameras
    • H04N1/2137Intermediate information storage for one or a few pictures using still video cameras with temporary storage before final recording, e.g. in a frame buffer
    • 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/61Control of cameras or camera modules based on recognised objects
    • 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/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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/62Control of parameters via user interfaces
    • 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
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
    • 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
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20092Interactive image processing based on input by user
    • G06T2207/20101Interactive definition of point of interest, landmark or seed

Definitions

  • the present invention relates to the field of terminal devices, and in particular, to an image presentation method, a terminal device, and a computer storage medium. Background technique
  • the technical problem to be solved by the present invention is to provide an image presenting method, a terminal device and a computer storage medium, and perform special effect processing on a partial area in the full view of the preview framing, and continuously present it at a time.
  • the image presentation method includes: acquiring an area target selected by a user in a preview stage screen;
  • the user continues to maintain the effect according to the effect set by the user. Presented.
  • the obtaining the area target selected by the user in the preview stage screen comprises: providing an initial area selection box for the user, and adjusting the position and/or size of the area selection box according to the user operation, and adjusting The area covered by the area selection box is the area target;
  • An outline of the object body from which the user selects the object body of interest, and the selected object body is the area target.
  • the process of providing the user with an initial area selection box includes:
  • the area target selected by the user is continuously and continuously presented according to the effect set by the user, including:
  • the area target selected by the user is tracked in real time by comparing the image frames of the set, and is continuously displayed in the tracked target area according to the effect set by the user.
  • the real-time tracking of the regional target selected by the user by comparing the captured image frames includes:
  • the target position of the region in the current image frame is The regional target locations in the image frames are compared to track the location changes of the regional targets in real time.
  • the previous image frame includes: a previous frame image of the current image frame, or a first few frames of the current image frame;
  • the current image frame includes: selecting an image frame of a set interval as a current image frame in the consecutive image frames collected.
  • the type of effect set by the user includes one or more of the following: focus enhancement or blurring, flipping or rotating, zooming in or out, replacing or copying, color removing or adding, setting shooting parameters.
  • the method further includes:
  • the area target selected by the user is stored and presented according to the effect set by the user.
  • the method further includes:
  • the threshold is applied directly to the pre-taken picture as the picture taken by the end user.
  • the embodiment of the invention further provides a terminal device, including:
  • An area target selection module configured to acquire an area target selected by the user in the preview stage screen
  • the preview real-time effect presentation module is configured to perform on-the-fly continuous presentation according to the effect set by the user for the area target selected by the user.
  • the area target selection module includes:
  • An initial area providing module configured to provide an initial area selection box for the user; and an area target determining module configured to adjust the bit of the area selection box according to a user operation And the size of the area is selected by the area selection box; or the area target selection module includes:
  • the area target determining module is configured to determine, according to the shape edge detection algorithm, an outline of each object body in the full view of the preview framing, for the user to select the object body of interest, and the selected object body is the area target;
  • the area target selection module includes:
  • An initial area providing module configured to provide an initial area selection box for the user; an area target determining module configured to adjust a position and/or a size of the area selection box according to a user operation, and then in the area selection box
  • the contour of the object body in the full view of the preview framing is determined based on the shape edge detection algorithm, for the user to select the object body of interest, and the selected object body is the area target.
  • the initial area providing module is configured to:
  • the preview real-time effect presentation module includes:
  • the tracking module is configured to perform real-time tracking on the area target selected by the user by comparing the image frames of the set;
  • the display module is configured to continuously display the effect set by the user within the tracked target of the area.
  • the tracking module is configured to:
  • the area target position in the current image frame is compared with the area target position in the previous image frame to track the position change of the area target in real time.
  • the previous image frame includes: a previous frame image of the current image frame, or The first few frames of the image frame;
  • the current image frame includes: selecting an image frame of a set interval as a current image frame in the consecutive image frames collected.
  • the type of effect set by the user includes one or more of the following: focus enhancement or blurring, flipping or rotating, zooming in or out, replacing or copying, color removing or adding, setting shooting parameters.
  • the terminal device further includes:
  • the shooting processing module is configured to store and present the area target selected by the user according to the effect set by the user based on the triggering operation of the user.
  • the terminal device further includes:
  • the photographing processing module is configured to directly apply the pre-taken image as the end user to shoot at a set time interval according to a difference between the user setting and the pre-taken picture in the preview phase. image.
  • Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being used to perform the above method.
  • the image presenting method, the terminal device and the computer storage medium according to the embodiments of the present invention can lock the regional target of the user's interest in the full view of the preview stage, and differentiate and diversify the user's real-time special effect on the target of the area. Visual needs.
  • the method and the terminal device in the embodiments of the present invention can realize the innovative expansion of the terminal shooting function mode, fill the blank of the terminal in the instant preview shooting for the special effect of the regional target, and obtain a new shooting special effect style and an instant image. Rich photo experience. DRAWINGS
  • FIG. 1 is a flowchart of an image presentation method according to a first embodiment of the present invention
  • FIG. 2 is a flowchart of an image presentation method according to a second embodiment of the present invention
  • 3 is a schematic structural diagram of a terminal device according to third and fourth embodiments of the present invention
  • FIG. 4(a) is a schematic structural diagram of a first and third implementation manners of an area target selection module in the third and fourth embodiments of the present invention
  • 4(b) is a schematic structural diagram of a second implementation manner of an area target selection module in the third and fourth embodiments of the present invention.
  • FIG. 5 is a schematic structural diagram of a preview real-time effect presentation module in the third and fourth embodiments of the present invention.
  • FIG. 6 is a schematic diagram of a process of photographing a terminal device by a user through a touch screen according to an application example of the present invention
  • FIG. 7 is a schematic diagram of determining a location of interest of a user and a location of a target area according to an application example of the present invention
  • FIG. 8 is a schematic diagram of comparison of effects of a terminal device before and after taking a picture according to an application example of the present invention.
  • a first embodiment of the present invention includes the following steps: Step S101: Acquire an area target selected by a user in a preview stage screen.
  • step S101 includes the following acquisition methods:
  • An outline of the object body from which the user selects the object body of interest, and the selected object body is the area target.
  • the user's operation can be various. Taking the touch screen input as an example, the user can achieve the reduction and enlargement of the area selection frame by combining the two directions and outwardly dialing.
  • the area selection box may be square or circular.
  • the shape edge detection algorithm can choose from the following classic algorithms: Roberts algorithm, Sobel algorithm, Prewitt algorithm, Krisch algorithm, Gauss-Laplac algorithm.
  • the process of providing an initial area selection box for the user includes: setting a default position starting point in the preview screen, the starting point position is usually located at the center of the whole picture, based on the user's operation or by capturing The user's eye gaze at the movement of the focus, moving the position of the starting point to a point of interest to the user, and providing the user with an initial area selection box at the point of interest of the user.
  • Step S102 Perform on-the-fly continuous presentation according to the effect set by the user for the area target selected by the user.
  • step S102 includes:
  • the area target selected by the user is tracked in real time by comparing the image frames of the set, and is continuously displayed in the tracked target area according to the effect set by the user.
  • the region target position in the current image frame is compared with the region target position in the previous image frame based on the continuous image frame, so as to track and locate the position change of the region target in real time,
  • the regional target selected by the user is tracked in real time.
  • the conventional image frame includes: the previous frame image of the current image frame, or the first few frames of the current image frame.
  • the current image frame includes: selecting one of the consecutive image frames collected in the frame
  • the image frame of the interval is used as the current image frame. For example, the next frame of every 5 frames is used as the current frame frame, that is, the first frame, the sixth frame, and the eleventh frame are successively compared with the previous image frames. If each frame image is compared with the previous frame image, the displacement of the target of the region can be accurately and timely tracked, but processing each frame image may impose a great burden on the system, and the tracking efficiency is taken into account.
  • an image frame having a certain interval may be appropriately selected as a comparison between the current frame and the image of the previous frame.
  • the current frame may be compared with the image of the previous frame. Tracking of regional targets is guided by a comprehensive comparison of results.
  • the change of the target position of the area is reflected by the positional offset of the image center point or edge point of the target of the area.
  • the target of the area is the object body selected by the user
  • the change of the target position of the area is reflected by the positional offset of the set point on the contour of the target of the area, for example: every 15 pixels on the contour of the target of the area Compare the coordinate position of the next pixel to determine whether the target position of the area has changed.
  • the type of effect set by the user may include one or more of the following: focus enhancement or blurring, flipping or rotating, zooming in or out, replacing or copying, color removing or adding, setting shooting parameters, etc., flipping or
  • the rotation effects include: left and right, up and down, fan rotation at 45 degrees, etc.
  • the applicable color effects include: black and white, retro, color cast, negative, print, etc.
  • the set shooting parameters include: select scene, brightness, contrast, exposure , saturation, sensitivity, and white balance.
  • the method further includes:
  • Step S103 when the user takes a photo or a video, the area target selected by the user is stored and presented according to the effect set by the user in the preview interface.
  • you can The solution is to capture only the target of the area and save it. You can also take a full picture and let the target of the area be displayed according to the effect set by the user.
  • steps S201 to S202 of the present embodiment are substantially the same as steps S101 to S102 of the first embodiment, and the difference is that the method in this embodiment further include:
  • Step S203 pre-shooting and storing the area target selected by the user according to the effect set by the user at a set time interval in the preview phase.
  • the stored image result is overwritten or replaced each time the pre-photograph is taken.
  • the result of the picture stored in the pre-photographing if the storage space is sufficient, the picture result stored in the pre-photographing may be retained at the same time, and the subsequent aging may be deleted.
  • a third embodiment of the present invention corresponding to the method of the first embodiment, provides a terminal device, as shown in FIG. 3, including the following components:
  • the area target selection module 100 is configured to acquire the area i or the target selected by the user in the preview stage screen;
  • the regional target selection module 100 uses the following implementations:
  • the regional target selection module 100 includes: an initial region providing module 101 configured to provide an initial region selection box for the user; and an area target determining module 102 configured to The user's operation adjusts the position and/or size of the area selection box, and the adjusted coverage area of the area selection box is the area target.
  • the regional target selection module 100 includes: an area target determining module 102 configured to determine an outline of each object in the full view of the preview framing based on the shape edge detection algorithm. For the user to select the subject of interest, select The subject of the object is the target of the area.
  • the regional target selection module 100 includes: an initial region providing module 101 configured to provide an initial region selection box for the user; and an area target determining module 102 configured to The user's operation adjusts the position and/or size of the area selection box, and then determines the outline of each object body in the full view of the preview framing based on the shape edge detection algorithm in the area selection box, for the user to select an interest from The object body selected, the selected object body is the area target.
  • the initial area providing module 101 is configured to:
  • the preview real-time effect presentation module 200 is configured to perform on-the-fly continuous presentation according to the effect set by the user for the area target selected by the user.
  • the preview real-time effect presentation module 200 includes:
  • the tracking module 201 is configured to perform real-time tracking on the area target selected by the user by comparing the image frames of the set;
  • the display module 202 is configured to continuously display the effect set by the user within the tracked target of the area.
  • the tracking module 201 is configured to: compare the area target position in the current image frame with the area target position in the previous image frame based on the set of consecutive image frames, and track the positioning in real time. The location of the regional target changes.
  • the conventional image frame includes: the previous frame image of the current image frame, or the first few frames of the current image frame.
  • the current image frame includes: selecting an image frame of a set interval as the current image frame in the consecutive image frames collected, for example, the next frame every 5 frames as the current frame frame, that is, the first frame, the sixth frame,
  • the 11th frame is compared with its previous image frames. If right Each frame of the image is compared with the image of the previous frame, and the displacement of the target of the region can be accurately and timely tracked, but processing each frame of image may impose a great burden on the system, taking into account tracking efficiency and system. In the case of burden, an image frame with a certain interval may be appropriately selected as a comparison between the current frame and the image of the previous frame. For higher tracking accuracy, the current frame may be compared with the image of the previous frame, according to the synthesis. The comparison results to guide the tracking of regional targets.
  • the change of the target position of the area is reflected by the positional offset of the image center point or edge point of the target of the area.
  • the target of the area is the object body selected by the user
  • the change of the target position of the area is reflected by the positional offset of the set point on the contour of the target of the area, for example: every 15 pixels on the contour of the target of the area Compare the coordinate position of the next pixel to determine whether the target position of the area has changed.
  • the type of effect set by the user may include one or more of the following: focus enhancement or blurring, flipping or rotating, zooming in or out, replacing or copying, color removing or adding, setting shooting parameters, etc., flipping or
  • the rotation effects include: left and right, up and down, fan rotation at 45 degrees, etc.
  • the applicable color effects include: black and white, retro, color cast, negative, print, etc.
  • the set shooting parameters include: select scene, brightness, contrast, exposure , saturation, sensitivity, and white balance.
  • the above regional target selection module 100 and the preview real-time effect presentation module 200 can be used as an embodiment of a complete technical solution of the present invention.
  • the terminal device further includes:
  • the shooting processing module 300 is configured to store and present the area target selected by the user according to the effect set by the user in the preview interface when the user takes a photo or video.
  • the shooting process here can be understood as capturing only the target of the area and saving it, or taking a full picture and letting the area target be displayed according to the effect set by the user.
  • a fourth embodiment of the present invention corresponding to the method of the second embodiment, provides a terminal device. As shown in FIG. 3, the regional target selection module 100 and the preview real-time effect presentation module 200 of the present embodiment are in the third embodiment.
  • the shooting processing module 300 of the terminal device in the embodiment is configured to overwrite or replace the previous pre-photographing according to the picture result stored by the user at a set time interval in the preview stage.
  • the pre-taken picture is directly applied as the picture taken by the end user, otherwise the user's picture is still applied. image.
  • Embodiments of the present invention also provide a computer storage medium in which computer executable instructions are stored, the computer executable instructions being used to perform the above method.
  • Each of the above modules may be implemented by a central processing unit (CPU), a digital signal processor (DSP) or a Field-Programmable Gate Array (FPGA) in the electronic device.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram. Based on the above embodiments, a touch screen interaction is taken as an example, and an application example of the present invention is introduced in conjunction with FIGS. 6-8.
  • the process of photographing the terminal device through the touch screen by the user is as follows:
  • the photo preview is started by the terminal device camera unit.
  • the user can input the point of interest on the touch screen within a certain time after the framing, and preferably, mark the center point of the screen as the default starting point center.
  • the user can do this in a certain way, such as: Click to display the touch screen somewhere, or press the key to enter the coordinates, or capture the eye's focus Move, etc., move the starting point to the user at any target position of interest in the viewfinder, for example:
  • the real-time display and user interaction action acquisition unit will present the user's current selection in real time, and acquire the interest point, and the position information will be reported to the image analysis processing unit.
  • the narrowing or enlargement of the range of the target area is achieved by the combination or opening of the two fingers on the touch screen.
  • the framing image range, image features, and the like are reported to the image analysis processing unit.
  • the user's area of interest embodied in the preview image scene is framed, including but not limited to square or round, highlighted to the user for confirmation. If the user explicitly sends an acknowledgment signal, such as a fast two-touch screen, the target area lock is confirmed. Synchronization provides a choice of whether to refine the object in the area for the user; if the user has this requirement, the object edge contour detection algorithm is used to extract the contour of each object, such as: Roberts algorithm, Sobel algorithm, Prewitt algorithm, Krisch Algorithm, Gauss-Laplac algorithm, etc., highlighted to the user for confirmation; the user confirms one or several object subjects of interest. After the user explicitly sends an acknowledgment signal, such as a fast two-touch screen, the target area or target object lock is confirmed. Store and report image feature information for this specific area or a specific object body.
  • the image analysis processing unit performs multi-frame tracking to lock the target area or the object body. At the same time, in this part, multi-frame processing will also be performed without timing, and calibration locking of the area object and storage update of the image feature information will be performed.
  • the image analysis processing unit will implement the preset special effects on the target area or the object body that the user is interested in, and realize the whole process of previewing.
  • the system Since the pre-photograph storage operation is set in step 6, after the user officially takes a photo operation, the system will first analyze whether the current target area or the object body has a change compared with the previous storage record. If there is no change, the previous operation is processed. The effect can be directly applied, which greatly saves the time consumption of taking pictures.
  • the image presenting method, the terminal device and the computer storage medium of the embodiment of the present invention can lock the regional target of the user's interest in the full view of the preview stage, and differentiate and diversify the user's real-time special to the target of the area.
  • the method and the terminal device of the embodiments of the present invention can realize an innovative extension of the terminal shooting function mode, and fill in the blank of the terminal in the instant preview shooting for the special effect of the regional target, and obtain a new shooting special effect style and instant image. , rich in photo experience.
  • the image presenting method and the terminal device can lock the regional target of the user's interest in the framing full picture in the preview stage, and the differentiated and diverse visual requirements satisfying the user's real-time special effects on the regional target.
  • the method and the terminal device in the embodiments of the present invention can realize the innovative expansion of the terminal shooting function mode, fill the blank of the terminal in the instant preview shooting for the special effect of the regional target, and obtain a new shooting special effect style and an instant image. Rich photo experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)

Abstract

本发明公开了一种图像呈现方法、终端设备及计算机存储介质,该方法包括:获取用户在拍照预览阶段取景的全图中选择的区域目标;针对用户选择的所述区域目标,按照用户设定的效果进行即时的持续呈现;将用户选择的所述区域目标按照用户设定的效果进行存储和呈现。本发明可在预览阶段的取景全图中锁定用户感兴趣的区域目标,差异化且多样化的满足用户对该区域目标的实时特殊效果的视觉需求。本发明实现了终端拍摄功能模式的创新扩展,填补了终端在针对区域目标特殊效果即时预览拍摄这一方面的空白,取得新的拍摄特殊效果风格与即时图像,丰富拍照体验。

Description

一种图像呈现方法、 终端设备及计算机存储介质 技术领域
本发明涉及终端设备技术领域, 尤其涉及一种图像呈现方法、 终端设 备及计算机存储介质。 背景技术
目前很多终端设备都配有摄像头, 支持一般的拍照对焦、 色彩设置、 特效施加等功能。 然而, 现有各终端摄像头上此类功能的实现, 都是从整 体预览取景的全图出发、 基于全局信息的执行处理, 将效果作用体现于预 览拍照图片的全范围。
由于用户习惯和个人喜好侧重有所不同, 使用摄像头时, 会有对预览 取景的全图中某个局部区域或特定对象主体即时性的区域对焦提升或对象 模糊化、 区域翻转或对象旋转、 区域替换或对象复制、 色彩去除或增加等 特殊效果的需求。 但是, 相关技术对预览取景中用户感兴趣的特定区域或 具体对象并无针对性即时性的处理, 而且拍后处理也不能完全满足用户要 求, 实现结果并不理想。 发明内容
本发明要解决的技术问题是, 提供一种图像呈现方法、 终端设备及计 算机存储介质, 对预览取景的全图中的局部区域进行特殊效果处理, 并即 时的持续呈现出来。
本发明实施例釆用的技术方案是, 所述图像呈现方法, 包括: 获取用户在预览阶段的画面中选择的区域目标;
针对用户选择的所述区域目标, 按照用户设定的效果进行即时的持续 呈现。
较佳的, 所述获取用户在预览阶段的画面中选择的区域目标, 包括: 为用户提供一个初始的区域选择框, 根据用户的操作调整所述区域选 择框的位置和 /或大小, 调整后的所述区域选择框覆盖的范围即为所述区域 目标;
或者,
基于形状边缘检测算法确定出预览取景的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对象主体, 选择出的所述对象主体即为所述区域 目标;
或者,
为用户提供一个初始的区域选择框, 根据用户的操作调整所述区域选 择框的位置和 /或大小, 然后再在所述区域选择框中基于形状边缘检测算法 确定出预览取景的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对 象主体, 选择出的所述对象主体即为所述区域目标。
较佳的, 为用户提供一个初始的区域选择框的过程包括:
在预览阶段的画面中设置一默认的位置起点, 基于用户的操作或者通 过捕捉用户眼睛注视焦点的移动, 将所述起点的位置移动到用户感兴趣的 位置点, 在用户感兴趣的位置点处为用户提供一个初始的区域选择框。
较佳的, 所述针对用户选择的所述区域目标, 按照用户设定的效果进 行即时的持续呈现, 包括:
通过比对釆集的图像帧, 对用户选择的所述区域目标进行实时跟踪, 在跟踪到的所述区域目标内持续的按照用户设定的效果进行显示。
较佳的, 所述通过比对釆集的图像帧, 对用户选择的所述区域目标进 行实时跟踪, 包括:
基于釆集到连续图像帧, 将当前图像帧中的所述区域目标位置与以往 图像帧中的所述区域目标位置进行比较, 以实时跟踪定位所述区域目标的 位置变化。
较佳的, 所述以往图像帧包括: 当前图像帧的前一帧图像, 或者当前 图像帧的前几帧图像;
所述当前图像帧包括: 在釆集到的连续图像帧中选取设定间隔的图像 帧作为当前图像帧。
较佳的, 用户设定的效果类型包括以下一项或多项: 对焦增强或者模 糊化、 翻转或者旋转、 放大或者缩小、 替换或者复制、 色彩去除或者添加、 设定拍摄参数。
较佳的, 作为一种可选的技术方案, 所述方法还包括:
基于用户的触发操作, 将用户选择的所述区域目标按照用户设定的效 果进行存储和呈现。
较佳的, 作为一种优选的技术方案, 所述方法还包括:
在预览阶段以设定的时间间隔, 按照用户设定的效果对用户选择的所 述区域目标进行预拍并存储; 若用户所拍摄的图片与所述预拍的图片之间 的差异未超过设定的阈值, 则直接应用预拍的图片作为最终用户拍摄的图 片。
本发明实施例还提供一种终端设备, 包括:
区域目标选择模块, 配置为获取用户在预览阶段的画面中选择的区域 目标;
预览实时效果呈现模块, 配置为针对用户选择的所述区域目标, 按照 用户设定的效果进行即时的持续呈现。
较佳的, 所述区域目标选择模块, 包括:
初始区域提供模块, 配置为为用户提供一个初始的区域选择框; 区域目标确定模块, 配置为根据用户的操作调整所述区域选择框的位 置和 /或大小, 调整后的所述区域选择框覆盖的范围即为所述区域目标; 或者, 所述区域目标选择模块, 包括:
区域目标确定模块, 配置为基于形状边缘检测算法确定出预览取景的 全图中各对象主体的轮廓, 供用户从中选择感兴趣的对象主体, 选择出的 所述对象主体即为所述区域目标;
或者, 所述区域目标选择模块, 包括:
初始区域提供模块, 配置为为用户提供一个初始的区域选择框; 区域目标确定模块, 配置为根据用户的操作调整所述区域选择框的位 置和 /或大小, 然后再在所述区域选择框中基于形状边缘检测算法确定出预 览取景的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对象主体, 选择出的所述对象主体即为所述区域目标。
较佳的, 所述初始区域提供模块, 配置为:
在预览阶段的画面中设置一默认的位置起点, 基于用户的操作或者通 过捕捉用户眼睛注视焦点的移动, 将所述起点的位置移动到用户感兴趣的 位置点, 在用户感兴趣的位置点处为用户提供一个初始的区域选择框。
较佳的, 所述预览实时效果呈现模块, 包括:
跟踪模块, 配置为通过比对釆集的图像帧, 对用户选择的所述区域目 标进行实时跟踪;
显示模块, 配置为在跟踪到的所述区域目标内持续的按照用户设定的 效果进行显示。
较佳的, 所述跟踪模块, 配置为:
基于釆集到连续图像帧, 将当前图像帧中的所述区域目标位置与以往 图像帧中的所述区域目标位置进行比较, 以实时跟踪定位所述区域目标的 位置变化。
较佳的, 所述以往图像帧包括: 当前图像帧的前一帧图像, 或者当前 图像帧的前几帧图像;
所述当前图像帧包括: 在釆集到的连续图像帧中选取设定间隔的图像 帧作为当前图像帧。
较佳的, 用户设定的效果类型包括以下一项或多项: 对焦增强或者模 糊化、 翻转或者旋转、 放大或者缩小、 替换或者复制、 色彩去除或者添加、 设定拍摄参数。
较佳的, 作为一种可选的技术方案, 所述终端设备还包括:
拍摄处理模块, 配置为基于用户的触发操作, 将用户选择的所述区域 目标按照用户设定的效果进行存储和呈现。
较佳的, 作为一种优选的技术方案, 所述终端设备还包括:
拍摄处理模块, 配置为在预览阶段以设定的时间间隔, 按照用户设定 与所述预拍的图片之间的差异未超过设定的阈值, 则直接应用预拍的图片 作为最终用户拍摄的图片。
本发明实施例还提供一种计算机存储介质, 其中存储有计算机可执行 指令, 所述计算机可执行指令用于执行上述的方法。
本发明实施例所述图像呈现方法、 终端设备及计算机存储介质, 可在 预览阶段的取景全图中锁定用户感兴趣的区域目标, 差异化且多样化的满 足用户对该区域目标的实时特殊效果的视觉需求。 本发明实施例所述方法 及终端设备, 可以实现终端拍摄功能模式的创新扩展, 填补了终端在针对 区域目标特殊效果即时预览拍摄这一方面的空白, 取得新的拍摄特殊效果 风格与即时图像, 丰富拍照体验。 附图说明
图 1 为本发明第一实施例的图像呈现方法流程图;
图 2 为本发明第二实施例的图像呈现方法流程图; 图 3 为本发明第三、 四实施例的终端设备组成结构示意图; 图 4 ( a ) 为本发明第三、 四实施例中的区域目标选择模块的第一、 三 种实现方式的结构示意图;
图 4 ( b ) 为本发明第三、 四实施例中的区域目标选择模块的第二种实 现方式的结构示意图;
图 5 为本发明第三、 四实施例中的预览实时效果呈现模块组成结构示 意图;
图 6 为本发明应用实例的用户通过触摸屏对终端设备的拍照操控过程 示意图;
图 7 为本发明应用实例的用户感兴趣点及目标区域位置确定情况示意 图;
图 8 为本发明应用实例的终端设备拍照前后效果对比示意图。 实施方式
下结合附图及较佳实施例, 对本发明进行详细说明如后。
本发明第一实施例, 一种图像呈现方法, 如图 1所示, 包括以下步骤: 步骤 S101, 获取用户在预览阶段的画面中选择的区域目标。
较佳的, 步骤 S101包括以下几种获取方式:
为用户提供一个初始的区域选择框, 根据用户的操作调整所述区域选 择框的位置和 /或大小, 调整后的所述区域选择框覆盖的范围即为所述区域 目标;
或者,
基于形状边缘检测算法确定出预览取景的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对象主体, 选择出的所述对象主体即为所述区域 目标; 或者,
为用户提供一个初始的区域选择框, 根据用户的操作调整所述区域选 择框的位置和 /或大小, 然后再在所述区域选择框中基于形状边缘检测算法 确定出预览取景的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对 象主体, 选择出的所述对象主体即为所述区域目标。
上述几种获取方式中, 用户的操作可以是多种多样的, 以触摸屏输入 为例, 用户可以通过两指向内并合与向外划拨来实现对所述区域选择框的 缩小与放大。 所述区域选择框可以为方形或者圓形。 形状边缘检测算法可 以选用以下几种经典算法: Roberts算法、 Sobel算法、 Prewitt算法、 Krisch 算法、 高斯 -拉普拉斯算法等。
上述几种获取方式中, 为用户提供一个初始的区域选择框的过程包括: 在预览画面中设置一默认的位置起点, 所述起点的位置通常位于全图的中 心, 基于用户的操作或者通过捕捉用户眼睛注视焦点的移动, 将所述起点 的位置移动到用户感兴趣的位置点, 在用户感兴趣的位置点处为用户提供 一个初始的区域选择框。
步骤 S102, 针对用户选择的所述区域目标, 按照用户设定的效果进行 即时的持续呈现。
较佳的, 步骤 S102, 包括:
通过比对釆集的图像帧, 对用户选择的所述区域目标进行实时跟踪, 在跟踪到的所述区域目标内持续的按照用户设定的效果进行显示。
较佳的, 基于釆集到连续图像帧, 将当前图像帧中的所述区域目标位 置与以往图像帧中的所述区域目标位置进行比较, 以实时跟踪定位所述区 域目标的位置变化, 对用户选择的所述区域目标进行实时跟踪。
本实施例中, 以往图像帧包括: 当前图像帧的前一帧图像, 或者当前 图像帧的前几帧图像。 当前图像帧包括: 在釆集到的连续图像帧中选取设 定间隔的图像帧作为当前图像帧, 比如, 每隔 5帧的下一帧作为当前图帧, 即第 1帧、 第 6帧、 第 11帧, 先后分别与其以往图像帧进行比较。 如果对 每一帧图像均与其前一帧图像进行比较, 就能准确及时的对该区域目标的 位移进行跟踪, 但是对每一帧图像都进行处理可能会给系统造成很大负担, 兼顾跟踪效率和系统负担的情况下, 可以适当的选择具有一定间隔的图像 帧作为当前帧与其前一帧图像进行比较, 为了更高的跟踪准确度, 也可以 将当前帧与其前面的数帧图像进行比较, 根据综合的比较结果来指导对区 域目标的跟踪。
当用户选出的区域目标为调整后的区域选择框覆盖的范围时, 该区域 目标位置变化通过该区域目标的图像中心点或边缘点的位置偏移反映出 来。 当该区域目标为用户选择出的对象主体时, 该区域目标位置变化通过 该区域目标的轮廓上设定点的位置偏移反映出来, 比如: 在该区域目标的 轮廓上每隔 15个像素点比较一下下一个像素点的坐标位置, 以此来判断该 区域目标位置是否发生变化。
较佳的, 用户设定的效果类型可以包括以下一项或多项: 对焦增强或 者模糊化、 翻转或者旋转、 放大或者缩小、 替换或者复制、 色彩去除或者 添加、 设定拍摄参数等, 翻转或者旋转效果包括: 左右、 上下、 以 45度为 扇面旋转等, 可以应用的色彩效果包括: 黑白、 复古、 偏色、 底片、 版画 等, 设定的拍摄参数包括: 选择场景、 亮度、 对比度、 曝光、 饱和度、 感 光度以及白平衡等。
以上步骤 S101 S102 已经可以作为本发明的一个完整技术方案的实施 例。
优选的, 所述方法还包括:
步骤 S103, 当用户拍摄照片或视频时, 在预览界面中将用户选择的该 区域目标按照用户设定的效果进行存储和呈现。 这里的拍摄处理, 可以理 解成只拍摄该区域目标并保存, 也可以拍摄全图而让该区域目标按照用户 设定的效果来显示。 本发明第二实施例, 一种图像呈现方法, 如图 2 所示, 本实施例的步 骤 S201~S202与第一实施例的步骤 S101~S102大致相同, 区别在于: 本实 施例所述方法还包括:
步骤 S203, 在预览阶段以设定的时间间隔, 按照用户设定的效果对用 户选择的所述区域目标进行预拍并存储; 优选的, 每次预拍照时存储的图 片结果覆盖或者替换前一次预拍照时存储的图片结果; 如果存储空间充足, 也可以同时保留几次预拍照时存储的图片结果, 后续可以顺次老化删除。
当用户拍照时, 若用户所拍摄的图片与所述预拍的图片之间的差异未 超过设定的阈值, 则直接应用预拍的图片作为最终用户拍摄的图片, 否则 仍然应用用户所拍摄的图片。 本发明第三实施例, 与第一实施例的方法对应, 提供一种终端设备, 如图 3所示, 包括以下组成部分:
1 ) 区域目标选择模块 100, 配置为获取用户在预览阶段的画面中选择 的区 i或目标;
较佳的, 区域目标选择模块 100釆用下述几种实现方式:
第一种实现方式: 如图 4 ( a )所示, 区域目标选择模块 100, 包括: 初始区域提供模块 101, 配置为为用户提供一个初始的区域选择框; 区域目标确定模块 102,配置为根据用户的操作调整所述区域选择框的 位置和 /或大小, 调整后的所述区域选择框覆盖的范围即为所述区域目标。
第二种实现方式: 如图 4 ( b )所示, 区域目标选择模块 100, 包括: 区域目标确定模块 102,配置为基于形状边缘检测算法确定出预览取景 的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对象主体, 选择出 的所述对象主体即为所述区域目标。
第三种实现方式: 如图 4 ( a )所示, 区域目标选择模块 100, 包括: 初始区域提供模块 101, 配置为为用户提供一个初始的区域选择框; 区域目标确定模块 102,配置为根据用户的操作调整所述区域选择框的 位置和 /或大小, 然后再在所述区域选择框中基于形状边缘检测算法确定出 预览取景的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对象主体, 选择出的所述对象主体即为所述区域目标。
上述几种实现方式中, 初始区域提供模块 101, 配置为:
在预览画面中设置一默认的位置起点, 基于用户的操作或者通过捕捉 用户眼睛注视焦点的移动, 将所述起点的位置移动到用户感兴趣的位置点, 在用户感兴趣的位置点处为用户提供一个初始的区域选择框。
2 )预览实时效果呈现模块 200, 配置为针对用户选择的所述区域目标, 按照用户设定的效果进行即时的持续呈现。
较佳的, 如图 5所示, 预览实时效果呈现模块 200, 包括:
跟踪模块 201, 配置为通过比对釆集的图像帧,对用户选择的所述区域 目标进行实时跟踪;
显示模块 202,配置为在跟踪到的所述区域目标内持续的按照用户设定 的效果进行显示。
较佳的, 跟踪模块 201, 配置为: 基于釆集到连续图像帧, 将当前图像 帧中的所述区域目标位置与以往图像帧中的所述区域目标位置进行比较, 以实时跟踪定位所述区域目标的位置变化。
本实施例中, 以往图像帧包括: 当前图像帧的前一帧图像, 或者当前 图像帧的前几帧图像。 当前图像帧包括: 在釆集到的连续图像帧中选取设 定间隔的图像帧作为当前图像帧, 比如, 每隔 5帧的下一帧作为当前图帧, 即第 1帧、 第 6帧、 第 11帧, 先后分别与其以往图像帧进行比较。 如果对 每一帧图像均与其前一帧图像进行比较, 就能准确及时的对该区域目标的 位移进行跟踪, 但是对每一帧图像都进行处理可能会给系统造成很大负担, 兼顾跟踪效率和系统负担的情况下, 可以适当的选择具有一定间隔的图像 帧作为当前帧与其前一帧图像进行比较, 为了更高的跟踪准确度, 也可以 将当前帧与其前面的数帧图像进行比较, 根据综合的比较结果来指导对区 域目标的跟踪。
当用户选出的区域目标为调整后的区域选择框覆盖的范围时, 该区域 目标位置变化通过该区域目标的图像中心点或边缘点的位置偏移反映出 来。 当该区域目标为用户选择出的对象主体时, 该区域目标位置变化通过 该区域目标的轮廓上设定点的位置偏移反映出来, 比如: 在该区域目标的 轮廓上每隔 15个像素点比较一下下一个像素点的坐标位置, 以此来判断该 区域目标位置是否发生变化。
较佳的, 用户设定的效果类型可以包括以下一项或多项: 对焦增强或 者模糊化、 翻转或者旋转、 放大或者缩小、 替换或者复制、 色彩去除或者 添加、 设定拍摄参数等, 翻转或者旋转效果包括: 左右、 上下、 以 45度为 扇面旋转等, 可以应用的色彩效果包括: 黑白、 复古、 偏色、 底片、 版画 等, 设定的拍摄参数包括: 选择场景、 亮度、 对比度、 曝光、 饱和度、 感 光度以及白平衡等。
以上区域目标选择模块 100和预览实时效果呈现模块 200 已经可以作 为本发明的一个完整技术方案的实施例。
优选的, 所述终端设备还包括:
3 )拍摄处理模块 300, 配置为当用户拍摄照片或视频时, 在预览界面 中将用户选择的该区域目标按照用户设定的效果进行存储和呈现。 这里的 拍摄处理, 可以理解成只拍摄该区域目标并保存, 也可以拍摄全图而让该 区域目标按照用户设定的效果来显示。 本发明第四实施例, 与第二实施例的方法对应, 提供一种终端设备, 如图 3所示, 本实施例的区域目标选择模块 100和预览实时效果呈现模块 200与第三实施例中记载的功能大致相同, 区别在于: 本实施例所述终端设 备的拍摄处理模块 300, 配置为在预览阶段以设定的时间间隔, 按照用户设 照时存储的图片结果覆盖或者替换前一次预拍照时存储的图片结果; 如果 存储空间充足, 也可以同时保留几次预拍照时存储的图片结果, 后续可以 顺次老化删除。
当用户拍照时, 若用户所拍摄的图片与所述预拍的图片之间的差异未 超过设定的阈值, 则直接应用预拍的图片作为最终用户拍摄的图片, 否则 仍然应用用户所拍摄的图片。
本发明实施例还提供一种计算机存储介质, 其中存储有计算机可执行 指令, 所述计算机可执行指令用于执行上述的方法。
上述各模块可以由电子设备中的中央处理器( Central Processing Unit, CPU ), 数字信号处理器 (Digital Signal Processor, DSP )或可编程逻辑阵 列 (Field - Programmable Gate Array, FPGA ) 实现。
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的步骤。 下面在上述实施例的基础上, 以触摸屏交互为例, 结合图 6~8介绍一 个本发明的应用实例。
如图 6所示, 用户通过触摸屏对终端设备的拍照操控过程如下:
1、 预览取景输入。
首先通过终端设备摄像头单元启动拍照预览。
2、 实时显示呈现。 取景画面。
3、 用户交互兴趣点获取。
如图 7 所示, 用户可在取景后一定时间内在触摸屏上进行兴趣点的输 入, 较佳的, 将画面中心点标记为默认的起点中心。 用户可通过一定的方 式, 如: 点击显示触摸屏某处, 或按键输入坐标, 或捕捉眼睛注视焦点的 移动等, 移动该起点到用户在取景画面中任意感兴趣的目标位置处, 例如:
P1点或 P2点的位置。以点击显示触摸屏某处为例, 实时显示及用户交互动 作获取单元会实时呈现用户当前的选择, 获取兴趣点, 且该位置信息将被 记录上报给图像分析处理单元。
4、 锁定目标区域对象、 分析存储和上报信息。
如图 7所示, 例如以 P1兴趣点为中心, 通过两只手指在触摸屏上的并 合或打开实现目标区域范围的缩小或扩大。 取景图像范围、 图像特征等记 录将上报给图像分析处理单元。
将此预览图像场景中所体现的用户感兴趣区域框定, 框选方式包括但 不局限于方形或圓形, 突出显示给用户确认。 用户明确发出确认信号, 如 快速双点触摸屏, 则认为目标区域锁定确认完毕。 同步提供是否针对该区 域内对象进行细化锁定的选择给用户; 若用户有此需求, 针对该区域釆用 形状边缘检测算法提取出各对象轮廓,如: Roberts算法、 Sobel算法、 Prewitt 算法、 Krisch算法、 高斯 -拉普拉斯算法等, 突出显示给用户确认; 由用户 确认感兴趣的某一个或某几个对象主体。 用户明确发出确认信号后, 如快 速双点触摸屏, 则认为目标区域或目标对象锁定确认完毕。 存储并上报此 特定区域或某特定对象主体的图像特征信息。
5、 图像分析处理与多帧跟踪锁定目标区域对象。
图像分析处理单元进行多帧跟踪锁定目标区域或者对象主体。 同时, 在此部分, 也将不定时多帧处理, 并进行区域对象的校准锁定与图像特征 信息的存储更新。
6、 目标区域或者对象主体的特殊效果即时呈现与预拍照存储。
通过上面的步骤, 已确定较佳的目标区域或对象主体。 结合用户选择 设定的不同特殊效果模型与画面设置, 图像分析处理单元将即时性地在用 户感兴趣的目标区域或对象主体上实施预设特殊效果, 实现预览整个过程 中取景全图中某局部特定区域对象主体上的特殊效果, 并定期预存储结果
7、 拍照获得满足用户需求的目标区域或者对象主体的特殊效果的图片 结果。
用户正式拍照, 拍得的图片结果如图 8 所示, 以桌面上某瓶罐装饮料 ABC为例, 可即时实现针对主体对象的色彩调整、 字母虚化、 放大等特效 操作, 大大丰富拍照功能, 满足日益高涨和多样化的用户需求。
由于第 6 步中设置了预拍照存储的操作, 用户正式拍照操作触发后, 系统将首先分析当前目标区域或者对象主体较前一存储记录相比是否存在 变化, 若无变化, 前一操作的处理效果可直接应用, 大大节省拍照拍摄的 时间消耗。
总之, 用户只需简单交互, 即可实时性实现更多样丰富、 准确高效的 针对预览全景中某区域 /某对象主体的特殊拍照拍摄效果。 由于釆用持续性 目标区域对象的跟踪锁定和即时性特殊效果的预览呈现, 将有效改善抖动 引入的拍照拍摄效果不佳。
本发明实施例的所述图像呈现方法、 终端设备及计算机存储介质, 可 在预览阶段的取景全图中锁定用户感兴趣的区域目标, 差异化且多样化的 满足用户对该区域目标的实时特殊效果的视觉需求。 本发明实施例的所述 方法及终端设备, 可以实现终端拍摄功能模式的创新扩展, 填补了终端在 针对区域目标特殊效果即时预览拍摄这一方面的空白, 取得新的拍摄特殊 效果风格与即时图像, 丰富拍照体验。
通过实施方式的说明, 应当可对本发明为达成预定目的所釆取的技术 手段及功效得以更加深入且较佳的了解, 然而所附图示仅是提供参考与说 明之用, 并非用来对本发明加以限制。 工业实用性
本发明实施例所述图像呈现方法及终端设备, 可在预览阶段的取景全 图中锁定用户感兴趣的区域目标, 差异化且多样化的满足用户对该区域目 标的实时特殊效果的视觉需求。 本发明实施例所述方法及终端设备, 可以 实现终端拍摄功能模式的创新扩展, 填补了终端在针对区域目标特殊效果 即时预览拍摄这一方面的空白, 取得新的拍摄特殊效果风格与即时图像, 丰富拍照体验。

Claims

权利要求书
1、 一种图像呈现方法, 其中, 包括:
获取用户在预览阶段的画面中选择的区域目标;
针对用户选择的所述区域目标, 按照用户设定的效果进行即时的持续 呈现。
2、 根据权利要求 1所述的图像呈现方法, 其中, 所述获取用户在预览 阶段的画面中选择的区域目标, 包括:
为用户提供一个初始的区域选择框, 根据用户的操作调整所述区域选 择框的位置和 /或大小, 调整后的所述区域选择框覆盖的范围即为所述区域 目标;
或者,
基于形状边缘检测算法确定出预览取景的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对象主体, 选择出的所述对象主体即为所述区域 目标;
或者,
为用户提供一个初始的区域选择框, 根据用户的操作调整所述区域选 择框的位置和 /或大小, 然后再在所述区域选择框中基于形状边缘检测算法 确定出预览取景的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对 象主体, 选择出的所述对象主体即为所述区域目标。
3、 根据权利要求 2所述的图像呈现方法, 其中, 所述为用户提供一个 初始的区域选择框, 包括:
在预览阶段的画面中设置一默认的位置起点, 基于用户的操作或者通 过捕捉用户眼睛注视焦点的移动, 将所述起点的位置移动到用户感兴趣的 位置点, 在用户感兴趣的位置点处为用户提供一个初始的区域选择框。
4、 根据权利要求 1所述的图像呈现方法, 其中, 所述针对用户选择的 所述区域目标, 按照用户设定的效果进行即时的持续呈现, 包括: 通过比对釆集的图像帧, 对用户选择的所述区域目标进行实时跟踪, 在跟踪到的所述区域目标内持续的按照用户设定的效果进行显示。
5、 根据权利要求 4所述的图像呈现方法, 其中, 所述通过比对釆集的 图像帧, 对用户选择的所述区域目标进行实时跟踪, 包括:
基于釆集到连续图像帧, 将当前图像帧中的所述区域目标位置与以往 图像帧中的所述区域目标位置进行比较, 以实时跟踪定位所述区域目标的 位置变化。
6、根据权利要求 5所述的图像呈现方法,其中, 所述以往图像帧包括: 当前图像帧的前一帧图像, 或者当前图像帧的前几帧图像;
所述当前图像帧包括: 在釆集到的连续图像帧中选取设定间隔的图像 帧作为当前图像帧。
7、 根据权利要求 1至 6中任意一项所述的图像呈现方法, 其中, 用户 设定的效果类型包括以下一项或多项: 对焦增强或者模糊化、 翻转或者旋 转、 放大或者缩小、 替换或者复制、 色彩去除或者添加、 设定拍摄参数。
8、 根据权利要求 1至 6中任意一项所述的图像呈现方法, 其中, 所述 方法还包括:
基于用户的触发操作, 将用户选择的所述区域目标按照用户设定的效 果进行存储和呈现。
9、 根据权利要求 1至 6中任意一项所述的图像呈现方法, 其中, 所述 方法还包括:
在预览阶段以设定的时间间隔, 按照用户设定的效果对用户选择的所 述区域目标进行预拍并存储; 若用户所拍摄的图片与所述预拍的图片之间 的差异未超过设定的阈值, 则直接应用预拍的图片作为最终用户拍摄的图 片。
10、 一种终端设备, 其中, 该终端设备包括:
区域目标选择模块, 配置为获取用户在预览阶段的画面中选择的区域 目标;
预览实时效果呈现模块, 配置为针对用户选择的所述区域目标, 按照 用户设定的效果进行即时的持续呈现。
11、根据权利要求 10所述的终端设备, 其中, 所述区域目标选择模块, 包括:
初始区域提供模块, 配置为为用户提供一个初始的区域选择框; 区域目标确定模块, 配置为根据用户的操作调整所述区域选择框的位 置和 /或大小, 调整后的所述区域选择框覆盖的范围即为所述区域目标; 或者, 所述区域目标选择模块, 包括:
区域目标确定模块, 配置为基于形状边缘检测算法确定出预览取景的 全图中各对象主体的轮廓, 供用户从中选择感兴趣的对象主体, 选择出的 所述对象主体即为所述区域目标;
或者, 所述区域目标选择模块, 包括:
初始区域提供模块, 配置为为用户提供一个初始的区域选择框; 区域目标确定模块, 配置为根据用户的操作调整所述区域选择框的位 置和 /或大小, 然后再在所述区域选择框中基于形状边缘检测算法确定出预 览取景的全图中各对象主体的轮廓, 供用户从中选择感兴趣的对象主体, 选择出的所述对象主体即为所述区域目标。
12、根据权利要求 11所述的终端设备, 其中, 所述初始区域提供模块, 配置为:
在预览阶段的画面中设置一默认的位置起点, 基于用户的操作或者通 过捕捉用户眼睛注视焦点的移动, 将所述起点的位置移动到用户感兴趣的 位置点, 在用户感兴趣的位置点处为用户提供一个初始的区域选择框。
13、 根据权利要求 10所述的终端设备, 其中, 所述预览实时效果呈现 模块, 包括:
跟踪模块, 配置为通过比对釆集的图像帧, 对用户选择的所述区域目 标进行实时跟踪;
显示模块, 配置为在跟踪到的所述区域目标内持续的按照用户设定的 效果进行显示。
14、根据权利要求 13所述的终端设备, 其中, 所述跟踪模块, 配置为: 基于釆集到连续图像帧, 将当前图像帧中的所述区域目标位置与以往 图像帧中的所述区域目标位置进行比较, 以实时跟踪定位所述区域目标的 位置变化。
15、 根据权利要求 14所述的终端设备, 其中, 所述以往图像帧包括: 当前图像帧的前一帧图像, 或者当前图像帧的前几帧图像;
所述当前图像帧包括: 在釆集到的连续图像帧中选取设定间隔的图像 帧作为当前图像帧。
16、 根据权利要求 10所述的终端设备, 其中, 用户设定的效果类型包 括以下一项或多项: 对焦增强或者模糊化、 翻转或者旋转、 放大或者缩小、 替换或者复制、 色彩去除或者添加、 设定拍摄参数。
17、 根据权利要求 10至 15中任意一项所述的终端设备, 其中, 所述 终端设备还包括:
拍摄处理模块, 配置为基于用户的触发操作, 将用户选择的所述区域 目标按照用户设定的效果进行存储和呈现。
18、 根据权利要求 10至 15中任意一项所述的终端设备, 其中, 所述 终端设备还包括:
拍摄处理模块, 配置为在预览阶段以设定的时间间隔, 按照用户设定 与所述预拍的图片之间的差异未超过设定的阈值, 则直接应用预拍的图片 作为最终用户拍摄的图片。
19、 一种计算机存储介质, 其中存储有计算机可执行指令, 所述计算 机可执行指令用于执行所述权利要求 1至 9任一项所述的方法。
PCT/CN2014/076891 2014-01-16 2014-05-06 一种图像呈现方法、终端设备及计算机存储介质 WO2015106508A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/110,236 US20160337593A1 (en) 2014-01-16 2014-05-06 Image presentation method, terminal device and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410020015.4A CN104796594B (zh) 2014-01-16 2014-01-16 一种预览界面特殊效果即时呈现方法及终端设备
CN201410020015.4 2014-01-16

Publications (1)

Publication Number Publication Date
WO2015106508A1 true WO2015106508A1 (zh) 2015-07-23

Family

ID=53542336

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076891 WO2015106508A1 (zh) 2014-01-16 2014-05-06 一种图像呈现方法、终端设备及计算机存储介质

Country Status (3)

Country Link
US (1) US20160337593A1 (zh)
CN (1) CN104796594B (zh)
WO (1) WO2015106508A1 (zh)

Families Citing this family (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554364A (zh) * 2015-07-30 2016-05-04 宇龙计算机通信科技(深圳)有限公司 一种图像处理方法及终端
CN105681654A (zh) * 2016-01-12 2016-06-15 努比亚技术有限公司 拍照方法及移动终端
CN105578056A (zh) * 2016-01-27 2016-05-11 努比亚技术有限公司 拍摄的终端及方法
CN105681627B (zh) * 2016-03-03 2019-12-24 联想(北京)有限公司 拍摄图像方法及电子设备
CN106125932A (zh) * 2016-06-28 2016-11-16 广东欧珀移动通信有限公司 一种增强现实中目标对象的识别方法、装置及移动终端
CN106373158B (zh) * 2016-08-24 2019-08-09 广东杰思通讯股份有限公司 自动化图像检测方法
CN106375663A (zh) * 2016-09-22 2017-02-01 宇龙计算机通信科技(深圳)有限公司 终端拍摄方法和终端拍摄装置
CN106303292B (zh) * 2016-09-30 2019-05-03 努比亚技术有限公司 一种视频数据的生成方法和终端
CN107690648B (zh) * 2016-10-20 2022-03-04 深圳达闼科技控股有限公司 一种基于虹膜识别的图像预览方法及装置
CN106488128B (zh) * 2016-10-27 2020-02-28 成都西纬科技有限公司 一种自动拍照的方法及装置
CN106612396B (zh) * 2016-11-15 2020-06-16 努比亚技术有限公司 一种拍照装置、终端及方法
CN108108370A (zh) * 2016-11-24 2018-06-01 百度在线网络技术(北京)有限公司 搜索结果展示方法和装置
WO2018097632A1 (en) 2016-11-25 2018-05-31 Samsung Electronics Co., Ltd. Method and device for providing an image
CN106557170A (zh) * 2016-11-25 2017-04-05 三星电子(中国)研发中心 对虚拟现实设备上的图像进行缩放的方法及装置
CN106791402A (zh) * 2016-12-23 2017-05-31 宇龙计算机通信科技(深圳)有限公司 一种移动终端拍照方法和终端
CN106713759A (zh) * 2016-12-31 2017-05-24 深圳天珑无线科技有限公司 照相机智能撷取影像的方法及系统
CN106898036A (zh) * 2017-02-28 2017-06-27 宇龙计算机通信科技(深圳)有限公司 图像数据处理方法及移动终端
CN106937055A (zh) * 2017-03-30 2017-07-07 维沃移动通信有限公司 一种图像处理方法及移动终端
WO2019041231A1 (zh) * 2017-08-31 2019-03-07 深圳传音通讯有限公司 一种方形裁剪拍照方法、拍照系统及拍照装置
CN107770443A (zh) * 2017-10-26 2018-03-06 努比亚技术有限公司 一种图像处理方法、移动终端及计算机可读存储介质
EP4246447A3 (en) * 2017-11-20 2023-11-01 Huawei Technologies Co., Ltd. Method and device for dynamically displaying icon according to background image
US10732826B2 (en) * 2017-11-22 2020-08-04 Microsoft Technology Licensing, Llc Dynamic device interaction adaptation based on user engagement
CN108234979A (zh) * 2017-12-27 2018-06-29 努比亚技术有限公司 一种拍摄方法、移动终端及计算机可读存储介质
CN108495029B (zh) * 2018-03-15 2020-03-31 维沃移动通信有限公司 一种拍照方法及移动终端
CN110472199B (zh) * 2018-05-11 2023-10-27 成都野望数码科技有限公司 一种调整对象样式的方法及装置
CN108632413B (zh) * 2018-05-15 2019-12-03 维沃移动通信有限公司 一种拍照方法及移动终端
CN108650463B (zh) * 2018-05-15 2019-11-26 维沃移动通信有限公司 一种拍照方法及移动终端
CN108965699A (zh) * 2018-07-02 2018-12-07 珠海市魅族科技有限公司 拍摄对象的参数调整方法和装置、终端、可读存储介质
CN109257542A (zh) * 2018-11-21 2019-01-22 惠州Tcl移动通信有限公司 移动终端拍照实时修图处理方法、移动终端及存储介质
CN109462727B (zh) * 2018-11-23 2022-01-25 维沃移动通信有限公司 一种滤镜调整方法及移动终端
CN109348277B (zh) * 2018-11-29 2020-02-07 北京字节跳动网络技术有限公司 运动像素视频特效添加方法、装置、终端设备及存储介质
CN109998447B (zh) * 2019-02-20 2021-12-10 西安蓝极医疗电子科技有限公司 一种医用手术内窥镜成像系统对高能量可见光激光的滤光方法
CN112188114A (zh) * 2019-07-05 2021-01-05 北京小米移动软件有限公司 一种显示粒子特效的拍摄方法及装置
CN110519512B (zh) * 2019-08-16 2021-10-22 维沃移动通信有限公司 一种对象处理方法及终端
CN112672033A (zh) * 2019-10-15 2021-04-16 中兴通讯股份有限公司 图像处理方法及装置、存储介质、电子装置
WO2021244123A1 (en) * 2020-06-05 2021-12-09 Guangdong Oppo Mobile Telecommunications Corp., Ltd. A system and method of creating real-time intelligent media
CN112188058A (zh) * 2020-09-29 2021-01-05 努比亚技术有限公司 一种视频拍摄方法、移动终端以及计算机存储介质
CN112188260A (zh) * 2020-10-26 2021-01-05 咪咕文化科技有限公司 视频的分享方法、电子设备及可读存储介质
CN113068072A (zh) * 2021-03-30 2021-07-02 北京达佳互联信息技术有限公司 视频的播放方法、装置及设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872598A (zh) * 2009-04-24 2010-10-27 环达电脑(上海)有限公司 画面的局部放大装置及局部放大方法
CN102999261A (zh) * 2011-09-09 2013-03-27 索尼公司 图像处理设备、方法和程序
CN103226806A (zh) * 2013-04-03 2013-07-31 广东欧珀移动通信有限公司 一种图片局部放大的方法及相机系统

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101058026B1 (ko) * 2004-11-19 2011-08-19 삼성전자주식회사 선택된 프리뷰 이미지의 저장을 위한 디지털 촬영 장치의제어 방법, 및 이 방법을 채용한 디지털 촬영 장치
WO2008072374A1 (ja) * 2006-12-11 2008-06-19 Nikon Corporation 電子カメラ
CN100464569C (zh) * 2007-04-17 2009-02-25 北京中星微电子有限公司 对图像添加特效的方法和系统
CN101655649B (zh) * 2008-08-21 2011-03-23 佛山普立华科技有限公司 影像撷取装置及其闪光控制方法
US8289400B2 (en) * 2009-06-05 2012-10-16 Apple Inc. Image capturing device having continuous image capture
KR101105034B1 (ko) * 2010-02-09 2012-01-16 주식회사 팬택 촬영 기능을 보유한 단말기
US20130120602A1 (en) * 2011-11-14 2013-05-16 Microsoft Corporation Taking Photos With Multiple Cameras
CN103258024B (zh) * 2013-05-07 2016-06-15 百度在线网络技术(北京)有限公司 网页中图片局部内容的分享方法、系统和装置
KR20140137738A (ko) * 2013-05-23 2014-12-03 삼성전자주식회사 이미지 디스플레이 방법, 이미지 디스플레이 장치 및 기록 매체
WO2015049899A1 (ja) * 2013-10-01 2015-04-09 オリンパスイメージング株式会社 画像表示装置および画像表示方法
US9912860B2 (en) * 2016-06-12 2018-03-06 Apple Inc. User interface for camera effects

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872598A (zh) * 2009-04-24 2010-10-27 环达电脑(上海)有限公司 画面的局部放大装置及局部放大方法
CN102999261A (zh) * 2011-09-09 2013-03-27 索尼公司 图像处理设备、方法和程序
CN103226806A (zh) * 2013-04-03 2013-07-31 广东欧珀移动通信有限公司 一种图片局部放大的方法及相机系统

Also Published As

Publication number Publication date
CN104796594A (zh) 2015-07-22
US20160337593A1 (en) 2016-11-17
CN104796594B (zh) 2020-01-14

Similar Documents

Publication Publication Date Title
WO2015106508A1 (zh) 一种图像呈现方法、终端设备及计算机存储介质
KR101772177B1 (ko) 사진을 획득하기 위한 방법 및 장치
WO2019071613A1 (zh) 一种图像处理方法及装置
KR20180102626A (ko) 합성 장시간 노출에 대한 실시간 업데이트
US20130113940A1 (en) Imaging device and subject detection method
JP2011050038A (ja) 画像再生装置及び撮像装置
WO2022083229A1 (zh) 图像处理方法、电子装置及非易失性计算机可读存储介质
TW201011695A (en) Improved image formation using different resolution images
WO2016026466A1 (zh) 一种光绘图像的优化方法及装置
WO2022161260A1 (zh) 对焦方法、装置、电子设备及介质
EP2545411A1 (en) Panorama imaging
US20130076941A1 (en) Systems And Methods For Editing Digital Photos Using Surrounding Context
WO2018014517A1 (zh) 一种信息处理方法、装置及存储介质
EP2613520B1 (en) Apparatus and method of displaying camera view area in portable terminal
CN111201773A (zh) 拍摄方法及装置、移动终端及计算机可读存储介质
JP2015012481A (ja) 画像処理装置
US10447935B2 (en) Image generating apparatus, image generating method and computer readable recording medium for recording program for generating new image from images related to reference image
CN112529778B (zh) 多摄像头设备的图像拼接方法及装置、存储介质、终端
CN111586305B (zh) 防抖方法、防抖装置和电子设备
US10313619B2 (en) Photographing apparatus including an oscillator outputting an output signal based on which a first timing signal and a second timing signal are generated
TWI252044B (en) The projection device of photograph image and image processing method using the same and recorder media with recording program
CN104243806A (zh) 成像装置、信息显示方法和信息处理单元
US9774791B2 (en) Method and related camera device for generating pictures with object moving trace
JP2012065049A (ja) 画像処理装置及び画像処理方法
JP4983672B2 (ja) 撮像装置及びそのプログラム

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15110236

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14878601

Country of ref document: EP

Kind code of ref document: A1