CN111885314B - Screen adjustment method, device, terminal and computer readable storage medium - Google Patents

Screen adjustment method, device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN111885314B
CN111885314B CN202010883605.5A CN202010883605A CN111885314B CN 111885314 B CN111885314 B CN 111885314B CN 202010883605 A CN202010883605 A CN 202010883605A CN 111885314 B CN111885314 B CN 111885314B
Authority
CN
China
Prior art keywords
screen
terminal
state
determining
coordinate
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.)
Active
Application number
CN202010883605.5A
Other languages
Chinese (zh)
Other versions
CN111885314A (en
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.)
Shenzhen Leiniao Network Media Co ltd
Original Assignee
Shenzhen Leiniao Network Media 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 Shenzhen Leiniao Network Media Co ltd filed Critical Shenzhen Leiniao Network Media Co ltd
Priority to CN202010883605.5A priority Critical patent/CN111885314B/en
Publication of CN111885314A publication Critical patent/CN111885314A/en
Application granted granted Critical
Publication of CN111885314B publication Critical patent/CN111885314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a screen adjustment method, a device, a terminal and a computer readable storage medium, wherein the method comprises the following steps: when video call between the first terminal and the second terminal is detected, a video picture of a target user is obtained, wherein the target user is a user using the second terminal; determining a portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture; determining a screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen; and if the portrait state is not matched with the screen state, executing a rotating operation on the rotating screen. The terminal provided by the invention is provided with the rotatable screen, and the terminal adjusts the screen of the terminal according to the portrait state in the video picture and the screen state of the terminal when in video call, so that the terminal is suitable for the video picture displayed on the terminal, and the intelligent adjustment of the screen of the terminal is realized.

Description

Screen adjustment method, device, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and apparatus for adjusting a screen, a terminal, and a computer readable storage medium.
Background
At present, with the development of intelligent television technology, the functions of the intelligent television are more and more abundant, rich resources are provided for users, wherein, because the intelligent television is provided with a network communication module, the users can carry out video call with other terminals through the network communication module, however, in the prior art, the intelligent television is generally fixed and horizontally placed, and in the video call process with other terminals, because the screen of the intelligent television is not matched with the screen of other terminals, the situation that video pictures are not matched with the screen of the intelligent television easily occurs, such as the intelligent television carries out video call with a mobile phone, the vertical screen picture displayed by the intelligent television can be left without being fully paved with the whole intelligent television screen under the condition that the mobile phone is vertical, so that the screen of the intelligent television is not matched with the displayed picture, and the current intelligent television can not intelligently adjust the screen.
Disclosure of Invention
The invention mainly aims to provide a screen adjusting method, a device, a terminal and a computer readable storage medium, and aims to realize intelligent adjustment of a screen of the terminal.
In order to achieve the above object, the present invention provides a screen adjustment method, which is applied to a first terminal having a rotating screen, the method comprising:
when video call between the first terminal and the second terminal is detected, a video picture of a target user is obtained, wherein the target user is a user using the second terminal;
determining a portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture;
determining a screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen;
and if the portrait state is not matched with the screen state, executing a rotating operation on the rotating screen.
In addition, in order to achieve the above object, the present invention provides a screen adjustment apparatus comprising:
the acquisition module is used for acquiring a video picture of a target user when the video call between the first terminal and the second terminal is detected, wherein the target user is a user using the second terminal;
the first determining module is used for determining the portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture;
the second determining module is used for determining the screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen;
and the execution module is used for executing the rotation operation on the rotation screen if the portrait state is not matched with the screen state.
In addition, in order to achieve the above object, the present invention provides a terminal including a memory, a processor, and a screen adjustment program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the screen adjustment method as above.
Further, in order to achieve the above object, the present invention provides a computer-readable storage medium having stored thereon a screen adjustment program which, when executed by a processor, implements the steps of the screen adjustment method as above.
According to the screen adjustment method, when video call between the first terminal and the second terminal is detected, a video picture of a target user is obtained, and the target user is a user using the second terminal; determining a portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture; determining a screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen; and if the portrait state is not matched with the screen state, executing a rotating operation on the rotating screen. The terminal provided by the invention is provided with the rotatable screen, and in the process of video call, the terminal adjusts the screen of the terminal according to the portrait state and the screen state of the terminal in the video pictures transmitted by other terminals, so that the video pictures displayed on the terminal are adapted, and the intelligent adjustment of the terminal screen is realized.
Drawings
FIG. 1 is a schematic diagram of a terminal of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a screen adjustment method according to the present invention;
fig. 3 is a schematic functional block diagram of a first embodiment of a screen adjusting apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The solution of the embodiment of the invention mainly comprises the following steps: when video call between the first terminal and the second terminal is detected, a video picture of a target user is obtained, wherein the target user is a user using the second terminal; determining a portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture; determining a screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen; and if the portrait state is not matched with the screen state, executing a rotating operation on the rotating screen. The method and the device solve the technical problem that the screen of the existing terminal cannot be adjusted in a rotating way and cannot be adapted to the video picture displayed on the terminal.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal of a hardware running environment according to an embodiment of the present invention. The terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The owner interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and optionally the owner interface 1003 may also include a standard wired interface (e.g., for connecting a wired Keyboard, a wired mouse, etc.), a wireless interface (e.g., for connecting a wireless Keyboard, a wireless mouse, etc.). The network interface 1004 may optionally include a standard wired interface (for connecting to a wired network), a wireless interface (e.g., WI-FI interface, bluetooth interface, infrared interface, etc., for connecting to a wireless network). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the terminal shown in fig. 1 is not limiting and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, an owner interface module, and a screen adjustment program may be included in a memory 1005, which is a computer-readable storage medium. The operating system is a program for managing and controlling the terminal and the software resources and supports the operation of a network communication module, an owner interface module, a screen adjusting program and other programs or software; the network communication module is used to manage and control the network interface 1002; the owner interface module is used to manage and control the owner interface 1003.
In the terminal shown in fig. 1, the terminal calls a screen adjustment program stored in a memory 1005 through a processor 1001, and performs the steps of:
when video call between the first terminal and the second terminal is detected, a video picture of a target user is obtained, wherein the target user is a user using the second terminal;
determining a portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture;
determining a screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen;
and if the portrait state is not matched with the screen state, executing a rotating operation on the rotating screen.
The terminal calls a screen adjustment program stored in the memory 1005 through the processor 1001, and performs the steps of:
displaying prompt information in a popup window mode, wherein the prompt information is used for prompting whether a user using the first terminal rotates the rotating screen or not;
and triggering an operation of executing a rotating operation on the rotating screen if a rotating instruction for the rotating screen is received.
The terminal calls a screen adjustment program stored in the memory 1005 through the processor 1001, and performs the steps of:
determining a first coordinate and a second coordinate corresponding to eyes in a video picture and a third coordinate corresponding to a mouth;
determining a fourth coordinate corresponding to the center of the two eyes according to the first coordinate and the second coordinate;
and determining the portrait state of the target user according to the third coordinate and the fourth coordinate.
The terminal calls a screen adjustment program stored in the memory 1005 through the processor 1001, and performs the steps of:
calculating a first absolute difference value of an abscissa of the third coordinate and an abscissa of the fourth coordinate, and a second absolute difference value of an ordinate of the third coordinate and an ordinate of the fourth coordinate;
if the first absolute difference value is larger than the second absolute difference value, determining that the portrait state of the target user is transverse; or,
and if the first absolute difference value is smaller than the second absolute difference value, determining that the portrait state of the target user is vertical.
The terminal calls a screen adjustment program stored in the memory 1005 through the processor 1001, and performs the steps of:
acquiring attitude information of a first terminal through a preset sensor in the first terminal;
determining the screen state of the first terminal according to the gesture information; wherein the screen state includes a landscape screen or a portrait screen.
The terminal calls a screen adjustment program stored in the memory 1005 through the processor 1001, and performs the steps of:
determining a rotation parameter according to the portrait state and the screen state;
and rotating the rotating screen according to the rotation parameters.
Based on the hardware structure of the terminal, various embodiments of the screen adjustment method are provided.
The invention provides a screen adjusting method which can be optionally applied to a terminal, wherein the terminal can be a terminal such as an intelligent television or a computer. It can be understood that, as long as the terminal device is provided with a rotatable screen and performs video communication with other terminal devices, intelligent adjustment of the screen can be realized through the scheme of the application, and in the following embodiments, the terminal is illustrated by taking intelligent electricity as an example.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a screen adjustment method according to the present invention.
In the present embodiment, an embodiment of a screen adjustment method is provided, and it is to be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
In this embodiment, the screen adjustment method includes:
step S10, when detecting that video call is carried out between a first terminal and a second terminal, the first terminal acquires a video picture of a target user, wherein the target user is a user using the second terminal;
step S20, the first terminal determines a portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture;
step S30, the first terminal determines a screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen;
step S40, if the portrait state is not matched with the screen state, the first terminal executes a rotating operation on the rotating screen.
In this embodiment, the first terminal has a rotatable screen, such as an intelligent television with a rotatable screen, and the second terminal is other terminals except the first terminal, which may or may not have a rotatable screen, such as a smart phone, a smart television with a rotatable screen, and the like, and when the first terminal and the second terminal perform video call, such as the smart television and the smart phone perform video, the first terminal adjusts the screen of the first terminal by determining the portrait state in the video picture transmitted by the second terminal and the screen state of the first terminal, so that the screen of the first terminal can be adapted to the video picture displayed on the first terminal, thereby improving the screen utilization rate and simultaneously realizing intelligent adjustment of the screen.
The following will explain each step in detail:
step S10, when the video call between the first terminal and the second terminal is detected, the first terminal acquires a video picture of a target user, and the target user is a user using the second terminal.
In this embodiment, the first terminal may be selected as an intelligent television, and the intelligent television has a rotating screen, when the first terminal detects that a video communication behavior, such as a video call, exists with the second terminal, a video picture transmitted by the second terminal, that is, a video picture of a target user, where the target user is a user who uses the second terminal, and the video picture is a picture acquired by the second terminal through a camera of the second terminal, it can be understood that, in implementation, the first terminal displays a screen in a current screen state after acquiring the video picture transmitted by the second terminal.
It should be noted that, the video call may be that the first terminal calls the second terminal and is established under the condition that the second terminal answers; or the second terminal calls the first terminal and establishes when the first terminal receives the answering instruction.
Step S20, the first terminal determines a portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture.
In this embodiment, the first terminal performs face recognition on the video picture transmitted by the second terminal, so as to obtain a face image corresponding to the user using the second terminal, where the face recognition process may be face contour recognition; the face image in the video picture can also be identified for face feature identification, such as face features of eyes, mouth, etc., in this embodiment, the face feature identification mode is preferred.
In an embodiment, a first terminal adopts a POSIT face detection algorithm to estimate a portrait state corresponding to a face image, wherein the portrait state is used for representing a display state of a target user on a video picture, and specifically comprises horizontal and vertical.
In an embodiment, the first terminal determines a portrait state of a target user, including:
step a1, a first terminal determines a first coordinate and a second coordinate corresponding to eyes in a video picture and a third coordinate corresponding to a mouth;
in an embodiment, the first terminal determines first coordinates and second coordinates corresponding to eyes in the video frame, such as a left eye a (x 1, y 1), a right eye B (x 2, y 2), and third coordinates corresponding to a mouth, such as (x 3, y 3), where the coordinates of the eyes and the mouth are coordinates in the same coordinate system, specifically, when the first terminal is in a horizontal screen state, a midpoint of the screen is used as an origin of the coordinate system, a long side direction of the screen is used as an x axis, and a short side direction is used as a y axis (if the screen is square, a direction of any one side is used as the x axis, and a direction of one side perpendicular to the screen is used as the y axis), so that after the eyes and the mouth are identified, the coordinates of the eyes and the mouth are calculated.
Step a2, the first terminal determines a fourth coordinate corresponding to the center of the two eyes according to the first coordinate and the second coordinate;
then, the first terminal calculates a fourth coordinate corresponding to the center of both eyes by the first coordinate, and the fourth coordinate may be (x1+x2/2, y1+y2/2).
And a step a3, the first terminal determines the portrait state of the target user according to the third coordinate and the fourth coordinate.
And finally, the first terminal determines the portrait state corresponding to the face image according to the third coordinate and the fourth coordinate, and specifically determines whether the target user in the current video picture is in a horizontal display state or in a vertical display state.
Specifically, step a3 includes:
step a31, the first terminal calculates a first absolute difference value between the abscissa of the third coordinate and the abscissa of the fourth coordinate, and a second absolute difference value between the ordinate of the third coordinate and the ordinate of the fourth coordinate;
that is, in the process of determining the portrait state corresponding to the portrait image through the third coordinate and the fourth coordinate, the first terminal calculates the difference between the abscissa of the third coordinate and the ordinate of the fourth coordinate, and takes the absolute value to obtain the first absolute difference value and the second absolute difference value respectively, where the first absolute difference value is: |x1+x2/2-x3|, the second absolute difference is: y1+ y2/2-y 3.
Step a32, if the first absolute difference is larger than the second absolute difference, the first terminal determines that the portrait state of the target user is horizontal;
it can be understood that the center of the eyes and the mouth form a straight line with a vertical coordinate axis, that is, the coordinate values of the center of the eyes and the mouth on a certain coordinate axis are equal, so if the first absolute difference is greater than the second absolute difference, the ordinate indicating the third coordinate is the same as the ordinate indicating the fourth coordinate, and the first terminal determines that the portrait state in the face image is horizontal.
Or, in step a33, if the first absolute difference is smaller than the second absolute difference, the first terminal determines that the portrait state of the target user is vertical.
That is, if the first absolute value is smaller than the second absolute value, the first terminal determines that the portrait state is vertical, which indicates that the abscissa of the third coordinate is the same as the abscissa of the fourth coordinate.
In step S30, the first terminal determines a screen state of the first terminal, where the screen state is used to characterize a spatial gesture of the rotating screen.
In this embodiment, after determining the portrait state in the video frame, the first terminal needs to determine the screen state of the first terminal, and detect whether the current screen state of the first terminal matches the portrait state, so as to obtain a detection result, where the screen state of the first terminal is used to represent the spatial gesture of the rotating screen, and specifically includes a horizontal screen state and a vertical screen state.
In one embodiment, the step of determining the screen state of the first terminal includes:
step b1, a first terminal acquires attitude information of the first terminal through a preset sensor in the first terminal;
step b2, the first terminal determines the screen state of the first terminal according to the gesture information; wherein the screen state includes a landscape screen or a portrait screen.
In an embodiment, the first terminal may collect the gesture information of the first terminal through a sensor of the first terminal, such as a gyroscope sensor, so as to analyze the spatial state of the first terminal according to the gesture information, thereby determining the screen state of the first terminal.
Step S40, if the portrait state is not matched with the screen state, the first terminal executes a rotating operation on the rotating screen.
In this embodiment, the first terminal compares the portrait state with the screen state, and determines whether the portrait state is matched with the screen state, where, in implementation, the landscape state is matched with the screen state of the landscape state, the portrait state is matched with the screen state of the portrait state, and other situations are not matched.
If the two images are not matched, the first terminal executes rotation operation on a rotation screen of the first terminal, namely, when the portrait state is transverse and the current screen is not in a transverse screen state; or the portrait state is vertical, and when the current screen is not in a vertical screen state, the first terminal judges that the portrait state is not matched with the screen state, and at the moment, the first terminal controls the screen of the first terminal to rotate so as to adapt to the portrait state.
If the two types of the screen are matched, the first terminal keeps the screen state of the first terminal unchanged, namely, when the portrait state is transverse and the current screen is in a transverse screen state; or the portrait state is vertical, when the current screen is in a vertical screen state, the first terminal judges that the portrait state is matched with the screen state, and indicates that the screen at the moment is matched with the video picture, the first terminal at the moment keeps the screen state of the first terminal unchanged, and the video picture is displayed in the current screen state.
When the video call between the first terminal and the second terminal is detected, the video picture of the target user is obtained, and the target user is the user using the second terminal; determining a portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture; determining a screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen; and if the portrait state is not matched with the screen state, executing a rotating operation on the rotating screen. The terminal provided by the invention is provided with the rotatable screen, and the terminal adjusts the screen of the terminal according to the portrait state in the video picture and the screen state of the terminal when in video call, so that the terminal is suitable for the video picture displayed on the terminal, and the intelligent adjustment of the screen of the terminal is realized.
The first terminal of the embodiment not only can automatically realize the adjustment of the screen, but also provides a popup prompt function, gives the decision right for controlling the rotation of the screen to the user, and controls the screen of the terminal to rotate when receiving a confirmation instruction sent by the user, thereby improving the operability of the terminal.
Further, a second embodiment of the screen adjustment method of the present invention is proposed based on the first embodiment.
The second embodiment of the screen adjustment method is different from the first embodiment of the screen adjustment method in that the first terminal performs a rotating operation on a rotating screen, and the method further includes:
and c, displaying prompt information in a popup window mode by the first terminal, wherein the prompt information is used for prompting whether a user using the first terminal rotates the rotating screen or not.
In this embodiment, when it is determined that the screen state of the current first terminal does not match the portrait state, the first terminal displays prompt information, such as prompt information as "whether to rotate" in a popup window manner, so as to prompt the user whether to rotate the screen of the first terminal.
In a specific implementation, in order to avoid the prompt information displayed by the popup window from shielding the video picture, the first terminal may display the prompt information at the "margin" of the current screen, that is, in the non-video picture display area.
It can be understood that the prompt information may also be voice information, for example, broadcast a voice such as "whether to rotate" to prompt the user whether to rotate the screen of the first terminal.
And d, if a rotation instruction aiming at the rotation screen is received, the first terminal triggers the operation of executing the rotation operation on the rotation screen.
In this embodiment, if the first terminal receives a confirmation instruction triggered based on the prompt information, that is, a rotation instruction for the rotation screen, the first terminal indicates that the user selects rotation, the first terminal triggers an operation of executing a rotation operation on the rotation screen.
In the implementation, when the first terminal displays the prompt information in a popup window mode, confirmation and denial options are displayed for the user to select, the first terminal determines whether to rotate according to the selection of the user, if the user selects the confirmation option, the operation of executing the rotating operation on the rotating screen is triggered, and the first terminal executes the rotating operation on the rotating screen subsequently.
Further, in an embodiment, the first terminal performs a rotation operation on the rotation screen, including:
step e, the first terminal determines rotation parameters according to the portrait state and the screen state;
that is, in an embodiment, when the first terminal rotates the screen of the first terminal, the rotation parameter of the screen of the first terminal is determined according to the portrait state and the screen state.
In specific implementation, the first terminal comprises a back plate and a screen, the back plate is fixed on a wall or a support, the back plate is connected with the screen through a rotating shaft, the screen can rotate through the rotating shaft, and the screen can rotate around the rotating shaft by 360 degrees, so when the portrait state and the screen state are not matched, the first terminal firstly determines the rotation parameters of the screen of the first terminal according to the portrait state and the screen state, wherein the rotation parameters comprise a rotation angle, a rotation direction, specifically +90° or-90 DEG and the like, the signs represent directions, such as clockwise, anticlockwise and the like, and the screen of the first terminal is in a transverse screen state currently, and the rotation parameters are determined to be-90 DEG; and when the portrait state is transverse, determining that the rotation parameter is +90 degrees and the like if the screen of the first terminal is in a vertical screen state.
And f, the first terminal rotates the rotating screen according to the rotation parameters.
And then, the first terminal calls a motor of the first terminal to rotate so as to control the screen of the first terminal to rotate to a target position corresponding to the rotation parameter through the rotation shaft, if the current screen is in a vertical screen state and the rotation parameter is +90°, the first terminal rotates the screen clockwise to be in a horizontal screen state.
Before the control screen rotates, the terminal of the embodiment also provides a popup window prompt mode, so that a user can determine whether the screen rotates, the operability of the terminal is improved, and the rotation parameters are determined according to the portrait state and the screen state, so that the screen is controlled to rotate by the determined rotation parameters, and accurate control is realized.
Taking the case that the first terminal is an intelligent television and the transverse screen is placed, the second terminal is a mobile phone, when a user A calls the mobile phone through an intelligent television video, and a user B of the mobile phone answers, two devices establish video calls, the intelligent television at the moment acquires video pictures corresponding to the user using the mobile phone, namely video pictures containing the face of the user B, and at the moment, the mobile phone is in a vertical screen state because the intelligent television is in a transverse screen state, when the intelligent television displays the video pictures, the intelligent television cannot adapt to the video pictures acquired by the mobile phone displayed on the intelligent television, so that the intelligent television has a 'margin', namely a non-video display area. By adopting the method, the screen state of the intelligent television is consistent with the screen state of the screen of the mobile phone by rotating the screen of the intelligent television, and the screen state of the screen of the intelligent television is the vertical screen state, so that the intelligent television is equivalent to a large mobile phone, and is perfectly adapted to the video picture acquired by the mobile phone displayed on the intelligent television, thereby displaying better video pictures.
Referring to fig. 3, the present invention also provides a screen adjusting apparatus, including:
the acquiring module 10 is configured to acquire a video picture of a target user when detecting that a video call is performed between the first terminal and the second terminal, where the target user is a user who uses the second terminal;
the first determining module 20 is configured to determine a portrait state of the target user according to the video frame, where the portrait state is used to represent a display state of the target user on the video frame;
a second determining module 30, configured to determine a screen state of the first terminal, where the screen state is used to characterize a spatial gesture of the rotating screen;
and an execution module 40 for executing a rotation operation on the rotation screen if the portrait state does not match the screen state.
Preferably, the apparatus further comprises:
the prompting module is used for displaying prompting information in a popup window mode, wherein the prompting information is used for prompting whether a user using the first terminal rotates the rotating screen or not;
and the triggering module is used for triggering the operation of executing the rotating operation on the rotating screen if the rotating instruction aiming at the rotating screen is received.
Preferably, the first determining module is further configured to:
determining a first coordinate and a second coordinate corresponding to eyes in a video picture and a third coordinate corresponding to a mouth;
determining a fourth coordinate corresponding to the center of the two eyes according to the first coordinate and the second coordinate;
and determining the portrait state of the target user according to the third coordinate and the fourth coordinate.
Preferably, the first determining module is further configured to:
calculating a first absolute difference value of an abscissa of the third coordinate and an abscissa of the fourth coordinate, and a second absolute difference value of an ordinate of the third coordinate and an ordinate of the fourth coordinate;
if the first absolute difference value is larger than the second absolute difference value, determining that the portrait state of the target user is transverse; or,
and if the first absolute difference value is smaller than the second absolute difference value, determining that the portrait state of the target user is vertical.
Preferably, the second determining module is further configured to:
acquiring attitude information of a first terminal through a preset sensor in the first terminal;
determining the screen state of the first terminal according to the gesture information; wherein the screen state includes a landscape screen or a portrait screen.
Preferably, the execution module is further configured to:
determining a rotation parameter according to the portrait state and the screen state;
and rotating the rotating screen according to the rotation parameters.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein a screen adjusting program is stored on the computer readable storage medium, the computer readable storage medium is applied to the terminal, and the screen adjusting program realizes the steps of the screen adjusting method when being executed by a processor.
The specific implementation of the computer readable storage medium of the present invention is substantially the same as the above embodiments of the screen adjustment method, and will not be described herein.
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 system 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 system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a plurality of parking lot devices and/or charging devices (which may be cell phones, computers, servers, air conditioners, or network devices, etc.) to perform the method of the various embodiments of the present invention.
The foregoing description of the preferred embodiments of the present invention should not be taken as limiting the scope of the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the scope of the invention as defined by the following description and drawings, or by direct or indirect application to other relevant art(s).

Claims (6)

1. A screen adjustment method, applied to a first terminal having a rotating screen, comprising:
when video call between the first terminal and the second terminal is detected, a video picture of a target user is obtained, wherein the target user is a user using the second terminal;
determining a portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture;
determining a screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen;
if the portrait state is not matched with the screen state, executing a rotating operation on the rotating screen;
before the step of determining the portrait state of the target user according to the video picture, the method comprises the following steps:
when the first terminal is in a horizontal screen state, determining the middle point, the long side direction and the short side direction of a screen of the first terminal;
establishing a coordinate system based on the midpoint, the long-side direction and the short-side direction;
the step of determining the portrait state of the target user according to the video picture comprises the following steps:
identifying eyes and a mouth of the target user in the video picture;
when the eyes and the mouth are identified, determining a first coordinate and a second coordinate corresponding to the eyes in the coordinate system and a third coordinate corresponding to the mouth in the video picture;
determining a fourth coordinate corresponding to the center of the two eyes according to the first coordinate and the second coordinate;
calculating a first absolute difference of an abscissa of the third coordinate and an abscissa of the fourth coordinate, and a second absolute difference of an ordinate of the third coordinate and an ordinate of the fourth coordinate;
if the first absolute difference value is larger than the second absolute difference value, determining that the portrait state of the target user is transverse; or,
if the first absolute difference value is smaller than the second absolute difference value, determining that the portrait state of the target user is vertical;
the determining the screen state of the first terminal includes:
acquiring attitude information of the first terminal through a gyroscope sensor in the first terminal;
determining the space state of the first terminal according to the gesture information so as to determine the screen state of the first terminal; wherein the screen state comprises a horizontal screen or a vertical screen;
the first terminal comprises a back plate and a screen, and the back plate is connected with the screen through a rotating shaft; the performing a rotation operation on the rotation screen includes:
determining rotation parameters according to the portrait state and the screen state, wherein the rotation parameters comprise: rotation angle and rotation direction;
and calling a motor of the first terminal to rotate so as to control the screen of the first terminal to rotate to a target position corresponding to the rotation angle and the rotation direction through the rotation shaft.
2. The method of claim 1, wherein prior to performing a rotation operation on the rotating screen, the method further comprises:
displaying prompt information in a popup window mode, wherein the prompt information is used for prompting whether a user using the first terminal rotates the rotating screen or not;
and triggering the operation of executing the rotating operation on the rotating screen if the rotating instruction aiming at the rotating screen is received.
3. A screen adjustment apparatus, for use with a first terminal having a rotating screen, the apparatus comprising:
the acquisition module is used for acquiring a video picture of a target user when the video call between the first terminal and the second terminal is detected, wherein the target user is a user using the second terminal;
the first determining module is used for determining the portrait state of the target user according to the video picture, wherein the portrait state is used for representing the display state of the target user on the video picture;
the second determining module is used for determining a screen state of the first terminal, wherein the screen state is used for representing the spatial gesture of the rotating screen;
the execution module is used for executing rotation operation on the rotation screen if the portrait state is not matched with the screen state;
the first determining module is further configured to determine a middle point, a long side direction and a short side direction of a screen of the first terminal when the first terminal is in a horizontal screen state; establishing a coordinate system based on the midpoint, the long-side direction and the short-side direction;
the first determining module is further configured to identify eyes and a mouth of the target user in the video frame; when the eyes and the mouth are identified, determining a first coordinate and a second coordinate corresponding to the eyes in the coordinate system and a third coordinate corresponding to the mouth in the video picture; determining a fourth coordinate corresponding to the center of the two eyes according to the first coordinate and the second coordinate; calculating a first absolute difference of an abscissa of the third coordinate and an abscissa of the fourth coordinate, and a second absolute difference of an ordinate of the third coordinate and an ordinate of the fourth coordinate; if the first absolute difference value is larger than the second absolute difference value, determining that the portrait state of the target user is transverse; or if the first absolute difference value is smaller than the second absolute difference value, determining that the portrait state of the target user is vertical;
the second determining module is further used for acquiring the gesture information of the first terminal through a gyroscope sensor in the first terminal; determining the space state of the first terminal according to the gesture information so as to determine the screen state of the first terminal; wherein the screen state comprises a horizontal screen or a vertical screen;
the first terminal comprises a back plate and a screen, and the back plate is connected with the screen through a rotating shaft; the execution module is used for determining rotation parameters according to the portrait state and the screen state, and the rotation parameters comprise: rotation angle and rotation direction; and calling a motor of the first terminal to rotate so as to control the screen of the first terminal to rotate to a target position corresponding to the rotation angle and the rotation direction through the rotation shaft.
4. The apparatus of claim 3, wherein the apparatus further comprises:
the prompting module is used for displaying prompting information in a popup window mode, and the prompting information is used for prompting whether a user using the first terminal rotates the rotating screen or not;
and the triggering module is used for triggering the operation of executing the rotation operation on the rotation screen if the rotation instruction aiming at the rotation screen is received.
5. A terminal comprising a memory, a processor and a screen adjustment program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the screen adjustment method according to any one of claims 1 to 2.
6. A computer-readable storage medium, on which a screen adjustment program is stored, which, when executed by a processor, implements the steps of the screen adjustment method according to any one of claims 1 to 2.
CN202010883605.5A 2020-08-26 2020-08-26 Screen adjustment method, device, terminal and computer readable storage medium Active CN111885314B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010883605.5A CN111885314B (en) 2020-08-26 2020-08-26 Screen adjustment method, device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010883605.5A CN111885314B (en) 2020-08-26 2020-08-26 Screen adjustment method, device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111885314A CN111885314A (en) 2020-11-03
CN111885314B true CN111885314B (en) 2024-04-02

Family

ID=73199513

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010883605.5A Active CN111885314B (en) 2020-08-26 2020-08-26 Screen adjustment method, device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111885314B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113031839B (en) * 2021-02-22 2022-08-16 北京字节跳动网络技术有限公司 Image processing method, device, equipment and medium in video call
WO2022193475A1 (en) * 2021-03-19 2022-09-22 青岛海信传媒网络技术有限公司 Display device, method for receiving screen projection content, and screen projection method
CN115482797A (en) * 2022-08-19 2022-12-16 合肥讯飞读写科技有限公司 Image display method and device, electronic photo frame and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092344A (en) * 2013-01-11 2013-05-08 深圳市金立通信设备有限公司 Method of controlling terminal screen to rotate and terminal
CN109922204A (en) * 2017-12-13 2019-06-21 中兴通讯股份有限公司 Image processing method and terminal
CN110740364A (en) * 2019-11-14 2020-01-31 四川长虹电器股份有限公司 intelligent rotary television device, system and working method thereof
CN110737336A (en) * 2019-10-12 2020-01-31 Oppo广东移动通信有限公司 video display direction adjusting method, device and computer readable storage medium
CN110996175A (en) * 2019-11-19 2020-04-10 深圳创维-Rgb电子有限公司 Method, device and storage medium for controlling horizontal and vertical screen operation of television

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101844076B1 (en) * 2012-02-24 2018-03-30 삼성전자주식회사 Method and apparatus for providing video call service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092344A (en) * 2013-01-11 2013-05-08 深圳市金立通信设备有限公司 Method of controlling terminal screen to rotate and terminal
CN109922204A (en) * 2017-12-13 2019-06-21 中兴通讯股份有限公司 Image processing method and terminal
CN110737336A (en) * 2019-10-12 2020-01-31 Oppo广东移动通信有限公司 video display direction adjusting method, device and computer readable storage medium
CN110740364A (en) * 2019-11-14 2020-01-31 四川长虹电器股份有限公司 intelligent rotary television device, system and working method thereof
CN110996175A (en) * 2019-11-19 2020-04-10 深圳创维-Rgb电子有限公司 Method, device and storage medium for controlling horizontal and vertical screen operation of television

Also Published As

Publication number Publication date
CN111885314A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN111885314B (en) Screen adjustment method, device, terminal and computer readable storage medium
CN107093418B (en) Screen display method, computer equipment and storage medium
US9307194B2 (en) System and method for video call
EP2664131B1 (en) Apparatus and method for compositing image in a portable terminal
CN110602401A (en) Photographing method and terminal
KR20130005656A (en) Method and apparatus for displaying of view mode using face recognition
CN107562306B (en) Method for controlling display brightness of mobile terminal, mobile terminal and storage device
CN108234894B (en) Exposure adjusting method and terminal equipment
US8310504B2 (en) System and method for panning and selecting on large displays using mobile devices without client software
WO2016202288A1 (en) Method for displaying real-time video and electronic device
CN111145087A (en) Image processing method and electronic equipment
EP3975043A1 (en) Image processing method, terminal, and storage medium
CN108389553B (en) Backlight control method, apparatus and computer readable storage medium
CN104378576B (en) Information processing method and electronic equipment
CN110493457B (en) Terminal device control method and terminal device
CN112969088A (en) Screen projection control method and device, electronic equipment and readable storage medium
CN112153305A (en) Camera starting method, mobile terminal and computer storage medium
CN112333391A (en) Method and device for automatically tracking portrait based on sound, intelligent terminal and medium
US20210405774A1 (en) Control method for audio device, audio device and storage medium
CN113268215B (en) Screen picture adjusting method, device, equipment and computer readable storage medium
CN112004151B (en) Control method of television equipment, television equipment and readable storage medium
CN110933305B (en) Electronic equipment and focusing method
CN110941344B (en) Method for obtaining gazing point data and related device
CN113377253A (en) Icon adjusting method, server and system
CN110248243B (en) Multimedia file display method, terminal and medium

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
GR01 Patent grant
GR01 Patent grant