The content of the invention
It is an object of the invention to provide a kind of organizational vitality, blood oxygen change and method for detecting blood oxygen saturation and intelligence eventually
End, it is not necessary to using the detecting instrument of specialty, only need to combine intelligent terminal, you can while a variety of physiological parameters are detected, it is convenient to use
Monitoring of the family to self health status, organizational vitality, blood oxygen change, blood oxygen saturation are such as detected, meets that user wishes to supervise at any time
Survey the requirement of every physiological parameter of reflection health status.
To solve above technical problem, the embodiment of the present invention provides a kind of organizational vitality, blood oxygen change and blood oxygen saturation
Detection method, performed by intelligent terminal, methods described includes:
Gather the video in test serum region;
For each two field picture in the video, RGB triple channels separating treatment is carried out to obtain each two field picture
Corresponding red channel image and green channel image;
According to the red channel image, the green channel image computation organization vitality index figure;
Blood oxygen change is calculated according to the red channel image, the green channel image;
Blood oxygen saturation is calculated according to the red channel image, the green channel image.
Preferably, the video in the collection test serum region, is specifically included:
The test serum region is irradiated by the light source module on the intelligent terminal;
When the light source module irradiates the test serum region, gathered by the photographing module on the intelligent terminal
The video in the test serum region.
Preferably, it is described according to the red channel image, the green channel image computation organization vitality index figure, tool
Body includes:
Red channel image according to corresponding to the i-th two field picture, carry out red color component value extraction process and draw red channel
Image array;
According to the green channel image corresponding to i-th two field picture, carry out green component values extraction process and draw green glow
Channel image matrix;
According to the red channel image array and the green channel image array to corresponding to i-th two field picture
Red channel image and green channel image carry out calculus of differences, calculate the organizational vitality corresponding to i-th two field picture
Index;
According to the organizational vitality index corresponding to i-th two field picture, obtain the tissue corresponding to i-th two field picture and live
Power index map.
Preferably, it is described according to the red channel image array and the green channel image array to i-th frame
Red channel image and green channel image corresponding to image carry out calculus of differences, and it is right to calculate the i-th two field picture institute
The organizational vitality index answered, is specifically included:
Organizational vitality index is calculated according to formula (1),
TiVi=Me-p*M,(1)
Wherein, p is experience factor;
The M is calculated according to formula (2),
Wherein, MredFor the red channel image array, MgreenFor green channel image array, k is the absorption of red-green glow
Coefficient of variation, KgainFor system constants.
Preferably, it is described that blood oxygen change, specific bag are calculated according to the red channel image, the green channel image
Include:
Instruction is chosen according to the region of user and determines testing image region;
Pixel average gray of the red channel image in the testing image region corresponding to the i-th two field picture is calculated,
As the first feux rouges average gray;
Calculate the average ash of pixel of the green channel image in the testing image region corresponding to i-th two field picture
Degree, as the first green glow average gray;
Pixel average gray of the red channel image corresponding to jth two field picture in the testing image region is calculated,
As the second feux rouges average gray;
Calculate the average ash of pixel of the green channel image in the testing image region corresponding to the jth two field picture
Degree, as the second green glow average gray;
According to the first feux rouges average gray, the first green glow average gray, the second feux rouges average gray with
And the second green glow average gray calculates the blood oxygen change.
Preferably, it is described according to the first feux rouges average gray, the first green glow average gray, second feux rouges
Average gray and the second green glow average gray calculate the blood oxygen change, specifically include:
According to formula (3), the oxygen for calculating the testing image region closes the change in concentration Δ C of LactoferrinohAnd reduced blood
The change in concentration Δ C of Lactoferrindoh,
Wherein, I (M, λred,0)、I(M,λgreen, 0) and it is respectively that the first feux rouges average gray and first green glow are put down
Equal gray scale, I (M, λred,t)、I,λgreen) it is respectively the second feux rouges average gray and the second green glow average gray;
εoh(red)、εoh(green) it is respectively oxyhemoglobin to feux rouges and the extinction coefficient of green glow, εdoh(red)、εdoh() difference
It is reduced hemoglobin to feux rouges and the extinction coefficient of green glow;
The change in concentration of Lactoferrin is closed according to the oxygen and the change in concentration of the reduced hemoglobin obtains the blood oxygen
Change.
Preferably, it is described that blood oxygen saturation, specific bag are calculated according to the red channel image, the green channel image
Include:
Instruction is chosen according to the region of user and determines testing image region;
Calculate the average ash of feux rouges of the red channel image in the testing image region corresponding to continuous N two field pictures
Degree, obtains N number of feux rouges average gray;
According to N number of feux rouges average gray, feux rouges scattering strength signal is obtained;
The feux rouges scattering strength signal is filtered and eliminated baseline drift processing, obtain red channel pulse wave letter
Number;
Green glow of the green channel image in the testing image region corresponding to continuous N frames described image is calculated to put down
Equal gray scale, obtain N number of green glow average gray;
According to N number of green glow average gray, green glow scattering strength signal is obtained;
The green glow scattering strength signal is filtered and eliminated baseline drift processing, obtain green channel pulse wave letter
Number;
According to the red channel pulse wave signal and the green channel pulse wave signal, the blood oxygen saturation is calculated
Degree.
Preferably, it is described according to the red channel pulse wave signal and the green channel pulse wave signal, calculate
The blood oxygen saturation includes:
According to the red channel pulse wave signal, feux rouges DC component and feux rouges AC compounent are obtained;
According to the green channel pulse wave signal, green glow DC component and green glow AC compounent are obtained;
Handed over according to the feux rouges DC component, the feux rouges AC compounent, the green glow DC component and the green glow
Flow component, calculate the light absorbs ratio of feux rouges and green glow;
According to the light absorbs ratio, the blood oxygen saturation is calculated.
Preferably, it is described according to the feux rouges DC component, the feux rouges AC compounent, the green glow DC component, with
And the green glow AC compounent, the light absorbs ratio of feux rouges and green glow is calculated, is specifically included:
According to formula (4), the light absorbs ratio is calculated,
Wherein, IAC、λrFor the feux rouges AC compounent, IDC、λrFor the feux rouges DC component, IAC、λgHanded over for the green glow
Flow component, IDC、λgFor the green glow DC component;
It is described according to the light absorbs ratio, calculate the blood oxygen saturation, specifically include:
According to formula (5) and the light absorbs ratio, the blood oxygen saturation is calculated,
Wherein, εoh(red)、εoh(green) it is respectively oxyhemoglobin to feux rouges and the extinction coefficient of green glow, εdoh
(red)、εdoh() is respectively reduced hemoglobin to feux rouges and the extinction coefficient of green glow.
The embodiment of the present invention also provides a kind of intelligent terminal, including processor, memory and is stored in the memory
In and be configured as by the computer program of the computing device, realized described in the computing device during computer program
Organizational vitality, blood oxygen change and the method for detecting blood oxygen saturation stated.
Compared to prior art, a kind of organizational vitality, blood oxygen change and blood oxygen saturation inspection provided in an embodiment of the present invention
Survey method and the beneficial effect of intelligent terminal are:Methods described is performed by intelligent terminal, is specifically included:Gather test serum area
The video in domain, for each two field picture in the video, RGB triple channels separating treatment is carried out to obtain each two field picture
Corresponding red channel image and green channel image, according to the red channel image, the green channel image meter
Organizational vitality index map is calculated, blood oxygen change is calculated according to the red channel image, the green channel image, according to described red
Optical channel image, the green channel image calculate blood oxygen saturation;The detector for implementing to use specialty of the present invention
Device, only it need to combine intelligent terminal, you can while a variety of physiological parameters are detected, facilitate monitoring of the user to self health status, such as
Organizational vitality, blood oxygen change, blood oxygen saturation are detected, meets that user wishes to monitor every physiology ginseng of reflection health status at any time
Several requirements.
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 carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Referring to Fig. 1, a kind of its organizational vitality that to be one embodiment of the invention provided, blood oxygen change and blood oxygen saturation
Detection method flow chart, methods described are performed by intelligent terminal, are specifically included:
S10, the video in collection test serum region.
Step S10 specifically also includes:
The test serum region is irradiated by the light source module on the intelligent terminal, irradiates institute in the light source module
When stating test serum region, the video in the test serum region is gathered by the photographing module on the intelligent terminal.
Preferably, shown light source is white light source, irradiates test serum region by the light source, Enhanced Imaging signal,
Prevent imaging signal from being flooded by the noise in the external world, improve the effect of detection.The light source includes being arranged on the intelligent terminal
Flash lamp, the intelligent terminal includes mobile phone or computer.
Preferably, the test serum region includes arm surface tissue, finger pulp loss surface texture, Fingers back surface
Tissue.In fact, the tissue of human body surface, such as face, hand can serve as test serum region, but in view of detection knot
Fruit can be influenceed by the surface curvature in test serum region, and curvature is smaller, and testing result is more excellent, therefore, be chosen in the present embodiment
Test serum region be surface relatively flat tissue regions, such as arm surface tissue, finger pulp loss surface texture, finger
Refer to back surface tissue etc..During the video capture, the camera of the intelligent terminal should be protected with the test serum region
Hold geo-stationary, it is preferable that the video needs to carry out the compensation deals of relative motion, at video stabilization and image registration
Reason.
S20, for each two field picture in the video, carry out RGB triple channels separating treatment to obtain each frame
Red channel image and green channel image corresponding to image.
S30, according to the red channel image, the green channel image computation organization vitality index figure.
S40, according to the red channel image, the green channel image calculate blood oxygen change.
S50, according to the red channel image, the green channel image calculate blood oxygen saturation.
The organizational vitality, blood oxygen change and method for detecting blood oxygen saturation also include by the organizational vitality index map,
The blood oxygen change, the vitality index figure of the blood oxygen saturation and standard, blood oxygen change, blood oxygen saturation contrast, and in institute
Display comparison result on intelligent terminal is stated, for being referred to user.
For in step S30 according to the red channel image, the green channel image computation organization vitality index figure,
Specifically include:
Red channel image according to corresponding to the i-th two field picture, carry out red color component value extraction process and draw red channel
Image array;
According to the green channel image corresponding to i-th two field picture, carry out green component values extraction process and draw green glow
Channel image matrix;
According to the red channel image array and the green channel image array to corresponding to i-th two field picture
Red channel image and green channel image carry out calculus of differences, calculate the organizational vitality corresponding to i-th two field picture
Index;
According to the organizational vitality index corresponding to i-th two field picture, obtain the tissue corresponding to i-th two field picture and live
Power index map.
In a kind of optional embodiment, organizational vitality index TiVi is calculated according to formula (1),
TiVi=Me-p*M,(2)
Wherein, p is experience factor;
The M is calculated according to formula (2),
Wherein, MredFor the red channel image array, MgreenFor green channel image array, k is the absorption of red-green glow
Coefficient of variation, KgainFor system constants;
Calculus of differences processing, meter are carried out to the red channel image, the green channel image by the formula (2)
The organizational vitality index M before linear amendment is calculated, by the formula (1) to the organizational vitality index M before the linear amendment
Linear correcting process is carried out, calculates cutting edge aligned revised organizational vitality index TiVi, according to the linear revised tissue
Vitality index TiVi, obtain the organizational vitality index map corresponding to i-th two field picture.
The organizational vitality index into positive correlation, can reflect the vigor size of tissue with tissue red blood cell concentration.Due to
Red blood cell is different with the absorptivity of green glow to feux rouges, and surrounding tissue is essentially identical to the absorptivity of feux rouges and green glow, by right
The described image separating treatment of collection obtains the red channel image and the green channel image, then by corresponding pixel points
The red light component value and the green component value subtract each other, surrounding tissue can be filtered out, so that the red blood cell is convex
Show and, and by obtaining characterizing the organizational vitality index map of red blood cell concentration distribution, such as Fig. 2 after linearly correcting and calibrating
It is shown, it can be seen that the distribution of spot.
Pseudo-color coding processing is carried out to the organizational vitality index map, draws the organizational vitality index map after coding, such as
Shown in Fig. 3, the distribution of spotting out can be more obviously seen, Fig. 3 is shown as colour picture in intelligent terminal, and wherein color is more black
The shown in red spot of spot, as red blood cell concentration is distributed, and according to Fig. 3, can distinguish the group of low vitality and high vigor
Tissue region.
For calculating the method that blood oxygen changes according to the red channel image, the green channel image in step S40,
Specifically include:
Instruction is chosen according to the region of user and determines testing image region;
Pixel average gray of the red channel image in the testing image region corresponding to the i-th two field picture is calculated,
As the first feux rouges average gray;
Calculate the average ash of pixel of the green channel image in the testing image region corresponding to i-th two field picture
Degree, as the first green glow average gray;
Pixel average gray of the red channel image corresponding to jth two field picture in the testing image region is calculated,
As the second feux rouges average gray;
Calculate the average ash of pixel of the green channel image in the testing image region corresponding to the jth two field picture
Degree, as the second green glow average gray;
According to the first feux rouges average gray, the first green glow average gray, the second feux rouges average gray with
And the second green glow average gray calculates the blood oxygen change.
It is described average grey according to the first feux rouges average gray, the first green glow average gray, second feux rouges
Degree and the second green glow average gray calculate the blood oxygen change, specifically include:
According to formula (3), the oxygen for calculating the testing image region closes Lactoferrin Δ CohChange in concentration and reduced blood
The change in concentration Δ C of Lactoferrindoh,
Wherein, I (M, λred,0)、I(M,λgreen, 0) and it is respectively that the first feux rouges average gray and first green glow are put down
Equal gray scale, I (M, λred,t)、I,λgreen) it is respectively the second feux rouges average gray and the second green glow average gray;
εoh(red)、εoh(green) it is respectively oxyhemoglobin to feux rouges and the extinction coefficient of green glow, εdoh(red)、εdoh() difference
It is reduced hemoglobin to feux rouges and the extinction coefficient of green glow;
The change in concentration of Lactoferrin is closed according to the oxygen and the change in concentration of the reduced hemoglobin obtains the blood oxygen
Change.
Side for calculating blood oxygen saturation in step S50 according to the red channel image, the green channel image
Method, specifically include:
Instruction is chosen according to the region of user and determines testing image region;
Calculate the average ash of feux rouges of the red channel image in the testing image region corresponding to continuous N two field pictures
Degree, obtains N number of feux rouges average gray;
According to N number of feux rouges average gray, feux rouges scattering strength signal is obtained;
The feux rouges scattering strength signal is filtered and eliminated baseline drift processing, obtain red channel pulse wave letter
Number;
Green glow of the green channel image in the testing image region corresponding to continuous N frames described image is calculated to put down
Equal gray scale, obtain N number of green glow average gray;
According to N number of green glow average gray, green glow scattering strength signal is obtained;
The green glow scattering strength signal is filtered and eliminated baseline drift processing, obtain green channel pulse wave letter
Number;
According to the red channel pulse wave signal and the green channel pulse wave signal, the blood oxygen saturation is calculated
Degree.
It is described according to the red channel pulse wave signal and the green channel pulse wave signal, calculate the blood oxygen
Saturation degree, specifically include:
According to the red channel pulse wave signal, feux rouges DC component and feux rouges AC compounent are obtained;
According to the green channel pulse wave signal, green glow DC component and green glow AC compounent are obtained;
Handed over according to the feux rouges DC component, the feux rouges AC compounent, the green glow DC component and the green glow
Flow component, calculate the light absorbs ratio of feux rouges and green glow;
According to the light absorbs ratio, the blood oxygen saturation is calculated.
It is described according to the feux rouges DC component, the feux rouges AC compounent, the green glow DC component and described green
Light AC compounent, the light absorbs ratio of feux rouges and green glow is calculated, is specifically included:
According to formula (4), the light absorbs ratio is calculated,
Wherein, IAC、λrFor the feux rouges AC compounent, IDC、λrFor the feux rouges DC component, IAC、λgHanded over for the green glow
Flow component, IDC、λgFor the green glow DC component.
It is described according to the light absorbs ratio, calculating the blood oxygen saturation includes:
According to formula (5) and the light absorbs ratio, the blood oxygen saturation is calculated,
Wherein, εoh(red)、εoh(green) it is respectively oxyhemoglobin to feux rouges and the extinction coefficient of green glow, εdoh
(red)、εdoh() is respectively reduced hemoglobin to feux rouges and the extinction coefficient of green glow.
Blood is mainly relevant with content of hemoglobin to the degree of absorption of light, and hemoglobin to the absorbability of light with
It is bright that the state of hemoglobin has substantial connection, oxyhemoglobin and reduced hemoglobin to have the absorption coefficient of light of different wave length
Significant difference is different, therefore by detecting absorbing state of the tissue to two different wavelengths of light, and pass through oxygenated blood red eggs in computation organization
White and reduced hemoglobin can deduce blood oxygen saturation and blood oxygen change to the light absorbs situation of different wave length.
A kind of intelligent terminal that one embodiment of the invention provides, including processor, memory and it is stored in the storage
In device and it is configured as, by the computer program of the computing device, realizing during computer program described in the computing device
Step in above-mentioned organizational vitality, blood oxygen change and method for detecting blood oxygen saturation embodiment, such as the step shown in Fig. 1.
Exemplary, the computer program can be divided into one or more module/units, one or more
Individual module/unit is stored in the memory, and by the computing device, to complete the present invention.It is one or more
Individual module/unit can be the series of computation machine programmed instruction section that can complete specific function, and the instruction segment is used to describe institute
State implementation procedure of the computer program in the intelligent terminal.For example, the computer program can be divided into each module/
Unit, each module concrete function are as follows:Video acquisition unit, for gathering the video in test serum region;Image analyzing unit,
For to each two field picture in the video, carrying out RGB triple channels separating treatment to obtain corresponding to each two field picture
Red channel image and green channel image;First computing unit, for according to the red channel image, the green glow
Channel image computation organization vitality index figure;Second computing unit, for according to the red channel image, the green channel
Image calculates blood oxygen change;3rd computing unit, for calculating blood according to the red channel image, the green channel image
Oxygen saturation;Judging unit, for by the organizational vitality index, blood oxygen change, the blood oxygen saturation and standard
Vitality index, blood oxygen change, blood oxygen saturation contrast, draw comparing result;Display unit, for showing the comparing result.
The intelligent terminal can be that mobile phone, desktop PC, notebook, palm PC and cloud server etc. calculate
Equipment.The intelligent terminal may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that retouched
The embodiment stated does not form the restriction to the intelligent terminal, can include more or less parts, or combine some
Part, or different parts, the intelligent terminal can also include input-output equipment, network access equipment, bus etc..
Alleged processor can be CPU (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng the processor is the control centre of the intelligent terminal, utilizes each of various interfaces and the whole intelligent terminal of connection
Individual part.
The memory can be used for storing the computer program and/or module, and the processor is by running or performing
The computer program and/or module being stored in the memory, and the data being stored in memory are called, described in realization
The various functions of intelligent terminal.The memory can mainly include storing program area and storage data field, wherein, storing program area
Can storage program area, the application program needed at least one function it is (such as video acquisition, graphical analysis, calculating, judgement, aobvious
Show) etc.;Storage data field can store according to mobile phone use created data (such as organizational vitality index map, blood oxygen become
Change, blood oxygen saturation etc.) etc..In addition, memory can include high-speed random access memory, non-volatile deposit can also be included
Reservoir, such as hard disk, internal memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other
Volatile solid-state part.
Wherein, if module/unit that the intelligent terminal integrates is realized in the form of SFU software functional unit and as solely
Vertical production marketing in use, can be stored in a computer read/write memory medium.Based on such understanding, this hair
The bright all or part of flow realized in above-described embodiment method, can also by computer program come instruct correlation hardware come
Complete, described computer program can be stored in a computer-readable recording medium, and the computer program is held by processor
During row, can be achieved above-mentioned each embodiment of the method the step of.Wherein, the computer program includes computer program code, institute
It can be source code form, object identification code form, executable file or some intermediate forms etc. to state computer program code.It is described
Computer-readable medium can include:Any entity or device, recording medium, the U of the computer program code can be carried
Disk, mobile hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), arbitrary access
Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..Need
Bright, the content that the computer-readable medium includes can be entered according to legislation in jurisdiction and the requirement of patent practice
The appropriate increase and decrease of row, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium does not include electricity and carried
Ripple signal and telecommunication signal.
A kind of organizational vitality, blood oxygen change and the beneficial effect of method for detecting blood oxygen saturation and intelligent terminal of the present invention
It is:Methods described is performed by intelligent terminal, is specifically included:The video in test serum region is gathered, in the video
Each two field picture, carry out RGB triple channels separating treatment with obtain red channel image corresponding to each two field picture and
Green channel image, according to the red channel image, the green channel image computation organization vitality index figure, according to described
Red channel image, the green channel image calculate blood oxygen change, according to the red channel image, the green channel figure
As calculating blood oxygen saturation, it is not necessary to professional detecting instrument, by with reference to intelligent terminal, you can while detect a variety of physiology ginsengs
Number, facilitates monitoring of the user to self health status, such as detects organizational vitality, blood oxygen change, blood oxygen saturation, meets that user wishes
Monitoring at any time is hoped to reflect the requirement of every physiological parameter of health status.
Above is the preferred embodiment of the present invention, it is noted that for those skilled in the art,
Under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as this hair
Bright protection domain.