Inverted Image Shooting Method, Device, Electronic Device and Storage Medium

By realizing image recognition and processing in electronic devices, and automatically generating reflection images, the complex problem of shooting mirror reflections in the prior art is solved, and efficient and simple reflection image shooting and intelligent composition are achieved.

CN114286009BActive Publication Date: 2025-07-11VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111648626.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-07-11
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

The process of shooting mirror reflections is complicated and requires specific skills and equipment, making it difficult to capture high-quality reflection images in different environments.

Method used

By realizing image recognition and processing in electronic devices, a reflection image is automatically generated, including detecting reflection elements, generating reflection dividing lines, adjusting shooting angles and clarity, and automatically generating high-quality reflection images.

Benefits of technology

It simplifies the reflection image shooting process, can take high-quality reflection pictures under different mirror states, provides intelligent composition suggestions, and improves shooting efficiency and effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114286009B_ABST
    Figure CN114286009B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, electronic device, and storage medium for capturing an inverted image, belonging to the technical field of image processing. The method for capturing an inverted image includes: displaying a preview image, where a first area of the preview image includes a shooting object; generating an inverted image of the shooting object based on the image in the first area; and displaying a first image, where the first image is generated based on the preview image and the inverted image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of image processing, and particularly relates to a method, apparatus, electronic device, and storage medium for capturing reflection images. Background Art

[0002] Mirror reflections are commonly used photographic elements. For example, by using scenes with mirror effects such as rainwater puddles, lakes, rivers, and glass facades after rain, landscapes and buildings can show different charms. However, specific scenes also limit the shooting environment. Taking water surface shooting as an example, it is necessary to shoot when the water surface is calm to avoid unclear reflections, and it is also necessary to select a lower camera position angle to ensure that the photographed object is completely displayed in the picture, or to make the reflection and the object form a symmetrical relationship.

[0003] When shooting mirror reflections, a tripod device is generally used to fix the shooting device. The shutter speed is lowered, the sensitivity is reduced, the aperture is narrowed, and a neutral density filter needs to be installed in front of the lens when shooting outdoors. Long exposure is used to make the water surface calm and the light points of the buildings become star-shaped. When there is no water surface at the shooting site but you want to shoot mirror reflections, you can choose to place a mirror or other metal material object vertically in front of the camera lens to also produce the effect of a reflection.

[0004] It can be seen that the process of obtaining mirror reflection pictures is complex and certain skills and methods are required to achieve good results.

[0005] Application Content

[0006] The purpose of this embodiment is to provide a method, apparatus, electronic device, and storage medium for capturing reflection images, which can automatically generate reflection images according to the photographed object and simplify the process of capturing reflection images.

[0007] In a first aspect, this embodiment provides a method for capturing a reflection image, the method including: displaying a preview image, a first area of the preview image including the photographed object; generating a reflection image of the photographed object according to the image in the first area; displaying a first image, the first image being generated according to the preview image and the reflection image.

[0008] In a second aspect, this embodiment provides an apparatus for capturing a reflection image, the apparatus including: a first display module for displaying a preview image, a first area of the preview image including the photographed object; a reflection generation module for generating a reflection image of the photographed object according to the image in the first area; a second display module for displaying a first image, the first image being generated according to the preview image and the reflection image.

[0009] In a third aspect, this embodiment provides an electronic device, which includes a processor and a memory. The memory stores a program or instructions that can run on the processor. When the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0010] In a fourth aspect, this embodiment provides a readable storage medium, on which a program or instructions are stored. When the program or instructions are executed by a processor, the steps of the method described in the first aspect are implemented.

[0011] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instructions to implement the method described in the first aspect.

[0012] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0013] In this embodiment, according to the shooting object in the first region of the preview image, an inverted image of the shooting object is generated in the second region, and a first image is automatically generated according to the shooting object and the inverted image of the shooting object. It is possible to generate an inverted image according to the image of the shooting object, which simplifies the operation process of the user to shoot the inverted image and has a good inverted image display effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 is a flowchart of the steps of a method for shooting an inverted image provided in this embodiment;

[0015] Figure 2 is a schematic diagram of the preview image provided in this embodiment;

[0016] Figure 3 is a schematic diagram of a first image provided in this embodiment;

[0017] Figure 4 is a schematic diagram of a terminal interface provided in an embodiment of the present application;

[0018] Figure 5 is a schematic diagram of the structure of an apparatus for shooting an inverted image provided in this embodiment;

[0019] Figure 6 is a block diagram of the structure of an electronic device provided in this embodiment;

[0020] Figure 7 is a schematic diagram of the hardware structure of an electronic device provided in this embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0021] The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application belong to the scope of protection of the present application.

[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means an "or" relationship between the associated objects before and after.

[0023] A method, apparatus, and electronic device for shooting a reflection image provided in this embodiment will be described in detail below with reference to the accompanying drawings and specific embodiments and their application scenarios.

[0024] The embodiments of the present application provide a method for shooting a reflection image. The execution subject of this method can be an electronic device, which can be any device with a shooting function such as a mobile phone or a tablet computer, and is not limited herein. The following embodiments will be described with the execution subject being an electronic device.

[0025] As Figure 1 shown, the method for shooting a reflection image includes the following S110 to S130:

[0026] S110. Display a preview image.

[0027] In this embodiment, the preview image can be a real-time image obtained by the shooting component of the electronic device. It can be understood that the captured image includes the shooting object and the objects around the shooting object, etc. The first area of the preview image in this embodiment includes the shooting object, which can be a mountain, the sky, etc. It can be understood that in the case where there is a reflection in the scene of the above shooting object, the combination of the shooting object and its reflection will have a better photographic effect, but there may be a situation where the reflection is not clear. Therefore, there is a need to process the generated preview image for reflection.

[0028] Refer to Figure 2 , the preview image in this embodiment can be Figure 2In the shown screen, the preview image includes a first area A and a second area B. Among them, the first area A contains the subject, and the second area B is the area where the reflection is generated. In the second area B, there may be elements such as water surface, lake surface, mirror surface, etc. that generate reflections to generate a reflection image. The reflection image may be the whole subject or a part of the shot.

[0029] In some embodiments, image recognition can be performed on the scene in the preview image to determine whether there are elements that generate reflections in the second area. For example, if a water surface is recognized, it is determined that a reflection can be generated. However, when the area of the water surface is small, it may not have the conditions for generating a reflection, that is, when the area of the element that generates the reflection is small, then in this embodiment, it is detected whether the area of the mirror image formed by the element that generates the reflection in the preview image is greater than the first ratio of the preview image; in the case where the area of the mirror image occupies more than the first ratio of the preview image, it is determined that the preview image contains elements that generate reflections. For example, by using an AI scene detection algorithm to extract the features of the preview image and determining that there are landscape elements in the preview image, and at this time the area of the water surface occupies 1 / 3 of the whole preview image, it can be characterized that this preview image has elements that generate reflections, and it can be determined that the reflection image of the element that generates the reflection contains the reflection of the subject. The above first ratio can be 1 / 3 or 1 / 4, and the specific value can be set according to user needs.

[0030] In this embodiment, in the case where it is detected that the image to be previewed contains a reflection scene, corresponding attribute labels can be generated according to the attribute information of the element that generates the reflection. For example, the attribute labels can be mountain reflection, modern building reflection, bridge reflection, pavilion reflection, etc. The attribute labels can be displayed on the preview image screen in text form to show the detection result to the user.

[0031] S120. Generate a reflection image of the subject according to the image in the first area.

[0032] Reference Figure 2 , Figure 2 In

[0033] , the second area in

[0034] S130. Display the first image.

[0035] In this embodiment, the first image is generated based on the preview image and the reflection image. Refer to Figure 3 , Figure 3 which is the first image obtained from the preview image in an embodiment. The first image is obtained by combining the photographed object in the first area A of the preview image and the reflection image in the second area B obtained by photographing. Figure 2 Figure 2

[0036] In some embodiments, refer to Figure 4 , the user can determine whether to display the first image through the virtual button 401 of the terminal device. For example, after the user obtains the preview image and believes that no reflection processing is required for the preview image, the preview image can be directly stored in the terminal album. If the user is not satisfied with the mirror effect of the preview image, the virtual button 401 can be clicked to cause the terminal to execute S120 and S130 to display the first image.

[0037] The above is the method for photographing the reflection image in this embodiment. It can generate the reflection image of the photographed object in the second area according to the photographed object in the first area of the preview image, automatically generate the first image according to the photographed object and the reflection image of the photographed object, can generate the reflection according to the photographed object itself, has no complicated operation process, is convenient and simple, and has a good reflection display effect.

[0038] In an embodiment, there may also be no elements such as water surface, lake surface, mirror surface, etc. that generate reflections in the second area. When there are no reflection elements in the preview image, there is no reflection image of the photographed object in the second area of the preview image. At this time, the intersection line of the photographed object and the ground, that is, the reflection demarcation line, can be obtained, and the photographed object can be mirrored by copying and flipping with this reflection demarcation line as the mirror axis, so as to obtain a reflection image symmetric to the photographed object about the intersection line in the second area, thus meeting the requirement of generating a reflection even when the shooting scene does not contain reflection elements and realizing different image visual effects.

[0039] In an embodiment, when there are elements such as water surface, lake surface, mirror surface, etc. that generate reflections in the second area of the preview image, there is a reflection of the photographed object in the second area. The reflection can be the whole of the photographed object or a part of the photographed object. When the reflection is the whole of the photographed object, there may be a situation of insufficient clarity, which will also result in a poor display effect. Therefore, in this embodiment, when the second area of the preview image includes the reflection of the photographed object, it is necessary to judge the clarity of the reflection of the photographed object, and then generate the reflection image of the photographed object according to the image in the first area.

[0040] Specifically, it includes: obtaining the clarity of the reflection of the object in the second area, and when the clarity is less than the preset threshold, generating a reflection image of the object according to the image in the first area.

[0041] In this embodiment, the preset threshold can be the clarity of the object itself, or a percentage of the clarity of the object itself. For example, the preset threshold can be 80% of the clarity of the object itself.

[0042] In this embodiment, the clarity of the reflection of the object can be measured by characteristics such as the integrity of the reflection of the object relative to the object itself, the brightness of the reflection of the object, and the color.

[0043] In some embodiments, salient object detection (SOD) can be used to extract and detect the image features in the second area to obtain the clarity of the reflection picture in the second area. It can be understood that when the element that generates the reflection in the second area is the water surface, due to the existence of water surface ripples, the clarity of the reflection picture will be insufficient. At this time, the clarity of the reflection of the object can be compared with the preset threshold. When the clarity of the reflection of the object is lower than the preset threshold, a reflection image of the object is generated according to the image in the first area.

[0044] In some embodiments, when the clarity of the reflection of the object is greater than or equal to the preset threshold, the preview image can be directly displayed as the first image.

[0045] In this embodiment, by obtaining the clarity of the reflection of the object in the second area to determine whether to process the reflection in the second area of the preview image, when the clarity of the reflection of the object is greater than or equal to the preset threshold, the preview image can be directly displayed as the first image, which can reduce the computing amount of the terminal; when the clarity of the reflection of the object is lower than the preset threshold, a reflection image is generated according to the object in the first area, making the reflection effect more significant.

[0046] It can be understood that before generating the reflection image of the object, it is necessary to determine the area for generating the reflection image. That is to say, before displaying the first image in this embodiment, it further includes: determining the reflection area, and in the reflection area, displaying the reflection image of the object.

[0047] In this embodiment, the reflection image is obtained by mirror processing the image in the first area. Among them, the reflection area can be determined by performing blurring recognition on the reflection image in the second area, or by recognizing the reflection boundary line between the first area and the second area.

[0048] In some embodiments, to identify the reflection boundary line between the first region and the second region to determine the reflection region, the position of the reflection boundary line in the overall preview image can be judged first, and then the reflection region can be determined according to the reflection boundary line. For example, when the reflection boundary line is at the 1 / 3 position from the lower edge of the preview image towards the center, it indicates that the first region accounts for 2 / 3 of the entire preview image, and the second region accounts for 1 / 3 of the entire preview image. Then, the 1 / 3 region from the lower edge of the preview image towards the center is the reflection region. It can be understood that when the object to be photographed in the first region is relatively large, for example, when the first region and the second region each account for 1 / 2 of the entire preview image, and the height of the object to be photographed exceeds 1 / 2 of the height of the first region, if the object to be photographed is directly mirrored, the resulting reflection may exceed the second region. In this case, the object to be photographed can be tilted to obtain a complete reflection of the object to be photographed within the second region.

[0049] In some embodiments, the user can determine the position of the reflection boundary line in the first image by adjusting the lens position.

[0050] In this embodiment, by performing blurry recognition on the reflection image or determining the reflection region according to the reflection boundary line, the reflection image of the object to be photographed is displayed within the reflection region, so that a complete reflection of the object to be photographed can be obtained.

[0051] In some embodiments, the reflection boundary line between the object to be photographed in the first region and the reflection in the second region may be inclined, affecting the shooting effect. Therefore, this embodiment can also detect the positional relationship between the reflection boundary line and the reference line; in the case where the reflection boundary line does not coincide with the reference line, a first prompt message is output, and the first prompt message includes information on adjusting the shooting angle.

[0052] In some examples, the reference line is the horizontal boundary line between the first region and the second region. To meet various photography requirements, when the user wants to obtain a reflection image with an inclined effect, the reference line can also have a preset angle with the horizontal line.

[0053] In this embodiment, taking the reference line being the horizontal boundary line between the first region and the second region as an example, in the case where the reflection boundary line is not in a horizontal state, a first reminder message is generated. For example, when the reflection boundary line has an inclination angle of 30 degrees with the reference line, and the object to be photographed is inclined at this time, the first prompt message is output, and the first prompt message includes information on adjusting the shooting angle. For example, the first message is "Please adjust the camera angle" until the reflection boundary line coincides with the reference line.

[0054] In this embodiment, the first reminder message can be displayed on the first image in text form or through voice playback.

[0055] In this embodiment, by detecting the positional relationship between the reflection boundary line between the photographed object in the first region and the reflection in the second region and the reference line, it is detected whether the reflection boundary line between the photographed object and the reflection image is inclined. When the reflection boundary line does not coincide with the reference line, a first prompt message is output, and the first prompt message includes information for adjusting the shooting angle, so as to make the reflection display effect of the first image more ideal.

[0056] In some embodiments, considering that in the process of shooting the viewfinder, the photographed object may be incomplete. Therefore, in order to obtain a complete reflected image of the shot, in this embodiment, when the photographed object is incomplete, a second prompt message is also output, and the second prompt message includes information for adjusting the shooting distance.

[0057] In some embodiments, the photographed object may be a main body with a certain height. For example, the photographed object may be a tall tower. At this time, the photographed object may not be completely within the picture of the first region. Therefore, feature recognition can be used to detect whether the photographed object in the preview image is complete. When the photographed object is incomplete, a second prompt message is output. For example, the second prompt message is "The shooting effect is better when shooting from a farther distance". After the second reminder message is output, a wider-angle camera of the electronic device can be activated to capture a wider range of pictures.

[0058] In some embodiments, considering that the reflection image in the first image is directly obtained from the photographed object in the first region of the preview image, there may be some differences from the visual effect in reality. Therefore, in this embodiment, after the first image is displayed and the target image is obtained, the display effect of the first image is also adjusted by receiving the first input of the user and in response to the first input, so that the obtained first image has a more realistic reflection effect.

[0059] In this embodiment, adjusting the display effect of the first image includes at least one of the following: image blur, vignetting, and adding simulated ripples. In some embodiments, the first input of the user to the electronic device may be an image editing instruction input by the user through the image editing page of the electronic device. The image editing instruction may be a combination of one or more of image blur, brightness adjustment, vignetting, and adding simulated ripples to the reflection in the target image to achieve a more realistic reflection effect.

[0060] The above is a method for shooting a reflected image provided by this embodiment. It can generate a reflected image of the shooting object in the second area according to the shooting object in the first area of the preview image, automatically generate a first image according to the shooting object and its reflected image, can generate a reflection by itself without a complex operation process, is convenient and simple, and has a good reflected image display effect. And it can identify the scene information in the preview image, intelligently implement the mirror reflected image, help the user to perform the best composition, and enable the user to take high-quality mirror reflected images in scenes with different mirror states.

[0061] It should be noted that for the method for shooting a reflected image provided by this embodiment, the execution subject can be a reflected image shooting device, or a control module in the reflected image shooting device for executing the method for loading the reflected image shooting. In this embodiment, the reflected image shooting device is taken as an example of executing the method for loading the reflected image shooting to illustrate the method for shooting a reflected image provided by this embodiment.

[0062] Refer to Figure 5 , a reflected image shooting device 500 is provided, and the device includes:

[0063] A first display module 501 for displaying a preview image, and the first area of the preview image includes a shooting object;

[0064] A reflection generation module 502 for generating a reflected image of the shooting object according to the image in the first area;

[0065] A second display module 503 for displaying a first image, and the first image is generated according to the preview image and the reflected image.

[0066] In some embodiments, the reflection generation module 502 is further configured to generate a reflected image of the shooting object according to the image in the first area when the second area of the preview image includes the reflection of the shooting object.

[0067] In some embodiments, the reflection generation module 502 is further configured to obtain the clarity of the reflection of the shooting object in the second area before generating the reflected image of the shooting object according to the image in the first area; and generate the reflected image of the shooting object according to the image in the first area when the clarity is less than a preset threshold.

[0068] In some embodiments, the reflection generation module 502 is further configured to determine a reflection area; and display the reflected image of the shooting object within the reflection area, where the reflected image is obtained by mirror processing the image in the first area.

[0069] In some embodiments, the reflection generation module 502 is further configured to detect the positional relationship between the shooting object in the first region and the reference line of the reflection boundary line between the reflection in the second region; in the case where the reflection boundary line does not coincide with the reference line, output a first prompt message, where the first prompt message includes shooting angle adjustment information.

[0070] In some embodiments, the reflection generation module 502 is further configured to output a second prompt message in the case where the shooting object is incomplete, where the second prompt message includes shooting distance adjustment information.

[0071] In some embodiments, the reflection generation module 502 is further configured to receive a first input from a user after displaying the first image; in response to the first input, adjust the display effect of the first image; wherein, adjusting the display effect of the first image includes at least one of the following: image blurring; vignetting; adding simulated ripples.

[0072] In this embodiment, according to the shooting object in the first region of the preview image, a reflection image of the shooting object can be generated in the second region to display the first image, and the first image can be generated according to the shooting object and the reflection image of the shooting object, so that the reflection can be generated according to the shooting object itself, and the first image has a good reflection display effect.

[0073] The reflection image shooting device in this embodiment can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0074] The reflection image capturing device in the embodiments of the present application can be a device with an operating system. The operating system can be the Android operating system, the iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

[0075] The reflection image capturing device provided in this embodiment can implement Figure 1 each process implemented by the reflection image capturing device in the method embodiment. To avoid repetition, it will not be elaborated here.

[0076] Optionally, as Figure 6 shown, this embodiment also provides an electronic device 600, including a processor 601, a memory 602, a program or instruction stored on the memory 602 and executable on the processor 601. When the program or instruction is executed by the processor 601, it implements each process of the above-mentioned reflection image capturing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0077] It should be noted that the electronic device in this embodiment includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0078] Figure 7 It is a schematic diagram of the hardware structure of an electronic device for implementing this embodiment.

[0079] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710, etc.

[0080] Those skilled in the art can understand that the electronic device 700 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 710 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 7 The structure of the electronic device shown in [] does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0081] Among them, the display unit 706 is used to display a preview image, and the first area of the preview image includes a shooting object.

[0082] The processor 710 is used to generate a reflection image of the shooting object according to the image in the first area.

[0083] The display unit 706 is further used to display a first image, which is generated according to the preview image and the reflection image.

[0084] The processor 710 is further configured to generate a reflection image of the photographed object according to the image in the first region when the second region of the preview image includes a reflection of the photographed object.

[0085] The processor 710 is further configured to obtain the clarity of the reflection of the photographed object in the second region before generating a reflection image of the photographed object according to the image in the first region; and generate a reflection image of the photographed object according to the image in the first region when the clarity is less than a preset threshold.

[0086] The processor 710 is further configured to determine a reflection area before the display unit 706 displays the first image; and display a reflection image of the photographed object within the reflection area, where the reflection image is obtained by mirroring the image in the first region.

[0087] The processor 710 is further configured to detect the positional relationship between the reflection boundary line between the photographed object in the first region and the reflection in the second region and a reference line; and output a first prompt message including information on adjusting the shooting angle when the reflection boundary line does not coincide with the reference line.

[0088] The processor 710 is further configured to output a second prompt message including information on adjusting the shooting distance when the photographed object is incomplete.

[0089] The processor 710 is further configured to receive a first input from the user after displaying the first image; and adjust the display effect of the first image in response to the first input; where adjusting the display effect of the first image includes at least one of the following: image blurring; vignetting; adding simulated ripples.

[0090] This embodiment can generate a reflection image of the photographed object in the second region according to the photographed object in the first region of the preview image, automatically generate a first image according to the photographed object and the reflection image of the photographed object, be able to generate a reflection according to the photographed object itself, without a complex operation process, be convenient and simple, and have a good reflection display effect. And it can automatically identify the scene information in the preview image based on scene judgment, intelligently implement a mirror reflection image, help the user to perform optimal composition, and enable the user to take high-quality mirror reflection pictures in scenes with different mirror states.

[0091] It should be understood that in the embodiments of the present application, the input unit 704 may include a Graphics Processing Unit (GPU) 741 and a microphone 7042. The graphics processor 7041 processes the image data of static pictures or videos obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. The other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, which will not be elaborated here.

[0092] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory 709 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM) or a flash memory. The volatile memory may be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM) and a Direct Rambus RAM (DRRAM). The memory 709 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.

[0093] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor may not be integrated into the processor 710 either.

[0094] This embodiment also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above-mentioned embodiment of the inverted image shooting method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0095] Among them, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disc, etc.

[0096] This embodiment further provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run a program or instruction to implement each process of the above-mentioned embodiment of the inverted image shooting method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0097] It should be understood that the chip mentioned in this embodiment may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0098] This application embodiment provides a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above-mentioned embodiment of the inverted image shooting method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0099] It should be noted that in this text, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising such element. In addition, it should be pointed out that 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 a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0100] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present application.

[0101] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.

Claims

1. A method for taking a reflection image, characterized in that, Including: Display a preview image, where the preview image includes a first area and a second area, the first area of the preview image includes a subject, and the second area includes a reflection of the subject; Obtain the clarity of the reflection of the subject in the second area; When the clarity is less than a preset threshold, generate a reflection image of the subject based on the image in the first area, and generate a first image based on the preview image and the reflection image; wherein, the reflection image is a mirror image of the subject generated in the second area based on a reflection dividing line, and the reflection dividing line is the dividing line between the first area and the second area; When the clarity is greater than or equal to the preset threshold, use the preview image as the first image; Display the first image; Before displaying the preview image, the method further includes: Perform image recognition on the scene in the preview image and determine that the preview image contains elements that produce reflections.

2. The method according to claim 1, characterized in that, Before displaying the first image, it further includes: Determine the reflection area; Within the reflection area, display a reflection image of the subject, where the reflection image is obtained by mirroring the image in the first area.

3. The method according to claim 1, characterized in that, The second area of the preview image includes a reflection of the subject, and the method further includes: Detect the positional relationship between the reflection dividing line between the subject in the first area and the reflection in the second area and a reference line; When the reflection dividing line does not coincide with the reference line, output a first prompt message, where the first prompt message includes information on adjusting the shooting angle.

4. The method according to claim 1, wherein The method further includes: When the subject is incomplete, output a second prompt message, where the second prompt message includes information on adjusting the shooting distance.

5. The method according to claim 1, wherein After displaying the first image, the method further includes: Receive a first input from the user; In response to the first input, adjust the display effect of the first image; Wherein, adjusting the display effect of the first image includes at least one of the following: Image blurring; Vignetting; Adding simulated ripples.

6. An inverted image photographing device, characterized in that, The device includes: A first display module for displaying a preview image, where the preview image includes a first area and a second area, the first area of the preview image includes a subject, and the second area includes a reflection of the subject; A reflection generation module for obtaining the clarity of the reflection of the subject in the second area; when the clarity is less than a preset threshold, generating a reflection image of the subject based on the image in the first area, and generating a first image based on the preview image and the reflection image; wherein, the reflection image is a mirror image of the subject generated in the second area based on a reflection dividing line, and the reflection dividing line is the dividing line between the first area and the second area; and when the clarity is greater than or equal to the preset threshold, using the preview image as the first image; A second display module for displaying the first image; The first display module is further configured to perform image recognition on the scene in the preview image and determine the elements that generate reflections in the preview image.

7. An electronic device, characterized in that, It includes a processor and a memory. The memory stores programs or instructions that can run on the processor. When the programs or instructions are executed by the processor, the steps of the method according to any one of claims 1-5 are implemented.

8. A readable storage medium, characterized in that, Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by the processor, the steps of the method according to any one of claims 1-5 are implemented.

Citation Information

Patent Citations

  • Image processing method and device

    CN111432123A