CN114286009A - Inverted image shooting method and device, electronic equipment and storage medium - Google Patents

Inverted image shooting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114286009A
CN114286009A CN202111648626.XA CN202111648626A CN114286009A CN 114286009 A CN114286009 A CN 114286009A CN 202111648626 A CN202111648626 A CN 202111648626A CN 114286009 A CN114286009 A CN 114286009A
Authority
CN
China
Prior art keywords
image
reflection
area
shooting
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111648626.XA
Other languages
Chinese (zh)
Inventor
赖炜炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111648626.XA priority Critical patent/CN114286009A/en
Publication of CN114286009A publication Critical patent/CN114286009A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The application discloses a method and a device for shooting a reflection image, electronic equipment and a storage medium, and belongs to the technical field of image processing. The method for shooting the inverted image comprises the following steps: displaying a preview image, wherein a first area of the preview image comprises a shooting object; generating a reflection image of the photographic object according to the image in the first area; and displaying a first image, wherein the first image is generated according to the preview image and the reflection image.

Description

Inverted image shooting method and device, electronic equipment and storage medium
Technical Field
The application belongs to the field of image processing, and particularly relates to a method and a device for shooting a reflection image, electronic equipment and a storage medium.
Background
Mirror reflection is a common photographic element, and for example, scenes with mirror effects such as ponding after rain, lakes, rivers, glass outer walls and the like are utilized to make landscapes and buildings show different charm. However, the environment of shooting is also limited in a specific scene, and taking water surface shooting as an example, shooting needs to be performed when the water surface is still so as to prevent the blur, and an angle of a lower machine position needs to be selected so as to ensure that a shot object is completely displayed in a picture, or the blur and the object form a pair relationship.
When a mirror surface reflection image is shot, a tripod device is generally used for fixing the shooting device, the shutter speed is reduced, the light sensitivity is reduced, the aperture is reduced, a light reduction filter is also needed to be erected in front of a lens in outdoor shooting, long-time exposure is adopted, the water surface is calm, and light spots of a building are changed into a starburst state. When the shooting site has no water surface but wants to shoot the mirror reflection, a mirror or other metal objects are selected to be vertically placed in front of the camera lens, and the effect of reflection can be shot.
Therefore, the process of obtaining the mirror reflection picture is complex, and a certain skill and method are needed to achieve a good effect.
Content of application
An object of the present embodiment is to provide a method, an apparatus, an electronic device, and a storage medium for shooting a reversed image, which can automatically generate a reversed image according to a shooting object, and simplify the shooting process of the reversed image.
In a first aspect, the present embodiment provides a method for shooting a reflection image, including: displaying a preview image, wherein a first area of the preview image comprises a shooting object; generating a reflection image of the photographic object according to the image in the first area; and displaying a first image, wherein the first image is generated according to the preview image and the reflection image.
In a second aspect, the present embodiment provides a reversed image photographing apparatus, including: the device comprises a first display module, a second display module and a third display module, wherein the first display module is used for displaying a preview image, and a first area of the preview image comprises a shooting object; the reflection generation module is used for generating a reflection image of the shooting object according to the image in the first area; and the second display module is used for displaying a first image, and the first image is generated according to the preview image and the reflection image.
In a third aspect, the present embodiment provides an electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, the present embodiments provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment, the inverted image of the shooting object is generated in the second area according to the shooting object in the first area of the preview image, the first image is automatically generated according to the shooting object and the inverted image of the shooting object, the inverted image can be generated according to the image of the shooting object, the operation process of shooting the inverted image by a user is simplified, and the inverted image display effect is good.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for shooting a reversed image according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a preview image provided by the present embodiment;
FIG. 3 is a schematic diagram of a first image provided in this embodiment;
FIG. 4 is a schematic diagram of a terminal interface provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a reversed image capturing device provided in this embodiment;
fig. 6 is a block diagram of an electronic device provided in this embodiment;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to this embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The method, the apparatus and the electronic device for shooting a reflection image provided in the present embodiment are described in detail below with reference to the accompanying drawings.
The embodiment of the application provides a method for shooting a reflection image, an execution main body of the method can be electronic equipment, and the electronic equipment can be any equipment with a shooting function, such as a mobile phone, a tablet personal computer and the like, and is not limited herein. The following embodiments will be described with the execution main body as an electronic apparatus.
As shown in fig. 1, the inverted image photographing method includes the following S110 to S130:
and S110, displaying the preview image.
In this embodiment, the preview image may be a real-time image obtained by a shooting component of the electronic device, and it is understood that the shot image includes a shooting object, an object around the shooting object, and the like. The first area of the preview image of the present embodiment includes a photographic subject, which may be a mountain, sky, or the like. It is understood that, in the case where there is an inverted image in the scene of the photographic subject as described above, the combination of the photographic subject and the inverted image of the photographic subject may have a better photographic effect, but there may be a case where the inverted image is not clear, and thus, there is a need to perform an inverted image processing on the generated preview image.
Referring to fig. 2, the preview image in the present embodiment may be the screen shown in fig. 2, and the preview image includes a first area a and a second area B, where the first area a has a photographic subject therein, the second area B is an area where reflection occurs, and the second area B may have elements that cause reflection on a water surface, a lake surface, a mirror surface, and the like to generate a reflection image, and the reflection image may be the whole photographic subject or may be a part of the photographic subject.
In some embodiments, image recognition may be performed on the scene in the preview image to determine whether there is an element that generates an inverted image in the second region, for example, if a water surface is recognized, it is determined that the inverted image may be generated, but when the area of the water surface is smaller, a condition for generating the inverted image may not be met, that is, when the area of the element that generates the inverted image is smaller, the embodiment detects whether an area of a mirror image formed by the element that generates the inverted image in the preview image is larger than a first ratio of the preview image; and determining that the preview image contains elements generating reflection under the condition that the area occupied by the mirror surface picture is larger than the first proportion of the preview image. For example, if the feature of the preview image is extracted by the AI scene detection algorithm, and it is determined that there are mountain and water 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 represented that the preview image has elements that produce reflection, and it can be determined that the reflection-producing element image includes reflection of the photographic subject. The first ratio may be 1/3 or 1/4, and the specific value may be set according to the user's requirement.
In this embodiment, when it is detected that the image to be previewed includes a reflection scene, a corresponding attribute tag may be generated according to attribute information of an element that generates a reflection, for example, the attribute tag may be a mountain reflection, a modern building reflection, a bridge reflection, a pavilion reflection, or the like. The attribute tag can be displayed on the preview image picture in a text form so as to display the detection result to the user.
And S120, generating a reflection image of the shooting object according to the image in the first area.
Referring to fig. 2, the second area in fig. 2 is a water surface, but due to the influence of environmental factors, the water surface may generate ripples, so that the reflection generated in the second area is unclear, and therefore, the reflection image of the photographic subject is generated through the image in the first area in the present embodiment.
The method of generating the inverted image of the photographic subject in the second region may be configured such that a boundary between the first region and the second region is recognized to obtain an inverted boundary, and after the inverted boundary is acquired, a mirror image of the photographic subject is acquired in the second region based on the inverted boundary, thereby acquiring an inverted image of the photographic subject in the second region.
And S130, displaying the first image.
In this embodiment, the first image is generated from the preview image and the reflection image. Referring to fig. 3, fig. 3 is a first image obtained from the preview image of fig. 2, the first image being obtained by combining a photographic subject in a first area a in the preview image of fig. 2 with a reflection image in a second area B obtained from the photographing in one embodiment.
In some embodiments, referring to fig. 4, the user may determine whether to display the first image through the virtual key 401 of the terminal device, for example, after the user acquires the preview image, the preview image may be directly stored in the terminal album if it is determined that the preview image does not need to be subjected to the reflection processing, and if the user is not satisfied with the mirror image effect of the preview image, the user may click the virtual key 401 to cause the terminal to execute S120 and S130 to display the first image.
The method for shooting the inverted image in the embodiment can generate the inverted image of the shooting object in the second area according to the shooting object in the first area of the preview image, automatically generate the first image according to the shooting object and the inverted image of the shooting object, and generate the inverted image according to the shooting object, does not have a complex operation process, is convenient and simple, and has a good inverted image display effect.
In one embodiment, elements which produce reflection on the water surface, the lake surface, the mirror surface and the like may not exist in the second area, when the preview image does not have reflection elements, the second area of the preview image does not have a reflection image of the photographic object, at this time, an intersection line of the photographic object and the ground, that is, a reflection boundary line, may be obtained, and the photographic object may be subjected to a mirror image operation of copying and turning with the reflection boundary line as a mirror image axis, so that a reflection image symmetrical to the photographic object about the intersection line is obtained in the second area, thereby satisfying the requirement of generating reflection even when the photographic scene does not include reflection elements, and realizing different image visual effects.
In one embodiment, when there are elements that produce reflection on the water surface, lake surface, mirror surface, etc. in the second area of the preview image, there is reflection on the photographic subject in the second area, and the reflection may be the whole photographic subject or a part of the photographic subject. Therefore, in the present embodiment, when the second region of the preview image includes the reflection of the photographic subject, it is necessary to determine the reflection definition of the photographic subject, and generate the reflection image of the photographic subject from the image in the first region.
The method specifically comprises the following steps: and acquiring the definition of the reflection of the shot object in the second area, and generating a reflection image of the shot object according to the image in the first area under the condition that the definition is smaller than a preset threshold value.
The preset threshold in this embodiment may be the self-definition of the photographic subject, or may be a percentage of the self-definition of the photographic subject, for example, the preset threshold may be 80% of the self-definition of the photographic subject.
In this embodiment, the definition of the reflection of the photographic subject can be measured by the integrity of the reflection of the photographic subject relative to the photographic subject itself, and the brightness and color of the reflection of the photographic subject.
In some embodiments, the image features in the second region may be extracted and detected through a Salient Object Detection (SOD) to obtain the sharpness of the inverted image in the second region. It can be understood that, when the element that produces the reflection in the second area is the surface of water, because the existence of surface of water ripple can make the reflection picture definition not enough, can compare the definition of shooting object reflection this moment with preset threshold, under the condition that the definition of shooting object reflection is less than preset threshold, according to the image in the first area, generate the reflection image of shooting object.
In some embodiments, when the definition of the reflection of the photographic subject is greater than or equal to a preset threshold, the preview image may be directly displayed as the first image.
In the embodiment, whether the reflection in the second area of the preview image is processed is judged by acquiring the reflection definition of the photographic object in the second area, and when the reflection definition of the photographic object is greater than or equal to a preset threshold value, the preview image can be directly displayed as the first image, so that the terminal operation amount can be reduced; and when the definition of the reflection of the shot object is lower than a preset threshold value, generating a reflection image according to the shot object in the first area, so that the reflection effect is more obvious.
It is understood that, before generating the inverted image of the photographic subject, the region for generating the inverted image needs to be determined, that is, before displaying the first image, the present embodiment further includes: a reflection region is determined, and a reflection image of the subject is displayed in the reflection region.
In this embodiment, the reflection image is obtained by mirroring the image in the first region, wherein the reflection region may be determined by performing blur recognition on the reflection image in the second region, or may be determined by recognizing a reflection boundary between the first region and the second region.
In some embodiments, the reflection boundary between the first region and the second region is identified to determine the reflection region, and the position of the reflection boundary in the entire preview image screen may be determined first, and the reflection region may be determined according to the reflection boundary. For example, if the reflection boundary is located at 1/3 along the lower edge of the preview image in the center direction, indicating that the first region is 2/3 and the second region is 1/3, respectively, of the entire preview image, then the 1/3 region of the lower edge of the preview image in the center direction is the reflection region. It is understood that when the photographic subject in the first area is large, for example, when the first area and the second area are 1/2 of the whole preview image, and the height of the photographic subject exceeds 1/2 of the height of the first area, if the photographic subject is directly mirrored, the obtained reflection may exceed the second area, and at this time, the photographic subject may be tilted to obtain the complete reflection of the photographic subject in the second area.
In some embodiments, the user may determine the position of the line of the reflection boundary in the first image by adjusting the lens position.
In the embodiment, the inverted image is subjected to blur recognition, or the inverted area is determined according to the inverted boundary, and the inverted image of the photographic subject is displayed in the inverted area, so that the complete inverted image of the photographic subject can be obtained.
In some embodiments, the reflection boundary between the first region and the second region may be inclined, which may affect the shooting effect. Therefore, the present embodiment can also detect the positional relationship of the reflection dividing line between the photographic subject in the first region and the reflection in the second region and the reference line; and under the condition that the reflection dividing line does not coincide with the reference line, outputting first prompt information, wherein the first prompt information comprises the information of adjusting the shooting angle.
In some examples, the reference line is a horizontal boundary line between the first region and the second region, and in order to satisfy various photographing requirements, the reference line may also have a predetermined angle with respect to a horizontal line when a user wants to obtain a reflection image with a tilting effect.
In this embodiment, taking a horizontal boundary line where the reference line is the first area and the second area as an example, when the reflection boundary line is not in a horizontal state, the first prompting information is generated, for example, when the reflection boundary line has an inclination angle of 30 degrees with respect to the reference line and the shooting object is inclined, the first prompting information is output, and the first prompting information includes shooting angle adjustment information, for example, the first information is "please adjust the camera angle" until the reflection boundary line coincides with the reference line.
In this embodiment, the first reminding information may be displayed on the first image in a text manner, or may be played in a voice manner.
In this embodiment, the positional relationship between the reflection dividing line between the photographic subject in the first area and the reflection in the second area and the reference line is detected to detect whether the reflection dividing line between the photographic subject and the reflection image is inclined, and when the reflection dividing line does not coincide with the reference line, the first presentation information including the adjustment shooting angle information is output, thereby making the reflection display effect of the first image more desirable.
In some embodiments, in consideration of the fact that the shooting object is incomplete during the shooting framing process, in order to obtain the finished shooting reflection, the present embodiment further outputs second prompt information in the case that the shooting object is incomplete, where the second prompt information includes information for adjusting the shooting distance.
In some embodiments, the photographic subject may be a subject with a certain height, for example, the photographic subject may be a tall tower, in which case, the photographic subject may not be able to be completely in the picture of the first area, and therefore, it may be detected whether the photographic subject in the preview image is complete through feature recognition, and in case that the photographic subject is incomplete, a second prompt message may be output, for example, the second prompt message is "better from far shooting effect". After the second reminding information is output, a wide-range picture can be collected by starting a wide-angle camera of the electronic equipment.
In some embodiments, considering that the reflection image in the first image is directly obtained from the photographic subject in the first area of the preview image, which may be slightly different from the visual effect in reality, the embodiment further adjusts the display effect of the first image by receiving the first input of the user after obtaining the target image after displaying the first image, and in response to the first input, so that the obtained first image has a more realistic reflection effect.
In this embodiment, adjusting the display effect of the first image includes at least one of: blurring the image, vignetting, adding simulated ripples. In some embodiments, the first input to the electronic device by the user may be an image editing instruction input by the user through an image editing page of the electronic device, and the image editing instruction may be a combination of one or more of blurring, adjusting brightness, darkening a corner, and adding simulated ripples to the reflection in the target image to achieve a more realistic reflection effect.
The inverted image shooting method provided by the embodiment can generate the inverted image of the shooting object in the second area according to the shooting object in the first area of the preview image, automatically generate the first image according to the shooting object and the inverted image of the shooting object, and generate the inverted image according to the shooting object, does not have a complex operation process, is convenient and simple, and has a good inverted image display effect. And scene information in the preview image can be identified, the mirror reflection image is intelligently realized, the optimal composition is helped for the user, and the user can shoot high-quality mirror reflection pictures in scenes with different mirror states.
It should be noted that, in the inverted image capturing method provided in this embodiment, the execution subject may be an inverted image capturing apparatus, or alternatively, a control module in the inverted image capturing apparatus for executing the loading inverted image capturing method. In this embodiment, the method for shooting the inverted image by loading the inverted image is executed by the inverted image shooting device as an example.
Referring to fig. 5, there is provided a reversed image photographing device 500, the device including:
a first display module 501, configured to display a preview image, where a first area of the preview image includes a shooting object;
a reflection generation module 502, configured to generate a reflection image of the photographic subject according to the image in the first region;
a second display module 503, configured to display a first image, where the first image is generated according to the preview image and the reflection image.
In some embodiments, the reflection generation module 502 is further configured to generate a reflection image of the photographic subject from the image in the first region if the second region of the preview image includes a reflection of the photographic subject.
In some embodiments, the reflection generation module 502 is further configured to obtain a definition of a reflection of the photographic subject in the second region before generating a reflection image of the photographic subject from the image in the first region; and under the condition that the definition is smaller than a preset threshold value, generating a reflection image of the shooting object according to the image in the first area.
In some embodiments, the reflection generation module 502 is further configured to determine a reflection region; and displaying a reflection image of the photographic object in a reflection area, wherein the reflection image is obtained by mirroring the image in the first area.
In some embodiments, the reflection generation module 502 is further configured to detect a positional relationship between a reflection boundary between the photographic subject in the first region and the reflection in the second region and a reference line; and under the condition that the reflection dividing line is not coincident with the reference line, outputting first prompt information, wherein the first prompt information comprises shooting angle adjustment information.
In some embodiments, the reflection generation module 502 is further configured to output second prompt information including information for adjusting the shooting distance if the shooting object is not complete.
In some embodiments, the reflection generation module 502 is further configured to receive a first input from the user after displaying the first image; adjusting a display effect of the first image in response to the first input; wherein adjusting the display effect of the first image comprises at least one of: blurring the image; a hidden corner; adding simulated ripples.
According to the embodiment, the inverted image of the shooting object is generated in the second area according to the shooting object in the first area of the preview image to display the first image, the first image is generated according to the shooting object and the inverted image of the shooting object, the inverted image can be generated according to the shooting object, and the first image has a good inverted display effect.
The inverted image capturing apparatus in this embodiment may be an electronic device, or may be a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted 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), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The inverted image capturing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The inverted image capturing apparatus provided in this embodiment can implement each process implemented by the inverted image capturing apparatus in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 6, this embodiment further provides an electronic device 600, which includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the above-mentioned embodiment of the inverted image capturing method, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in this embodiment includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment.
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.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The display unit 706 is configured to display a preview image, where a first region of the preview image includes a photographic subject.
The processor 710 is configured to generate a reflection image of the photographic subject from the image in the first region.
The display unit 706 is further configured to display a first image, the first image being generated from the preview image and the reflection image.
Wherein, the processor 710 is further configured to generate a reflection image of the photographic subject according to the image in the first region when the second region of the preview image includes the reflection of the photographic subject.
The processor 710 is further configured to obtain the sharpness of the reflection of the photographic subject in the second region before generating the reflection image of the photographic subject from the image in the first region; and under the condition that the definition is smaller than a preset threshold value, generating a reflection image of the shooting object according to the image in the first area.
A processor 710 further configured to determine a reflection region before the display unit 706 displays the first image; and displaying a reflection image of the photographic object in the reflection area, wherein the reflection image is obtained by mirroring the image in the first area.
A processor 710, further configured to detect a positional relationship between a reflection boundary between the photographic subject in the first area and the reflection in the second area and the reference line; and under the condition that the reflection dividing line does not coincide with the reference line, outputting first prompt information, wherein the first prompt information comprises shooting angle adjustment information.
The processor 710 is further configured to output a second prompt message including information for adjusting the shooting distance if the shooting object is not complete.
A processor 710 further for receiving a first input from a user after displaying the first image; adjusting a display effect of a first image in response to the first input; wherein adjusting the display effect of the first image comprises at least one of: blurring the image; a hidden corner; adding simulated ripples.
The image processing method and the image processing device can generate the reflection image of the shooting object in the second area according to the shooting object in the first area of the preview image, automatically generate the first image according to the shooting object and the reflection image of the shooting object, and generate the reflection according to the shooting object, do not have a complex operation process, are convenient and simple, and have a good reflection display effect. And scene information in the preview image can be automatically identified based on scene judgment, the mirror reflection image is intelligently realized, the optimal composition of the user is facilitated, and the user can shoot high-quality mirror reflection pictures in scenes with different mirror states.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 741 and a microphone 7042, and the Graphics processor 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing 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, or the like. 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 of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a first storage area for storing a program or an instruction and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. Further, the memory 709 may include volatile memory or nonvolatile memory, or the memory 709 may include both volatile and nonvolatile memory. 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 Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus 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 memory.
Processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor, which primarily handles operations involving the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The present embodiment further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned inverted image shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The present embodiment further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned embodiment of the inverted image shooting method, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the present embodiment may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the processes of the above-mentioned embodiment of the method for shooting a reflection image, and achieve the same technical effects, and in order to avoid repetition, the details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of shooting a reversed image, comprising:
displaying a preview image, wherein a first area of the preview image comprises a shooting object;
generating a reflection image of the photographic object according to the image in the first area;
and displaying a first image, wherein the first image is generated according to the preview image and the reflection image.
2. The method according to claim 1, wherein the generating a reflection image of the photographic subject from the image in the first region comprises:
and when the second area of the preview image comprises the reflection of the shooting object, generating a reflection image of the shooting object according to the image in the first area.
3. The method according to claim 2, wherein before generating the inverted image of the photographic subject from the image in the first region, the method further comprises:
acquiring the definition of the reflection of the shooting object in the second area;
the generating a reflection image of the photographic subject from the image in the first region includes:
and under the condition that the definition is smaller than a preset threshold value, generating a reflection image of the shooting object according to the image in the first area.
4. The method of claim 1, wherein prior to displaying the first image, further comprising:
determining a reflection region;
and displaying a reflection image of the shooting object in the reflection area, wherein the reflection image is obtained by carrying out mirror image processing on the image in the first area.
5. The method of claim 1, wherein the second region of the preview image comprises a reflection of the photographic subject, the method further comprising:
detecting a positional relationship between a reflection boundary between the photographic subject in the first region and the reflection in the second region and a reference line;
and under the condition that the reflection dividing line is not coincident with the reference line, outputting first prompt information, wherein the first prompt information comprises shooting angle adjustment information.
6. The method of claim 1, further comprising:
and outputting second prompt information under the condition that the shooting object is not complete, wherein the second prompt information comprises information for adjusting the shooting distance.
7. The method of claim 1, wherein after displaying the first image, the method further comprises:
receiving a first input of a user;
adjusting a display effect of the first image in response to the first input;
wherein the adjusting the display effect of the first image comprises at least one of:
blurring the image;
a hidden corner;
adding simulated ripples.
8. A reversed image photographing apparatus, comprising:
the device comprises a first display module, a second display module and a third display module, wherein the first display module is used for displaying a preview image, and a first area of the preview image comprises a shooting object;
the reflection generation module is used for generating a reflection image of the shooting object according to the image in the first area;
and the second display module is used for displaying a first image, and the first image is generated according to the preview image and the reflection image.
9. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the method of any one of claims 1-7.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1-7.
CN202111648626.XA 2021-12-29 2021-12-29 Inverted image shooting method and device, electronic equipment and storage medium Pending CN114286009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111648626.XA CN114286009A (en) 2021-12-29 2021-12-29 Inverted image shooting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111648626.XA CN114286009A (en) 2021-12-29 2021-12-29 Inverted image shooting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114286009A true CN114286009A (en) 2022-04-05

Family

ID=80878469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111648626.XA Pending CN114286009A (en) 2021-12-29 2021-12-29 Inverted image shooting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114286009A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005191964A (en) * 2003-12-25 2005-07-14 Toshiba Corp Image processing method
CN107103581A (en) * 2017-04-21 2017-08-29 努比亚技术有限公司 A kind of image inverted image processing method, device and computer-readable medium
CN108055463A (en) * 2017-12-26 2018-05-18 努比亚技术有限公司 Image processing method, terminal and storage medium
CN108900903A (en) * 2018-07-27 2018-11-27 北京市商汤科技开发有限公司 Method for processing video frequency and device, electronic equipment and storage medium
CN110086990A (en) * 2019-04-28 2019-08-02 深圳回收宝科技有限公司 A kind of photographic method of terminal, device, portable terminal and storage medium
CN111432123A (en) * 2020-03-30 2020-07-17 维沃移动通信有限公司 Image processing method and device
WO2021036623A1 (en) * 2019-08-30 2021-03-04 维沃移动通信有限公司 Display method and electronic device
CN113079316A (en) * 2021-03-26 2021-07-06 维沃移动通信有限公司 Image processing method, image processing device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005191964A (en) * 2003-12-25 2005-07-14 Toshiba Corp Image processing method
CN107103581A (en) * 2017-04-21 2017-08-29 努比亚技术有限公司 A kind of image inverted image processing method, device and computer-readable medium
CN108055463A (en) * 2017-12-26 2018-05-18 努比亚技术有限公司 Image processing method, terminal and storage medium
CN108900903A (en) * 2018-07-27 2018-11-27 北京市商汤科技开发有限公司 Method for processing video frequency and device, electronic equipment and storage medium
CN110086990A (en) * 2019-04-28 2019-08-02 深圳回收宝科技有限公司 A kind of photographic method of terminal, device, portable terminal and storage medium
WO2021036623A1 (en) * 2019-08-30 2021-03-04 维沃移动通信有限公司 Display method and electronic device
CN111432123A (en) * 2020-03-30 2020-07-17 维沃移动通信有限公司 Image processing method and device
CN113079316A (en) * 2021-03-26 2021-07-06 维沃移动通信有限公司 Image processing method, image processing device and electronic equipment

Similar Documents

Publication Publication Date Title
US10317777B2 (en) Automatic zooming method and apparatus
CN112532881B (en) Image processing method and device and electronic equipment
CN114422692B (en) Video recording method and device and electronic equipment
CN112637500A (en) Image processing method and device
CN112511737A (en) Image processing method and device, electronic equipment and readable storage medium
CN103327246A (en) Multimedia shooting processing method, device and intelligent terminal
CN114401362A (en) Image display method and device and electronic equipment
CN111835972A (en) Shooting method and device and electronic equipment
CN116744065A (en) Video playing method and device
CN114286009A (en) Inverted image shooting method and device, electronic equipment and storage medium
CN111654623B (en) Photographing method and device and electronic equipment
CN114245017A (en) Shooting method and device and electronic equipment
CN114285922A (en) Screenshot method, screenshot device, electronic equipment and media
CN112261483A (en) Video output method and device
CN114390205B (en) Shooting method and device and electronic equipment
CN114222069B (en) Shooting method, shooting device and electronic equipment
CN112887621B (en) Control method and electronic device
CN114157810B (en) Shooting method, shooting device, electronic equipment and medium
CN114143455B (en) Shooting method and device and electronic equipment
CN113709326B (en) Lens shading correction method and device and electronic equipment
CN110060355B (en) Interface display method, device, equipment and storage medium
CN114245015A (en) Shooting prompting method and device, electronic equipment and medium
CN117528179A (en) Video generation method and device
CN117149038A (en) Image display method and image display device
CN114449172A (en) Shooting method and device and electronic equipment

Legal Events

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