WO2017016030A1 - 一种图像处理方法及终端 - Google Patents

一种图像处理方法及终端 Download PDF

Info

Publication number
WO2017016030A1
WO2017016030A1 PCT/CN2015/088481 CN2015088481W WO2017016030A1 WO 2017016030 A1 WO2017016030 A1 WO 2017016030A1 CN 2015088481 W CN2015088481 W CN 2015088481W WO 2017016030 A1 WO2017016030 A1 WO 2017016030A1
Authority
WO
WIPO (PCT)
Prior art keywords
display area
target display
feature information
pixel point
pixel
Prior art date
Application number
PCT/CN2015/088481
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 WO2017016030A1 publication Critical patent/WO2017016030A1/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
    • 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

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to an image processing method and a terminal.
  • the embodiment of the invention provides an image processing method and a terminal, which can flexibly select a special effect processing area, and effectively maintain the true color of the non-special effect processing area in the picture after the special effect processing.
  • a first aspect of the embodiments of the present invention provides an image processing method, including:
  • a second aspect of the embodiments of the present invention provides a terminal, including:
  • a first acquiring unit configured to acquire a preview image captured by the photographing device
  • a detecting unit configured to detect a touch operation input for the preview image
  • a determining unit configured to determine whether the touch operation meets a preset condition
  • a determining unit configured to determine a target display area from the preview image according to position information of the touched point of the touch operation when the determining unit determines that the touch operation satisfies the preset condition
  • a processing unit configured to perform special effect processing on the target display area according to the special effect processing operation input to the target display area, and generate a photographed picture.
  • the preview image captured by the photographing device can be obtained by the embodiment of the present invention, and the touch operation input for the preview image is detected, and whether the touch operation meets the preset condition is determined, and if the touch operation satisfies the preset condition, Position information of the touch point of the touch operation, determining a target display area from the preview image, and performing special effect processing on the target display area according to the special effect processing operation input for the target display area, and generating a photographed picture, which can be flexible Select the special effect processing area, and effectively maintain the true color of the non-special effect processing area in the picture after the special effect processing.
  • FIG. 1 is a schematic flow chart of a first embodiment of an image processing method according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of an image processing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a third embodiment of an image processing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a third embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in the embodiment of the present invention may include a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a palmtop computer, a mobile Internet device (MID, Mobile Internet Devices), etc., and the above terminal is only an example. , not exhaustive, including but not limited to the above terminals.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of an image processing method according to an embodiment of the present invention.
  • the image processing method described in this embodiment includes the following steps:
  • the terminal acquires a preview image captured by the photographing device.
  • the camera device may be a dual camera.
  • the feature parameters of the camera, the aperture, the focal length, the field of view, and the size of the camera may be the same or different, which is not limited in the embodiment of the present invention.
  • the camera device may also be a single camera.
  • a camera application that can call the camera device is installed on the terminal, and when the user opens the camera application, the terminal enables the camera device, and uses the camera device to capture the state of the camera object (including characters, animals, scenery, etc.) in real time.
  • the screen, and then the preview image of the photographed object is displayed on the preview interface of the camera application.
  • step S102 The terminal detects a touch operation input to the preview image, and determines whether the touch operation satisfies a preset condition. If yes, step S103 is performed, and if not, the current flow is ended.
  • the preset condition includes that the touch operation is any one of a long press operation and a slide operation, that is, a long press operation and a slide operation can be used as trigger conditions for triggering the terminal to perform special effect processing on the preview image.
  • the sliding operation in the embodiment of the present invention may surround the preview image by a sliding track.
  • the trigger condition is not limited to the long press operation and the slide operation, and the hovering gesture, the voice control operation, and the like can be used as the trigger condition.
  • the user may select, from the plurality of photographing objects included in the preview image, the target photographing object that the user wants to perform the special effect processing, that is, the target display area in the preview image.
  • the terminal acquires a touch operation input by the user through the touch panel, and determines whether the touch operation is any one of a long press operation and a slide operation, if the touch operation is a long press operation or one or more of the preview images in the circle If the sliding operation of the photographing object is performed, the terminal performs step S103; otherwise, the terminal ends the current flow.
  • the terminal if the touch operation is not a trigger condition for triggering the terminal to perform special effect processing on the preview image (including a long press operation or a sliding operation of one or more photographing objects in the preview image, etc.), the terminal The action that can be triggered by the touch operation can be performed.
  • the touch operation is an action of triggering the terminal to take a picture, and the terminal uses the camera device to capture the current state picture of the picture object, and generate a picture picture.
  • the touch panel may include a touch screen and a display screen, that is, the touch panel in the embodiment of the present invention may provide a touch operation to the user, and may also be used to display corresponding data information to the user.
  • the terminal determines, according to location information of the touched point of the touch operation, a target display area from the preview image.
  • the terminal first acquires location information of the touch point on the preview interface, and further determines, according to the location information, a target photographing object that the user wants to perform special effect processing, and acquires the target photographed object.
  • the target display area corresponding to the object for example, the photographing object is a flower and a grass, and the position of the touch point on the preview interface falls within the position range of the flower, and the terminal can determine that the target photographing object that the user wants to perform the special effect processing is a flower. Further, the terminal determines the display area occupied by the flower at the position of the touched point as the target display area.
  • the terminal may select the first photographing object corresponding to the position of the long press operation touch point when the user first presses the long press operation, and automatically select the first photographing object when the user presses the second long press operation. And displaying, in the preview image, a second photographing object whose feature similarity with the first photographing object reaches a preset value, and further determining a display area occupied by the first photographing object and the second photographing object as the target display area.
  • the feature of the first photographing object may specifically be characteristic information such as an RGB value, a grayscale value, and a color depth of pixels of the first photographing object.
  • the terminal may select the long press when the user presses the first time
  • the first photographing object corresponding to the position of the touch point is operated, and the subsequent user can continue to add the photographing object that wants to perform the special effect processing by short pressing operation, that is, when the terminal detects the short pressing operation input by the user, the short touch operation is selected.
  • the third photographing object corresponding to the position the user may input a short press operation to select a plurality of fourth photographing objects related or unrelated to the first photographing object and the third photographing object feature, and then the first photographing object and the third photographing object.
  • the display area occupied by the fourth photographing object is determined as the target display area.
  • the terminal first determines a sliding track formed by the sliding operation on the preview interface, and the photographing object surrounded by the sliding track is the first photographing object that the user wants to perform special effect processing.
  • the terminal may further determine, according to the sliding operation input by the user, the second photographing object to be subjected to the special effect processing, that is, the display area surrounded by the sliding track formed by the touch operation is the target display area.
  • the specific manner in which the terminal determines the target display area from the preview image according to the location information may be:
  • the terminal acquires feature information of a first pixel point corresponding to the touch point of the touch operation in the preview image, and acquires feature information of a second pixel point whose distance from the first pixel point is within a preset range;
  • the terminal determines a similarity between the feature information of the second pixel and the feature information of the first pixel;
  • the terminal sets, in the second pixel, a pixel whose similarity between the feature information and the feature information of the first pixel is greater than or equal to a preset first similarity threshold as a third pixel, and the A display area composed of the first pixel and the third pixel in the preview image is set as a target display area.
  • the terminal performs special effect processing on the target display area according to the special effect processing operation input to the target display area, and generates a photographed picture.
  • the special effect processing operation may include adjusting a color, adding a filter effect, and the like.
  • the terminal After the terminal determines the target display area that needs to be processed by the special effect according to the touch operation input by the user, the terminal obtains the effect type selected by the user, and adds the special effect corresponding to the effect type to the target display area, for example, changing the color and adding a filter. Effects, etc., to generate a photo image with user-set special effects.
  • the user may choose to add one or more special effects as needed, and the number of special effects added by the user is not limited in the embodiment of the present invention.
  • the user uses the dual camera of the terminal to take a picture of the scene, and the terminal displays the status picture of the scene captured by the dual camera in real time on the camera application interface, and detects the long press operation (or sliding operation) input by the user through the touch panel. Determining, according to the position information of the touch point of the long press operation, if the position of the touch point is within a display area of a flower, the terminal acquires the RGB value, the gray scale value, the color depth, and the like of the pixel points included in the touch point.
  • Characteristic information and the terminal further acquires feature information including pixel points in the preset distance range, and determines, from the pixels, that the similarity between the feature information and the feature information of the touch point including the pixel point is greater than Or all the pixels corresponding to the preset similarity threshold (such as 85%, 90%, etc.), and then the area composed of these pixels is determined as the display area corresponding to the flower, that is, the target display area.
  • the preset similarity threshold such as 85%, 90%, etc.
  • the terminal may perform special effects processing on the target display object (ie, the selected flower) according to the type of the effect selected by the user, and perform color processing and filtering processing on the flowers by using the image data sources respectively obtained by the dual cameras, for example, using one of the images.
  • the data source of the camera changes the color of the flower from the current red to yellow or color, and uses the data source of another camera to set the "morning" filter effect on the flower, and so on, and then the terminal controls the camera to obtain the camera.
  • the flowers are treated with special effects, while other areas maintain the original color of the scene.
  • the preview image captured by the photographing device can be obtained by the embodiment of the present invention, and the touch operation input for the preview image is detected, and whether the touch operation meets the preset condition is determined, and if the touch operation satisfies the preset condition, Position information of the touch point of the touch operation, determining a target display area from the preview image, and performing special effect processing on the target display area according to the special effect processing operation input for the target display area, and generating a photographed picture, which can be flexible
  • the special effect processing area is selected, and the real color of the non-special effect processing area in the picture is effectively maintained after the special effect processing, and the user's participation degree in the special effect processing on the picture is improved.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of an image processing method according to an embodiment of the present invention.
  • the image processing method described in this embodiment includes the following steps:
  • the terminal acquires a preview image captured by the photographing device.
  • the camera device may be a dual camera.
  • the feature parameters of the camera, the aperture, the focal length, the field of view, and the size of the camera may be the same or different, which is not limited in the embodiment of the present invention.
  • the camera device may also be a single camera.
  • a camera application that can call the camera device is installed on the terminal, and when the user opens the camera application, the terminal enables the camera device, and uses the camera device to capture the state of the camera object (including characters, animals, scenery, etc.) in real time.
  • the screen, and then the preview image of the photographed object is displayed on the preview interface of the camera application.
  • step S202 The terminal detects a touch operation input on the preview image, and determines whether the touch operation is any one of a long press operation and a slide operation. If yes, step S203 is performed, and if not, the current flow is ended.
  • the long press operation and the sliding operation can be used as trigger conditions for triggering the terminal to perform special effects processing on the preview image.
  • the sliding operation in the embodiment of the present invention may be an operation in which a sliding track surrounds one or more photographing objects in the preview image.
  • the trigger condition is not limited to the long press operation and the slide operation, and the hovering gesture, the voice control operation, and the like can be used as the trigger condition.
  • the user may select, from the plurality of photographing objects included in the preview image, the target photographing object that the user wants to perform the special effect processing, that is, the target display area in the preview image.
  • the terminal acquires a touch operation input by the user through the touch panel, and determines whether the touch operation is any one of a long press operation and a slide operation, if the touch operation is a long press operation or one or more of the preview images in the circle If the sliding operation of the photographing object is performed, the terminal performs step S203; otherwise, the terminal ends the current flow.
  • the terminal An action that can be triggered by the touch operation can be performed.
  • the touch operation is an action of triggering the terminal to adjust the focal length.
  • the touch operation is that the two fingers of the user are close to each other, the terminal reduces the focal length, and the range of the preview image is increased. Seeing a larger scene; when the touch operation is such that the user's two fingers are far apart from each other, the terminal increases the focal length, the preview image contains a reduced range, and the details of the foreground are more clear.
  • the touch panel may include a touch screen and a display screen, that is, the touch panel in the embodiment of the present invention may provide a touch operation to the user, and may also be used to display corresponding data information to the user.
  • the terminal acquires feature information of a first pixel point corresponding to the touch point of the touch operation in the preview image, and acquires feature information of a second pixel point whose distance from the first pixel point is within a preset range. .
  • the feature information includes one or more of an RGB value, a grayscale value, and a color depth.
  • the terminal in order to determine a display range occupied by the photographing object in the preview image, the terminal is provided with a pixel point selection range centered on the reference pixel point, and the terminal first acquires the touch point corresponding to the first pixel point of the touch operation in the preview image.
  • Feature information such as RGB value, grayscale value, and color depth, thereby determining a second pixel point centered on the first pixel point and selected from the first pixel point at a preset pixel point, and acquiring the second pixel point Characteristic information for each pixel.
  • the terminal determines a similarity between the feature information of the second pixel and the feature information of the first pixel.
  • the terminal determines the similarity between the feature information of each pixel included in the second pixel and the feature information of the first pixel by comparing information such as RGB value, grayscale value, and color depth.
  • S205 The terminal sets, in the second pixel, a pixel whose similarity between the feature information and the feature information of the first pixel is greater than or equal to a preset first similarity threshold as a third pixel, and A display area composed of the first pixel point and the third pixel point in the preview image is set as a target display area.
  • all the pixels constituting the same photographic subject can be determined by determining the similarity between the pixels, that is, the terminal determines the feature information between the feature information and the first pixel in the second pixel.
  • a third pixel having a similarity greater than or equal to a preset first similarity threshold eg, 85%, 90%, etc.
  • the target display area that is, the target photographed object selected by the user's touch operation.
  • the photographing device is a dual camera
  • the dual camera includes a first camera and a second camera
  • the terminal acquires a color conversion operation input to the target display region in the first image captured by the first camera, Adjusting a current color of the target display area in the first image to a target color included in the color conversion operation;
  • the terminal acquires a filter processing operation input to the target display area in the second image captured by the second camera, and adds the filter processing to the target display area in the second image.
  • the target filter effect included in the operation is included in the operation.
  • the camera device is a dual camera, and includes a first camera and a second camera.
  • the terminal can perform various special effects processing on the target display area by using a preview image of the camera object obtained by the dual camera, for example, capturing by using the first camera.
  • the first image of the photographed object to be adjusted, the target display area is adjusted
  • the color, using the second image captured by the second camera adds a filter effect to the target display area.
  • the terminal synthesizes the color-converted first image and the filter-processed second image to obtain a photographed picture.
  • the terminal synthesizes the image after the preview image special effect captured by the first camera and the second camera, and then takes a picture to obtain a picture with various special effects.
  • the user can only choose to add a special effect as needed, such as changing only the color of the target display area, or only adding a filter to the target display area, etc., and the number of special effects added by the user is not performed in the embodiment of the present invention. limited.
  • the touch operation for the preview image input captured by the photographing device can be detected by the embodiment of the present invention, and when the touch operation is any one of a long press operation and a slide operation, the touch of the touch operation in the preview image is acquired. Determining the feature information of the first pixel corresponding to the point, and the feature information of the second pixel in the preset range from the first pixel, determining the feature information and the first pixel in the second pixel The similarity between the feature information is greater than or equal to the third pixel point of the preset first similarity threshold, and the display area composed of the first pixel and the third pixel is set as the target display area; For the dual camera, including the first camera and the second camera, the image captured by the camera is respectively subjected to a color conversion operation and a filter processing operation on the target display area, and then the color-converted image and the filter are processed.
  • the image is synthesized and processed to obtain a special effect picture, which can flexibly select the special effect processing area and be effective after the special effect processing.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of an image processing method according to an embodiment of the present invention.
  • the image processing method described in this embodiment includes the following steps:
  • the terminal acquires a preview image captured by the photographing device.
  • the camera device may be a dual camera.
  • the feature parameters of the camera, the aperture, the focal length, the field of view, and the size of the camera may be the same or different, which is not limited in the embodiment of the present invention.
  • the camera device may also be a single camera.
  • a camera application that can call the camera device is installed on the terminal, and the camera is turned on by the user.
  • the terminal enables the photographing device, and uses the photographing device to capture a state image of the photographed object (including characters, animals, landscapes, etc.) in real time, and then displays a preview image of the photographed object on the preview interface of the camera application.
  • the terminal detects a touch operation input on the preview image, and determines whether the touch operation is any one of a long press operation and a slide operation. If yes, step S303 is performed, and if not, the current flow is ended.
  • the long press operation and the sliding operation can be used as trigger conditions for triggering the terminal to perform special effects processing on the preview image.
  • the sliding operation in the embodiment of the present invention may be an operation in which a sliding track surrounds one or more photographing objects in the preview image.
  • the trigger condition is not limited to the long press operation and the slide operation, and the hovering gesture, the voice control operation, and the like can be used as the trigger condition.
  • the user may select, from the plurality of photographing objects included in the preview image, the target photographing object that the user wants to perform the special effect processing, that is, the target display area in the preview image.
  • the terminal acquires a touch operation input by the user through the touch panel, and determines whether the touch operation is any one of a long press operation and a slide operation, if the touch operation is a long press operation or one or more of the preview images in the circle If the sliding operation of the photographing object is performed, the terminal performs step S303; otherwise, the terminal ends the current flow.
  • the terminal determines a first photographing object corresponding to the touch point of the touch operation, and acquires feature information of the fourth pixel point included in the first photographing object.
  • the feature information includes one or more of an RGB value, a grayscale value, and a color depth.
  • the terminal acquires feature information of a fifth pixel included in the second photographing object, where the distance from the dual camera is within a preset distance, and determines the fifth pixel. The similarity between the feature information and the feature information of the fourth pixel.
  • the terminal can obtain the distance between the camera object and the dual camera through an algorithm, such as a triangulation algorithm, the terminal first determines the angle between the camera object and each camera in the dual camera, the distance between the two cameras is known, and the two cameras and the camera The object is composed of a triangle, and the vertical distance between the photographed object and the two cameras can be calculated according to the angle values of the two angles and the distance between the two cameras.
  • an algorithm such as a triangulation algorithm
  • the terminal is provided with a distance threshold ⁇ d, and the terminal first determines the distance D1 between the first camera object and the dual camera by using an algorithm such as triangulation, and further determines that the first camera object is centered on the framing picture, and the dual camera is a second photographing object at a distance D1+ ⁇ d, and acquiring the second photographing object package Characteristic information of the fifth pixel included.
  • the terminal determines the similarity between the feature information of each pixel point included in the fifth pixel point and the feature information of the fourth pixel point by comparing information such as RGB value, grayscale value, and color depth.
  • the terminal sets, in the fifth pixel, a pixel point whose similarity between the feature information and the feature information of the fourth pixel point is greater than or equal to a preset second similarity threshold, as a sixth pixel point, and A display area composed of the fourth pixel point and the sixth pixel point in the preview image is set as a target display area.
  • all pixel points constituting the same photographing object may be determined by determining the similarity between the pixel points, that is, the terminal determines between the feature information and the feature information of the fourth pixel point in the fifth pixel point.
  • a sixth pixel point having a similarity greater than or equal to a preset second similarity threshold (eg, 85%, 90%, etc.) and setting a display area composed of the fourth pixel and the sixth pixel in the preview image
  • the target display area that is, the target photographed object selected by the user's touch operation.
  • the terminal adds a dotted frame to an edge of the target display area.
  • the terminal may add a mark such as a dotted frame or the like to the edge of the target display area, so that the user can confirm whether it completely matches the display area (ie, the photographed object) that he wants to select.
  • the terminal adjusts a position of the dotted frame according to a drag operation input to the dotted frame, and sets a display area surrounded by the dotted frame after the position adjustment as the target display area.
  • the terminal may adjust the position of the dotted frame according to the drag operation input by the user for the dotted frame, that is, the dotted frame.
  • the size of the display area included, and then the display area enclosed by the terminal after the dotted line frame is adjusted is set as the target display area (ie, the target photographing object that the user wants to perform special effects processing).
  • the terminal performs special effect processing on the target display area according to the special effect processing operation input to the target display area, and generates a photographed picture.
  • the special effect processing operation may include adjusting a color, adding a filter effect, and the like.
  • the terminal After the terminal determines the target display area that needs to be processed by the special effect according to the touch operation input by the user, the terminal obtains the effect type selected by the user, and adds the special effect corresponding to the effect type to the target display area, for example, changing the color and adding a filter. Effects, etc., to generate a photo image with user-set special effects.
  • the user can choose to add one or more special effects as needed, and add to the user.
  • the number of special effects is not limited in the embodiment of the present invention.
  • the touch operation for the preview image input captured by the photographing device can be detected by the embodiment of the present invention.
  • the touch operation is any one of a long press operation and a slide operation
  • the first touch point corresponding to the touch operation is acquired.
  • the display area composed of the point and the sixth pixel is set as the target display area;
  • the dotted line frame is added to the edge of the target display area, and the position of the dotted frame is adjusted according to the drag operation input to the dotted frame, and the position is adjusted
  • the display area surrounded by the broken line frame is set as the
  • FIG. 4 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes: a first obtaining unit 401, a detecting unit 402, a determining unit 403, a determining unit 404, and a processing unit 405, where:
  • the first obtaining unit 401 is configured to acquire a preview image captured by the photographing device.
  • the camera device may be a dual camera.
  • the feature parameters of the camera, the aperture, the focal length, the field of view, and the size of the camera may be the same or different, which is not limited in the embodiment of the present invention.
  • the camera device may also be a single camera.
  • the camera application that can call the camera device is installed on the terminal.
  • the first acquiring unit 401 enables the camera device, and uses the camera device to capture the camera object in real time (including characters, animals, and scenery).
  • the status screen of the camera, and then the preview image of the camera object is displayed on the preview interface of the camera application.
  • a detecting unit 402 configured to detect a touch operation input for the preview image
  • the determining unit 403 is configured to determine whether the touch operation meets a preset condition.
  • the preset condition includes that the touch operation is any one of a long press operation and a slide operation, that is, a long press operation and a slide operation can be used as trigger conditions for triggering the terminal to perform special effect processing on the preview image.
  • the sliding operation in the embodiment of the present invention may be an operation in which a sliding track surrounds one or more photographing objects in the preview image.
  • the trigger condition is not limited to the long press operation and the slide operation, and the hovering gesture, the voice control operation, and the like can be used as the trigger condition.
  • the user may select, from the plurality of photographing objects included in the preview image, the target photographing object that the user wants to perform the special effect processing, that is, the target display area in the preview image.
  • the detecting unit 402 acquires a touch operation input by the user through the touch panel, and the determining unit 403 determines whether the touch operation is any one of a long press operation and a slide operation.
  • the determining unit 404 is configured to determine, from the preview image, the target display area according to the position information of the touched point of the touch operation when the determining unit determines that the touch operation satisfies the preset condition.
  • the determining unit 404 first acquires the location information of the touch point on the preview interface, and further determines, according to the location information, the target photo that the user wants to perform the special effect processing. And determining, by the object, the target display area corresponding to the target photographing object, for example, the photographing object is a flower and a grass, and the position of the touch point on the preview interface falls within the range of the flower position, the determining unit 404 may determine that the user wants to perform The target photographing object of the special effect processing is a flower, and the determining unit 404 determines the display area occupied by the flower at the position of the touched point as the target display area.
  • the determining unit 404 may select the first photographing object corresponding to the position of the long press operation touch point when the user first presses the operation, and automatically when the user presses the second long press operation. And selecting, by the determining unit 404, the display area occupied by the first photographing object and the second photographing object as the target display area.
  • the feature of the first photographing object may specifically be characteristic information such as an RGB value, a grayscale value, and a color depth of pixels of the first photographing object.
  • the determining unit 404 may select the first photographing object corresponding to the position of the long-press operation touch point when the user first presses the long-press operation, and the subsequent user may continue to add the desired by short pressing operation.
  • the photographing object of the special effect processing that is, the detecting unit 402 detects the short pressing operation input by the user
  • the determining unit 404 selects the third photographing object corresponding to the position of the short pressing operation touch point
  • the user may input a short pressing operation to select a plurality of fourth photographing objects related or unrelated to the first photographing object and the third photographing object feature, and then the determining unit 404 sets the first photographing object, the third photographing object, and the fourth photographing object.
  • the occupied display area is determined as the target display area.
  • the determining unit 403 determines that the touch operation is a sliding operation
  • the determining unit 404 first determines a formed sliding track of the sliding operation on the preview interface, and the photographing object surrounded by the sliding track is that the user wants to perform a special effect.
  • the first photographing object to be processed, the determining unit 404 may further determine the second photographing object to be subjected to the special effect processing according to the sliding operation input by the user, that is, the display area surrounded by the sliding track formed by the touch operation is the target display area.
  • the specific manner of determining, by the determining unit 404, the target display area from the preview image according to the location information may be:
  • the terminal can perform an action that can be triggered by the touch operation. If the touch operation is an action that triggers the terminal to take a picture, the terminal uses the camera device to capture the current state picture of the picture object, and generates a picture picture.
  • the touch panel may include a touch screen and a display screen, that is, the touch panel in the embodiment of the present invention may provide a touch operation to the user, and may also be used to display corresponding data information to the user.
  • the processing unit 405 is configured to perform special effect processing on the target display area according to the special effect processing operation input for the target display area, and generate a photographed picture.
  • the special effect processing operation may include adjusting a color, adding a filter effect, and the like.
  • the processing unit 405 acquires the effect type selected by the user, and adds the special effect corresponding to the effect type to the target display area, for example, changing the color and increasing Filter effects, etc., which are generated with user settings Good special photo picture.
  • the user may choose to add one or more special effects as needed, and the number of special effects added by the user is not limited in the embodiment of the present invention.
  • the user takes a picture of the scene by using the dual camera of the terminal, and the first acquiring unit 401 displays the status picture of the scene captured by the dual camera in real time on the camera application interface, and the detection unit 402 detects the length input by the user through the touch panel.
  • the determining unit 404 determines the position information of the touch point of the long press operation, such as the position of the touch point is within the display area of a flower, and acquires the pixel points included in the touch point.
  • Feature information such as RGB value, grayscale value, and color depth
  • determining unit 404 based on the touch point, acquires feature information including pixel points within a preset distance range, and determines feature information and touch points from the pixel points.
  • the pixel with the similarity between the feature information of the pixel is greater than or equal to the preset similarity threshold (such as 85%, 90%, etc.), and the area composed of the pixels is determined as the display area corresponding to the flower. , that is, the target display area.
  • the processing unit 405 may perform special effect processing on the target display object (ie, the selected flower) according to the type of the effect selected by the user, and perform color processing and filtering processing on the flower by using the screen data source respectively obtained by the dual cameras, for example, processing.
  • the unit 405 uses the data source of one of the cameras to change the color of the flower from the current red to yellow or color, and the like, and uses the data source of the other camera to set the "morning" filter effect on the flower, and so on, and the processing unit 405 Control the dual camera to take pictures, get the flowers to be processed by special effects, and the other areas maintain the original color of the scene picture.
  • the preview image captured by the photographing device can be obtained by the embodiment of the present invention, and the touch operation input for the preview image is detected, and whether the touch operation meets the preset condition is determined, and if the touch operation satisfies the preset condition, Position information of the touch point of the touch operation, determining a target display area from the preview image, and performing special effect processing on the target display area according to the special effect processing operation input for the target display area, and generating a photographed picture, which can be flexible
  • the special effect processing area is selected, and the real color of the non-special effect processing area in the picture is effectively maintained after the special effect processing, and the user's participation degree in the special effect processing on the picture is improved.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes: a first acquiring unit 501, a detecting unit 502, a determining unit 503, a determining unit 504, and a processing unit 505, where:
  • the first obtaining unit 501 is configured to acquire a preview image captured by the photographing device.
  • the camera device may be a dual camera.
  • the feature parameters of the camera, the aperture, the focal length, the field of view, and the size of the camera may be the same or different, which is not limited in the embodiment of the present invention.
  • the camera device may also be a single camera.
  • the camera application that can call the camera device is installed on the terminal.
  • the first acquiring unit 501 enables the camera device, and uses the camera device to capture the camera object in real time (including characters, animals, and scenery).
  • the status screen of the camera, and then the preview image of the camera object is displayed on the preview interface of the camera application.
  • a detecting unit 502 configured to detect a touch operation input for the preview image
  • the determining unit 503 is configured to determine whether the touch operation is any one of a long press operation and a slide operation.
  • the long press operation and the sliding operation can be used as trigger conditions for triggering the terminal to perform special effects processing on the preview image.
  • the sliding operation in the embodiment of the present invention may be an operation in which a sliding track surrounds one or more photographing objects in the preview image.
  • the trigger condition is not limited to the long press operation and the slide operation, and the hovering gesture, the voice control operation, and the like can be used as the trigger condition.
  • the user may select, from the plurality of photographing objects included in the preview image, the target photographing object that the user wants to perform the special effect processing, that is, the target display area in the preview image.
  • the detecting unit 502 acquires a touch operation input by the user through the touch panel, and the determining unit 503 determines whether the touch operation is any one of a long press operation and a slide operation.
  • a determining unit 504 configured to: when the determining unit determines that the touch operation is any one of the long press operation and the sliding operation, acquire a touch point corresponding to the touch operation in the preview image Determining, by the feature information of the first pixel, the feature information of the second pixel in which the distance from the first pixel is within a preset range, determining the feature information of the second pixel and the first pixel And a similarity between the feature information, and the pixel in the second pixel, the similarity between the feature information and the feature information of the first pixel is greater than or equal to a preset first similarity threshold
  • a third pixel point is further set as a target display area by a display area composed of the first pixel point and the third pixel point in the preview image.
  • the feature information includes one or more of an RGB value, a grayscale value, and a color depth.
  • the terminal in order to determine a display range occupied by the photographing object in the preview image, the terminal is provided with a pixel point selection range centered on the reference pixel, and the determining unit 504 first acquires the touch pixel corresponding to the touch pixel in the preview image.
  • Feature information such as RGB value, grayscale value, and color depth of the point, thereby determining a second pixel point centered on the first pixel point and selecting a range from the first pixel point at the preset pixel point, and acquiring the second pixel
  • the feature information of each pixel included in the point The determining unit 504 determines the similarity between the feature information of each pixel point included in the second pixel point and the feature information of the first pixel point by comparing information such as RGB value, grayscale value, and color depth.
  • the determining unit 504 determines all the pixel points constituting the same photographing object by determining the similarity between the pixel points, that is, the determining unit 504 determines the feature information and the feature of the first pixel point in the second pixel point.
  • the similarity between the information is greater than or equal to a third pixel point of a preset first similarity threshold (eg, 85%, 90%, etc.), and the preview image is composed of the first pixel and the third pixel
  • the display area is set as the target display area, that is, the target photographed object selected by the user's touch operation.
  • the determining unit 503 determines that the touch operation is not a trigger condition for triggering the terminal to perform special effect processing on the preview image (including a long press operation or a sliding operation of one or more photographing objects in the preview image in the circle)
  • the terminal can perform an action that can be triggered by the touch operation, for example, the touch operation is an action of triggering the terminal to adjust the focal length, and the terminal reduces the focal length when the touch operation is that the two fingers of the user are close to each other, and the preview image includes The range becomes larger, and a larger scene can be seen; when the touch operation is that the two fingers of the user are away from each other, the terminal increases the focal length, the range of the preview image is reduced, and the details of the foreground are more clear.
  • the touch panel may include a touch screen and a display screen, that is, the touch panel in the embodiment of the present invention may provide a touch operation to the user, and may also be used to display corresponding data information to the user.
  • the processing unit 505 is configured to perform special effect processing on the target display area according to the special effect processing operation input to the target display area, and generate a photographed picture.
  • the camera device is a dual camera, and the dual camera includes a first camera and a second camera.
  • the processing unit 505 specifically includes a second acquiring unit 5050, a color converting unit 5051, a filter rendering unit 5052, and a synthesizing unit 5053. :
  • a second obtaining unit 5050 configured to acquire a color conversion operation input to the target display area in the first image captured by the first camera
  • a color transform unit 5051 configured to adjust a current color of the target display area in the first image to a target color included in the color transform operation
  • the second obtaining unit 5050 is further configured to acquire a filter processing operation for the target display area input in the second image captured by the second camera;
  • the filter rendering unit 5052 is configured to add a target filter effect included in the filter processing operation to the target display area in the second image.
  • the camera device is a dual camera, including a first camera and a second camera
  • the processing unit 505 can perform various special effects processing, such as a color conversion unit, on the target display area by using a preview image of the camera object obtained by the dual camera.
  • the 5051 adjusts the color of the target display area according to the first image captured by the first camera by the second acquiring unit 5050
  • the filter rendering unit 5052 determines the photo object captured by the second camera according to the second acquiring unit 5050. Two images, adding filter effects to the target display area.
  • the synthesizing unit 5053 is configured to synthesize the color-converted first image and the filter-processed second image to obtain a photographed picture.
  • the synthesizing unit 5053 synthesizes the images after the preview image special effects captured by the first camera and the second camera, and then takes a photo to obtain a picture with various special effects.
  • the user can only choose to add a special effect as needed, such as changing only the color of the target display area, or only adding a filter to the target display area, etc., and the number of special effects added by the user is not performed in the embodiment of the present invention. limited.
  • the touch operation for the preview image input captured by the photographing device can be detected by the embodiment of the present invention, and when the touch operation is any one of a long press operation and a slide operation, the touch of the touch operation in the preview image is acquired. Determining the feature information of the first pixel corresponding to the point, and the feature information of the second pixel in the preset range from the first pixel, determining the feature information and the first pixel in the second pixel The similarity between the feature information is greater than or equal to the third pixel point of the preset first similarity threshold, and the display area composed of the first pixel and the third pixel is set as the target display area; For the dual camera, including the first camera and the second camera, the image captured by the camera is respectively subjected to a color conversion operation and a filter processing operation on the target display area, and then the color-converted image and the filter are processed.
  • the image is synthesized and processed to obtain a special effect picture, which can flexibly select the special effect processing area and be effective after the special effect processing.
  • FIG. 6 is a schematic structural diagram of a third embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes: a first obtaining unit 601, a detecting unit 602, a determining unit 603, a determining unit 604, an adding unit 605, an adjusting unit 606, and a processing unit 607, where:
  • the first obtaining unit 601 is configured to acquire a preview image captured by the photographing device.
  • the camera application that can call the camera device is installed on the terminal.
  • the first acquiring unit 601 activates the camera device, and uses the camera device to capture the camera object in real time (including characters, animals, and scenery).
  • the status screen of the camera, and then the preview image of the camera object is displayed on the preview interface of the camera application.
  • a detecting unit 602 configured to detect a touch operation input for the preview image
  • the determining unit 603 is configured to determine whether the touch operation is any one of a long press operation and a slide operation.
  • the long press operation and the sliding operation can be used as trigger conditions for triggering the terminal to perform special effects processing on the preview image.
  • the sliding operation in the embodiment of the present invention may be an operation in which a sliding track surrounds one or more photographing objects in the preview image.
  • the trigger condition is not limited to the long press operation and the slide operation, and the hovering gesture, the voice control operation, and the like can be used as the trigger condition.
  • the user may select, from the plurality of photographing objects included in the preview image, the target photographing object that the user wants to perform the special effect processing, that is, the target display area in the preview image.
  • the detecting unit 602 acquires a touch operation input by the user through the touch panel, and the determining unit 603 determines whether the touch operation is any one of a long press operation and a slide operation.
  • a determining unit 604 configured to: when the determining unit determines that the touch operation is any one of the long press operation and the sliding operation, determine a first photographing object corresponding to the touch point of the touch operation, Acquiring feature information of the fourth pixel included in the first photographing object, and acquiring a second photographing object included in the preset distance range centering on the first photographing object and having a distance from the dual camera Feature information of five pixels, and determining a similarity between the feature information of the fifth pixel and the feature information of the fourth pixel, and further, the feature information and the first pixel a pixel point having a similarity between the feature information of the four pixels is greater than or equal to a preset second similarity threshold, and is set as a sixth pixel, and the fourth pixel and the sixth are in the preview image.
  • the display area composed of pixels is set as the target display area.
  • the feature information includes one or more of an RGB value, a grayscale value, and a color depth.
  • the determining unit 604 can obtain the distance between the photographing object and the dual camera by an algorithm, such as a triangulation algorithm.
  • the determining unit 604 first determines the angle between the photographing object and each camera in the dual camera, and the distance between the two cameras is known.
  • the camera and the photographing object form a triangle, and the vertical distance between the photographed object and the two cameras can be calculated according to the angle values of the two angles and the distance between the two cameras.
  • the terminal is provided with a distance threshold ⁇ d.
  • the determining unit 603 determines that the touch operation is any one of a long press operation and a slide operation
  • the determining unit 604 determines the first photographing object corresponding to the touch point of the touch operation. And determining a distance D1 between the first photographing object and the dual camera by using an algorithm such as triangulation, and determining a second photographing object having a distance from the dual camera and having a distance of D1+ ⁇ d centered on the first photographing object in the viewfinder screen. And acquiring feature information of the fifth pixel point included in the second photographing object.
  • the determining unit 604 determines the similarity between the feature information of each pixel point included in the fifth pixel point and the feature information of the fourth pixel point by comparing information such as RGB value, grayscale value, and color depth. And determining all the pixels constituting the same photographing object by determining the similarity between the pixel points, that is, the determining unit 604 determines the feature information between the feature information and the fourth pixel point in the fifth pixel point.
  • the target display area that is, the target photographed object selected by the user's touch operation.
  • the adding unit 605 is configured to add a dotted frame to the edge of the target display area.
  • the adding unit 605 may add a mark such as a dotted line frame or the like to the edge of the target display area, so that the user can confirm whether it completely matches the display area (ie, the photographing object) that he wants to select.
  • the adjusting unit 606 is configured to adjust a position of the dotted frame according to a drag operation input to the dotted frame, and set a display area surrounded by the dotted frame after the position adjustment as the target display area.
  • the adjusting unit 606 may adjust the position of the dotted frame according to the drag operation input by the user for the dotted frame, that is, The size of the display area included in the dotted line frame, and the adjustment unit 606 sets the display area enclosed by the dotted line frame range as the target display area (ie, the target photographing object that the user wants to perform special effect processing).
  • the processing unit 607 is configured to perform special effect processing on the target display area according to the special effect processing operation input to the target display area, and generate a photographed picture.
  • the special effect processing operation may include adjusting a color, adding a filter effect, and the like.
  • the processing unit 607 acquires the special effect type selected by the user, and adds the special effect corresponding to the special effect type to the target display area, for example, changing the color and increasing Filter effects, etc., to generate a photo with the user set special effects.
  • the user may choose to add one or more special effects as needed, and the number of special effects added by the user is not limited in the embodiment of the present invention.
  • the touch operation for the preview image input captured by the photographing device can be detected by the embodiment of the present invention.
  • the touch operation is any one of a long press operation and a slide operation
  • the first touch point corresponding to the touch operation is acquired.
  • the display area composed of the point and the sixth pixel is set as the target display area;
  • the dotted line frame is added to the edge of the target display area, and the position of the dotted frame is adjusted according to the drag operation input to the dotted frame, and the position is adjusted
  • the display area surrounded by the broken line frame is set as the
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

提供了一种图像处理方法及终端,所述方法包括:获取利用拍照装置捕获到的预览图像;检测针对所述预览图像输入的触摸操作,并判断所述触摸操作是否满足预设条件;若所述触摸操作满足所述预设条件,则根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域;根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。可以灵活地选择特效处理区域,并在特效处理后有效保持图片中非特效处理区域的真实色彩。

Description

一种图像处理方法及终端 技术领域
本发明涉及图像处理技术领域,具体涉及一种图像处理方法及终端。
背景技术
目前,随着智能手机、平板电脑等移动终端配置的镜头像素越来越高,人们越来越喜欢通过这些移动终端拍照以记录生活点滴,并对拍照的图片进行特效处理,使得照片更加独特,富有创意,一般情况下人们都是通过移动终端上安装的相机应用的滤镜等功能实现对图片的特效处理,例如黑白、单色、铬黄、褪色、怀旧、岁月、冲印等丰富的滤镜特效选择。
然而,现有技术中,对图片添加滤镜等特效处理方案一般都是针对图片中所有区域进行处理,特效处理的区域过于单一,不够灵活,导致特效处理后的整个图片的色彩表现跟真实的对比都是有所改变,整个图片色彩不够真实。因此,如何提供一种更加灵活且能在特效处理后保持图片真实色彩的图片特效处理方式已成为亟待解决的问题。
发明内容
本发明实施例提供了一种图像处理方法及终端,可以灵活地选择特效处理区域,并在特效处理后有效保持图片中非特效处理区域的真实色彩。
本发明实施例第一方面提供了一种图像处理方法,包括:
获取利用拍照装置捕获到的预览图像;
检测针对所述预览图像输入的触摸操作,并判断所述触摸操作是否满足预设条件;
若所述触摸操作满足所述预设条件,则根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域;
根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。
本发明实施例第二方面提供了一种终端,包括:
第一获取单元,用于获取利用拍照装置捕获到的预览图像;
检测单元,用于检测针对所述预览图像输入的触摸操作;
判断单元,用于判断所述触摸操作是否满足预设条件;
确定单元,用于在所述判断单元判断出所述触摸操作满足所述预设条件时,根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域;
处理单元,用于根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。
通过本发明实施例可以获取利用拍照装置捕获到的预览图像,检测针对该预览图像输入的触摸操作,并判断该触摸操作是否满足预设条件,如果该触摸操作满足所述预设条件,则根据该触摸操作的触摸点的位置信息,从该预览图像中确定出目标显示区域,进而根据针对该目标显示区域输入的特效处理操作,对该目标显示区域进行特效处理,并生成拍照图片,可以灵活地选择特效处理区域,并在特效处理后有效保持图片中非特效处理区域的真实色彩。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种图像处理方法的第一实施例流程示意图;
图2是本发明实施例提供的一种图像处理方法的第二实施例流程示意图;
图3是本发明实施例提供的一种图像处理方法的第三实施例流程示意图;
图4是本发明实施例提供的一种终端的第一实施例结构示意图;
图5是本发明实施例提供的一种终端的第二实施例结构示意图;
图6是本发明实施例提供的一种终端的第三实施例结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例中所描述的终端可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、移动互联网设备(MID,Mobile Internet Devices)等,上述终端仅是举例,而非穷举,包含但不限于上述终端。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”、“第五”和“第六”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
请参阅图1,为本发明实施例提供的一种图像处理方法的第一实施例流程示意图。本实施例中所描述的图像处理方法,包括以下步骤:
S101、终端获取利用拍照装置捕获到的预览图像。
其中,该拍照装置可为双摄像头,该双摄像头中每个摄像头的像素、光圈、焦距、视场角、尺寸等特征参数可以相同,也可以不同,本发明实施例不做限定。
需要说明的是,在一些可行的实施方式中,该拍照装置也可为单摄像头。
具体的,终端上安装有可调用该拍照装置的相机应用,在用户打开该相机应用时,终端启用该拍照装置,并利用该拍照装置实时捕获拍照对象(包括人物、动物、风景等)的状态画面,进而在该相机应用的预览界面上展示该拍照对象的预览图像。
S102、终端检测针对所述预览图像输入的触摸操作,并判断所述触摸操作是否满足预设条件,若是,则执行步骤S103,若否,则结束本次流程。
其中,该预设条件包括该触摸操作为长按操作和滑动操作中的任一种,即长按操作和滑动操作均可作为触发终端对预览图像进行特效处理的触发条件。
需要说明的是,本发明实施例中的滑动操作可为滑动轨迹包围该预览图像 中一个或者多个拍照对象的操作。
可以理解的是,触发条件并不仅限于长按操作和滑动操作,悬浮手势、语音控制操作等均可作为触发条件。
具体的,用户可从预览图像包含的多个拍照对象中选出自己想要进行特效处理的目标拍照对象,即该预览图像中的目标显示区域。终端获取用户通过触控面板输入的触摸操作,并判断该触摸操作是否是长按操作和滑动操作中的任意一种,如果该触摸操作是长按操作或者圈中该预览图像中一个或者多个拍照对象的滑动操作,则终端执行步骤S103,否则,终端结束本次流程。
在一些可行的实施方式中,如果该触摸操作不是触发终端对预览图像进行特效处理的触发条件(包括长按操作或者圈中该预览图像中一个或者多个拍照对象的滑动操作等),则终端可执行该触摸操作能够触发的动作,如该触摸操作是触发终端拍照的动作,则终端利用该拍照装置捕获拍照对象当前的状态画面,生成拍照图片。
需要说明的是,该触控面板可包括触摸屏和显示屏,即本发明实施例中的触控面板即可提供给用户进行触摸操作,还可用于向用户展现相应的数据信息。
S103、终端根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域。
具体的,如果该触摸操作是长按操作,则终端首先获取该触摸点在该预览界面上的位置信息,进而根据该位置信息确定用户想要进行特效处理的目标拍照对象,并获取该目标拍照对象对应的目标显示区域,例如拍照对象是花和草,该触摸点在该预览界面上的位置落入花的位置范围内,则终端可确定用户想要进行特效处理的目标拍照对象是花,进而终端将该触摸点位置上的花占据的显示区域确定为目标显示区域。
在一些可行的实施方式中,终端可在用户第一次长按操作时选中该次长按操作触摸点的位置对应的第一拍照对象,而在用户第二次长按操作时,自动选中该预览图像中与该第一拍照对象的特征相似度达到预设值的第二拍照对象,进而将第一拍照对象和第二拍照对象占据的显示区域确定为目标显示区域。
需要说明的是,该第一拍照对象的特征具体可为组成该第一拍照对象的像素点的RGB值、灰阶值和色彩深度等特征信息。
在一些可行的实施方式中,终端可在用户第一次长按操作时选中该次长按 操作触摸点的位置对应的第一拍照对象,后续用户可通过短按操作继续添加想要进行特效处理的拍照对象,即终端检测到用户输入的短按操作时,选中该短按操作触摸点的位置对应的第三拍照对象,用户可多次输入短按操作选中多个与第一拍照对象和第三拍照对象特征相关或者无关的第四拍照对象,进而将第一拍照对象、第三拍照对象和第四拍照对象占据的显示区域确定为目标显示区域。
进一步的,如果该触摸操作是滑动操作,则终端首先确定该滑动操作在该预览界面上的形成的滑动轨迹,该滑动轨迹包围的拍照对象即为用户想要进行特效处理的第一拍照对象,终端还可继续根据用户输入的滑动操作确定出要进行特效处理的第二拍照对象,即该触摸操作形成的滑动轨迹包围的显示区域即为目标显示区域。
在一些可行的实施方式中,终端根据该位置信息,从所述预览图像中确定出目标显示区域的具体方式可以为:
1031)终端获取该预览图像中该触摸操作的触摸点对应的第一像素点的特征信息,以及获取与该第一像素点的距离在预设范围内的第二像素点的特征信息;
1032)终端确定该第二像素点的特征信息与该第一像素点的特征信息之间的相似度;
1033)终端将该第二像素点中,特征信息与该第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值的像素点设为第三像素点,并将该预览图像中由该第一像素点和该第三像素点组成的显示区域设为目标显示区域。
S104、终端根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。
其中,该特效处理操作可包括调整颜色、添加滤镜效果等。
具体的,终端根据用户输入的触摸操作确定出需要进行特效处理的目标显示区域后,获取用户选择的特效类型,并对该目标显示区域添加该特效类型对应的特效,例如改变颜色、增加滤镜效果等,进而生成带有用户设置好特效的拍照图片。
需要说明的是,用户可根据需要选择添加一种或多种特效,对于用户添加的特效数量本发明实施例不做限定。
举例来说,用户利用终端的双摄像头对景物进行拍照,终端在相机应用界面实时展示双摄像头捕获到的景物的状态画面,在检测到用户通过触控面板输入的长按操作(或者滑动操作)时,确定该长按操作的触摸点的位置信息,如该触摸点的位置在一朵花的显示区域范围内,终端获取该触摸点包含的像素点的RGB值、灰阶值和色彩深度等特征信息,进而终端以该触摸点为中心,获取预设距离范围内包含像素点的特征信息,并从这些像素点中确定出特征信息与触摸点包含像素点的特征信息之间的相似度大于或等于预设相似度阈值(如85%、90%等)的所有像素点,进而将这些像素点组成的区域确定为这朵花对应的显示区域,即目标显示区域。
进一步的,终端可根据用户选择的特效类型对该目标显示对象(即选中的花朵)进行特效处理,分别利用双摄像头各自得到的画面数据源对花朵进行颜色处理和滤镜处理,例如利用其中一个摄像头的数据源将花朵的颜色由当前的红色改为黄色或者彩色等,以及利用另一个摄像头的数据源对该花朵设置“晨光”滤镜效果,等等,进而终端控制该双摄像头拍照,得到花朵经特效处理,而其它区域保持原有色彩的景物图片。
通过本发明实施例可以获取利用拍照装置捕获到的预览图像,检测针对该预览图像输入的触摸操作,并判断该触摸操作是否满足预设条件,如果该触摸操作满足所述预设条件,则根据该触摸操作的触摸点的位置信息,从该预览图像中确定出目标显示区域,进而根据针对该目标显示区域输入的特效处理操作,对该目标显示区域进行特效处理,并生成拍照图片,可以灵活地选择特效处理区域,并在特效处理后有效保持图片中非特效处理区域的真实色彩,提升了在对图片进行特效处理时用户的参与度。
请参阅图2,为本发明实施例提供的一种图像处理方法的第二实施例流程示意图。本实施例中所描述的图像处理方法,包括以下步骤:
S201、终端获取利用拍照装置捕获到的预览图像。
其中,该拍照装置可为双摄像头,该双摄像头中每个摄像头的像素、光圈、焦距、视场角、尺寸等特征参数可以相同,也可以不同,本发明实施例不做限定。
需要说明的是,在一些可行的实施方式中,该拍照装置也可为单摄像头。
具体的,终端上安装有可调用该拍照装置的相机应用,在用户打开该相机应用时,终端启用该拍照装置,并利用该拍照装置实时捕获拍照对象(包括人物、动物、风景等)的状态画面,进而在该相机应用的预览界面上展示该拍照对象的预览图像。
S202、终端检测针对所述预览图像输入的触摸操作,并判断所述触摸操作是否为长按操作和滑动操作中的任一种,若是,则执行步骤S203,若否,则结束本次流程。
其中,长按操作和滑动操作均可作为触发终端对预览图像进行特效处理的触发条件。
需要说明的是,本发明实施例中的滑动操作可为滑动轨迹包围该预览图像中一个或者多个拍照对象的操作。
可以理解的是,触发条件并不仅限于长按操作和滑动操作,悬浮手势、语音控制操作等均可作为触发条件。
具体的,用户可从预览图像包含的多个拍照对象中选出自己想要进行特效处理的目标拍照对象,即该预览图像中的目标显示区域。终端获取用户通过触控面板输入的触摸操作,并判断该触摸操作是否是长按操作和滑动操作中的任意一种,如果该触摸操作是长按操作或者圈中该预览图像中一个或者多个拍照对象的滑动操作,则终端执行步骤S203,否则,终端结束本次流程。
在一些可行的实施方式中,如果该触摸操作不是触发终端对预览图像进行特效处理的触发条件(包括长按操作或者圈中该预览图像中一个或者多个拍照对象的滑动操作等),则终端可执行该触摸操作能够触发的动作,如该触摸操作是触发终端调整焦距的动作,则在触摸操作为用户的两个手指相互靠近时终端将焦距调小,预览图像包含的范围变大,能看到更大的场景;在触摸操作为用户的两个手指相互远离时终端将焦距调大,预览图像包含的范围减小,远景的细节更加清楚。
需要说明的是,该触控面板可包括触摸屏和显示屏,即本发明实施例中的触控面板即可提供给用户进行触摸操作,还可用于向用户展现相应的数据信息。
S203、终端获取所述预览图像中所述触摸操作的触摸点对应的第一像素点的特征信息,以及获取与所述第一像素点的距离在预设范围内的第二像素点的特征信息。
其中,该特征信息包括RGB值、灰阶值和色彩深度中的一种或多种。
具体的,为确定拍照对象在预览图像中占据的显示范围,终端设有以参考像素点为中心的像素点选取范围,终端首先获取该预览图像中该触摸操作的触摸点对应第一像素点的RGB值、灰阶值和色彩深度等特征信息,进而确定以第一像素点为中心,距离该第一像素点在预设像素点选取范围的第二像素点,并获取该第二像素点包含的每一个像素点的特征信息。
S204、终端确定所述第二像素点的特征信息与所述第一像素点的特征信息之间的相似度。
具体的,终端通过比对RGB值、灰阶值和色彩深度等信息,确定该第二像素点包含的每一个像素点的特征信息与该第一像素点的特征信息之间的相似度。
S205、终端将所述第二像素点中,特征信息与所述第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值的像素点设为第三像素点,并将所述预览图像中由所述第一像素点和所述第三像素点组成的显示区域设为目标显示区域。
具体的,可通过判断像素点之间的相似度来确定出构成同一个拍照对象的所有像素点,即终端确定该第二像素点中,特征信息与该第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值(如85%、90%等)的第三像素点,并将该预览图像中由该第一像素点和该第三像素点组成的显示区域设为目标显示区域,即用户的触摸操作选中的目标拍照对象。
S206、所述拍照装置为双摄像头,所述双摄像头包括第一摄像头和第二摄像头,终端获取针对所述第一摄像头捕获到的第一图像中的所述目标显示区域输入的颜色变换操作,将所述第一图像中的所述目标显示区域的当前颜色调整为所述颜色变换操作包含的目标颜色;
S207、终端获取针对所述第二摄像头捕获到的第二图像中的所述目标显示区域输入的滤镜处理操作,并对所述第二图像中的所述目标显示区域添加所述滤镜处理操作包含的目标滤镜效果。
具体的,该拍照装置为双摄像头,包括第一摄像头和第二摄像头,终端可利用该双摄像头各自得到的拍照对象的预览图像对该目标显示区域进行多种特效处理,如利用第一摄像头捕获到的拍照对象的第一图像,调整目标显示区域 的颜色,利用第二摄像头捕获到的拍照对象的第二图像,对目标显示区域的添加滤镜特效。
S208、终端将颜色变换后的所述第一图像与滤镜处理后的所述第二图像进行合成处理,以得到拍照图片。
具体的,终端将第一摄像头和第二摄像头各自捕获的预览图像特效处理后的图像进行合成,进而拍照以得到具备多种特效的图片。
需要说明的是,用户可根据需要只选择添加一种特效,如只改变目标显示区域的颜色,或者只对目标显示区域添加滤镜,等等,对于用户添加的特效数量本发明实施例不做限定。
通过本发明实施例可以检测针对利用拍照装置捕获到的预览图像输入的触摸操作,在该触摸操作是否为长按操作和滑动操作中的任一种时,获取该预览图像中该触摸操作的触摸点对应的第一像素点的特征信息,以及与该第一像素点的距离在预设范围内的第二像素点的特征信息,确定该第二像素点中,特征信息与该第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值的第三像素点,进而将由该第一像素点和该第三像素点组成的显示区域设为目标显示区域;该拍照装置为双摄像头,包括第一摄像头和第二摄像头,利用该摄像头各自捕获到的图像对该目标显示区域分别进行颜色变换操作和滤镜处理操作,进而将颜色变换后的图像与滤镜处理后的图像进行合成处理,拍照后得到特效图片,可以灵活地选择特效处理区域,并在特效处理后有效保持图片中非特效处理区域的真实色彩,利用双摄像头的数据源进行特效的添加,提高了对图片添加特效时的处理速度。
请参阅图3,为本发明实施例提供的一种图像处理方法的第三实施例流程示意图。本实施例中所描述的图像处理方法,包括以下步骤:
S301、终端获取利用拍照装置捕获到的预览图像。
其中,该拍照装置可为双摄像头,该双摄像头中每个摄像头的像素、光圈、焦距、视场角、尺寸等特征参数可以相同,也可以不同,本发明实施例不做限定。
需要说明的是,在一些可行的实施方式中,该拍照装置也可为单摄像头。
具体的,终端上安装有可调用该拍照装置的相机应用,在用户打开该相机 应用时,终端启用该拍照装置,并利用该拍照装置实时捕获拍照对象(包括人物、动物、风景等)的状态画面,进而在该相机应用的预览界面上展示该拍照对象的预览图像。
S302、终端检测针对所述预览图像输入的触摸操作,并判断所述触摸操作是否为长按操作和滑动操作中的任一种,若是,则执行步骤S303,若否,则结束本次流程。
其中,长按操作和滑动操作均可作为触发终端对预览图像进行特效处理的触发条件。
需要说明的是,本发明实施例中的滑动操作可为滑动轨迹包围该预览图像中一个或者多个拍照对象的操作。
可以理解的是,触发条件并不仅限于长按操作和滑动操作,悬浮手势、语音控制操作等均可作为触发条件。
具体的,用户可从预览图像包含的多个拍照对象中选出自己想要进行特效处理的目标拍照对象,即该预览图像中的目标显示区域。终端获取用户通过触控面板输入的触摸操作,并判断该触摸操作是否是长按操作和滑动操作中的任意一种,如果该触摸操作是长按操作或者圈中该预览图像中一个或者多个拍照对象的滑动操作,则终端执行步骤S303,否则,终端结束本次流程。
S303、终端确定所述触摸操作的触摸点对应的第一拍照对象,获取所述第一拍照对象包含的第四像素点的特征信息。
其中,该特征信息包括RGB值、灰阶值和色彩深度中的一种或多种。
S304、终端获取以所述第一拍照对象为中心,与所述双摄像头的距离在预设距离范围内的第二拍照对象包含的第五像素点的特征信息,并确定所述第五像素点的特征信息与所述第四像素点的特征信息之间的相似度。
其中,终端可通过算法获取拍照对象与双摄像头的距离,如三角测距算法,终端首先确定拍照对象与双摄像头中每个摄像头的夹角,两个摄像头的距离已知,两个摄像头与拍照物体组成三角形,根据两个夹角的角度值以及两个摄像头之间的距离可计算出拍照对象与两个摄像头之间连线的垂直距离。
具体的,终端设有一距离阈值Δd,终端首先利用三角测距等算法确定第一拍照对象与双摄像头的距离D1,进而确定出取景画面中以该第一拍照对象为中心,与该双摄像头的距离在D1+Δd的第二拍照对象,并获取该第二拍照对象包 含的第五像素点的特征信息。
进一步的,终端通过比对RGB值、灰阶值和色彩深度等信息,确定该第五像素点包含的每一个像素点的特征信息与该第四像素点的特征信息之间的相似度。
S305、终端将所述第五像素点中,特征信息与所述第四像素点的特征信息之间的相似度大于或等于预设第二相似度阈值的像素点设为第六像素点,并将所述预览图像中由所述第四像素点和所述第六像素点组成的显示区域设为目标显示区域。
具体的,可通过判断像素点之间的相似度来确定出构成同一个拍照对象的所有像素点,即终端确定该第五像素点中,特征信息与该第四像素点的特征信息之间的相似度大于或等于预设第二相似度阈值(如85%、90%等)的第六像素点,并将该预览图像中由该第四像素点和该第六像素点组成的显示区域设为目标显示区域,即用户的触摸操作选中的目标拍照对象。
S306、终端将所述目标显示区域的边缘添加虚线框。
具体的,终端可在该目标显示区域的边缘添加虚线框等起指示作用的标记,便于用户确认是否与自己想要选择的显示区域(即拍照对象)完全匹配。
S307、终端根据针对所述虚线框输入的拖动操作,调整所述虚线框的位置,并将位置调整后的所述虚线框包围的显示区域设为所述目标显示区域。
具体的,如果该目标显示区域与用户想要选择的显示区域(即拍照对象)不完全匹配,则终端可根据用户针对该虚线框输入的拖动操作,调整该虚线框的位置,即虚线框包含的显示区域范围大小,进而终端将虚线框范围调整后包围的显示区域设为目标显示区域(即用户想要进行特效处理的目标拍照对象)。
S308、终端根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。
其中,该特效处理操作可包括调整颜色、添加滤镜效果等。
具体的,终端根据用户输入的触摸操作确定出需要进行特效处理的目标显示区域后,获取用户选择的特效类型,并对该目标显示区域添加该特效类型对应的特效,例如改变颜色、增加滤镜效果等,进而生成带有用户设置好特效的拍照图片。
需要说明的是,用户可根据需要选择添加一种或多种特效,对于用户添加 的特效数量本发明实施例不做限定。
通过本发明实施例可以检测针对利用拍照装置捕获到的预览图像输入的触摸操作,在该触摸操作是长按操作和滑动操作中的任一种时,获取该触摸操作的触摸点对应的第一拍照对象包含的第四像素点的特征信息,并获取以该第一拍照对象为中心,与双摄像头的距离在预设距离范围内的第二拍照对象包含的第五像素点的特征信息,进而确定出第五像素点中,特征信息与该第四像素点的特征信息之间的相似度大于或等于预设第二相似度阈值的第六像素点,将该预览图像中由该第四像素点和该第六像素点组成的显示区域设为目标显示区域;将该目标显示区域的边缘添加虚线框,根据针对该虚线框输入的拖动操作,调整该虚线框的位置,并将位置调整后的该虚线框包围的显示区域设为目标显示区域,进而根据针对该目标显示区域输入的特效处理操作,对该目标显示区域进行特效处理,生成拍照图片,可以灵活地选择特效处理区域,并在特效处理后有效保持图片中非特效处理区域的真实色彩,此外用户可调整要进行特效处理区域的大小,使得特效处理区域的选择更加准确,也提升了在对图片进行特效处理时用户的参与度。
请参阅图4,为本发明实施例提供的一种终端的第一实施例结构示意图。本实施例中所描述的终端,包括:第一获取单元401、检测单元402、判断单元403、确定单元404和处理单元405,其中:
第一获取单元401,用于获取利用拍照装置捕获到的预览图像。
其中,该拍照装置可为双摄像头,该双摄像头中每个摄像头的像素、光圈、焦距、视场角、尺寸等特征参数可以相同,也可以不同,本发明实施例不做限定。
需要说明的是,在一些可行的实施方式中,该拍照装置也可为单摄像头。
具体的,终端上安装有可调用该拍照装置的相机应用,在用户打开该相机应用时,第一获取单元401启用该拍照装置,并利用该拍照装置实时捕获拍照对象(包括人物、动物、风景等)的状态画面,进而在该相机应用的预览界面上展示该拍照对象的预览图像。
检测单元402,用于检测针对所述预览图像输入的触摸操作;
判断单元403,用于判断所述触摸操作是否满足预设条件。
其中,该预设条件包括该触摸操作为长按操作和滑动操作中的任一种,即长按操作和滑动操作均可作为触发终端对预览图像进行特效处理的触发条件。
需要说明的是,本发明实施例中的滑动操作可为滑动轨迹包围该预览图像中一个或者多个拍照对象的操作。
可以理解的是,触发条件并不仅限于长按操作和滑动操作,悬浮手势、语音控制操作等均可作为触发条件。
具体的,用户可从预览图像包含的多个拍照对象中选出自己想要进行特效处理的目标拍照对象,即该预览图像中的目标显示区域。检测单元402获取用户通过触控面板输入的触摸操作,由判断单元403判断该触摸操作是否是长按操作和滑动操作中的任意一种。
确定单元404,用于在所述判断单元判断出所述触摸操作满足所述预设条件时,根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域。
具体的,如果判断单元403判断出该触摸操作是长按操作,则确定单元404首先获取该触摸点在该预览界面上的位置信息,进而根据该位置信息确定用户想要进行特效处理的目标拍照对象,并获取该目标拍照对象对应的目标显示区域,例如拍照对象是花和草,该触摸点在该预览界面上的位置落入花的位置范围内,则确定单元404可确定用户想要进行特效处理的目标拍照对象是花,进而确定单元404将该触摸点位置上的花占据的显示区域确定为目标显示区域。
在一些可行的实施方式中,确定单元404可在用户第一次长按操作时选中该次长按操作触摸点的位置对应的第一拍照对象,而在用户第二次长按操作时,自动选中该预览图像中与该第一拍照对象的特征相似度达到预设值的第二拍照对象,进而确定单元404将第一拍照对象和第二拍照对象占据的显示区域确定为目标显示区域。
需要说明的是,该第一拍照对象的特征具体可为组成该第一拍照对象的像素点的RGB值、灰阶值和色彩深度等特征信息。
在一些可行的实施方式中,确定单元404可在用户第一次长按操作时选中该次长按操作触摸点的位置对应的第一拍照对象,后续用户可通过短按操作继续添加想要进行特效处理的拍照对象,即检测单元402检测到用户输入的短按操作时,确定单元404选中该短按操作触摸点的位置对应的第三拍照对象,用 户可多次输入短按操作选中多个与第一拍照对象和第三拍照对象特征相关或者无关的第四拍照对象,进而确定单元404将第一拍照对象、第三拍照对象和第四拍照对象占据的显示区域确定为目标显示区域。
进一步的,如果判断单元403判断出该触摸操作是滑动操作,则确定单元404首先确定该滑动操作在该预览界面上的形成的滑动轨迹,该滑动轨迹包围的拍照对象即为用户想要进行特效处理的第一拍照对象,确定单元404还可继续根据用户输入的滑动操作确定出要进行特效处理的第二拍照对象,即该触摸操作形成的滑动轨迹包围的显示区域即为目标显示区域。
在一些可行的实施方式中,确定单元404根据该位置信息,从所述预览图像中确定出目标显示区域的具体方式可以为:
11)获取该预览图像中该触摸操作的触摸点对应的第一像素点的特征信息,以及获取与该第一像素点的距离在预设范围内的第二像素点的特征信息;
12)确定该第二像素点的特征信息与该第一像素点的特征信息之间的相似度;
13)将该第二像素点中,特征信息与该第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值的像素点设为第三像素点,并将该预览图像中由该第一像素点和该第三像素点组成的显示区域设为目标显示区域。
在一些可行的实施方式中,如果判断单元403判断出该触摸操作不是触发终端对预览图像进行特效处理的触发条件(包括长按操作或者圈中该预览图像中一个或者多个拍照对象的滑动操作等),则终端可执行该触摸操作能够触发的动作,如该触摸操作是触发终端拍照的动作,则终端利用该拍照装置捕获拍照对象当前的状态画面,生成拍照图片。
需要说明的是,该触控面板可包括触摸屏和显示屏,即本发明实施例中的触控面板即可提供给用户进行触摸操作,还可用于向用户展现相应的数据信息。
处理单元405,用于根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。
其中,该特效处理操作可包括调整颜色、添加滤镜效果等。
具体的,处理单元405根据用户输入的触摸操作确定出需要进行特效处理的目标显示区域后,获取用户选择的特效类型,并对该目标显示区域添加该特效类型对应的特效,例如改变颜色、增加滤镜效果等,进而生成带有用户设置 好特效的拍照图片。
需要说明的是,用户可根据需要选择添加一种或多种特效,对于用户添加的特效数量本发明实施例不做限定。
举例来说,用户利用终端的双摄像头对景物进行拍照,第一获取单元401在相机应用界面实时展示双摄像头捕获到的景物的状态画面,在检测单元402检测到用户通过触控面板输入的长按操作(或者滑动操作)时,确定单元404确定该长按操作的触摸点的位置信息,如该触摸点的位置在一朵花的显示区域范围内,并获取该触摸点包含的像素点的RGB值、灰阶值和色彩深度等特征信息,进而确定单元404以该触摸点为中心,获取预设距离范围内包含像素点的特征信息,并从这些像素点中确定出特征信息与触摸点包含像素点的特征信息之间的相似度大于或等于预设相似度阈值(如85%、90%等)的所有像素点,并将这些像素点组成的区域确定为这朵花对应的显示区域,即目标显示区域。
进一步的,处理单元405可根据用户选择的特效类型对该目标显示对象(即选中的花朵)进行特效处理,分别利用双摄像头各自得到的画面数据源对花朵进行颜色处理和滤镜处理,例如处理单元405利用其中一个摄像头的数据源将花朵的颜色由当前的红色改为黄色或者彩色等,以及利用另一个摄像头的数据源对该花朵设置“晨光”滤镜效果,等等,进而处理单元405控制该双摄像头拍照,得到花朵经特效处理,而其它区域保持原有色彩的景物图片。
通过本发明实施例可以获取利用拍照装置捕获到的预览图像,检测针对该预览图像输入的触摸操作,并判断该触摸操作是否满足预设条件,如果该触摸操作满足所述预设条件,则根据该触摸操作的触摸点的位置信息,从该预览图像中确定出目标显示区域,进而根据针对该目标显示区域输入的特效处理操作,对该目标显示区域进行特效处理,并生成拍照图片,可以灵活地选择特效处理区域,并在特效处理后有效保持图片中非特效处理区域的真实色彩,提升了在对图片进行特效处理时用户的参与度。
请参阅图5,为本发明实施例提供的一种终端的第二实施例结构示意图。本实施例中所描述的终端,包括:第一获取单元501、检测单元502、判断单元503、确定单元504和处理单元505,其中:
第一获取单元501,用于获取利用拍照装置捕获到的预览图像。
其中,该拍照装置可为双摄像头,该双摄像头中每个摄像头的像素、光圈、焦距、视场角、尺寸等特征参数可以相同,也可以不同,本发明实施例不做限定。
需要说明的是,在一些可行的实施方式中,该拍照装置也可为单摄像头。
具体的,终端上安装有可调用该拍照装置的相机应用,在用户打开该相机应用时,第一获取单元501启用该拍照装置,并利用该拍照装置实时捕获拍照对象(包括人物、动物、风景等)的状态画面,进而在该相机应用的预览界面上展示该拍照对象的预览图像。
检测单元502,用于检测针对所述预览图像输入的触摸操作;
判断单元503,用于判断所述触摸操作是否为长按操作和滑动操作中的任一种。
其中,长按操作和滑动操作均可作为触发终端对预览图像进行特效处理的触发条件。
需要说明的是,本发明实施例中的滑动操作可为滑动轨迹包围该预览图像中一个或者多个拍照对象的操作。
可以理解的是,触发条件并不仅限于长按操作和滑动操作,悬浮手势、语音控制操作等均可作为触发条件。
具体的,用户可从预览图像包含的多个拍照对象中选出自己想要进行特效处理的目标拍照对象,即该预览图像中的目标显示区域。检测单元502获取用户通过触控面板输入的触摸操作,并由判断单元503判断该触摸操作是否是长按操作和滑动操作中的任意一种。
确定单元504,用于在所述判断单元判断出所述触摸操作为所述长按操作和所述滑动操作中的任一种时,获取所述预览图像中所述触摸操作的触摸点对应的第一像素点的特征信息,以及获取与所述第一像素点的距离在预设范围内的第二像素点的特征信息,确定所述第二像素点的特征信息与所述第一像素点的特征信息之间的相似度,并将所述第二像素点中,特征信息与所述第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值的像素点设为第三像素点,进而将所述预览图像中由所述第一像素点和所述第三像素点组成的显示区域设为目标显示区域。
其中,该特征信息包括RGB值、灰阶值和色彩深度中的一种或多种。
具体的,为确定拍照对象在预览图像中占据的显示范围,终端设有以参考像素点为中心的像素点选取范围,确定单元504首先获取该预览图像中该触摸操作的触摸点对应第一像素点的RGB值、灰阶值和色彩深度等特征信息,进而确定以第一像素点为中心,距离该第一像素点在预设像素点选取范围的第二像素点,并获取该第二像素点包含的每一个像素点的特征信息。确定单元504通过比对RGB值、灰阶值和色彩深度等信息,确定该第二像素点包含的每一个像素点的特征信息与该第一像素点的特征信息之间的相似度。
进一步的,确定单元504通过判断像素点之间的相似度来确定出构成同一个拍照对象的所有像素点,即确定单元504确定该第二像素点中,特征信息与该第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值(如85%、90%等)的第三像素点,并将该预览图像中由该第一像素点和该第三像素点组成的显示区域设为目标显示区域,即用户的触摸操作选中的目标拍照对象。
在一些可行的实施方式中,如果判断单元503判断出该触摸操作不是触发终端对预览图像进行特效处理的触发条件(包括长按操作或者圈中该预览图像中一个或者多个拍照对象的滑动操作等),则终端可执行该触摸操作能够触发的动作,如该触摸操作是触发终端调整焦距的动作,则在触摸操作为用户的两个手指相互靠近时终端将焦距调小,预览图像包含的范围变大,能看到更大的场景;在触摸操作为用户的两个手指相互远离时终端将焦距调大,预览图像包含的范围减小,远景的细节更加清楚。
需要说明的是,该触控面板可包括触摸屏和显示屏,即本发明实施例中的触控面板即可提供给用户进行触摸操作,还可用于向用户展现相应的数据信息。
处理单元505,用于根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。
所述拍照装置为双摄像头,所述双摄像头包括第一摄像头和第二摄像头,所述处理单元505具体包括第二获取单元5050、颜色变换单元5051、滤镜渲染单元5052和合成单元5053,其中:
第二获取单元5050,用于获取针对所述第一摄像头捕获到的第一图像中的所述目标显示区域输入的颜色变换操作;
颜色变换单元5051,用于将所述第一图像中的所述目标显示区域的当前颜色调整为所述颜色变换操作包含的目标颜色;
所述第二获取单元5050,还用于获取针对所述第二摄像头捕获到的第二图像中的所述目标显示区域输入的滤镜处理操作;
滤镜渲染单元5052,用于对所述第二图像中的所述目标显示区域添加所述滤镜处理操作包含的目标滤镜效果。
具体的,该拍照装置为双摄像头,包括第一摄像头和第二摄像头,处理单元505可利用该双摄像头各自得到的拍照对象的预览图像对该目标显示区域进行多种特效处理,如颜色变换单元5051根据第二获取单元5050利用第一摄像头捕获到的拍照对象的第一图像,调整目标显示区域的颜色,滤镜渲染单元5052根据第二获取单元5050利用第二摄像头捕获到的拍照对象的第二图像,对目标显示区域的添加滤镜特效。
合成单元5053,用于将颜色变换后的所述第一图像与滤镜处理后的所述第二图像进行合成处理,以得到拍照图片。
具体的,合成单元5053将第一摄像头和第二摄像头各自捕获的预览图像特效处理后的图像进行合成,进而拍照以得到具备多种特效的图片。
需要说明的是,用户可根据需要只选择添加一种特效,如只改变目标显示区域的颜色,或者只对目标显示区域添加滤镜,等等,对于用户添加的特效数量本发明实施例不做限定。
通过本发明实施例可以检测针对利用拍照装置捕获到的预览图像输入的触摸操作,在该触摸操作是否为长按操作和滑动操作中的任一种时,获取该预览图像中该触摸操作的触摸点对应的第一像素点的特征信息,以及与该第一像素点的距离在预设范围内的第二像素点的特征信息,确定该第二像素点中,特征信息与该第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值的第三像素点,进而将由该第一像素点和该第三像素点组成的显示区域设为目标显示区域;该拍照装置为双摄像头,包括第一摄像头和第二摄像头,利用该摄像头各自捕获到的图像对该目标显示区域分别进行颜色变换操作和滤镜处理操作,进而将颜色变换后的图像与滤镜处理后的图像进行合成处理,拍照后得到特效图片,可以灵活地选择特效处理区域,并在特效处理后有效保持图片中非特效处理区域的真实色彩,利用双摄像头的数据源进行特效的添加,提高了对图片添加特效时的处理速度。
请参阅图6,为本发明实施例提供的一种终端的第三实施例结构示意图。本实施例中所描述的终端,包括:第一获取单元601、检测单元602、判断单元603、确定单元604、添加单元605、调整单元606和处理单元607,其中:
第一获取单元601,用于获取利用拍照装置捕获到的预览图像。
具体的,终端上安装有可调用该拍照装置的相机应用,在用户打开该相机应用时,第一获取单元601启用该拍照装置,并利用该拍照装置实时捕获拍照对象(包括人物、动物、风景等)的状态画面,进而在该相机应用的预览界面上展示该拍照对象的预览图像。
检测单元602,用于检测针对所述预览图像输入的触摸操作;
判断单元603,用于判断所述触摸操作是否为长按操作和滑动操作中的任一种。
其中,长按操作和滑动操作均可作为触发终端对预览图像进行特效处理的触发条件。
需要说明的是,本发明实施例中的滑动操作可为滑动轨迹包围该预览图像中一个或者多个拍照对象的操作。
可以理解的是,触发条件并不仅限于长按操作和滑动操作,悬浮手势、语音控制操作等均可作为触发条件。
具体的,用户可从预览图像包含的多个拍照对象中选出自己想要进行特效处理的目标拍照对象,即该预览图像中的目标显示区域。检测单元602获取用户通过触控面板输入的触摸操作,并由判断单元603判断该触摸操作是否是长按操作和滑动操作中的任意一种。
确定单元604,用于在所述判断单元判断出所述触摸操作为所述长按操作和所述滑动操作中的任一种时,确定所述触摸操作的触摸点对应的第一拍照对象,获取所述第一拍照对象包含的第四像素点的特征信息,以及获取以所述第一拍照对象为中心,与所述双摄像头的距离在预设距离范围内的第二拍照对象包含的第五像素点的特征信息,并确定所述第五像素点的特征信息与所述第四像素点的特征信息之间的相似度,进而将所述第五像素点中,特征信息与所述第四像素点的特征信息之间的相似度大于或等于预设第二相似度阈值的像素点设为第六像素点,并将所述预览图像中由所述第四像素点和所述第六像素点组成的显示区域设为目标显示区域。
其中,该特征信息包括RGB值、灰阶值和色彩深度中的一种或多种。
其中,确定单元604可通过算法获取拍照对象与双摄像头的距离,如三角测距算法,确定单元604首先确定拍照对象与双摄像头中每个摄像头的夹角,两个摄像头的距离已知,两个摄像头与拍照物体组成三角形,根据两个夹角的角度值以及两个摄像头之间的距离可计算出拍照对象与两个摄像头之间连线的垂直距离。
具体的,终端设有一距离阈值Δd,在判断单元603判断出该触摸操作为长按操作和滑动操作中的任一种时,确定单元604确定所述触摸操作的触摸点对应的第一拍照对象,并利用三角测距等算法确定第一拍照对象与双摄像头的距离D1,进而确定出取景画面中以该第一拍照对象为中心,与该双摄像头的距离在D1+Δd的第二拍照对象,并获取该第二拍照对象包含的第五像素点的特征信息。
进一步的,确定单元604通过比对RGB值、灰阶值和色彩深度等信息,确定该第五像素点包含的每一个像素点的特征信息与该第四像素点的特征信息之间的相似度,进而通过判断像素点之间的相似度来确定出构成同一个拍照对象的所有像素点,即确定单元604确定该第五像素点中,特征信息与该第四像素点的特征信息之间的相似度大于或等于预设第二相似度阈值(如85%、90%等)的第六像素点,并将该预览图像中由该第四像素点和该第六像素点组成的显示区域设为目标显示区域,即用户的触摸操作选中的目标拍照对象。
添加单元605,用于将所述目标显示区域的边缘添加虚线框。
具体的,添加单元605可在该目标显示区域的边缘添加虚线框等起指示作用的标记,便于用户确认是否与自己想要选择的显示区域(即拍照对象)完全匹配。
调整单元606,用于根据针对所述虚线框输入的拖动操作,调整所述虚线框的位置,并将位置调整后的所述虚线框包围的显示区域设为所述目标显示区域。
具体的,如果该目标显示区域与用户想要选择的显示区域(即拍照对象)不完全匹配,则调整单元606可根据用户针对该虚线框输入的拖动操作,调整该虚线框的位置,即虚线框包含的显示区域范围大小,进而调整单元606将虚线框范围调整后包围的显示区域设为目标显示区域(即用户想要进行特效处理的目标拍照对象)。
处理单元607,用于根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。
其中,该特效处理操作可包括调整颜色、添加滤镜效果等。
具体的,处理单元607根据用户输入的触摸操作确定出需要进行特效处理的目标显示区域后,获取用户选择的特效类型,并对该目标显示区域添加该特效类型对应的特效,例如改变颜色、增加滤镜效果等,进而生成带有用户设置好特效的拍照图片。
需要说明的是,用户可根据需要选择添加一种或多种特效,对于用户添加的特效数量本发明实施例不做限定。
通过本发明实施例可以检测针对利用拍照装置捕获到的预览图像输入的触摸操作,在该触摸操作是长按操作和滑动操作中的任一种时,获取该触摸操作的触摸点对应的第一拍照对象包含的第四像素点的特征信息,并获取以该第一拍照对象为中心,与双摄像头的距离在预设距离范围内的第二拍照对象包含的第五像素点的特征信息,进而确定出第五像素点中,特征信息与该第四像素点的特征信息之间的相似度大于或等于预设第二相似度阈值的第六像素点,将该预览图像中由该第四像素点和该第六像素点组成的显示区域设为目标显示区域;将该目标显示区域的边缘添加虚线框,根据针对该虚线框输入的拖动操作,调整该虚线框的位置,并将位置调整后的该虚线框包围的显示区域设为目标显示区域,进而根据针对该目标显示区域输入的特效处理操作,对该目标显示区域进行特效处理,生成拍照图片,可以灵活地选择特效处理区域,并在特效处理后有效保持图片中非特效处理区域的真实色彩,此外用户可调整要进行特效处理区域的大小,使得特效处理区域的选择更加准确,也提升了在对图片进行特效处理时用户的参与度。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,简称RAM)等。
以上对本发明实施例所提供的一种图像处理方法及终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (14)

  1. 一种图像处理方法,其特征在于,包括:
    获取利用拍照装置捕获到的预览图像;
    检测针对所述预览图像输入的触摸操作,并判断所述触摸操作是否满足预设条件;
    若所述触摸操作满足所述预设条件,则根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域;
    根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。
  2. 根据权利要求1所述的方法,其特征在于,所述判断所述触摸操作是否满足预设条件,包括:
    判断所述触摸操作是否为长按操作和滑动操作中的任一种。
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域,包括:
    获取所述预览图像中所述触摸操作的触摸点对应的第一像素点的特征信息,以及获取与所述第一像素点的距离在预设范围内的第二像素点的特征信息;
    确定所述第二像素点的特征信息与所述第一像素点的特征信息之间的相似度;
    将所述第二像素点中,特征信息与所述第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值的像素点设为第三像素点,并将所述预览图像中由所述第一像素点和所述第三像素点组成的显示区域设为目标显示区域。
  4. 根据权利要求1或2所述的方法,其特征在于,所述拍照装置为双摄像头,所述根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域,包括:
    确定所述触摸操作的触摸点对应的第一拍照对象,获取所述第一拍照对象包含的第四像素点的特征信息;
    获取以所述第一拍照对象为中心,与所述双摄像头的距离在预设距离范围内的第二拍照对象包含的第五像素点的特征信息;
    确定所述第五像素点的特征信息与所述第四像素点的特征信息之间的相似度;
    将所述第五像素点中,特征信息与所述第四像素点的特征信息之间的相似度大于或等于预设第二相似度阈值的像素点设为第六像素点,并将所述预览图像中由所述第四像素点和所述第六像素点组成的显示区域设为目标显示区域。
  5. 根据权利要求3或4所述的方法,其特征在于,
    所述特征信息包括RGB值、灰阶值和色彩深度中的一种或多种。
  6. 根据权利要求1~5中任一项所述的方法,其特征在于,所述根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域之后,还包括:
    将所述目标显示区域的边缘添加虚线框;
    根据针对所述虚线框输入的拖动操作,调整所述虚线框的位置,并将位置调整后的所述虚线框包围的显示区域设为所述目标显示区域。
  7. 根据权利要求1所述的方法,其特征在于,所述拍照装置为双摄像头,所述双摄像头包括第一摄像头和第二摄像头,所述根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片,包括:
    获取针对所述第一摄像头捕获到的第一图像中的所述目标显示区域输入的颜色变换操作,将所述第一图像中的所述目标显示区域的当前颜色调整为所述颜色变换操作包含的目标颜色;
    获取针对所述第二摄像头捕获到的第二图像中的所述目标显示区域输入的滤镜处理操作,并对所述第二图像中的所述目标显示区域添加所述滤镜处理操作包含的目标滤镜效果;
    将颜色变换后的所述第一图像与滤镜处理后的所述第二图像进行合成处理,以得到拍照图片。
  8. 一种终端,其特征在于,包括:
    第一获取单元,用于获取利用拍照装置捕获到的预览图像;
    检测单元,用于检测针对所述预览图像输入的触摸操作;
    判断单元,用于判断所述触摸操作是否满足预设条件;
    确定单元,用于在所述判断单元判断出所述触摸操作满足所述预设条件时,根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域;
    处理单元,用于根据针对所述目标显示区域输入的特效处理操作,对所述目标显示区域进行特效处理,并生成拍照图片。
  9. 根据权利要求8所述的终端,其特征在于,所述判断单元判断所述触摸操作是否满足预设条件的具体方式为:
    判断所述触摸操作是否为长按操作和滑动操作中的任一种。
  10. 根据权利要求8或9所述的终端,其特征在于,所述确定单元根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域的具体方式为:
    获取所述预览图像中所述触摸操作的触摸点对应的第一像素点的特征信息,以及获取与所述第一像素点的距离在预设范围内的第二像素点的特征信息;
    确定所述第二像素点的特征信息与所述第一像素点的特征信息之间的相似度;
    将所述第二像素点中,特征信息与所述第一像素点的特征信息之间的相似度大于或等于预设第一相似度阈值的像素点设为第三像素点,并将所述预览图像中由所述第一像素点和所述第三像素点组成的显示区域设为目标显示区域。
  11. 根据权利要求8或9所述的终端,其特征在于,所述确定单元根据所述触摸操作的触摸点的位置信息,从所述预览图像中确定出目标显示区域的具体方式为:
    确定所述触摸操作的触摸点对应的第一拍照对象,获取所述第一拍照对象 包含的第四像素点的特征信息;
    获取以所述第一拍照对象为中心,与所述双摄像头的距离在预设距离范围内的第二拍照对象包含的第五像素点的特征信息;
    确定所述第五像素点的特征信息与所述第四像素点的特征信息之间的相似度;
    将所述第五像素点中,特征信息与所述第四像素点的特征信息之间的相似度大于或等于预设第二相似度阈值的像素点设为第六像素点,并将所述预览图像中由所述第四像素点和所述第六像素点组成的显示区域设为目标显示区域。
  12. 根据权利要求10或11所述的终端,其特征在于,
    所述特征信息包括RGB值、灰阶值和色彩深度中的一种或多种。
  13. 根据权利要求8~12中任一项所述的终端,其特征在于,还包括:
    添加单元,用于将所述目标显示区域的边缘添加虚线框;
    调整单元,用于根据针对所述虚线框输入的拖动操作,调整所述虚线框的位置,并将位置调整后的所述虚线框包围的显示区域设为所述目标显示区域。
  14. 根据权利要求8所述的终端,其特征在于,所述拍照装置为双摄像头,所述双摄像头包括第一摄像头和第二摄像头,所述处理单元包括:
    第二获取单元,用于获取针对所述第一摄像头捕获到的第一图像中的所述目标显示区域输入的颜色变换操作;
    颜色变换单元,用于将所述第一图像中的所述目标显示区域的当前颜色调整为所述颜色变换操作包含的目标颜色;
    所述第二获取单元,还用于获取针对所述第二摄像头捕获到的第二图像中的所述目标显示区域输入的滤镜处理操作;
    滤镜渲染单元,用于对所述第二图像中的所述目标显示区域添加所述滤镜处理操作包含的目标滤镜效果;
    合成单元,用于将颜色变换后的所述第一图像与滤镜处理后的所述第二图像进行合成处理,以得到拍照图片。
PCT/CN2015/088481 2015-07-30 2015-08-30 一种图像处理方法及终端 WO2017016030A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510459376.3A CN105554364A (zh) 2015-07-30 2015-07-30 一种图像处理方法及终端
CN201510459376.3 2015-07-30

Publications (1)

Publication Number Publication Date
WO2017016030A1 true WO2017016030A1 (zh) 2017-02-02

Family

ID=55833285

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088481 WO2017016030A1 (zh) 2015-07-30 2015-08-30 一种图像处理方法及终端

Country Status (2)

Country Link
CN (1) CN105554364A (zh)
WO (1) WO2017016030A1 (zh)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948543A (zh) * 2017-11-16 2018-04-20 北京奇虎科技有限公司 一种视频特效处理方法及装置
CN109785226A (zh) * 2018-12-28 2019-05-21 维沃移动通信有限公司 一种图像处理方法、装置及终端设备
CN110222682A (zh) * 2019-06-06 2019-09-10 天津艾思科尔科技有限公司 一种基于多特征的行人目标检测系统
CN110737276A (zh) * 2019-11-06 2020-01-31 深圳前海达闼云端智能科技有限公司 预警方法、巡逻机器人及计算机可读存储介质
EP3767939A4 (en) * 2018-03-15 2021-03-24 Vivo Mobile Communication Co., Ltd. PHOTOGRAPHY PROCESS, AND MOBILE TERMINAL
CN112987906A (zh) * 2021-03-26 2021-06-18 北京小米移动软件有限公司 一种降低显示功耗的方法和装置
CN113873168A (zh) * 2021-10-27 2021-12-31 维沃移动通信有限公司 拍摄方法、装置、电子设备及介质
CN114329221A (zh) * 2021-12-31 2022-04-12 钻技(上海)信息科技有限公司 一种商品搜索方法、设备及存储介质
CN114390193A (zh) * 2021-12-06 2022-04-22 北京达佳互联信息技术有限公司 图像处理方法、装置、电子设备及存储介质
WO2022143386A1 (zh) * 2020-12-30 2022-07-07 维沃移动通信(杭州)有限公司 拍摄方法、拍摄装置、电子设备和介质
CN115484386A (zh) * 2021-06-16 2022-12-16 荣耀终端有限公司 一种视频拍摄方法及电子设备

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017224970A (ja) * 2016-06-15 2017-12-21 ソニー株式会社 画像処理装置、画像処理方法、および撮像装置
CN107734214A (zh) * 2016-08-10 2018-02-23 宁波舜宇光电信息有限公司 具有不同大小光圈的多摄像头模组及其应用
CN106331482A (zh) * 2016-08-23 2017-01-11 努比亚技术有限公司 一种照片处理装置和方法
CN106791016A (zh) * 2016-11-29 2017-05-31 努比亚技术有限公司 一种拍照方法及终端
CN106506962A (zh) * 2016-11-29 2017-03-15 维沃移动通信有限公司 一种图像处理方法及移动终端
CN106791402A (zh) * 2016-12-23 2017-05-31 宇龙计算机通信科技(深圳)有限公司 一种移动终端拍照方法和终端
CN106941589A (zh) * 2017-03-30 2017-07-11 努比亚技术有限公司 取景拍照方法及装置
CN107194963A (zh) * 2017-04-28 2017-09-22 努比亚技术有限公司 一种双摄像头图像处理方法及终端
CN107315529B (zh) * 2017-06-19 2020-05-26 维沃移动通信有限公司 一种拍照方法及移动终端
CN107734248A (zh) * 2017-09-14 2018-02-23 维沃移动通信有限公司 一种拍摄模式启动方法及移动终端
CN107784629B (zh) * 2017-11-24 2021-10-15 努比亚技术有限公司 全景照片滤镜处理方法及移动终端
CN107948530B (zh) * 2017-12-28 2020-07-28 努比亚技术有限公司 一种图像处理方法、终端及计算机可读存储介质
CN108540729A (zh) * 2018-03-05 2018-09-14 维沃移动通信有限公司 图像处理方法及移动终端
CN108965692B (zh) * 2018-06-15 2021-03-09 Oppo广东移动通信有限公司 贴纸设置方法及装置
CN108965699A (zh) * 2018-07-02 2018-12-07 珠海市魅族科技有限公司 拍摄对象的参数调整方法和装置、终端、可读存储介质
CN109068063B (zh) * 2018-09-20 2021-01-15 维沃移动通信有限公司 一种三维图像数据的处理、显示方法、装置及移动终端
CN109151320B (zh) * 2018-09-29 2022-04-22 联想(北京)有限公司 一种目标对象选取方法及装置
CN111199169A (zh) * 2018-11-16 2020-05-26 北京微播视界科技有限公司 图像处理方法和装置
CN109462727B (zh) * 2018-11-23 2022-01-25 维沃移动通信有限公司 一种滤镜调整方法及移动终端
CN111464734B (zh) * 2019-01-18 2021-09-21 北京小米移动软件有限公司 处理图像数据的方法及装置
CN111405178B (zh) * 2020-03-09 2021-07-23 Oppo广东移动通信有限公司 基于Camera2的拍照方法、装置、存储介质及移动设备
CN112614572B (zh) * 2020-12-28 2023-02-21 深圳开立生物医疗科技股份有限公司 一种病灶标记方法、装置、图像处理设备及医疗系统
CN113259615B (zh) * 2021-04-01 2024-05-28 海南视联通信技术有限公司 一种焦距调整方法、装置、终端设备和存储介质
CN115239845A (zh) * 2021-04-25 2022-10-25 北京字跳网络技术有限公司 一种特效配置文件的生成方法、装置、设备及介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1307317A (zh) * 1999-12-27 2001-08-08 富士胶片株式会社 图像处理方法、装置和记录介质
US7715660B2 (en) * 2006-06-13 2010-05-11 Alpha Imaging Technology Corp. Image acquisition device
JP2012231362A (ja) * 2011-04-27 2012-11-22 Olympus Imaging Corp デジタルカメラ
CN104079824A (zh) * 2014-06-27 2014-10-01 宇龙计算机通信科技(深圳)有限公司 一种取景图像显示方法、装置及终端
CN104796594A (zh) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 一种预览界面特殊效果即时呈现方法及终端设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1307317A (zh) * 1999-12-27 2001-08-08 富士胶片株式会社 图像处理方法、装置和记录介质
US7715660B2 (en) * 2006-06-13 2010-05-11 Alpha Imaging Technology Corp. Image acquisition device
JP2012231362A (ja) * 2011-04-27 2012-11-22 Olympus Imaging Corp デジタルカメラ
CN104796594A (zh) * 2014-01-16 2015-07-22 中兴通讯股份有限公司 一种预览界面特殊效果即时呈现方法及终端设备
CN104079824A (zh) * 2014-06-27 2014-10-01 宇龙计算机通信科技(深圳)有限公司 一种取景图像显示方法、装置及终端

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948543A (zh) * 2017-11-16 2018-04-20 北京奇虎科技有限公司 一种视频特效处理方法及装置
CN107948543B (zh) * 2017-11-16 2021-02-02 北京奇虎科技有限公司 一种视频特效处理方法及装置
EP3767939A4 (en) * 2018-03-15 2021-03-24 Vivo Mobile Communication Co., Ltd. PHOTOGRAPHY PROCESS, AND MOBILE TERMINAL
US11451706B2 (en) 2018-03-15 2022-09-20 Vivo Mobile Communication Co., Ltd. Photographing method and mobile terminal
CN109785226A (zh) * 2018-12-28 2019-05-21 维沃移动通信有限公司 一种图像处理方法、装置及终端设备
CN109785226B (zh) * 2018-12-28 2023-11-17 维沃移动通信有限公司 一种图像处理方法、装置及终端设备
CN110222682A (zh) * 2019-06-06 2019-09-10 天津艾思科尔科技有限公司 一种基于多特征的行人目标检测系统
CN110222682B (zh) * 2019-06-06 2024-05-07 天津艾思科尔科技有限公司 一种基于多特征的行人目标检测系统
CN110737276A (zh) * 2019-11-06 2020-01-31 深圳前海达闼云端智能科技有限公司 预警方法、巡逻机器人及计算机可读存储介质
WO2022143386A1 (zh) * 2020-12-30 2022-07-07 维沃移动通信(杭州)有限公司 拍摄方法、拍摄装置、电子设备和介质
CN112987906A (zh) * 2021-03-26 2021-06-18 北京小米移动软件有限公司 一种降低显示功耗的方法和装置
CN112987906B (zh) * 2021-03-26 2024-05-07 北京小米移动软件有限公司 一种降低显示功耗的方法和装置
CN115484386A (zh) * 2021-06-16 2022-12-16 荣耀终端有限公司 一种视频拍摄方法及电子设备
CN115484386B (zh) * 2021-06-16 2023-10-31 荣耀终端有限公司 一种视频拍摄方法及电子设备
CN113873168A (zh) * 2021-10-27 2021-12-31 维沃移动通信有限公司 拍摄方法、装置、电子设备及介质
CN114390193A (zh) * 2021-12-06 2022-04-22 北京达佳互联信息技术有限公司 图像处理方法、装置、电子设备及存储介质
CN114390193B (zh) * 2021-12-06 2023-12-19 北京达佳互联信息技术有限公司 图像处理方法、装置、电子设备及存储介质
CN114329221A (zh) * 2021-12-31 2022-04-12 钻技(上海)信息科技有限公司 一种商品搜索方法、设备及存储介质

Also Published As

Publication number Publication date
CN105554364A (zh) 2016-05-04

Similar Documents

Publication Publication Date Title
WO2017016030A1 (zh) 一种图像处理方法及终端
US20180227478A1 (en) Image preview method, apparatus and terminal
US11470294B2 (en) Method, device, and storage medium for converting image from raw format to RGB format
US10805508B2 (en) Image processing method, and device
CN106131441B (zh) 拍照方法及装置、电子设备
US10015374B2 (en) Image capturing apparatus and photo composition method thereof
US20140293079A1 (en) Camera Obstruction Detection
US20130021512A1 (en) Framing of Images in an Image Capture Device
WO2017031901A1 (zh) 人脸识别方法、装置及终端
US11297230B2 (en) Shooting method, device and computer-readable storage medium
CN112017137B (zh) 图像处理方法、装置、电子设备及计算机可读存储介质
CN108234865A (zh) 图像处理方法、装置、计算机可读存储介质和电子设备
JP2016081466A (ja) 画像処理装置、画像処理方法及びプログラム
US10127455B2 (en) Apparatus and method of providing thumbnail image of moving picture
CN112261292B (zh) 图像获取方法、终端、芯片及存储介质
US10769416B2 (en) Image processing method, electronic device and storage medium
JP2013106284A (ja) 光源推定装置、光源推定方法、光源推定プログラムおよび撮像装置
US20220329729A1 (en) Photographing method, storage medium and electronic device
CN104680563B (zh) 一种图像数据的生成方法和装置
CN110225331B (zh) 选择性地将色彩施加到图像
WO2018196854A1 (zh) 一种拍照方法、拍照装置及移动终端
US20230033956A1 (en) Estimating depth based on iris size
CN104994288A (zh) 一种拍照方法及用户终端
CN106878606B (zh) 一种基于电子设备的图像生成方法和电子设备
KR20110090623A (ko) 얼굴추적이 가능한 홈네트워크 단말 및 그 단말에서의 얼굴추적방법

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15899382

Country of ref document: EP

Kind code of ref document: A1