Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents A or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, A and/or B, represent A or B, or three relationships of A and B.
Fig. 1 is a schematic diagram of a method for mirror image screen projection provided in an embodiment of the present disclosure, and in conjunction with fig. 1, the embodiment of the present disclosure provides a method for mirror image screen projection, including:
S11, the mirror image screen throwing equipment receives and displays a first picture sent by the mobile terminal, wherein the first picture is a mirror image screen throwing picture.
S12, grabbing a second picture in the display area of the first picture, wherein the second picture is a picture of an image area in the display area.
S13, adjusting the second picture so that the adjusted second picture can be displayed in a full screen in the mirror image screen throwing equipment.
The mobile terminal device in the embodiment of the disclosure may be a mobile device such as a mobile phone or a tablet computer having a mirror image screen projection mode, and the mirror image screen projection device may be a device configured with a display screen, an intelligent home device, or any combination thereof. In some embodiments, the smart home device may include, for example, an air conditioner, a refrigerator, a television, etc., or any combination thereof.
In step 11, the mirror image screen projection device receives and displays a first screen sent by the mobile terminal. Specifically, the mirror image screen-throwing device is connected with the mobile terminal device, the mirror image screen-throwing device and the mobile terminal device can be connected to the same local area network, and after the mobile terminal device selects a screen mirror image mode, namely after a mirror image screen-throwing request is sent to the mirror image screen-throwing device, the mirror image screen-throwing device can receive and display a first picture of the mirror image screen-throwing device, wherein the first picture is a picture of the mirror image screen-throwing device. For example, when the mobile terminal is a mobile phone and the mirror image screen-throwing device is a television, the mobile phone and the television are connected to the same local area network, and after the mobile phone selects the mirror image screen-throwing mode, the television can receive and display a first picture of the screen throwing of the mobile phone. With this scheme, the user can watch the first picture of the mirror projection screen on the mirror device.
In step 12, a second screen is grabbed in the display area of the first screen. The second screen is a screen of the image area in the display area.
In the scheme, after the screen throwing picture is displayed on the mirror image equipment, a black area possibly is further included in the display area of the mirror image screen throwing equipment except for the image area, in order to determine an adjusted target picture, the image area is grabbed in the display area to serve as a second picture, the black area can be prevented from being adjusted in the picture adjusting process, the accuracy of an adjusting target is ensured, and full-screen display of the adjusted second picture in the mirror image screen throwing equipment is facilitated.
In step 13, the display condition of the second picture can be adjusted by adjusting the display angle and/or the display proportion, so that the adjusted second picture is displayed in full screen in the mirror image screen-throwing device.
By adopting the method for mirror image screen projection provided by the embodiment of the disclosure, the mirror image screen projection equipment receives the first picture of the mobile terminal, and displays the mirror image first picture on the mirror image screen projection equipment, so that the picture in the image area is captured as the second picture in the display area of the first picture, and the second picture is further adjusted, so that the adjusted second picture is displayed in the mirror image screen projection equipment in a full screen manner. So that the user can watch the display information of the second picture on the mirror image screen throwing device in a full screen mode, and the mirror image screen throwing device is convenient for the user to use.
Optionally, in order to accurately capture the image area in the display area as the second screen, in this scheme, screen information of the display area is acquired, and in the screen information, the boundary of the image area is identified, and the image area is captured as the second interface.
Specifically, the screen information of the display area includes an image area and a black area other than the image area. In order to adjust the image area, the boundary of the image area is identified in the display area. The boundary of the image area is the boundary between the image area and the black area. With this scheme, the image area in the display area can be accurately grasped so as to further adjust the image area.
Optionally, in order to adjust the second screen, when the mirror image screen projection device is configured with a remote control device matched with the mirror image screen projection device, the embodiment of the disclosure obtains key indication information of the remote control device, and adjusts the second screen according to the key indication information.
Specifically, the key indication information may include a pointing direction of the key, the number of times of pressing the key, and an adjustment angle of each time the key is pressed. The indication information of the keys can be preset according to the use habit of the user. For example, the adjustment angle per press is set to 90 ° in advance. When the right key is pressed 2 times, the key indication information is determined to be rotated 2 times to the right and rotated 90 ° each time. In the scheme, when the remote control device is configured on the mirror image equipment, key indication information of the remote control device is obtained, the picture adjustment intention of a user can be determined according to the key indication information, and then the second picture is adjusted, so that the adjusted second picture is displayed in a full screen mode in the mirror image screen projection equipment, the user can watch the screen projection content on the screen projection equipment conveniently, and the user can use the screen projection equipment conveniently.
Optionally, in order to adjust the second screen, in this solution, an adjustment angle of the second screen may be determined according to the indication information of the key, and the second screen may be adjusted according to the adjustment angle.
The embodiment of the disclosure can determine the adjustment angle of the second screen at least by the following three ways:
The first mode is to determine the adjustment angle of the second picture according to the pointing direction of the key and the number of times of pressing the key. For example, the default adjustment angle per pressing of the direction key is 90 °. Then when the user wants to adjust the second screen, in the case that the user presses the left key three times, the adjustment angle of the second screen is determined to be rotated 270 ° further to the left at the current screen angle.
And in the second mode, determining the adjustment angle of the second picture according to the pointing direction of the key and the times of pressing the key within a preset time period. For example, the default adjustment angle of the direction key per press is 90 °, and the preset key press duration is 3 seconds. When the user wants to adjust the second picture, the adjustment angle of the second picture is determined to be rotated 180 degrees leftwards under the current picture angle when the key pressing times in 3 seconds are obtained to be leftwards twice.
And the third mode is to preset the adjustment angle of each time of pressing the direction key according to the use habit of the user. And determining the adjustment angle of the second picture according to the adjustment angle, the pointing direction of the key and the times of pressing the key. For example, if the adjustment angle of the direction key is preset to be 30 ° each time, when the user wants to adjust the second screen, if the user presses the left key three times, it is determined that the adjustment angle of the second screen is rotated to the left at the current screen angle by 90.
In the scheme, the second picture is adjusted according to the adjustment angle, so that the display angle of the second picture can be accurately adjusted, and a user can normally watch the display content of the second picture on the mirror image screen projection equipment, thereby being convenient for the user to use.
Optionally, in order to perform full-screen display on the second screen after adjusting the screen angle, in this scheme, the display proportion of the second screen may also be adjusted.
In the scheme, after the second picture is grabbed or the picture angle of the second picture is adjusted, the display proportion of the second picture can be adjusted according to the size of the display interface of the mirror image equipment, so that the second picture is displayed in a full screen in the display screen of the mirror image equipment. In another optimization scheme, the display proportion of the second picture can be adjusted according to the use habit of the mirror image screen-throwing equipment of the user. For example, when the user is a child, in order to avoid eye fatigue of the child caused by excessive display proportion, the display proportion of the second picture can be reduced according to the use habit of the child so as to protect the eyesight of the child. With the adoption of the scheme, personalized display service can be provided for the user, and the user satisfaction is improved.
Optionally, in order to ensure accurate identification of the image area in the first screen, in this embodiment, after displaying the first screen sent by the mobile terminal, when an on-screen menu closing request is obtained, the on-screen menu of the mirror image screen-throwing device is closed.
In the scheme, after the mirror image screen throwing equipment receives a first picture sent by the mobile terminal, the mirror image screen throwing equipment displays the first picture on a Video layer, and meanwhile, the screen menu of the mirror image screen throwing equipment is displayed in the first picture. In order to avoid the simultaneous adjustment of the on-screen menus in the process of adjusting the pictures, the on-screen menus of the mirror image screen throwing equipment are closed when the on-screen menu closing request is obtained. Specifically, a request for closing an on-screen menu may be made by presetting a key of the remote control device and determining when the user presses the key. For example, it may be determined that the user makes a request for on-screen menu closure when the user presses an UP key. According to the scheme, when the screen menu closing request is obtained, the screen menu of the mirror image screen throwing equipment is closed, the screen menu which is not required to be adjusted is prevented from being grabbed while the second picture is grabbed, and the accuracy of image area identification is ensured.
Optionally, after the mirror image screen projection device obtains the mirror image screen projection request sent by the mobile terminal, the mirror image screen projection device receives and displays the first picture.
In the scheme, after the mobile terminal selects the mirror image screen projection mode, a user can select mirror image screen projection equipment which wants to project a screen in the same area network through the mobile terminal, and the first picture is sent to the mirror image screen projection equipment, so that the mirror image screen projection equipment receives and displays the first picture after obtaining a mirror image screen projection request sent by the mobile terminal.
In practical application, the mobile terminal device may be a mobile phone, and the mirror image screen-throwing device may be a television configured with a remote control device. When a user needs to throw a screen, connecting the mobile phone end and the television end to the same local area network, and selecting a screen mirror image mode and the television end which wants to throw the screen from the mobile phone end. And after the mobile phone end and the television end are connected, the first picture is sent to the television end and is displayed on a video layer of the television end. When the television receives a screen menu closing request sent by the remote control device, closing the screen menu on the television, and capturing an image area in a first picture as a second picture. When key indication information of the remote control device is received, the second picture is adjusted according to the indication information, so that the adjusted second picture is displayed in a full screen in the mirror image screen throwing equipment.
By adopting the method for mirror image screen projection provided by the embodiment of the invention, students can normally watch teaching contents of teachers on television during family class in epidemic situation, the eyesight of students is protected, and the damage of small screens such as mobile phones, tablet computers and the like to eyes of the students is reduced.
Fig. 2 is a schematic diagram of an apparatus for mirror image screen projection according to an embodiment of the present disclosure, and in conjunction with fig. 2, an apparatus for mirror image screen projection according to an embodiment of the present disclosure includes a display module 21, a grabbing module 22, and an adjusting module 23. The display module 21 is configured to receive and display a first picture sent by the mobile terminal, the first picture is a mirror image screen projection picture, the grabbing module is configured to grab a second picture in a display area of the first picture, the second picture is a picture of an image area in the display area, and the adjusting module 23 is configured to adjust the second picture so that the adjusted second picture is displayed in a full screen in the mirror image screen projection device.
By adopting the device for mirror image screen projection provided by the embodiment of the invention, the mirror image screen projection equipment is used for receiving the first picture of the mobile terminal, the mirror image first picture can be displayed in the mirror image screen projection equipment, and the picture of the image area is captured as the second picture in the display area of the first picture. And the second picture is adjusted so that the adjusted second picture is displayed in full screen in the mirror image screen throwing equipment. So that the user can watch the display information of the second picture on the mirror image screen throwing device in a full screen mode, and the mirror image screen throwing device is convenient for the user to use.
As shown in connection with fig. 3, an embodiment of the present disclosure provides an apparatus for mirrored screen casting, including a processor (processor) 100 and a memory (memory) 101. Optionally, the apparatus may further comprise a communication interface (Communication Interface) 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via the bus 103. The communication interface 102 may be used for information transfer. Processor 100 may invoke logic instructions in memory 101 to perform the method for mirroring a screen throw of the above-described embodiments.
Further, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 101 is a computer readable storage medium that can be used to store a software program, a computer executable program, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing by running program instructions/modules stored in the memory 101, i.e. implements the method for mirrored screening in the above-described embodiments.
The memory 101 may include a storage program area that may store an operating system, application programs required for at least one function, and a storage data area that may store data created according to the use of the terminal device, etc. Further, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
The embodiment of the disclosure provides a mirror image screen projection device, which comprises the device for mirror image screen projection.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method for mirroring a projection screen.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for mirroring a projection screen.
The computer readable storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. The storage medium may be a non-transitory storage medium, including a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or may be a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this disclosure is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in the present disclosure, the terms "comprises," "comprising," and/or variations thereof, mean that the recited features, integers, steps, operations, elements, and/or components are present, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising one..+ -." does not exclude the presence of additional identical elements in a process, method or apparatus comprising said element. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.