CN104090842A - Detection method for application program running - Google Patents

Detection method for application program running Download PDF

Info

Publication number
CN104090842A
CN104090842A CN201410336813.8A CN201410336813A CN104090842A CN 104090842 A CN104090842 A CN 104090842A CN 201410336813 A CN201410336813 A CN 201410336813A CN 104090842 A CN104090842 A CN 104090842A
Authority
CN
China
Prior art keywords
picture
pictures
time
application program
multiple display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410336813.8A
Other languages
Chinese (zh)
Inventor
唐志彬
秦敏榕
齐梅秀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201410336813.8A priority Critical patent/CN104090842A/en
Publication of CN104090842A publication Critical patent/CN104090842A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a detection method for application program running. The method comprises the steps of obtaining a plurality of pictures of a display interface of application program running within the set time, and recording the times when the pictures of the display interface are obtained; detecting similarities of the pictures of the display interface; when it is detected that the similarity of two adjacent pictures of the display interface is smaller than a preset threshold value, setting a running start point picture or a running end point picture of an application program according to the two detected adjacent pictures; according to the time when the running start point picture is obtained and the time when the running end point picture is obtained, calculating the running time of the application program. According to the detection method for application program running, the calculation accuracy of detection of the running time of the application program can be improved.

Description

A kind of detection method of application program operation
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of detection method of application program operation.
Background technology
At present, the application function in terminal is more and more diversified, and can be user provides the function of different demands to select.But, manyly be applied in when exploitation and only focus on the realization of application function, and do not focus on the exploitation of the performance of application own, as in some cases, user need to understand the working time in some application program process, so that application performance is assessed, and according to the assessment of application performance, application is carried out to improvement in performance.But, the current time that not method is not carried out some operation operation in accurate computing application accurately, reduce the accuracy of computing application program runtime, make the user cannot accurate evaluation application performance.
Summary of the invention
The embodiment of the present invention provides a kind of operation method of application program.Can improve and detect the application program accuracy of working time.
Embodiments of the invention provide a kind of detection method of computing application program operation, comprising:
Obtain the picture of multiple display interfaces of application program operation in setting-up time, and the acquisition time of described multiple the display interface pictures of record;
Detect the similarity of the picture of described multiple display interfaces;
In the time detecting that the similarity of adjacent two pictures in described multiple display interface pictures is less than predetermined threshold value, according to described operation starting point picture or the end of run picture that adjacent two pictures setting application programs detected;
Calculate the working time of application program according to the acquisition time of the acquisition time of described operation starting point picture and described end of run picture.
By obtaining the picture of multiple display interfaces of application program operation in setting-up time, and record the acquisition time of multiple display interface pictures, can confirm the Origin And Destination that application program is moved according to the similarity of the picture that detects multiple display interfaces, thereby can Obtaining Accurate to operation starting point the time with the end of run, and according to the working time of moving starting point and end of run time and can calculate application program.Detect the application program accuracy of working time thereby improved.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of an a kind of embodiment of detection method of application program operation in the present invention;
Fig. 2 is the process flow diagram of a kind of another embodiment of detection method of application program operation in the present invention;
Fig. 3 is the structural representation of an a kind of embodiment of pick-up unit of application program operation in the present invention;
Fig. 4 is the structural representation of a kind of another embodiment of pick-up unit of application program operation in the present invention;
Fig. 5 is the structural representation of an a kind of embodiment of terminal in the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The device that device described in the embodiment of the present invention maybe can be realized following method can comprise that mobile phone, panel computer, PC etc. can provide platform that application program is moved, and all devices that can show by display device application programs.
Below with reference to accompanying drawing, embodiments of the invention are described.Referring to Fig. 1, it is the process flow diagram of an a kind of embodiment of detection method of application program operation in the present invention.
Step S101, obtains the picture of multiple display interfaces of application program operation in setting-up time, and records the acquisition time of described multiple display interface pictures.
In the embodiment of the present invention, in the time needing the working time of computing application program operation, cannot estimate due to definite operation starting point and the end of run, need within the time period of setting, obtain the interface display picture of application program operation.Wherein, in the time period of setting, can comprise initial time and the termination time of application program operation, also can comprise and triggering the time that application program brings into operation and finishes operation.Optionally, can in running application, independently trigger to obtain by terminal; Also can trigger and obtain by other devices that connect terminal such as computers.
In the embodiment of the present invention, the picture of multiple display interfaces can obtain in several ways application program operation time.As carried out continuous sectional drawing by the display interface when running application in terminal, obtain the picture of multiple display interfaces; Or also can take by triggering the display interface of camera when running application in terminal, and the Video processing of shooting is become to the picture taking frame as unit, thus the picture of multiple display interfaces can be obtained.
Step S102, the similarity of the picture of multiple display interfaces described in detecting.
In the embodiment of the present invention, after the picture of multiple display interfaces in the time getting application program operation, can detect the similarity of the picture of multiple display interfaces.When application program launching or while closing, display interface jumps to another picture by a picture conventionally, the image change of two time point display interfaces is larger, and the similarity of picture is lower thus, can determine whether according to the similarity detecting startup or the close moment of application program.Optionally, can, by detecting the similarity of two or two the above pictures that acquisition time is adjacent, determine operation starting point and the terminal of application program.
Step S103, in the time detecting that the similarity of adjacent two pictures in described multiple display interface pictures is less than predetermined threshold value, according to described operation starting point picture or the end of run picture that adjacent two pictures setting application programs detected.
In the embodiment of the present invention, if detect when the similarity of adjacent two pictures is less than predetermined threshold value, show that the image change of display interface is larger, can set according to adjacent two pictures that detect operation starting point picture or the end of run picture of application program.
Optionally, the moment that the image change of display interface is larger mostly occurs just running application or moment of end application, detects first or for the last time that picture analogies degree is less than the moment of predetermined threshold value.In the time detecting that first the similarity of two pictures that in multiple display interface pictures, acquisition time is adjacent is less than a certain predetermined threshold value, as the similarity of two pictures is less than 5%, the image that shows display interface has a greater change, be changed to the startup image of application program operation from initial pictures, can be according to detecting that first two adjacent pictures of acquisition time that similarity is less than a certain predetermined threshold value tentatively confirm the operation starting point of application program, as second of two adjacent acquisition time pictures being set as to the operation starting point of application program, also can set a certain picture that above-mentioned second image similarity is afterwards higher is operation starting point.
In the embodiment of the present invention, in the time detecting that for the last time the similarity of two pictures that in multiple display interface pictures, acquisition time is adjacent is less than a certain predetermined threshold value, as the similarity of two pictures is less than 3%, the image that shows display interface has a greater change, i.e. image from the image change of application program operation is closing application program, the two adjacent pictures of acquisition time that can be less than a certain predetermined threshold value according to the similarity detecting for the last time are tentatively confirmed the end of run of application program, as first of two adjacent acquisition time pictures being set as to the end of run of application program, also the higher picture of a certain similarity before can setting first is the end of run.
Step S104, calculates working time of application program according to the acquisition time of the acquisition time of described operation starting point picture and described end of run picture.
In the embodiment of the present invention, when having set after the operation starting point picture of application program and the end of run picture of application program, can obtain moving the acquisition time of starting point picture, and the acquisition time of end of run picture.Thereby can calculate by operation starting point and the time difference in the end of run time working time of application program.Excellent performance can assess this and be applied in executable operations time, thus can better optimize application.
Optionally, when get the picture of multiple display interfaces of application program by camera, can frame number value corresponding to recordable picture, the time interval that is every pictures acquisition time is particular value, when determining after operation starting point picture and end of run picture, can calculate from operation starting point picture to have passed through how many pictures to end of run picture, and according to the time interval of setting and the picture number of experience, can calculate the working time of application program.As in the time that the video that camera is taken is divided into 60 frame picture, video duration * 1/60 is the time interval that picture obtains, when definite P pictures is operation starting point picture, when Q pictures is end of run picture, (Q-P) * 1/60 working time that is application program.
By obtaining the picture of multiple display interfaces of application program operation in setting-up time, and record the acquisition time of multiple display interface pictures, can confirm the Origin And Destination that application program is moved according to the similarity of the picture that detects multiple display interfaces, thereby can Obtaining Accurate to operation starting point the time with the end of run, and according to the working time of moving starting point and end of run time and can calculate application program.Detect the application program accuracy of working time thereby improved.
Referring to Fig. 2, it is the process flow diagram of a kind of another embodiment of detection method of application program operation in the present invention.
Step S201, obtains the picture of multiple display interfaces of application program operation in setting-up time, and records the acquisition time of described multiple display interface pictures.
In the embodiment of the present invention, in the time needing the working time of computing application program operation, cannot estimate due to definite operation starting point and the end of run, need within the time period of setting, obtain the interface display picture of application program operation.Wherein, in the time period of setting, can comprise initial time and the termination time of application program operation, also can comprise and triggering the time that application program brings into operation and finishes operation.Optionally, can in running application, independently trigger to obtain by terminal; Also can trigger and obtain by other devices that connect terminal such as computers.
In the embodiment of the present invention, step S201 specifically can comprise the steps:
In Preset Time, described display interface is carried out to continuous sectional drawing operation; Obtain the picture of described multiple display interfaces after continuous sectional drawing operation.
Optionally, step S201 specifically maybe can comprise the steps:
In Preset Time, described display interface is taken; Described display interface after taking is resolved into the picture of described multiple display interfaces.
In the embodiment of the present invention, the picture of multiple display interfaces can obtain in several ways application program operation time.As carried out continuous sectional drawing by the display interface when running application in terminal, obtain the picture of multiple display interfaces; Or also can take by triggering the display interface of camera when running application in terminal, to form video, and the Video processing of shooting is become to the picture taking frame as unit, thereby can obtain the picture of multiple display interfaces.
Step S202, preserves described multiple display interface pictures according to the sequencing of described acquisition time.
In the embodiment of the present invention, owing to obtaining the picture of multiple display interfaces according to the sequencing of time, the picture obtaining can be preserved according to the sequencing of time, to the picture obtaining is detected according to the sequencing of time, thereby can confirm to move starting point picture and end of run picture.
Step S203, reads described multiple display interface pictures by the sequencing of described acquisition time.
Step S204, the similarity of two or two above adjacent pictures in multiple display interfaces described in detecting.
In the embodiment of the present invention, after the picture of multiple display interfaces in the time getting application program operation, can detect the similarity of the picture of multiple display interfaces.When application program launching or while closing, display interface jumps to another picture by a picture conventionally, the image change of two time point display interfaces is larger, and the similarity of picture is lower thus, can determine whether according to the similarity detecting startup or the close moment of application program.Optionally, can, by detecting the similarity of two or two the above pictures that acquisition time is adjacent, determine operation starting point and the terminal of application program.
Optionally, step S204 can comprise the following steps:
Detect the similarity of whole image of two or two above adjacent pictures in described multiple display interface pictures; Or
Detect the similarity of the topography of two or two above adjacent pictures in described multiple display interface pictures.
In the embodiment of the present invention, can detect the similarity of the image showing on whole pictures, also can detect the similarity of topography on picture, as the unlatching interface of application program and the end image of interface display and image layout's structural similarity of former display interface, only part shows that image there are differences, can only detect topography, thereby improve system works performance.
Step S205, in the time that the similarity of adjacent two pictures in the picture that described multiple display interfaces detected is first less than the first predetermined threshold value, the operation starting point picture that the second pictures that adjacent two pictures detected first described in setting is application program.
In the embodiment of the present invention, in the time detecting that first the similarity of two pictures that in multiple display interface pictures, acquisition time is adjacent is less than a certain predetermined threshold value, as the similarity of two pictures is less than 5%, the image that shows display interface has a greater change, be changed to the startup image of application program operation from initial pictures, can be according to detecting that first two adjacent pictures of acquisition time that similarity is less than a certain predetermined threshold value tentatively confirm the operation starting point of application program, as second of two adjacent acquisition time pictures being set as to the operation starting point of application program, optionally, also can set a certain picture that above-mentioned second image similarity is afterwards higher is operation starting point.
Step S206, in the time that the similarity of adjacent two pictures in the picture that described multiple display interfaces detected is for the last time less than the second predetermined threshold value, the end of run picture that the first pictures of setting described adjacent two pictures that detect is for the last time application program.
In the embodiment of the present invention, in the time detecting that for the last time the similarity of two pictures that in multiple display interface pictures, acquisition time is adjacent is less than a certain predetermined threshold value, as the similarity of two pictures is less than 3%, the image that shows display interface has a greater change, i.e. image from the image change of application program operation is closing application program, the two adjacent pictures of acquisition time that can be less than a certain predetermined threshold value according to the similarity detecting for the last time are tentatively confirmed the end of run of application program, as first of two adjacent acquisition time pictures being set as to the end of run of application program, optionally, also the higher picture of a certain similarity before can setting first is the end of run.
Step S207, calculates working time of application program according to the acquisition time of the acquisition time of described operation starting point picture and described end of run picture.
In the embodiment of the present invention, when having set after the operation starting point picture of application program and the end of run picture of application program, can obtain moving the acquisition time of starting point picture, and the acquisition time of end of run picture.Thereby can calculate by operation starting point and the time difference in the end of run time working time of application program.And excellent performance can assess this and be applied in executable operations time, thereby can better optimize application.
Optionally, when get the picture of multiple display interfaces of application program by camera, can frame number value corresponding to recordable picture, the time interval that is every pictures acquisition time is particular value, when determining after operation starting point picture and end of run picture, can calculate from operation starting point picture to have passed through how many pictures to end of run picture, and according to the time interval of setting and the picture number of experience, can calculate the working time of application program.As in the time that the video that camera is taken is divided into 60 frame picture, video duration * 1/60 is the time interval that picture obtains, when definite P pictures is operation starting point picture, when Q pictures is end of run picture, (Q-P) * 1/60 working time that is application program.
By obtaining the picture of multiple display interfaces of application program operation in setting-up time, and record the acquisition time of multiple display interface pictures, can confirm the Origin And Destination that application program is moved according to the similarity of the picture that detects multiple display interfaces, thereby can Obtaining Accurate to operation starting point the time with the end of run, and according to the working time of moving starting point and end of run time and can calculate application program.Detect the application program accuracy of working time thereby improved.
The device that said method can provide by following examples is implemented, specifically can be referring to Fig. 3-Fig. 4.
Referring to Fig. 3, it is the structural representation of an a kind of embodiment of pick-up unit of application program operation in the present invention.Described device comprises: picture acquiring unit 01, record cell 02, detecting unit 03, setup unit 04 and computing unit 05.
Described in the embodiment of the present invention, device can be integrated in terminal, carries out computing the working time of carrying out with the application program in terminal, and this device also can exist carry out in the equipment and application scenario of computing the working time of the application programs of what is the need in office.
Picture acquiring unit 01, for obtaining the picture of multiple display interfaces of application program operation in setting-up time.
In the embodiment of the present invention, in the time needing the working time of computing application program operation, cannot estimate due to definite operation starting point and the end of run, need within the time period of setting, obtain the interface display picture of application program operation.Wherein, in the time period of setting, can comprise initial time and the termination time of application program operation, also can comprise and triggering the time that application program brings into operation and finishes operation.Optionally, can in running application, independently trigger to obtain by terminal; Also can trigger and obtain by other devices that connect terminal such as computers.
In the embodiment of the present invention, the picture of multiple display interfaces when picture acquiring unit 01 can obtain application program operation in several ways.As carried out continuous sectional drawing by the display interface when running application in terminal, obtain the picture of multiple display interfaces; Or also can take by triggering the display interface of camera when running application in terminal, and the Video processing of shooting is become to the picture taking frame as unit, thus the picture of multiple display interfaces can be obtained.
Record cell 02, for recording the acquisition time of picture of described multiple display interfaces that described picture acquiring unit 01 obtains.
In the embodiment of the present invention, when acquiring unit 01 is in the time obtaining display interface picture, record cell 02 can record the time of obtaining multiple display interface pictures.Optionally, when carrying out capture video by camera, during by multiple display interface pictures of video acquisition, record cell 02 can record the frame number sequence number according to time sequence of the display interface picture getting taking frame as unit, in the time of definite starting point or emphasis picture, the sequence number that can determine the corresponding frame number of picture, because the time interval in every pictures is identical, thereby can obtain the working time of application program.
Detecting unit 03, the similarity of the picture of multiple display interfaces that obtain for detection of described acquiring unit 01.
In the embodiment of the present invention, after the picture of multiple display interfaces in the time getting application program operation, detecting unit 03 can detect the similarity of the picture of multiple display interfaces.When application program launching or while closing, display interface jumps to another picture by a picture conventionally, the image change of two time point display interfaces is larger, and the similarity of picture is lower thus, can determine whether according to the similarity detecting startup or the close moment of application program.Optionally, can, by detecting the similarity of two or two the above pictures that acquisition time is adjacent, determine operation starting point and the terminal of application program.
Setup unit 04, for in the time that the similarity of adjacent two pictures of multiple display interface pictures described in described detecting unit 03 detects is less than predetermined threshold value, according to described operation starting point picture or the end of run picture that adjacent two pictures setting application programs detected.
In the embodiment of the present invention, if detecting unit 03 detects when the similarity of adjacent two pictures is less than predetermined threshold value, the image change that shows display interface is larger, can set according to adjacent two pictures that detect operation starting point picture or the end of run picture of application program.
Optionally, the moment that the image change of display interface is larger mostly occurs just running application or moment of end application, detects first or for the last time that picture analogies degree is less than the moment of predetermined threshold value.In the time that detecting unit 03 detects that the similarity of two pictures that in multiple display interface pictures, acquisition time is adjacent is less than a certain predetermined threshold value first, as the similarity of two pictures is less than 5%, the image that shows display interface has a greater change, be changed to the startup image of application program operation from initial pictures, setup unit 04 can be according to detecting that first two adjacent pictures of acquisition time that similarity is less than a certain predetermined threshold value tentatively confirm the operation starting point of application program, as second of two adjacent acquisition time pictures being set as to the operation starting point of application program, also can set a certain picture that above-mentioned second image similarity is afterwards higher is operation starting point.
In the embodiment of the present invention, in the time that detecting unit 03 detects that the similarity of two pictures that in multiple display interface pictures, acquisition time is adjacent is less than a certain predetermined threshold value for the last time, as the similarity of two pictures is less than 3%, the image that shows display interface has a greater change, i.e. image from the image change of application program operation is closing application program, the two adjacent pictures of acquisition time that setup unit 04 can be less than a certain predetermined threshold value according to the similarity detecting for the last time are tentatively confirmed the end of run of application program, as first of two adjacent acquisition time pictures being set as to the end of run of application program, also the higher picture of a certain similarity before can setting first is the end of run.
Computing unit 05, calculates working time of application program for the acquisition time of operation starting point picture set according to described setup unit 04 and the acquisition time of described end of run picture.
In the embodiment of the present invention, set after the operation starting point picture of application program and the end of run picture of application program when setup unit 04, can obtain moving the acquisition time of starting point picture, and the acquisition time of end of run picture.Thereby computing unit 05 can calculate by operation starting point and the time difference in the end of run time working time of application program.Excellent performance can assess this and be applied in executable operations time, thus can better optimize application.
Optionally, when get the picture of multiple display interfaces of application program by camera, can frame number value corresponding to recordable picture, the time interval that is every pictures acquisition time is particular value, when determining after operation starting point picture and end of run picture, can calculate from operation starting point picture to have passed through how many pictures to end of run picture, and according to the time interval of setting and the picture number of experience, can calculate the working time of application program.As in the time that the video that camera is taken is divided into 60 frame picture, video duration * 1/60 is the time interval that picture obtains, when definite P pictures is operation starting point picture, when Q pictures is end of run picture, (Q-P) * 1/60 working time that is application program.
By obtaining the picture of multiple display interfaces of application program operation in setting-up time, and record the acquisition time of multiple display interface pictures, can confirm the Origin And Destination that application program is moved according to the similarity of the picture that detects multiple display interfaces, thereby can Obtaining Accurate to operation starting point the time with the end of run, and according to the working time of moving starting point and end of run time and can calculate application program.Detect the application program accuracy of working time thereby improved.
Referring to Fig. 4, it is the structural representation of a kind of another embodiment of pick-up unit of application program operation in the present invention.Described device comprises: picture acquiring unit 11, record cell 12, storage unit 13, detecting unit 14, setup unit 15 and computing unit 16.
Described in the embodiment of the present invention, device can be integrated in terminal, carries out computing the working time of carrying out with the application program in terminal, and this device also can exist carry out in the equipment and application scenario of computing the working time of the application programs of what is the need in office.
Picture acquiring unit 11, for obtaining the picture of multiple display interfaces of application program operation in setting-up time.
In the embodiment of the present invention, in the time needing the working time of computing application program operation, cannot estimate due to definite operation starting point and the end of run, need within the time period of setting, obtain the interface display picture of application program operation.Wherein, in the time period of setting, can comprise initial time and the termination time of application program operation, also can comprise and triggering the time that application program brings into operation and finishes operation.Optionally, can in running application, independently trigger to obtain by terminal; Also can trigger and obtain by other devices that connect terminal such as computers.
In the embodiment of the present invention, picture acquiring unit 11 can comprise sectional drawing unit 111 and sectional drawing acquiring unit 112.Wherein, sectional drawing unit 111, in the time that described application program is moved, carries out continuous sectional drawing operation to described display interface; Sectional drawing acquiring unit 112 is for obtaining the picture of described multiple display interfaces after continuous sectional drawing operation.
Optionally, in the embodiment of the present invention, acquiring unit 11 also can comprise takes unit 113 and resolving cell 114.Wherein, take unit 113 in the time that described application program is moved, described display interface is taken; Decompose subelement 114 for the described display interface after taking being resolved into the picture of described multiple display interfaces.
In the embodiment of the present invention, the picture of multiple display interfaces can obtain in several ways application program operation time.As carried out continuous sectional drawing by the display interface when running application by sectional drawing unit 111, and obtain the picture of multiple display interfaces by sectional drawing acquiring unit 112; Or also can trigger the display interface of camera when running application and take by taking unit 113, to form video, and by resolving cell 114, the video of shooting is resolved into the picture taking frame as unit, thereby can obtain the picture of multiple display interfaces.
Record cell 12, for recording the acquisition time of picture of described multiple display interfaces that described picture acquiring unit 11 obtains.
In the embodiment of the present invention, when picture acquiring unit 11 is in the time obtaining display interface picture, record cell 12 can record the time of obtaining multiple display interface pictures.Optionally, when carrying out capture video by camera, during by multiple display interface pictures of video acquisition, record cell 12 can record the frame number sequence number according to time sequence of the display interface picture getting taking frame as unit, in the time of definite starting point or emphasis picture, the sequence number that can determine the corresponding frame number of picture, because the time interval in every pictures is identical, thereby can obtain the working time of application program.
Storage unit 13, preserves described multiple display interface pictures for the sequencing of time of recording according to described record cell 12.
In the embodiment of the present invention, owing to obtaining the picture of multiple display interfaces according to the sequencing of time, storage unit 13 can be preserved the picture obtaining according to the sequencing of time, to the picture obtaining is detected according to the sequencing of time, thereby can confirm to move starting point picture and end of run picture.
Detecting unit 14, the similarity of the picture of multiple display interfaces of preserving for detection of described storage unit 13.
In the embodiment of the present invention, detecting unit 14 can comprise reading unit 141 and adjacent detecting unit 142.
Wherein, reading unit 141 is for reading described multiple display interface pictures by the sequencing of described acquisition time; The similarity of two or two above adjacent pictures in described multiple display interfaces that adjacent detecting unit 142 reads for detection of described reading unit.
In the embodiment of the present invention, after the picture of multiple display interfaces in the time getting application program operation, can detect the similarity of the picture of multiple display interfaces.When application program launching or while closing, display interface jumps to another picture by a picture conventionally, the image change of two time point display interfaces is larger, and the similarity of picture is lower thus, can determine whether according to the similarity detecting startup or the close moment of application program.Optionally, can, by detecting the similarity of two or two the above pictures that acquisition time is adjacent, determine operation starting point and the terminal of application program.
Optionally, adjacent detecting unit can comprise whole detecting unit and/or local detecting unit.
Wherein, whole detecting unit is for detection of more than two or two similarity of whole image of adjacent pictures in described multiple display interface pictures; Local detecting unit is for detection of the similarity of the topography of two or two above adjacent pictures in described multiple display interface pictures.
In the embodiment of the present invention, can detect the similarity of the image showing on whole pictures, also can detect the similarity of topography on picture, as the unlatching interface of application program and the end image of interface display and image layout's structural similarity of former display interface, only part shows that image there are differences, can only detect topography, thereby improve system works performance.
Setup unit 15, in the time detecting that the similarity of described adjacent two pictures of multiple display interface pictures is less than predetermined threshold value, according to described operation starting point picture or the end of run picture that adjacent two pictures setting application programs detected.
In the embodiment of the present invention, setup unit 15 can comprise starting point setup unit 151 and terminal setup unit 152.
Wherein, starting point setup unit 151 is in the time detecting that first the similarity of adjacent two pictures of picture of described multiple display interfaces is less than the first predetermined threshold value, the operation starting point picture that the second pictures that two adjacent pictures detected first described in setting is application program.
In the embodiment of the present invention, in the time detecting that first the similarity of two pictures that in multiple display interface pictures, acquisition time is adjacent is less than a certain predetermined threshold value, as the similarity of two pictures is less than 5%, the image that shows display interface has a greater change, be changed to the startup image of application program operation from initial pictures, starting point setup unit 151 can be according to detecting that first two adjacent pictures of acquisition time that similarity is less than a certain predetermined threshold value tentatively confirm the operation starting point of application program, as second of two adjacent acquisition time pictures being set as to the operation starting point of application program, optionally, also can set a certain picture that above-mentioned second image similarity is afterwards higher is operation starting point.
Terminal setup unit 152 is in the time detecting that for the last time the similarity of adjacent two pictures of picture of described multiple display interfaces is less than the second predetermined threshold value, sets the end of run picture that described the first pictures that adjacent two pictures detected is for the last time application program.
In the embodiment of the present invention, in the time detecting that for the last time the similarity of two pictures that in multiple display interface pictures, acquisition time is adjacent is less than a certain predetermined threshold value, as the similarity of two pictures is less than 3%, the image that shows display interface has a greater change, i.e. image from the image change of application program operation is closing application program, the two adjacent pictures of acquisition time that terminal setup unit 152 can be less than a certain predetermined threshold value according to the similarity detecting for the last time are tentatively confirmed the end of run of application program, as first of two adjacent acquisition time pictures being set as to the end of run of application program, optionally, also the higher picture of a certain similarity before can setting first is the end of run.
Computing unit 16, for calculating the working time of application program according to the acquisition time of the acquisition time of described operation starting point picture and described end of run picture.
In the embodiment of the present invention, set after the operation starting point picture of application program and the end of run picture of application program when setup unit 15, can obtain moving the acquisition time of starting point picture, and the acquisition time of end of run picture.Thereby computing unit 16 can calculate by operation starting point and the time difference in the end of run time working time of application program.Excellent performance can assess this and be applied in executable operations time, thus can better optimize application.
Optionally, when get the picture of multiple display interfaces of application program by camera, can frame number value corresponding to recordable picture, the time interval that is every pictures acquisition time is particular value, when determining after operation starting point picture and end of run picture, can calculate from operation starting point picture to have passed through how many pictures to end of run picture, and according to the time interval of setting and the picture number of experience, can calculate the working time of application program.As in the time that the video that camera is taken is divided into 60 frame picture, video duration * 1/60 is the time interval that picture obtains, when definite P pictures is operation starting point picture, when Q pictures is end of run picture, (Q-P) * 1/60 working time that is application program.
By obtaining the picture of multiple display interfaces of application program operation in setting-up time, and record the acquisition time of multiple display interface pictures, can confirm the Origin And Destination that application program is moved according to the similarity of the picture that detects multiple display interfaces, thereby can Obtaining Accurate to operation starting point the time with the end of run, and according to the working time of moving starting point and end of run time and can calculate application program.Detect the application program accuracy of working time thereby improved.
The present embodiment also provides a kind of terminal, can be in order to implement the present invention in conjunction with the part or all of flow process in the embodiment of Fig. 1, Fig. 2 introduction.
Referring to Fig. 5, it is the structural representation of an embodiment of a kind of terminal in the present invention.This terminal can comprise: at least one processor 1, as CPU etc.; At least one display 2; At least one storer 3; And at least one communication bus 4.
Wherein, communication bus 4 is for realizing the connection communication between said modules.Storer 3 can be high-speed RAM storer, also can the unsettled storer of right and wrong (non-volatile memory), and for example at least one magnetic disk memory.Storer 3 can also be optionally that at least one is positioned at the memory storage away from aforementioned processing device 1.Wherein the function of processor 1 and structure can be in conjunction with Fig. 3 and the described devices of Fig. 4.Storer 3 can be stored one or more application programs, and display 2 can call by processor 1 runnable interface of the application program that storer 3 stores, and shows the runnable interface calling.In storer 3, store batch processing code, and processor 1 calls in storer 3 program code of storage, for carrying out following operation:
Obtain the picture of multiple display interfaces of application program operation in setting-up time from described display 2, and the acquisition time of described multiple the display interface pictures of record;
Detect the similarity of the picture of described multiple display interfaces;
In the time detecting that the similarity of adjacent two pictures in described multiple display interface pictures is less than predetermined threshold value, according to described operation starting point picture or the end of run picture that adjacent two pictures setting application programs detected;
Calculate the working time of application program according to the acquisition time of the acquisition time of described operation starting point picture and described end of run picture.
In optional embodiment, the program code that processor 1 calls in storer 3 storage obtains the picture of multiple display interfaces of application program operation in setting-up time, is specifically as follows:
In Preset Time, described display interface is carried out to continuous sectional drawing operation; Obtain the picture of described multiple display interfaces after continuous sectional drawing operation.Or in Preset Time, described display interface is taken; Described display interface after taking is decomposed into the picture of described multiple display interfaces.
In optional embodiment, processor 1 also can be carried out following steps before calling the similarity of picture of described multiple display interfaces of program code execution detection of storage in storer 3:
According to the sequencing of described acquisition time, described multiple display interface pictures are preserved.
Wherein, detect the similarity of the picture of described multiple display interfaces, specifically can be:
Read described multiple display interface pictures by the sequencing of described acquisition time;
Detect the similarity of two or two above adjacent pictures in described multiple display interface pictures.
In optional embodiment, when processor 1 calls the step of the similarity of two or two above adjacent pictures in described multiple display interface pictures of program code execution detection of storing in storer 3, specifically can be:
Detect the similarity of whole image of two or two above adjacent pictures in described multiple display interface pictures; Or
Detect the similarity of the topography of two or two above adjacent pictures in described multiple display interface pictures.
In optional embodiment, processor 1 calls the program code of storage in storer 3 and carries out in the time detecting that the similarity of adjacent two pictures in described multiple display interface pictures is less than predetermined threshold value,, specifically can be while detecting that adjacent two pictures are set the operation starting point pictures of application program or the step of end of run picture according to described:
In the time that the similarity of adjacent two pictures in the picture that described multiple display interfaces detected is first less than the first predetermined threshold value, the operation starting point picture that the second pictures of adjacent two pictures that detect first described in setting is application program;
In the time that the similarity of adjacent two pictures in the picture that described multiple display interfaces detected is for the last time less than the second predetermined threshold value, the end of run picture that the first pictures of setting described adjacent two pictures that detect is for the last time application program.
Concrete, the terminal of introducing in the present embodiment can be in order to implement the present invention in conjunction with the part or all of flow process in the embodiment of Fig. 1, Fig. 2 introduction.
Device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.Those of ordinary skill in the art, in the situation that not paying performing creative labour, are appreciated that and implement.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that each embodiment can add essential general hardware platform by software and realize, and can certainly pass through hardware.Based on such understanding, the part that technique scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in computer-readable recording medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in some part of each embodiment or embodiment.
Above-described embodiment, does not form the restriction to this technical scheme protection domain.The amendment done within any spirit at above-mentioned embodiment and principle, be equal to and replace and improvement etc., within all should being included in the protection domain of this technical scheme.

Claims (6)

1. a detection method for application program operation, is characterized in that, comprising:
Obtain the picture of multiple display interfaces of application program operation in setting-up time, and the acquisition time of described multiple the display interface pictures of record;
Detect the similarity of the picture of described multiple display interfaces;
In the time detecting that the similarity of adjacent two pictures in described multiple display interface pictures is less than predetermined threshold value, according to described operation starting point picture or the end of run picture that adjacent two pictures setting application programs detected;
Calculate the working time of application program according to the acquisition time of the acquisition time of described operation starting point picture and described end of run picture.
2. method as claimed in claim 1, is characterized in that, described in obtain the picture of multiple display interfaces of application program operation in setting-up time, comprising:
In Preset Time, described display interface is carried out to continuous sectional drawing operation;
Obtain the picture of described multiple display interfaces after continuous sectional drawing operation.
3. method as claimed in claim 1, is characterized in that, described in obtain the picture of multiple display interfaces of application program operation in setting-up time, comprising:
In Preset Time, described display interface is taken;
Described display interface after taking is decomposed into the picture of described multiple display interfaces.
4. method as described in as arbitrary in claim 1-3, is characterized in that, before the similarity of picture that detects described multiple display interfaces, described method also comprises:
According to the sequencing of described acquisition time, described multiple display interface pictures are preserved;
Wherein, described in described detection, the similarity of the picture of multiple display interfaces comprises:
Read described multiple display interface pictures by the sequencing of described acquisition time;
Detect the similarity of two or two above adjacent pictures in described multiple display interface pictures.
5. method as claimed in claim 4, is characterized in that, the similarity of two or two above adjacent pictures in multiple display interface pictures described in described detection, comprising:
Detect the similarity of whole image of two or two above adjacent pictures in described multiple display interface pictures; Or
Detect the similarity of the topography of two or two above adjacent pictures in described multiple display interface pictures.
6. method as claimed in claim 5, it is characterized in that, described in the time detecting that the similarity of adjacent two pictures in described multiple display interface pictures is less than predetermined threshold value, according to described operation starting point picture or the end of run picture that adjacent two pictures setting application programs detected, comprising:
In the time that the similarity of adjacent two pictures in the picture that described multiple display interfaces detected is first less than the first predetermined threshold value, the operation starting point picture that the second pictures of adjacent two pictures that detect first described in setting is application program;
In the time that the similarity of adjacent two pictures in the picture that described multiple display interfaces detected is for the last time less than the second predetermined threshold value, the end of run picture that the first pictures of setting described adjacent two pictures that detect is for the last time application program.
CN201410336813.8A 2014-07-15 2014-07-15 Detection method for application program running Pending CN104090842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410336813.8A CN104090842A (en) 2014-07-15 2014-07-15 Detection method for application program running

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410336813.8A CN104090842A (en) 2014-07-15 2014-07-15 Detection method for application program running

Publications (1)

Publication Number Publication Date
CN104090842A true CN104090842A (en) 2014-10-08

Family

ID=51638560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410336813.8A Pending CN104090842A (en) 2014-07-15 2014-07-15 Detection method for application program running

Country Status (1)

Country Link
CN (1) CN104090842A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468916A (en) * 2014-10-24 2015-03-25 天津市康凯特软件科技有限公司 Test method based on cell phone response time
CN104834597A (en) * 2015-03-06 2015-08-12 深信服网络科技(深圳)有限公司 Method and system for measuring application response duration
CN104951392A (en) * 2015-06-25 2015-09-30 上海卓易科技股份有限公司 Method and device for measuring starting time of application program
CN105468523A (en) * 2015-11-20 2016-04-06 广东欧珀移动通信有限公司 Automatic testing method and device of mobile terminal response time
CN106874186A (en) * 2016-12-29 2017-06-20 努比亚技术有限公司 A kind of test device of application toggle speed, terminal and method
CN106951370A (en) * 2017-03-17 2017-07-14 深圳普瑞赛思检测技术有限公司 The assessment method and device of virtual reality device program operation delay
CN107038173A (en) * 2016-02-04 2017-08-11 腾讯科技(深圳)有限公司 Application query method and apparatus, similar application detection method and device
CN108900776A (en) * 2018-08-22 2018-11-27 北京百度网讯科技有限公司 Method and apparatus for determining the response time
CN109885492A (en) * 2019-02-13 2019-06-14 福建天晴数码有限公司 A kind of response time test method and terminal based on image recognition and curve matching
CN110888812A (en) * 2019-11-26 2020-03-17 国核自仪系统工程有限公司 System and method for testing response time of terminal page
CN111405218A (en) * 2020-03-26 2020-07-10 深圳市微测检测有限公司 Touch screen time delay detection method, system, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540516A (en) * 2003-04-22 2004-10-27 英业达股份有限公司 Method of carrying out testing state of application program in preset timing through interactive routine
CN102662839A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Testing method and device for software interface state change time
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
US20130121599A1 (en) * 2011-11-16 2013-05-16 Microsoft Corporation Measuring Web Page Rendering Time
CN103237108A (en) * 2013-05-13 2013-08-07 百度在线网络技术(北京)有限公司 Test method and test terminal for mobile terminal
CN103308330A (en) * 2012-03-14 2013-09-18 富泰华工业(深圳)有限公司 Device and method for testing electronic product performance

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540516A (en) * 2003-04-22 2004-10-27 英业达股份有限公司 Method of carrying out testing state of application program in preset timing through interactive routine
US20130121599A1 (en) * 2011-11-16 2013-05-16 Microsoft Corporation Measuring Web Page Rendering Time
CN103308330A (en) * 2012-03-14 2013-09-18 富泰华工业(深圳)有限公司 Device and method for testing electronic product performance
CN102662839A (en) * 2012-03-29 2012-09-12 奇智软件(北京)有限公司 Testing method and device for software interface state change time
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
CN103237108A (en) * 2013-05-13 2013-08-07 百度在线网络技术(北京)有限公司 Test method and test terminal for mobile terminal

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468916A (en) * 2014-10-24 2015-03-25 天津市康凯特软件科技有限公司 Test method based on cell phone response time
CN104834597A (en) * 2015-03-06 2015-08-12 深信服网络科技(深圳)有限公司 Method and system for measuring application response duration
CN104834597B (en) * 2015-03-06 2017-12-26 深信服网络科技(深圳)有限公司 Using the measuring method and system of response time
CN104951392A (en) * 2015-06-25 2015-09-30 上海卓易科技股份有限公司 Method and device for measuring starting time of application program
CN105468523A (en) * 2015-11-20 2016-04-06 广东欧珀移动通信有限公司 Automatic testing method and device of mobile terminal response time
CN105468523B (en) * 2015-11-20 2018-11-27 广东欧珀移动通信有限公司 A kind of automated testing method and device of mobile terminal response time
CN107038173A (en) * 2016-02-04 2017-08-11 腾讯科技(深圳)有限公司 Application query method and apparatus, similar application detection method and device
CN106874186A (en) * 2016-12-29 2017-06-20 努比亚技术有限公司 A kind of test device of application toggle speed, terminal and method
CN106951370B (en) * 2017-03-17 2021-01-26 深圳普瑞赛思检测技术有限公司 Evaluation method and device for virtual reality equipment program running delay
CN106951370A (en) * 2017-03-17 2017-07-14 深圳普瑞赛思检测技术有限公司 The assessment method and device of virtual reality device program operation delay
CN108900776A (en) * 2018-08-22 2018-11-27 北京百度网讯科技有限公司 Method and apparatus for determining the response time
CN108900776B (en) * 2018-08-22 2020-11-27 北京百度网讯科技有限公司 Method and apparatus for determining response time
CN109885492A (en) * 2019-02-13 2019-06-14 福建天晴数码有限公司 A kind of response time test method and terminal based on image recognition and curve matching
CN109885492B (en) * 2019-02-13 2022-01-28 福建天晴数码有限公司 Response time testing method and terminal based on image recognition and curve fitting
CN110888812A (en) * 2019-11-26 2020-03-17 国核自仪系统工程有限公司 System and method for testing response time of terminal page
CN110888812B (en) * 2019-11-26 2023-11-07 国核自仪系统工程有限公司 Test system and test method for response time of terminal page
CN111405218A (en) * 2020-03-26 2020-07-10 深圳市微测检测有限公司 Touch screen time delay detection method, system, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104090842A (en) Detection method for application program running
CN104102582A (en) Application program running detecting device and terminal
CN105045637A (en) Application start method and terminal
CN108734304B (en) Training method and device of data model and computer equipment
US9632773B2 (en) System, method for cleaning memory space and terminal device with memory space cleaning function
CN110908865A (en) Memory leakage monitoring method and device and electronic equipment
CN108063818B (en) Data downloading method, device, terminal and computer readable storage medium
CN111064712B (en) Game resource packaging method and system
CN108961316B (en) Image processing method and device and server
CN104933090A (en) Information searching method and terminal
CN104346194A (en) Method, device and electronic equipment for starting file loading
CN107402806B (en) Task processing method and device of distributed file architecture
CN107526636B (en) Resource identification method and device
CN104023176A (en) Method and device of processing audio frequency and image information as well as terminal equipment
CN106484779B (en) File operation method and device
US10503430B2 (en) Method and device for clearing data and electronic device
CN110727585A (en) Memory leak detection method and device, electronic equipment and readable storage medium
CN105528428A (en) Image display method and terminal
CN111352791A (en) System application detection method and device, terminal equipment and storage medium
CN104506636A (en) Method and device for synchronizing data
CN104978731A (en) Information processing method and electronic equipment
CN113728655A (en) Method for monitoring the usage of at least one application executed within an operating system, corresponding device, computer program product and computer-readable carrier medium
CN104899023A (en) Data statistic method and device
CN105204903A (en) Process module loading interception method and device
CN106202262B (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141008