A window interface correction method, device, terminal equipment and storage medium
By obtaining the camera startup signal and performing rotation correction on the window interface according to the preset correction list type, the problem of window interface flipping on the terminal device is solved and the user experience is improved.
Patent Information
- Application Number
- CN202111630739.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2041-12-28
AI Technical Summary
There is a problem with flipping the window interface displayed on the terminal device, which leads to poor viewing results for users.
By obtaining the camera startup signal, determine the application of the camera, and use the preset correction list type to treat the displayed window interface to make a rotating correction to ensure that the window interface is displayed correctly.
Effectively avoid the problem of flipping the window interface on the terminal device, and improve the user's viewing experience.
Smart Images

Figure CN114327724B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of window interface correction, and in particular, relates to a window interface correction method, device, terminal equipment and storage medium. Background Art
[0002] With the development of society, mobile phones, batteries, tablets and other terminal devices are becoming more and more common in people's lives. These terminal devices can be applied to all aspects of people's lives, such as entertainment, social interaction, work, etc. However, due to the different camera positions on different models of terminal devices and the non-standard application interface calls on terminal devices, the window interface displayed on the terminal device sometimes has a flipping problem. For example, when two users make a WeChat video call through a tablet and a mobile phone respectively, the horizontal screen interface displayed on the tablet is still displayed as a horizontal screen interface on the mobile phone, resulting in a poor viewing effect for users. Summary of the invention
[0003] The embodiments of the present application provide a window interface correction method, apparatus, terminal device and storage medium, which can solve the flipping problem of the window interface displayed on the terminal device.
[0004] In a first aspect, an embodiment of the present application provides a window interface correction method, comprising:
[0005] Obtain a camera startup signal, and determine an application to start the camera according to the camera startup signal;
[0006] When the application is in the preset correction list, obtaining a window interface to be displayed for the application;
[0007] The window interface is rotated and corrected according to the type of the correction list, and the window interface after the rotation correction is displayed.
[0008] In one embodiment, the rotation correction of the window interface according to the type of the correction list includes:
[0009] When the correction list belongs to the first preset type, a preset floating window pops up;
[0010] Obtaining the rotation command issued by the user through the above floating window;
[0011] The window interface is controlled to perform rotation correction according to the rotation instruction.
[0012] In one embodiment, the rotation correction of the window interface according to the type of the correction list includes:
[0013] When the correction list belongs to the second preset type, obtaining display information of the application;
[0014] Determine the rotation angle and / or rotation direction of the window interface according to the display information;
[0015] The window interface is controlled to perform rotation correction according to the rotation angle and / or rotation direction.
[0016] In one embodiment, after controlling the window interface to perform rotation correction according to the rotation angle and / or rotation direction, the method further includes:
[0017] When the display ratio of the window interface after rotation correction is smaller than the display ratio in the display information, determining adjacent pixel points in the window interface;
[0018] Determine the difference between the display ratio of the window interface after the rotation correction and the display ratio in the display information;
[0019] Performing color value gradient processing on the adjacent pixel points according to the difference to obtain the target pixel point;
[0020] The target pixel point is inserted between the adjacent pixel points to obtain an enlarged window interface, and the enlarged window interface is displayed.
[0021] In one embodiment, after the window interface is rotated and corrected according to the type of the correction list, the method further includes:
[0022] Performing facial recognition on the user operating the above application to determine the direction of the face;
[0023] When the face direction does not conform to the direction of the window interface after the rotation correction, the window interface continues to be rotationally corrected according to the face direction until the face direction conforms to the direction of the window interface after the rotation correction.
[0024] In one embodiment, it further includes:
[0025] Get the display information of the receiving end window;
[0026] Performing rotation correction on the above window interface according to the above interface information;
[0027] The rotation-corrected window interface is sent to the receiving end, so that the receiving end displays the rotation-corrected window interface.
[0028] In one embodiment, it further includes:
[0029] Obtaining a test requirement instruction, performing a window test on the application to be tested according to the test requirement instruction, and obtaining a test result;
[0030] The above correction list is updated based on the above test results.
[0031] In a second aspect, an embodiment of the present application provides a window interface correction device, comprising:
[0032] A signal acquisition module, used to acquire a camera start signal, and determine an application to start the camera according to the camera start signal;
[0033] An interface acquisition module, used for acquiring a window interface to be displayed for the application when the application is in a preset correction list;
[0034] The rotation correction module is used to perform rotation correction on the above window interface according to the type of the above correction list, and display the window interface after rotation correction.
[0035] 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, wherein the processor implements the steps of any one of the above-mentioned window interface correction methods when executing the computer program.
[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned window interface correction methods are implemented.
[0037] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes any one of the window interface correction methods in the first aspect.
[0038] In the embodiment of the present application, a camera start signal is obtained to determine the application that starts the camera according to the above camera start signal. When the above application is in a preset correction list, it means that there is a flipping problem in the window interface of the application. Then, the window interface to be displayed by the above application is obtained, so that the above window interface can be rotated and corrected according to the type of the above correction list, and the rotated and corrected window interface is displayed, thereby avoiding the flipping problem of the window interface displayed on the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 This is a first flow chart of the window interface correction method provided in the embodiment of the present application;
[0041] Figure 2 This is a second flow chart of the window interface correction method provided in the embodiment of the present application;
[0042] Figure 3 This is a third flow chart of the window interface correction method provided in the embodiment of the present application;
[0043] Figure 4 is a structural schematic diagram of a window interface correction device provided in an embodiment of the present application;
[0044] Figure 5 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0046] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0047] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0048] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0049] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0050] Figure 1FIG. 1 is a flow chart of a window interface correction method in an embodiment of the present application. The execution subject of the method may be a terminal device, such as Figure 1 As shown, the above window interface correction method may include the following steps:
[0051] Step S101: Obtain a camera activation signal, and determine an application to activate the camera according to the camera activation signal.
[0052] In this embodiment, the terminal device obtains a camera start signal generated by a user-operated application. When some applications use the camera scene, the window interface displayed on the terminal device screen has a flipping problem, for example, the interface is flipped 90°, or the current terminal device is in a landscape state but the window interface is in a portrait state, resulting in a poor user experience. The flipping problem may be caused by a different camera position or shooting angle of another terminal device interacting with the terminal device, or by an irregular interface call of the application itself. Therefore, the terminal device determines whether the application has a video flipping problem by determining the application that starts the camera, so as to accurately locate the correction method for the window interface of the current application.
[0053] Step S102: When the application is in the preset correction list, obtain the window interface to be displayed by the application.
[0054] In this embodiment, the terminal device determines whether the application is in the correction list through the correction list obtained by the background storage module or the background server connected to the terminal device. The correction list is the application that needs to be rotated and corrected in the window interface. The applications in the correction list can be stored separately in preset types, so that when faced with applications of preset types, corresponding processing can be quickly made. When it is determined that the application is in the preset correction list, the system framework layer in the terminal device can transmit a flag to inform other modules in the terminal device of the result. Among them, the terminal device can update the above correction list according to the compatibility test of the application, the user feedback and the addition of the list. The correction list can be updated when the terminal device is turned on, so as to be updated to the latest list. The list can also include a correction compatibility plan for the application.
[0055] Specifically, the window interface to be displayed includes but is not limited to byte stream data that can be transmitted locally by the application in the terminal device calling the camera server interface, and byte stream data pushed and displayed by the application. There are multiple pipelines for obtaining the byte stream data corresponding to the window interface, and the terminal device can intercept the byte stream data transmitted by the application through the monitoring pipeline, and the byte stream data can be in YUV format.
[0056] Step S103: Rotate and correct the window interface according to the type of the correction list, and display the rotated and corrected window interface.
[0057] In this embodiment, by determining the type of the correction list in which the application is located, the rotation correction method of the window interface can be obtained, and the window interface is rotated and corrected according to the rotation correction method, thereby solving the window flipping problem of the terminal device and improving the user experience. After the window interface is rotated and corrected, it is sent to the display module in the terminal device so that the display module outputs it to the screen for display.
[0058] In one embodiment, when an abnormal problem occurs when a terminal device processes a window interface of an application, such as freezing, a black screen, or other problems, the terminal device can cancel the flip correction processing of the window interface through a switch control.
[0059] In one embodiment, Figure 2 As shown, step S103 may include:
[0060] Step S201: When the correction list belongs to the first preset type, a preset floating window pops up.
[0061] In this embodiment, the above-mentioned first preset type can be a type with a flipping frequency less than a preset frequency, that is, applications of this type do not often have window flipping problems, and flipping information such as flipping angle and flipping direction are irregular. Therefore, when it is determined that the correction list of the application belongs to the first preset type, a preset floating window can be popped up to facilitate the user to operate the floating window.
[0062] Step S202: Obtain a rotation instruction issued by the user through the floating window.
[0063] In this embodiment, the rotation instruction includes but is not limited to the rotation angle of the window, the rotation direction of the window, etc.
[0064] Step S203: Control the window interface to perform rotation correction according to the rotation instruction.
[0065] In this embodiment, the display direction of the window interface is adjusted by means of a floating window, thereby prompting the user to perform corresponding control, so that the window interface after rotation correction better meets the user's needs.
[0066] In one embodiment, Figure 3 As shown, step S103 may include:
[0067] Step S301: When the correction list belongs to the second preset type, the display information of the application is obtained.
[0068] In this embodiment, the first preset type may be a type with a flipping frequency greater than a preset frequency, that is, the application of this type flips according to a certain rule based on flipping information such as a flipping angle and a flipping direction, so when it is determined that the correction list of the application belongs to the second preset type, the display information of the application can be directly obtained to automatically perform flip correction on the window interface of the application. The display information application may include information related to the display screen, such as the display angle of the screen, the display ratio of the screen, the resolution size of the screen, etc.
[0069] Step S302: determining a rotation angle and / or rotation direction of the window interface according to the display information;
[0070] In this embodiment, the terminal device can determine the rotation angle and / or rotation direction to be corrected based on the display angle of the display interface and the angle of the window interface, for example, rotate 90° to the left, rotate 90° to the right, rotate 180°, rotate 270° to the left, and rotate 270° to the right.
[0071] Step S303: Control the window interface to perform rotation correction according to the rotation angle and / or rotation direction.
[0072] In this embodiment, the byte stream data of the above-mentioned window interface can be presented in the form of a two-dimensional matrix array, and by obtaining rotation parameters such as rotation angle and rotation direction, the two-dimensional matrix array can be rotationally corrected according to the rotation parameters, thereby realizing rotation correction of the window interface.
[0073] In one embodiment, in order to improve the display effect, after step S303, it may also include: when the display ratio of the window interface after rotation correction is less than the display ratio in the display information, it means that the window interface to be displayed does not match the screen of the terminal device, and it needs to be enlarged. Specifically, it can be determined by determining the adjacent pixels in the window interface, that is, all two adjacent pixels in the window interface, and determining the difference between the display ratio of the window interface after rotation correction and the display ratio in the display information, so that the size of the window interface to be enlarged can be determined according to the difference, so as to facilitate the enlargement according to the size, that is, according to the difference, the adjacent pixels are sequentially subjected to color value gradient processing in accordance with the preset arrangement order to obtain the target pixel, and the target pixel is inserted between the adjacent pixels to realize the enlargement of the window interface, and finally the enlarged window interface is displayed to improve the display effect. Among them, the above-mentioned preset arrangement order can be from left to right and from top to bottom.
[0074] Exemplarily, if adjacent pixel points A and pixel point B are currently being processed, and it is determined by calculating the difference that the pixel point needs to be enlarged to twice its original size, the mean grayscale value of pixel point A and pixel point B is determined, and the target pixel points C and D are generated accordingly, that is, pixel point C is the mean grayscale value of pixel point A and pixel point B, and pixel point D is the mean grayscale value of pixel point A and pixel point B. The target pixel points C and D are inserted between pixel point A and pixel point B to achieve the enlargement processing of pixel point A and pixel point B.
[0075] In one embodiment, in order to improve the display effect, after step S303, it may also include: when the resolution size of the window interface after rotation correction is smaller than the resolution size in the display information, it means that the window interface to be displayed does not match the screen of the terminal device, and it needs to be enlarged. Specifically, the window interface can be enlarged by enlarging the aspect ratio of the display window.
[0076] In one embodiment, before step S303, it may also include: when the display ratio of the window interface after rotation correction is greater than the display ratio in the display information, it means that the window interface to be displayed does not conform to the screen of the terminal device, and cropping is required, which can be specifically performed according to the display ratio in the display information.
[0077] In one embodiment, in order to improve the accuracy of the window interface correction, after the window interface is rotated and corrected according to the type of the correction list, it may also include: since the user operating the application is a user, the face recognition of the user operating the application may be performed to determine the face direction, and the face direction may be determined specifically according to the direction of the nose. When the face direction does not conform to the direction of the window interface after the rotation correction, it means that the current correction does not meet the user's needs, and the window interface may continue to be rotated and corrected according to the face direction until the face direction conforms to the direction of the window interface after the rotation correction.
[0078] In one embodiment, OCR technology may also be used to assist in the flip correction process of the window interface.
[0079] In one embodiment, the method may further include: obtaining display information of the receiving end window; performing rotation correction on the window interface according to the interface information; and sending the rotation-corrected window interface to the receiving end so that the receiving end displays the rotation-corrected window interface. The display information includes the identity information of the receiving end device, display angle data, etc.
[0080] In one embodiment, the method may further include: obtaining a test requirement instruction, performing a window test on the application to be tested according to the test requirement instruction, and obtaining a test result; and updating a correction list according to the test result. The above-mentioned device to be tested includes a newly produced application to be put on the shelf and an updated application; and the above-mentioned test result includes a test pass and a test fail.
[0081] In one embodiment, if the test result is that the test fails, the terminal device can locate problems with the above-mentioned application to be tested, such as frequency division adaptation problems, compatibility problems, problems with the application itself, etc., and can provide feedback on the located problems so that relevant staff can handle them accordingly.
[0082] In one embodiment, the node where the camera is currently located can be monitored, and the window interface of the application that starts the camera can be flipped and corrected according to the node. For example, if there are two applications in the same data transmission pipeline, the first application only needs to deal with the window interface rotation problem during preview, while the second application needs to deal with the window interface rotation problem during preview and photo taking. In this case, the camera is monitored to determine the node where the application corresponds to the camera. When the node is consistent, the window interface of the application is flipped and corrected.
[0083] In the embodiment of the present application, a camera start signal is obtained to determine the application that starts the camera according to the above camera start signal. When the above application is in a preset correction list, it means that there is a flipping problem in the window interface of the application. Then, the window interface to be displayed by the above application is obtained, so that the above window interface can be rotated and corrected according to the type of the above correction list, and the rotated and corrected window interface is displayed, thereby avoiding the flipping problem of the window interface displayed on the terminal device.
[0084] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0085] Corresponding to the window interface correction method described above, Figure 4 FIG. 1 is a schematic diagram of the structure of a window interface correction device according to an embodiment of the present application. Figure 4 As shown, the above-mentioned window interface correction device may include:
[0086] The signal acquisition module 401 is used to acquire a camera activation signal and determine an application to activate the camera according to the camera activation signal.
[0087] The interface acquisition module 402 is used to acquire the window interface to be displayed by the application when the application is in the preset correction list.
[0088] The rotation correction module 403 is used 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.
[0089] In one embodiment, the rotation correction module 403 may include:
[0090] The floating window pop-up unit is used to pop up a preset floating window when the correction list belongs to the first preset type.
[0091] The instruction acquisition unit is used to acquire the rotation instruction issued by the user through the floating window.
[0092] The first rotation correction unit is used to control the window interface to perform rotation correction according to the rotation instruction.
[0093] In one embodiment, the rotation correction module 403 may further include:
[0094] The information acquisition unit is used to acquire display information of the application when the correction list belongs to the second preset type.
[0095] The information determination unit is used to determine the rotation angle and / or rotation direction of the window interface according to the display information.
[0096] The second rotation correction unit is used to control the window interface to perform rotation correction according to the rotation angle and / or rotation direction.
[0097] In one embodiment, the above-mentioned window interface correction device may further include:
[0098] The pixel point determination module is used to determine adjacent pixel points in the window interface when the display ratio of the window interface after rotation correction is smaller than the display ratio in the display information.
[0099] The difference determination module is used to determine the difference between the display ratio of the window interface after rotation correction and the display ratio in the display information.
[0100] The processing module is used to perform color value gradient processing on adjacent pixel points according to the difference to obtain the target pixel point.
[0101] The first display module is used to insert the target pixel point between adjacent pixel points to obtain an enlarged window interface, and display the enlarged window interface.
[0102] In one embodiment, the above-mentioned window interface correction device may further include:
[0103] The direction determination module is used to perform face recognition on the user operating the application and determine the face direction.
[0104] The direction judgment module is used to continue to rotate and correct the window interface according to the direction of the face when the direction of the face does not conform to the direction of the window interface after rotation correction, until the direction of the face conforms to the direction of the window interface after rotation correction.
[0105] In one embodiment, the above-mentioned window interface correction device may further include:
[0106] The information acquisition module is used to obtain the display information of the receiving end window.
[0107] The rotation module is used to perform rotation correction on the window interface according to the interface information.
[0108] The second display module is used to send the rotation-corrected window interface to the receiving end, so that the receiving end displays the rotation-corrected window interface.
[0109] In one embodiment, the above-mentioned window interface correction device may further include:
[0110] The instruction acquisition module is used to obtain the test requirement instructions, perform window testing on the application to be tested according to the test requirement instructions, and obtain the test results.
[0111] The update module is used to update the correction list according to the test results.
[0112] In the embodiment of the present application, a camera start signal is obtained to determine the application that starts the camera according to the above camera start signal. When the above application is in a preset correction list, it means that there is a flipping problem in the window interface of the application. Then, the window interface to be displayed by the above application is obtained, so that the above window interface can be rotated and corrected according to the type of the above correction list, and the rotated and corrected window interface is displayed, thereby avoiding the flipping problem of the window interface displayed on the terminal device.
[0113] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned system embodiments and method embodiments, and will not be repeated here.
[0114] Figure 5 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0115] like Figure 5 As shown, the terminal device 5 of this embodiment includes: at least one processor 500 ( Figure 5 Only one is shown in the figure), a memory 501 connected to the processor 500, and a computer program 502 stored in the memory 501 and executable on the at least one processor 500, such as a window interface correction program. When the processor 500 executes the computer program 502, the steps in the above-mentioned window interface correction method embodiments are implemented, such as Figure 1 Alternatively, when the processor 500 executes the computer program 502, the functions of the modules in the above-mentioned device embodiments are realized, for example, Figure 4 Functions of modules 401 to 403 are shown.
[0116] Exemplarily, the computer program 502 may be divided into one or more modules, and the one or more modules 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 completing specific functions, and the instruction segments 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:
[0117] The signal acquisition module 401 is used to acquire a camera activation signal and determine an application to activate the camera according to the camera activation signal;
[0118] The interface acquisition module 402 is used to acquire the window interface to be displayed by the application when the application is in the preset correction list;
[0119] The rotation correction module 403 is used 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.
[0120] The terminal device 5 may include, but is not limited to, a processor 500 and a memory 501. Those skilled in the art will appreciate that Figure 5 It is only an example of the terminal device 5 and does not constitute a limitation on the terminal device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, buses, etc.
[0121] The processor 500 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0122] In some embodiments, the memory 501 may be an internal storage unit of the terminal device 5, such as a hard disk or 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 card, etc. equipped on the terminal device 5. Further, the memory 501 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 501 is used to store an operating system, an application program, a boot loader, data, and other programs, such as the program code of the computer program. The memory 501 may also be used to temporarily store data that has been output or is to be output.
[0123] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here. In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For the part that is not described or recorded in detail in a certain embodiment, refer to the relevant description of other embodiments.
[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0125] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0126] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0128] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A window interface correction method, characterized in that: include: Obtaining a camera startup signal, and determining an application to start the camera according to the camera startup signal; When the application is in the preset correction list, a window interface to be displayed by the application is obtained; specifically, the window interface to be displayed includes byte stream data transmitted to the local computer by the application calling the camera server interface; Rotate and correct the window interface according to the type of the correction list, and display the rotated and corrected window interface; The performing rotation correction on the window interface according to the type of the correction list includes: When the correction list belongs to the second preset type, obtaining display information of the application; Determining a rotation angle and / or a rotation direction of the window interface according to the display information; Controlling the window interface to perform rotation correction according to the rotation angle and / or rotation direction; The applications in the correction list are stored in preset types, respectively. The preset types include a first preset type and a second preset type. The first preset type is a type with a flip frequency less than a preset frequency, and the second preset type is a type with a flip frequency greater than a preset frequency. The method further comprises: Acquire display information of the receiving end window; wherein the display information includes identity information and display angle data of the receiving end device; Performing rotation correction on the window interface according to the display information; The rotation-corrected window interface is sent to the receiving end, so that the receiving end displays the rotation-corrected window interface.
2. The window interface correction method according to claim 1, characterized in that: The performing rotation correction on the window interface according to the type of the correction list includes: When the correction list belongs to the first preset type, a preset floating window pops up; Obtaining a rotation instruction issued by the user through the floating window; The window interface is controlled to perform rotation correction according to the rotation instruction.
3. The window interface correction method according to claim 1, characterized in that: After controlling the window interface to perform rotation correction according to the rotation angle and / or rotation direction, the method further includes: When the display ratio of the window interface after rotation correction is smaller than the display ratio in the display information, determining adjacent pixel points in the window interface; Determine the difference between the display ratio of the window interface after the rotation correction and the display ratio in the display information; Performing color value gradient processing on the adjacent pixel points according to the difference to obtain a target pixel point; The target pixel point is inserted between the adjacent pixel points to obtain an enlarged window interface, and the enlarged window interface is displayed.
4. The window interface correction method according to claim 1, characterized in that: After the window interface is rotated and corrected according to the type of the correction list, the method further includes: Performing facial recognition on a user operating the application to determine the direction of the face; When the face direction does not conform to the direction of the window interface after rotation correction, the window interface continues to be rotationally corrected according to the face direction until the face direction conforms to the direction of the window interface after rotation correction.
5. The window interface correction method according to claim 1, characterized in that: Also includes: Obtaining a test requirement instruction, performing a window test on the application to be tested according to the test requirement instruction, and obtaining a test result; The correction list is updated according to the test results.
6. A window interface correction device, characterized in that: include: A signal acquisition module, used to acquire a camera startup signal, and determine an application to start the camera according to the camera startup signal; An interface acquisition module, used for acquiring a window interface to be displayed by the application when the application is in a preset correction list; specifically, the window interface to be displayed includes byte stream data transmitted locally by the application calling a camera server interface; A rotation correction module, 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; The performing rotation correction on the window interface according to the type of the correction list includes: When the correction list belongs to the second preset type, obtaining display information of the application; Determining a rotation angle and / or a rotation direction of the window interface according to the display information; Controlling the window interface to perform rotation correction according to the rotation angle and / or rotation direction; The applications in the correction list are stored in preset types, respectively. The preset types include a first preset type and a second preset type. The first preset type is a type with a flip frequency less than a preset frequency, and the second preset type is a type with a flip frequency greater than a preset frequency. The device also includes: An information acquisition module, used to acquire display information of the receiving end window; wherein the display information includes identity information of the receiving end device and display angle data; A rotation module, used for performing rotation correction on the window interface according to the display information; The second display module is used to send the rotation-corrected window interface to the receiving end, so that the receiving end displays the rotation-corrected window interface.
7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of a window interface correction method as described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of a window interface correction method as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Screen display direction control method, device, mobile terminal, and readable storage medium
CN109254715A
Full-screen display method and equipment of mobile terminal
CN112130742A