The content of the invention
Problem to be solved by this invention is, during the survey of the artificial physical examinations for participating in implementing, it is impossible to which detection is acted
Accurate judgement is made, causes measuring accuracy not high.
In order to solve the above technical problems, the present invention provides a kind of time study method of physical examinations, including:
Step S1, video camera persistently shoots tester's image to fix frame per second, extracts the human body attitude in image;
Step S2, analyzes the human body attitude extracted from each two field picture sequentially in time, searches out first and occurs presetting
One two field picture of the first attitude, is initial frame by the frame flag;
Step S3, is the first frame with initial frame, and continuation is searched for backward in chronological order, until search first to occur presetting
One two field picture of the second attitude, is end frame by the frame flag;
Step S4, counts the totalframes from initial frame to end frame, the fixed frame per second of totalframes combination is calculated tested
The duration of action.
Further, default first attitude in step S2 includes that standing on one leg occurs in the leg of human body attitude, and contacts ground
Pin be standing pin, leave ground pin be the unsettled pin;Default second attitude in the step S3 is included in step s 2
Standing pin is moved or the unsettled pin contact ground.
Further, default first attitude in step S2 includes that lifting occurs in the leg of human body attitude;The step
Default second attitude in S3 includes the leg at least pin contact ground of human body attitude.
Further, in step S1 while video camera persistently shoots tester's image to fix frame per second, also to tester
Light is provided to be irradiated, and towards in video camera shooting direction for tester provides reflective background.
Further, when being irradiated to tester's offer light in step S1, the frequency of light irradiation is the photographed frame of video camera
/ 2nd of rate;Video camera shoots the image to be formed includes bright two field picture and spacer image, and the bright two field picture is to survey in light
Examination person's irradiation is lower to shoot the image for being formed, and the spacer image is the image that formation is shot in the case where light does not irradiate to tester;To phase
Adjacent bright two field picture and spacer image carries out difference, and the human body attitude in image is extracted according to difference result.
The system when present invention also provides a kind of survey of physical examinations, including:
Video camera, for persistently shooting tester's image to fix frame per second;
First search unit, for analyzing the human body attitude extracted from each two field picture sequentially in time, searches out
Occur a two field picture of default first attitude first, be initial frame by the frame flag;
Second search unit, for being the first frame with initial frame, continuation is searched for backward in chronological order, until searching head
The secondary two field picture for default second attitude occur, is end frame by the frame flag;
Timing unit, for counting the totalframes from initial frame to end frame, combines totalframes fixed frame per second and calculates
To the duration of detection action.
Further, the default first attitude action that the first search unit is searched includes that single pin occurs in the leg of human body attitude
Stand, the pin for contacting ground is standing pin, the pin for leaving ground is the unsettled pin;The second default appearance that second search unit is searched
State includes that the standing pin that the first search unit is searched is moved or the unsettled pin contact ground.
Further, the first search unit is searched and occurs leg appearance pair of default first attitude including human body attitude first
Less touch with the ground;Default second attitude that second search unit is searched includes a leg at least pin of human body attitude contiguously
Face.
Further, system also includes during the survey:Light illuminating unit, for persistently shooting survey to fix frame per second in the video camera
While examination person's image, light irradiation is provided to tester;Reflecting unit, towards the video camera shooting direction set, for for
Tester provides reflective background.
Further, when light illuminating unit provides light irradiation to tester, the frequency of light irradiation is the filming frequency of video camera
1/2nd;Video camera shoots the image to be formed including bright two field picture and spacer image, the bright two field picture be light illuminating unit to
Tester's irradiation is lower to shoot the image for being formed, and the spacer image is the figure that formation is shot in the case where light illuminating unit does not irradiate to tester
Picture;Difference is carried out to adjacent bright two field picture and spacer image, the human body attitude in image is extracted according to difference result.
Implement the present invention, by using image procossing, operated during the survey that can realize the physical examinations for automating, not only carry
The accuracy of chronometric data high, and testing efficiency can be improved.
Specific embodiment
Fig. 1 is refer to, Fig. 1 is a kind of flow chart of the time study method of physical examinations that the present invention is provided, including:
Step S1, video camera persistently shoots tester's image to fix frame per second, extracts the human body attitude in image;
Before test, tester stands still in video camera coverage.Self-test starts, and video camera is to fix frame per second
Persistently shoot tester's image.The human body attitude in image is extracted, the human body attitude can be the attitude information of whole human body,
Or simply certain concrete position on human body, such as leg, head, the attitude information such as hand.
In optional mode, when video camera carries out image taking to tester, can be irradiated for tester provides light, and
Towards video camera shooting direction for tester provides reflective background.Wherein, the preferable thermal camera of video camera, light irradiation is preferred
Corresponding infrared illumination source, the reflective background preferably material such as reflective lattice, glass microballoon.In the shooting of video camera
Cheng Zhong, radiation source can be uninterruptedly irradiated, so, for video camera shoot tester's image, then by
Frame extracts the human body attitude in image;Or, the irradiation of Synchronization Control light source and the shooting of video camera, and light source irradiation frequency are
/ 2nd of video camera frame rate, now, video camera shoots the image to be formed includes bright two field picture and spacer image, and this is bright
Two field picture is the image that formation is shot in the case where light irradiates to tester, and the spacer image is to be shot in the case where light does not irradiate to tester
The image of formation;Difference is carried out by adjacent bright two field picture and spacer image, so as to extract image according to difference result
In human body attitude, using this kind of mode, will be easier to extract the human body attitude in image.
Step S2, analyzes the human body attitude extracted from each two field picture sequentially in time, searches out first and occurs presetting
One two field picture of the first attitude, is initial frame by the frame flag;
After step S1 extracts human body attitude from each two field picture, according to the difference of test event, default first is found
Attitude, default first attitude can proceed by the attitude of the project testing for characterization test person, and proceed by record.
Such as in eye closing stands on one leg project, default first attitude includes that standing on one leg occurs in the leg of human body attitude, and
The pin that ground is left in definition is the unsettled pin, and the pin for contacting ground is standing pin.Therefore, when the eye closing project testing that stands on one leg is opened
Begin, after the human body attitude in the tester's image for extracting video camera shooting, each frame figure of searching analysis frame by frame in chronological order
Human body attitude as in, until retrieve occurring the attitude that stands on one leg first(Tester's wherein pin initially moves off ground)Figure
Picture, and the frame corresponding to the image is designated as initial frame, the starting point during survey of the project that stood on one leg as eye closing.
And in the project of looking as far as one's eyes can see, default first attitude includes that lifting occurs in the leg of human body attitude.Therefore, when looking as far as one's eyes can see
Project starts, after the human body attitude in the tester's image for extracting video camera shooting, searching analysis frame by frame in chronological order
Human body attitude in each two field picture, until the image of the attitude that occurs lifting first is retrieved, and by corresponding to the image
Frame is designated as initial frame, as the project of looking as far as one's eyes can see survey when starting point.
Step S3, is the first frame with initial frame, and continuation is searched for backward in chronological order, until search first to occur presetting
One two field picture of the second attitude, is end frame by the frame flag;
Tester being determined after step S2 and starting test, when finding survey after starting point, continuation is carried out to project testing process
Follow the trail of, find default second attitude, default second attitude can be the attitude that characterization test person completes the project testing.
Such as in eye closing stands on one leg test, default second attitude includes the standing pin movement or hanging in step S2
Pin contacts ground.Therefore, after initial frame is marked, the first frame with initial frame as timing, in chronological order with the initial frame
Searched for backward for starting point find tester's standing pin move first or the unsettled pin initial contact ground that two field picture, by this
Frame corresponding to image is designated as end frame, the terminal during survey of the project that stood on one leg as eye closing.
And in test is looked as far as one's eyes can see, the leg at least pin of default second attitude including human body attitude is again contiguously
Face.Therefore, after initial frame is marked, the first frame with initial frame as timing, in chronological order with the initial frame as starting point to
Search afterwards finds tester an at least pin contacts that two field picture on ground again first, and the frame corresponding to the image is designated as
End frame, as the project of looking as far as one's eyes can see survey when terminal.
Step S4, counts the totalframes from initial frame to end frame, the fixed frame per second of totalframes combination is calculated tested
The duration of action.
In testing, it is to be shot with fixing frame per second due to video camera, therefore, need to only count from initial frame and play end
The totalframes that frame stops, can calculate tester and stood on one leg in such as eye closing and project or look as far as one's eyes can see item with reference to the interval time of consecutive frame
Tested duration value in mesh.The tested action of the project that stands on one leg of closing one's eyes is not moved for tester's standing pin
Under the premise of, the unsettled pin is not contacted to earth.It is tester's stagnant sky of both feet to look as far as one's eyes can see the tested action in project.If note is from initial frame to end
Untill frame produce totalframes be M, video camera shoot fixed frame per second be F, then be tested act duration be(M-1)/F.
For eye closing stands on one leg project, the duration value is the test value of the project;For looking as far as one's eyes can see test, then enter
One step obtains h values according to formula h=gt2/2, and the value is the test value of the project, and wherein t is the half of duration.
Using the method for the present invention, by using image procossing, when can realize the physical examinations range estimation of automation, no
But the accuracy of chronometric data is improved, and improves testing efficiency.
Fig. 2 is refer to, the schematic diagram of system when Fig. 2 is a kind of survey of physical examinations that the present invention is provided, the system includes:
Video camera, the first search unit, the second search unit and timing unit.Wherein:
Video camera, for persistently shooting tester's image to fix frame per second, tester is in the coverage of video camera.Enter
One step, system may also include light illuminating unit and reflecting unit during the survey, in video camera shooting process, with light illuminating unit pair
Tester is irradiated, reflecting unit then towards video camera shooting direction for tester provides reflective background.Wherein, video camera can
It is preferred that thermal camera, the preferred infrared illumination source of light illuminating unit correspondence, reflecting unit preferably reflective lattice, glass microballoon etc.
Material.In the shooting process of video camera, light illuminating unit can be uninterruptedly irradiated, so, for video camera
Tester's image of shooting, then extract the human body attitude in image frame by frame;Or, Synchronization Control light illuminating unit and video camera
Shoot, and light illuminating unit irradiation frequency is 1/2nd of video camera frame rate, now, video camera shoots the image bag to be formed
Bright two field picture and spacer image are included, the bright two field picture is the image that formation is shot in the case where light irradiates to tester, the spacer image
It is the image that formation is shot in the case where light does not irradiate to tester;Difference is carried out by adjacent bright two field picture and spacer image,
So as to extract the human body attitude in image according to difference result, using this kind of mode, will be easier to extract the people in image
Body attitude.
First search unit, for analyzing the human body attitude extracted from each two field picture sequentially in time, search is informed against
The secondary two field picture for default first attitude occur, is initial frame by the frame flag.Based on tester's image that video camera shoots, the
The human body attitude that one search unit is extracted from each two field picture, carries out picture search frame by frame, and person proceeds by find characterization test
The attitude of the project testing, that is, preset the first attitude, and will appear from this two field picture of default first attitude labeled as initial
Frame, as starting point when surveying.According to the difference of test event, there is difference in the judgement of default first attitude, such as in single pin of closing one's eyes
In standing project, default first attitude includes that standing on one leg occurs in the leg of human body attitude, and defines that to leave the pin on ground be outstanding
Empty pin, the pin for contacting ground is standing pin;Such as in the project of looking as far as one's eyes can see, presetting the first attitude includes that the leg appearance of human body attitude is double
Less touch with the ground.
Second search unit, for being the first frame with initial frame, continuation is searched for backward in chronological order, until searching head
The secondary two field picture for default second attitude occur, is end frame by the frame flag.When the first search unit finds survey after starting point,
Second searches plain unit continues to be tracked project testing process, and the person that finds characterization test completes the attitude of the project testing, i.e.,
Default second attitude, and this two field picture of default second attitude is will appear from labeled as end frame, as terminal when surveying.According to
There is difference in the difference of test event, the judgement of default second attitude, such as in eye closing stands on one leg test, default second
Attitude includes that standing pin is moved or the unsettled pin contact ground;Such as in test is looked as far as one's eyes can see, default second attitude includes human body appearance
The leg of a state at least pin contacts ground again.
Timing unit, for counting the totalframes from initial frame to end frame, combines totalframes fixed frame per second and calculates
The duration value of the tested action to tester in test event.Wherein, such as the tested action of the project that stands on one leg of closing one's eyes
On the premise of not being moved for tester's standing pin, the unsettled pin is not contacted to earth.It is tester such as to look as far as one's eyes can see the tested action in project
The stagnant sky of both feet.And then, duration value includes the single pin duration such as the project that stands on one leg of closing one's eyes, or such as looks as far as one's eyes can see the stagnant of project
Between space-time.
Using this test system, by using image procossing, the body examination project testing of automation can be realized, not only improved
The accuracy of chronometric data, and improve testing efficiency.
Refer to Fig. 3, Fig. 3 is that the present invention is applied to close one's eyes a kind of specific embodiment of the project of standing on one leg when being surveyed.
Tester 1 stands on test zone 2.The foot of tester 1 is the human body attitude for needing to shoot.Thermal camera 3 is oppositely arranged
Away from about 1 meter of the front of tester 1 place, from the ground highly about 0.05 meter.Reflector 4 is and red at tester 1 after one's death about 0.5 meter
Outer video camera 3 is oppositely arranged and is basically perpendicular to the optical axis of video camera.Computer 5 is connected with thermal camera signal, and it has
Image processing function, including the function such as picture search and treatment, time measuring and calculating.The establishing shot frame per second of thermal camera 3 is set to 40
Frame, alternate per frame is then 0.025 second.Reflector 4 is wide about 1.5 meters, high about 0.2 meter.The reflective surface material of reflector 4 can be reflective
Lattice material, is provided with infrared illumination source 6 by thermal camera 3, for improving the extraction effect to human body attitude in image.
Self-test starts, and thermal camera 3 is shot with fixing the leg that frame per second starts persistently to tester 1.Pressing
In the shooting process of time sequencing, when the both feet before tester 1 is tested are stood, thermal camera 3 is photographed such as figure
Image shown in 4a;Tester 1 start test after when standing on one leg, i.e., tester's left foot leaves ground first, infrared
Video camera 3 photographs image as shown in Figure 4 b, and correspondence image frame is designated as initial frame;In tester, both feet are stood again first
When, i.e., the left foot that tester lifts contacts ground again first, and thermal camera 3 photographs image as illustrated in fig. 4 c, correspondence
Picture frame is designated as end frame.It is last to draw tester with reference to the fixation frame per second measuring and calculating of initial frame, end frame and video camera by computer 5
Duration value in the project that stands on one leg of closing one's eyes.
Fig. 5 is refer to, Fig. 5 is a kind of specific embodiment being applied to when the project of looking as far as one's eyes can see is surveyed of the invention.
Tester 1 stands on test zone 2.Look as far as one's eyes can see test in, selection using the whole body of tester as human body attitude bat
Object is taken the photograph, but for the hang time of tester, image procossing is done with tester leg attitude.The phase of thermal camera 3
To being arranged on away from about 2 meters of the front of tester 1 place, from the ground highly about 1.7 meters.Reflector 4 at tester 1 after one's death about 0.5 meter,
The optical axis of video camera is oppositely arranged and is basically perpendicular to thermal camera 3.Computer 5 is connected with thermal camera signal, tool
There are image processing function, including the function such as picture search and treatment, time measuring and calculating.The fixed frame per second that thermal camera 3 shoots sets
It is 60 frames, alternate per frame is then 0.0167 second.Reflector 4 is wide about 1.5 meters, high about 2.7 meters.The reflective surface material of reflector 4 can
It is reflective lattice material, infrared illumination source 6 is provided with by thermal camera 3, human body attitude is carried for improves video camera
Take effect.
Self-test starts, and thermal camera 3 starts whole body shooting image persistently to tester 1.Chronological
In shooting process, when the both feet before tester tests are stood, thermal camera 3 photographs image as shown in Figure 6 a;Surveying
Examination person start to look as far as one's eyes can see after when lifting first, thermal camera 3 photographs image as shown in Figure 6 b, correspondence image frame
It is designated as initial frame;When the pin after tester looks as far as one's eyes can see contacts to earth first, thermal camera 3 photographs image as fig. 6 c,
Correspondence image frame is designated as end frame.It is last to draw tester with reference to initial frame, end frame and video camera fixation frame per second by computer 5
Hang time value in the project of looking as far as one's eyes can see.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.