WO2023151527A1 - 图像拍摄方法及装置 - Google Patents
图像拍摄方法及装置 Download PDFInfo
- Publication number
- WO2023151527A1 WO2023151527A1 PCT/CN2023/074523 CN2023074523W WO2023151527A1 WO 2023151527 A1 WO2023151527 A1 WO 2023151527A1 CN 2023074523 W CN2023074523 W CN 2023074523W WO 2023151527 A1 WO2023151527 A1 WO 2023151527A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- target
- target object
- input
- horizon
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000005484 gravity Effects 0.000 claims abstract description 40
- 230000004044 response Effects 0.000 claims abstract description 18
- 230000002194 synthesizing effect Effects 0.000 claims abstract description 7
- 230000008859 change Effects 0.000 claims description 46
- 238000004891 communication Methods 0.000 claims description 7
- 230000015572 biosynthetic process Effects 0.000 claims description 6
- 238000003786 synthesis reaction Methods 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 abstract description 11
- 230000000694 effects Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 241001465754 Metazoa Species 0.000 description 2
- 230000008439 repair process Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
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/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
- H04N23/632—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
-
- 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/61—Control of cameras or camera modules based on recognised objects
-
- 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/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
-
- 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 application belongs to the technical field of image processing, and in particular relates to an image capturing method and device.
- the purpose of the embodiments of the present application is to provide an image capturing method and device, which can solve the problem that it is difficult for users to acquire interesting images.
- the embodiment of the present application provides an image capturing method, the method is applied to an electronic device, and the method includes:
- the shooting preview interface displays the first image containing the target object, receiving a first input from the user on the first image, the first input is used to determine the horizon direction of the first image;
- the first background image and the first subject rotation image are synthesized to obtain the first target image;
- the first background image is an image other than the image of the target object in the first image, and the first subject rotation image is the image obtained after rotating the image of the target object by the first rotation angle,
- the first rotation angle is an angle between the first gravity direction of the first electronic device and the first gravity direction relative to the horizon direction;
- the embodiment of the present application provides an image capturing device, which is applied to electronic equipment, and the device includes:
- the receiving module is configured to receive a user's first input on the first image when the shooting preview interface displays the first image containing the target object, and the first input is used to determine the horizon direction of the first image;
- the synthesis module is used to synthesize the first background image and the first subject rotation image in response to the first input to obtain the first target image;
- the first background image is an image other than the image of the target object in the first image
- the second A subject rotation image is an image obtained by rotating the image of the target object by a first rotation angle, where the first rotation angle is the angle of the first gravity direction relative to the horizon direction;
- a display module configured to display the first target image.
- an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
- an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented .
- the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
- the user's first input on the first image is received, and the first input is used to determine the horizon direction of the first image, and then respond to The first input is to synthesize the first background image and the first subject rotation image to obtain and display the first target image.
- the first background image is an image other than the image of the target object in the first image
- the first subject rotation image is an image obtained by rotating the image of the target object by a first rotation angle.
- the gravity direction of the equipment is the first The angle of the force direction relative to the horizon direction. It does not require the user to have high sports skills or image processing skills, and only needs the user to turn on the corresponding shooting mode and select the direction of the horizon to obtain interesting images, which greatly reduces the difficulty for users to obtain interesting images.
- FIG. 1 is a schematic flow chart of an image capturing method provided in an embodiment of the present application
- Fig. 2 is a schematic diagram of an operation for enabling a shooting mode control provided by an embodiment of the present application
- Fig. 3 is a schematic diagram of a first image provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of a first target image provided by an embodiment of the present application.
- Fig. 5 is a schematic diagram of alternative direction signs in the first image provided by the embodiment of the present application.
- FIG. 6 is a schematic structural diagram of an image capture device provided in an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
- Fig. 1 shows a schematic flowchart of an image capturing method provided by an embodiment of the present application. As shown in Figure 1, the method may include the following steps:
- S110 Receive a first input from a user on the first image when the first image including the target object is displayed on the shooting preview interface.
- the first input is used to determine the horizon direction of the first image
- the horizon direction is used to determine the rotation angle of the image of the target object when synthesizing the first target image
- the horizon direction is determined by the user's first input on the first image
- both the image of the target object and the first background image include a candidate direction identifier; the candidate direction identifier is used to characterize the trend of feature edges in the image of the target object and the first background image;
- the first input of the first image may include:
- the method may further include:
- the shooting preview interface displays the first image containing the target object
- a third input from the user on the first image is received; in response to the third input, the fun shooting mode is triggered.
- the third input can be the input to the shooting mode control displayed on the shooting preview interface, and the shooting mode control can display a mark for identifying the shooting mode, so that the user can distinguish the function of the shooting mode control, as shown in Figure 2, the shooting mode control
- the word "fun recording" can be displayed, and the user triggers the shooting mode control through the third input to make the electronic device enter the fun shooting mode.
- the third input can also be used to trigger the shooting mode control, and its form can be various, for example, click, slide, long press and so on.
- the first background image is an image other than the image of the target object in the first image
- the first subject rotation image is an image obtained by rotating the image of the target object by a first rotation angle
- the first rotation angle is the first gravity
- the angle of the direction relative to the horizon direction; the first background image and the first subject rotation image can be obtained by pre-processing the image of the target object.
- the first gravity direction may be collected by a gravity sensor provided in the electronic device, and the first rotation angle may be calculated based on the first gravity direction and the horizon direction.
- the method before S120: synthesizing the first background image and the first subject rotation image in response to the first input to obtain the first target image, the method further includes:
- An image of the target object in the first image and a first background image are identified.
- an image recognition algorithm when recognizing the image of the target object of the first image and the first background image, an image recognition algorithm can be used for recognition, and the image recognition algorithm can recognize each feature of the first image, and the image recognition algorithm can be selected as the yolo_v3 algorithm, the yolo_v3 algorithm It can be obtained by training the original image and the label image corresponding to the original image, the original image corresponds to the first image, the label image corresponds to the image of the target object, and the image of the target object is identified and distinguished from the first background image by an image recognition algorithm.
- the image of the target object may be a person, an animal, etc., and the first background image is Beijing other than the person or the animal. For example, as shown in FIG. 3 , the "little girl" is the image of the target object, and the background other than the "little girl” is the first background image.
- the first target image may be displayed, and the user may intuitively observe the shooting effect of the first target image, thereby optimizing user experience.
- the first target image of the target object can be photographed continuously, and the first target image is displayed in time sequence to form a video.
- the background image in each frame of the video does not rotate, but the subject image rotates at a uniform angle to form a video. Fun video effects.
- the user's first input on the first image is received, and the first input is used to determine the first image of the first image.
- Horizon direction and then in response to the first input, synthesize the first background image and the first subject rotation image to obtain and display the first target image.
- the first background image is an image other than the image of the target object in the first image
- the first subject rotation image is an image obtained by rotating the image of the target object by a first rotation angle.
- Device gravity direction The angle of the first gravity direction relative to the horizon direction. It does not require the user to have high sports skills or image processing skills, and only needs the user to turn on the corresponding shooting mode and select the direction of the horizon to obtain interesting images, which greatly reduces the difficulty for users to obtain interesting images.
- the first input is a sliding input
- the horizon direction is the sliding direction of the first input
- the user can set the direction of the horizon expected by the user through sliding input, so as to optimize user experience.
- both the image of the target object and the first background image include an alternative direction identification; the alternative direction identification is used to characterize the trend of the feature edge in the image of the target object and the first background image ;
- the user can quickly set the expected direction of the horizon by selecting an alternative direction indicator, thereby optimizing user experience.
- the first gravity direction is acquired at the first moment, and the first moment is the moment when the first image of the target object is collected; after S130: after displaying the first target image, the method may further include:
- the first direction is the direction after the horizon direction is changed according to the preset horizon change rule.
- An image of the target object and a second background image of the second image are identified; the second background image is an image in the second image other than the image of the target object.
- the principle of recognizing the second subject image and the second background image of the second image is similar to the principle of recognizing the image of the target object and the first background image of the first image, which will not be repeated here.
- the second rotation image is an image obtained by rotating the image of the target object in the second image by a second rotation angle
- the second gravity direction of the second electronic device is acquired at the second moment; the second moment is the moment at which the second image of the target object is collected; the first direction is the direction after the horizon direction is changed according to the preset horizon change rule
- the preset horizon change rule may be that the horizon rotates at a constant speed, specifically, the second image is rotated by 10° every time a frame is collected.
- the second rotated image is an image obtained by rotating the second subject image by a second rotation angle; the synthesis principle of the second target image is similar to that of the first target image, and will not be repeated here.
- the second target image is displayed, and the user can intuitively observe the shooting effect of the second target image, thereby optimizing user experience.
- the second target image of the target object can be photographed continuously, and the first target image and the second target image are displayed in time sequence to form a video.
- the background image does not rotate in each frame of the video, and the subject image is at a constant speed Rotate with varying angles for fun video effects.
- the method may further include:
- the target horizon change rule is determined as a preset horizon change rule.
- the optional horizon change rule option can provide the user with several horizon change modes for the user to choose from. After the user selects the target horizon change rule through the second input, the target horizon change rule is determined as the preset horizon change rule, so that the finally presented The horizon change mode is in line with user expectations, and the user mode is optimized.
- the user's first input on the first image is received, and the first input is used to determine the horizon direction of the first image, and then respond to The first input is to synthesize the first background image and the first subject rotation image to obtain and display the first target image.
- the first background image is the object in the first image
- the first subject rotation image is an image obtained by rotating the image of the target object by a first rotation angle
- the first rotation angle is the angle between the first gravity direction of the first electronic device and the first gravity direction relative to the horizon direction . It does not require the user to have high sports skills or image processing skills, and only needs the user to turn on the corresponding shooting mode and select the direction of the horizon to obtain interesting images, which greatly reduces the difficulty for users to obtain interesting images.
- the executing subject may be an image capturing device, or a control module in the image capturing device for executing the image capturing method.
- the image capturing device provided in the embodiment of the present application is described by taking the image capturing device executing the image capturing method as an example.
- FIG. 6 shows a schematic structural diagram of an image capture device provided by an embodiment of the present application.
- Each module in the device shown in FIG. 6 has the function of implementing each step in FIG. 1 and can achieve its corresponding technical effect.
- the device may include:
- the receiving module 610 is configured to receive a user's first input on the first image when the shooting preview interface displays the first image including the target object, and the first input is used to determine the horizon direction of the first image.
- the synthesizing module 620 is configured to synthesize the first background image and the first subject rotation image to obtain the first target image in response to the first input.
- the first background image is an image other than the image of the target object in the first image
- the first subject rotation image is an image obtained by rotating the image of the target object by a first rotation angle.
- the first rotation angle is relative to the first gravity direction. The angle in the direction of the horizon.
- a display module 630 configured to display the first target image.
- the user's first input on the first image is received, and the first input is used to determine the horizon direction of the first image, and then respond to The first input is to synthesize the first background image and the first subject rotation image to obtain and display the first target image.
- the first background image is an image other than the image of the target object in the first image
- the first subject rotation image is an image obtained by rotating the image of the target object by a first rotation angle.
- Device gravity direction The angle of the first gravity direction relative to the horizon direction. It does not require the user to have high sports skills or image processing skills, and only needs the user to turn on the corresponding shooting mode and select the direction of the horizon to obtain interesting images, which greatly reduces the difficulty for users to obtain interesting images.
- the image capture device further includes an identification module.
- the identification module is used to identify the image of the target object in the first image and the first background image before synthesizing the first background image and the first subject rotation image in response to the first input to obtain the first target image.
- the first input is a sliding input
- the horizon direction is the sliding direction of the first input
- both the image of the target object and the first background image include alternative direction indications.
- the candidate direction identifier is used to characterize the direction of the feature edge in the image of the target object and the first background image.
- the receiving module 610 is specifically configured to receive the user's first input on the target direction mark in the candidate direction marks, and use the direction indicated by the target direction mark as the horizon direction.
- the first gravity direction is acquired at a first moment, and the first moment is the moment at which the first image of the target object is collected.
- the image capturing device also includes a collection module, a calculation module and a recognition module.
- the collection module is configured to collect a second image of the target object and obtain a second gravity direction after the first target image is displayed.
- the calculation module is used to calculate the second rotation angle of the second gravity direction relative to the first direction.
- the first direction is a direction after the horizon direction is changed according to a preset horizon change rule.
- the identification module is used to identify the image of the target object in the second image and the second background image.
- the second background image is an image other than the image of the target object in the second image.
- the synthesis module 620 is further configured to synthesize the second background image and the second rotation image to obtain a second target image, and the second rotation image is an image obtained by rotating the image of the target object in the second image by a second rotation angle.
- the display module 630 is further configured to display the second target image.
- the image capture device further includes a determination module.
- the display module 630 is further configured to display alternative horizon change rule options before capturing the second image of the target object.
- the receiving module 610 is further configured to receive the user's second input of the target horizon change rule in the alternative horizon change rule option.
- a determination module configured to determine the target horizon change rule as a preset horizon change rule in response to the second input.
- the user's first input on the first image is received, and the first input is used to determine the horizon direction of the first image, and then respond to The first input is to synthesize the first background image and the first subject rotation image to obtain and display the first target image.
- the first background image is an image other than the image of the target object in the first image
- the first subject rotation image is an image obtained by rotating the image of the target object by a first rotation angle.
- Device gravity direction The angle of the first gravity direction relative to the horizon direction. It does not require the user to have high sports skills or image processing skills, and only needs the user to turn on the corresponding shooting mode and select the direction of the horizon to obtain interesting images, which greatly reduces the difficulty for users to obtain interesting images.
- the image capturing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
- the device may be a mobile electronic device or a non-mobile electronic device.
- the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
- non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
- Network Attached Storage NAS
- personal computer personal computer, PC
- television television
- teller machine or self-service machine etc.
- the image capture device in the embodiment of the present application may be a device with an operating system.
- the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
- the image capture device provided in the embodiment of the present application can implement various processes implemented by the method embodiments in FIG. 1 to FIG. 5 , and details are not repeated here to avoid repetition.
- the embodiment of the present application also provides an electronic device 700, including a processor 701, a memory 702, and a program or instruction stored in the memory 702 and operable on the processor 701.
- the various processes of the embodiment can achieve the same technical effect, so in order to avoid repetition, details are not repeated here.
- the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
- FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
- the electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810, etc. part.
- the electronic device 800 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 810 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
- a power supply such as a battery
- the structure of the electronic device shown in FIG. 7 does not constitute a limitation to the electronic device.
- the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
- the input unit 804 can be used to perform the following steps:
- the shooting preview interface displays a first image including a target object
- receive a first input from a user on the first image where the first input is used to determine a horizon direction of the first image.
- the processor 810 may be configured to perform the following steps:
- the display unit 806 may be used to perform the following steps:
- the input unit 804 may also be used to perform the following steps:
- both the image of the target object and the first background image include candidate direction identifiers; the candidate direction identifiers are used to characterize the trend of feature edges in the image of the target object and the first background image.
- the user can quickly set the expected direction of the horizon by selecting an alternative direction indicator, thereby optimizing user experience.
- the input unit 804 may also be used to perform the following steps:
- the processor 810 may also be configured to perform the following steps:
- the first direction is the direction after the horizon direction changes according to the preset horizon change rule; identify the image of the target object of the second image and the second background image; the second background The image is an image other than the image of the target object in the second image; the second background image and the second rotation image are synthesized to obtain the second target image, and the second rotation image is to rotate the image of the target object of the second image The image obtained after rotating the angle.
- the principle of identifying the second subject image and the second background image of the second image is similar to the principle of identifying the image of the target object and the first background image of the first image, and will not be repeated here;
- the gravity direction of the second electronic device is the second gravity The direction is acquired at the second moment; the second moment is the moment when the second image of the target object is collected; the first direction is the direction after the horizon direction changes according to the preset horizon change rule, for example, the preset horizon change rule can be the horizon
- the uniform rotation specifically, may be that the second image is rotated by 10° every time a frame is collected.
- the second rotated image is an image obtained by rotating the second subject image by a second rotation angle; the synthesis principle of the second target image is similar to that of the first target image, and will not be repeated here.
- the second target image of the target object can be photographed continuously, and the first target image and the second target image are displayed in time sequence to form a video.
- the background image does not rotate in each frame of the video, and the subject image is at a constant speed Rotate with varying angles for fun video effects.
- the display unit 806 may also be used to perform the following steps:
- the second target image is displayed, and the user can intuitively observe the shooting effect of the second target image, thereby optimizing user experience.
- the display unit 806 may also be used to perform the following steps:
- the input unit 804 can also be used to perform the following steps:
- the processor 810 may also be configured to perform the following steps:
- the target horizon change rule is determined as a preset horizon change rule.
- the optional horizon change rule option can provide the user with several horizon change modes for the user to choose from. After the user selects the target horizon change rule through the second input, the target horizon change rule is determined as the preset horizon change rule, so that the finally presented The horizon change mode is in line with user expectations, and the user mode is optimized.
- the user's first input on the first image is received, and the first input is used to determine the horizon direction of the first image, and then respond to The first input is to synthesize the first background image and the first subject rotation image to obtain and display the first target image.
- the first background image is an image other than the image of the target object in the first image
- the first subject rotation image is an image obtained by rotating the image of the target object by a first rotation angle.
- Device gravity direction The angle of the first gravity direction relative to the horizon direction. It does not require the user to have high sports skills or image processing skills, and only needs the user to turn on the corresponding shooting mode and select the direction of the horizon to obtain interesting images, which greatly reduces the difficulty for users to obtain interesting images.
- the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
- the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
- the user input unit 807 includes a touch panel 8081 and other input devices 8072 .
- the touch panel 8081 is also called a touch screen.
- the touch panel 8081 may include two parts, a touch detection device and a touch controller.
- Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
- Memory 809 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
- the processor 810 can integrate an application processor and a modem processor, wherein the application processing The processor mainly handles the operating system, user interface and application programs, etc., and the modem processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810 .
- the embodiment of the present application also provides a readable storage medium.
- the readable storage medium stores programs or instructions.
- the program or instructions are executed by the processor, the various processes of the above-mentioned image capture method embodiments can be achieved, and the same To avoid repetition, the technical effects will not be repeated here.
- the processor is the processor in the electronic device described in the above embodiments.
- the readable storage medium includes a computer readable storage medium, and examples of the computer readable storage medium include a non-transitory computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory ( Random Access Memory, RAM), disk or CD, etc.
- the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above image capture method embodiment Each process can achieve the same technical effect, so in order to avoid repetition, it will not be repeated here.
- chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
- the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
- the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
- Studio Devices (AREA)
Abstract
本申请公开了一种图像拍摄方法及装置,属于图像处理技术领域。图像拍摄方法包括:在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的地平线方向;响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像;第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一电子设备重力方向第一重力方向相对地平线方向的角度;显示第一目标图像。
Description
相关申请的交叉引用
本申请主张在2022年02月09日在中国提交的中国专利申请号202210121041.0的优先权,其全部内容通过引用包含于此。
本申请属于图像处理技术领域,具体涉及一种图像拍摄方法及装置。
随着智能手机图像技术的不断提升以及图像应用的火热流行,现在越来越多的人们使用手机进行拍照或者录像来分享生活。一些趣味图像需要专业人员做出高难度动作或者经过复杂的后期修图处理才能得到,例如,极限运动图像、空中行走图像等。不具备运动技巧或图像处理技巧的用户群难以获取趣味图像。
目前用户获取趣味图像的难度较高。
发明内容
本申请实施例的目的是提供一种图像拍摄方法及装置,能够解决用户获取趣味图像的难度较高的问题。
第一方面,本申请实施例提供一种图像拍摄方法,方法应用于电子设备,方法包括:
在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的地平线方向;
响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像;第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,
第一转动角度为第一电子设备重力方向第一重力方向相对地平线方向的角度;
显示第一目标图像。
第二方面,本申请实施例提供一种图像拍摄装置,装置应用于电子设备,装置包括:
接收模块,用于在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的地平线方向;
合成模块,用于响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像;第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一重力方向相对地平线方向的角度;
显示模块,用于显示第一目标图像。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
在本申请实施例中,在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的地平线方向,然后响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像并显示。其中,第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一电子设备重力方向第一重
力方向相对地平线方向的角度。不要求用户具有较高的运动技巧或图像处理技巧,仅需用户打开相应拍摄模式和选中地平线方向即可获取到趣味图像,极大地降低了用户获取趣味图像的难度。
图1是本申请实施例提供的一种图像拍摄方法的流程示意图;
图2是本申请实施例提供的一种开启拍摄模式控件的操作示意图;
图3是本申请实施例提供的一种第一图像示意图;
图4是本申请实施例提供的一种第一目标图像示意图;
图5是本申请实施例提供的第一图像中的备选方向标识示意图;
图6是本申请实施例提供的一种图像拍摄装置的结构示意图;
图7是本申请实施例提供的一种电子设备的结构示意图;
图8是本申请实施例提供的另一种电子设备的结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
现有的很多极限运动视频以及趣味视频都是专业运动人员配合专业摄像人员进行拍摄得到的。专业人士做这些动作都很危险,普通用户无法完成这些动作且大多数用户也不具备这些拍摄技巧。后期制作的技术门槛高,
请专业人士制作时间和金钱成本都比较高,所以普通用户像拍摄这样的趣味视频(如倒立空中行走,空中翻转等)是很困难的,而这类视频往往又很吸引人;目前用户获取趣味图像的难度较高。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的图像拍摄方法进行详细地说明。
图1示出了本申请一个实施例提供的图像拍摄方法的流程示意图。如图1所示,该方法可以包括以下步骤:
S110,在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入。
其中,第一输入用于确定第一图像的地平线方向,地平线方向用于确定目标对象的图像在合成第一目标图像时的旋转角度,该地平线方向由用户对第一图像的第一输入确定。
在一种实施例中,目标对象的图像和第一背景图像均包括备选方向标识;备选方向标识用于表征目标对象的图像和第一背景图像中的特征边缘走向;S110:接收用户对第一图像的第一输入,可以包括:
接收用户对备选方向标识中目标方向标识的第一输入,以目标方向标识指示的方向为地平线方向。
在一种实施例中,在S110,在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入之前,该方法还可以包括:
在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第三输入;响应于第三输入,触发趣味拍摄模式。
第三输入可以是对拍摄预览界面显示的拍摄模式控件的输入,拍摄模式控件可以显示有用于标识拍摄模式的标识,以供用户区分该拍摄模式控件的作用,如图2所示,拍摄模式控件可以显示有“趣味录制”字样,用户通过第三输入触发该拍摄模式控件即可使电子设备进入趣味拍摄模式。第三输入还可以用于触发该拍摄模式控件,其形式可以是多样的,例如,点击、滑动、长按等。
S120,响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像。
其中,第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一重力方向相对地平线方向的角度;可以通过预先对目标对象的图像处理,进而得到第一背景图像和第一主体旋转图像。第一重力方向可以通过电子设备设置的重力传感器采集得到,基于第一重力方向和地平线方向即可计算得到第一转动角度。在合成第一目标图像时,目标对象的图像旋转后,目标对象的图像的一部分会覆盖到第一背景图像上,目标对象的图像原位置会出现部分空白,可通过图像修补算法以第一背景图像为参考对空白进行修补,图像修补算法可以选用为inpaint算法,最终得到第一目标图像,第一目标图像可以如图4所示。
在一种实施例中,在S120:响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像之前,该方法还包括:
识别第一图像中目标对象的图像和第一背景图像。
其中,识别第一图像的目标对象的图像和第一背景图像时,可以应用图像识别算法进行识别,图像识别算法能够识别第一图像的各特征,图像识别算法可以选用为yolo_v3算法,该yolo_v3算法可以通过原始图像和原始图像对应的标签图像训练而得到,原始图像对应第一图像,标签图像对应目标对象的图像,通过图像识别算法对目标对象的图像和第一背景图像进行识别区分。目标对象的图像可以是人、动物等,第一背景图像则是除人、动物以外的北京。例如,如图3所示,其中“小女孩”即目标对象的图像,除“小女孩”之外的背景即第一背景图像。
S130,显示第一目标图像。
其中,在得到第一目标图像后,可以显示第一目标图像,用户可以直观观察第一目标图像的拍摄效果,优化用户体验。基于本申请实施例,可以连续拍摄目标对象的第一目标图像,并按时序展示第一目标图像,形成视频,该视频各帧中背景图像不进行旋转,而主体图像按统一的角度旋转,形成趣味十足的视频效果。
在本申请实施例中,在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的
地平线方向,然后响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像并显示。其中,第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一电子设备重力方向第一重力方向相对地平线方向的角度。不要求用户具有较高的运动技巧或图像处理技巧,仅需用户打开相应拍摄模式和选中地平线方向即可获取到趣味图像,极大地降低了用户获取趣味图像的难度。
在一种实施例中,第一输入为滑动输入,地平线方向为第一输入的滑动方向。
其中,基于第一输入确定地平线方向的模式,用户可以通过滑动输入设置用户预期的地平线方向,优化用户体验。
在一种实施例中,如图5所示,目标对象的图像和第一背景图像均包括备选方向标识;备选方向标识用于表征目标对象的图像和第一背景图像中的特征边缘走向;S110:接收用户对第一图像的第一输入,可以包括:
接收用户对备选方向标识中目标方向标识的第一输入,以目标方向标识指示的方向为地平线方向。
其中,基于第一输入确定地平线方向的模式,用户可以通过选择备选方向标识迅速设置预期的地平线方向,优化用户体验。
在一种实施例中,第一重力方向在第一时刻采集而得到,第一时刻为采集目标对象的第一图像的时刻;在S130:显示第一目标图像之后,该方法还可以包括:
采集目标对象的第二图像,并获取第二重力方向。
计算第二重力方向相对第一方向的第二转动角度;第一方向为地平线方向按照预设地平线变化规则变化后的方向。
识别第二图像的目标对象的图像和第二背景图像;第二背景图像为第二图像中除目标对象的图像之外的图像。
其中,识别第二图像的第二主体图像和第二背景图像与识别第一图像的目标对象的图像和第一背景图像的原理相似,在此不再赘述。
将第二背景图像和第二旋转图像合成,得到第二目标图像,第二旋转图像为将第二图像的目标对象的图像旋转第二转动角度后得到的图像;
显示第二目标图像。
其中,第二电子设备重力方向第二重力方向在第二时刻采集而得到;第二时刻为采集目标对象的第二图像的时刻;第一方向为地平线方向按照预设地平线变化规则变化后的方向,例如,预设地平线变化规则可以是地平线匀速旋转,具体的,可以是每采集一帧第二图像旋转10°。
其中,第二旋转图像为将第二主体图像旋转第二转动角度后得到的图像;第二目标图像的合成原理与合成第一目标图像的原理相似,在此不再赘述。
本申请实施例中,在得到第二目标图像后,显示第二目标图像,用户可以直观观察第二目标图像的拍摄效果,优化用户体验。基于本申请实施例,可以连续拍摄目标对象的第二目标图像,并按时序展示第一目标图像和第二目标图像,形成视频,该视频各帧中背景图像不进行旋转,而主体图像按匀速变换的角度旋转,形成趣味十足的视频效果。
在一种实施例中,在采集目标对象的第二图像之前,该方法还可以包括:
显示备选地平线变化规则选项;
接收用户对备选地平线变化规则选项中目标地平线变化规则的第二输入;
响应于第二输入,将目标地平线变化规则确定为预设地平线变化规则。
其中,备选地平线变化规则选项能够为用户提供几种地平线变化模式供用户选择,用户通过第二输入选中目标地平线变化规则后,将目标地平线变化规则确定为预设地平线变化规则,使得最终呈现的地平线变化模式符合用户预期,优化了用户模式。
在本申请实施例中,在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的地平线方向,然后响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像并显示。其中,第一背景图像为第一图像中除目
标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一电子设备重力方向第一重力方向相对地平线方向的角度。不要求用户具有较高的运动技巧或图像处理技巧,仅需用户打开相应拍摄模式和选中地平线方向即可获取到趣味图像,极大地降低了用户获取趣味图像的难度。
需要说明的是,本申请实施例提供的图像拍摄方法,执行主体可以为图像拍摄装置,或者该图像拍摄装置中的用于执行图像拍摄方法的控制模块。本申请实施例中以图像拍摄装置执行图像拍摄方法为例,说明本申请实施例提供的图像拍摄装置。
图6示出了本申请一个实施例提供的图像拍摄装置的结构示意图,图6所示装置中各模块具有实现图1中各个步骤的功能,并能达到其相应技术效果。如图6所示,该装置可以包括:
接收模块610,用于在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的地平线方向。
合成模块620,用于响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像。第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一重力方向相对地平线方向的角度。
显示模块630,用于显示第一目标图像。
在本申请实施例中,在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的地平线方向,然后响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像并显示。其中,第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一电子设备重力方向第一重力方向相对地平线方向的角度。不要求用户具有较高的运动技巧或图像处理技巧,仅需用户打开相应拍摄模式和选中地平线方向即可获取到趣味图像,极大地降低了用户获取趣味图像的难度。
在一种实施例中,该图像拍摄装置还包括识别模块。
识别模块,用于在响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像之前,识别第一图像中目标对象的图像和第一背景图像。
在一种实施例中,第一输入为滑动输入,地平线方向为第一输入的滑动方向。
在一种实施例中,目标对象的图像和第一背景图像均包括备选方向标识。备选方向标识用于表征目标对象的图像和第一背景图像中的特征边缘走向。
接收模块610,具体用于接收用户对备选方向标识中目标方向标识的第一输入,以目标方向标识指示的方向为地平线方向。
在一种实施例中,第一重力方向在第一时刻采集而得到,第一时刻为采集目标对象的第一图像的时刻。
该图像拍摄装置还包括采集模块,计算模块和识别模块。
采集模块,用于在显示第一目标图像之后,采集目标对象的第二图像,并获取第二重力方向。
计算模块,用于计算第二重力方向相对第一方向的第二转动角度。第一方向为地平线方向按照预设地平线变化规则变化后的方向。
识别模块,用于识别第二图像的目标对象的图像和第二背景图像。第二背景图像为第二图像中除目标对象的图像之外的图像。
合成模块620,还用于将第二背景图像和第二旋转图像合成,得到第二目标图像,第二旋转图像为将第二图像的目标对象的图像旋转第二转动角度后得到的图像。
显示模块630,还用于显示第二目标图像。
在一种实施例中,该图像拍摄装置还包括确定模块。
显示模块630,还用于在采集目标对象的第二图像之前,显示备选地平线变化规则选项。
接收模块610,还用于接收用户对备选地平线变化规则选项中目标地平线变化规则的第二输入。
确定模块,用于响应于第二输入,将目标地平线变化规则确定为预设地平线变化规则。
在本申请实施例中,在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的地平线方向,然后响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像并显示。其中,第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一电子设备重力方向第一重力方向相对地平线方向的角度。不要求用户具有较高的运动技巧或图像处理技巧,仅需用户打开相应拍摄模式和选中地平线方向即可获取到趣味图像,极大地降低了用户获取趣味图像的难度。
本申请实施例中的图像拍摄装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的图像拍摄装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的图像拍摄装置能够实现图1至图5的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图7所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述图像拍摄方法
实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
图8为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、以及处理器810等部件。
本领域技术人员可以理解,电子设备800还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,输入单元804,可以用于执行如下步骤:
S110,在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,其中,所述第一输入用于确定所述第一图像的地平线方向。
处理器810,可以用于执行如下步骤:
S120,响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像。
显示单元806,可以用于执行如下步骤:
S130,显示第一目标图像。
可选地,输入单元804,还可以用于执行如下步骤:
接收用户对备选方向标识中目标方向标识的第一输入,以目标方向标识指示的方向为地平线方向。其中,目标对象的图像和第一背景图像均包括备选方向标识;备选方向标识用于表征目标对象的图像和第一背景图像中的特征边缘走向。
其中,基于第一输入确定地平线方向的模式,用户可以通过选择备选方向标识迅速设置预期的地平线方向,优化用户体验。
可选地,输入单元804,还可以用于执行如下步骤:
采集目标对象的第二图像,并获取第二重力方向。
处理器810,还可以用于执行如下步骤:
计算第二重力方向相对第一方向的第二转动角度;第一方向为地平线方向按照预设地平线变化规则变化后的方向;识别第二图像的目标对象的图像和第二背景图像;第二背景图像为第二图像中除目标对象的图像之外的图像;将第二背景图像和第二旋转图像合成,得到第二目标图像,第二旋转图像为将第二图像的目标对象的图像旋转第二转动角度后得到的图像。
其中,识别第二图像的第二主体图像和第二背景图像与识别第一图像的目标对象的图像和第一背景图像的原理相似,在此不再赘述;第二电子设备重力方向第二重力方向在第二时刻采集而得到;第二时刻为采集目标对象的第二图像的时刻;第一方向为地平线方向按照预设地平线变化规则变化后的方向,例如,预设地平线变化规则可以是地平线匀速旋转,具体的,可以是每采集一帧第二图像旋转10°。
其中,第二旋转图像为将第二主体图像旋转第二转动角度后得到的图像;第二目标图像的合成原理与合成第一目标图像的原理相似,在此不再赘述。
基于本申请实施例,可以连续拍摄目标对象的第二目标图像,并按时序展示第一目标图像和第二目标图像,形成视频,该视频各帧中背景图像不进行旋转,而主体图像按匀速变换的角度旋转,形成趣味十足的视频效果。
可选地,显示单元806还可以用于执行如下步骤:
显示第二目标图像。
本申请实施例中,在得到第二目标图像后,显示第二目标图像,用户可以直观观察第二目标图像的拍摄效果,优化用户体验。
可选地,显示单元806还可以用于执行如下步骤:
显示备选地平线变化规则选项;
输入单元804,还可以用于执行如下步骤:
接收用户对备选地平线变化规则选项中目标地平线变化规则的第二输入;
处理器810,还可以用于执行如下步骤:
响应于第二输入,将目标地平线变化规则确定为预设地平线变化规则。
其中,备选地平线变化规则选项能够为用户提供几种地平线变化模式供用户选择,用户通过第二输入选中目标地平线变化规则后,将目标地平线变化规则确定为预设地平线变化规则,使得最终呈现的地平线变化模式符合用户预期,优化了用户模式。
在本申请实施例中,在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对第一图像的第一输入,第一输入用于确定第一图像的地平线方向,然后响应于第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像并显示。其中,第一背景图像为第一图像中除目标对象的图像之外的图像,第一主体旋转图像为将目标对象的图像旋转第一转动角度后得到的图像,第一转动角度为第一电子设备重力方向第一重力方向相对地平线方向的角度。不要求用户具有较高的运动技巧或图像处理技巧,仅需用户打开相应拍摄模式和选中地平线方向即可获取到趣味图像,极大地降低了用户获取趣味图像的难度。
应理解的是,本申请实施例中,输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元806可包括显示面板8061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板8061。用户输入单元807包括触控面板8081以及其他输入设备8072。触控面板8081,也称为触摸屏。触控面板8081可包括触摸检测装置和触摸控制器两个部分。其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器809可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器810可集成应用处理器和调制解调处理器,其中,应用处理
器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,计算机可读存储介质的示例包括非暂态计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。
Claims (15)
- 一种图像拍摄方法,所述方法应用于电子设备,所述方法包括:在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对所述第一图像的第一输入,所述第一输入用于确定所述第一图像的地平线方向;响应于所述第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像;所述第一背景图像为所述第一图像中除所述目标对象的图像之外的图像,所述第一主体旋转图像为将所述目标对象的图像旋转第一转动角度后得到的图像,所述第一转动角度为第一重力方向相对所述地平线方向的角度;显示所述第一目标图像。
- 如权利要求1所述的图像拍摄方法,其中,在响应于所述第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像之前,所述方法还包括:识别所述第一图像中所述目标对象的图像和所述第一背景图像。
- 如权利要求1所述的图像拍摄方法,其中,所述第一输入为滑动输入,所述地平线方向为所述第一输入的滑动方向。
- 如权利要求1所述的图像拍摄方法,其中,所述目标对象的图像和所述第一背景图像均包括备选方向标识;所述备选方向标识用于表征所述目标对象的图像和所述第一背景图像中的特征边缘走向;所述接收用户对所述第一图像的第一输入,包括:接收用户对所述备选方向标识中目标方向标识的第一输入,以所述目标方向标识指示的方向为所述地平线方向。
- 如权利要求1-4任一项所述的图像拍摄方法,其中,所述第一重力方向在第一时刻采集而得到,所述第一时刻为采集所述目标对象的第一图像的时刻;在显示所述第一目标图像之后,所述方法还包括:采集所述目标对象的第二图像,并获取第二重力方向;计算第二重力方向相对第一方向的第二转动角度;所述第一方向为所述地平线方向按照预设地平线变化规则变化后的方向;识别所述第二图像的目标对象的图像和第二背景图像;所述第二背景图像为所述第二图像中除目标对象的图像之外的图像;将所述第二背景图像和第二旋转图像合成,得到第二目标图像,所述第二旋转图像为将所述第二图像的目标对象的图像旋转所述第二转动角度后得到的图像;显示所述第二目标图像。
- 如权利要求5所述的图像拍摄方法,其中,在采集所述目标对象的第二图像之前,所述方法还包括:显示备选地平线变化规则选项;接收用户对所述备选地平线变化规则选项中目标地平线变化规则的第二输入;响应于所述第二输入,将所述目标地平线变化规则确定为所述预设地平线变化规则。
- 一种图像拍摄装置,所述装置应用于电子设备,所述装置包括:接收模块,用于在拍摄预览界面显示包含目标对象的第一图像的情况下,接收用户对所述第一图像的第一输入,所述第一输入用于确定所述第一图像的地平线方向;合成模块,用于响应于所述第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像;所述第一背景图像为所述第一图像中除所述目标对象的图像之外的图像,所述第一主体旋转图像为将所述目标对象的图像旋转第一转动角度后得到的图像,所述第一转动角度为第一重力方向相对所述地平线方向的角度;显示模块,用于显示所述第一目标图像。
- 如权利要求7所述的图像拍摄装置,其中,所述装置还包括识别模块;所述识别模块,用于在响应于所述第一输入,将第一背景图像和第一主体旋转图像合成,得到第一目标图像之前,识别所述第一图像中所述目标对象的图像和所述第一背景图像。
- 如权利要求7所述的图像拍摄装置,其中,所述第一输入为滑动输入,所述地平线方向为所述第一输入的滑动方向。
- 如权利要求7所述的图像拍摄装置,其中,所述目标对象的图像和所述第一背景图像均包括备选方向标识;所述备选方向标识用于表征所述目标对象的图像和所述第一背景图像中的特征边缘走向;所述接收模块,具体用于接收用户对所述备选方向标识中目标方向标识的第一输入,以所述目标方向标识指示的方向为所述地平线方向。
- 如权利要求7-10任一项所述的图像拍摄装置,其中,所述第一重力方向在第一时刻采集而得到,所述第一时刻为采集所述目标对象的第一图像的时刻;所述装置还包括采集模块,计算模块和识别模块;所述采集模块,用于在显示所述第一目标图像之后,采集所述目标对象的第二图像,并获取第二重力方向;所述计算模块,用于计算第二重力方向相对第一方向的第二转动角度;所述第一方向为所述地平线方向按照预设地平线变化规则变化后的方向;所述识别模块,用于识别所述第二图像的目标对象的图像和第二背景图像;所述第二背景图像为所述第二图像中除目标对象的图像之外的图像;所述合成模块,还用于将所述第二背景图像和第二旋转图像合成,得到第二目标图像,所述第二旋转图像为将所述第二图像的目标对象的图像旋转所述第二转动角度后得到的图像;所述显示模块,还用于显示所述第二目标图像。
- 如权利要求11所述的图像拍摄装置,其中,所述装置还包括确定模块;所述显示模块,还用于在采集所述目标对象的第二图像之前,显示备选地平线变化规则选项;所述接收模块,还用于接收用户对所述备选地平线变化规则选项中目标地平线变化规则的第二输入;所述确定模块,用于响应于所述第二输入,将所述目标地平线变化规则确定为所述预设地平线变化规则。
- 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至6中任一项所述的图像拍摄方法的步骤。
- 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至6中任一项所述的图像拍摄方法的步骤。
- 一种芯片,包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的图像拍摄方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210121041.0 | 2022-02-09 | ||
CN202210121041.0A CN114466140B (zh) | 2022-02-09 | 2022-02-09 | 图像拍摄方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023151527A1 true WO2023151527A1 (zh) | 2023-08-17 |
Family
ID=81414209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/074523 WO2023151527A1 (zh) | 2022-02-09 | 2023-02-06 | 图像拍摄方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114466140B (zh) |
WO (1) | WO2023151527A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114466140B (zh) * | 2022-02-09 | 2023-10-24 | 维沃移动通信有限公司 | 图像拍摄方法及装置 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060078215A1 (en) * | 2004-10-12 | 2006-04-13 | Eastman Kodak Company | Image processing based on direction of gravity |
CN104135612A (zh) * | 2014-07-11 | 2014-11-05 | 深圳市中兴移动通信有限公司 | 一种可调节拍摄主体位置的拍摄方法和拍摄装置 |
CN108055463A (zh) * | 2017-12-26 | 2018-05-18 | 努比亚技术有限公司 | 图像处理方法、终端及存储介质 |
CN109544496A (zh) * | 2018-11-19 | 2019-03-29 | 南京旷云科技有限公司 | 训练数据的生成方法、对象检测模型的训练方法和装置 |
CN110312070A (zh) * | 2019-04-23 | 2019-10-08 | 维沃移动通信有限公司 | 一种图像处理方法及终端 |
CN114466140A (zh) * | 2022-02-09 | 2022-05-10 | 维沃移动通信有限公司 | 图像拍摄方法及装置 |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164387A (zh) * | 2013-04-16 | 2013-06-19 | 北京大学 | 一种确定地物之间方向角度的方法 |
KR20150012887A (ko) * | 2013-07-26 | 2015-02-04 | 엘지전자 주식회사 | 이동 단말기 및 그의 촬영 객체 재배치 방법 |
JP2015149600A (ja) * | 2014-02-06 | 2015-08-20 | ソニー株式会社 | 画像処理装置、画像処理方法、およびプログラム |
CN103941975B (zh) * | 2014-03-18 | 2018-06-01 | 联想(北京)有限公司 | 一种信息处理方法及电子设备 |
CN105657260A (zh) * | 2015-12-31 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | 一种拍摄方法及终端 |
KR102439502B1 (ko) * | 2018-01-11 | 2022-09-05 | 삼성전자 주식회사 | 전자 장치 및 그의 영상 처리 방법 |
CN112839164A (zh) * | 2019-11-25 | 2021-05-25 | 北京安云世纪科技有限公司 | 一种拍照方法及装置 |
CN113810588B (zh) * | 2020-06-11 | 2022-11-04 | 青岛海信移动通信技术股份有限公司 | 一种图像合成方法、终端及存储介质 |
CN111756995A (zh) * | 2020-06-17 | 2020-10-09 | 维沃移动通信有限公司 | 图像处理方法及装置 |
CN113170050A (zh) * | 2020-06-22 | 2021-07-23 | 深圳市大疆创新科技有限公司 | 图像获取方法、电子设备和可移动设备 |
CN111857910A (zh) * | 2020-06-28 | 2020-10-30 | 维沃移动通信有限公司 | 信息的显示方法、装置及电子设备 |
CN112492209B (zh) * | 2020-11-30 | 2022-04-29 | 维沃移动通信有限公司 | 拍摄方法、拍摄装置和电子设备 |
CN113794829B (zh) * | 2021-08-02 | 2023-11-10 | 维沃移动通信(杭州)有限公司 | 拍摄方法、装置及电子设备 |
-
2022
- 2022-02-09 CN CN202210121041.0A patent/CN114466140B/zh active Active
-
2023
- 2023-02-06 WO PCT/CN2023/074523 patent/WO2023151527A1/zh unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060078215A1 (en) * | 2004-10-12 | 2006-04-13 | Eastman Kodak Company | Image processing based on direction of gravity |
CN104135612A (zh) * | 2014-07-11 | 2014-11-05 | 深圳市中兴移动通信有限公司 | 一种可调节拍摄主体位置的拍摄方法和拍摄装置 |
CN108055463A (zh) * | 2017-12-26 | 2018-05-18 | 努比亚技术有限公司 | 图像处理方法、终端及存储介质 |
CN109544496A (zh) * | 2018-11-19 | 2019-03-29 | 南京旷云科技有限公司 | 训练数据的生成方法、对象检测模型的训练方法和装置 |
CN110312070A (zh) * | 2019-04-23 | 2019-10-08 | 维沃移动通信有限公司 | 一种图像处理方法及终端 |
CN114466140A (zh) * | 2022-02-09 | 2022-05-10 | 维沃移动通信有限公司 | 图像拍摄方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN114466140A (zh) | 2022-05-10 |
CN114466140B (zh) | 2023-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020253657A1 (zh) | 视频片段定位方法、装置、计算机设备及存储介质 | |
US11114130B2 (en) | Method and device for processing video | |
CN110572711B (zh) | 视频封面生成方法、装置、计算机设备及存储介质 | |
CN106791437B (zh) | 一种全景图像拍摄方法及移动终端 | |
CN112351185A (zh) | 拍照方法和移动终端 | |
CN112770058B (zh) | 拍摄方法、装置、电子设备和可读存储介质 | |
CN112954210A (zh) | 拍照方法、装置、电子设备及介质 | |
EP3905662A1 (en) | Image processing method and apparatus, electronic device and storage medium | |
CN112738402B (zh) | 拍摄方法、装置、电子设备及介质 | |
WO2022111458A1 (zh) | 图像拍摄方法和装置、电子设备及存储介质 | |
WO2023284632A1 (zh) | 图像展示方法、装置及电子设备 | |
WO2023025196A1 (zh) | 图像处理方法、装置及电子设备 | |
CN113014801B (zh) | 录像方法、装置、电子设备及介质 | |
CN112911147B (zh) | 显示控制方法、显示控制装置及电子设备 | |
WO2023051441A1 (zh) | 视频录制方法、装置、电子设备及存储介质 | |
WO2022156703A1 (zh) | 一种图像显示方法、装置及电子设备 | |
WO2023083089A1 (zh) | 拍摄控件显示方法, 装置, 电子设备及介质 | |
WO2023151527A1 (zh) | 图像拍摄方法及装置 | |
CN112669381A (zh) | 一种位姿确定方法、装置、电子设备及存储介质 | |
CN111031391A (zh) | 视频配乐方法、装置、服务器、终端及存储介质 | |
CN113794831B (zh) | 视频拍摄方法、装置、电子设备及介质 | |
CN112672051B (zh) | 拍摄方法、装置和电子设备 | |
CN112115341B (zh) | 内容展示方法、装置、终端、服务器、系统及存储介质 | |
CN114827651B (zh) | 信息处理方法、装置、电子设备及存储介质 | |
WO2023011300A1 (zh) | 记录观看视频的人脸表情的方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23752307 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |