CN112533049B - Picture following screen rotation processing method and device, intelligent terminal and medium - Google Patents

Picture following screen rotation processing method and device, intelligent terminal and medium Download PDF

Info

Publication number
CN112533049B
CN112533049B CN202011356443.6A CN202011356443A CN112533049B CN 112533049 B CN112533049 B CN 112533049B CN 202011356443 A CN202011356443 A CN 202011356443A CN 112533049 B CN112533049 B CN 112533049B
Authority
CN
China
Prior art keywords
picture
screen
angle
rotation
rotation angle
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
CN202011356443.6A
Other languages
Chinese (zh)
Other versions
CN112533049A (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 Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202011356443.6A priority Critical patent/CN112533049B/en
Publication of CN112533049A publication Critical patent/CN112533049A/en
Application granted granted Critical
Publication of CN112533049B publication Critical patent/CN112533049B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for processing picture rotation along with a screen, an intelligent terminal and a medium, wherein the method comprises the following steps: detecting whether the screen rotates; when the screen is detected to start rotating, inserting a picture which is made in advance, and acquiring the rotation angle of the screen in real time; and controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction all the time when the screen rotates. The embodiment of the invention can generate and display the picture for trial in the current state according to the information of the acquired picture and the current rotation angle of the screen when the screen rotates. The invention can play the manufactured picture when the screen rotates, and realize that the picture rotates reversely along with the screen when the screen rotates, so that the picture seen when the screen rotates is always positive, the picture is convenient for a user to watch, and convenience is provided for the user.

Description

Picture following screen rotation processing method and device, intelligent terminal and medium
Technical Field
The invention relates to the technical field of televisions, in particular to a picture rotation processing method and device along with a screen, an intelligent terminal and a storage medium.
Background
With the development of electronic technology and the continuous improvement of the living standard of people, various intelligent terminals such as an intelligent television are more and more popularized. With the popularity of applications such as trembling, the demand for vertical screen display of televisions is more and more urgent, and a large number of television products with rotation functions are coming along with the demand.
The television with the rotation function in the prior art meets the requirement of vertical screen display of people, but has some disadvantages; for example, due to the screen structure and other reasons, the rotary screen can restore the screen to the position of the transverse screen during normal standby and shutdown, so that the user needs to turn to the position of the vertical screen when using the rotary screen next time; when the screen is rotated, the content displayed on the screen does not change along with the rotation, and generally changes suddenly after the screen is rotated to a position, so that the user experience is influenced.
Thus, there is still a need for improvement and development of the prior art.
Disclosure of Invention
The present invention provides a method and an apparatus for processing rotation of a picture following screen, an intelligent terminal and a storage medium, aiming at solving the problem that the picture cannot rotate at the same angle following the screen and is inconvenient for a user to watch when the produced picture is played when the screen rotates in the prior art.
The technical scheme adopted by the invention for solving the problems is as follows:
a picture following screen rotation processing method, wherein the method comprises:
detecting whether the screen rotates;
when the screen is detected to start rotating, inserting a picture which is made in advance, and acquiring the rotation angle of the screen in real time;
and controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction all the time when the screen rotates.
The picture following screen rotation processing method, wherein the step of detecting whether the screen rotates or not comprises:
and pre-manufacturing pictures which need to be inserted when the screen rotates.
The picture following screen rotation processing method, wherein the step of detecting whether the screen rotates or not comprises:
setting pictures to be inserted when a screen rotates according to a preset rule, and acquiring parameter information of the pictures;
obtaining the position of a picture display central point according to the obtained image parameter information;
and taking the picture display central point as the display central point of the picture to be inserted.
The method for processing the rotation of the picture following the screen comprises the following steps of obtaining the position of a picture display central point according to the obtained image parameter information:
directly acquiring resolution parameters of the picture according to the picture document;
and calculating the center point of the picture according to the acquired resolution parameters to obtain a picture display center point, wherein the picture display center point is used for taking the center point as the picture display center point.
The processing method for rotating the picture along with the screen, wherein the step of controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction when the screen rotates comprises the following steps:
and when the screen rotates, generating and displaying a forward picture corresponding to the current screen rotation state according to the acquired central point information of the picture and the current rotation angle of the screen.
The method for processing the rotation of the picture along with the screen comprises the following steps of controlling the picture angle to rotate reversely by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen, so that the picture always keeps forward when the screen rotates:
the picture is matrixed into an array s [ x, y ] [ … ], wherein x and y represent coordinates of pixel points corresponding to the picture;
obtaining the coordinate (x) of the central point of the picture according to the related information of the picture c ,y c ) Calculating half r of the length of a diagonal line of a picture to be displayed;
judging whether the current pixel needs to be displayed: calculating the distance from each element in the current pixel corresponding matrix to the coordinate of the central point
Figure GDA0003939195330000021
If the distance is larger than r, the current data needs to be displayed in a certain rotation stage;
calculating the content required to be displayed at the current angle: if the current loudness is required to be displayed, setting the required rotation angle as theta;
if the coordinates of the point to be displayed on the display screen are (x, y) (the coordinates of the point displayed on the display screen are fixed), and the coordinates of the value obtained from the memory picture after rotating to a certain angle are (x ', y'), the corresponding relationship after rotating to a certain angle is:
x′=xcosθ+ysinθ
y′=ycosθ+xsinθ
and filling the data of the corresponding (x ', y') coordinates into (x, y) according to the mapping relation to obtain the image required to be displayed at the current angle.
The method for processing the rotation of the picture along with the screen comprises the following steps of controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen, so that the picture always keeps forward when the screen rotates, and further comprises the following steps:
according to the acquired rotation angle a of the screen;
and controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process, namely controlling the rotation angle of the picture to be-a so as to keep the picture in the forward direction all the time when the screen rotates.
A picture-following-screen rotation processing apparatus, wherein the apparatus comprises:
the detection module is used for detecting whether the screen rotates;
the playing and acquiring module is used for inserting a pre-made picture when the screen is detected to start rotating, and acquiring the rotating angle of the screen in real time;
and the rotation control module is used for controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction all the time when the screen rotates.
An intelligent terminal comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to implement the steps of any of the methods when the one or more programs are executed by one or more processors.
A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any of the methods.
The invention has the beneficial effects that: the embodiment of the invention detects whether the screen rotates; when the screen is detected to start rotating, inserting a picture which is made in advance, and acquiring the rotation angle of the screen in real time; and controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in a forward direction all the time when the screen rotates. The invention can play the manufactured picture when the screen rotates, and realize that the picture rotates reversely along with the screen when the screen rotates, so that the picture seen when the screen rotates is always positive, the picture is convenient for a user to watch, and convenience is provided for the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a processing method for rotating a picture following screen according to an embodiment of the present invention.
Fig. 2 is a schematic diagram before screen rotation of a picture following screen rotation processing method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a screen rotation process method for image following screen rotation according to an embodiment of the present invention.
Fig. 4 is a schematic diagram after completion of screen rotation of the method for processing image following screen rotation according to the embodiment of the present invention.
Fig. 5 is a schematic diagram of the size of a picture in the picture-following screen rotation processing method according to the embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating a pixel correspondence relationship when the image is rotated in the method for processing image rotation following a screen according to the embodiment of the present invention.
Fig. 7 is a schematic block diagram of a picture-following-screen rotation processing apparatus according to an embodiment of the present invention.
Fig. 8 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative position relationship between the components, the motion situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
The television with the rotation function in the prior art meets the requirement of vertical screen display of people, but has some disadvantages; for example, due to the screen structure and other reasons, the rotary screen can restore the screen to the position of the transverse screen during normal standby and shutdown, so that the user needs to turn to the position of the vertical screen when using the rotary screen next time; when the screen is rotated, the content displayed on the screen does not change along with the rotation, and generally changes suddenly after the screen is rotated to a position, which greatly influences the user experience.
In order to solve the problems in the prior art, the invention provides a method for processing the rotation of a picture following screen, along with the starting of the current cloud business, the trend of implanting advertisements on the screen is already, if a picture advertisement which can change along with the rotation can be played when the screen rotates, the user experience can be improved, the advertisement income can also be realized, and the method is a good thing achieving two purposes at one stroke.
The invention provides a method for rotating a picture along with a screen. By the method, the image can reversely rotate along with the screen when the screen rotates, so that user experience is improved.
In the embodiment of the invention, the picture is set according to a certain rule, and some information of the picture is acquired; and when the screen rotates, generating and displaying a trial picture in the current state according to the information of the acquired picture and the current rotation angle of the screen. The invention can realize the following effects: the manufactured picture is played when the screen rotates, so that the picture seen when the screen rotates is always positive, and convenience is provided for a user to watch the picture.
Exemplary method
As shown in fig. 1, an embodiment of the present invention provides a method for processing rotation of a picture following screen, where the method for processing rotation of a picture following screen can be applied to an intelligent terminal. In an embodiment of the present invention, the method includes the steps of:
s100, detecting whether a screen rotates or not;
the invention mainly aims to realize that the picture rotates along with the screen, for example, when the screen rotates, a pre-made advertisement picture is inserted, and the picture keeps forward in the screen rotating process.
In specific implementation, the invention can be used for pre-making pictures which need to be inserted when the screen rotates, for example, pre-making advertisement pictures which need to be played.
When the method is implemented specifically, the picture to be inserted when the screen rotates is set according to a preset rule, and parameter information of the picture, such as coordinate parameter information of corresponding pixel points of the picture, is acquired;
then, according to the acquired image parameter information, the position of a picture display central point is acquired; and taking the picture display central point as the display central point of the picture to be inserted. The rotation angle of the picture is conveniently controlled by taking the picture central point as a base point.
Preferably, the step of obtaining the position of the picture display center point according to the obtained image parameter information includes:
directly acquiring resolution parameters of the picture according to the picture document;
and calculating the center point of the picture according to the acquired resolution parameters to obtain a picture display center point, wherein the picture display center point is used for taking the center point as the picture display center point.
In specific implementation, when a user finishes watching a video, turns off the video and then turns on a tremble video application by using a television, the embodiment of the invention detects that the television screen starts to rotate, and then can detect whether the screen rotates or not through a sensor.
S200, inserting a pre-made picture when the screen is detected to start rotating, and acquiring the rotation angle of the screen in real time;
in the embodiment of the invention, when the screen is detected to start rotating, the pre-made advertisement picture is inserted, and the rotation angle of the screen is acquired in real time.
Step S300, according to the acquired rotation angle of the screen, controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process so as to keep the picture in the forward direction all the time when the screen rotates.
According to the embodiment of the invention, the picture angle and the rotation angle of the screen are controlled to reversely rotate by the same angle in the screen rotation process according to the acquired rotation angle of the screen, so that the picture can always keep a forward direction when the screen rotates.
According to the invention, when the screen rotates, a forward picture corresponding to the current screen rotation state is generated and displayed according to the acquired center point information of the picture and the current rotation angle of the screen.
Specifically, according to the acquired rotation angle a of the screen; and controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process, namely controlling the rotation angle of the picture to be-a so as to keep the picture in the forward direction all the time when the screen rotates.
For example, when the user finishes watching the video tv 10 horizontally and then turns on the tremble APP, the tv screen needs to be rotated vertically; in the embodiment of the invention, when the television screen is closed and the audio-shaking APP is opened, the advertisement pictures 20 are inserted, and the forward direction is always displayed when the advertisement pictures are inserted in the process of turning from the transverse direction to the vertical direction until the advertisement pictures are automatically closed after turning is finished, and the opened audio-shaking APP is displayed.
In order to realize that the picture always keeps forward for the user to watch when the screen rotates, in the embodiment of the invention, the transformation process sequentially refers to figures 2-3-4,
fig. 2 is a schematic diagram before screen rotation of a picture following screen rotation processing method according to an embodiment of the present invention. As shown in fig. 2, when the user views the television 10 horizontally and then turns on the tremble APP, the television screen in the embodiment of the present invention inserts the advertisement picture 20 when the television turns off the tremble APP.
Fig. 3 is a schematic diagram of a screen rotation process method for image following screen rotation according to an embodiment of the present invention. As shown in fig. 3, when the counter-clockwise rotation of the screen is detected to be 30 degrees, the broadcast picture (20 a shown in fig. 3) is controlled to be also rotated clockwise by 30 degrees (reverse to the screen rotation angle) based on the rotated screen, so as to ensure that the picture viewed by the user is always kept in the forward direction when the screen is rotated.
Fig. 4 is a schematic diagram after completion of screen rotation of the image following screen rotation processing method according to the embodiment of the present invention. When the rotation of the screen 10 is completed, the picture (20 b) remains in the forward direction, and when the picture is automatically closed until the turning is completed, the on-trembling APP is displayed.
The present invention will be described in further detail by way of specific application examples
Step one, setting a picture according to a certain rule, and acquiring some information of the picture
1. The requirements of the original picture of the advertisement of the present invention are: the length and width of the original picture cannot be smaller than the length of the diagonal line of the picture to be displayed, so that it can be ensured that there is no abnormal situation such as black border when the picture is made (i.e. the least effective pixel point of the picture needs to cover a circle whose diameter is the diagonal line of the picture to be displayed), and the related schematic diagram is shown in fig. 5.
2. Obtaining the position of a picture display central point by obtaining the information of the picture, such as the resolution of the picture directly obtained according to the picture document, then calculating the central point of the picture, and using the central point as the picture display central point; and the method can also be obtained according to the information in a configuration file matched with the picture.
And step two, generating and displaying a picture for trial in the current state according to the information of the acquired picture and the current rotation angle of the screen when the screen rotates.
Specifically, the picture is matrixed into an array s [ x, y ] [ … ], wherein x and y represent coordinates of pixel points corresponding to the picture;
obtaining the picture according to the related information of the pictureCoordinates (x) of the center point c ,y c ) Calculating half r of the length of a diagonal line of a picture to be displayed;
judging whether the current pixel needs to be displayed: calculating the distance from each element in the current pixel corresponding matrix to the coordinate of the central point
Figure GDA0003939195330000071
If the distance is larger than r, the current data needs to be displayed in a certain rotation stage; and vice versa.
Calculating the content required to be displayed at the current angle: if the current loudness is required to be displayed, setting the required rotation angle as theta; a schematic diagram of the dots to be displayed is shown in fig. 6;
if the coordinates of the point to be displayed on the display screen are (x, y) (the coordinates of the point displayed on the display screen are fixed), and the coordinates of the value obtained from the memory picture after rotating to a certain angle are (x ', y'), the corresponding relationship after rotating to a certain angle is:
x′=xcosθ+ysinθ
y′=ycosθ+xsinθ
and filling the data of the corresponding (x ', y') coordinates into the (x, y) according to the mapping relation to obtain the image required to be displayed at the current angle.
According to the embodiment of the invention, when the rotary screen rotates, the picture seen when the rotary screen is inserted with an advertisement picture to rotate is always positive, so that the user experience of the rotary screen is improved.
According to the invention, when the screen rotates, a picture advertisement which can not change along with the rotation can be played, so that the user experience can be improved, the advertisement income can be realized, and the user experience of the screen during the rotation can be improved.
Exemplary device
As shown in fig. 7, an embodiment of the present invention provides a picture-following-screen rotation processing apparatus, including:
a detecting module 510, configured to detect whether the screen is rotating;
a playing and acquiring module 520, configured to insert a pre-made picture when it is detected that the screen starts to rotate, and acquire a rotation angle of the screen in real time;
the rotation control module 530 is configured to control, according to the acquired rotation angle of the screen, the image angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process, so that the image always keeps the forward direction when the screen rotates, which is specifically described above.
Based on the above embodiment, the present invention further provides an intelligent terminal, and a schematic block diagram thereof may be as shown in fig. 8. The intelligent terminal comprises a processor, a memory, a network interface, a display screen and a sensor which are connected through a system bus. Wherein, the processor of the intelligent terminal is used for providing calculation and control capability. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The network interface of the intelligent terminal is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a picture following screen rotation processing method. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the sensor of the intelligent terminal is arranged inside the intelligent terminal in advance and used for detecting the rotation angle of the screen.
It will be understood by those skilled in the art that the block diagram of fig. 8 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the intelligent terminal to which the solution of the present invention is applied, and a specific intelligent terminal may include more or less components than those shown in the figure, or combine some components, or have different arrangements of components.
In one embodiment, an intelligent terminal is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
detecting whether the screen rotates;
when the screen is detected to start rotating, inserting a picture which is made in advance, and acquiring the rotation angle of the screen in real time;
and controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in a forward direction all the time when the screen rotates.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
In summary, the invention discloses a method, a device, an intelligent terminal and a medium for processing picture rotation following a screen, wherein the method comprises the following steps: detecting whether the screen rotates; when the screen is detected to start rotating, inserting a picture which is made in advance, and acquiring the rotation angle of the screen in real time; and controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction all the time when the screen rotates. The embodiment of the invention can generate and display the picture for trial in the current state according to the information of the acquired picture and the current rotation angle of the screen when the screen rotates. The invention can play the manufactured picture when the screen rotates, and realize that the picture rotates reversely along with the screen when the screen rotates, so that the picture seen when the screen rotates is always positive, the picture is convenient for a user to watch, and convenience is provided for the user.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (4)

1. A picture following screen rotation processing method is characterized by comprising the following steps:
pre-making pictures to be inserted when the screen rotates;
setting pictures to be inserted when the screen rotates according to a preset rule, and acquiring parameter information of the pictures;
obtaining the position of a picture display central point according to the obtained image parameter information;
taking the picture display central point as the display central point of the picture to be inserted;
wherein the picture is an advertisement picture; the length and the width of an original picture for making the inter-cut picture are more than or equal to the length of a diagonal line of the picture displayed on a screen;
the step of obtaining the position of the picture display central point according to the obtained image parameter information comprises the following steps:
directly acquiring a resolution parameter of a picture according to the picture document;
calculating a central point of the picture according to the acquired resolution parameters to obtain a picture display central point, wherein the central point is used as the picture display central point;
the step of controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction all the time when the screen rotates comprises the following steps:
the picture is matrixed into an array s [ x, y ] [ … ], wherein x and y represent coordinates of pixel points corresponding to the picture;
obtaining the coordinate (x) of the central point of the picture according to the related information of the picture c ,y c ) Calculating half r of the length of a diagonal line of a picture to be displayed;
judging whether the current pixel needs to be displayed: calculating the distance from each element in the current pixel corresponding matrix to the coordinate of the central point
Figure FDA0003721579840000011
If the distance d is larger than r, the current data needs to be displayed at a certain rotation stage;
calculating the content required to be displayed at the current angle: if the current loudness is required to be displayed, setting the required rotation angle as theta;
if the coordinates of the point to be displayed on the display screen are (x, y), and the coordinates of the value obtained from the memory picture after rotating to a certain angle are (x ', y'), the corresponding relationship after rotating to a certain angle is:
x′=xcosθ+ysin θ
y′=ycosθ+xsinθ
filling the data of the corresponding (x ', y') coordinates into (x, y) according to the mapping relation to obtain the image required to be displayed at the current angle;
detecting whether the screen rotates;
when the screen is detected to start rotating, inserting a picture which is made in advance, and acquiring the rotation angle of the screen in real time;
according to the acquired rotation angle of the screen, controlling the angle of the picture to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process so as to keep the picture in the forward direction all the time when the screen rotates;
the step of controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction when the screen rotates comprises the following steps:
when the screen rotates, generating and displaying a forward picture corresponding to the current screen rotation state according to the acquired central point information of the picture and the current rotation angle of the screen;
the step of controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction all the time when the screen rotates further comprises:
according to the acquired rotation angle a of the screen;
and controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process, namely controlling the rotation angle of the picture to be-a so as to keep the picture in the forward direction all the time when the screen rotates.
2. A picture-following-screen rotation processing apparatus, characterized in that the apparatus comprises:
the detection module is used for detecting whether the screen rotates or not;
the detection module detects whether a picture needing to be inserted when the screen rotates is made in advance before the screen rotates; the picture is an advertisement picture; the length and the width of an original picture for making the inter-cut picture are more than or equal to the length of a diagonal line of the picture displayed on a screen;
setting pictures to be inserted when the screen rotates according to a preset rule, and acquiring parameter information of the pictures;
obtaining the position of a picture display central point according to the obtained image parameter information;
taking the picture display central point as the display central point of the picture to be inserted;
the step of obtaining the position of the picture display central point according to the obtained image parameter information comprises the following steps:
directly acquiring resolution parameters of the picture according to the picture document;
calculating a central point of the picture according to the acquired resolution parameters to obtain a picture display central point, wherein the central point is used as the picture display central point;
the step of controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction all the time when the screen rotates comprises the following steps:
the picture is matrixed into an array s [ x, y ] [ … ], wherein x and y represent coordinates of pixel points corresponding to the picture;
obtaining the coordinate (x) of the central point of the picture according to the related information of the picture c ,y c ) Calculating half r of the length of a diagonal line of a picture to be displayed;
judging whether the current pixel needs to be displayed: calculating the distance from each element in the current pixel corresponding matrix to the coordinate of the central point
Figure FDA0003721579840000031
If the distance d is larger than r, the current data needs to be displayed at a certain rotation stage;
calculating the content required to be displayed at the current angle: if the current loudness is required to be displayed, setting the required rotation angle as theta;
if the coordinates of the point to be displayed on the display screen are (x, y), and the coordinates of the value obtained from the memory picture after rotating to a certain angle are (x ', y'), the corresponding relationship after rotating to a certain angle is:
x′=xcosθ+ysinθ
y′=ycosθ+xsinθ
filling the data of the corresponding (x ', y') coordinates into (x, y) according to the mapping relation to obtain the image required to be displayed at the current angle;
when the screen rotates, generating and displaying a forward picture corresponding to the current screen rotation state according to the acquired central point information of the picture and the current rotation angle of the screen;
the playing and acquiring module is used for inserting a pre-made picture when the screen is detected to start rotating, and acquiring the rotating angle of the screen in real time;
the rotation control module is used for controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process according to the acquired rotation angle of the screen so as to keep the picture in the forward direction all the time when the screen rotates;
when the screen rotates, generating and displaying a forward picture corresponding to the current screen rotation state according to the acquired center point information of the picture and the current rotation angle of the screen;
according to the acquired rotation angle a of the screen; and controlling the picture angle to reversely rotate by the same angle as the rotation angle of the screen in the screen rotation process, namely controlling the picture rotation angle to be-a.
3. An intelligent terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to implement the steps of the method as recited in claim 1 when the one or more programs are executed by one or more processors.
4. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of claim 1.
CN202011356443.6A 2020-11-26 2020-11-26 Picture following screen rotation processing method and device, intelligent terminal and medium Active CN112533049B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011356443.6A CN112533049B (en) 2020-11-26 2020-11-26 Picture following screen rotation processing method and device, intelligent terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011356443.6A CN112533049B (en) 2020-11-26 2020-11-26 Picture following screen rotation processing method and device, intelligent terminal and medium

Publications (2)

Publication Number Publication Date
CN112533049A CN112533049A (en) 2021-03-19
CN112533049B true CN112533049B (en) 2022-12-27

Family

ID=74994060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011356443.6A Active CN112533049B (en) 2020-11-26 2020-11-26 Picture following screen rotation processing method and device, intelligent terminal and medium

Country Status (1)

Country Link
CN (1) CN112533049B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116373470B (en) * 2023-06-05 2023-09-12 苏州优备精密智能装备股份有限公司 Device and printing method for realizing ink-jet printing based on visual guidance
CN116820379A (en) * 2023-08-31 2023-09-29 中国电子科技集团公司第十五研究所 Equipment display control method based on human engineering, server and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369210B (en) * 2008-08-22 2011-03-16 华为终端有限公司 Method and device for regulating user interface element
CN105100396A (en) * 2015-05-21 2015-11-25 努比亚技术有限公司 Mobile terminal and rotating display method and device thereof
CN105302420B (en) * 2015-11-18 2019-06-28 成都中科创达软件有限公司 Image display method and system in a kind of mobile terminal
CN106201168A (en) * 2016-06-27 2016-12-07 乐视控股(北京)有限公司 Video playback picture display process, device and mobile terminal
CN111010476A (en) * 2019-11-13 2020-04-14 北京奇艺世纪科技有限公司 Image display method, device, terminal and 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
CN111638929A (en) * 2020-05-26 2020-09-08 广州视源电子科技股份有限公司 Startup image processing method, device, equipment and storage medium
CN111866593B (en) * 2020-07-14 2023-03-21 海信视像科技股份有限公司 Display device and startup interface display method

Also Published As

Publication number Publication date
CN112533049A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN101110942B (en) Remote instruction system and method
CN112533049B (en) Picture following screen rotation processing method and device, intelligent terminal and medium
US8971666B2 (en) Fisheye correction with perspective distortion reduction method and related image processor
EP2075761B1 (en) Method and device for adjusting output frame
US10074157B2 (en) Adaptively displaying application output
CN113126937B (en) Display terminal adjusting method and display terminal
WO2022048424A1 (en) Screen picture adaptive adjustment method, apparatus and device, and storage medium
US11551392B2 (en) Graphic drawing method and apparatus, device, and storage medium
CN111651113B (en) Page display method, device, equipment and storage medium
US11756506B2 (en) Method and device for adjusting image quality, and readable storage medium
CN113453050B (en) Play mode adjusting method based on rotary screen, intelligent terminal and storage medium
CN113963072B (en) Binocular camera calibration method and device, computer equipment and storage medium
CN113031839B (en) Image processing method, device, equipment and medium in video call
CN113380184B (en) Correction method and device, LED display screen and computer equipment
CN112948029A (en) Page adjusting method and device, computer equipment and computer readable storage medium
CN114049865B (en) Screen refreshing method and device, computer readable storage medium and computer equipment
US11798230B2 (en) Display data processing method, device and terminal, display method and device, and readable storage medium
CN115562539A (en) Control display method and device, electronic equipment and readable storage medium
CN108683842B (en) Panoramic camera and method and device for outputting panoramic video
CN113741845A (en) Processing method and device
CN113126836A (en) Picture display method, storage medium and terminal equipment
CN109743511B (en) Method and system for automatically adjusting display direction of playing picture
CN116205848A (en) Image special effect processing method and system based on mirror image setting switching
CN117459651A (en) Image rotation processing method, device, equipment and computer readable storage medium
US20200211164A1 (en) Data processing method and device

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