A shooting prompt method, device, electronic device and medium
By determining the reflection area based on the height and distance of the target object and outputting prompt information, the problem of low efficiency in determining the reflection area during reflection shooting is solved, and rapid and accurate shooting efficiency is achieved.
Patent Information
- Application Number
- CN202111575113.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-12-21
AI Technical Summary
During reflection shooting, users need to repeatedly try to determine the reflection area, resulting in low shooting efficiency.
By determining the reflection area based on the height of the target object, the first distance (the distance between the shooting position and the target plane) and the second distance (the distance between the shooting position and the target object), the reflection area is determined and prompt information, including the position of the reflection area, So that the user can quickly and accurately determine the reflection area.
Without repeated attempts from users, the reflection area can be quickly and accurately determined, improving shooting efficiency.
Smart Images

Figure CN114245015B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and in particular, relates to a shooting prompt method, device, electronic device and medium. Background Art
[0002] With the rapid development of mobile communication technology, mobile terminals (such as smart phones) are used more and more frequently. Users often use mobile terminals in various occasions and places. At the same time, as the photo quality of mobile terminals continues to upgrade, mobile terminals have also become the main tool for people to take photos.
[0003] As users have higher and higher requirements for beauty and creativity in taking photos, there is a common scene when taking photos, which requires taking photos of the reflection of the background at the same time. In the above-mentioned shooting scene, it is usually necessary to select the reflection area for the reflection shooting during the shooting process. However, in the process of determining the above-mentioned reflection area, it is usually necessary to try repeatedly many times to obtain the correct reflection area, which results in a long time for adjusting the photo, reducing the shooting efficiency. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a shooting prompt method, device, electronic device and medium to solve the technical problem of low shooting efficiency during reflection shooting.
[0005] In order to solve the above technical problems, the embodiments of the present application are implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a shooting prompt method, comprising:
[0007] Determine a reflection area according to a height of the target object, a first distance, and a second distance, wherein the first distance is a distance between a shooting position and a target plane, and the second distance is a distance between the shooting position and the target object;
[0008] Output prompt information, where the prompt information includes the position of the reflection area.
[0009] In a second aspect, an embodiment of the present application provides a shooting prompt device, including:
[0010] A first determining module, configured to determine a reflection area according to a height of a target object, a first distance, and a second distance, wherein the first distance is a distance between a shooting position and a target plane, and the second distance is a distance between the shooting position and the target object;
[0011] The output module is used to output prompt information, where the prompt information includes the position of the reflection area.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the shooting prompt method as described in the first aspect.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the shooting prompt method described in the first aspect are implemented.
[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the shooting prompt method as described in the first aspect.
[0015] 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.
[0016] The shooting prompt method, device, electronic device and medium in the embodiments of the present application determine the reflection area according to the height, first distance and second distance of the target object, the first distance is the distance between the shooting position and the target plane, and the second distance is the distance between the shooting position and the target object, and then output the prompt information, and the prompt information includes the position of the reflection area. In the embodiments of the present application, by determining the reflection area according to the height, first distance and second distance of the target object, and then outputting the prompt information, the position of the reflection area can be quickly and accurately determined during the reflection shooting process. In the process of determining the reflection area, the user does not need to try repeatedly for many times, and the user can determine the reflection area based on the above prompt information, thereby effectively improving the shooting efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of a first flow chart of a shooting prompt method provided in an embodiment of the present application;
[0018] Figure 2 A second flow chart of the shooting prompt method provided in an embodiment of the present application;
[0019] Figure 3 A third flow chart of the shooting prompt method provided in an embodiment of the present application;
[0020] Figure 4 A fourth flow chart of the shooting prompt method provided in an embodiment of the present application;
[0021] Figure 5A two-dimensional schematic diagram of the shooting prompt method provided in an embodiment of the present application;
[0022] Figure 6 A schematic diagram of the module composition of the shooting prompt device provided in an embodiment of the present application;
[0023] Figure 7 A schematic diagram of a first structure of an electronic device provided in an embodiment of the present application;
[0024] Figure 8 A second structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0027] In the embodiment of the present application, the terminal device may be a smart phone, a tablet computer, etc. Taking the terminal device as an example, Figure 1 A first flow chart of the shooting prompt method provided in an embodiment of the present application is shown in FIG. Figure 1 The method can be executed by a terminal device, in particular, by a program module provided in the terminal device, such as Figure 1 As shown, the method comprises at least the following steps:
[0028] In S102, a reflection area is determined according to the height of the target object, a first distance, and a second distance, where the first distance is the distance between the shooting position and the target plane, and the second distance is the distance between the shooting position and the target object.
[0029] As an example, the target object may be an object used for reflection shooting during the shooting process. For example, if a certain building is used as the background for reflection shooting, the building may be the target object in the embodiment of this specification. If a certain natural scenery is used as the background for reflection shooting, the natural scenery may be the target object in the embodiment of this specification, and the specific content of the target object is not specifically limited in the embodiment of this specification. The shooting position may be the current position of the terminal device (such as a mobile terminal) used for shooting. The target plane may be a plane where reflection framing can be performed, or it may be a plane where the reflection area is located, such as the ground. The first distance may be the distance between the terminal device and the ground, etc. The reflection area may be a framing area for the target object, and the framing area may be a liquid area located on the ground, and the liquid may be water, etc. Alternatively, the framing area may also be an area where a mirror is located, an area where frosted glass is located, etc., where the reflection of the target object can be framed, etc. The embodiment of this specification does not specifically limit the specific content contained in the reflection area.
[0030] In an optional implementation, the user's terminal device may be provided with a camera component and applications such as a camera. When the user needs to shoot through the terminal device, the user may enter the shooting preview interface by clicking the shooting button on the main interface of the above application, or enter the shooting preview interface by other means such as voice. Then, the user may send a first shooting instruction to the terminal device by clicking the first shooting button in the above shooting preview interface. In this way, the terminal device may enter the reflection shooting mode after receiving the above first shooting instruction, and display the preview image in the display interface of the terminal device. The user may select a target object from the above preview image, the terminal device receives the above target object, and uses a preset algorithm to determine the height of the above target object, the distance between the shooting position and the above target plane, and the distance between the above shooting position and the target object. Then, according to the height of the above target object, the first distance and the second distance, the above reflection area may be determined using the optical principle of mirror reflection.
[0031] In S104, prompt information is output, where the prompt information includes the position of the reflection area.
[0032] In an optional implementation, after the reflection area is determined in the above 102, the three-dimensional coordinate information of the reflection area at the current shooting position can be constructed, the three-dimensional coordinate information of the reflection area can be output, and the three-dimensional coordinate information of the reflection area can be displayed in the display interface of the terminal device to prompt the user through the three-dimensional coordinate information of the reflection area.
[0033] It can be seen from the technical solutions provided in the above embodiments of this specification that the embodiments of this specification determine the reflection area according to the height, the first distance and the second distance of the target object, the first distance being the distance between the shooting position and the target plane, and the second distance being the distance between the shooting position and the target object, and then outputting prompt information, the prompt information including the position of the reflection area. In the embodiments of the present application, by determining the reflection area according to the height, the first distance and the second distance of the target object, and then outputting prompt information, the position of the reflection area can be quickly and accurately determined during the reflection shooting process. In this way, since in the process of determining the reflection area, the user does not need to try repeatedly for many times, the user can determine the reflection area based on the prompt information, thereby effectively improving the shooting efficiency.
[0034] Further, such as Figure 2 As shown, after the terminal device is processed through the above S102, the above method may further include S106.
[0035] In S106, when the reflection area meets the reflection condition, the camera is controlled to capture a first preview image, where the first preview image includes a reflected image of the target object.
[0036] In an optional implementation, taking the above-mentioned reflection area as a water surface framing area as an example, after the above-mentioned terminal device determines the reflection area through the above-mentioned processing of S102, the reflection area can be displayed in the above-mentioned terminal device, and the user can determine the physical position area of the above-mentioned reflection area through the reflection area displayed in the above-mentioned terminal device, and fill the above-mentioned determined physical position area with water, and then control the camera to collect the first preview image. Since the physical position area corresponding to the above-mentioned reflection area is filled with water, in the process of the above-mentioned water surface reflection shooting, the reflection image of the above-mentioned target object can be captured at the above-mentioned shooting position through the reflection area. Since the above-mentioned process can quickly and accurately determine the reflection area in advance, the user can accurately select the reflection area during the reflection shooting process to improve the shooting efficiency.
[0037] In another optional implementation, when the above-mentioned reflection area meets the reflection condition, the user can adjust the shooting parameters (such as focal length, mode, exposure, etc.) of the above-mentioned camera application, and then trigger the shutter button displayed on the camera application to send a shooting instruction to the terminal device, so that the terminal device can control the camera to collect the first preview image when receiving the above-mentioned shooting instruction. Alternatively, when the above-mentioned reflection area meets the reflection condition, the user can send a shooting instruction to the terminal device by directly triggering the shutter button displayed on the camera application, so that the terminal device can receive the above-mentioned shooting instruction and control the camera to collect the first preview image when receiving the above-mentioned shooting instruction. The embodiments of this specification do not specifically limit the specific process of the above-mentioned shooting.
[0038] Further, such as Figure 3 As shown, before the above S102, the above method may further include the following processing procedures of step A2 to step A6. For details, please refer to the specific processing procedures of the following steps A2 to step A6.
[0039] In step A2, a shooting preview interface is displayed.
[0040] As an example, the shooting preview interface may be a preview interface of a person image to be shot, a preview interface of a scene image, a preview interface of a building image, etc. The embodiments of this specification do not specifically limit the specific content of the shooting preview interface.
[0041] In an optional implementation, the user's terminal device may be provided with a camera component, as well as camera applications. When the user needs to take pictures through the terminal device, the user can enter the shooting preview interface by clicking the photo button on the main interface of the above application, or enter the shooting preview interface through other methods such as voice. Then, the user can send a first shooting instruction to the terminal device by clicking the first shooting button in the above shooting preview interface. In this way, the terminal device can enter the reflection shooting mode upon receiving the above first shooting instruction, and display the shooting preview interface in the display interface of the terminal device.
[0042] In step A4, the preview image displayed on the shooting preview interface is identified, and when a first object is identified to exist in the preview image, the first object is determined as a target object.
[0043] As an example, the first object may be a pre-set object that can be photographed as a reflection, such as the top of a pre-set snow-capped mountain, or a pre-set building, etc. The embodiments of this specification do not specifically limit the specific content of the first object.
[0044] In an optional implementation, taking the first object as a snow mountain as an example, after the terminal device displays the shooting preview interface through the processing of step A2, the preview image displayed on the shooting preview interface can be identified. When it is identified that there is a snow mountain in the preview image, the snow mountain can be determined as the target object.
[0045] Alternatively, in step A6, when a first input of the user to the preview image is received, the second object selected by the first input is determined as the target object.
[0046] As an example, the first input may be a selection operation performed by a user using a finger or a stylus in the shooting preview interface displayed on the terminal device. Alternatively, it may be a voice input operation performed by voice, etc. The specific content of the first input is not specifically limited in the embodiments of this specification.
[0047] In an optional implementation, taking the snow mountain in the distance in the preview image as an example, if the user wants to take a reflection shot of the area where the top of the snow mountain is located, the user can use a finger or a stylus to touch and slide the top of the snow mountain displayed on the terminal device to determine the second object selected by the first input as the target object. The second object selected by the first input can also be determined as the target object by saying "the reflection shooting area is the top of the snow mountain" in voice.
[0048] Furthermore, in order to more accurately determine the above reflection area, Figure 3 As shown, the processing method of the above S102 can be various, and an optional processing method is provided below. For details, please refer to the processing methods of the following S1022-S1028, and for details, please refer to the specific processing process of the following S1022-S1028.
[0049] In S1022, three-dimensional modeling is performed on the target object in the preview image to obtain a first three-dimensional model.
[0050] In an optional implementation, a preset 3D modeling algorithm may be pre-set in the terminal device. When the terminal device determines the target object contained in the preview image, the terminal device may perform 3D modeling processing on the target object based on the preset 3D modeling algorithm to obtain a first 3D model.
[0051] In S1024, three-dimensional modeling is performed on the mirror image object of the target object to obtain a second three-dimensional model.
[0052] In an optional implementation, when the terminal device determines the target object contained in the above-mentioned preview image, it can determine the mirror object corresponding to the target object based on the target object, and then perform three-dimensional modeling processing on the mirror object based on the above-mentioned preset three-dimensional modeling algorithm to obtain a second three-dimensional model.
[0053] In S1026 , based on the first three-dimensional model and the second three-dimensional model, the height, the first distance, and the second distance of the target object are acquired.
[0054] In S1028, a reflection area is determined based on the height of the target object, the first distance, and the second distance.
[0055] In an optional implementation, Figure 4 As shown, the processing method of the above S1028 can be various. An optional processing method is provided below. For details, please refer to the specific processing process of the following S10282-S10284.
[0056] In S10282, a first position and a second position of the second three-dimensional model are determined, wherein the first position corresponds to the highest position of the target object in the vertical direction, and the second position corresponds to the lowest position of the target object in the vertical direction.
[0057] In S10284, based on the first position and the second position, a reflection area is determined.
[0058] In an optional implementation, the processing method of the above S10284 can be varied. An optional processing method is provided below. For details, please refer to the specific processing process of the following step B2-step B2.
[0059] In step B2, determining the position information of a first connecting line between the shooting position and the first position, and a first intersection point between the first connecting line and the mirror surface;
[0060] In step B4, the position information of the second connecting line between the shooting position and the second position and the second intersection point between the second connecting line and the mirror surface is determined.
[0061] In step B6, based on the position information of the first intersection point and the position information of the second intersection point, a reflection area is determined.
[0062] In an optional implementation, taking the above-mentioned mirrored object as a part of the target object in the reflection shooting area as an example, the above-mentioned mirrored object can be a partial area selected by the user on the target object displayed on the above-mentioned terminal device by means of a finger or a stylus, or can also be a partial area selected by voice, for example, by saying "the mirrored object is the top of the snow mountain" by voice to determine the top of the snow mountain as the mirrored object, etc. For example, the target object can be a snow mountain, and the mirrored object can be the top of the snow mountain, etc., that is, in this implementation, the selected partial area of the target object can be used as the reflection shooting area.
[0063] Specifically, based on the first three-dimensional model, the first vertical distance between the shooting position and the target plane, the second horizontal distance between the shooting position and the target object, and the first vertical height of the target object can be determined, and the second vertical height of the mirror object can be determined based on the second three-dimensional model. Then, based on the first vertical distance, the second horizontal distance, the first vertical height, and the second vertical height, the position information of the first intersection between the first connecting line and the mirror surface can be determined. And based on the first vertical distance, the second horizontal distance, the first vertical height, and the second vertical height, the position information of the second intersection between the second connecting line and the mirror surface is determined, and then, based on the position information of the first intersection and the position information of the second intersection, the reflection area can be determined.
[0064] In an optional implementation, Figure 5 As shown, assuming that the first vertical distance between the shooting position e and the target plane is a, the second horizontal distance between the shooting position e and the target object is d, the first vertical height h of the target object is determined, and the second vertical height b of the mirror object is determined based on the first position w and the second position v. Assuming that the horizontal distance between the first intersection m and the shooting position e is x, and the horizontal distance between the second intersection n and the shooting position e is y, the position information m of the first intersection and the position information n of the second intersection can be determined based on Formula 1: x = a / tan(arctan((a+h) / d)); Formula 2: y = a / tan(arctan((a+hb) / d)).
[0065] Furthermore, in order to enable the user to accurately find the physical location area corresponding to the target framing area, the processing process of the above S104 can be varied. An optional processing method is provided below. For details, please refer to the specific processing process of the following steps E2 to E4.
[0066] In step E2, position information of the reflection area in the first three-dimensional model is determined.
[0067] In step E4, prompt information is output based on the position information.
[0068] In an optional implementation, after the terminal device determines the position information of the reflection area in the first three-dimensional model through the processing of the above step E2, it can determine the coordinate information of the position information in the first three-dimensional model based on the above position information, and give a voice prompt for the location of the above reflection area, or mark the location of the above reflection area to guide the user to find the physical location area corresponding to the above reflection area.
[0069] It can be seen from the technical solutions provided in the above embodiments of this specification that the embodiments of this specification determine the reflection area according to the height, the first distance and the second distance of the target object, the first distance is the distance between the shooting position and the target plane, and the second distance is the distance between the shooting position and the target object, and output prompt information, and the prompt information includes the position of the reflection area. In the embodiments of the present application, by determining the reflection area according to the height, the first distance and the second distance of the target object, and then outputting the prompt information, the position of the reflection area can be quickly and accurately determined during the reflection shooting process. In this way, since the user does not need to try repeatedly in the process of determining the reflection area, the user can determine the reflection area based on the above prompt information, thereby effectively improving the shooting efficiency.
[0070] The shooting prompt method provided in the embodiment of the present application can be executed by a shooting prompt device. In the embodiment of the present application, the shooting prompt device provided in the embodiment of the present application is described by taking the method of executing the shooting prompt by the shooting prompt device as an example. Figure 6 As shown, the shooting prompting device comprises:
[0071] A first determining module 601 is used to determine a reflection area according to a height of a target object, a first distance, and a second distance, wherein the first distance is a distance between a shooting position and a target plane, and the second distance is a distance between the shooting position and the target object;
[0072] The output module 602 is used to output prompt information, where the prompt information includes the position of the reflection area.
[0073] Optionally, the above device further includes:
[0074] The control module is used to control the camera to collect a first preview image when the reflection area meets the reflection condition, and the first preview image includes a reflected image of the target object.
[0075] Optionally, the above device further includes:
[0076] Display module, used to display the shooting preview interface;
[0077] A second determination module is used to identify the preview image displayed on the shooting preview interface, and when a first object is identified in the preview image, determine the first object as a target object;
[0078] Alternatively, the third determination module is configured to, upon receiving a first input from a user on the preview image, determine a second object selected by the first input as the target object.
[0079] Optionally, the first determining module includes:
[0080] A first modeling unit, configured to perform three-dimensional modeling on the target object in the preview image to obtain a first three-dimensional model;
[0081] A second modeling unit is used to perform three-dimensional modeling on the mirror image object of the target object to obtain a second three-dimensional model;
[0082] an acquisition unit, configured to acquire a height, a first distance, and a second distance of a target object based on the first three-dimensional model and the second three-dimensional model;
[0083] The first determining unit is configured to determine a reflection area based on the height of the target object, the first distance, and the second distance.
[0084] Optionally, the above-mentioned determination unit includes:
[0085] A first determining subunit is used to determine a first position and a second position of the second three-dimensional model, wherein the first position corresponds to the highest position of the target object in the vertical direction, and the second position corresponds to the lowest position of the target object in the vertical direction;
[0086] A second determining subunit is configured to determine a reflection area based on the first position and the second position.
[0087] Optionally, the output module includes:
[0088] A second determining unit, used to determine position information of the reflection area in the first three-dimensional model;
[0089] An information output unit is used to output prompt information based on the location information.
[0090] It can be seen from the technical solutions provided in the above embodiments of this specification that the embodiments of this specification determine the reflection area according to the height, the first distance and the second distance of the target object, the first distance being the distance between the shooting position and the target plane, and the second distance being the distance between the shooting position and the target object, and then outputting prompt information, the prompt information including the position of the reflection area. In the embodiments of the present application, by determining the reflection area according to the height, the first distance and the second distance of the target object, and then outputting prompt information, the position of the reflection area can be quickly and accurately determined during the reflection shooting process. In this way, since in the process of determining the reflection area, the user does not need to try repeatedly for many times, the user can determine the reflection area based on the prompt information, thereby effectively improving the shooting efficiency.
[0091] The shooting prompt device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0092] The shooting prompt device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0093] The shooting prompt device provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0094] Alternatively, if Figure 8As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores programs or instructions that can be executed on the processor 801, and when the program or instructions are executed by the processor 801, the various steps of the above-mentioned shooting prompt method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0095] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0096] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0097] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810 and other components.
[0098] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0099] The processor 810 is configured to:
[0100] Determine a reflection area according to a height of the target object, a first distance, and a second distance, wherein the first distance is a distance between a shooting position and a target plane, and the second distance is a distance between the shooting position and the target object;
[0101] Output prompt information, where the prompt information includes the position of the reflection area.
[0102] Furthermore, the processor 810 is used to control the camera to capture a first preview image when the reflection area meets the reflection condition, and the first preview image includes a reflected image of the target object.
[0103] Furthermore, the display unit 806 is used to:
[0104] Display the shooting preview interface;
[0105] The processor 810 is configured to:
[0106] Identifying a preview image displayed on the shooting preview interface, and when a first object is identified to exist in the preview image, determining the first object as a target object;
[0107] Alternatively, when a first input of the user to the preview image is received, the second object selected by the first input is determined as the target object.
[0108] Furthermore, the processor 810 is further configured to:
[0109] Performing three-dimensional modeling on the target object in the preview image to obtain a first three-dimensional model;
[0110] Performing three-dimensional modeling on the mirror image object of the target object to obtain a second three-dimensional model;
[0111] Based on the first three-dimensional model and the second three-dimensional model, acquiring a height, a first distance, and a second distance of a target object;
[0112] A reflection area is determined based on the height of the target object, the first distance, and the second distance.
[0113] Furthermore, the processor 810 is further configured to:
[0114] Determine a first position and a second position of the second three-dimensional model, wherein the first position corresponds to the highest position of the target object in the vertical direction, and the second position corresponds to the lowest position of the target object in the vertical direction;
[0115] Based on the first position and the second position, a reflection area is determined.
[0116] Furthermore, the processor 810 is further configured to:
[0117] Determining position information of the reflection area in the first three-dimensional model;
[0118] Based on the position information, prompt information is output.
[0119] It can be seen from the technical solutions provided in the above embodiments of this specification that the embodiments of this specification determine the reflection area according to the height, the first distance and the second distance of the target object, the first distance being the distance between the shooting position and the target plane, and the second distance being the distance between the shooting position and the target object, and then outputting prompt information, the prompt information including the position of the reflection area. In the embodiments of the present application, by determining the reflection area according to the height, the first distance and the second distance of the target object, and then outputting prompt information, the position of the reflection area can be quickly and accurately determined during the reflection shooting process. In this way, since in the process of determining the reflection area, the user does not need to try repeatedly for many times, the user can determine the reflection area based on the prompt information, thereby effectively improving the shooting efficiency.
[0120] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0121] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 may include a volatile memory or a non-volatile memory, or the memory 809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0122] The processor 810 may include one or more processing units; optionally, the processor 910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.
[0123] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned shooting prompt method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0124] 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 computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0125] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned shooting prompt method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0126] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0127] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned shooting prompt method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0128] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the 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 reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0130] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A shooting prompt method, characterized in that: The method comprises: Determine the reflection area according to the height of the target object, a first distance, and a second distance, wherein the first distance is the distance between the shooting position and the target plane, and the second distance is the distance between the shooting position and the target object; the target object is an object used as a reflection in the shooting process; Output prompt information, the prompt information including the position of the reflection area, and the position of the reflection area is displayed as three-dimensional coordinate information.
2. The method according to claim 1, characterized in that After outputting the prompt information, the method further includes: When the reflection area meets the reflection condition, the camera is controlled to capture a first preview image, where the first preview image includes a reflected image of the target object.
3. The method according to claim 1, characterized in that Before determining the reflection area according to the height of the target object, the first distance and the second distance, the method further includes: Display the shooting preview interface; Identifying a preview image displayed on the shooting preview interface, and when a first object is identified to exist in the preview image, determining the first object as a target object; Alternatively, when a first input of the user to the preview image is received, the second object selected by the first input is determined as the target object.
4. The method according to claim 1, characterized in that: The step of determining the reflection area according to the height of the target object, the first distance and the second distance includes: Performing three-dimensional modeling on the target object in the preview image to obtain a first three-dimensional model; Performing three-dimensional modeling on the mirror image object of the target object to obtain a second three-dimensional model; Based on the first three-dimensional model and the second three-dimensional model, acquiring a height, a first distance, and a second distance of a target object; A reflection area is determined based on the height of the target object, the first distance, and the second distance.
5. The method according to claim 4, characterized in that The determining of the reflection area based on the height of the target object, the first distance, and the second distance includes: Determine a first position and a second position of the second three-dimensional model, wherein the first position corresponds to the highest position of the target object in the vertical direction, and the second position corresponds to the lowest position of the target object in the vertical direction; Based on the first position and the second position, a reflection area is determined.
6. The method according to claim 4, characterized in that The output prompt information includes: Determining position information of the reflection area in the first three-dimensional model; Based on the position information, prompt information is output.
7. A shooting prompting device, characterized in that: The device comprises: A first determining module is used to determine a reflection area according to a height of a target object, a first distance, and a second distance, wherein the first distance is a distance between a shooting position and a target plane, and the second distance is a distance between the shooting position and the target object; the target object is an object used as a reflection in a shooting process; The output module is used to output prompt information, wherein the prompt information includes the position of the reflection area, and the position of the reflection area is displayed in three-dimensional coordinate information.
8. The device according to claim 7, characterized in that The device also includes: The control module is used to control the camera to collect a first preview image when the reflection area meets the reflection condition, and the first preview image includes a reflected image of the target object.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the shooting prompt method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the shooting prompt method according to any one of claims 1 to 6 are implemented.
