Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a shooting method according to an embodiment of the present invention, and as shown in fig. 1, the embodiment provides a shooting method applied to an electronic device, where the electronic device includes a movable off-screen camera, and the method includes the following steps:
and 101, acquiring the azimuth information of the target object relative to the under-screen camera.
The movable under-screen camera may be understood as an under-screen camera that may perform at least one of translation or rotation. The camera is located the display screen below under the screen, and like this, the camera can not occupy the area of display screen under the screen to improve the screen and account for the ratio. When the camera was out of work under the screen, the display screen was like normal demonstration, and the picture that shows on the display screen can not show unusually because of the existence of camera under the screen. When the user uses the camera under the screen, the display screen can also completely display the picture shot by the camera, and the user can not see the camera under the screen.
The target object may be a human face, a human eye, or other objects, which are not limited herein. The position information may include location information and the position information may also include distance information.
The orientation information includes position information, which can be understood as an offset position of the target object with the off-screen camera as a reference. Taking a straight line which passes through the center of the under-screen camera and is parallel to two side edges of the display screen as a first reference line, and judging that the target object is positioned on the left side of the under-screen camera if the vertical projection of the target object on the plane where the display screen is positioned falls on the left side of the first reference line, or else, judging that the target object is positioned on the right side of the under-screen camera; and taking a straight line which passes through the center of the lower screen camera and is parallel to the side edge of the top of the display screen as a second reference line, and judging that the target object is positioned above the lower screen camera if the vertical projection of the target object on the plane where the display screen is positioned falls on the upper side of the second reference line, otherwise, judging that the target object is positioned below the lower screen camera.
The azimuth information includes position information, and it can be further understood that, taking the off-screen camera as a reference object, the offset angle and the offset position of the target object, where the offset angle of the target object may be determined in the following manner: the angle between a connecting line between a target object and the screen lower camera and a reference line is specifically a central point of a human face, or an angle between a connecting line between a central point of a human eye and a central point of the screen lower camera and the reference line, the reference line is a straight line which is vertical to the display screen and passes through the central position of the screen lower camera, and the offset position of the target object is the left side, the right side, the upper side or the lower side of the screen lower camera of the target object. The distance information is the distance between the target object and the off-screen camera.
And 102, adjusting the shooting direction of the under-screen camera according to the direction information.
According to the azimuth information, the camera (hereinafter referred to as the camera) under the screen is adjusted, so that the camera shoots towards the azimuth of the target object, the target object falls within the shooting range of the camera, and the shooting effect is improved. When the orientation information includes the offset angle, if the offset angle is greater than the preset angle threshold, the face display of the shot face is incomplete, or the face display area is not in the center position of the preview interface, adjusting the shooting orientation of the camera, for example, translating the position of the camera, or adjusting the rotation angle of the camera, so that the target object is located in the shooting range of the camera, or in the optimal shooting range. And if the offset angle is not larger than the preset angle threshold, not adjusting the shooting direction of the camera.
In this embodiment of the present invention, the electronic device may be any electronic device including an off-screen camera, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
According to the shooting method, the azimuth information of the target object relative to the under-screen camera is obtained; according to the azimuth information, the shooting azimuth of the camera under the screen is adjusted, so that the shooting azimuth of the camera under the screen is adjusted according to the azimuth information of the target object, the target object can be located within the shooting range of the camera under the screen, and the shooting effect is improved.
Referring to fig. 2, fig. 2 is a second flowchart of a shooting method according to an embodiment of the present invention, and as shown in fig. 2, the embodiment provides a shooting method applied to an electronic device, where the electronic device includes a movable off-screen camera, and the method includes the following steps:
andstep 201, acquiring the azimuth information of the target object relative to the under-screen camera.
The movable under-screen camera may be understood as an under-screen camera that may perform at least one of translation or rotation. The camera is located the display screen below under the screen, and like this, the camera can not occupy the area of display screen under the screen to improve the screen and account for the ratio. When the camera was out of work under the screen, the display screen was like normal demonstration, and the picture that shows on the display screen can not show unusually because of the existence of camera under the screen. When the user uses the camera under the screen, the display screen can also completely display the picture shot by the camera, and the user can not see the camera under the screen.
The target object may be a human face, a human eye, or other objects, which are not limited herein. The position information may include location information and the position information may also include distance information.
The orientation information includes position information, which can be understood as the offset position of the target object, i.e., the target object is to the left, right, top, or bottom of the off-screen camera, with the off-screen camera as a reference.
The azimuth information includes position information, and it can be further understood that, taking the off-screen camera as a reference object, the offset angle and the offset position of the target object, where the offset angle of the target object may be determined in the following manner: the angle of the target object relative to the reference line is a straight line which is vertical to the display screen and passes through the center position of the camera under the screen, and the offset position of the target object is the left side, the right side, the upper side or the lower side of the camera under the screen. The distance information is the distance between the target object and the off-screen camera.
Step 202, if it is determined that the target object is located on a first side of the off-screen camera according to the orientation information, controlling the off-screen camera to move to the first side of the off-screen camera.
The first side may be a left side, a right side, an upper side, or a lower side. And if the target object is determined to be positioned on the first side of the camera according to the azimuth information, controlling the under-screen camera to move towards the first side of the under-screen camera. In this embodiment, controlling the movement of the underscreen camera toward the first side thereof includes at least one of translating the camera or rotating the camera.Step 202 is a specific implementation ofstep 102.
Further, in an embodiment of the present invention, instep 202, if it is determined that the target object is located on a first side of the off-screen camera according to the orientation information, controlling the off-screen camera to move to the first side of the off-screen camera includes:
and if the target object is determined to be positioned on the first side of the under-screen camera according to the orientation information, controlling the under-screen camera to translate a first distance and/or rotate a first angle towards the first side of the under-screen camera, wherein the first distance and/or the first angle are determined by the orientation information.
Specifically, when the orientation information includes the position information, the orientation information has a corresponding relationship with the first distance and the first angle, for example, when the position information is an offset position of the target object, that is, the target object is on the left, right, upper, or lower side of the camera, the corresponding first distance is 5 millimeters, and the corresponding first angle is 30 degrees. When the position information is the offset position and the offset angle of the target object, the offset position and the offset angle correspond to the first distance and the first angle. For example, the offset position is to the left, the offset angle is 30 degrees, the corresponding first distance is 3 millimeters, and the corresponding first angle is 30 degrees to the left.
When the azimuth information includes position information and distance information, the position information and the distance information respectively have a corresponding relationship with a first distance and a first angle, for example, if the offset position included in the position information is the left side, and the distance information is 1 meter, the corresponding first distance is 3 millimeters, and the corresponding first angle is rotated by 30 degrees to the left; the offset position included in the position information is the left side, and the distance information is 2 meters, then the corresponding first distance is 5 millimeters, and the corresponding first angle is a left rotation of 40 degrees.
Step 203, moving the shooting picture of the off-screen camera to a target area of the display screen of the electronic equipment according to the azimuth information, wherein the target area is matched with the azimuth information.
In the step, the display area of the shot picture is moved according to the azimuth information, namely, the shot picture of the screen lower camera is moved to the target area of the display screen of the electronic equipment, so that the display position of the shot picture on the display screen can move along with the movement of the target object, and the visual angle of the shot picture watched by the target object is better. The target area is determined by the orientation information, i.e. there is a matching relationship between the target area and the orientation information. For example, the orientation information includes position information, and the position information is the offset position of the target object, that is, when the target object is at the left, right, top, or bottom of the camera, the matched target area is the left area, the right area, the top area, or the bottom area of the display screen, respectively.
The camera under the screen is adjusted according to the azimuth information of the target object, so that the target object is located in the shooting range of the camera, the shooting effect is improved, meanwhile, the shooting picture is moved to the target area matched with the azimuth information to be displayed, therefore, the display position of the shooting picture on the display screen can be moved along with the movement of the target object, and the visual angle of the shooting picture viewed by the target object is better.
In one embodiment of the invention, the display screen displays a plurality of video pictures;step 203, moving the shooting picture of the off-screen camera to a target area of a display screen of the electronic device according to the orientation information, including:
according to the azimuth information, a first video picture displayed by the display screen is moved to a target area of the display screen, and at least one of other video pictures is moved, so that the other video pictures are positioned at least one side of the first video picture, the first video picture is the shooting picture, the other video pictures are the video pictures except the first video picture in the plurality of video pictures, and the higher the priority of the video pictures in the other video pictures is, the closer the display position of the other video pictures is to the target area.
In this embodiment, the first video picture is a shot picture shot by the off-screen camera, the display position of the first video picture can be changed along with the movement of the target object, and since the plurality of video pictures are displayed on the display screen, after the first video picture moves, correspondingly, the display position of other video pictures also needs to be changed, that is, at least one of the other video pictures is moved, so that the other video pictures are located on at least one side of the first video picture. The at least one side of the first video picture may be one or more of a left side, a right side, an upper side, and a lower side of the first video picture.
And when a plurality of video pictures are displayed on the display screen, the display positions of part of other video pictures cannot be adjacent to the first video picture, and in this case, the display is performed according to the principle that the higher the priority of the video pictures in the other video pictures is, the closer the display positions are to the target area. The priority of the video pictures can be preset by a user or automatically determined by the electronic equipment, and specifically, the priority of each video picture is set according to the activity (including the importance of people, the maximum speaking volume and the like) of the video picture. The speaking volume can be determined with priority according to the audio corresponding to the video picture, for example, if the audio corresponding to the video picture speaks with higher frequency, the priority of the video picture is higher. And displaying the video picture with high priority in other video pictures at a position close to the target area, so that the user can more intuitively see the information in the video picture with high priority, and the user experience of video call is improved. According to the method, the display position of each video picture in other video pictures is adjusted according to the liveness, and the experience of the multi-party video can be improved. In the other video frames, one electronic device obtains one video frame.
The shooting method can be applied to scenes needing to be shot, such as a self-shooting scene, a live scene, a conference scene and the like. The human face (or human eyes) and the orientation information of the human face from a camera under a screen are intelligently recognized through artificial intelligence learning methods such as big data learning and deep convolutional neural network. According to the orientation information of the face relative to the under-screen camera, the condition that the under-screen camera moves along with the face is set, for example, when the face is deviated to the left, the camera also moves to the left side of the display screen, and the aim is to ensure that the face is positioned at the middle position as much as possible in the shooting picture, namely when the face of a user moves, the under-screen camera moves, so that the face is kept in the integrity or at the middle position of the shooting picture.
The following description will take the application of the shooting method in the present invention in a multi-party conference scenario as an example.
When the camera under the screen is opened, the human face or the human eyes are scanned, and the camera under the screen moves along with the human face or the human eyes. The position of the camera under the screen is not fixed, the camera can be translated or rotated, a first video picture collected by the camera under the screen is displayed on a display screen of the electronic equipment, the size of the first video picture can be fixed, but the display area of the first video picture is not fixed.
When the face moves, in order to guarantee the integrity of the face information in the first video picture, the under-screen camera also translates or rotates, and in addition, the first video picture can also move along with the movement of the under-screen camera and move to the optimal position suitable for a user to observe a conference call.
In addition, the electronic equipment can arrange the high-priority participants around the first video picture display area according to the priorities of the participants, so that a user can more visually see information in the video pictures with the high-priority participants, and the experience of the whole video teleconference is improved.
Referring to fig. 3, fig. 3 is a structural diagram of an electronic device according to an embodiment of the present invention, as shown in fig. 3, anelectronic device 300 includes a movable off-screen camera, and theelectronic device 300 further includes:
an obtainingmodule 301, configured to obtain azimuth information of a target object relative to the off-screen camera;
and anadjusting module 302, configured to adjust a shooting orientation of the off-screen camera according to the orientation information.
Further, the adjustingmodule 301 includes an adjusting sub-module;
and the adjusting submodule is used for controlling the screen lower camera to move to the first side of the screen lower camera if the target object is determined to be positioned at the first side of the screen lower camera according to the azimuth information.
Further, the adjusting sub-module is configured to:
and if the target object is determined to be positioned on the first side of the under-screen camera according to the orientation information, controlling the under-screen camera to translate a first distance and/or rotate a first angle towards the first side of the under-screen camera, wherein the first distance and/or the first angle are determined by the orientation information.
Further, theelectronic device 300 further includes:
and the moving module is used for moving the shooting picture of the off-screen camera to a target area of the display screen of the electronic equipment according to the azimuth information, wherein the target area is matched with the azimuth information.
Further, the display screen displays a plurality of video pictures;
the moving module is configured to move a first video picture displayed by the display screen to a target area of the display screen according to the orientation information, and move at least one of other video pictures so that the other video pictures are located on at least one side of the first video picture, where the first video picture is the shot picture, and the other video pictures are video pictures other than the first video picture in the plurality of video pictures.
Theelectronic device 300 can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 2, and details are not repeated here to avoid repetition.
Theelectronic device 300 of the embodiment of the present invention obtains the azimuth information of the target object relative to the under-screen camera; according to the azimuth information, the shooting azimuth of the camera under the screen is adjusted, so that the shooting azimuth of the camera under the screen is adjusted according to the azimuth information of the target object, the target object can be located within the shooting range of the camera under the screen, and the shooting effect is improved.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present invention, and as shown in fig. 4, theelectronic device 400 includes, but is not limited to:radio frequency unit 401,network module 402,audio output unit 403,input unit 404,sensor 405,display unit 406,user input unit 407,interface unit 408,memory 409,processor 410, andpower supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Theprocessor 410 is configured to obtain orientation information of the target object relative to the off-screen camera;
and adjusting the shooting direction of the camera under the screen according to the direction information.
Further, theprocessor 410 is further configured to control the off-screen camera to move to a first side of the off-screen camera if it is determined that the target object is located at the first side of the off-screen camera according to the orientation information.
Further, theprocessor 410 is further configured to control the off-screen camera to translate a first distance to the first side of the off-screen camera and/or rotate a first angle if it is determined that the target object is located at the first side of the off-screen camera according to the orientation information, where the first distance and/or the first angle are determined by the orientation information.
Further, theprocessor 410 is further configured to move the shooting picture of the off-screen camera to a target area of the display screen of the electronic device according to the orientation information, where the target area is matched with the orientation information.
Further, the display screen displays a plurality of video pictures;
theprocessor 410 is further configured to move a first video picture displayed by the display screen to a target area of the display screen according to the orientation information, and move at least one of other video pictures, so that the other video pictures are located on at least one side of the first video picture, where the first video picture is the shot picture, and the other video pictures are video pictures other than the first video picture in the plurality of video pictures.
Theelectronic device 400 can implement the processes implemented by the electronic device in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here.
Theelectronic device 400 of the embodiment of the present invention obtains the azimuth information of the target object relative to the under-screen camera; and adjusting the shooting direction of the camera under the screen according to the direction information. Therefore, the shooting direction of the camera under the screen is adjusted according to the direction information of the target object, so that the target object can be located within the shooting range of the camera under the screen, and the shooting effect is improved.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to theprocessor 410; in addition, the uplink data is transmitted to the base station. Typically,radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, theradio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via thenetwork module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
Theaudio output unit 403 may convert audio data received by theradio frequency unit 401 or thenetwork module 402 or stored in thememory 409 into an audio signal and output as sound. Also, theaudio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 404 is used to receive audio or video signals. Theinput Unit 404 may include a Graphics Processing Unit (GPU) 4041 and amicrophone 4042, and theGraphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 406. The image frames processed by thegraphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via theradio frequency unit 401 or thenetwork module 402. Themicrophone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio frequency unit 401 in case of the phone call mode.
Theelectronic device 400 also includes at least onesensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of thedisplay panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off thedisplay panel 4061 and/or the backlight when theelectronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
Thedisplay unit 406 is used to display information input by the user or information provided to the user. TheDisplay unit 406 may include aDisplay panel 4061, and theDisplay panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, theuser input unit 407 includes atouch panel 4071 andother input devices 4072.Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or neartouch panel 4071 using a finger, a stylus, or any suitable object or attachment). Thetouch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 410, receives a command from theprocessor 410, and executes the command. In addition, thetouch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to thetouch panel 4071, theuser input unit 407 may includeother input devices 4072. Specifically, theother input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, thetouch panel 4071 can be overlaid on thedisplay panel 4061, and when thetouch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to theprocessor 410 to determine the type of the touch event, and then theprocessor 410 provides a corresponding visual output on thedisplay panel 4061 according to the type of the touch event. Although in fig. 4, thetouch panel 4071 and thedisplay panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, thetouch panel 4071 and thedisplay panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
Theinterface unit 408 is an interface for connecting an external device to theelectronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within theelectronic apparatus 400 or may be used to transmit data between theelectronic apparatus 400 and an external device.
Thememory 409 may be used to store software programs as well as various data. Thememory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, thememory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
Theprocessor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in thememory 409 and calling data stored in thememory 409, thereby performing overall monitoring of the electronic device.Processor 410 may include one or more processing units; preferably, theprocessor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into theprocessor 410.
Theelectronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, thepower supply 411 may be logically connected to theprocessor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, theelectronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes aprocessor 410, amemory 409, and a computer program that is stored in thememory 409 and can be run on theprocessor 410, and when being executed by theprocessor 410, the computer program implements each process of the above shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 invention may be embodied in the form of a 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 invention.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.