WO2017107324A1 - Photographing mode processing method and device - Google Patents
Photographing mode processing method and device Download PDFInfo
- Publication number
- WO2017107324A1 WO2017107324A1 PCT/CN2016/076898 CN2016076898W WO2017107324A1 WO 2017107324 A1 WO2017107324 A1 WO 2017107324A1 CN 2016076898 W CN2016076898 W CN 2016076898W WO 2017107324 A1 WO2017107324 A1 WO 2017107324A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- filter
- photographed
- symmetry axis
- photographing mode
- symmetric
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
Definitions
- the present invention relates to the field of communications, and in particular to a method and apparatus for processing a photographing mode.
- one of the filter image modes of the mobile phone is a symmetric filter photo mode, in which the symmetry In the filter photo mode, you can take a close-up photo.
- This symmetrical filter camera mode is a camera mode that people often use.
- the intermediate position in the photographing field ie, the middle vertical axis of the mobile phone screen
- the symmetrical filter processing is performed.
- the user may wish to perform symmetric filter shooting in other directions (such as the up and down direction) of the subject.
- the symmetric filter photographing mode in the related art, the symmetry of the photographed object or the scene cannot be adaptively performed. Adjustment of the symmetrical filter photo mode.
- the symmetrical filter photographing mode can only perform symmetric shooting according to the fixed side of the object to be photographed, thereby causing a single technical problem of the symmetrical filter photographing mode function, and no effective solution has been proposed yet.
- the invention provides a method and a device for processing a photographing mode, so as to at least solve the symmetrical lens photographing mode in the related art, the symmetrical photographing can only be performed according to the fixed side of the object to be photographed, thereby causing a single function of the symmetrical filter photographing mode.
- a method for processing a photographing mode includes: determining an object symmetry axis of an object to be photographed; and determining a symmetrical filter photographing mode when photographing the object to be photographed according to the object symmetry axis a filter symmetry axis; adjusting the symmetric filter photographing mode according to the determined filter symmetry axis.
- the method further includes:
- determining, according to the positional relationship between the position of the first touch signal and the symmetry axis of the filter, determining an image area of the object to be photographed that needs to be mirrored comprises: receiving a position of the first touch signal Determining a map in a first side display area of the filter symmetry axis in the symmetric filter photographing mode when the first side of the filter symmetry axis is located An image area of the object to be photographed that needs to be mirrored; and an image area of the object to be photographed that is mirrored according to the determined need to adjust the symmetric filter photographing mode, including: in the symmetric filter photographing mode
- the second side display area of the filter symmetry axis is displayed as an image in the first side display area, wherein the second side is based on the filter symmetry axis and the first Side opposite side.
- adjusting the symmetric filter photographing mode according to the determined filter symmetry axis further comprising: receiving a second touch signal; adjusting the filter symmetry according to the second touch signal a relative position of the axis and the displayed image of the object to be photographed; determining an image area of the object to be photographed that needs to be mirrored according to the adjusted relative position; and an image of the object to be photographed mirrored according to the determined need The area adjusts the symmetrical filter photo mode.
- adjusting the relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the second touch signal including: determining, according to a touch movement trajectory of the second touch signal, a moving direction of the filter symmetry axis with respect to the displayed position of the image of the object to be photographed; adjusting the filter symmetry axis and the displayed image of the object to be photographed according to the determined moving direction Relative position.
- a processing apparatus for a photographing mode comprising: a first determining module configured to determine an object axis of symmetry of an object to be photographed; and a second determining module configured to determine according to the axis of symmetry of the object a filter symmetry axis in a symmetric filter photographing mode when photographing the object to be photographed; and a processing module configured to adjust the symmetric filter photographing mode according to the determined filter symmetry axis.
- the device further includes: a first receiving module configured to enter the adjusted symmetric filter after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis Receiving a first touch signal after the photographing mode; the third determining module is configured to determine an image of the object to be photographed that needs to be mirrored according to a positional relationship between a position of receiving the first touch signal and the axis of symmetry of the filter The first adjustment module is configured to adjust the symmetric filter photographing mode according to the image area of the object to be photographed that is mirrored according to the determined needs.
- the third determining module includes: a first determining unit, configured to determine the symmetric filter photographing mode when a position at which the first touch signal is received is located on a first side of the filter symmetry axis
- the image in the first side display area of the filter symmetry axis is an image area of the object to be photographed that needs to be mirrored
- the first adjustment module includes: a display unit, configured to be in the symmetrical filter
- the second side display area of the filter symmetry axis in the photographing mode is displayed as an image in the first side display area, wherein the second side is based on the filter symmetry axis and the The opposite side of the first side.
- the device further includes: a second receiving module, configured to receive the second touch signal after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis; and the second adjusting module, Is configured to adjust a relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the second touch signal; and a fourth determining module configured to determine that the need is performed according to the adjusted relative position Mirroring the image area of the object to be photographed; the third adjusting module is configured to adjust the symmetric filter photographing mode according to the determined image area of the object to be photographed that needs to be mirrored.
- a second receiving module configured to receive the second touch signal after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis
- the second adjusting module Is configured to adjust a relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the second touch signal
- a fourth determining module configured to determine that the need is performed according to the adjusted relative position Mirroring the image area of the object to be
- the second adjustment module includes: a second determining unit, configured to touch according to the second touch signal Touching a movement trajectory to determine a moving direction of the position of the filter symmetry axis with respect to the displayed image of the object to be photographed; and an adjusting unit configured to adjust the filter symmetry axis and display according to the determined moving direction The relative position of the image of the object to be photographed.
- an object symmetry axis for determining an object to be photographed is determined; and a filter symmetry axis in a symmetrical filter photographing mode when photographing the object to be photographed is determined according to the object symmetry axis;
- the method of adjusting the symmetrical filter photographing mode by the symmetry axis adjusts the filter photographing mode according to the symmetry axis of the object to be photographed, and solves the problem that the symmetrical filter photographing mode can only be used according to the configuration in the related art.
- Symmetrical shooting is performed on the fixed side, which results in a single technical problem of the symmetrical filter photographing mode function, thereby achieving the effect of flexibly adjusting the symmetry axis in the filter photographing mode according to the object to be photographed, thereby improving the user experience.
- FIG. 1 is a flowchart of a processing method of a photographing mode according to an embodiment of the present invention
- FIG. 2 is a block diagram showing the structure of a processing apparatus for a photographing mode according to an embodiment of the present invention
- FIG. 3 is a block diagram 1 of a processing apparatus of a photographing mode according to an embodiment of the present invention.
- FIG. 4 is a structural block diagram of a third determining module 34 and a first adjusting module 36 in a processing apparatus for a photographing mode according to an embodiment of the present invention
- FIG. 5 is a second structural block diagram of a processing apparatus for a photographing mode according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram of a second adjustment module 54 in a processing apparatus for a photographing mode according to an embodiment of the present invention
- FIG. 7 is a block diagram showing a preferred structure of an apparatus for implementing a symmetrical filter photographing mode using a pressure sensing technique according to an embodiment of the present invention
- FIG. 8 is a flow chart of a method for implementing a symmetrical filter photographing mode using a pressure sensing technique in accordance with an embodiment of the present invention
- 9-a, 9-b are schematic diagrams of adaptive symmetric mode selection in accordance with an embodiment of the present invention.
- 10-a to 10-d are schematic views of adjusting a middle line of a field of view of a camera according to an embodiment of the present invention.
- Figures 11-a through 11-f are diagrams showing the results of adjusting the intermediate line of the field of view of the camera in accordance with an embodiment of the present invention.
- FIG. 1 is a flowchart of a processing method of a photographing mode according to an embodiment of the present invention. As shown in FIG. 1, the flow includes the following steps:
- Step S102 determining an object symmetry axis of the object to be photographed
- Step S104 determining a filter symmetry axis in a symmetric filter photographing mode when photographing an object to be photographed according to an object symmetry axis;
- Step S106 adjusting the symmetric filter photographing mode according to the determined filter symmetry axis.
- determining the symmetry axis of the object to be photographed, and determining the filter symmetry axis in the symmetrical filter photographing mode when the object to be photographed is photographed according to the symmetry axis of the object wherein the object to be photographed may have one or more One or more axes of symmetry of the object to be photographed may be determined according to the similarity of the visual field (the similarity factor of texture, structure, shape, etc. in the image recognition algorithm), and the one or more axes of symmetry may be horizontal, vertical or inclined
- the axis of symmetry of the direction determines the axis of symmetry of the filter based on the one or more axes of symmetry, which may also be horizontal, vertical or oblique.
- the symmetric filter photographing mode When the symmetric filter photographing mode is adjusted according to the determined filter symmetry axis, when the filter symmetry axis is horizontal, the upper and lower symmetrical filter photographing mode is entered; when the filter symmetry axis is vertical, the left and right are entered. Symmetric filter photo mode; when the filter symmetry axis is tilted, enter the tilt symmetrical filter photo mode.
- the symmetrical filter photographing mode in the related art can solve the symmetry shooting only on the fixed side of the object to be photographed, thereby causing a single technical problem of the symmetrical filter photographing mode function, thereby achieving the object according to the object to be photographed.
- Flexible adjustment of the effect of the symmetry axis in the filter photo mode improves user experience.
- the side of the object to be photographed may be directly photographed according to the adjusted symmetric filter photographing mode.
- the method further includes: receiving the first touch signal after entering the adjusted symmetric filter photographing mode; determining the need according to the positional relationship between the position of the first touch signal and the axis of symmetry of the filter The image area of the object to be photographed that is mirrored; the image area of the object to be photographed that is mirrored according to the determined needs is adjusted to the symmetric filter photographing mode.
- the image area of the object to be photographed that needs to be mirrored is optional, and is not limited to the images of the fixed upper side, the left side, and the like, so that the user can view the image of the current field of view. Selecting the side that meets the mind for mirroring improves the user experience.
- Determining an image area of the object to be photographed that needs to be mirrored according to a positional relationship between a position of the received first touch signal and a symmetry axis of the filter which may be: a position of the first touch signal on a side of the symmetry axis of the filter At the time, the axis of symmetry of the filter is centered, and the image of the side is mirrored by the image of the other side.
- the method further includes: determining a first side display area of the filter symmetry axis in the symmetric filter photographing mode when the position of receiving the first touch signal is on the first side of the filter symmetry axis
- the image in the image is the image area of the object to be photographed that needs to be mirrored; in addition, the image area of the object to be photographed that is mirrored according to the determined need to adjust the symmetrical filter photographing mode can be implemented by the following steps, including: symmetrical filtering
- the second side display area of the filter symmetry axis in the mirror photographing mode is displayed as an image in the first side display area, wherein the second side is a side opposite to the first side with reference to the filter symmetry axis.
- the first touch signal is located on the first side, the image of the first side is retained, and the image of the other side is mirrored with reference to the first side image.
- the first touch signal may be a pressure signal, a touch signal, a sliding track, or a combination thereof, as well as other common touch signals.
- the filter photographing can be directly performed according to the adjusted symmetric filter photographing mode.
- the symmetrical filter mode when used for photographing in the related art, when the distance and position between the camera and the object to be photographed remain unchanged, the displayed symmetrical image does not change, that is, the axis of symmetry of the camera field of view is The subject is relatively still.
- changing the position of the camera means changing the position of the symmetry axis of the field of view of the camera; 2) the position of the camera is not moving (the position of the symmetry axis of the field of view of the camera is unchanged), The object being shot changes position. This adjustment is very inconvenient.
- the image area that needs to be mirrored is adjusted in the case where the relative position of the camera and the object to be photographed is unchanged, and the symmetry may be performed on the axis of symmetry of the filter according to the determination.
- the filter photographing mode performs the adjustment processing, receiving the second touch signal; adjusting the relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the second touch signal; determining the mirror image to be required according to the adjusted relative position An image area of the object to be photographed; the image area of the object to be photographed that is mirrored according to the determined need to adjust the symmetric filter photographing mode.
- the filter symmetry axis is generated according to the axis of symmetry of the object, the user may need to adjust the position of the automatically generated filter symmetry axis.
- the second touch signal is implemented. Adjusting the relative position of the filter symmetry axis to the field of view image improves user experience and satisfaction.
- the second touch signal may be a pressure signal, a touch signal, a sliding track, or a combination thereof.
- the relative position of the filter symmetry axis and the displayed image of the object to be photographed is adjusted according to the second touch signal.
- the method may include: determining a moving direction of a position of the filter symmetry axis with respect to the displayed image of the object to be photographed according to the touch movement trajectory of the second touch signal; adjusting the filter symmetry axis and the displayed to be photographed according to the determined moving direction The relative position of the image of the object.
- the moving direction when the filter symmetry axis needs to be adjusted can be directly determined, and when the second touch signal stops sliding, the symmetry axis of the filter is stopped. Adjustment of the relative position of the object to be photographed.
- the camera and the object to be photographed may not move, and the adjustment of the area of the picture to be mirrored can be realized only by adjusting the relative position of the filter symmetry axis and the object to be photographed.
- the filter symmetry is adjusted. Axis and object to be photographed The relative position of the filter makes the position of the symmetry axis of the filter unchanged, and displays the symmetrical image of the filter after the object to be photographed is moved down.
- the filter axis of symmetry also moves to the left correspondingly, adjusting the area of the picture to be mirrored; if the second touch signal is detected to move to the right, the filter axis of symmetry also moves to the right.
- the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
- a processing mode of the photographing mode is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the description thereof has been omitted.
- the term "module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 2 is a structural block diagram of a processing apparatus for a photographing mode according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a first determining module 22, a second determining module 24, and a processing module 26, which are described below. .
- the first determining module 22 is configured to determine an object symmetry axis of the object to be photographed; the second determining module 24 is connected to the first determining module 22, and is configured to determine a symmetrical filter photo when the object to be photographed is photographed according to the object symmetry axis.
- the filter symmetry axis in the mode; the processing module 26 is connected to the second determining module 24, and is configured to adjust the symmetric filter photographing mode according to the determined filter symmetry axis.
- FIG. 3 is a structural block diagram of a processing apparatus for a photographing mode according to an embodiment of the present invention.
- the apparatus includes a first receiving module 32 and a third determining module, in addition to all the modules shown in FIG. 34 and the first adjustment module 36, the device will be described below.
- the first receiving module 32 is connected to the processing module 26, and is configured to receive the first touch after entering the adjusted symmetric filter photographing mode after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis.
- the third determining module 34 is connected to the first receiving module 32, and is configured to determine an image area of the object to be photographed that needs to be mirrored according to the positional relationship between the position of the first touch signal and the axis of symmetry of the filter;
- the adjustment module 36 is connected to the third determining module 34, and is configured to adjust the symmetric filter photographing mode according to the determined image area of the object to be photographed.
- FIG. 4 is a structural block diagram of a third determining module 34 and a first adjusting module 36 in a processing apparatus for a photographing mode according to an embodiment of the present invention.
- the third determining module 34 includes a first determining unit 42.
- the first adjustment module 36 includes a display unit 44, and the third determination module 34 and the first adjustment module 36 are described below.
- the third determining module 34 includes: a first determining unit 42 configured to determine a first side of the filter symmetry axis in the symmetric filter photographing mode when the position at which the first touch signal is received is located on the first side of the filter symmetry axis The image in the display area is needed An image area of the object to be photographed that is mirrored; the first adjustment module 36 includes: a display unit 44 configured to be displayed in the first side display area in the second side display area of the filter symmetry axis in the symmetric filter photographing mode The image of the second side is a side opposite to the first side with reference to the axis of symmetry of the filter.
- FIG. 5 is a structural block diagram 2 of a processing apparatus for a photographing mode according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes a second receiving module 52 and a second adjusting module in addition to all the modules shown in FIG. 2 . 54. The fourth determining module 56 and the third adjusting module 58 are described below.
- the second receiving module 52 is connected to the processing module 26, and is configured to receive a second touch signal after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis; the second adjusting module 54, The second receiving module 52 is configured to adjust a relative position of the image symmetry axis and the image of the object to be photographed according to the second touch signal.
- the fourth determining module 56 is connected to the second adjusting module 54 and configured to be Determining, according to the adjusted relative position, an image area of the object to be photographed that needs to be mirrored; the third adjusting module 58 is connected to the fourth determining module 56, and is configured to image area of the object to be photographed that is mirrored according to the determined needs.
- the symmetrical filter camera mode is adjusted.
- FIG. 5 is only an exemplary description, and each module in FIG. 5 may also be combined with the first receiving module 32 and the like in FIG. 3, or used in combination with each module in FIG. Let's take an example.
- the implementation functions of the respective modules in FIG. 5 can be implemented before the implementation functions of the modules in FIG. 3 or FIG. 4, or in the modules of FIG. 3 or FIG. Implement after implementing the function.
- FIG. 6 is a structural block diagram of a second adjustment module 54 in a processing apparatus for a photographing mode according to an embodiment of the present invention.
- the second adjustment module 54 includes a second determining unit 62 and an adjusting unit 64.
- the third determining module 34 and the second adjusting module 54 are described.
- the second determining unit 62 is configured to determine a moving direction of the position of the filter symmetry axis with respect to the displayed image of the object to be photographed according to the touch movement trajectory of the second touch signal; the adjusting unit 64 is connected to the second determining unit 62 And set to adjust the relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the determined moving direction.
- the combination of the first touch signal as the pressure signal and the second touch signal as the pressure signal and the touch signal will be described as an example.
- the method and the device for realizing the symmetrical filter photographing mode by using the pressure sensing technology are provided in the embodiment of the present invention (that is, the processing method of the photographing mode in the above embodiment) And device).
- the apparatus includes a pressure sensing module 72 (corresponding to the first receiving module 32 described above).
- Second connection The receiving module 52), the filter processing module 74 (corresponding to the first determining module 22, the second determining module 24, the processing module 26, the third determining module 34, the second adjusting module 54, the fourth determining module 56) and the screen
- the display module 76 (corresponding to the display unit 44 described above) will be described below.
- the pressure sensing module 72 is attached to the lower portion of the screen display module 76.
- the function of detecting pressure is added to the existing screen display function.
- the filter processing module 74 is a core. When the user presses the screen hard, the pressure sensing module 72 The magnitude and position of the pressing pressure are detected, and the information data is transmitted to the filter processing module 74.
- the filter processing module 74 performs data processing according to the designed software algorithm, and transmits the processed data to the screen display module 76 for image display in real time. .
- FIG. 8 is a flow chart of a method for implementing a symmetrical filter photographing mode using pressure sensing technology according to an embodiment of the present invention. As shown in FIG. 8, the flow includes the following steps:
- Step S802 adaptive symmetric mode selection.
- the symmetrical filter photographing mode the default is the left-right symmetric filter photographing mode as an example
- the similarity of the visual field image the similarity factor of texture, structure, shape, etc. in the image recognition algorithm
- automatic detection or calculation If the axis of symmetry is vertical, the left-right symmetric filter photographing mode is maintained; if the symmetry axis is horizontal, it automatically changes to the upper and lower symmetrical filter photographing mode; if the symmetry axis is When tilted, it automatically changes to the tilt-symmetric filter photo mode.
- the optimal approximate symmetry axis in the detected field of view is automatically taken as the initial display symmetry state of the preview on the screen, so that the optimal symmetry state in the field of view is automatically displayed, thereby reducing the manual adjustment operation of the user. Then, start monitoring the user's related touch operation to determine whether it meets the preset requirements.
- step S804 when the forced pressing is detected (ie, the pressing pressure of the contact point exceeds a pressure threshold), the position of the force pressing is determined to determine the symmetrical area.
- the left symmetric filter mode is triggered, that is, the middle line of the camera field of view is the axis of symmetry, and the middle line is symmetrically displayed with the left picture content as a symmetric area;
- the right symmetric filter mode is triggered, that is, the middle line of the camera field of view is the axis of symmetry, and the middle line is symmetrically displayed in real time with the content of the right picture as a symmetric area.
- the upper and lower symmetric filter mode and the oblique symmetric filter mode are the symmetrical area.
- step S806 the adjustable symmetric display mode is triggered.
- the left (right) symmetric filter mode as an example, after determining the left (right) symmetric filter mode, continue to press hard.
- the middle line of the camera field of view is right (left).
- the displayed symmetrical regions are also biased to the more right (left) side of the field of view, up to the extreme edge of the field of view.
- the middle line of the camera's field of view moves to the right, the displayed symmetrical areas are also shifted to the right side of the field of view until the rightmost position is displayed.
- step S808 when the user finishes pressing hard, it indicates that the operation ends, and the photo preview screen does not change.
- the device for realizing the symmetrical filter photo taking mode by using the pressure sensing technology is located in the mobile phone terminal as an example, and the tunable filter photographing mode in the mobile phone terminal is explained.
- FIG. 9 is a schematic diagram of adaptive symmetric mode selection according to an embodiment of the present invention.
- a rectangular frame represents a screen display area of a mobile phone, and when the distance between the user and the position of the camera remains unchanged, the screen of the mobile phone is displayed.
- the area image is shown as a in Fig. 9.
- the camera vision is automatically detected or calculated according to the similarity of the visual field image (the similarity factor of texture, structure, shape, etc. in the image recognition algorithm)
- the optimal approximate symmetry axis in the picture if the symmetry axis is vertical, the left and right symmetrical filter photographing mode is maintained; if the symmetry axis is horizontal, it automatically changes to the upper and lower symmetrical filter photographing mode.
- the optimal approximate symmetry axis in the detected field of view is automatically used as the initial display symmetry state of the preview on the screen, so that the optimal symmetry state in the field of view is automatically displayed, thereby reducing the manual adjustment operation of the user, as shown in FIG. As shown in b, it automatically enters the left and right symmetrical filter photo mode.
- the software system in the terminal starts to monitor the related touch operation of the user to determine whether it meets the preset requirement.
- the position of the force pressing is determined by the broken line L1 in b of FIG. 9 as the middle line of the screen. If the pressed position is in the left half of the pressure screen, the left symmetric filter mode is triggered, L1 The left picture content is symmetrically displayed in real time, and the preview result of the camera is shown as a in FIG. 11; if the pressed position is on the right half of the pressure screen, the right symmetric filter mode is triggered, and L1 is right. The picture content is symmetrically displayed in real time for the symmetric area, and the preview result of the camera is shown as b in FIG.
- the position of the intermediate line L1 (b in Fig. 9) of the field of view of the camera is changed to change the display of the symmetrical area. Assuming that the left symmetrical filter mode is determined, the force is continuously pressed. After more than one pressure value, the adjustable symmetrical display mode is triggered. As the pressure increases, the middle line of the camera field of view moves to the right to the L2 position (a in FIG. 10). ), at this time, the image displayed on the screen is c in FIG. 11; when it continues to increase, the middle line of the camera field of view also moves to the right, when the middle line of the camera field of view moves to position L3 (b in FIG. 10), L4 (c in Fig. 10) and L5 (d in Fig.
- the images displayed on the corresponding preview screen are d in Fig. 11, e in Fig. 11, f in Fig. 11, and the right symmetry.
- the adjustable symmetrical display mode is triggered.
- the middle line of the camera's field of view moves to the left, and the displayed symmetrical areas are also shifted to the left of the field of view.
- the user and the camera are relatively stationary, and the purpose of adjusting the symmetrical image on the screen can be achieved, the symmetry range is expanded, and a symmetrical image that cannot be displayed by the existing method can be obtained.
- the middle line of the camera field of view can also be adjusted to move to the left, for example, by pressing in the left image area, so that the pressure value exceeds a certain threshold. Then, as the pressure increases, the relative position of the middle line of the camera's field of view to the object to be photographed can also move to the left. Alternatively, the touch may be continuously left to the left at any position on the screen. After the predetermined condition is reached, for example, the continuous touch time, the length of the touch track, and the like, the relative position of the middle line of the camera field of view and the object to be photographed may also move to the left.
- the left and right frame positions of the screen are the field of view limit range.
- the left symmetric filter photographing when the control symmetry axis dashed line moves to the right, the right border of the screen of the symmetrical filter is not used, as shown by the dotted line of L5 in d in FIG. 10, which is the right axis of the symmetry axis.
- the extreme position, the displayed content in Fig. 11 is the limit content of the left symmetric filter mode, that is, f in Fig. 11 is the limit adjustable display at this time.
- the content displayed on the left border of the screen without the symmetrical filter is the limit of the field of view in this mode.
- the dotted line symmetry axis mentioned here may or may not be displayed during actual processing. Preferably, it is not displayed on the screen, and it is a state of symmetry axis when the background data stream (each frame image) of the camera is processed in the background, which is controlled by the user but is not displayed, only to explain the symmetry.
- Figure 9 and Figure 10 are indicated by dashed lines; the user can see the symmetrical image on the screen which is still the axis of symmetry in the middle of the screen, but the content of the displayed symmetrical image changes with the control of the user's forced pressing. The user and the camera device are still.
- the user can see the image in the field of view of the entire camera before the filter processing and the dotted line, which is convenient for the user to adjust.
- the embodiment of the present invention is an example of a mobile phone terminal.
- the device for realizing the symmetrical filter photo taking by using the pressure sensing technology in the embodiment of the present invention can be applied to a photographing device of any symmetric filter photographing mode.
- the camera vision image is automatically detected or calculated according to the similarity of the visual field image (the similarity factor of texture, structure, shape, etc. in the image recognition algorithm).
- the optimal approximate axis of symmetry is the optimal approximate axis of symmetry.
- the position where the force is pressed is positioned to determine the symmetrical area.
- the left symmetric filter mode is triggered, that is, the middle line of the camera field of view is the axis of symmetry, and the middle line is symmetrically displayed with the left picture content as a symmetric area;
- the right symmetric filter mode is triggered, that is, the middle line of the camera field of view is the axis of symmetry, and the middle line is symmetrically displayed in real time with the content of the right picture as a symmetric area.
- Trigger adjustable symmetrical display mode After determining the left (right) symmetrical filter mode, the two fingers again press the screen at the same time and press to the right (left) to trigger the adjustable symmetrical display mode. Specifically, when the two fingers simultaneously press the screen and press hard to slide to the right, the middle line of the camera field of view moves to the right, and the displayed symmetrical areas are also shifted to the right side of the field of view, respectively, until the rightmost view edge is displayed; When the contact screen is pressed hard and slides to the left, then the middle line of the camera's field of view moves to the left, and the displayed symmetrical areas are also shifted to the left side of the field of view, respectively, until the leftmost field of view is displayed.
- the position of the intermediate line L1 of the field of view of the camera is changed to change the display of the symmetrical area.
- the determination is a left symmetric filter mode
- the two fingers again press the screen at the same time and press hard (detecting two contact points while pressing hard) and sliding to the right to trigger the adjustable symmetric display mode, and the middle line of the camera field of view moves to the right to L2 (a in Figure 10).
- the image displayed on the screen is c in FIG. 11; while continuing to slide, the middle line of the camera field of view also moves to the right, when the middle line of the camera field of view moves to position L3 (b in FIG. 10), L4 (FIG. 10).
- L3 b in FIG. 10
- L4 FIG. 10
- the images displayed on the corresponding preview screen are d in FIG. 11, e in FIG. 11, and f in FIG. 11, respectively.
- the middle line of the camera's field of view moves to the left, and the displayed symmetrical areas are also biased to the left of the field of view, respectively, until the display The leftmost view edge.
- the user and the camera are relatively stationary, and the purpose of adjusting the symmetrical image on the screen can be achieved, the symmetry range is expanded, and a symmetrical image that cannot be displayed by the existing method can be obtained.
- the operation method for switching the symmetry direction and adjusting the symmetrical content when photographing with the symmetrical filter under the force pressing solves the symmetrical filter photographing mode in the related art, which can only be one side of the symmetrically photographed object.
- the limitations, as well as the cumbersome operation of changing the symmetrical content of the display can only change the relative position of the camera to the object being photographed.
- the user can control the other side of the display display symmetry by one-finger press or two-finger press, slide or other control mode, and the symmetrical content displayed by the user can be adjusted when the camera and the object are both stationary. , the scope of symmetry is expanded, and different contents can be displayed symmetrically. Functional and easy to operate.
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
- Embodiments of the present invention also provide a storage medium.
- the foregoing storage medium may be configured to store program code for performing the following steps:
- the symmetric filter photographing mode is adjusted according to the determined filter symmetry axis.
- the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
- ROM Read-Only Memory
- RAM Random Access Memory
- the processor executes the above S1-S3 according to the stored program code in the storage medium.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they can be stored in the storage device Executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that herein, or they may be fabricated into individual integrated circuit modules, or multiple of them. Or the steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
- the processing method and apparatus for photographing mode provided by the embodiments of the present invention have the following beneficial effects: adjusting the filter photographing mode according to the symmetry axis of the object to be photographed, and solving the symmetric filter photographing mode in the related art.
- the symmetrical shooting can only be performed according to the fixed side of the object to be photographed, thereby causing a single technical problem of the symmetrical filter photographing mode function, thereby achieving the effect of flexibly adjusting the symmetry axis in the filter photographing mode according to the object to be photographed, and improving The user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- Image Analysis (AREA)
Abstract
Provided are a photographing mode processing method and device. The method comprises: determining an object symmetry axis of an object to be photographed (S102); determining, according to the object symmetry axis, a filter symmetry axis in a symmetric filter photographing mode for use when photographing the object to be photographed (104); and adjusting the symmetric filter photographing mode according to the determined filter symmetry axis (106). The method adjusts the filter photographing mode according to the symmetry axis of the object to be photographed, thereby solving a technical problem in which the related art can only perform symmetrical photographing from a fixed side with respect to an object to be photographed in the symmetric filter photographing mode, and thus the symmetric filter photographing mode function is limited. Therefore, the invention can flexibly adjust the symmetry axis in the symmetric filter photographing mode according to the object to be photographed, thereby improving user experience.
Description
本发明涉及通信领域,具体而言,涉及一种拍照模式的处理方法及装置。The present invention relates to the field of communications, and in particular to a method and apparatus for processing a photographing mode.
随着科技的发展,越来越多的终端支持拍照功能,下面以手机为例,对终端中的拍照功能进行说明:手机的滤镜拍照模式中有一种是对称滤镜拍照模式,在该对称滤镜拍照模式下,可以拍出轴对称的照片。例如,在拍摄风景物体时,使用对称滤镜拍照模式会生成对称的风景,产生有趣的效果,这种对称滤镜拍照模式是人们常常使用的一种拍照模式。With the development of technology, more and more terminals support the camera function. The following takes the mobile phone as an example to illustrate the camera function in the terminal: one of the filter image modes of the mobile phone is a symmetric filter photo mode, in which the symmetry In the filter photo mode, you can take a close-up photo. For example, when shooting landscape objects, using the symmetrical filter camera mode produces a symmetrical landscape that produces interesting effects. This symmetrical filter camera mode is a camera mode that people often use.
相关技术中,在使用对称滤镜拍照模式进行拍照时,其会将拍摄视野中的中间位置(即手机屏幕的中间垂直轴)作为滤镜拍照模式下的对称轴,进行对称滤镜处理。而事实上,用户可能希望对待拍摄物体的其他方向(例如上下方向)进行对称滤镜拍摄,相关技术中的对称滤镜拍照模式中,不能够自适应的根据所拍摄物体或者景物的对称性进行对称滤镜拍照模式的调整。In the related art, when photographing is performed using the symmetrical filter photographing mode, the intermediate position in the photographing field (ie, the middle vertical axis of the mobile phone screen) is used as the symmetry axis in the filter photographing mode, and the symmetrical filter processing is performed. In fact, the user may wish to perform symmetric filter shooting in other directions (such as the up and down direction) of the subject. In the symmetric filter photographing mode in the related art, the symmetry of the photographed object or the scene cannot be adaptively performed. Adjustment of the symmetrical filter photo mode.
针对相关技术中对称滤镜拍照模式下只能按照配置对待拍摄物体的固定一侧进行对称拍摄,从而导致对称滤镜拍照模式功能单一的技术问题,目前尚未提出有效的解决方案。In the related art, the symmetrical filter photographing mode can only perform symmetric shooting according to the fixed side of the object to be photographed, thereby causing a single technical problem of the symmetrical filter photographing mode function, and no effective solution has been proposed yet.
发明内容Summary of the invention
本发明提供了一种拍照模式的处理方法及装置,以至少解决相关技术中对称滤镜拍照模式下只能按照配置对待拍摄物体的固定一侧进行对称拍摄,从而导致对称滤镜拍照模式功能单一的技术问题。The invention provides a method and a device for processing a photographing mode, so as to at least solve the symmetrical lens photographing mode in the related art, the symmetrical photographing can only be performed according to the fixed side of the object to be photographed, thereby causing a single function of the symmetrical filter photographing mode. Technical problem.
根据本发明的一个方面,提供了一种拍照模式的处理方法,包括:确定待拍摄物体的物体对称轴;根据所述物体对称轴确定对所述待拍摄物体进行拍照时的对称滤镜拍照模式中的滤镜对称轴;按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理。According to an aspect of the present invention, a method for processing a photographing mode includes: determining an object symmetry axis of an object to be photographed; and determining a symmetrical filter photographing mode when photographing the object to be photographed according to the object symmetry axis a filter symmetry axis; adjusting the symmetric filter photographing mode according to the determined filter symmetry axis.
可选地,在按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,还包括:Optionally, after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis, the method further includes:
在进入调整后的所述对称滤镜拍照模式后,接收第一触摸信号;根据接收所述第一触摸信号的位置与所述滤镜对称轴的位置关系,确定需要进行镜像的所述待拍摄物体的图像区域;根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整。Receiving the first touch signal after entering the adjusted symmetric filter photographing mode; determining the image to be photographed that needs to be mirrored according to the positional relationship between the position of the first touch signal and the filter axis of symmetry An image area of the object; the image area of the object to be photographed that is mirrored according to the determined need to adjust the symmetric filter photographing mode.
可选地,根据接收所述第一触摸信号的位置与所述滤镜对称轴的位置关系,确定需要进行镜像的所述待拍摄物体的图像区域包括:当接收所述第一触摸信号的位置位于所述滤镜对称轴的第一侧时,确定所述对称滤镜拍照模式中的所述滤镜对称轴的第一侧显示区域中的图
像为需要进行镜像的所述待拍摄物体的图像区域;根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整包括:在所述对称滤镜拍照模式中的所述滤镜对称轴的第二侧显示区域中显示为所述第一侧显示区域中的图像,其中,所述第二侧为以所述滤镜对称轴为基准与所述第一侧相对的一侧。Optionally, determining, according to the positional relationship between the position of the first touch signal and the symmetry axis of the filter, determining an image area of the object to be photographed that needs to be mirrored comprises: receiving a position of the first touch signal Determining a map in a first side display area of the filter symmetry axis in the symmetric filter photographing mode when the first side of the filter symmetry axis is located
An image area of the object to be photographed that needs to be mirrored; and an image area of the object to be photographed that is mirrored according to the determined need to adjust the symmetric filter photographing mode, including: in the symmetric filter photographing mode The second side display area of the filter symmetry axis is displayed as an image in the first side display area, wherein the second side is based on the filter symmetry axis and the first Side opposite side.
可选地,在按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,还包括:接收第二触摸信号;根据所述第二触摸信号,调整所述滤镜对称轴与显示的所述待拍摄物体的图像的相对位置;根据调整后的所述相对位置,确定需要进行镜像的所述待拍摄物体的图像区域;根据确定的需要进行镜像的待拍摄物体的图像区域对对称滤镜拍照模式进行调整。Optionally, after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis, further comprising: receiving a second touch signal; adjusting the filter symmetry according to the second touch signal a relative position of the axis and the displayed image of the object to be photographed; determining an image area of the object to be photographed that needs to be mirrored according to the adjusted relative position; and an image of the object to be photographed mirrored according to the determined need The area adjusts the symmetrical filter photo mode.
可选地,根据所述第二触摸信号,调整所述滤镜对称轴与显示的所述待拍摄物体的图像的所述相对位置,包括:根据所述第二触摸信号的触摸移动轨迹,确定所述滤镜对称轴相对于显示的所述待拍摄物体的图像的位置的移动方向;根据确定的所述移动方向,调整所述滤镜对称轴与显示的所述待拍摄物体的图像的所述相对位置。Optionally, adjusting the relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the second touch signal, including: determining, according to a touch movement trajectory of the second touch signal, a moving direction of the filter symmetry axis with respect to the displayed position of the image of the object to be photographed; adjusting the filter symmetry axis and the displayed image of the object to be photographed according to the determined moving direction Relative position.
根据本发明的另一方面,提供了一种拍照模式的处理装置,包括:第一确定模块,设置为确定待拍摄物体的物体对称轴;第二确定模块,设置为根据所述物体对称轴确定对所述待拍摄物体进行拍照时的对称滤镜拍照模式中的滤镜对称轴;处理模块,设置为按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理。According to another aspect of the present invention, a processing apparatus for a photographing mode is provided, comprising: a first determining module configured to determine an object axis of symmetry of an object to be photographed; and a second determining module configured to determine according to the axis of symmetry of the object a filter symmetry axis in a symmetric filter photographing mode when photographing the object to be photographed; and a processing module configured to adjust the symmetric filter photographing mode according to the determined filter symmetry axis.
可选地,所述装置还包括:第一接收模块,设置为在按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,在进入调整后的所述对称滤镜拍照模式后,接收第一触摸信号;第三确定模块,设置为根据接收所述第一触摸信号的位置与所述滤镜对称轴的位置关系,确定需要进行镜像的所述待拍摄物体的图像区域;第一调整模块,设置为根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整。Optionally, the device further includes: a first receiving module configured to enter the adjusted symmetric filter after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis Receiving a first touch signal after the photographing mode; the third determining module is configured to determine an image of the object to be photographed that needs to be mirrored according to a positional relationship between a position of receiving the first touch signal and the axis of symmetry of the filter The first adjustment module is configured to adjust the symmetric filter photographing mode according to the image area of the object to be photographed that is mirrored according to the determined needs.
可选地,所述第三确定模块包括:第一确定单元,设置为当接收所述第一触摸信号的位置位于所述滤镜对称轴的第一侧时,确定所述对称滤镜拍照模式中的所述滤镜对称轴的第一侧显示区域中的图像为需要进行镜像的所述待拍摄物体的图像区域;所述第一调整模块包括:显示单元,设置为在所述对称滤镜拍照模式中的所述滤镜对称轴的第二侧显示区域中显示为所述第一侧显示区域中的图像,其中,所述第二侧为以所述滤镜对称轴为基准与所述第一侧相对的一侧。Optionally, the third determining module includes: a first determining unit, configured to determine the symmetric filter photographing mode when a position at which the first touch signal is received is located on a first side of the filter symmetry axis The image in the first side display area of the filter symmetry axis is an image area of the object to be photographed that needs to be mirrored; the first adjustment module includes: a display unit, configured to be in the symmetrical filter The second side display area of the filter symmetry axis in the photographing mode is displayed as an image in the first side display area, wherein the second side is based on the filter symmetry axis and the The opposite side of the first side.
可选地,所述装置还包括:第二接收模块,设置为按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,接收第二触摸信号;第二调整模块,设置为根据所述第二触摸信号,调整所述滤镜对称轴与显示的所述待拍摄物体的图像的相对位置;第四确定模块,设置为根据调整后的所述相对位置,确定需要进行镜像的所述待拍摄物体的图像区域;第三调整模块,设置为根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整。Optionally, the device further includes: a second receiving module, configured to receive the second touch signal after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis; and the second adjusting module, Is configured to adjust a relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the second touch signal; and a fourth determining module configured to determine that the need is performed according to the adjusted relative position Mirroring the image area of the object to be photographed; the third adjusting module is configured to adjust the symmetric filter photographing mode according to the determined image area of the object to be photographed that needs to be mirrored.
可选地,所述第二调整模块,包括:第二确定单元,设置为根据所述第二触摸信号的触
摸移动轨迹,确定所述滤镜对称轴相对于显示的所述待拍摄物体的图像的位置的移动方向;调整单元,设置为根据确定的所述移动方向,调整所述滤镜对称轴与显示的所述待拍摄物体的图像的所述相对位置。Optionally, the second adjustment module includes: a second determining unit, configured to touch according to the second touch signal
Touching a movement trajectory to determine a moving direction of the position of the filter symmetry axis with respect to the displayed image of the object to be photographed; and an adjusting unit configured to adjust the filter symmetry axis and display according to the determined moving direction The relative position of the image of the object to be photographed.
通过本发明,采用确定待拍摄物体的物体对称轴;根据所述物体对称轴确定对所述待拍摄物体进行拍照时的对称滤镜拍照模式中的滤镜对称轴;按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理的方法,根据待拍摄物体的对称轴,对滤镜拍照模式进行调整,解决了相关技术中对称滤镜拍照模式下只能按照配置对待拍摄物体的固定一侧进行对称拍摄,从而导致对称滤镜拍照模式功能单一的技术问题,进而达到了根据待拍摄物体灵活调整滤镜拍照模式中的对称轴的效果,提高了用户的体验度。According to the present invention, an object symmetry axis for determining an object to be photographed is determined; and a filter symmetry axis in a symmetrical filter photographing mode when photographing the object to be photographed is determined according to the object symmetry axis; The method of adjusting the symmetrical filter photographing mode by the symmetry axis adjusts the filter photographing mode according to the symmetry axis of the object to be photographed, and solves the problem that the symmetrical filter photographing mode can only be used according to the configuration in the related art. Symmetrical shooting is performed on the fixed side, which results in a single technical problem of the symmetrical filter photographing mode function, thereby achieving the effect of flexibly adjusting the symmetry axis in the filter photographing mode according to the object to be photographed, thereby improving the user experience.
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的拍照模式的处理方法的流程图;1 is a flowchart of a processing method of a photographing mode according to an embodiment of the present invention;
图2是根据本发明实施例的拍照模式的处理装置的结构框图;2 is a block diagram showing the structure of a processing apparatus for a photographing mode according to an embodiment of the present invention;
图3是根据本发明实施例的拍照模式的处理装置的结构框图一;3 is a block diagram 1 of a processing apparatus of a photographing mode according to an embodiment of the present invention;
图4是根据本发明实施例的拍照模式的处理装置中第三确定模块34和第一调整模块36的结构框图;4 is a structural block diagram of a third determining module 34 and a first adjusting module 36 in a processing apparatus for a photographing mode according to an embodiment of the present invention;
图5是根据本发明实施例的拍照模式的处理装置的结构框图二;FIG. 5 is a second structural block diagram of a processing apparatus for a photographing mode according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的拍照模式的处理装置中第二调整模块54的结构框图;FIG. 6 is a structural block diagram of a second adjustment module 54 in a processing apparatus for a photographing mode according to an embodiment of the present invention;
图7是根据本发明实施例的利用压力感应技术实现可调对称滤镜拍照模式的装置的优选结构框图;7 is a block diagram showing a preferred structure of an apparatus for implementing a symmetrical filter photographing mode using a pressure sensing technique according to an embodiment of the present invention;
图8是根据本发明实施例的利用压力感应技术实现可调对称滤镜拍照模式的方法的流程图;8 is a flow chart of a method for implementing a symmetrical filter photographing mode using a pressure sensing technique in accordance with an embodiment of the present invention;
[根据细则26改正22.04.2016]
图9-a、9-b是根据本发明实施例的自适应对称模式选择的示意图;[Correct according to Rule 26 22.04.2016]
9-a, 9-b are schematic diagrams of adaptive symmetric mode selection in accordance with an embodiment of the present invention;
图9-a、9-b是根据本发明实施例的自适应对称模式选择的示意图;[Correct according to Rule 26 22.04.2016]
9-a, 9-b are schematic diagrams of adaptive symmetric mode selection in accordance with an embodiment of the present invention;
[根据细则26改正22.04.2016]
图10-a至10-d是根据本发明实施例的调整摄像头视野的中间线的示意图;[Correct according to Rule 26 22.04.2016]
10-a to 10-d are schematic views of adjusting a middle line of a field of view of a camera according to an embodiment of the present invention;
图10-a至10-d是根据本发明实施例的调整摄像头视野的中间线的示意图;[Correct according to Rule 26 22.04.2016]
10-a to 10-d are schematic views of adjusting a middle line of a field of view of a camera according to an embodiment of the present invention;
[根据细则26改正22.04.2016]
图11-a至11-f是根据本发明实施例的调整摄像头视野的中间线的结果显示图。[Correct according to Rule 26 22.04.2016]
Figures 11-a through 11-f are diagrams showing the results of adjusting the intermediate line of the field of view of the camera in accordance with an embodiment of the present invention.
图11-a至11-f是根据本发明实施例的调整摄像头视野的中间线的结果显示图。[Correct according to Rule 26 22.04.2016]
Figures 11-a through 11-f are diagrams showing the results of adjusting the intermediate line of the field of view of the camera in accordance with an embodiment of the present invention.
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种拍照模式的处理方法,图1是根据本发明实施例的拍照模式的处理方法的流程图,如图1所示,该流程包括如下步骤:In the embodiment, a processing method of a photographing mode is provided. FIG. 1 is a flowchart of a processing method of a photographing mode according to an embodiment of the present invention. As shown in FIG. 1, the flow includes the following steps:
步骤S102,确定待拍摄物体的物体对称轴;Step S102, determining an object symmetry axis of the object to be photographed;
步骤S104,根据物体对称轴确定对待拍摄物体进行拍照时的对称滤镜拍照模式中的滤镜对称轴;Step S104, determining a filter symmetry axis in a symmetric filter photographing mode when photographing an object to be photographed according to an object symmetry axis;
步骤S106,按照确定的滤镜对称轴对对称滤镜拍照模式进行调整处理。Step S106, adjusting the symmetric filter photographing mode according to the determined filter symmetry axis.
在摄像头的拍摄视野内,确定待拍摄物体的物体对称轴,根据物体对称轴确定待拍摄物体进行拍照时的对称滤镜拍照模式中的滤镜对称轴,其中,待拍摄物体可能有一个或多个,根据视野画面相似性(图像识别算法中纹理、结构、形状等相似性因子)可以确定待拍摄物体的一个或多个对称轴,该一个或多个对称轴可以为水平、竖直或倾斜方向的对称轴,根据该一个或多个对称轴确定滤镜对称轴,该滤镜对称轴也可以为水平、竖直或倾斜方向的。在按照确定的滤镜对称轴对对称滤镜拍照模式进行调整处理时,当滤镜对称轴为水平方向时,进入上下对称滤镜拍照模式;当滤镜对称轴为竖直方向时,进入左右对称滤镜拍照模式;当滤镜对称轴为倾斜方向时,进入倾斜对称滤镜拍照模式。通过上述步骤,解决了相关技术中对称滤镜拍照模式下只能按照配置对待拍摄物体的固定一侧进行对称拍摄,从而导致对称滤镜拍照模式功能单一的技术问题,进而达到了根据待拍摄物体灵活调整滤镜拍照模式中的对称轴的效果,提高了用户的体验度。In the shooting field of the camera, determining the symmetry axis of the object to be photographed, and determining the filter symmetry axis in the symmetrical filter photographing mode when the object to be photographed is photographed according to the symmetry axis of the object, wherein the object to be photographed may have one or more One or more axes of symmetry of the object to be photographed may be determined according to the similarity of the visual field (the similarity factor of texture, structure, shape, etc. in the image recognition algorithm), and the one or more axes of symmetry may be horizontal, vertical or inclined The axis of symmetry of the direction determines the axis of symmetry of the filter based on the one or more axes of symmetry, which may also be horizontal, vertical or oblique. When the symmetric filter photographing mode is adjusted according to the determined filter symmetry axis, when the filter symmetry axis is horizontal, the upper and lower symmetrical filter photographing mode is entered; when the filter symmetry axis is vertical, the left and right are entered. Symmetric filter photo mode; when the filter symmetry axis is tilted, enter the tilt symmetrical filter photo mode. Through the above steps, the symmetrical filter photographing mode in the related art can solve the symmetry shooting only on the fixed side of the object to be photographed, thereby causing a single technical problem of the symmetrical filter photographing mode function, thereby achieving the object according to the object to be photographed. Flexible adjustment of the effect of the symmetry axis in the filter photo mode improves user experience.
但相关技术中在使用对称滤镜模式进行拍照时,只能对被拍对象的某一侧进行对称拍照,却不能拍出被拍对象另一侧的对称图像。这点很遗憾,因为自然界中很多事物都不是完全对称的,树会随着阳光的方向出现一侧稀疏另一侧茂密的现象,人脸的左右两侧也是不完全对称的。例如,在使用现在的对称滤镜模式拍人脸时,假设只能拍出以左侧脸为对称元素的对称图像、不能拍出以右侧脸为对称元素的对称图像的话,而实际上可能有人会觉得自己的右脸比较漂亮,右脸拍出的对称照片效果好。在使用现在的对称滤镜模式拍树木时,假设只能拍出以稀疏侧为对称元素的对称图像、不能拍出以茂密侧为对称元素的对称图像的话,而实际中可能右侧茂密侧拍出树的对称照片更有意境。However, in the related art, when photographing is performed using the symmetric filter mode, only one side of the object to be photographed can be photographed symmetrically, but the symmetric image on the other side of the photographed object cannot be photographed. This is a pity, because many things in nature are not completely symmetrical. The tree will appear sparsely on the other side in the direction of the sun, and the left and right sides of the face are not completely symmetrical. For example, when using the current symmetric filter mode to shoot a human face, it is assumed that only a symmetrical image with the left face as a symmetrical element and a symmetrical image with the right face as a symmetrical element cannot be taken, but actually Some people will feel that their right face is more beautiful, and the symmetrical photo taken by the right face works well. When using the current symmetric filter mode to shoot trees, it is assumed that only a symmetrical image with a sparse side as a symmetrical element can be taken, and a symmetrical image with a dense side as a symmetrical element cannot be taken, but in reality, the right side can be shot. The symmetrical photos of the tree are more artistic.
因此,在步骤S106之后,在按照确定的滤镜对称轴对对称滤镜拍照模式进行调整处理之后,可以直接根据调整完毕的对称滤镜拍照模式,对待拍摄物体的一侧进行滤镜拍照。在一个可选的实施例中,还可以包括:在进入调整后的对称滤镜拍照模式后,接收第一触摸信号;根据接收第一触摸信号的位置与滤镜对称轴的位置关系,确定需要进行镜像的待拍摄物体的图像区域;根据确定的需要进行镜像的待拍摄物体的图像区域对对称滤镜拍照模式进行调整。在该可选实施例中,需要进行镜像的待拍摄物体的图像区域是可选的,而不局限于固定的上侧、左侧等区域的图像,使得用户可以根据当前拍摄视野的图像情况,选择符合心意的一侧进行镜像处理,提高了用户的体验度。
Therefore, after the step S106, after the symmetrical filter photographing mode is adjusted according to the determined filter symmetry axis, the side of the object to be photographed may be directly photographed according to the adjusted symmetric filter photographing mode. In an optional embodiment, the method further includes: receiving the first touch signal after entering the adjusted symmetric filter photographing mode; determining the need according to the positional relationship between the position of the first touch signal and the axis of symmetry of the filter The image area of the object to be photographed that is mirrored; the image area of the object to be photographed that is mirrored according to the determined needs is adjusted to the symmetric filter photographing mode. In this optional embodiment, the image area of the object to be photographed that needs to be mirrored is optional, and is not limited to the images of the fixed upper side, the left side, and the like, so that the user can view the image of the current field of view. Selecting the side that meets the mind for mirroring improves the user experience.
根据接收的第一触摸信号的位置与滤镜对称轴的位置关系,确定需要进行镜像的所述待拍摄物体的图像区域,可以为:在第一触摸信号的位置位于滤镜对称轴的一侧时,以滤镜对称轴为中心对称轴,将该侧的图像做参考另一侧的图像的镜像处理。在一个可选的实施例中,还可以包括:当接收第一触摸信号的位置位于滤镜对称轴的第一侧时,确定对称滤镜拍照模式中的滤镜对称轴的第一侧显示区域中的图像为需要进行镜像的待拍摄物体的图像区域;此外,根据确定的需要进行镜像的待拍摄物体的图像区域对对称滤镜拍照模式进行调整可以采取下述步骤实现,包括:在对称滤镜拍照模式中的滤镜对称轴的第二侧显示区域中显示为第一侧显示区域中的图像,其中,第二侧为以滤镜对称轴为基准与第一侧相对的一侧。在该可选实施例中,第一触摸信号位于第一侧,则保留第一侧的图像,对另一侧的图像参考第一侧图像进行镜像处理。Determining an image area of the object to be photographed that needs to be mirrored according to a positional relationship between a position of the received first touch signal and a symmetry axis of the filter, which may be: a position of the first touch signal on a side of the symmetry axis of the filter At the time, the axis of symmetry of the filter is centered, and the image of the side is mirrored by the image of the other side. In an optional embodiment, the method further includes: determining a first side display area of the filter symmetry axis in the symmetric filter photographing mode when the position of receiving the first touch signal is on the first side of the filter symmetry axis The image in the image is the image area of the object to be photographed that needs to be mirrored; in addition, the image area of the object to be photographed that is mirrored according to the determined need to adjust the symmetrical filter photographing mode can be implemented by the following steps, including: symmetrical filtering The second side display area of the filter symmetry axis in the mirror photographing mode is displayed as an image in the first side display area, wherein the second side is a side opposite to the first side with reference to the filter symmetry axis. In this alternative embodiment, the first touch signal is located on the first side, the image of the first side is retained, and the image of the other side is mirrored with reference to the first side image.
上述各个实施例中,第一触摸信号可以为压力信号、点触信号、滑动轨迹或者其组合,以及其它常见的触摸信号。In each of the above embodiments, the first touch signal may be a pressure signal, a touch signal, a sliding track, or a combination thereof, as well as other common touch signals.
在根据确定的需要进行镜像的待拍摄物体的图像区域对对称滤镜拍照模式进行调整之后,可以直接根据调整后的对称滤镜拍照模式进行滤镜拍照。例如,在相关技术中使用对称滤镜模式进行拍照时,当摄像头与被拍对象之间的距离和位置保持不变时,则显示出的对称图像也不变化,即摄像头视野的对称轴与被拍对象是相对静止的。若需要调整对称画面,有两种方式:1)被拍对象不动,改变摄像头位置即改变拍照摄像头视野的对称轴位置;2)摄像头位置不动(拍照摄像头视野的对称轴位置不变),被拍对象改变位置。这样调整起来很不方便。After adjusting the symmetric filter photographing mode in the image area of the object to be photographed mirrored according to the determined needs, the filter photographing can be directly performed according to the adjusted symmetric filter photographing mode. For example, when the symmetrical filter mode is used for photographing in the related art, when the distance and position between the camera and the object to be photographed remain unchanged, the displayed symmetrical image does not change, that is, the axis of symmetry of the camera field of view is The subject is relatively still. If you need to adjust the symmetrical picture, there are two ways: 1) the object being shot does not move, changing the position of the camera means changing the position of the symmetry axis of the field of view of the camera; 2) the position of the camera is not moving (the position of the symmetry axis of the field of view of the camera is unchanged), The object being shot changes position. This adjustment is very inconvenient.
而在一个可选的实施例中,在摄像头与待拍摄物体的相对位置不变的情况下,对需要进行镜像的画面区域进行调整,可以在按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,接收第二触摸信号;根据第二触摸信号,调整滤镜对称轴与显示的待拍摄物体的图像的相对位置;根据调整后的相对位置,确定需要进行镜像的待拍摄物体的图像区域;根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整。在该可选实施例中,因为滤镜对称轴是根据物体对称轴而生成的,用户可能需要对自动生成的滤镜对称轴的位置进行调整,本可选实施中实现了根据第二触摸信号对滤镜对称轴于视野图像的相对位置进行调整,提高了用户的体验度和满意度。In an optional embodiment, the image area that needs to be mirrored is adjusted in the case where the relative position of the camera and the object to be photographed is unchanged, and the symmetry may be performed on the axis of symmetry of the filter according to the determination. After the filter photographing mode performs the adjustment processing, receiving the second touch signal; adjusting the relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the second touch signal; determining the mirror image to be required according to the adjusted relative position An image area of the object to be photographed; the image area of the object to be photographed that is mirrored according to the determined need to adjust the symmetric filter photographing mode. In this alternative embodiment, since the filter symmetry axis is generated according to the axis of symmetry of the object, the user may need to adjust the position of the automatically generated filter symmetry axis. In this alternative implementation, the second touch signal is implemented. Adjusting the relative position of the filter symmetry axis to the field of view image improves user experience and satisfaction.
第二触摸信号可以为压力信号、点触信号、滑动轨迹或者其组合,在一个可选的实施例中,根据第二触摸信号,调整滤镜对称轴与显示的待拍摄物体的图像的相对位置,可以包括:根据第二触摸信号的触摸移动轨迹,确定滤镜对称轴相对于显示的待拍摄物体的图像的位置的移动方向;根据确定的移动方向,调整滤镜对称轴与显示的待拍摄物体的图像的所述相对位置。在该可选实施例中,根据第二触摸信号的触摸移动轨迹,可以直接确定滤镜对称轴需要进行调整时的移动方向,并在第二触摸信号停止滑动时,停止对滤镜对称轴与待拍摄物体的相对位置的调整。在该可选实施例中,摄像头和被拍摄物体可以都不进行移动,仅通过对滤镜对称轴与待拍摄物体的相对位置的调整,即可实现对需要进行镜像的图片的区域的调整。The second touch signal may be a pressure signal, a touch signal, a sliding track, or a combination thereof. In an optional embodiment, the relative position of the filter symmetry axis and the displayed image of the object to be photographed is adjusted according to the second touch signal. The method may include: determining a moving direction of a position of the filter symmetry axis with respect to the displayed image of the object to be photographed according to the touch movement trajectory of the second touch signal; adjusting the filter symmetry axis and the displayed to be photographed according to the determined moving direction The relative position of the image of the object. In this optional embodiment, according to the touch movement trajectory of the second touch signal, the moving direction when the filter symmetry axis needs to be adjusted can be directly determined, and when the second touch signal stops sliding, the symmetry axis of the filter is stopped. Adjustment of the relative position of the object to be photographed. In this alternative embodiment, the camera and the object to be photographed may not move, and the adjustment of the area of the picture to be mirrored can be realized only by adjusting the relative position of the filter symmetry axis and the object to be photographed.
例如,在上下对称滤镜拍照模式下,确定第一触摸信号位于滤镜对称轴的下侧,进入下对称滤镜拍照模式,此时,检测到在向上的触摸移动轨迹,则调整滤镜对称轴与待拍摄物体
的相对位置,使滤镜对称轴的位置不变,显示待拍摄物体下移后的滤镜对称图像。又例如,在左右对称滤镜拍照模式下,确定第一触摸信号位于滤镜对称轴的左侧,进入左对称滤镜拍照模式,此时,检测到第二触摸信号向左移动,则滤镜对称轴也相应的向左移动,调整需要进行镜像的图片的区域;若检测到第二触摸信号向右移动,则滤镜对称轴也相应的向右移动。For example, in the upper and lower symmetric filter photographing mode, it is determined that the first touch signal is located on the lower side of the filter symmetry axis, and enters the lower symmetric filter photographing mode. At this time, when the upward touch movement track is detected, the filter symmetry is adjusted. Axis and object to be photographed
The relative position of the filter makes the position of the symmetry axis of the filter unchanged, and displays the symmetrical image of the filter after the object to be photographed is moved down. For another example, in the left-right symmetric filter photographing mode, determining that the first touch signal is located on the left side of the filter symmetry axis, enters the left symmetric filter photographing mode, and at this time, detecting that the second touch signal moves to the left, the filter The axis of symmetry also moves to the left correspondingly, adjusting the area of the picture to be mirrored; if the second touch signal is detected to move to the right, the filter axis of symmetry also moves to the right.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种拍照模式的处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a processing mode of the photographing mode is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the description thereof has been omitted. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的拍照模式的处理装置的结构框图,如图2所示,该装置包括第一确定模块22、第二确定模块24和处理模块26,下面对该装置进行说明。2 is a structural block diagram of a processing apparatus for a photographing mode according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a first determining module 22, a second determining module 24, and a processing module 26, which are described below. .
第一确定模块22,设置为确定待拍摄物体的物体对称轴;第二确定模块24,连接于上述第一确定模块22,设置为根据物体对称轴确定对待拍摄物体进行拍照时的对称滤镜拍照模式中的滤镜对称轴;处理模块26,连接于上述第二确定模块24,设置为按照确定的滤镜对称轴对对称滤镜拍照模式进行调整处理。The first determining module 22 is configured to determine an object symmetry axis of the object to be photographed; the second determining module 24 is connected to the first determining module 22, and is configured to determine a symmetrical filter photo when the object to be photographed is photographed according to the object symmetry axis. The filter symmetry axis in the mode; the processing module 26 is connected to the second determining module 24, and is configured to adjust the symmetric filter photographing mode according to the determined filter symmetry axis.
图3是根据本发明实施例的拍照模式的处理装置的结构框图一,如图3所示,该装置除包括图2所示的所有模块外,还包括第一接收模块32、第三确定模块34和第一调整模块36,下面对该装置进行说明。3 is a structural block diagram of a processing apparatus for a photographing mode according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a first receiving module 32 and a third determining module, in addition to all the modules shown in FIG. 34 and the first adjustment module 36, the device will be described below.
第一接收模块32,连接于上述处理模块26,设置为在按照确定的滤镜对称轴对对称滤镜拍照模式进行调整处理之后,在进入调整后的对称滤镜拍照模式后,接收第一触摸信号;第三确定模块34,连接于上述第一接收模块32,设置为根据接收第一触摸信号的位置与滤镜对称轴的位置关系,确定需要进行镜像的待拍摄物体的图像区域;第一调整模块36,连接于上述第三确定模块34,设置为根据确定的需要进行镜像的待拍摄物体的图像区域对对称滤镜拍照模式进行调整。The first receiving module 32 is connected to the processing module 26, and is configured to receive the first touch after entering the adjusted symmetric filter photographing mode after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis. The third determining module 34 is connected to the first receiving module 32, and is configured to determine an image area of the object to be photographed that needs to be mirrored according to the positional relationship between the position of the first touch signal and the axis of symmetry of the filter; The adjustment module 36 is connected to the third determining module 34, and is configured to adjust the symmetric filter photographing mode according to the determined image area of the object to be photographed.
图4是根据本发明实施例的拍照模式的处理装置中第三确定模块34和第一调整模块36的结构框图,如图4所示,该第三确定模块34包括第一确定单元42,该第一调整模块36包括显示单元44,下面对该第三确定模块34和第一调整模块36进行说明。4 is a structural block diagram of a third determining module 34 and a first adjusting module 36 in a processing apparatus for a photographing mode according to an embodiment of the present invention. As shown in FIG. 4, the third determining module 34 includes a first determining unit 42. The first adjustment module 36 includes a display unit 44, and the third determination module 34 and the first adjustment module 36 are described below.
第三确定模块34包括:第一确定单元42,设置为当接收第一触摸信号的位置位于滤镜对称轴的第一侧时,确定对称滤镜拍照模式中的滤镜对称轴的第一侧显示区域中的图像为需要
进行镜像的待拍摄物体的图像区域;第一调整模块36包括:显示单元44,设置为在对称滤镜拍照模式中的滤镜对称轴的第二侧显示区域中显示为第一侧显示区域中的图像,其中,第二侧为以所述滤镜对称轴为基准与第一侧相对的一侧。The third determining module 34 includes: a first determining unit 42 configured to determine a first side of the filter symmetry axis in the symmetric filter photographing mode when the position at which the first touch signal is received is located on the first side of the filter symmetry axis The image in the display area is needed
An image area of the object to be photographed that is mirrored; the first adjustment module 36 includes: a display unit 44 configured to be displayed in the first side display area in the second side display area of the filter symmetry axis in the symmetric filter photographing mode The image of the second side is a side opposite to the first side with reference to the axis of symmetry of the filter.
图5是根据本发明实施例的拍照模式的处理装置的结构框图二,如图5所示,该装置除包括图2所示的所有模块外,还包括第二接收模块52、第二调整模块54、第四确定模块56和第三调整模块58,下面对该装置进行说明。FIG. 5 is a structural block diagram 2 of a processing apparatus for a photographing mode according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes a second receiving module 52 and a second adjusting module in addition to all the modules shown in FIG. 2 . 54. The fourth determining module 56 and the third adjusting module 58 are described below.
第二接收模块52,连接于上述处理模块26,设置为在按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,接收第二触摸信号;第二调整模块54,连接于第二接收模块52,设置为根据第二触摸信号,调整滤镜对称轴与显示的待拍摄物体的图像的相对位置;第四确定模块56,连接于上述第二调整模块54,设置为根据调整后的相对位置,确定需要进行镜像的待拍摄物体的图像区域;第三调整模块58,连接于上述第四确定模块56,设置为根据确定的需要进行镜像的待拍摄物体的图像区域对对称滤镜拍照模式进行调整。The second receiving module 52 is connected to the processing module 26, and is configured to receive a second touch signal after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis; the second adjusting module 54, The second receiving module 52 is configured to adjust a relative position of the image symmetry axis and the image of the object to be photographed according to the second touch signal. The fourth determining module 56 is connected to the second adjusting module 54 and configured to be Determining, according to the adjusted relative position, an image area of the object to be photographed that needs to be mirrored; the third adjusting module 58 is connected to the fourth determining module 56, and is configured to image area of the object to be photographed that is mirrored according to the determined needs. The symmetrical filter camera mode is adjusted.
需要说明的是,图5只是一种示例性说明,图5中的各个模块也可以与图3中的第一接收模块32等进行组合,或者与图4中的各个模块组合使用,在此不一一进行举例。在使用拍照模式的处理装置的过程中,图5中各个模块的实现功能,既可以在图3或图4中各模块的实现功能之前进行实施,也可以在图3或图4中各模块的实现功能之后进行实施。It should be noted that FIG. 5 is only an exemplary description, and each module in FIG. 5 may also be combined with the first receiving module 32 and the like in FIG. 3, or used in combination with each module in FIG. Let's take an example. In the process of using the processing device of the photographing mode, the implementation functions of the respective modules in FIG. 5 can be implemented before the implementation functions of the modules in FIG. 3 or FIG. 4, or in the modules of FIG. 3 or FIG. Implement after implementing the function.
图6是根据本发明实施例的拍照模式的处理装置中第二调整模块54的结构框图,如图6所示,该第二调整模块54包括第二确定单元62和调整单元64,下面对该第三确定模块34和第二调整模块54进行说明。FIG. 6 is a structural block diagram of a second adjustment module 54 in a processing apparatus for a photographing mode according to an embodiment of the present invention. As shown in FIG. 6, the second adjustment module 54 includes a second determining unit 62 and an adjusting unit 64. The third determining module 34 and the second adjusting module 54 are described.
第二确定单元62,设置为根据第二触摸信号的触摸移动轨迹,确定滤镜对称轴相对于显示的待拍摄物体的图像的位置的移动方向;调整单元64,连接于上述第二确定单元62,设置为根据确定的移动方向,调整滤镜对称轴与显示的待拍摄物体的图像的相对位置。The second determining unit 62 is configured to determine a moving direction of the position of the filter symmetry axis with respect to the displayed image of the object to be photographed according to the touch movement trajectory of the second touch signal; the adjusting unit 64 is connected to the second determining unit 62 And set to adjust the relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the determined moving direction.
下面结合具体实施环境,对本发明实施例的拍照模式的处理方法及装置进行说明。The method and apparatus for processing a photographing mode according to an embodiment of the present invention will be described below in conjunction with a specific implementation environment.
本实施例中,以第一触摸信号为压力信号、第二触摸信号为压力信号及触摸信号的结合为例进行说明。In this embodiment, the combination of the first touch signal as the pressure signal and the second touch signal as the pressure signal and the touch signal will be described as an example.
相关技术中,在使用对称滤镜模式进行拍照时,只能对被拍对象的某一侧进行对称拍照,却不能拍出被拍对象另一侧的对称图像;并且,当需要调整对称画面时,必须至少让摄像头或对拍对象中的一方动起来改变位置才能调整对称画面的显示内容。为了解决相关技术中滤镜拍照模式功能单一的技术问题,本发明实施例中提供了利用压力感应技术实现可调对称滤镜拍照模式的方法及装置(即上述实施例中的拍照模式的处理方法及装置)。In the related art, when photographing is performed using the symmetric filter mode, only one side of the object to be photographed can be photographed symmetrically, but the symmetric image on the other side of the photographed object cannot be photographed; and when the symmetric image needs to be adjusted At least one of the camera or the object to be shot must be moved to change the position to adjust the display of the symmetrical picture. In order to solve the technical problem that the function of the filter photographing mode is single in the related art, the method and the device for realizing the symmetrical filter photographing mode by using the pressure sensing technology are provided in the embodiment of the present invention (that is, the processing method of the photographing mode in the above embodiment) And device).
优选实施例一 Preferred embodiment 1
图7是根据本发明实施例的利用压力感应技术实现可调对称滤镜拍照模式的装置的优选结构框图,如图7所示,该装置包括压力感应模块72(对应于上述第一接收模块32、第二接
收模块52)、滤镜处理模块74(对应于上述第一确定模块22、第二确定模块24、处理模块26、第三确定模块34、第二调整模块54、第四确定模块56)和屏幕显示模块76(对应于上述显示单元44),下面对该装置进行说明。7 is a block diagram showing a preferred structure of an apparatus for implementing a symmetrical filter photographing mode using a pressure sensing technique. As shown in FIG. 7, the apparatus includes a pressure sensing module 72 (corresponding to the first receiving module 32 described above). Second connection
The receiving module 52), the filter processing module 74 (corresponding to the first determining module 22, the second determining module 24, the processing module 26, the third determining module 34, the second adjusting module 54, the fourth determining module 56) and the screen The display module 76 (corresponding to the display unit 44 described above) will be described below.
压力感应模块72,附着在屏幕显示模块76的下方,在现有屏幕显示功能基础上增加了检测压力的功能;滤镜处理模块74是核心,当用户用力按压屏幕时,压力感应模块72就会检测到按压压力的大小和位置,将这些信息数据传输到滤镜处理模块74,滤镜处理模块74根据设计的软件算法进行数据处理,将处理好的数据实时传给屏幕显示模块76进行图像显示。The pressure sensing module 72 is attached to the lower portion of the screen display module 76. The function of detecting pressure is added to the existing screen display function. The filter processing module 74 is a core. When the user presses the screen hard, the pressure sensing module 72 The magnitude and position of the pressing pressure are detected, and the information data is transmitted to the filter processing module 74. The filter processing module 74 performs data processing according to the designed software algorithm, and transmits the processed data to the screen display module 76 for image display in real time. .
根据上述利用压力感应技术实现可调对称滤镜拍照模式的装置,对本发明实施例的利用压力感应技术实现可调对称滤镜拍照模式的方法进行说明。图8是根据本发明实施例的利用压力感应技术实现可调对称滤镜拍照模式的方法的流程图,如图8所示,该流程包括以下步骤:According to the above apparatus for realizing the symmetrical filter photographing mode by using the pressure sensing technology, a method for realizing the symmetrical filter photographing mode by using the pressure sensing technology in the embodiment of the present invention will be described. 8 is a flow chart of a method for implementing a symmetrical filter photographing mode using pressure sensing technology according to an embodiment of the present invention. As shown in FIG. 8, the flow includes the following steps:
步骤S802,自适应对称模式选择。当检测到用户进入对称滤镜拍照模式(以默认为左右对称滤镜拍照模式为例)时,根据视野画面相似性(图像识别算法中纹理、结构、形状等相似性因子),自动检测或计算出摄像头视野画面中的最优近似对称轴,若对称轴为垂直方向,则保持左右对称滤镜拍照模式;若对称轴为水平方向,则自动变为上下对称滤镜拍照模式;若对称轴为倾斜方向,则自动变为倾斜对称滤镜拍照模式。并且,自动将检测到的视野中的最优近似对称轴作为屏幕上预览的初始显示对称状态,这样就把视野中最佳的对称状态自动显示出来,减少用户的手动调节操作。然后,开始监控用户的相关触摸操作,判断其是否满足预设要求。Step S802, adaptive symmetric mode selection. When it is detected that the user enters the symmetrical filter photographing mode (the default is the left-right symmetric filter photographing mode as an example), according to the similarity of the visual field image (the similarity factor of texture, structure, shape, etc. in the image recognition algorithm), automatic detection or calculation If the axis of symmetry is vertical, the left-right symmetric filter photographing mode is maintained; if the symmetry axis is horizontal, it automatically changes to the upper and lower symmetrical filter photographing mode; if the symmetry axis is When tilted, it automatically changes to the tilt-symmetric filter photo mode. Moreover, the optimal approximate symmetry axis in the detected field of view is automatically taken as the initial display symmetry state of the preview on the screen, so that the optimal symmetry state in the field of view is automatically displayed, thereby reducing the manual adjustment operation of the user. Then, start monitoring the user's related touch operation to determine whether it meets the preset requirements.
步骤S804,当检测到用力按压(即接触点的按压压力超过一个压力阈值)时,定位用力按压的位置,确定对称区域。例如,当用力按压的位置处于压力屏幕的左半边时,则触发左对称滤镜模式,即以摄像头视野中间线为对称轴,中间线以左的画面内容为对称区域进行实时对称显示;当用力按压的位置处于压力屏幕的右半边时,则触发右对称滤镜模式,即以摄像头视野中间线为对称轴,中间线以右的画面内容为对称区域进行实时对称显示。同理上下对称滤镜模式及倾斜对称滤镜模式。In step S804, when the forced pressing is detected (ie, the pressing pressure of the contact point exceeds a pressure threshold), the position of the force pressing is determined to determine the symmetrical area. For example, when the pressed position is in the left half of the pressure screen, the left symmetric filter mode is triggered, that is, the middle line of the camera field of view is the axis of symmetry, and the middle line is symmetrically displayed with the left picture content as a symmetric area; When the pressed position is in the right half of the pressure screen, the right symmetric filter mode is triggered, that is, the middle line of the camera field of view is the axis of symmetry, and the middle line is symmetrically displayed in real time with the content of the right picture as a symmetric area. The same as the upper and lower symmetric filter mode and the oblique symmetric filter mode.
步骤S806,触发可调对称显示模式。以左(右)对称滤镜模式为例,在确定左(右)对称滤镜模式后,继续用力按压,超过一个压力值后,随着压力增大,摄像头视野的中间线向右(左)移动,则显示出的对称区域也分别偏向视野的更右(左)侧,直到视野的最边缘。除了仅对压力进行检测感应,还可以用力按压左侧屏并向右滑动,则摄像头视野的中间线向右移动,则显示出的对称区域也分别偏向视野的更右侧,直到显示到最右侧视野边缘;用力按压右侧屏并向左滑动,那么摄像头视野的中间线向左移动,则显示出的对称区域也分别偏向视野的更左侧,直到显示到最左侧视野边缘。或者,也可以在任意一个位置向左(右)滑动,那么摄像头视野的中间线也相应的向左(右)移动。同理,在上对称滤镜模式下,继续用力按压上(下)侧,超过一个压力值后,随着压力增大,摄像头视野的中间线向下(上)移动,则显示出的对称区域也分别偏向视野的更下(上)侧,直到视野的最边缘。快速双击恢复初始对称状态。对于倾斜对称模式也是一样的处理方式,再此不再赘述。
In step S806, the adjustable symmetric display mode is triggered. Taking the left (right) symmetric filter mode as an example, after determining the left (right) symmetric filter mode, continue to press hard. After more than one pressure value, as the pressure increases, the middle line of the camera field of view is right (left). When moving, the displayed symmetrical regions are also biased to the more right (left) side of the field of view, up to the extreme edge of the field of view. In addition to detecting the pressure only, you can forcefully press the left screen and slide to the right. When the middle line of the camera's field of view moves to the right, the displayed symmetrical areas are also shifted to the right side of the field of view until the rightmost position is displayed. Side view edge; press hard on the right side screen and slide to the left, then the middle line of the camera's field of view moves to the left, and the displayed symmetrical areas are also shifted to the left side of the field of view, respectively, until the leftmost view edge is displayed. Alternatively, you can slide to the left (right) at any position, and the middle line of the camera's field of view also moves to the left (right) accordingly. Similarly, in the upper symmetric filter mode, continue to press the upper (lower) side. After more than one pressure value, as the pressure increases, the middle line of the camera's field of view moves downward (upward), and the symmetric area is displayed. Also biased to the lower (upper) side of the field of view, respectively, up to the extreme edge of the field of view. Quickly double click to restore the initial symmetry state. The same is true for the tilt symmetric mode, and will not be described again.
步骤S808,用户结束用力按压时,表明操作结束,拍照预览画面不再发生变化。In step S808, when the user finishes pressing hard, it indicates that the operation ends, and the photo preview screen does not change.
优选实施例二Preferred embodiment two
下面以利用压力感应技术实现可调对称滤镜拍照模式的装置位于手机终端中为例,对手机终端中的可调滤镜拍照模式进行说明。In the following, the device for realizing the symmetrical filter photo taking mode by using the pressure sensing technology is located in the mobile phone terminal as an example, and the tunable filter photographing mode in the mobile phone terminal is explained.
图9是根据本发明实施例的自适应对称模式选择的示意图,如图9中的a所示,矩形框表示手机屏幕显示区,当用户与摄像头的位置的距离保持不变时,手机屏幕显示区图像如图9中的a所示。9 is a schematic diagram of adaptive symmetric mode selection according to an embodiment of the present invention. As shown in a of FIG. 9, a rectangular frame represents a screen display area of a mobile phone, and when the distance between the user and the position of the camera remains unchanged, the screen of the mobile phone is displayed. The area image is shown as a in Fig. 9.
当检测到用户进入对称滤镜拍照模式(默认为左右对称滤镜拍照模式)时,根据视野画面相似性(图像识别算法中纹理、结构、形状等相似性因子),自动检测或计算出摄像头视野画面中的最优近似对称轴,若对称轴为垂直方向,则保持左右对称滤镜拍照模式;若对称轴为水平方向,则自动变为上下对称滤镜拍照模式。并且,自动将检测到的视野中的最优近似对称轴作为屏幕上预览的初始显示对称状态,这样就把视野中最佳的对称状态自动显示出来,减少用户的手动调节操作,如图9中的b所示,自动进入左右对称滤镜拍照模式。终端中的软件系统开始监控用户的相关触摸操作,判断其是否满足预设要求。When it is detected that the user enters the symmetric filter photographing mode (the default is the left-right symmetric filter photographing mode), the camera vision is automatically detected or calculated according to the similarity of the visual field image (the similarity factor of texture, structure, shape, etc. in the image recognition algorithm) The optimal approximate symmetry axis in the picture, if the symmetry axis is vertical, the left and right symmetrical filter photographing mode is maintained; if the symmetry axis is horizontal, it automatically changes to the upper and lower symmetrical filter photographing mode. Moreover, the optimal approximate symmetry axis in the detected field of view is automatically used as the initial display symmetry state of the preview on the screen, so that the optimal symmetry state in the field of view is automatically displayed, thereby reducing the manual adjustment operation of the user, as shown in FIG. As shown in b, it automatically enters the left and right symmetrical filter photo mode. The software system in the terminal starts to monitor the related touch operation of the user to determine whether it meets the preset requirement.
当检测到用力按压时,以如图9中的b中虚线L1为屏幕中间线,定位用力按压的位置,若用力按压的位置处于压力屏幕的左半边时,则触发左对称滤镜模式,L1以左的画面内容为对称区域进行实时对称显示,摄像头预览显示结果如图11中的a所示;若用力按压的位置处于压力屏幕的右半边时,则触发右对称滤镜模式,L1以右的画面内容为对称区域进行实时对称显示,摄像头预览显示结果如图11中的b所示。When the forced pressing is detected, the position of the force pressing is determined by the broken line L1 in b of FIG. 9 as the middle line of the screen. If the pressed position is in the left half of the pressure screen, the left symmetric filter mode is triggered, L1 The left picture content is symmetrically displayed in real time, and the preview result of the camera is shown as a in FIG. 11; if the pressed position is on the right half of the pressure screen, the right symmetric filter mode is triggered, and L1 is right. The picture content is symmetrically displayed in real time for the symmetric area, and the preview result of the camera is shown as b in FIG.
改变摄像头视野的中间线L1(图9中的b)的位置从而改变对称区域的显示。假设确定是左对称滤镜模式后,继续用力按压,超过一个压力值后,触发可调对称显示模式,随着压力增大,摄像头视野的中间线向右移动到L2位置(图10中的a),则此时屏幕上显示出图像是图11中的c;继续增大则摄像头视野的中间线也向右移动,当摄像头视野的中间线移动到位置L3(图10中的b)、L4(图10中的c)、L5(图10中的d)时,对应预览屏幕上显示的图像分别是图11中的d、图11中的e、图11中的f)同理,右对称滤镜模式时,继续用力按压,超过一个压力值后,触发可调对称显示模式,随着压力增大,摄像头视野的中间线向左移动,则显示出的对称区域也分别偏向视野的更左侧,直到显示到最左侧视野边缘。整个过程中用户与摄像头相对静止不动,就可以达到调整屏幕上对称图像效果的目的,扩大了对称的范围,可以得到现有方法显示不出来的对称图像。The position of the intermediate line L1 (b in Fig. 9) of the field of view of the camera is changed to change the display of the symmetrical area. Assuming that the left symmetrical filter mode is determined, the force is continuously pressed. After more than one pressure value, the adjustable symmetrical display mode is triggered. As the pressure increases, the middle line of the camera field of view moves to the right to the L2 position (a in FIG. 10). ), at this time, the image displayed on the screen is c in FIG. 11; when it continues to increase, the middle line of the camera field of view also moves to the right, when the middle line of the camera field of view moves to position L3 (b in FIG. 10), L4 (c in Fig. 10) and L5 (d in Fig. 10), the images displayed on the corresponding preview screen are d in Fig. 11, e in Fig. 11, f in Fig. 11, and the right symmetry. In the filter mode, continue to press hard. After more than one pressure value, the adjustable symmetrical display mode is triggered. As the pressure increases, the middle line of the camera's field of view moves to the left, and the displayed symmetrical areas are also shifted to the left of the field of view. Side until it is displayed to the leftmost view edge. During the whole process, the user and the camera are relatively stationary, and the purpose of adjusting the symmetrical image on the screen can be achieved, the symmetry range is expanded, and a symmetrical image that cannot be displayed by the existing method can be obtained.
上述图10、图11只是一种示例性说明,在左对称滤镜拍照模式下,也可以调整摄像头视野的中间线向左移动,例如通过在左侧图像区域进行按压,使得压力值超过一定阈值后,随着压力增大,摄像头视野的中间线与待拍摄物体的相对位置也可以向左移动。或者,可以在屏幕上任意位置向左持续触摸,达到预定条件后,例如持续触摸时间、触摸轨迹长度等,摄像头视野的中间线与待拍摄物体的相对位置也可以向左移动。
10 and 11 are only an exemplary illustration. In the left symmetric filter photographing mode, the middle line of the camera field of view can also be adjusted to move to the left, for example, by pressing in the left image area, so that the pressure value exceeds a certain threshold. Then, as the pressure increases, the relative position of the middle line of the camera's field of view to the object to be photographed can also move to the left. Alternatively, the touch may be continuously left to the left at any position on the screen. After the predetermined condition is reached, for example, the continuous touch time, the length of the touch track, and the like, the relative position of the middle line of the camera field of view and the object to be photographed may also move to the left.
在对摄像头视野的中间线进行调整的过程中,屏幕左右边框位置为视野极限范围。举例来说,在左对称滤镜拍照情况下,当控制对称轴虚线向右移动时,则不使用对称滤镜的屏幕右边框,如图10中的d中L5虚线位置,是对称轴右移的极限位置,显示的内容图11中的f是左对称滤镜模式的极限内容,即图11中的f是此时的极限可调显示。同理右对称滤镜拍照情况下,不使用对称滤镜的屏幕左边框显示的内容是这种模式下的视野极限内容。这里所说的虚线对称轴在实际处理中,可以显示,也可以不显示。优选的,它在屏幕上是不显示的,它是后台对预览时摄像头的每帧数据流(每帧图像)处理时的对称轴状态,由用户控制但不显示,只是为了说明对称情况才在图9、图10中用虚线示意出来的;用户能看到屏幕上的仍是以屏幕中间为对称轴的对称图像,只是随着用户的用力按压的控制,显示的对称图像的内容在变化,而用户与拍照设备都静止不动。或者,在对摄像头视野的中间线进行调整的过程中,用户能看到进行滤镜处理前的整个摄像头视野内的图像以及该虚线,方便用户进行调整。In the process of adjusting the middle line of the camera field of view, the left and right frame positions of the screen are the field of view limit range. For example, in the case of the left symmetric filter photographing, when the control symmetry axis dashed line moves to the right, the right border of the screen of the symmetrical filter is not used, as shown by the dotted line of L5 in d in FIG. 10, which is the right axis of the symmetry axis. The extreme position, the displayed content in Fig. 11 is the limit content of the left symmetric filter mode, that is, f in Fig. 11 is the limit adjustable display at this time. In the case of the same right symmetrical filter, the content displayed on the left border of the screen without the symmetrical filter is the limit of the field of view in this mode. The dotted line symmetry axis mentioned here may or may not be displayed during actual processing. Preferably, it is not displayed on the screen, and it is a state of symmetry axis when the background data stream (each frame image) of the camera is processed in the background, which is controlled by the user but is not displayed, only to explain the symmetry. Figure 9 and Figure 10 are indicated by dashed lines; the user can see the symmetrical image on the screen which is still the axis of symmetry in the middle of the screen, but the content of the displayed symmetrical image changes with the control of the user's forced pressing. The user and the camera device are still. Alternatively, during the adjustment of the middle line of the camera field of view, the user can see the image in the field of view of the entire camera before the filter processing and the dotted line, which is convenient for the user to adjust.
用户结束用力按压或者用户结束滑动触摸时,表明操作结束,拍照预览画面不再发生变化。When the user finishes pressing hard or the user ends the sliding touch, it indicates that the operation is over and the photo preview screen does not change.
本发明实施例是以手机终端为例的,事实上,本发明实施例中的利用压力感应技术实现可调对称滤镜拍照的装置,可以应用于任何对称滤镜拍照模式的拍照设备。The embodiment of the present invention is an example of a mobile phone terminal. In fact, the device for realizing the symmetrical filter photo taking by using the pressure sensing technology in the embodiment of the present invention can be applied to a photographing device of any symmetric filter photographing mode.
优选实施例三Preferred embodiment three
在该实施例中,提供了另一种摄像视野内的滤镜对称轴的调整方式。In this embodiment, another way of adjusting the filter symmetry axis within the field of view is provided.
检测到用户进入对称滤镜拍照模式(默认为左右对称滤镜拍照模式)时,根据视野画面相似性(图像识别算法中纹理、结构、形状等相似性因子),自动检测或计算出摄像头视野画面中的最优近似对称轴。When detecting that the user enters the symmetric filter photographing mode (the default is the left-right symmetric filter photographing mode), the camera vision image is automatically detected or calculated according to the similarity of the visual field image (the similarity factor of texture, structure, shape, etc. in the image recognition algorithm). The optimal approximate axis of symmetry.
当检测到用力按压(即接触点的按压压力超过一个压力阈值)时,定位用力按压的位置,确定对称区域。例如,当用力按压的位置处于压力屏幕的左半边时,则触发左对称滤镜模式,即以摄像头视野中间线为对称轴,中间线以左的画面内容为对称区域进行实时对称显示;当用力按压的位置处于压力屏幕的右半边时,则触发右对称滤镜模式,即以摄像头视野中间线为对称轴,中间线以右的画面内容为对称区域进行实时对称显示。When a forced pressing is detected (ie, the pressing pressure of the contact point exceeds a pressure threshold), the position where the force is pressed is positioned to determine the symmetrical area. For example, when the pressed position is in the left half of the pressure screen, the left symmetric filter mode is triggered, that is, the middle line of the camera field of view is the axis of symmetry, and the middle line is symmetrically displayed with the left picture content as a symmetric area; When the pressed position is in the right half of the pressure screen, the right symmetric filter mode is triggered, that is, the middle line of the camera field of view is the axis of symmetry, and the middle line is symmetrically displayed in real time with the content of the right picture as a symmetric area.
触发可调对称显示模式。确定左(右)对称滤镜模式后,双指再次同时接触屏幕用力按压并向右(左)滑动则触发可调对称显示模式。具体地,双指同时接触屏幕用力按压并向右滑动,则摄像头视野的中间线向右移动,则显示出的对称区域也分别偏向视野的更右侧,直到显示到最右侧视野边缘;双指同时接触屏幕用力按压并向左滑动,那么摄像头视野的中间线向左移动,则显示出的对称区域也分别偏向视野的更左侧,直到显示到最左侧视野边缘。Trigger adjustable symmetrical display mode. After determining the left (right) symmetrical filter mode, the two fingers again press the screen at the same time and press to the right (left) to trigger the adjustable symmetrical display mode. Specifically, when the two fingers simultaneously press the screen and press hard to slide to the right, the middle line of the camera field of view moves to the right, and the displayed symmetrical areas are also shifted to the right side of the field of view, respectively, until the rightmost view edge is displayed; When the contact screen is pressed hard and slides to the left, then the middle line of the camera's field of view moves to the left, and the displayed symmetrical areas are also shifted to the left side of the field of view, respectively, until the leftmost field of view is displayed.
用户结束用力按压时,表明操作结束,拍照预览画面不再发生变化。When the user presses hard, it indicates that the operation is over and the photo preview screen does not change.
下面结合附图对本发明实施例中的另一种摄像视野内的滤镜对称轴的调整方式进行说明。The adjustment method of the filter symmetry axis in another imaging field of view in the embodiment of the present invention will be described below with reference to the accompanying drawings.
改变摄像头视野的中间线L1的位置从而改变对称区域的显示。假设确定是左对称滤镜模
式后。双指再次同时接触屏幕用力按压(检测到两个接触点同时用力按压)并向右滑动,触发可调对称显示模式,摄像头视野的中间线向右移动到L2(图10中的a)位置,则此时屏幕上显示出图像是图11中的c;继续滑动则摄像头视野的中间线也向右移动,当摄像头视野的中间线移动到位置L3(图10中的b)、L4(图10中的c)、L5(图10中的d)时,对应预览屏幕上显示的图像分别是图11中的d、图11中的e、图11中的f。同理,右对称滤镜模式时,双指同时接触屏幕用力按压并向左滑动,那么摄像头视野的中间线向左移动,则显示出的对称区域也分别偏向视野的更左侧,直到显示到最左侧视野边缘。整个过程中用户与摄像头相对静止不动,就可以达到调整屏幕上对称图像效果的目的,扩大了对称的范围,可以得到现有方法显示不出来的对称图像。The position of the intermediate line L1 of the field of view of the camera is changed to change the display of the symmetrical area. Assume that the determination is a left symmetric filter mode
After the formula. The two fingers again press the screen at the same time and press hard (detecting two contact points while pressing hard) and sliding to the right to trigger the adjustable symmetric display mode, and the middle line of the camera field of view moves to the right to L2 (a in Figure 10). At this time, the image displayed on the screen is c in FIG. 11; while continuing to slide, the middle line of the camera field of view also moves to the right, when the middle line of the camera field of view moves to position L3 (b in FIG. 10), L4 (FIG. 10). In the case of c) and L5 (d in FIG. 10), the images displayed on the corresponding preview screen are d in FIG. 11, e in FIG. 11, and f in FIG. 11, respectively. Similarly, in the right symmetric filter mode, when the two fingers simultaneously touch the screen and press hard to slide to the left, then the middle line of the camera's field of view moves to the left, and the displayed symmetrical areas are also biased to the left of the field of view, respectively, until the display The leftmost view edge. During the whole process, the user and the camera are relatively stationary, and the purpose of adjusting the symmetrical image on the screen can be achieved, the symmetry range is expanded, and a symmetrical image that cannot be displayed by the existing method can be obtained.
通过本发明实施例中提出的关于用力按压下的对称滤镜拍照时切换对称方向和调节对称内容的操作方法,解决了相关技术中的对称滤镜拍照模式只能对称被拍物体的某一侧的局限,以及只能改变摄像头与被拍物体相对位置才能改变显示的对称内容的繁琐操作。本发明实施例可以由用户单手指按压或者双指按压、滑动或其它控制方式,即可控制切换显示对称的另一侧,还可以在摄像头与被拍物体都静止时由用户调节显示的对称内容,扩大了对称的范围,可以对称显示出不同的内容。功能实用易操作。The operation method for switching the symmetry direction and adjusting the symmetrical content when photographing with the symmetrical filter under the force pressing according to the embodiment of the present invention solves the symmetrical filter photographing mode in the related art, which can only be one side of the symmetrically photographed object. The limitations, as well as the cumbersome operation of changing the symmetrical content of the display, can only change the relative position of the camera to the object being photographed. In the embodiment of the present invention, the user can control the other side of the display display symmetry by one-finger press or two-finger press, slide or other control mode, and the symmetrical content displayed by the user can be adjusted when the camera and the object are both stationary. , the scope of symmetry is expanded, and different contents can be displayed symmetrically. Functional and easy to operate.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,确定待拍摄物体的物体对称轴;S1, determining an axis of symmetry of the object to be photographed;
S2,根据物体对称轴确定对待拍摄物体进行拍照时的对称滤镜拍照模式中的滤镜对称轴;S2, determining a filter symmetry axis in a symmetric filter photographing mode when photographing an object to be photographed according to an object symmetry axis;
S3,按照确定的滤镜对称轴对对称滤镜拍照模式进行调整处理。S3, the symmetric filter photographing mode is adjusted according to the determined filter symmetry axis.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述S1-S3。Optionally, in the embodiment, the processor executes the above S1-S3 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置
中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they can be stored in the storage device
Executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that herein, or they may be fabricated into individual integrated circuit modules, or multiple of them. Or the steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
如上所述,本发明实施例提供的一种拍照模式的处理方法及装置具有以下有益效果:根据待拍摄物体的对称轴,对滤镜拍照模式进行调整,解决了相关技术中对称滤镜拍照模式下只能按照配置对待拍摄物体的固定一侧进行对称拍摄,从而导致对称滤镜拍照模式功能单一的技术问题,进而达到了根据待拍摄物体灵活调整滤镜拍照模式中的对称轴的效果,提高了用户的体验度。
As described above, the processing method and apparatus for photographing mode provided by the embodiments of the present invention have the following beneficial effects: adjusting the filter photographing mode according to the symmetry axis of the object to be photographed, and solving the symmetric filter photographing mode in the related art. The symmetrical shooting can only be performed according to the fixed side of the object to be photographed, thereby causing a single technical problem of the symmetrical filter photographing mode function, thereby achieving the effect of flexibly adjusting the symmetry axis in the filter photographing mode according to the object to be photographed, and improving The user experience.
Claims (10)
- 一种拍照模式的处理方法,包括:A method for processing a photographing mode, comprising:确定待拍摄物体的物体对称轴;Determining the axis of symmetry of the object to be photographed;根据所述物体对称轴确定对所述待拍摄物体进行拍照时的对称滤镜拍照模式中的滤镜对称轴;Determining, according to the axis of symmetry of the object, a filter symmetry axis in a symmetric filter photographing mode when photographing the object to be photographed;按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理。The symmetric filter photographing mode is adjusted according to the determined filter symmetry axis.
- 根据权利要求1所述的方法,其中,在按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,还包括:The method of claim 1, wherein after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis, the method further comprises:在进入调整后的所述对称滤镜拍照模式后,接收第一触摸信号;Receiving the first touch signal after entering the adjusted symmetric filter photographing mode;根据接收所述第一触摸信号的位置与所述滤镜对称轴的位置关系,确定需要进行镜像的所述待拍摄物体的图像区域;Determining an image area of the object to be photographed that needs to be mirrored according to a positional relationship between a position at which the first touch signal is received and the axis of symmetry of the filter;根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整。The symmetric filter photographing mode is adjusted according to the determined image area of the object to be photographed that needs to be mirrored.
- 根据权利要求2所述的方法,其中,The method of claim 2, wherein根据接收所述第一触摸信号的位置与所述滤镜对称轴的位置关系,确定需要进行镜像的所述待拍摄物体的图像区域包括:当接收所述第一触摸信号的位置位于所述滤镜对称轴的第一侧时,确定所述对称滤镜拍照模式中的所述滤镜对称轴的第一侧显示区域中的图像为需要进行镜像的所述待拍摄物体的图像区域;Determining, according to a positional relationship between a position of the first touch signal and a position of the filter symmetry axis, an image area of the object to be photographed that needs to be mirrored includes: when the position at which the first touch signal is received is located in the filter Determining, in the first side of the mirror symmetry axis, an image in the first side display area of the filter symmetry axis in the symmetric filter photographing mode as an image area of the object to be photographed that needs to be mirrored;根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整包括:在所述对称滤镜拍照模式中的所述滤镜对称轴的第二侧显示区域中显示为所述第一侧显示区域中的图像,其中,所述第二侧为以所述滤镜对称轴为基准与所述第一侧相对的一侧。Adjusting the symmetric filter photographing mode according to the determined image area of the object to be photographed that needs to be mirrored includes: in the second side display area of the filter symmetry axis in the symmetric filter photographing mode Displayed as an image in the first side display area, wherein the second side is a side opposite the first side with respect to the filter symmetry axis.
- 根据权利要求1至3中任一项所述的方法,其中,在按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,还包括:The method according to any one of claims 1 to 3, further comprising: after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis, further comprising:接收第二触摸信号;Receiving a second touch signal;根据所述第二触摸信号,调整所述滤镜对称轴与显示的所述待拍摄物体的图像的相对位置;Adjusting, according to the second touch signal, a relative position of the filter symmetry axis and the displayed image of the object to be photographed;根据调整后的所述相对位置,确定需要进行镜像的所述待拍摄物体的图像区域;Determining, according to the adjusted relative position, an image area of the object to be photographed that needs to be mirrored;根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整。The symmetric filter photographing mode is adjusted according to the determined image area of the object to be photographed that needs to be mirrored.
- 根据权利要求4所述的方法,其中,根据所述第二触摸信号,调整所述滤镜对称轴与显 示的所述待拍摄物体的图像的所述相对位置,包括:The method according to claim 4, wherein said filter symmetry axis and display are adjusted according to said second touch signal The relative position of the image of the object to be photographed, including:根据所述第二触摸信号的触摸移动轨迹,确定所述滤镜对称轴相对于显示的所述待拍摄物体的图像的位置的移动方向;Determining, according to the touch movement trajectory of the second touch signal, a moving direction of the position of the filter symmetry axis with respect to the displayed image of the object to be photographed;根据确定的所述移动方向,调整所述滤镜对称轴与显示的所述待拍摄物体的图像的所述相对位置。The relative position of the filter symmetry axis and the displayed image of the object to be photographed is adjusted according to the determined moving direction.
- 一种拍照模式的处理装置,包括:A processing device for a photographing mode, comprising:第一确定模块,设置为确定待拍摄物体的物体对称轴;a first determining module, configured to determine an object symmetry axis of the object to be photographed;第二确定模块,设置为根据所述物体对称轴确定对所述待拍摄物体进行拍照时的对称滤镜拍照模式中的滤镜对称轴;a second determining module, configured to determine a filter symmetry axis in a symmetric filter photographing mode when photographing the object to be photographed according to the object symmetry axis;处理模块,设置为按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理。The processing module is configured to adjust the symmetric filter photographing mode according to the determined filter symmetry axis.
- 根据权利要求6所述的装置,其中,还包括:The apparatus of claim 6 further comprising:第一接收模块,设置为在按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,在进入调整后的所述对称滤镜拍照模式后,接收第一触摸信号;The first receiving module is configured to receive the first touch signal after entering the adjusted symmetric filter photographing mode after performing the adjusting process on the symmetric filter photographing mode according to the determined filter symmetry axis;第三确定模块,设置为根据接收所述第一触摸信号的位置与所述滤镜对称轴的位置关系,确定需要进行镜像的所述待拍摄物体的图像区域;a third determining module, configured to determine an image area of the object to be photographed that needs to be mirrored according to a positional relationship between a position of receiving the first touch signal and the axis of symmetry of the filter;第一调整模块,设置为根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整。The first adjustment module is configured to adjust the symmetric filter photographing mode according to the image area of the object to be photographed that is mirrored according to the determined needs.
- 根据权利要求7所述的装置,其中,The apparatus according to claim 7, wherein所述第三确定模块包括:第一确定单元,设置为当接收所述第一触摸信号的位置位于所述滤镜对称轴的第一侧时,确定所述对称滤镜拍照模式中的所述滤镜对称轴的第一侧显示区域中的图像为需要进行镜像的所述待拍摄物体的图像区域;The third determining module includes: a first determining unit configured to determine the symmetrical filter photographing mode when the position at which the first touch signal is received is located on a first side of the filter symmetry axis An image in the first side display area of the filter symmetry axis is an image area of the object to be photographed that needs to be mirrored;所述第一调整模块包括:显示单元,设置为在所述对称滤镜拍照模式中的所述滤镜对称轴的第二侧显示区域中显示为所述第一侧显示区域中的图像,其中,所述第二侧为以所述滤镜对称轴为基准与所述第一侧相对的一侧。The first adjustment module includes: a display unit configured to display an image in the first side display area in a second side display area of the filter symmetry axis in the symmetric filter photographing mode, wherein The second side is a side opposite to the first side with reference to the filter symmetry axis.
- 根据权利要求6至8中任一项所述的装置,其中,还包括:The apparatus according to any one of claims 6 to 8, further comprising:第二接收模块,设置为在按照确定的所述滤镜对称轴对所述对称滤镜拍照模式进行调整处理之后,接收第二触摸信号;a second receiving module, configured to receive a second touch signal after adjusting the symmetric filter photographing mode according to the determined filter symmetry axis;第二调整模块,设置为根据所述第二触摸信号,调整所述滤镜对称轴与显示的所述待拍摄物体的图像的相对位置; a second adjustment module, configured to adjust a relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the second touch signal;第四确定模块,设置为根据调整后的所述相对位置,确定需要进行镜像的所述待拍摄物体的图像区域;a fourth determining module, configured to determine an image area of the object to be photographed that needs to be mirrored according to the adjusted relative position;第三调整模块,设置为根据确定的需要进行镜像的所述待拍摄物体的图像区域对所述对称滤镜拍照模式进行调整。The third adjustment module is configured to adjust the symmetric filter photographing mode according to the image area of the object to be photographed that is mirrored according to the determined needs.
- 根据权利要求9所述的装置,其中,所述第二调整模块,包括:The apparatus according to claim 9, wherein the second adjustment module comprises:第二确定单元,设置为根据所述第二触摸信号的触摸移动轨迹,确定所述滤镜对称轴相对于显示的所述待拍摄物体的图像的位置的移动方向;a second determining unit, configured to determine a moving direction of the position of the filter symmetry axis with respect to the displayed image of the object to be photographed according to the touch movement trajectory of the second touch signal;调整单元,设置为根据确定的所述移动方向,调整所述滤镜对称轴与显示的所述待拍摄物体的图像的所述相对位置。 And an adjusting unit configured to adjust the relative position of the filter symmetry axis and the displayed image of the object to be photographed according to the determined moving direction.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510990491.3A CN106921826B (en) | 2015-12-24 | 2015-12-24 | Photographing mode processing method and device |
CN201510990491.3 | 2015-12-24 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017107324A1 true WO2017107324A1 (en) | 2017-06-29 |
Family
ID=59088902
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/076898 WO2017107324A1 (en) | 2015-12-24 | 2016-03-21 | Photographing mode processing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106921826B (en) |
WO (1) | WO2017107324A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112905088A (en) * | 2021-02-07 | 2021-06-04 | 北京蜂巢世纪科技有限公司 | Video shooting control method and device |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112565614B (en) * | 2021-02-22 | 2021-05-14 | 四川赛狄信息技术股份公司 | Signal processing module and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011250998A (en) * | 2010-06-02 | 2011-12-15 | Kyushu Institute Of Technology | Device, method and program for determining symmetry |
CN103731605A (en) * | 2013-12-16 | 2014-04-16 | 宇龙计算机通信科技(深圳)有限公司 | Photographing method and terminal |
CN104754216A (en) * | 2015-03-06 | 2015-07-01 | 广东欧珀移动通信有限公司 | Photographing method and device |
CN104952065A (en) * | 2015-05-10 | 2015-09-30 | 浙江大学 | Method for building multilayer detailed skeleton model of garment images |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008294981A (en) * | 2007-05-28 | 2008-12-04 | Panasonic Corp | Camera system |
JP2011211493A (en) * | 2010-03-30 | 2011-10-20 | Sony Corp | Imaging apparatus, display method, and program |
CN103905730B (en) * | 2014-03-24 | 2015-11-25 | 努比亚技术有限公司 | The image pickup method of mobile terminal and mobile terminal |
CN104243831A (en) * | 2014-09-30 | 2014-12-24 | 北京金山安全软件有限公司 | Method and device for shooting through mobile terminal and mobile terminal |
-
2015
- 2015-12-24 CN CN201510990491.3A patent/CN106921826B/en active Active
-
2016
- 2016-03-21 WO PCT/CN2016/076898 patent/WO2017107324A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011250998A (en) * | 2010-06-02 | 2011-12-15 | Kyushu Institute Of Technology | Device, method and program for determining symmetry |
CN103731605A (en) * | 2013-12-16 | 2014-04-16 | 宇龙计算机通信科技(深圳)有限公司 | Photographing method and terminal |
CN104754216A (en) * | 2015-03-06 | 2015-07-01 | 广东欧珀移动通信有限公司 | Photographing method and device |
CN104952065A (en) * | 2015-05-10 | 2015-09-30 | 浙江大学 | Method for building multilayer detailed skeleton model of garment images |
Non-Patent Citations (1)
Title |
---|
DÀNCHAOFAN: "Simple creative photography", PCFAN, no. 22, 31 December 2010 (2010-12-31), pages 59, ISBN: 1672-528X * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112905088A (en) * | 2021-02-07 | 2021-06-04 | 北京蜂巢世纪科技有限公司 | Video shooting control method and device |
US11539878B2 (en) | 2021-02-07 | 2022-12-27 | Beijing SuperHexa Century Technology CO. Ltd. | Method and apparatus for controlling video recording |
Also Published As
Publication number | Publication date |
---|---|
CN106921826A (en) | 2017-07-04 |
CN106921826B (en) | 2021-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3346329B1 (en) | Image processing method and apparatus | |
US9357117B2 (en) | Photographing device for producing composite image and method using the same | |
EP3486760B1 (en) | Preview picture presentation method, device and terminal | |
KR20220130197A (en) | Filming method, apparatus, electronic equipment and storage medium | |
JP5365885B2 (en) | Handheld electronic device, double image acquisition method applied thereto, and program loaded thereon | |
CN112135046B (en) | Video shooting method, video shooting device and electronic equipment | |
WO2017016030A1 (en) | Image processing method and terminal | |
EP3544286B1 (en) | Focusing method, device and storage medium | |
CN103188434B (en) | Method and device of image collection | |
KR20140102443A (en) | Object tracking method using camera and camera system for object tracking | |
JP2016143919A (en) | Image processing apparatus and control method therefor | |
JP6091669B2 (en) | IMAGING DEVICE, IMAGING ASSIST METHOD, AND RECORDING MEDIUM CONTAINING IMAGING ASSIST PROGRAM | |
US10939044B1 (en) | Automatically setting zoom level for image capture | |
US20150187056A1 (en) | Electronic apparatus and image processing method | |
CN106200916B (en) | Control method, device and the terminal device of augmented reality image | |
CN113545030A (en) | Automatic generation of full focus images by moving camera | |
JP6283329B2 (en) | Augmented Reality Object Recognition Device | |
CN113965687B (en) | Shooting method and device and electronic equipment | |
WO2019071442A1 (en) | Zoom control method and device, and photographing terminal | |
WO2017107324A1 (en) | Photographing mode processing method and device | |
WO2020000393A1 (en) | Image processing method and apparatus, first electronic device, and image processing system | |
CN106488128B (en) | Automatic photographing method and device | |
EP2890116A1 (en) | Method of displaying a photographing mode by using lens characteristics, computer-readable storage medium of recording the method and an electronic apparatus | |
CN104735353A (en) | Method and device for taking panoramic photo | |
WO2017024954A1 (en) | Method and device for image display |
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: 16877138 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: 16877138 Country of ref document: EP Kind code of ref document: A1 |