CN114327724A - Window interface correction method and device, terminal equipment and storage medium - Google Patents
Window interface correction method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN114327724A CN114327724A CN202111630739.7A CN202111630739A CN114327724A CN 114327724 A CN114327724 A CN 114327724A CN 202111630739 A CN202111630739 A CN 202111630739A CN 114327724 A CN114327724 A CN 114327724A
- Authority
- CN
- China
- Prior art keywords
- interface
- window interface
- correction
- window
- rotation
- 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.)
- Pending
Links
- 238000012937 correction Methods 0.000 title claims abstract description 138
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000012360 testing method Methods 0.000 claims description 26
- 238000004590 computer program Methods 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 13
- 230000000007 visual effect Effects 0.000 claims description 12
- 238000007667 floating Methods 0.000 claims description 9
- 238000012986 modification Methods 0.000 claims description 2
- 230000004048 modification Effects 0.000 claims description 2
- 239000000725 suspension Substances 0.000 claims description 2
- 230000008569 process Effects 0.000 description 10
- 230000003321 amplification Effects 0.000 description 8
- 238000003199 nucleic acid amplification method Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000007306 turnover Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The application is applicable to the technical field of window interface correction, and provides a window interface correction method, a window interface correction device, terminal equipment and a storage medium. In the embodiment of the application, a camera starting signal is obtained, and the application of the camera is determined to be started according to the camera starting signal; when the application is in a preset correction list, acquiring a window interface to be displayed by the application; and rotationally correcting the window interface according to the type of the correction list, and displaying the rotationally corrected window interface, thereby avoiding the problem of turning over the window interface displayed on the terminal equipment.
Description
Technical Field
The present application belongs to the field of window interface correction technologies, and in particular, to a window interface correction method, apparatus, terminal device, and storage medium.
Background
With the development of society, terminal devices such as mobile phones, electric energy, tablets and the like are more and more common in life of people, and the terminal devices can be applied to aspects of life of people, such as entertainment, social contact, work and the like, but due to the problems that the positions of cameras on different types of terminal devices are different, application interfaces on the terminal devices are not standard and the like, the window interfaces displayed on the terminal devices sometimes have a turning problem, for example, when two users carry out WeChat video call through the tablet and the mobile phone respectively, the cross screen interfaces displayed on the tablet are still displayed as cross screen interfaces on the mobile phone, and the viewing effect of the users is poor.
Disclosure of Invention
The embodiment of the application provides a method and a device for correcting a window interface, a terminal device and a storage medium, which can solve the problem of turning over of the window interface displayed on the terminal device.
In a first aspect, an embodiment of the present application provides a method for correcting a window interface, including:
acquiring a camera starting signal, and determining to start the application of the camera according to the camera starting signal;
when the application is in a preset correction list, acquiring a window interface to be displayed by the application;
and rotationally correcting the window interface according to the type of the correction list, and displaying the rotationally corrected window interface.
In one embodiment, the performing rotation correction on the window interface according to the type of the correction list includes:
when the correction list belongs to a first preset type, popping up a preset suspension window;
acquiring a rotation instruction issued by a user through the floating window;
and controlling the window interface to carry out rotation correction according to the rotation instruction.
In one embodiment, the performing rotation correction on the window interface according to the type of the correction list includes:
when the correction list belongs to a second preset type, acquiring display information of the application;
determining the rotation angle and/or the rotation direction of the window interface according to the display information;
and controlling the window interface to perform rotation correction according to the rotation angle and/or the rotation direction.
In one embodiment, after controlling the windowing interface to perform the rotation correction according to the rotation angle and/or the rotation direction, the method further includes:
when the display proportion of the window interface after the rotation correction is smaller than that in the display information, determining adjacent pixel points in the window interface;
determining a difference between the display scale of the window interface after the rotation correction and the display scale in the display information;
performing color value gradient processing on the adjacent pixel points according to the difference to obtain target pixel points;
and inserting the target pixel point into the middle of the adjacent pixel point to obtain an enlarged window interface, and displaying the enlarged window interface.
In one embodiment, after performing rotation correction on the window interface according to the type of the correction list, the method further includes:
carrying out face recognition on the user operating the application to determine the face direction;
and when the face direction does not accord with the direction of the window interface after the rotation correction, continuing the rotation correction of the window interface according to the face direction until the face direction accords with the direction of the window interface after the rotation correction.
In one embodiment, further comprising:
acquiring display information of a window of a receiving end;
carrying out rotation correction on the window interface according to the interface information;
and sending the window interface after the rotation correction to the receiving end so that the receiving end displays the window interface after the rotation correction.
In one embodiment, further comprising:
acquiring a test demand instruction, and carrying out window test on the application to be tested according to the test demand instruction to obtain a test result;
and updating the correction list according to the test result.
In a second aspect, an embodiment of the present application provides a viewing interface rectification apparatus, including:
the signal acquisition module is used for acquiring a camera starting signal and determining to start the application of the camera according to the camera starting signal;
the interface acquisition module is used for acquiring a window interface to be displayed by the application when the application is in a preset correction list;
and the rotation correction module is used for performing rotation correction on the window interface according to the type of the correction list and displaying the window interface after the rotation correction.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements any of the steps of the window interface rectification method when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above methods for correcting a window interface.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on a terminal device, causes the terminal device to execute any one of the methods for windows interface rectification in the first aspect.
In the embodiment of the application, a camera starting signal is acquired, so that the application of the camera is determined to be started according to the camera starting signal, when the application is in a preset correction list, it is indicated that the window interface of the application has a turning problem, and then the window interface to be displayed by the application is acquired, so that the window interface is conveniently rotated and corrected according to the type of the correction list, and the window interface after the rotation and correction is displayed, thereby avoiding the turning problem of the window interface displayed on the terminal equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a first flowchart illustrating a method for correcting a visual interface according to an embodiment of the present disclosure;
FIG. 2 is a second flowchart illustrating a method for correcting a visual interface according to an embodiment of the present disclosure;
FIG. 3 is a third flowchart illustrating a method for correcting a Windows interface according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a Windows interface orthotic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Fig. 1 is a schematic flowchart illustrating a flowchart of a window interface correction method according to an embodiment of the present application, where an execution subject of the method may be a terminal device, and as shown in fig. 1, the window interface correction method may include the following steps:
and S101, acquiring a camera starting signal, and determining to start the application of the camera according to the camera starting signal.
In this embodiment, a terminal device obtains a camera start signal generated by a user operating an application, and when some applications use a camera scene, a window interface displayed on a screen of the terminal device has a turning problem, for example, the interface is turned by 90 °, or the current terminal device is in a horizontal screen state but the window interface is in a vertical screen state, so that user experience is not good.
And S102, when the application is in a preset correction list, acquiring a window interface to be displayed by the application.
In this embodiment, the terminal device determines whether the application is in the correction list through the background storage module or the correction list acquired by the background server connected to the terminal device, where the correction list is an application for which a window interface needs to be rotationally corrected, and the applications in the correction list can be stored in a preset type respectively, so that corresponding processing can be performed quickly when the application faces the preset type. Upon determining that the application is in the preset correction list, a system framework layer in the terminal device may transmit a flag to inform other modules in the terminal device of the result. The terminal device may update the correction list according to the compatibility test of the application, the user feedback addition list, and the like, and the correction list may be updated when the terminal device is powered on, so as to be updated to a latest list, and the list may further include a correction compatible scheme for the application.
Specifically, the window interface to be displayed includes, but is not limited to, byte stream data that may be locally transmitted by an application in the terminal device calling the camera server interface, and byte stream data that is displayed by pushing by the application. The method comprises the steps that a plurality of pipelines exist for obtaining byte stream data corresponding to a window interface, the terminal equipment can intercept byte stream data transmitted by application through a monitoring pipeline, and the byte stream data can be in a YUV format.
And S103, rotationally correcting the window interface according to the type of the correction list, and displaying the rotationally corrected window interface.
In this embodiment, by determining the type of the correction list where the application is located, a rotation correction mode of the window interface can be obtained, and the rotation correction is performed on the window interface according to the rotation correction mode, so that the problem of window turning of the terminal device is solved, and the user experience is improved. And after the window interface is rotated and corrected, the window interface is sent to a display module in the terminal equipment, so that the display module is output to a screen for displaying.
In one embodiment, when an abnormal problem occurs when the terminal device processes the window interface of the application, such as a stuck problem, a black screen problem and the like, the terminal device can cancel the turnover correction processing of the window interface through switch control.
In one embodiment, as shown in fig. 2, step S103 may include:
step S201, when the correction list belongs to a first preset type, popping up a preset floating window.
In this embodiment, the first preset type may be a type in which the turning frequency is smaller than the preset frequency, that is, the application of this type does not often have a window turning problem, and turning information such as a turning angle and a turning direction is irregular, so when it is determined that the correction list where the application is located belongs to the first preset type, a preset floating window may be popped up, so that a user may operate the floating window.
And S202, acquiring a rotation instruction issued by a user through the floating window.
In this embodiment, the rotation command includes, but is not limited to, a rotation angle of the window, a rotation direction of the window, and the like.
And step S203, controlling the window interface to perform rotation correction according to the rotation instruction.
In this embodiment, the display direction of the window interface is adjusted by suspending the window, so as to prompt the user to perform corresponding control, so that the window interface after rotation correction better meets the user requirements.
In one embodiment, as shown in fig. 3, step S103 may include:
and S301, when the correction list belongs to a second preset type, acquiring display information of the application.
In this embodiment, the first preset type may be a type in which the turnover frequency is greater than the preset frequency, that is, the application of the type is turned over according to a certain rule according to the turnover information such as the turnover angle and the turnover direction, so that when it is determined that the correction list where the application is located belongs to the second preset type, the display information of the application may be directly obtained, so as to automatically turn over and correct the window interface of the application. The information related to the display screen of the display information application includes, for example, a display angle of the screen, a display scale of the screen, a resolution size of the screen, and the like.
Step S302, determining the rotation angle and/or the rotation direction of the window interface according to the display information;
in this embodiment, the terminal device may determine the rotation angle and/or the rotation direction to be corrected according to the display angle of the display interface and the angle of the window interface, for example, rotate 90 ° left, rotate 90 ° right, rotate 180 ° left, rotate 270 ° right, and rotate 270 ° right.
And step S303, controlling the window interface to perform rotation correction according to the rotation angle and/or the rotation direction.
In this embodiment, the byte stream data of the window interface may be presented in the form of a two-dimensional matrix array, and the two-dimensional matrix array may be subjected to rotation correction processing according to rotation parameters through the acquired rotation parameters such as the rotation angle and the rotation direction, so as to implement rotation correction on the window interface.
In one embodiment, in order to enhance the display effect, after step S303, the method may further include: when the display proportion of the window interface after the rotation correction is smaller than the display proportion in the display information, which indicates that the window interface to be displayed does not conform to the screen of the terminal device, the amplification treatment is required, specifically, the adjacent pixel points in the window interface, namely, all the two pixel points which are adjacent to each other in the window interface, are determined, the difference between the display proportion of the window interface after the rotation correction and the display proportion in the display information is determined, so that the size of the window interface to be amplified can be determined according to the difference, the amplification treatment is convenient to be carried out according to the size, namely, the color value gradual change treatment is carried out on the adjacent pixel points according to the difference in sequence according to the preset arrangement sequence, the target pixel point is obtained, the target pixel point is inserted into the adjacent pixel points to realize the amplification treatment of the window interface, and finally, the window interface after the amplification treatment is displayed, and the display effect is improved. The preset arrangement sequence can be from left to right and from top to bottom.
Exemplarily, if the pixel point a and the pixel point B adjacent to each other are processed currently, and it is determined that the pixel point needs to be amplified twice by calculating the difference, the mean value of the gray values of the pixel point a and the pixel point B is determined, and a target pixel point C, D is correspondingly generated, that is, the pixel point C is the mean value of the gray values of the pixel point a and the pixel point B, and the pixel point D is the mean value of the gray values of the pixel point a and the pixel point B, and the target pixel point C, D is inserted between the pixel point a and the pixel point B, so that the amplification processing of the pixel point a and the pixel point B is realized.
In one embodiment, in order to enhance the display effect, after step S303, the method may further include: when the resolution size of the window interface after rotation correction is smaller than the resolution size in the display information, it is indicated that the window interface to be displayed does not conform to the screen of the terminal device, and then amplification processing is required, specifically, the window interface can be amplified at that time by the aspect ratio of the display window.
In one embodiment, before step S303, the method may further include: and when the display proportion of the window interface after the rotation correction is larger than the display proportion in the display information, the window interface to be displayed is not consistent with the screen of the terminal equipment, and then the cutting processing is required, and the cutting can be specifically carried out according to the display proportion in the display information.
In one embodiment, after performing rotation correction on the visual interface according to the type of the correction list, to improve the accuracy of the correction of the visual interface, the method may further include: the user can perform face recognition on the user operating the application to determine the face direction, and particularly the face direction can be determined according to the direction of the nose. When the face direction does not accord with the direction of the window interface after the rotation correction, the current correction does not accord with the user requirement, and the rotation correction can be continuously carried out on the window interface according to the face direction until the face direction accords with the direction of the window interface after the rotation correction.
In one embodiment, OCR techniques may also be utilized to assist in the rollover correction process of the window interface.
In one embodiment, the method may further include: acquiring display information of a window of a receiving end; performing rotation correction on the video interface according to the interface information; and sending the window interface after the rotation correction to a receiving end so that the receiving end displays the window interface after the rotation correction. The display information includes identity information of the receiving end device, display angle data, and the like.
In one embodiment, the method may further include: acquiring a test demand instruction, and carrying out window test on the application to be tested according to the test demand instruction to obtain a test result; and updating the correction list according to the test result. The device to be tested comprises newly produced applications to be put on shelves and updated applications; the test result comprises that the test is passed and the test is not passed.
In an embodiment, if the test result is that the test fails, the terminal device may locate the problem of the application to be tested, such as the frequency division rate adaptation problem, the compatibility problem, the application problem, and the like, and may feed back the located problem, so that the relevant staff performs corresponding processing.
In one embodiment, a node where a camera is currently located may be monitored, and a window interface of an application that starts the camera may be turned and corrected according to the node where the camera is currently located, for example, if two applications exist in the same data transmission pipeline, a first application only needs to handle a window interface rotation problem during preview, and a second application needs to handle a window interface rotation problem during preview and photographing, the camera may be monitored to determine the node where the camera is located, and when the nodes meet, the applied window interface may be turned and corrected.
In the embodiment of the application, a camera starting signal is acquired, so that the application of the camera is determined to be started according to the camera starting signal, when the application is in a preset correction list, it is indicated that the window interface of the application has a turning problem, and then the window interface to be displayed by the application is acquired, so that the window interface is conveniently rotated and corrected according to the type of the correction list, and the window interface after the rotation and correction is displayed, thereby avoiding the turning problem of the window interface displayed on the terminal equipment.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 4 is a schematic structural diagram of an apparatus for correcting an interface of a window according to an embodiment of the present disclosure, and as shown in fig. 4, the apparatus for correcting an interface of a window may include:
the signal acquiring module 401 is configured to acquire a camera start signal, and determine to start an application of the camera according to the camera start signal.
An interface obtaining module 402, configured to obtain a window interface to be displayed by an application when the application is in a preset correction list.
And a rotation correction module 403, configured to perform rotation correction on the window interface according to the type of the correction list, and display the window interface after the rotation correction.
In one embodiment, the above-mentioned rotation correction module 403 may include:
and the floating window popping unit is used for popping up a preset floating window when the correction list belongs to a first preset type.
And the instruction acquisition unit is used for acquiring a rotation instruction given by a user through the floating window.
And the first rotation correction unit is used for controlling the window interface to carry out rotation correction according to the rotation instruction.
In one embodiment, the above-mentioned rotation correction module 403 may further include:
and the information acquisition unit is used for acquiring the display information of the application when the correction list belongs to a second preset type.
And the information determining unit is used for determining the rotation angle and/or the rotation direction of the window interface according to the display information.
And the second rotation correction unit is used for controlling the window interface to perform rotation correction according to the rotation angle and/or the rotation direction.
In one embodiment, the viewing interface rectification apparatus may further include:
and the pixel point determining module is used for determining adjacent pixel points in the window interface when the display proportion of the window interface after the rotation correction is smaller than that in the display information.
And the difference determining module is used for determining the difference between the display scale of the window interface after the rotation correction and the display scale in the display information.
And the processing module is used for carrying out color value gradual change processing on the adjacent pixel points according to the difference quantity to obtain the target pixel points.
And the first display module is used for inserting the target pixel point into the middle of the adjacent pixel point to obtain the window interface after the amplification treatment and displaying the window interface after the amplification treatment.
In one embodiment, the viewing interface rectification apparatus may further include:
and the direction determining module is used for carrying out face recognition on the user operating the application and determining the face direction.
And the direction judgment module is used for continuously carrying out rotation correction on the window interface according to the face direction when the face direction does not accord with the direction of the window interface after the rotation correction until the face direction accords with the direction of the window interface after the rotation correction.
In one embodiment, the viewing interface rectification apparatus may further include:
and the information acquisition module is used for acquiring the display information of the window of the receiving end.
And the rotating module is used for performing rotating correction on the video interface according to the interface information.
And the second display module is used for sending the window interface after the rotation correction to the receiving end so that the receiving end can display the window interface after the rotation correction.
In one embodiment, the viewing interface rectification apparatus may further include:
and the instruction acquisition module is used for acquiring the test requirement instruction and carrying out window test on the application to be tested according to the test requirement instruction to obtain a test result.
And the updating module is used for updating the correction list according to the test result.
In the embodiment of the application, a camera starting signal is acquired, so that the application of the camera is determined to be started according to the camera starting signal, when the application is in a preset correction list, it is indicated that the window interface of the application has a turning problem, and then the window interface to be displayed by the application is acquired, so that the window interface is conveniently rotated and corrected according to the type of the correction list, and the window interface after the rotation and correction is displayed, thereby avoiding the turning problem of the window interface displayed on the terminal equipment.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the module described above may refer to corresponding processes in the foregoing system embodiments and method embodiments, and are not described herein again.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application. For convenience of explanation, only portions related to the embodiments of the present application are shown.
As shown in fig. 5, the terminal device 5 of this embodiment includes: at least one processor 500 (only one shown in fig. 5), a memory 501 coupled to the processor 500, and a computer program 502, such as a windows correction program, stored in the memory 501 and executable on the at least one processor 500. The processor 500 executes the computer program 502 to implement the steps of the above-described embodiments of the window interface correction method, such as the steps S101 to S103 shown in fig. 1. Alternatively, the processor 500 executes the computer program 502 to implement the functions of the modules in the device embodiments, for example, the modules 401 to 403 shown in fig. 4.
Illustratively, the computer program 502 may be divided into one or more modules, which are stored in the memory 501 and executed by the processor 500 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 502 in the terminal device 5. For example, the computer program 502 may be divided into a signal acquisition module 401, an interface acquisition module 402, and a rotation correction module 403, and the specific functions of each module are as follows:
a signal obtaining module 401, configured to obtain a camera start signal, and determine to start an application of the camera according to the camera start signal;
an interface obtaining module 402, configured to obtain a window interface to be displayed by an application when the application is in a preset correction list;
and a rotation correction module 403, configured to perform rotation correction on the window interface according to the type of the correction list, and display the window interface after the rotation correction.
The terminal device 5 may include, but is not limited to, a processor 500 and a memory 501. It will be understood by those skilled in the art that fig. 5 is only an example of the terminal device 5, and does not constitute a limitation to the terminal device 5, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, a bus, etc.
The Processor 500 may be a Central Processing Unit (CPU), and the Processor 500 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 501 may be an internal storage unit of the terminal device 5 in some embodiments, for example, a hard disk or a memory of the terminal device 5. In other embodiments, the memory 501 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 501 may include both an internal storage unit and an external storage device of the terminal device 5. The memory 501 is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of the computer programs. The above-mentioned memory 501 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary 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 implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the above modules or units is only one logical function division, and there may be other division manners in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A method for correcting a window interface, comprising:
acquiring a camera starting signal, and determining to start the application of the camera according to the camera starting signal;
when the application is in a preset correction list, acquiring a window interface to be displayed by the application;
and rotationally correcting the window interface according to the type of the correction list, and displaying the rotationally corrected window interface.
2. The method for modifying a visual interface of claim 1, wherein said rotationally modifying the visual interface based on the type of the modified list comprises:
when the correction list belongs to a first preset type, popping up a preset suspension window;
acquiring a rotation instruction issued by a user through the floating window;
and controlling the window interface to carry out rotation correction according to the rotation instruction.
3. The method for modifying a visual interface of claim 1, wherein said rotationally modifying the visual interface based on the type of the modified list comprises:
when the correction list belongs to a second preset type, acquiring display information of the application;
determining the rotation angle and/or the rotation direction of the window interface according to the display information;
and controlling the window interface to carry out rotation correction according to the rotation angle and/or the rotation direction.
4. The visual interface correcting method of claim 3, further comprising, after controlling the visual interface to perform the rotational correction according to the rotation angle and/or the rotation direction:
when the display proportion of the window interface after the rotation correction is smaller than that in the display information, determining adjacent pixel points in the window interface;
determining a difference between the display scale of the window interface after the rotation correction and the display scale in the display information;
performing color value gradient processing on the adjacent pixel points according to the difference to obtain target pixel points;
and inserting the target pixel point into the middle of the adjacent pixel points to obtain an enlarged window interface, and displaying the enlarged window interface.
5. The method for modifying a visual interface of claim 1, further comprising, after rotationally modifying the visual interface based on the type of the modification list:
carrying out face recognition on the user operating the application to determine the face direction;
and when the face direction does not accord with the direction of the window interface after the rotation correction, continuing the rotation correction of the window interface according to the face direction until the face direction accords with the direction of the window interface after the rotation correction.
6. The window interface corrective method of claim 1, further comprising:
acquiring display information of a window of a receiving end;
carrying out rotation correction on the window interface according to the interface information;
and sending the window interface after the rotation correction to the receiving end so that the receiving end displays the window interface after the rotation correction.
7. The window interface corrective method of claim 1, further comprising:
acquiring a test demand instruction, and carrying out window test on an application to be tested according to the test demand instruction to obtain a test result;
and updating the correction list according to the test result.
8. A viewing interface orthotic device, comprising:
the signal acquisition module is used for acquiring a camera starting signal and determining to start the application of the camera according to the camera starting signal;
the interface acquisition module is used for acquiring a window interface to be displayed by the application when the application is in a preset correction list;
and the rotation correction module is used for performing rotation correction on the window interface according to the type of the correction list and displaying the window interface after the rotation correction.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a method for windows interface correction according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of a method for Windows interface rectification as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111630739.7A CN114327724A (en) | 2021-12-28 | 2021-12-28 | Window interface correction method and device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111630739.7A CN114327724A (en) | 2021-12-28 | 2021-12-28 | Window interface correction method and device, terminal equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114327724A true CN114327724A (en) | 2022-04-12 |
Family
ID=81014722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111630739.7A Pending CN114327724A (en) | 2021-12-28 | 2021-12-28 | Window interface correction method and device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114327724A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254715A (en) * | 2018-08-31 | 2019-01-22 | 努比亚技术有限公司 | Screen display direction control method, device, mobile terminal and readable storage medium storing program for executing |
CN112130742A (en) * | 2019-06-25 | 2020-12-25 | 华为技术有限公司 | Full screen display method and device of mobile terminal |
-
2021
- 2021-12-28 CN CN202111630739.7A patent/CN114327724A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254715A (en) * | 2018-08-31 | 2019-01-22 | 努比亚技术有限公司 | Screen display direction control method, device, mobile terminal and readable storage medium storing program for executing |
CN112130742A (en) * | 2019-06-25 | 2020-12-25 | 华为技术有限公司 | Full screen display method and device of mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10958850B2 (en) | Electronic device and method for capturing image by using display | |
CN110264935B (en) | Display driving method, display driving integrated circuit and electronic device | |
EP3073379B1 (en) | Firmware recovery method, device and terminal | |
CN104869305B (en) | Method and apparatus for processing image data | |
CN110648296B (en) | Pupil color correction method, correction device, terminal device and storage medium | |
EP3822758A1 (en) | Method and apparatus for setting background of ui control | |
US20100033502A1 (en) | Image processing apparatus for superimposing windows displaying video data having different frame rates | |
CN110121084B (en) | Method, device and system for switching ports | |
GB2536253A (en) | System for connecting external displays to a mobile device | |
US12112400B2 (en) | Page drawing control method, apparatus, and device | |
EP3454241B1 (en) | Method for collecting facial information and related devices | |
CN111710315B (en) | Image display method, image display device, storage medium and electronic equipment | |
CN114327724A (en) | Window interface correction method and device, terminal equipment and storage medium | |
CN115576470A (en) | Image processing method and apparatus, augmented reality system, and medium | |
CN115002372A (en) | Method and device for displaying drawing software in television | |
CN115904181A (en) | Window management method and device | |
CN114385096B (en) | Display control method, device, terminal and storage medium | |
CN107315970B (en) | Sensitive data interaction method and device | |
CN114697555A (en) | Image processing method, device, equipment and storage medium | |
CN110766028B (en) | Pixel type determination method and device | |
CN110620935B (en) | Image processing method and device | |
CN109753303A (en) | viewing angle compensation method, device and equipment | |
CN112235231B (en) | Method, device and storage medium for determining forbidden IP address of network accelerator | |
CN117608736A (en) | Special effect processing method and device, electronic equipment and storage medium | |
CN113467743A (en) | Method and device for automatically detecting and configuring single channel and double channels of display screen |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230904 Address after: 523860 No. 168 Dongmen Middle Road, Xiaobian Community, Chang'an Town, Dongguan City, Guangdong Province Applicant after: Guangdong GENIUS Technology Co., Ltd. Address before: 523000 east side of the 15th floor, 168 dongmenzhong Road, Xiaobian community, Chang'an Town, Dongguan City, Guangdong Province Applicant before: GUANGDONG AIMENG ELECTRONIC TECHNOLOGY CO.,LTD. |
|
TA01 | Transfer of patent application right |