Disclosure of Invention
In order to solve the above technical problem, the present invention provides a display method, a computer-readable storage medium, a computer device, and a display apparatus.
The display method provided by the invention comprises the following steps:
detecting whether a local screen area display condition is met;
and when the partial screen area display condition is met, displaying the data in a partial screen area display mode.
The display method also has the following characteristics:
displaying data in a partial screen area display manner includes:
the data is displayed in a fixed partial screen area, or in a varying partial screen area according to a partial screen area movement trajectory scheme.
The display method also has the following characteristics:
the partial screen movement track scheme comprises the following steps: the shape of the local screen area, the size of the local screen area, the display duration, the moving route and the moving displacement;
displaying data in the changed partial screen area according to the partial screen area movement trajectory scheme includes:
step 1, determining a local screen area according to the shape and the size of the local screen area;
step 2, displaying data in a local area screen area for a continuous display duration;
step 3, re-determining the local area screen area according to the moving route and the moving displacement; go back to step 2.
The display method also has the following characteristics:
the movement route is set to: after the partial screen areas move along the moving route for one period, the union of the past partial screen areas is the whole screen.
The display method also has the following characteristics:
the partial screen region display condition includes at least one of the following conditions:
detecting that data to be displayed is advertisement content;
detecting that no person is in front of the display equipment through the camera equipment or the infrared detection equipment;
detecting an artificial child in front of the display device through the camera device or the infrared detection device;
and receiving a trigger signal displayed in the local screen area.
The display method also has the following characteristics:
displaying data in a partial screen area display manner includes: the screen outside the local screen area is kept off.
The invention provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor, performs the steps of the above method.
The computer equipment provided by the invention comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and the steps of the method are realized when the processor executes the program.
The present invention provides a display device including:
the detection module is used for detecting whether the display condition of the local screen area is met or not;
and the display module is used for displaying the data in a local screen area display mode when the local screen area display condition is met.
The display device also has the following characteristics:
the display module includes:
the first local display module is used for displaying data in a fixed local screen area;
or,
and the second partial display module is used for displaying data in the changed partial screen area according to the partial screen area moving track scheme.
The display device also has the following characteristics:
the partial screen movement track scheme comprises the following steps: the shape of the local screen area, the size of the local screen area, the display duration, the moving route and the moving displacement;
the second partial display module comprises a determination module and a third partial display module;
the determining module is used for determining the local screen area according to the shape and the size of the local screen area;
a third partial display module for executing the following contents in a loop: displaying data in a local screen area for a continuous display duration; and re-determining the local area screen area according to the moving route and the moving displacement.
The display device also has the following characteristics:
the partial screen region display condition includes at least one of the following conditions:
detecting that data to be displayed is advertisement content;
detecting that no person is in front of the display equipment through the camera equipment or the infrared detection equipment;
detecting an artificial child in front of the display device through the camera device or the infrared detection device;
and receiving a trigger signal displayed in the local screen area.
The invention can effectively save the energy consumption of the screen and protect the eyesight of the user.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a display method in the present embodiment, applied to a display device, and the method includes:
step 101, detecting whether a local screen area display condition is met;
and 102, displaying data in a local screen area display mode when the local screen area display condition is met.
In step 101, the condition for satisfying the display condition of the partial screen area includes one of the following conditions:
firstly, detecting that data to be displayed is advertisement content;
secondly, detecting that no person is in front of the display equipment through the camera equipment or the infrared detection equipment;
thirdly, detecting an artificial child in front of the display device through the camera device or the infrared detection device;
and fourthly, receiving a trigger signal of the display condition of the local screen area.
In step 102, displaying data in a local screen area display mode includes: the data is displayed in a fixed partial screen area, or in a varying partial screen area according to a partial screen area movement trajectory scheme. Displaying data in a partial screen area display manner includes: the screen outside the local screen area is kept off.
The partial screen moving track scheme comprises the following steps: the shape of the partial screen area, the size of the partial screen area, the display duration, the movement route, and the movement displacement. For example, the shape of the partial screen area may be rectangular, square, irregular, etc. The size of the partial screen area may be a fixed size or a fixed ratio according to the screen size. The movement route is one of the following routes: 1. moving from top to bottom column by column. 2. Moving from left to right row by row. 3. A Z-shaped movement. 4. Arcuate movement 5, clockwise outside-in rotational movement. 6. Clockwise from inside to outside. 7. And the rotation from outside to inside is carried out anticlockwise. 8. And the rotation from inside to outside is anticlockwise. The shift displacement is in units of pixels of the screen. The dynamic displacement may include a moving displacement in one direction, and may also include a moving displacement in a plurality of directions.
When the moving route is from left to right, the moving mode is: the length of the whole screen is X, and the width is Y. The length of the partial screen area is M, and the width of the partial screen area is N. The upper left corner of the whole screen is taken as a coordinate starting point [0,0], and the coordinate of the upper left corner of the initial partial screen area is taken as [0,0 ]. The local screen area moves in a horizontal direction in a displacement mode until the coordinate of the upper left corner of the local screen area is X-M,0, and the execution of the route is finished under the condition that the width of the local screen area is equal to that of the whole screen; and under the condition that the width of the partial screen area is smaller than that of the whole screen, enabling the coordinate of the upper left corner of the new partial screen area to be [0, N ], enabling the partial screen area to move in a horizontal direction in a line direction in a displacement mode, and circularly executing in this mode until the coordinate of the upper left corner of the partial screen area is [ X-M, Y-N ], and completing the execution of the route.
An example of a movement route is:
the size of the whole screen is determined by the corresponding pixel value of the resolution, and the length is X and the width is Y. Wherein X is a multiple of 100.
The partial screen movement trajectory scheme is a column-by-column movement from top to bottom.
The shape of the partial screen area is rectangular.
The size of the partial screen area is X/4 in length and Y/4 in width.
The display time period was 1 minute.
The horizontal movement displacement is 100 pixels, and the vertical movement displacement is 200 pixels.
Displaying data in the changed partial screen area according to the partial screen area movement trajectory scheme includes:
step 1, determining a local screen area according to the shape and the size of the local screen area;
step 2, displaying data in a local area screen area for a continuous display duration;
step 3, re-determining the local area screen area according to the moving route and the moving displacement; go back to step 2.
The moving route refers to the union of past partial screen areas as the whole screen after the partial screen areas move along the moving route for one period. The method aims to enable the whole screen to display uniformly and prevent a certain display area from being lost due to long-time display.
The present embodiment also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the above-described method.
The embodiment also provides a computer device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the method.
FIG. 2 is a block diagram of a display device in an embodiment, the device including a detection module and a display module.
The detection module is used for detecting whether a display condition of a local screen area is met;
the display module is used for displaying data in a local screen area display mode when the local screen area display condition is met.
Wherein,
the display module includes:
the first local display module is used for displaying data in a fixed local screen area;
or,
the second partial display module is used for displaying data in the changed partial screen area according to the partial screen area moving track scheme.
The partial screen movement track scheme comprises the following steps: the shape of the partial screen area, the size of the partial screen area, the display duration, the movement route, and the movement displacement. The second partial display module comprises a determination module and a third partial display module. The moving route is set as the union of past partial screen areas as the whole screen after the partial screen areas move along the moving route for one period.
The determining module is used for determining the local screen area according to the shape and the size of the local screen area;
the third partial display module is used for circularly executing the following contents: displaying data in a local screen area for a continuous display duration; and re-determining the local area screen area according to the moving route and the moving displacement.
Satisfying the partial screen region display condition includes one of the following conditions:
firstly, detecting that data to be displayed is advertisement content;
secondly, detecting that no person is in front of the display equipment through the camera equipment or the infrared detection equipment;
thirdly, detecting an artificial child in front of the display device through the camera device or the infrared detection device;
and fourthly, receiving a trigger signal of the display condition of the local screen area.
Corresponding to the different conditions, the detection module has corresponding functions, specifically:
corresponding to the condition one, the detection module comprises an analysis module and a first detection module. The analysis module is used for analyzing the data to be displayed; the first detection module is used for detecting whether the data to be displayed is advertisement content.
And corresponding to the second condition, the detection module comprises an image pickup device and a second detection module, or comprises an infrared detection device and a second detection module. And the second detection module is used for detecting whether people are absent in front of the display equipment through the camera equipment or the infrared detection equipment.
Corresponding to the third condition, the detection module includes an image pickup device and a second detection module, or includes an infrared detection device and a third detection module. The third detection module is used for detecting whether the person in front of the display device is a child through the camera device or the infrared detection device.
Corresponding to condition four, the detection module includes a receiving module and a fourth detection module. The receiving module is used for receiving the trigger signal. The fourth detection module is used for detecting whether a trigger signal displayed in a local screen area is received.
The invention can effectively save the energy consumption of the screen and protect the eyesight of the user.
The above-described aspects may be implemented individually or in various combinations, and such variations are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, such as a read-only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the foregoing embodiments may also be implemented by using one or more integrated circuits, and accordingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, and may also be implemented in the form of a software functional module. The present invention is not limited to any specific form of combination of hardware and software.
It is to be noted that, in this document, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that an article or apparatus including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of additional like elements in the article or device comprising the element.
The above embodiments are merely to illustrate the technical solutions of the present invention and not to limit the present invention, and the present invention has been described in detail with reference to the preferred embodiments. It will be understood by those skilled in the art that various modifications and equivalent arrangements may be made without departing from the spirit and scope of the present invention and it should be understood that the present invention is to be covered by the appended claims.