Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Referring to Fig. 1, Fig. 1 is a kind of exemplary flow of user interface abnormality eliminating method provided by the embodiments of the present application
Figure.The user interface abnormality eliminating method is applied in terminal.As shown in Figure 1, the user interface abnormality eliminating method include with
Lower step S100~S130.
S100, the initial layout parameter for obtaining control, are shown in first for the control according to the initial layout parameter
In user interface.
In first user interface, multiple controls are provided with, multiple controls are joined according to corresponding initial layout
It counts and is shown in first user interface.Wherein, the initial layout parameter includes location parameter and dimensional parameters, described
Control determines the coordinate in first user interface according to location parameter, and the dimensional parameters are for determining the control
The size of part.For example, a plane right-angle coordinate, the origin of the plane right-angle coordinate are established in first user interface
In the upper left corner of first user interface, the horizontal axis of the plane right-angle coordinate is X-axis, and the longitudinal axis is Y-axis.For example, right
In button control, the location parameter that the button control is arranged is (100,200), and dimensional parameters are (400,300), then described
First user interface will show that a button control, first pixel in the button control upper left corner are sat in the flat square
The coordinate of mark system is (100,200), and the length of the button control is 400 pixels, and width is 300 pixels.
Referring to Fig. 3, Fig. 3 is a kind of signal stream for user interface abnormality eliminating method that another embodiment of the application provides
Cheng Tu.In this embodiment, before the step S100, the user interface abnormality eliminating method further includes following:
S100a, picture database is established, the picture database includes multiple user interface screenshots, each user
Interface screenshot is to carry out shot operation to the first user interface of one control of display and generate.
In embodiments of the present invention, it is shown in first user interface using image technique for obtaining the control
The layout parameter of any moment.Corresponding user is generated and each user interface to one control of display carries out shot operation
Interface screenshot, establishes picture database, and the picture database includes multiple described user interface screenshots.Wherein, user can create
The various sizes of control is shown in described according to each initial layout parameter by the initial layout parameter for building multiple groups
At the different location of one user interface, shot operation is carried out to each user interface and generates user interface screenshot.
S100b, parameter library is established, the parameter library includes multiple layout parameters, each layout parameter and the figure
The corresponding user interface screenshot is associated in sheet data library.
For the picture database, obtains the layout parameter of the control in each user interface screenshot and form ginseng
Number library.For example, the initial layout parameter for obtaining the multiple groups of user's creation, forms parameter library, and the picture database is each
User interface screenshot, by the way that the control is shown in the first user interface and is carried out according to each initial layout parameter
Shot operation and generate.
S100c, set of eigenvectors is established, described eigenvector collection includes multiple feature vectors, each described eigenvector
It is generated to carry out feature extraction to each user interface screenshot in the picture database according to default extracting rule.
Feature extraction is carried out according to default extracting rule to each user interface screenshot in the picture database, is generated
Corresponding feature vector, establishes set of eigenvectors, and described eigenvector collection includes multiple described eigenvectors.By obtaining user
The feature vector of interface screenshot, in order to carry out the calculating of image similarity.
S100d, mapping table is generated according to the parameter library and described eigenvector collection.
Described eigenvector collection includes multiple feature vectors, and each described eigenvector is according to the picture database
Each user interface screenshot carry out feature extraction and generate, the picture database includes multiple user interface screenshots, and every
The one user interface screenshot is that the control is shown in the first user interface according to each layout parameter of the parameter library
And carry out shot operation and generate, i.e., each layout parameter in the described parameter library and each user in the picture database
There are one-to-one relationships for each feature vector that interface screenshot and described eigenvector are concentrated, by generating mapping relations
Table records the mapping relations of each layout parameter of the parameter library and each feature vector of described eigenvector collection.
Referring to Fig. 6, Fig. 6 is a kind of signal stream for user interface abnormality eliminating method that the another embodiment of the application provides
Cheng Tu.In the implementation column, before the step S110, the user interface abnormality eliminating method includes:
S110a, second user interface is generated, the second user interface includes the first parameter input area, first ginseng
Number input area is used to input the default monitoring time for user.
The default monitoring time is used to set the monitoring cycle to control layout, in this embodiment, generates second and uses
Family interface, includes the first parameter input area in the second user interface, and first parameter input area is used for for user
Default monitoring time is inputted, default monitoring time is for example set as 1 minute, i.e., control layout will be supervised every one minute
It surveys to judge whether to be abnormal.
S110b, the default monitoring time is obtained.
Obtain the default monitoring time that user is inputted in first parameter input area.
If S110, reaching default monitoring time, the current layout parameter of the control is obtained as instantaneous layout parameter.
It is shown in the control of first user interface, because of the variation of bursty data, multiple controls are in the user interface
Layout the abnormal conditions such as dislocation, overlapping and overlapping can occur.In default monitoring time, the control is monitored,
And it obtains the control and is reaching the layout parameter of the default monitoring time point as instantaneous layout parameter.The instantaneous layout
Parameter is layout parameter of the control in current preset monitoring time point.
Referring to Fig. 2, Fig. 2 is a kind of signal stream for user interface abnormality eliminating method that the another embodiment of the application provides
Cheng Tu.In the implementation column, the step S110 includes:
If S111, reaching default monitoring time, screenshot is carried out to the first user interface for showing the control in the moment
It operates and generates the first screenshot.
For the ease of calculating the instantaneous layout parameter of the control using image technique, to reaching default monitoring time point,
Shot operation is carried out to first user interface for showing the control in default monitoring time point, generates the first screenshot.
S112, feature extraction is carried out to first screenshot according to default extracting rule and generates characteristics of objects vector, institute
Stating default extracting rule includes pre-set dimension extracting rule and predeterminated position extracting rule, and the characteristics of objects vector includes size
Feature vector and position feature vector.
According to default extracting rule to first screenshot carry out feature extraction operation, generate corresponding characteristics of objects to
Amount, the characteristics of objects vector is for uniquely indicating first screenshot.
S113, acquisition target feature vector is concentrated from preset feature vector according to the characteristics of objects vector.
The distance value for calculating each feature vector of the characteristics of objects vector and described eigenvector concentration, obtains wherein
Lowest distance value, using with feature vector corresponding to the lowest distance value as the target feature vector.
S114, obtained according to preset mapping table corresponding with target feature vector layout parameter using as
The instantaneous layout parameter of the control.
According to the mapping table, layout parameter corresponding with the target feature vector can be obtained, with the cloth
Instantaneous layout parameter of office's parameter as the control.
S120, judge whether the difference between the initial layout parameter of the control and instantaneous layout parameter is greater than default threshold
Value.
To acquired instantaneous layout parameter, it is calculated with initial layout parameter, for judging that the control exists
Whether the layout of the first user interface is abnormal.For example, for above-mentioned button control, in instantaneous layout parameter, position
Parameter is (200,400), and dimensional parameters are (400,300), carries out following difference and calculates:
According to above-mentioned calculation formula (1) and (2), it is known that, the location parameter of the control is changed, and the control
Dimensional parameters do not change.
Difference is made comparisons with preset threshold, the preset threshold includes predeterminated position threshold value and pre-set dimension threshold value.Example
Such as, following comparison rule is set:
If location parameter difference is greater than predeterminated position parameter threshold, and dimensional parameters difference is greater than pre-set dimension threshold value, depending on
It is greater than preset threshold for the difference;
If location parameter difference is greater than predeterminated position parameter threshold, and dimensional parameters difference is not more than pre-set dimension threshold value,
It is considered as the difference greater than preset threshold;
If location parameter difference is not more than predeterminated position parameter threshold, and dimensional parameters difference is greater than pre-set dimension threshold value,
It is considered as the difference greater than preset threshold;
If location parameter difference is not more than predeterminated position parameter threshold, and dimensional parameters difference is not more than pre-set dimension threshold
Value is considered as the difference no more than preset threshold.
Only have when location parameter difference and dimensional parameters difference are all not more than predeterminated position parameter threshold respectively and preset
When size threshold, just it is considered as the difference no more than preset threshold.And for other three kinds of situations, then it executes according to described initial
Layout parameter adjusts control in the layout of the first user interface, the control layout of the first user interface that also will be current restore to
Original state.
If S130, the difference are greater than preset threshold, the control is adjusted simultaneously according to the initial layout parameter
It is shown in first user interface.
For example, predeterminated position threshold value is set as 100, sets pre-set dimension threshold value as 10.According to the resulting difference of above-mentioned calculating
Value, wherein location parameter difference is greater than 100, and dimensional parameters difference is less than 10, i.e., the described difference is greater than preset threshold, then holds
Row is adjusted the control according to the initial layout parameter and is shown in first user interface.
Referring to Fig. 4, Fig. 4 is a kind of signal stream for user interface abnormality eliminating method that the application another embodiment provides
Cheng Tu.In an implementation column, the step S130 includes:
If S131, the difference are greater than preset threshold, current point in time is obtained, saves the current point in time when abnormal
Between memory block.
If the difference is greater than preset threshold, i.e. control is abnormal in the layout of the first user interface, obtains current
Time point, in order to which user knows the time point of generation user interface exception.The abnormal time memory block is in memory block
The one section of memory space opened up, for storing the temporal information acquired when monitoring control layout exception.
S132, shot operation is carried out to the first user interface described under current point in time and generates the second screenshot, save institute
The second screenshot is stated in abnormal screenshot memory block.
Shot operation is carried out in current point in time to first user interface, the second screenshot is generated, saves the first screenshot
In abnormal screenshot memory block.User may have access to the abnormal screenshot memory block and control layout occur in software running process to know
Abnormal situation.
S133, the acquisition current point in time exist in the storage location of the abnormal time memory block and second screenshot
The storage location of the exception screenshot memory block and generate storage location contingency table, save the storage location contingency table in association
Information storage area.
It is stored by the storage location and the second screenshot of memory block between obtaining current point in time when abnormal in abnormal screenshot
The storage location in area, and storage location contingency table is generated, the storage location contingency table is stored in related information memory block, with
The storage unit and the storage unit at time point associated with the second screenshot of the second screenshot of storage are accessed convenient for user.
S134, the control is adjusted according to the initial layout parameter and is shown in first user interface
In.
It to the control in the first current user interface, is adjusted according to initial layout parameter, restores described first and use
The layout at family interface is to original state.
Referring to Fig. 5, Fig. 5 is a kind of signal stream for user interface abnormality eliminating method that the application another embodiment provides
Cheng Tu.In an implementation column, after the step S134, the user interface abnormality eliminating method is further comprising the steps of:
S135, prompting message is generated to remind user, the prompting message includes the current point in time and institute
State the second screenshot.
When user interface exception occurs, user is reminded, in order to which user knows the situation of user interface exception,
Wherein, it is reminded to user and the prompting message of the transmission includes the current point in time and second screenshot.
Referring to Fig. 1, after the step S120, the user interface abnormality eliminating method is also in an implementation column
If including: the difference no more than preset threshold, if reaching default monitoring time described in returning, the current cloth of the control is obtained
The step of office's parameter is as instantaneous layout parameter, i.e. step S110.
When the difference is not more than preset threshold, i.e. return step S110, to realize that being periodically detected the control exists
The layout of first user interface.
The embodiment of the present application also provides a kind of user interface exception handling device, and the user interface exception handling device is used
In aforementioned any one user interface abnormality eliminating method of execution.Fig. 7 is referred to, Fig. 7 is a kind of use provided by the embodiments of the present application
The schematic block diagram of family interface exception handling device.As shown in fig. 7, the user interface exception handling device 200 includes first
Acquiring unit 210, second acquisition unit 220, judging unit 230 and adjustment unit 240.
First acquisition unit 210 will according to the initial layout parameter for the initial layout parameter for obtaining control
The control is shown in the first user interface.
Specifically, in first user interface, multiple controls are provided with, multiple controls are according to corresponding initial
Layout parameter and be shown in first user interface.Wherein, the initial layout parameter includes location parameter and size ginseng
Number, the control determines the coordinate in first user interface according to location parameter, and the dimensional parameters are for true
The size of the fixed control.For example, a plane right-angle coordinate, the plane rectangular coordinates are established in first user interface
For the origin of system in the upper left corner of first user interface, the horizontal axis of the plane right-angle coordinate is X-axis, and the longitudinal axis is Y-axis.
For example, for button control, the location parameter that the button control is arranged is (100,200), and dimensional parameters are (400,300),
A button control then will be shown in first user interface, and first pixel in the button control upper left corner is described flat
The coordinate of face rectangular coordinate system is (100,200), and the length of the button control is 400 pixels, and width is 300
Pixel.
Second acquisition unit 220, if obtaining the current layout parameter conduct of the control for reaching default monitoring time
Instantaneous layout parameter.
Specifically, it is shown in the control of first user interface, because of the variation of bursty data, multiple controls are in user
The abnormal conditions such as dislocation, overlapping and overlapping can occur for the layout in interface.In default monitoring time, the control is carried out
Monitoring, and the control is obtained in the instantaneous layout parameter for reaching the default monitoring time point.The instantaneous layout parameter is
For the control current preset monitoring time point layout parameter.The default monitoring time, can be set by user.
Judging unit 230, for judging that the difference between the initial layout parameter of the control and instantaneous layout parameter is
It is no to be greater than preset threshold.
Specifically, to acquired instantaneous layout parameter, it is calculated with initial layout parameter, and and preset threshold
It is compared, for judging whether the control is abnormal in the layout of the first user interface.Difference and preset threshold are made
Compare, the preset threshold includes predeterminated position threshold value and pre-set dimension threshold value.For example, following comparison rule is set:
If location parameter difference is greater than predeterminated position parameter threshold, and dimensional parameters difference is greater than pre-set dimension threshold value, depending on
It is greater than preset threshold for the difference;
If location parameter difference is greater than predeterminated position parameter threshold, and dimensional parameters difference is not more than pre-set dimension threshold value,
It is considered as the difference greater than preset threshold;
If location parameter difference is not more than predeterminated position parameter threshold, and dimensional parameters difference is greater than pre-set dimension threshold value,
It is considered as the difference greater than preset threshold;
If location parameter difference is not more than predeterminated position parameter threshold, and dimensional parameters difference is not more than pre-set dimension threshold
Value is considered as the difference no more than preset threshold.
Only have when location parameter difference and dimensional parameters difference are all not more than predeterminated position parameter threshold respectively and preset
When size threshold, just it is considered as the difference no more than preset threshold.
Adjustment unit 240, if being greater than preset threshold for the difference, according to the initial layout parameter to the control
It is adjusted and is shown in first user interface.
Specifically, it if the difference is greater than preset threshold, executes and control is adjusted first according to the initial layout parameter
The control layout of the layout of user interface, the first user interface that also will be current restores to original state.
Fig. 8 is referred to, Fig. 8 is a kind of the schematic of user interface exception handling device that another embodiment of the application provides
Block diagram.As shown in figure 8, the user interface exception handling device 200 includes first acquisition unit 210, second acquisition unit
220, judging unit 230 and adjustment unit 240, wherein the second acquisition unit 220 includes first screenshot unit 221, the
One feature extraction unit 222, third acquiring unit 223 and the 4th acquiring unit 224.For the first acquisition unit 210,
Second acquisition unit 220, computing unit 230 and adjustment unit 240, have been described in the above-described embodiments, no longer superfluous herein
It states.Below to first screenshot unit 221, fisrt feature extraction unit 222, third acquiring unit 223 and the 4th acquiring unit
224 are illustrated.
First screenshot unit 221, if for reaching default monitoring time, in this at present to the first use for showing the control
Family interface carries out shot operation and generates the first screenshot.
Specifically, for the ease of calculating the instantaneous layout parameter of the control using image technique, to reaching default monitoring
Time point carries out shot operation to first user interface in default monitoring time point, generates the first screenshot.
Fisrt feature extraction unit 222, for according to preset extracting rule to first screenshot carry out feature extraction and
Generate characteristics of objects vector.
Specifically, feature extraction operation is carried out to first screenshot, generates corresponding characteristics of objects vector, the object
Feature vector is for uniquely indicating first screenshot.
Third acquiring unit 223 obtains target for concentrating according to the characteristics of objects vector from preset feature vector
Feature vector.
Specifically, the distance value of each feature vector of the characteristics of objects vector and described eigenvector concentration is calculated,
Obtain wherein lowest distance value, using with feature vector corresponding to the lowest distance value as the target feature vector.
4th acquiring unit 224, it is corresponding with the target feature vector for being obtained according to preset mapping table
Layout parameter using the instantaneous layout parameter as the control.
Specifically, according to the mapping table, layout parameter corresponding with the target feature vector can be obtained, with
Instantaneous layout parameter of the layout parameter as the control.
Fig. 9 is referred to, Fig. 9 is a kind of the schematic of user interface exception handling device that another embodiment of the application provides
Block diagram.As shown in figure 9, the user interface exception handling device 200 includes that picture database establishes unit 210a, parameter library is built
Vertical unit 210b, set of eigenvectors are established unit 210c, mapping relation generating unit 210d, first acquisition unit 210, second are obtained
Take unit 220, judging unit 230 and adjustment unit 240, wherein the second acquisition unit 220 includes first screenshot unit
221, fisrt feature unit 222, third acquiring unit 223 and the 4th acquiring unit 224.Below only to the picture database
Establish unit 210a, parameter library establishes unit 210b, set of eigenvectors establishes unit 210c and mapping relation generating unit 210d
It is illustrated, for other correlation units, has been described in the above-described embodiments, details are not described herein again.
Picture database establishes unit 210a, and for establishing picture database, the picture database includes multiple users
Interface screenshot, each user interface screenshot are to carry out shot operation to the first user interface of one control of display and generate.
Specifically, in embodiments of the present invention, first use is shown in for obtaining the control using image technique
The layout parameter of any moment in the interface of family.It is corresponding by showing that a control generates and carrying out shot operation to each user interface
User interface screenshot, establish picture database, the picture database includes multiple described user interface screenshots.Wherein, it uses
Family can create the initial layout parameter of multiple groups, be shown in the various sizes of control according to each initial layout parameter
At the different location of first user interface, shot operation is carried out to each user interface and generates user interface and cuts
Figure.
Parameter library establishes unit 210b, and for establishing parameter library, the parameter library includes multiple layout parameters, each described
The layout parameter user interface screenshot corresponding with the picture database is associated.
Specifically, for the picture database, the layout parameter of the control in each user interface screenshot is obtained
And form parameter library.For example, the initial layout parameter of the multiple groups of acquisition user creation, formation parameter library, and the image data
Each user interface screenshot in library, by the way that the control is shown in the first user interface according to each initial layout parameter
It goes up and carries out shot operation and generate.
Set of eigenvectors establishes unit 210c, and for establishing set of eigenvectors, described eigenvector collection includes multiple features
Vector, each described eigenvector are to be cut according to default extracting rule to each user interface in the picture database
Figure carries out feature extraction and generates.
Specifically, feature extraction is carried out to each user interface screenshot in the picture database, generated corresponding special
Vector is levied, establishes set of eigenvectors, described eigenvector collection includes multiple described eigenvectors.By obtaining user interface screenshot
Feature vector, in order to carry out the calculating of image similarity.
Mapping relation generating unit 210d, for generating mapping relations according to the parameter library and described eigenvector collection
Table.
Specifically, described eigenvector collection includes multiple feature vectors, and each described eigenvector is according to the figure
Each user interface screenshot in sheet data library carries out feature extraction and generates, and the picture database includes that multiple user interfaces are cut
Figure, and each user interface screenshot is that the control is shown in the first use according to each layout parameter of the parameter library
Family interface simultaneously carries out shot operation and generates, i.e., each layout parameter in the described parameter library with it is every in the picture database
There are one-to-one relationships for each feature vector that one user interface screenshot and described eigenvector are concentrated, and are mapped by generating
Relation table records the mapping relations of each layout parameter of the parameter library and each feature vector of described eigenvector collection.
0, Figure 10 is a kind of signal for user interface exception handling device that another embodiment of the application provides referring to Figure 1
Property block diagram.As shown in Figure 10, the user interface exception handling device 200 includes first acquisition unit 210, second acquisition unit
220, judging unit 230 and adjustment unit 240, wherein the adjustment unit 240 includes 241, second sections of time storage unit
Figure unit 242, related information saving unit 243 and display unit 244.Below only to time storage unit 241, the second screenshot
Unit 242, related information saving unit 243 and display unit 244 are illustrated, other correlation units, in above-described embodiment
In have been described, details are not described herein again.
Time storage unit 241 obtains current point in time, works as described in preservation if being greater than preset threshold for the difference
Preceding time point is in abnormal time memory block.
Specifically, if the difference is greater than preset threshold, i.e. control is abnormal in the layout of the first user interface, is obtained
Current time point, in order to which user knows the time point of generation user interface exception.The abnormal time memory block is to deposit
The one section of memory space opened up in storage area, for storing the temporal information acquired when monitoring control layout exception.
Second screenshot unit 242 is generated for carrying out shot operation to the first user interface described under current point in time
Second screenshot saves second screenshot in abnormal screenshot memory block.
Specifically, shot operation is carried out in current point in time to first user interface, generates the second screenshot, saves the
One screenshot is in abnormal screenshot memory block.User may have access to the abnormal screenshot memory block and be controlled with knowing in software running process
The abnormal situation of part layout.
Related information saving unit 243, for obtaining the current point in time in the storage of the abnormal time memory block
Position and second screenshot the abnormal screenshot memory block storage location and generate storage location contingency table, described in preservation
Storage location contingency table is in related information memory block.
Specifically, it is being cut extremely by the storage location and the second screenshot of memory block between obtaining current point in time when abnormal
The storage location of figure memory block, and storage location contingency table is generated, the storage location contingency table is stored in related information and is deposited
Storage area, in order to which user accesses the storage unit and the storage list at time point associated with the second screenshot of the second screenshot of storage
Member.
Display unit 244, for being adjusted and being shown in described to the control according to the initial layout parameter
In one user interface.
Specifically, it to the control in the first current user interface, is adjusted according to initial layout parameter, described in recovery
The layout of first user interface is to original state.
1, Figure 11 is a kind of signal for user interface exception handling device that another embodiment of the application provides referring to Figure 1
Property block diagram.As shown in figure 11, the user interface exception handling device 200 includes first acquisition unit 210, second acquisition unit
220, judging unit 230 and adjustment unit 240, wherein the adjustment unit 240 includes 241, second sections of time storage unit
Figure unit 242, related information saving unit 243, display unit 244 and reminding unit 245.Below only to reminding unit 245
It is illustrated, other correlation units have been described in the above-described embodiments, and details are not described herein again.
Reminding unit 245, for generating prompting message to remind user, the prompting message includes described current
Time point and second screenshot.
Specifically, when user interface exception occurs, user is reminded, in order to which user knows user interface exception
The case where, wherein it is reminded to user and the prompting message of the transmission includes the current point in time and described second
Screenshot.
2, Figure 12 is a kind of signal for user interface exception handling device that another embodiment of the application provides referring to Figure 1
Property block diagram.As shown in figure 12, the user interface exception handling device 200 includes first acquisition unit 210, user interface generation
Unit 220a, the 5th acquiring unit 220b, second acquisition unit 220, judging unit 230 and adjustment unit 240.It is only right below
User interface generation unit 220a and the 5th acquiring unit 220b are illustrated, other correlation units have in the above-described embodiments
Description, details are not described herein again.
User interface generation unit 220a, for generating second user interface, the second user interface includes the first ginseng
Number input area, first parameter input area are used to input the default monitoring time for user.
Specifically, the default monitoring time is used to set the monitoring cycle to control layout, in this embodiment, generates
Second user interface, includes the first parameter input area in the second user interface, and first parameter input area is used for
It inputs default monitoring time for user, for example set and preset monitoring time as 1 minute, i.e., it will be to control layout every one minute
It is monitored to judge whether to be abnormal.
5th acquiring unit 220b, for obtaining the default monitoring time.
Specifically, the default monitoring time that user is inputted in first parameter input area is obtained.
Above-mentioned user interface exception handling device can be implemented as a kind of form of computer program, which can
To be run in computer equipment as shown in fig. 13 that.
Figure 13 is please referred to, Figure 13 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The calculating
300 equipment of machine equipment can be terminal.
Refering to fig. 13, which includes processor 302, memory and the net connected by system bus 301
Network interface 305, wherein memory may include non-volatile memory medium 303 and built-in storage 304.
The non-volatile memory medium 303 can storage program area 3031 and computer program 3032.The computer program
3032 include program instruction, which is performed, and processor 302 may make to execute a kind of user interface abnormality processing side
Method.
The processor 302 supports the operation of entire computer equipment 300 for providing calculating and control ability.
The built-in storage 304 provides environment for the operation of the computer program 3032 in non-volatile memory medium 303, should
When computer program 3032 is executed by processor 302, processor 302 may make to execute a kind of user interface abnormality eliminating method.
The network interface 305 such as sends the task dispatching of distribution for carrying out network communication.Those skilled in the art can manage
It solves, structure shown in Figure 13, only the block diagram of part-structure relevant to application scheme, is not constituted to the application side
The restriction for the computer equipment 300 that case is applied thereon, specific computer equipment 300 may include more than as shown in the figure
Or less component, perhaps combine certain components or with different component layouts.
Wherein, the processor 302 is for running computer program 3032 stored in memory, to realize following function
Can: the initial layout parameter of control is obtained, the control is shown in the first user interface according to the initial layout parameter;
If reaching default monitoring time, the current layout parameter of the control is obtained as instantaneous layout parameter;Judge the control
Whether the difference between initial layout parameter and instantaneous layout parameter is greater than preset threshold;If the difference is greater than preset threshold,
The control is adjusted according to the initial layout parameter and is shown in first user interface.
In one embodiment, if processor 302 reaches default monitoring time in execution, the current layout of the control is obtained
Parameter is implemented as follows function as instantaneous layout parameter: if reaching default monitoring time, class is to the display control when this
First user interface of part carries out shot operation and generates the first screenshot;First screenshot is carried out according to default extracting rule
Feature extraction and generate characteristics of objects vector, the default extracting rule includes that pre-set dimension extracting rule and predeterminated position extract
Rule, the characteristics of objects vector include size characteristic vector sum position feature vector;According to the characteristics of objects vector from pre-
If feature vector concentrate obtain target feature vector;It is obtained and the target feature vector phase according to preset mapping table
Corresponding layout parameter is using the instantaneous layout parameter as the control.
In one embodiment, processor 302 is executing the initial layout parameter for obtaining control, is joined according to the initial layout
Before the control is shown in the first user interface by number, also implements function such as: establishing picture database, the picture number
It include multiple user interface screenshots according to library, each user interface screenshot is to carry out to the first user interface of one control of display
Shot operation and generate;Parameter library is established, the parameter library includes multiple layout parameters, each layout parameter and the figure
The corresponding user interface screenshot is associated in sheet data library;Set of eigenvectors is established, described eigenvector collection includes multiple
Feature vector, each described eigenvector are according to default extracting rule to each user circle in the picture database
Face screenshot carries out feature extraction and generates;Mapping table is generated according to the parameter library and described eigenvector collection.
In one embodiment, processor 302 is executing the initial layout parameter and instantaneous layout parameter for judging the control
Between difference whether be greater than after preset threshold, also implement function such as: if the difference be not more than preset threshold, return institute
Reach default monitoring time if stating, obtains the step of current layout parameter of the control is as instantaneous layout parameter.
In one embodiment, if processor 302 is executing the difference greater than preset threshold, joined according to the initial layout
It is several that the control is adjusted and is shown in first user interface, it is implemented as follows function: if the difference is big
In preset threshold, current point in time is obtained, saves the current point in time in abnormal time memory block;To institute under current point in time
It states the first user interface to carry out shot operation and generate the second screenshot, saves second screenshot in abnormal screenshot memory block;It obtains
The current point in time is taken to deposit in the storage location of the abnormal time memory block and second screenshot in the abnormal screenshot
The storage location of storage area and generate storage location contingency table, save the storage location contingency table in related information memory block;Root
The control is adjusted according to the initial layout parameter and is shown in first user interface.
In one embodiment, processor 302 is adjusted simultaneously the control according to the initial layout parameter in execution
After being shown in first user interface, also implement function such as: generation prompting message is described to remind user
Prompting message includes the current point in time and second screenshot.
In one embodiment, if processor 302 reaches default monitoring time in execution, the current layout of the control is obtained
It before parameter is as instantaneous layout parameter, also implements function such as: generating second user interface, the second user interface includes
First parameter input area, first parameter input area are used to input the default monitoring time for user;It obtains described default
Monitoring time.
It should be appreciated that in the embodiment of the present application, processor 302 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or
Person's processor is also possible to any conventional processor etc..
A kind of storage medium is provided in another embodiment of the application.The storage medium can be non-volatile computer
Readable storage medium storing program for executing, as USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), magnetic or disk etc. are each
Kind can store the medium of program code.The storage medium is stored with computer program, and wherein computer program includes that program refers to
It enables.The program instruction makes processor execute following procedure when being executed by processor: the initial layout parameter of control is obtained, according to institute
It states initial layout parameter the control is shown in the first user interface;If reaching default monitoring time, the control is obtained
Current layout parameter is as instantaneous layout parameter;Judge between the initial layout parameter of the control and instantaneous layout parameter
Whether difference is greater than preset threshold;If the difference be greater than preset threshold, according to the initial layout parameter to the control into
Row is adjusted and is shown in first user interface.
In one embodiment, it if the program instruction, which is executed by processor, reaches default monitoring time, obtains the control and works as
Preceding layout parameter specifically executes following procedure as instantaneous layout parameter: if reaching default monitoring time, in the moment to aobvious
Show that the first user interface of the control carries out shot operation and generates the first screenshot;According to default extracting rule to described first
Screenshot carries out feature extraction and generates characteristics of objects vector, and the default extracting rule includes pre-set dimension extracting rule and presets
Position extracting rule, the characteristics of objects vector include size characteristic vector sum position feature vector;According to the characteristics of objects
Vector is concentrated from preset feature vector and obtains target feature vector;It is obtained according to preset mapping table special with the target
The corresponding layout parameter of vector is levied using the instantaneous layout parameter as the control.
In one embodiment, which is executed by processor the initial layout parameter for obtaining control, according to described first
Before the control is shown in the first user interface by beginning layout parameter, also executes following procedure: establishing picture database, institute
Stating picture database includes multiple user interface screenshots, and each user interface screenshot is the first user to one control of display
Interface carries out shot operation and generates;Parameter library is established, the parameter library includes multiple layout parameters, each layout parameter
The user interface screenshot corresponding with the picture database is associated;Establish set of eigenvectors, described eigenvector collection
Including multiple feature vectors, each described eigenvector presets extracting rule to each institute in the picture database for basis
User interface screenshot is stated to carry out feature extraction and generate;Mapping relations are generated according to the parameter library and described eigenvector collection
Table.
In one embodiment, which is executed by processor the initial layout parameter for judging the control and instantaneous cloth
Whether the difference between office's parameter is greater than after preset threshold, also execution following procedure: if the difference is not more than preset threshold,
If reaching default monitoring time described in returning, the step of current layout parameter of the control is as instantaneous layout parameter is obtained.
In one embodiment, if the program instruction is executed by processor the difference greater than preset threshold, according to described first
Beginning layout parameter is adjusted the control and is shown in first user interface, specifically executes following procedure: if institute
Difference is stated greater than preset threshold, current point in time is obtained, saves the current point in time in abnormal time memory block;To it is current when
Between put under first user interface carry out shot operation and generate the second screenshot, save second screenshot and deposited in abnormal screenshot
Storage area;The current point in time is obtained in the storage location of the abnormal time memory block and second screenshot in the exception
The storage location of screenshot memory block and generate storage location contingency table, save the storage location contingency table in related information store
Area;The control is adjusted according to the initial layout parameter and is shown in first user interface.
In one embodiment, which, which is executed by processor, carries out the control according to the initial layout parameter
After adjusting and being shown in first user interface, following procedure is also executed: generating prompting message to mention to user
It wakes up, the prompting message includes the current point in time and second screenshot.
In one embodiment, it if the program instruction, which is executed by processor, reaches default monitoring time, obtains the control and works as
Before preceding layout parameter is as instantaneous layout parameter, following procedure is also executed: generating second user interface, the second user
Interface includes the first parameter input area, and first parameter input area is used to input the default monitoring time for user;It obtains
The default monitoring time.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond scope of the present application.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.This Shen
Please the unit in embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the application
Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with
It is that two or more units are integrated in one unit.Above-mentioned integrated unit both can take the form of hardware realization,
It can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can store in one storage medium.Based on this understanding, the technical solution of the application is substantially in other words to existing skill
The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, terminal or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection scope subject to.