CN113747076A - Shooting method and device and electronic equipment - Google Patents

Shooting method and device and electronic equipment Download PDF

Info

Publication number
CN113747076A
CN113747076A CN202111129863.5A CN202111129863A CN113747076A CN 113747076 A CN113747076 A CN 113747076A CN 202111129863 A CN202111129863 A CN 202111129863A CN 113747076 A CN113747076 A CN 113747076A
Authority
CN
China
Prior art keywords
color
target
input
interface
control
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111129863.5A
Other languages
Chinese (zh)
Inventor
强欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111129863.5A priority Critical patent/CN113747076A/en
Publication of CN113747076A publication Critical patent/CN113747076A/en
Pending legal-status Critical Current

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
    • 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
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Abstract

The application discloses a shooting method, a shooting device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: receiving a first input of a color adjustment control by a user; in response to the first input, mapping a color of a target object in a target interface to a target color, the target color determined according to the first input, the target interface being a capture preview interface or a capture interface.

Description

Shooting method and device and electronic equipment
Technical Field
The application belongs to the technical field of camera shooting, and particularly relates to a shooting method and device and electronic equipment.
Background
Currently, in a shooting process of an electronic device, a shot picture can be processed through functions of a filter and the like of the electronic device in a camera application program, for example, color parameters of the shot picture are adjusted, so that the shot picture better meets requirements of a user.
However, according to the above method, the processing mode of the shot picture is single, and the user requirements cannot be well met.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device and electronic equipment, which can solve the problem that a shooting picture is processed in a single mode.
In a first aspect, an embodiment of the present application provides a shooting method, where the method includes: receiving a first input of a color adjustment control by a user; in response to the first input, mapping a color of a target object in a target interface to a target color, the target color determined according to the first input, the target interface being a capture preview interface or a capture interface.
In a second aspect, an embodiment of the present application provides a shooting device, which includes a receiving module and a mapping module; the receiving module is used for receiving a first input of a user to the color adjusting control; and the mapping module is used for responding to the first input received by the receiving module, and mapping the color of the target object in the target interface into a target color, wherein the target color is determined according to the first input, and the target interface is a shooting preview interface or a shooting interface.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In an embodiment of the present application, a first input of a user to a color adjustment control may be received; and in response to the first input, mapping a color of a target object in a target interface to a target color, the target color being determined according to the first input, the target interface being a capture preview interface or a capture interface. By the scheme, when the user shoots through the electronic equipment, the color of the target object in the shooting preview interface or the shooting interface can be mapped to the target color required by the user based on the input of the user, and the user can adjust the color of a local part (namely the target object) of the shooting picture, so that the processing mode of the electronic equipment on the shooting picture can be enriched.
Drawings
Fig. 1 is a schematic diagram of a shooting method provided in an embodiment of the present application;
fig. 2 is one of schematic interfaces of an application of a shooting method provided in an embodiment of the present application;
fig. 3 is a second schematic interface diagram of an application of the photographing method according to the embodiment of the present application;
fig. 4 is a third schematic interface diagram of an application of the shooting method according to the embodiment of the present application;
fig. 5 is a fourth schematic interface diagram of an application of the shooting method according to the embodiment of the present application;
fig. 6 is a fifth schematic interface diagram of an application of the shooting method according to the embodiment of the present application;
fig. 7 is a sixth schematic interface diagram of an application of the shooting method according to the embodiment of the present application;
fig. 8 is a schematic diagram of a shooting device provided in an embodiment of the present application;
fig. 9 is a schematic diagram of an electronic device provided in an embodiment of the present application;
fig. 10 is a hardware schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
It should be noted that, the marks in the embodiments of the present application are used to indicate words, symbols, images, and the like of information, and a control or other container may be used as a carrier for displaying information, including but not limited to a word mark, a symbol mark, and an image mark.
The shooting method, the shooting device, the electronic device and the readable storage medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
The shooting method provided by the embodiment of the application can be applied to scenes shot by a user through electronic equipment.
For example, during the process of capturing a video or image by the electronic device, the user may trigger the electronic device to map the color of one or more objects (e.g., target objects in the embodiments of the present application) in the capture interface (e.g., target interface in the embodiments of the present application) to a color (e.g., red) determined according to the input by an input (e.g., a first input in the embodiments of the present application) to the color adjustment control. In this way, when the user shoots through the electronic device, the color of the target object in the shooting preview interface or the shooting interface can be mapped to the target color required by the user based on the input of the user, so that the user can perform color adjustment on a part of the shooting picture (namely the target object), and therefore, the processing mode of the electronic device on the shooting picture can be enriched.
With reference to fig. 1, an embodiment of the present application provides a shooting method, which may include steps 101 and 102 described below. The method is exemplarily described below as being performed by a camera, which may include an electronic device such as a mobile phone.
Step 101, a shooting device receives a first input of a user to a color adjustment control.
Step 102, the shooting device responds to the first input, and the color of the target object in the target interface is mapped to be the target color.
In the embodiment of the application, the target color is determined according to the first input, and the target interface may be a shooting preview interface or a shooting interface.
Optionally, in this embodiment of the application, the shooting preview interface may be an interface that displays a shooting preview picture or a preview image in the camera application, and the shooting device may display the shooting preview interface after the user triggers to open the camera application.
Optionally, in this embodiment of the application, the shooting interface may be an interface for displaying a shooting picture in the camera application, and the shooting device may display the shooting interface after the user triggers the camera application to shoot.
Optionally, in this embodiment of the present application, the target object may be any possible shooting object, for example: table, flower, petal, house, character, face of character, hand of character, etc.
Optionally, in the embodiment of the present application, the number of the target objects may be one or multiple, and may be specifically determined according to actual use requirements, and the embodiment of the present application is not limited.
For example, the number of target objects may be 2, one target object being the face 1a of the portrait 1 and the other target object being the face 2a of the portrait 2.
The manner in which the target object is determined by the camera will be described in detail in the following embodiments, and will not be described herein in detail to avoid redundancy.
Optionally, in this embodiment of the application, the first input may be a click input of a user on the color adjustment control, or a voice instruction input by the user, or a specific gesture input by the user, which may be specifically determined according to an actual use requirement, and this embodiment of the application is not limited.
The click input in the embodiment of the application can be click input, double-click input or click input of any number of times, and can also be long-press input or short-press input; the specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
Optionally, in this embodiment of the application, the target color may be determined according to the first input.
Optionally, in this embodiment of the present application, in a first manner, the color adjustment control may include at least one sub-control for indicating one color; in a second approach, the color adjustment control may include a color sub-control and an adjustment sub-control.
The first and second embodiments will be described in detail below.
The first mode is as follows: the color adjustment control includes at least one sub-control for indicating a color.
Optionally, in this embodiment of the application, the sub-control may be any control that can indicate one color, such as a color control or a color name control, and different sub-controls indicate different colors.
For example, for a child control that indicates red, the child control may be one that displays red indicia; or may be a control including a "red" word.
Optionally, in this embodiment of the application, the shooting device may display different child controls according to different target objects.
For example, assuming that the target object is a human face, the camera may display a plurality of sub-controls for corresponding to different skin tones, for example, a sub-control indicating black, a sub-control indicating yellow, a sub-control indicating white, and the like. Assuming that the target object is a flower, the camera may display a plurality of sub-controls for corresponding different flower colors, e.g., a sub-control indicating red, a sub-control indicating yellow, a sub-control indicating purple, etc.
In this embodiment, the target color may be specifically determined according to the input object of the first input.
In this embodiment of the application, the first input is specifically an input of a target sub-control (i.e., an input object of the first input) in the at least one sub-control by a user, and the shooting device may specifically map a color of the target object to a color indicated by the target sub-control.
The shooting method provided by the embodiment of the application is exemplarily described below with reference to the drawings.
Illustratively, taking the target object as a human face as an example, as shown in (a) in fig. 2, assuming that the target object is a human face a, the color adjustment control includes a "dark brown" control, a "dark yellow" control, a "light blue" control, and a "light green" control 21 (i.e., at least one sub-control), where the "dark brown" control is used to indicate dark brown, the "dark yellow" control is used to indicate dark yellow, the "light blue" control is used to indicate light blue, and the "light green" control 21 is used to indicate light green. As shown in fig. 2 (a), the user may click on the "light green" control 21 (i.e., the first input), and as shown in fig. 2 (b), the camera may map the color of the face a to the light green indicated by the "light green" control 21.
In the embodiment of the application, the shooting device can display at least one sub-control, so that the user can input the target sub-control in the sub-controls to trigger the shooting device to map the color of the target object to the color indicated by the target sub-control, and the convenience of processing the picture when the shooting device shoots can be improved.
The second mode is as follows: the color adjustment control includes a color sub-control and an adjustment sub-control.
Optionally, in this embodiment of the application, different positions of the color sub-control may indicate different colors on the color sub-control, for example, different color coordinates in the color coordinate system.
In the embodiment of the application, the colors of different positions of the color sub-control are different.
In this embodiment, all positions of the color sub-control may indicate all colors in the color coordinate system.
Alternatively, in this embodiment of the present application, the step 101 may be specifically realized by a step 101a described below, and the step 102 may be specifically realized by a step 102a described below.
Step 101a, the shooting device receives a first input of a user to the adjustment sub-control.
Step 102a, the photographing device maps the color of the target object to a first color in response to a first input.
In this embodiment of the application, the first input may be used to update the adjustment sub-control to the first position; the first color is the color of the first position indication, e.g., if the first position indication is color 1, then the first color is color 1; if the first position indicates color 2, then the first color is color 2.
It is understood that, in the embodiment of the present application, the first color is the above target color.
Optionally, in this embodiment of the present application, the first position may be a real-time position of the adjustment sub-control on the color sub-control, or may be a position where the adjustment sub-control stops adjusting, that is, an input end position of the first input.
Optionally, in this embodiment of the application, in the process of updating the position of the adjustment sub-control on the color sub-control, the shooting device may map the color of the target object to the color indicated by the real-time position of the adjustment sub-control on the color sub-control, so that the user can preview the color display effect of the mapped target object in real time.
In the embodiment of the application, the shooting device can map the color of the target object to the color indicated by the first position according to the first position of the adjusting sub-control on the color sub-control, so that a user can map the color of the target object to any possible color by adjusting the position of the adjusting sub-control, and convenience of local processing of a shooting picture in the shooting process of the shooting device can be improved.
In the shooting method provided by the embodiment of the application, when a user shoots through the shooting device, the color of the target object in the shooting preview interface or the shooting interface can be mapped to the target color required by the user based on the input of the user, and the user can adjust the color of a part of the shooting picture (namely the target object), so that the processing mode of the shooting device on the shooting picture can be enriched.
Optionally, in this embodiment, before the step 102, the shooting method provided in this embodiment may further include the following step a and step B, and the step 102 may be specifically realized by the following step 102B.
And step A, the shooting device responds to the first input and displays at least two alternative color identifications.
Optionally, in this embodiment of the application, each of the at least two candidate color identifiers is used to indicate a color (hereinafter referred to as a first color), in the first manner, a color similarity between the first color and the color indicated by the target sub-control is greater than or equal to a preset threshold, and in the second manner, the color similarity between the first color and the color indicated by the first position is greater than or equal to a preset threshold.
Specifically, the color similarity greater than or equal to the preset threshold may be understood as: the difference between the color coordinate values of the colors is less than or equal to a threshold value (determined according to actual use requirements).
Exemplarily, taking the second way as an example, it is assumed that the color of the first position indication is white, and the color coordinate is: (409,394), then the camera may display 2 color indicators (i.e., two alternative color indicators), where one color indicator indicates a cool white color with color coordinates (380 ), and the other color indicator indicates a warm white color with color coordinates (440,403).
Optionally, in this embodiment of the application, the preset threshold may be preset by a system, or may be set by a user according to an actual use requirement, and this embodiment of the application is not limited.
And step B, the shooting device receives a second input of the target color identification in the at least two alternative color identifications from the user.
And 102b, the shooting device responds to the second input and maps the color of the target object in the target interface to the color indicated by the target color identification.
Optionally, in this embodiment of the application, the second input may be a click input of the target color identifier by the user, or a voice instruction input by the user, or a specific gesture input by the user, which may be specifically determined according to an actual use requirement, and this embodiment of the application is not limited.
The click input in the embodiment of the application can be click input, double-click input or click input of any number of times, and can also be long-press input or short-press input; the specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
The shooting method provided by the embodiment of the present application is exemplarily described below with reference to fig. 3.
Illustratively, taking the above another way as an example, as shown in (a) in fig. 3, the shooting preview interface 30 of the shooting device includes a color sub-control and an adjustment sub-control therein, and the target object is a yellow flower in the shooting preview interface 30; the user may drag the adjustment sub-control to a position 1 (i.e., a first position) shown in (b) in fig. 3 and stop (i.e., a first input), and if the color corresponding to the position 1 is purple, as shown in (b) in fig. 3, the shooting device may display a "magenta" identifier 31, a "purple powder" identifier, and a "dark purple" identifier (i.e., at least two candidate color identifiers) above the color sub-control; then, the user may click (i.e., a second input) on the "purple red" indicator 31, and as shown in fig. 3 (c), the photographing apparatus may map the color of the yellow flower from yellow to purple red.
Optionally, in this embodiment of the application, the photographing apparatus may display, in a preset area of the target interface, a first color identifier (hereinafter, referred to as an identifier i) corresponding to the target object before color mapping and a second color identifier (hereinafter, referred to as an identifier ii) corresponding to the target object after color mapping, so that a user may know a color difference before and after color mapping of the target object through the color identifiers of the preset area.
For example, as shown in fig. 3 (a), assuming that the target object is a yellow flower in the photographing preview interface 30, the photographing apparatus may display a "yellow" mark 32 (i.e., mark i) in a bottom area (i.e., a preset area) of the photographing preview interface 30; and as in fig. 3 (c), after mapping the color of the yellow flower from yellow to magenta (i.e., the target color), the photographing apparatus may display a "magenta" mark 33 (i.e., mark ii) to the right of the "yellow" mark 32 in the photographing preview interface 30, so that the user can compare the colors before and after mapping the yellow flower.
In the embodiment of the application, the shooting device can display at least two alternative color identifiers, and the color of the target object is mapped to the color indicated by the target color identifier through the input of the user to the target color identifier, so that the flexibility of processing pictures by the shooting device during shooting can be improved, and the user can conveniently select the color required by the user.
The manner in which the target object is determined by the photographing device is described in detail below.
Mode 1
Optionally, in this embodiment of the application, in mode 1, the target interface may include a preview image, and before the step 102, the shooting method provided in this embodiment of the application may further include the following step 103.
And 103, carrying out object identification on the preview image by the shooting device according to the preset characteristics to obtain at least one object.
In an embodiment of the present application, the at least one object includes the target object.
Optionally, in this embodiment of the application, the preview image may be an image displayed in real time in a shooting interface of the shooting device or a shooting preview interface.
Optionally, in this embodiment of the application, the preset feature may be a feature capable of explicitly indicating at least one object in the preview image.
Exemplarily, assuming that the preview image includes a plurality of people, if the preset feature is a face feature, the photographing device may perform object recognition on the preview image according to the face feature to obtain a plurality of faces; if the preset features are hand features, the shooting device can perform object recognition on the preview image according to the hand features to obtain a plurality of hands.
Optionally, in this embodiment of the application, the preset feature may be preset by a system, or may be set by a user according to an actual use requirement in a user-defined manner, and this embodiment of the application is not limited.
In the embodiment of the application, the shooting device can perform object recognition on the shooting interface or the preview image in the shooting preview interface according to the preset characteristics, so that at least one object which accords with the preset characteristics in the preview image can be obtained, and the efficiency of processing the picture when the shooting device shoots can be improved. Optionally, in this embodiment of the application, after the step 103, the shooting method provided in this embodiment of the application may further include the following steps 104 to 106.
Step 104, the shooting device displays at least one object identification.
In this embodiment, each of the at least one object id may be used to indicate one object of the at least one object. The different object identifier is used for indicating different objects in the at least one object.
Optionally, in this embodiment of the application, the object identifier may be any identifier capable of uniquely indicating one object of the at least one object, for example, an outline of the object, a color identifier of the object, and the like.
Step 105, the shooting device receives a third input of the target object identification in the at least one object identification from the user.
And step 106, the shooting device responds to the third input to obtain the target object.
Optionally, in this embodiment of the application, the third input may be a click input of the target object identifier by the user, or a specific gesture input by the user, which may be specifically determined according to actual use requirements, and this embodiment of the application is not limited.
The click input in the embodiment of the application can be click input, double-click input or click input of any number of times, and can also be long-press input or short-press input; the specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
Illustratively, taking the object identifier as the outline of the object as an example, as shown in (a) of fig. 4, the photographing apparatus recognizes the face 1, the face 2, and the face 3 (i.e., at least one object) in the photographing preview interface 40 according to a preset feature, and displays an outline identifier 41 indicating the face 1, an outline identifier 42 indicating the face 2, and an outline identifier 43 indicating the face 3 (i.e., at least one object identifier), as shown in (b) of fig. 4, if the user makes a click input on the outline identifier 41, the photographing apparatus may determine the face 1 indicated by the outline identifier 41 as the target object.
In the embodiment of the application, the shooting device can display at least one object identifier, and the object indicated by the object identifier is determined as the object through the input of the object identifier by the user, so that the user can select the object to be mapped from the at least one object according to the use requirement, and the flexibility of processing the picture by the shooting device during shooting can be further improved.
Mode 2
Optionally, in this embodiment of the application, the target interface may include at least one first control, where the at least one first control may be generated for the camera according to a color of a photographic object in a preview image of the target interface, each first control is used to indicate a photographic object of one color, and different first controls are used to indicate photographic objects of different colors.
Optionally, in this embodiment of the application, the shooting device may perform color recognition on the preview image, and generate and display the at least one first control based on the recognized color, so as to recommend a shooting object with an adjustable color in the target interface to the user through the at least one first control.
Optionally, in this embodiment of the application, in order to improve the accuracy of recommendation, the shooting device may generate the at least one first control according to a color of a shooting object of which the size is greater than or equal to a preset size in the target interface.
For example, assuming that the camera can recognize that the RGB color of a photographic subject in the preview image is golden yellow and the size of the photographic subject is larger than a preset size, the camera may generate a golden yellow control (i.e., a first control) based on the color of the photographic subject, specifically, the color coordinate of the color of the photographic subject, for example, (0.5, 0.45); conversely, if the size of the photographic subject is smaller than the preset size and only one golden yellow photographic subject is included in the target interface, the golden yellow control is not included in the at least one first control generated by the photographic device.
In the embodiment of the application, a user can trigger the shooting device to determine the shooting object indicated by the at least one first control as the target object by inputting one or more controls of the at least one first control.
Illustratively, as shown in fig. 5 (a), the preview image of the shooting preview interface 50 (i.e., the target interface) includes red flower 1, red flower 2, pink flower, and yellow flower, as well as "red" control 51, "yellow" control, "pink" control, and "other" control (i.e., at least one first control), then: the user may click on the "red" control 51 to trigger the camera to determine the 2 red flowers indicated by the "red" control 51 as target objects. It is understood that in the embodiment of the present application, the "other" control in fig. 5 is used to indicate other areas except for the red flower 1, the red flower 2, the pink flower and the yellow flower in the preview image of the shooting preview interface 50.
In the embodiment of the application, each control in the at least one first control may indicate a shooting object of one color in a preview image of the target interface, so that a user may trigger the shooting device to determine an object of one or more colors in the preview image as a target object by inputting one or more controls in the at least one first control, and thus, convenience of the shooting device in determining the target object may be improved.
Mode 3
Optionally, in this embodiment of the application, the user may directly select the target object by inputting on the photographic object in the preview image of the target interface.
For example, as shown in (b) of fig. 5, if a face 1, a face 2, and a face 3 are included in a preview image of the shooting preview interface 50 (i.e., the target interface), the user may click on the face 1 and the face 2, respectively, to trigger the shooting device to determine the face 1 and the face 2 as target objects.
Optionally, in this embodiment of the present application, after the step 102, the shooting method provided in this embodiment of the present application may further include a step 107 described below.
And step 107, shooting the target object by the shooting device and outputting a target file.
Optionally, in this embodiment of the present application, the target file may include an image or a video.
Optionally, in this embodiment of the application, when the target file includes an image, the color of the target object in the target file is a target color; in the case where the target file includes a video, the color of the target object in at least one video frame in the target file is a target color.
Alternatively, in the embodiment of the present application, in the case where the target file is a video, if a video frame (hereinafter referred to as a video frame 0) captured by the capturing device before receiving the first input is included in the target file, the color of the target object in the video frame 0 is the same as the color of the target object in the environment.
Exemplarily, assuming that the target object is included in M video frames of the target file, N video frames of the M video frames are video frames taken before the first input is received, P video frames (i.e., the above-mentioned at least one video frame) of the M video frames are video frames taken after the first input is received, M is an integer greater than 1, P and N are integers greater than or equal to 0, and P + N ═ M, then: the color of the target object in the N video frames is the same as the color of the target object in the environment, and the color of the target object in the P video frames is the target color.
In the embodiment of the application, the shooting device can shoot the target object and output the image or the video comprising the target object after color mapping, and a user does not need to perform post-processing on the video or the image.
Optionally, in this embodiment of the present application, before the step 101, the shooting method provided in this embodiment of the present application may further include the following step 108 and step 109.
And 108, receiving a fourth input of the target toning mark in the plurality of toning marks by the user through the shooting device.
In the embodiment of the application, each toning mark is used for indicating one toning mode, and different toning marks are used for indicating different toning modes.
Optionally, in this embodiment of the application, the color matching identifier may be an identifier in a picture form or a text form.
For example, as shown in fig. 6, the color-toning marks in the shooting preview interface 60 are a mark 61 including the text "character color toning", a mark 62 including the text "scene color toning"; wherein the label 61 comprising the text "character toning" is used to indicate the character toning mode, and the label 62 comprising the text "scene toning" is used to indicate the scene toning mode.
Optionally, in this embodiment of the application, the fourth input may be a click input of the target color matching identifier by the user, or a voice instruction input by the user, or a specific gesture input by the user, which may be specifically determined according to an actual use requirement, and this embodiment of the application is not limited.
The click input in the embodiment of the application can be click input, double-click input or click input of any number of times, and can also be long-press input or short-press input; the specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
And step 109, responding to the fourth input, entering a color matching mode indicated by the target color matching identification by the shooting device, and displaying a color adjusting control.
In the embodiment of the application, different target color mixing modes can correspond to different color adjusting controls, and in actual implementation, a user can flexibly set the corresponding relation between the color mixing modes and the color adjusting controls according to the use requirements of the user.
It should be noted that, the above steps 108 and 109 are exemplified by the case that the user triggers the photographing apparatus to determine the color matching mode through input, and in practical implementation, the photographing apparatus may also automatically determine the color matching mode by recognizing a photographing object in the target interface.
For example, if the photographing device recognizes that the photographing object in the target interface is a person (e.g., a human face), the color matching mode is determined as a person color matching mode, and if the photographing device recognizes that the photographing object in the target interface is a scene, the color matching mode is determined as a scene color matching mode.
In the embodiment of the application, the photographing device can enter the color mixing mode indicated by the color mixing identifier through the input of the user to one color mixing identifier in the plurality of color mixing identifiers, and the corresponding color adjusting control is displayed, so that the requirement that the user selects different color mixing modes in different use scenes can be met, and the accuracy of processing pictures by the photographing device during photographing can be improved.
Optionally, in this embodiment of the present application, before the step 108, the shooting method provided in this embodiment of the present application may further include the following step 110 and step 111.
And step 110, the shooting device receives a fifth input of the target function identifier in the target interface from the user.
In the embodiment of the present application, the target function identifier is used to indicate a local toning function.
Optionally, in this embodiment of the application, the target function identifier may be an identifier in a picture form or a text form, for example, as shown in fig. 7, the target function identifier is an identifier 71 including a text "palette" in the shooting preview interface 70.
Optionally, in this embodiment of the application, the fifth input may be a click input of the target function identifier by the user, or a voice instruction input by the user, or a specific gesture input by the user, which may be specifically determined according to an actual use requirement, and this embodiment of the application is not limited.
The click input in the embodiment of the application can be click input, double-click input or click input of any number of times, and can also be long-press input or short-press input; the specific gesture in the embodiment of the application may be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
And step 111, the shooting device responds to the fifth input, starts a local color matching function and displays a plurality of color matching marks.
In this embodiment of the application, for the description of the multiple color matching identifiers, reference may be specifically made to the description of the multiple color matching identifiers in step 108, and details are not repeated here in order to avoid repetition.
In the embodiment of the application, because the shooting device can open the local color mixing function through the input of the user to the target function identification of instructing the local color mixing function to display a plurality of color mixing identifications, thereby being convenient for the user to open the local color mixing function quickly, and therefore being capable of improving the shooting convenience of the shooting device.
Optionally, in this embodiment of the application, in the case that the content in the target interface changes greatly or the size of the target object changes greatly, the shooting device may cancel the mapping of the color of the target object, that is, display the target object in the original color of the target object.
For example, if the target object appears in the shooting interface again after disappearing for a certain time from the shooting interface, it may be considered that the screen has a large change (i.e., the content in the target interface has a large change), so that the shooting device may display the target object in the original color of the target object.
For another example, if the display size of the target object in the shooting interface is outside the preset size range, the size change of the target object may be considered to be large, and the shooting device may display the target object in the original color of the target object.
In the shooting method provided by the embodiment of the present application, the execution subject may be a shooting device, or a control module in the shooting device for executing the shooting method. The embodiment of the present application takes an example in which a shooting device executes a shooting method, and the shooting device provided in the embodiment of the present application is described.
With reference to fig. 8, an embodiment of the present application provides a camera 80, where the camera 80 may include: a receiving module 81 and a mapping module 82. The receiving module 81 may be configured to receive a first input of the color adjustment control from the user. The mapping module 82 may be configured to map, in response to the first input received by the receiving module 81, a color of a target object in a target interface to a target color, where the target color is determined according to the first input, and the target interface is a shooting preview interface or a shooting interface.
In a possible implementation manner, the shooting device 80 may further include a shooting module. And the shooting module can be used for shooting the target object and outputting a target file after the mapping module 82 maps the color of the target object in the target interface to the target color, wherein the target file comprises an image or a video. Wherein, in the case that the target file includes an image, the color of the target object in the target file is a target color; in the case where the target file includes a video, the color of the target object in at least one video frame in the target file is a target color.
In one possible implementation manner, the color adjustment control may include: a color sub-control and an adjustment sub-control, each position of the color sub-control indicating a color on the color sub-control. The receiving module 81 may be specifically configured to receive a first input of the adjustment sub-control by the user, where the first input is used to update the adjustment sub-control to the first position. The mapping module 82 may be specifically configured to map the color of the target object to a first color, where the first color is a color of the first position indication.
In a possible implementation manner, the shooting device 80 may further include a display module. And the display module can be used for displaying at least two alternative color identifications. The receiving module 81 may be further configured to receive a second input of the target color identifier of the at least two alternative color identifiers from the user. The mapping module 82 may be specifically configured to map, in response to the second input received by the receiving module 81, a color of the target object in the target interface to a color indicated by the target color identifier.
In a possible implementation manner, the target interface may include a preview image, and the capturing device may further include a recognition module. The identifying module may be configured to perform object identification on the preview image according to a preset feature before the mapping module 82 maps the color of the target object in the target interface to the target color, so as to obtain at least one object, where the at least one object includes the target object.
In a possible implementation manner, the display module may be further configured to display at least one object identifier after the recognition module performs object recognition on the preview image according to preset features to obtain at least one object, where each object identifier in the at least one object identifier is used to indicate one object in the at least one object. The receiving module 81 may be further configured to receive a third input of the target object identifier in the at least one object identifier from the user. The identification module may be further configured to obtain the target object in response to a third input received by the receiving module 81.
In the shooting device provided by the embodiment of the application, when a user shoots through the shooting device, the color of the target object in the shooting preview interface or the shooting interface can be mapped to the target color required by the user based on the input of the user, and the user can adjust the color of a part of the shooting picture (namely the target object), so that the processing mode of the shooting device on the shooting picture can be enriched. .
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
The shooting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The shooting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 7, and is not described here again to avoid repetition.
As shown in fig. 9, an electronic device 200 according to an embodiment of the present application is further provided, and includes a processor 202, a memory 201, and a program or an instruction stored in the memory 201 and executable on the processor 202, where the program or the instruction is executed by the processor 202 to implement the processes of the shooting method embodiment, and can achieve the same technical effects, and no further description is provided herein to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 1007 may be configured to receive a first input to the color adjustment control from a user. The processor 1010 may be configured to map a color of a target object in a target interface, which is a photographing preview interface or a photographing interface, to a target color in response to a first input received by the user input unit 1007, the target color being determined according to the first input.
In a possible implementation manner, the processor 1010 may be further configured to, after mapping a color of a target object in the target interface to a target color, shoot the target object, and output a target file, where the target file includes an image or a video. Wherein, in the case that the target file includes an image, the color of the target object in the target file is a target color; in the case where the target file includes a video, the color of the target object in at least one video frame in the target file is a target color.
In one possible implementation manner, the color adjustment control may include: a color sub-control and an adjustment sub-control, each position of the color sub-control indicating a color on the color sub-control. The user input unit 1007 may be specifically configured to receive a first input of the adjustment sub-control from the user, where the first input is used to update the adjustment sub-control to the first position. The processor 1010 may be specifically configured to map a color of the target object to a first color, where the first color is a color of the first position indication.
In one possible implementation, the display unit 1006 may be configured to display at least two alternative color identifiers. The user input unit 1007 may be further configured to receive a second input from the user for a target color identifier of the at least two alternative color identifiers. The processor 1010 may be specifically configured to map a color of a target object in the target interface to a color indicated by the target color identifier in response to a second input received by the user input unit 1007.
In one possible implementation, the target interface may include a preview image. The processor 1010 may be further configured to perform object recognition on the preview image according to a preset feature before mapping a color of a target object in the target interface to the target color, so as to obtain at least one object, where the at least one object includes the target object.
In a possible implementation manner, the display unit 1006 may be further configured to display at least one object identifier after the recognition module performs object recognition on the preview image according to the preset feature to obtain at least one object, where each object identifier in the at least one object identifier is used to indicate one object in the at least one object. The user input unit 1007 may be further configured to receive a third input of a target object identifier from the at least one object identifier from the user. The processor 1010 may be further configured to obtain the target object in response to a third input received by the user input unit 1007.
In the electronic device provided by the embodiment of the application, when the user shoots through the electronic device, the color of the target object in the shooting preview interface or the shooting interface can be mapped to the target color required by the user based on the input of the user, and the user can perform color adjustment on a part of the shooting picture (namely the target object), so that the processing mode of the electronic device on the shooting picture can be enriched.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is a processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk. The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above shooting method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A photographing method, characterized in that the method comprises:
receiving a first input of a color adjustment control by a user;
in response to the first input, mapping a color of a target object in a target interface to a target color, the target color determined according to the first input, the target interface being a capture preview interface or a capture interface.
2. The method of claim 1, wherein after mapping the color of the target object in the target interface to the target color, the method further comprises:
shooting the target object and outputting a target file, wherein the target file comprises an image or a video;
wherein, in a case where the target file includes an image, a color of the target object in the target file is the target color;
in a case where the target file includes a video, the color of the target object in at least one video frame in the target file is the target color.
3. The method of claim 1 or 2, wherein the color adjustment control comprises: each position of the color sub-control indicates one color on the color sub-control;
the receiving a first input of a user to a color adjustment control includes:
receiving the first input of the user to the adjusting sub-control, wherein the first input is used for updating the adjusting sub-control to a first position;
the mapping of the color of the target object in the target interface to the target color comprises:
mapping a color of the target object to a first color, the first color being a color of the first position indication.
4. The method of claim 1, wherein prior to mapping the color of the target object in the target interface to the target color, the method further comprises:
displaying at least two alternative color identifiers;
receiving a second input of a target color identifier in the at least two alternative color identifiers from a user;
the mapping of the color of the target object in the target interface to the target color comprises:
in response to the second input, mapping a color of a target object in a target interface to a color indicated by the target color identification.
5. The method of claim 1, wherein the target interface comprises a preview image, and wherein before mapping the color of the target object in the target interface to the target color, the method further comprises:
and carrying out object recognition on the preview image according to preset characteristics to obtain at least one object, wherein the at least one object comprises the target object.
6. The method of claim 5, wherein after the object recognition is performed on the preview image according to the preset features, the method further comprises:
displaying at least one object identifier, each of the at least one object identifier indicating one of the at least one object;
receiving a third input of a target object identification in the at least one object identification from a user;
and responding to the third input to obtain the target object.
7. A camera is characterized in that the camera comprises a receiving module and a mapping module;
the receiving module is used for receiving a first input of a user to the color adjusting control;
the mapping module is configured to map, in response to the first input received by the receiving module, a color of a target object in a target interface to a target color, where the target color is determined according to the first input, and the target interface is a shooting preview interface or a shooting interface.
8. The apparatus of claim 7, further comprising a camera module;
the shooting module is used for shooting the target object and outputting a target file after the mapping module maps the color of the target object in the target interface into the target color, wherein the target file comprises an image or a video;
wherein, in a case where the target file includes an image, a color of the target object in the target file is the target color;
in a case where the target file includes a video, the color of the target object in at least one video frame in the target file is the target color.
9. The apparatus of claim 7 or 8, wherein the color adjustment control comprises: each position of the color sub-control indicates one color on the color sub-control;
the receiving module is specifically configured to receive the first input of the adjusting sub-control from the user, where the first input is used to update the adjusting sub-control to a first position;
the mapping module is specifically configured to map a color of the target object to a first color, where the first color is a color of the first position indication.
10. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, which program or instructions, when executed by the processor, carry out the steps of the photographing method according to any one of claims 1 to 6.
CN202111129863.5A 2021-09-26 2021-09-26 Shooting method and device and electronic equipment Pending CN113747076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111129863.5A CN113747076A (en) 2021-09-26 2021-09-26 Shooting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111129863.5A CN113747076A (en) 2021-09-26 2021-09-26 Shooting method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113747076A true CN113747076A (en) 2021-12-03

Family

ID=78741046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111129863.5A Pending CN113747076A (en) 2021-09-26 2021-09-26 Shooting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113747076A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339077A (en) * 2022-01-28 2022-04-12 维沃移动通信有限公司 Imaging method, imaging device, electronic apparatus, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965699A (en) * 2018-07-02 2018-12-07 珠海市魅族科技有限公司 Parameter regulation means and device, terminal, the readable storage medium storing program for executing of reference object
WO2020156466A1 (en) * 2019-01-31 2020-08-06 维沃移动通信有限公司 Photographing method and terminal device
CN112887603A (en) * 2021-01-26 2021-06-01 维沃移动通信有限公司 Shooting preview method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965699A (en) * 2018-07-02 2018-12-07 珠海市魅族科技有限公司 Parameter regulation means and device, terminal, the readable storage medium storing program for executing of reference object
WO2020156466A1 (en) * 2019-01-31 2020-08-06 维沃移动通信有限公司 Photographing method and terminal device
CN112887603A (en) * 2021-01-26 2021-06-01 维沃移动通信有限公司 Shooting preview method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339077A (en) * 2022-01-28 2022-04-12 维沃移动通信有限公司 Imaging method, imaging device, electronic apparatus, and storage medium

Similar Documents

Publication Publication Date Title
US11114130B2 (en) Method and device for processing video
CN111654635A (en) Shooting parameter adjusting method and device and electronic equipment
WO2021135601A1 (en) Auxiliary photographing method and apparatus, terminal device, and storage medium
CN107613202B (en) Shooting method and mobile terminal
CN112135046B (en) Video shooting method, video shooting device and electronic equipment
CN112738402B (en) Shooting method, shooting device, electronic equipment and medium
CN109495616B (en) Photographing method and terminal equipment
CN108259746B (en) Image color detection method and mobile terminal
CN112492201B (en) Photographing method and device and electronic equipment
CN112532882B (en) Image display method and device
US20230245441A9 (en) Image detection method and apparatus, and electronic device
CN113794834A (en) Image processing method and device and electronic equipment
CN112911147A (en) Display control method, display control device and electronic equipment
CN112449110B (en) Image processing method and device and electronic equipment
CN113747076A (en) Shooting method and device and electronic equipment
CN112702531B (en) Shooting method and device and electronic equipment
CN112416199A (en) Control method and device and electronic equipment
CN112330728A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN112698775A (en) Image display method and device and electronic equipment
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112437231A (en) Image shooting method and device, electronic equipment and storage medium
WO2022228373A1 (en) Image management method and apparatus, electronic device, and readable storage medium
CN113794831B (en) Video shooting method, device, electronic equipment and medium
CN112333389B (en) Image display control method and device and electronic equipment
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination