CN108227925A - A kind of method, apparatus, equipment and the storage medium of sitting posture adjustment - Google Patents

A kind of method, apparatus, equipment and the storage medium of sitting posture adjustment Download PDF

Info

Publication number
CN108227925A
CN108227925A CN201810015368.3A CN201810015368A CN108227925A CN 108227925 A CN108227925 A CN 108227925A CN 201810015368 A CN201810015368 A CN 201810015368A CN 108227925 A CN108227925 A CN 108227925A
Authority
CN
China
Prior art keywords
eye ball
candidate region
camera
ball position
left eye
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
CN201810015368.3A
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810015368.3A priority Critical patent/CN108227925A/en
Publication of CN108227925A publication Critical patent/CN108227925A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/013Eye tracking input arrangements
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms

Abstract

The embodiment of the invention discloses method, apparatus, equipment and the storage mediums of a kind of adjustment of sitting posture.This method includes:Left camera image candidate region and right camera image candidate region are obtained by binocular camera, and intercept the eyeball candidate region of the left camera image candidate region and the eyeball candidate region of the right camera image candidate region;The eyeball position of eyeball candidate region is oriented according to Ins location mathematical model;When the eyeball position is more than preset position threshold range, sending sitting posture adjustment to the terminal bound with the binocular camera prompts.The embodiment of the present invention obtains image candidate region by binocular camera, and intercept out eyeball candidate region, and then eyeball position is positioned, sitting posture adjustment is judged whether to according to eyeball position and preset position threshold range, to the monitoring of user's sitting posture and sitting posture adjustment is carried out to realize user without wearable device, it is at low cost and ensure user's comfort.

Description

A kind of method, apparatus, equipment and the storage medium of sitting posture adjustment
Technical field
The present embodiments relate to method, apparatus, the equipment that Ins location technical field more particularly to a kind of sitting posture adjust And storage medium.
Background technology
The work of current people and animation can be described as sitting between grid, eat working lunch and wear business wear, exist daily Office was sitting in time before computer more than 8 hours, and the true few people of sitting actively go rest one before computer for a long time Under.
It is the induction eye diseases such as myopia however, really or using eye hypotelorism because sitting regards abnormal sitting posture in addition long And the main reason for discomfort on body.Current market major product is using Wearable, with correcting sitting postures mostly Or prompting eye hypotelorism, but wearable device is hung on glasses or wears outside needing, long periods of wear can be made Into discomfort.
Invention content
The embodiment of the present invention provides a kind of method, apparatus, equipment and the storage medium of sitting posture adjustment, to realize that user need not Wearable device is to the monitoring of user's sitting posture and carries out sitting posture adjustment, at low cost and ensure user's comfort.
In a first aspect, an embodiment of the present invention provides a kind of method of sitting posture adjustment, this method includes:
Left camera image candidate region and right camera image candidate region are obtained, and intercept institute by binocular camera State the first left eye ball candidate region of left camera image candidate region and the first right eye ball candidate region and the right camera shooting The second left eye ball candidate region and the second right eye ball candidate region in head image candidate region;
The first left eye ball candidate region is oriented according to Ins location mathematical model respectively and the first right eye ball is candidate The first left eye ball position and the first right eye ball position in region and the second left eye ball candidate region and the second right eye ball are waited The the second left eye ball position and the second right eye ball position of favored area;
When the first left eye ball position, the first right eye ball position, the second left eye ball position and described second Right eye ball position is more than preset position threshold range, and sending sitting posture adjustment to the terminal bound with the binocular camera carries Show.
Second aspect, the embodiment of the present invention additionally provide a kind of device of sitting posture adjustment, which includes:
Eyeball candidate region acquisition module, for passing through, binocular camera obtains left camera image candidate region and the right side is taken the photograph As head image candidate region, and intercept the first left eye ball candidate region and the first right eye of the left camera image candidate region The the second left eye ball candidate region and the second right eye ball candidate regions of ball candidate region and the right camera image candidate region Domain;
Eyeball position locating module, it is candidate for orienting the first left eye ball respectively according to Ins location mathematical model The the first left eye ball position and the first right eye ball position of region and the first right eye ball candidate region and the second left eye ball are waited Favored area and the second left eye ball position and the second right eye ball position of the second right eye ball candidate region;
Sitting posture adjusts reminding module, for working as the first left eye ball position, the first right eye ball position, described second Left eye ball position and the second right eye ball position are more than preset position threshold range, to what is bound with the binocular camera Terminal sends sitting posture adjustment prompting.
The third aspect, the embodiment of the present invention additionally provide a kind of equipment, including memory, processor and are stored in memory Computer program that is upper and can running on a processor, the processor realize that the embodiment of the present invention is any when performing described program The method of the sitting posture adjustment.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer Program, the method that any sitting posture adjustment of the embodiment of the present invention is realized when which is executed by processor.
The embodiment of the present invention obtains image candidate region by binocular camera, and intercepts out eyeball candidate region, and then Eyeball position is positioned, sitting posture adjustment is judged whether to according to eyeball position and preset position threshold range, with reality Current family to the monitoring of user's sitting posture and carries out sitting posture adjustment without wearable device, at low cost and guarantee user's comfort.
Description of the drawings
Fig. 1 is the flow chart of the method for a kind of sitting posture adjustment that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the method for sitting posture adjustment provided by Embodiment 2 of the present invention;
Fig. 3 is the flow chart of the method for a kind of sitting posture adjustment that the embodiment of the present invention three provides;
Fig. 4 is the structure chart of the device of a kind of sitting posture adjustment that the embodiment of the present invention four provides;
Fig. 5 is a kind of hardware architecture diagram for equipment that the embodiment of the present invention five provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with the accompanying drawings to of the invention specific real Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, Rather than limitation of the invention.
It also should be noted that illustrate only for ease of description, in attached drawing part related to the present invention rather than Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail Into the processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, It is that many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be by again It arranges.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing. The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow chart of the method for a kind of sitting posture adjustment that the embodiment of the present invention one provides, and the present embodiment is applicable to Monitoring to user's sitting posture and the situation for carrying out sitting posture adjustment, this method can be performed by the device that a kind of sitting posture adjusts, and be had Body includes the following steps:
S110, left camera image candidate region and right camera image candidate region are obtained by binocular camera, and Intercept the first left eye ball candidate region of the left camera image candidate region and the first right eye ball candidate region and described Second left eye ball candidate region of right camera image candidate region and the second right eye ball candidate region.
Wherein, binocular camera utilizes bionics principle, and synchronous exposure image, meter are obtained by calibrated dual camera Calculate the third dimension depth information for obtaining two dimensional image pixel.The principle of binocular camera ranging is in left and right two using target point There is anti-for the distance of the directly existing difference (i.e. parallax) of the lateral coordinates being imaged on width view and target point to imaging plane The relationship of ratio.
Specifically, obtain the left camera figure of user's sitting posture respectively by the left camera and right camera of binocular camera As candidate region and right camera image candidate region, the left camera image candidate region of acquisition and right camera image are waited Favored area carries out Face datection, obtains the left camera shooting tribal chief of left camera image candidate region and right camera image candidate region Face image and right camera facial image, then intercept the left camera image candidate region the first left eye ball candidate region and The the second left eye ball candidate region and the second right eye of first right eye ball candidate region and the right camera image candidate region Ball candidate region.
S120, the first left eye ball candidate region and the first right eye ball are oriented according to Ins location mathematical model respectively The the first left eye ball position and the first right eye ball position of candidate region and the second left eye ball candidate region and the second right eye The the second left eye ball position and the second right eye ball position of ball candidate region.
S130, when the first left eye ball position, the first right eye ball position, the second left eye ball position and described Second right eye ball position is more than preset position threshold range, and sitting posture adjustment is sent to the terminal bound with the binocular camera Prompting.
Wherein, terminal device can be but be not limited to mobile terminal (for example, tablet computer, smart mobile phone etc.), dress Equipment (for example, smartwatch, motion bracelet etc.).
Specifically, preset position threshold range user can by being configured with the terminal that binocular camera is bound, The preset position threshold range can be configured according to the use habit of user, this implementation is without limitation, this sets Putting function can be but be not limited to realize by the application end in terminal device or terminal device.
The application end can be the plug-in unit for some client being embedded in terminal device or be the terminal device Operating system plug-in unit, be embedded in terminal device for sitting posture adjustment client or terminal device operation system The application program for sitting posture adjustment in system is used cooperatively;Application end may be in the terminal device one it is independent can The client for sitting posture adjustment is provided, the present embodiment is not limited this.
The embodiment of the present invention obtains image candidate region by binocular camera, and intercepts out eyeball candidate region, and then Eyeball position is positioned, sitting posture adjustment is judged whether to according to eyeball position and preset position threshold range, with reality Current family to the monitoring of user's sitting posture and carries out sitting posture adjustment without wearable device, at low cost and guarantee user's comfort.
Embodiment two
Fig. 2 is a kind of flow chart of the method for sitting posture adjustment provided by Embodiment 2 of the present invention.The present embodiment is with above-mentioned reality It applies and optimizes based on example.
Correspondingly, the method for the present embodiment specifically includes:
S210, the parameter demarcated to the binocular camera and obtain the binocular camera.
Wherein, binocular camera is a kind of widely used sensor, need before use by binocular camera into Rower is determined, and obtains the parameters such as internal reference, distortion factor, the outer ginseng of camera, camera is enable preferably to work.
In binocular camera after proving operation, the parameter of acquisition is made to be corrected operation to original picture, eliminated The distortion of image.Then alignment operation is carried out to the left and right figure of binocular camera so that two images are stringent in the horizontal direction Alignment, on such piece image it is arbitrary a little with its match point on another piece image on a same row.
S220, left camera image candidate region and right camera image candidate region are obtained by binocular camera, and Intercept the first left eye ball candidate region of the left camera image candidate region and the first right eye ball candidate region and described Second left eye ball candidate region of right camera image candidate region and the second right eye ball candidate region.
S230, the first left eye ball candidate region and the first right eye ball are oriented according to Ins location mathematical model respectively The the first left eye ball position and the first right eye ball position of candidate region and the second left eye ball candidate region and the second right eye The the second left eye ball position and the second right eye ball position of ball candidate region.
S240, when according to the first left eye ball position, the first right eye ball position, the second left eye ball position and The eye locations that the parameter of the second right eye ball position confirms are more than preset position threshold range, to the binocular The terminal of camera binding sends sitting posture adjustment prompting.
Specifically, the parameter includes focal length and baseline length;
Distance of the left eye ball apart from camera in the eye locations:
Distance of the right eye ball apart from camera in the eye locations:
Wherein, zlFor distance of the left eye ball apart from camera, zrFor distance of the right eye ball apart from camera, fxFor camera Focal length, b be camera baseline length,For the first left eye ball position,For the first right eye ball position, For the second left eye ball position andFor the second right eye ball position.
The embodiment of the present invention is by demarcating binocular camera and being obtained the parameter of binocular camera, binocular camera Image candidate region is obtained, and intercepts out eyeball candidate region, and then eyeball position is carried out according to Ins location mathematical model Positioning judges whether to sitting posture tune according to the eye locations that the parameter of eyeball position confirms and preset position threshold range It is whole, to the monitoring of user's sitting posture and sitting posture adjustment is carried out to realize user without wearable device, it is at low cost and ensure that user is comfortable Property.
Embodiment three
Fig. 3 is the flow chart of the method for a kind of sitting posture adjustment that the embodiment of the present invention three provides.The present embodiment is with above-mentioned reality It applies and optimizes based on example.
Correspondingly, the method for the present embodiment specifically includes:
S310, the left camera image candidate region to binocular camera acquisition and the right camera image Candidate region carries out recognition of face respectively, orients left camera facial image and right camera facial image.
Wherein, left camera image candidate region and right camera image candidate region, base are obtained by binocular camera In the face recognition algorithms of AdaBoost plus Haar features, the figure of face is used the image candidate region that binocular camera obtains Piece sample by calculating the Haar features of sample, trains some Weak Classifiers (number is set on demand), then uses Weak Classifier is combined into strong classifier, strong classifier by AdaBoost algorithms can be used for carrying out face judgement, after the completion of operation Information of classifier is preserved.Position [x of its face in image candidate region is oriented in this programmeface,yface]T, obtain Its human face region Iface(the transposition operation of symbol T representing matrixes).
S320, the first left eye ball candidate region and first right side are intercepted from the left camera facial image according to preset rules Eyeball candidate region intercepts the second left eye ball candidate region and the second right eye ball candidate regions from the right camera facial image Domain.
Specifically, human face region IfaceThe subgraph of middle interception left/right eyeball region We set wfaceAnd hfaceRespectively IfaceThe width and length of picture.It is assumed that weye_region,heye_regionRectangular area be region where left eye ball, weye_region,heye_regionRectangular area be region where right eye ball, specifically represent be the x coordinate of left upper apex, it is left The y-coordinate on upper vertex, rectangle frame degree, rectangular elevation }, and set:
Weye_region=0.35*wface
heye_region=0.30*hface
According to information above, we are from IfaceIt is middle intercept left/right eyeball region subgraph
Wherein, it is above-mentioned that the x coordinate of left upper apex, the y-coordinate of left upper apex, rectangle frame degree and rectangular elevation are specifically joined Number setting can be self-defined according to practical interception situation progress, and this programme illustrates to this only by taking above-mentioned parameter as an example, Rather than the restriction to interception eyeball candidate region in facial image candidate region in this programme.
S330, the first left eye ball candidate region and the first right eye ball are oriented according to Ins location mathematical model respectively The the first left eye ball position and the first right eye ball position of candidate region and the second left eye ball candidate region and the second right eye The the second left eye ball position and the second right eye ball position of ball candidate region.
For the picture I of each eyeball candidate regioneye, set weye、heyeRespectively IeyeThe width and length of picture.It is first First to scheming IeyeCarry out an inverse operations:Ieye=255-IeyeSo that the monochrome pixels of picture are opposite.Then it sets:Eyeball is candidate Position c passes through bivector [xc,yc]TRepresent eyeball position candidate figure coordinate points (T representing matrix transposition, represent two dimension to Amount is a longitudinal direction amount).(value is [x, y] to arbitrary point X in figureT) gradient vector be And it normalizes so that ‖ g (X) ‖=1.The normalized motion vector of eyeball position candidate c to arbitrary point XEyeball shape is set in picture as circle, then the edge gradient value of eyeball can be bigger, and And if position candidate c is central closer to eyeball, then the normalized motion vector d of c points to eyeball edge and edge at this time The direction of the gradient vector g of point X is more consistent;If vector d is consistent with the direction of vector g, (d (c, X) at this timeT*g (X))2Value it is maximum, and the position where representing c points is our required eyeball centers.Then, eyeball is in IeyePosition Put ceye'=[xeye′,yeye′]TIt can be obtained by the following formula:
When argmax [f (x, y)] function representation causes the value maximum of f (x, y), the value of (x, y).
Finally, position c of the eyeball in artwork I is obtained by following formulaeye=[xeye,yeye]T
S340, get the first left eye ball position, the first right eye ball position, the second left eye ball position and During the second right eye ball position, preset first left eye ball position, first are read from the register of the binocular camera Right eye ball position, the second left eye ball position and the second right eye ball position.
S350, when the first left eye ball position, the first right eye ball position, the second left eye ball position and described Second right eye ball position correspond to the preset first left eye ball position, the first right eye ball position, the second left eye ball position and The difference of second right eye ball position is more than the preset position threshold range, is sent out to the terminal bound with the binocular camera Send sitting posture adjustment prompting.
The embodiment of the present invention obtains image candidate region by binocular camera and carries out recognition of face respectively, orients a left side and takes the photograph As tribal chief's face image and right camera facial image, eyeball candidate region is intercepted out, and then to eyeball position according to preset rules It is positioned, eyeball position is oriented according to Ins location mathematical model respectively, from the binocular after eyeball position is got Reading and preset eyeball position, the difference of the two and position threshold range are judged whether to sit in the register of camera Appearance adjusts, and to the monitoring of user's sitting posture and sitting posture adjustment is carried out to realize user without wearable device, at low cost and ensure user Comfort.
Example IV
Fig. 4 is the structure chart of the device of a kind of sitting posture adjustment that the embodiment of the present invention four provides, and the present embodiment is applicable to Monitoring to user's sitting posture and the situation for carrying out sitting posture adjustment.
As shown in figure 4, the system comprises:Eyeball candidate region acquisition module 410,420 and of eyeball position locating module Sitting posture adjusts reminding module 430, wherein:
Eyeball candidate region acquisition module 410, for pass through binocular camera obtain left camera image candidate region and Right camera image candidate region, and intercept the first left eye ball candidate region and first of the left camera image candidate region The the second left eye ball candidate region and the second right eye ball of right eye ball candidate region and the right camera image candidate region are waited Favored area;
Eyeball position locating module 420, for orienting the first left eye ball respectively according to Ins location mathematical model The the first left eye ball position and the first right eye ball position and second left eye of candidate region and the first right eye ball candidate region Ball candidate region and the second left eye ball position and the second right eye ball position of the second right eye ball candidate region;
Sitting posture adjusts reminding module 430, for working as the first left eye ball position, the first right eye ball position, described Second left eye ball position and the second right eye ball position are more than preset position threshold range, are tied up to the binocular camera Fixed terminal sends sitting posture adjustment prompting.
A kind of device of sitting posture adjustment of the present embodiment, the embodiment of the present invention obtain image candidate area by binocular camera Domain, and eyeball candidate region is intercepted out, and then eyeball position is positioned, according to eyeball position and preset position threshold model It encloses and judges whether to sitting posture adjustment, to the monitoring of user's sitting posture and sitting posture adjustment is carried out to realize user without wearable device, At low cost and guarantee user's comfort.
On the basis of the various embodiments described above, further include:
Parameter acquisition module, for the parameter of the binocular camera to be demarcated and obtained to the binocular camera;
The sitting posture adjusts reminding module, is specifically used for:
When according to the first left eye ball position, the first right eye ball position, the second left eye ball position and described The eye locations that the parameter of second right eye ball position confirms are more than preset position threshold range, to the binocular camera shooting The terminal of head binding sends sitting posture adjustment prompting.
On the basis of the various embodiments described above, the parameter includes focal length and baseline length;
Distance of the left eye ball apart from camera in the eye locations:
Distance of the right eye ball apart from camera in the eye locations:
Wherein, zlFor distance of the left eye ball apart from camera, zrFor distance of the right eye ball apart from camera, fxFor camera Focal length, b be camera baseline length,For the first left eye ball position,For the first right eye ball position,For Second left eye ball position andFor the second right eye ball position.
On the basis of the various embodiments described above, eyeball candidate region acquisition module, including:
The left camera image candidate region and the right camera image obtained to the binocular camera is candidate Region carries out recognition of face respectively, orients left camera facial image and right camera facial image;
According to preset rules the first left eye ball candidate region and the first right eye ball are intercepted from the left camera facial image Candidate region intercepts the second left eye ball candidate region and the second right eye ball candidate region from the right camera facial image.
On the basis of the various embodiments described above, the sitting posture adjusts reminding module, including:
Get the first left eye ball position, the first right eye ball position, the second left eye ball position and described During the second right eye ball position, preset first left eye ball position, the first right eye are read from the register of the binocular camera Ball position, the second left eye ball position and the second right eye ball position;
When the first left eye ball position, the first right eye ball position, the second left eye ball position and described second Right eye ball position corresponds to and the preset first left eye ball position, the first right eye ball position, the second left eye ball position and second The difference of right eye ball position is more than the preset position threshold range, sends and sits to the terminal bound with the binocular camera Appearance adjustment prompting.
The device of sitting posture adjustment that the various embodiments described above are provided can perform the sitting posture that any embodiment of the present invention is provided The method of adjustment has the corresponding function module of method and advantageous effect for performing sitting posture adjustment.
Embodiment five
As shown in figure 5, for the hardware architecture diagram of a kind of equipment that the embodiment of the present invention five provides, as shown in figure 5, should Equipment includes:
One or more processors 510, in Fig. 5 by taking a processor 510 as an example;
Memory 520;
The equipment can also include:Input unit 530 and output device 540.
Processor 510, memory 520, input unit 530 and output device 540 in the equipment can pass through bus Or other modes connect, in Fig. 4 for being connected by bus.
Memory 520 is used as a kind of non-transient computer readable storage medium storing program for executing, can available for storage software program, computer Program and module are performed, the corresponding program instruction of the method/module (example adjusted such as a kind of sitting posture in the embodiment of the present invention Such as, attached eyeball candidate region shown in Fig. 4 acquisition module 410, eyeball position locating module 420 and sitting posture adjustment reminding module 430).Processor 510 is stored in software program, instruction and module in memory 520 by operation, so as to perform equipment Various function application and data processing, that is, the method for realizing a kind of sitting posture adjustment of above method embodiment.
Memory 520 can include storing program area and storage data field, wherein, storing program area can store operation system System, the required application program of at least one function;Storage data field can be stored uses created data etc. according to equipment. In addition, memory 520 can include high-speed random access memory, can also include non-transitory memory, for example, at least one A disk memory, flush memory device or other non-transitory solid-state memories.In some embodiments, memory 520 can Choosing is included relative to the remotely located memory of processor 510, these remote memories can be set by network connection to terminal It is standby.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 530 can be used for receiving input number or character information and generate with the user setting of equipment with And the key signals input that function control is related.Output device 540 may include that display screen etc. shows equipment.
Embodiment six
The embodiment of the present invention also provides a kind of storage medium for including computer executable instructions, and the computer can perform It instructs when being performed by computer processor for performing a kind of method of sitting posture adjustment, this method includes:
Left camera image candidate region and right camera image candidate region are obtained, and intercept institute by binocular camera State the first left eye ball candidate region of left camera image candidate region and the first right eye ball candidate region and the right camera shooting The second left eye ball candidate region and the second right eye ball candidate region in head image candidate region;
The first left eye ball candidate region is oriented according to Ins location mathematical model respectively and the first right eye ball is candidate The first left eye ball position and the first right eye ball position in region and the second left eye ball candidate region and the second right eye ball are waited The the second left eye ball position and the second right eye ball position of favored area;
When the first left eye ball position, the first right eye ball position, the second left eye ball position and described second Right eye ball position is more than preset position threshold range, and sending sitting posture adjustment to the terminal bound with the binocular camera carries Show.
Optionally, which can be also used for performing the present invention times when being performed by computer processor The technical solution of the method for a kind of sitting posture adjustment that meaning embodiment is provided.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on such understanding, what technical scheme of the present invention substantially in other words contributed to the prior art Part can be embodied in the form of software product, which can be stored in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) performs the method described in each embodiment of the present invention.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art various apparent variations, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. method of sitting posture adjustment, which is characterized in that including:
    Left camera image candidate region and right camera image candidate region are obtained, and intercept the left side by binocular camera The the first left eye ball candidate region and the first right eye ball candidate region of camera image candidate region and the right camera figure As the second left eye ball candidate region and the second right eye ball candidate region of candidate region;
    The first left eye ball candidate region and the first right eye ball candidate region are oriented according to Ins location mathematical model respectively The first left eye ball position and the first right eye ball position and the second left eye ball candidate region and the second right eye ball candidate regions The second left eye ball position and the second right eye ball position in domain;
    When the first left eye ball position, the first right eye ball position, the second left eye ball position and second right eye Ball position is more than preset position threshold range, and sitting posture adjustment prompting is sent to the terminal bound with the binocular camera.
  2. It is 2. according to the method described in claim 1, it is characterized in that, candidate obtaining left camera image by binocular camera Before region and right camera image candidate region, further include:
    The parameter of the binocular camera is demarcated and obtained to the binocular camera;
    It is described to work as the first left eye ball position, the first right eye ball position, the second left eye ball position and described second Right eye ball position is more than preset position threshold range, and sending sitting posture adjustment to the terminal bound with the binocular camera carries Show, specially:
    When according to the first left eye ball position, the first right eye ball position, the second left eye ball position and described second The eye locations that the parameter of right eye ball position confirms are more than preset position threshold range, are tied up to the binocular camera Fixed terminal sends sitting posture adjustment prompting.
  3. 3. according to the method described in claim 2, it is characterized in that, the parameter includes focal length and baseline length;
    Distance of the left eye ball apart from camera in the eye locations:
    Distance of the right eye ball apart from camera in the eye locations:
    Wherein, zlFor distance of the left eye ball apart from camera, zrFor distance of the right eye ball apart from camera, fxCoke for camera Away from, b is the baseline length of camera,For the first left eye ball position,For the first right eye ball position,It is Two left eye ball positions andFor the second right eye ball position.
  4. 4. according to the method described in claim 1, it is characterized in that, described obtain left camera image time by binocular camera Favored area and right camera image candidate region, and intercept the first left eye ball candidate regions of the left camera image candidate region Domain and the first right eye ball candidate region and the second left eye ball candidate region and second of the right camera image candidate region Right eye ball candidate region, including:
    The left camera image candidate region and the right camera image candidate region obtained to the binocular camera Recognition of face is carried out respectively, orients left camera facial image and right camera facial image;
    The first left eye ball candidate region is intercepted from the left camera facial image and the first right eye ball is candidate according to preset rules Region intercepts the second left eye ball candidate region and the second right eye ball candidate region from the right camera facial image.
  5. 5. according to the method described in claim 1, it is characterized in that, described work as the first left eye ball position, first right side Eyeball position, the second left eye ball position and the second right eye ball position are more than preset distance threshold range, Xiang Yusuo The terminal for stating binocular camera binding sends sitting posture adjustment prompting, including:
    Get the first left eye ball position, the first right eye ball position, the second left eye ball position and described second During right eye ball position, preset first left eye ball position, the first right eye ball position are read from the register of the binocular camera It puts, the second left eye ball position and the second right eye ball position;
    When the first left eye ball position, the first right eye ball position, the second left eye ball position and second right eye Ball position corresponds to and the preset first left eye ball position, the first right eye ball position, the second left eye ball position and the second right eye The difference of ball position is more than the preset position threshold range, and sitting posture tune is sent to the terminal bound with the binocular camera Whole prompting.
  6. 6. a kind of device of sitting posture adjustment, which is characterized in that including:
    Eyeball candidate region acquisition module obtains left camera image candidate region and right camera for passing through binocular camera Image candidate region, and intercept the first left eye ball candidate region of the left camera image candidate region and the first right eye ball time Favored area and the second left eye ball candidate region and the second right eye ball candidate region of the right camera image candidate region;
    Eyeball position locating module, for orienting the first left eye ball candidate region respectively according to Ins location mathematical model With the first left eye ball position of the first right eye ball candidate region and the first right eye ball position and the second left eye ball candidate regions Domain and the second left eye ball position and the second right eye ball position of the second right eye ball candidate region;
    Sitting posture adjusts reminding module, for working as the first left eye ball position, the first right eye ball position, second left eye Ball position and the second right eye ball position are more than preset position threshold range, to the terminal bound with the binocular camera Send sitting posture adjustment prompting.
  7. 7. device according to claim 6, which is characterized in that further include:
    Parameter acquisition module, for the parameter of the binocular camera to be demarcated and obtained to the binocular camera;
    The sitting posture adjusts reminding module, is specifically used for:
    When according to the first left eye ball position, the first right eye ball position, the second left eye ball position and described second The eye locations that the parameter of right eye ball position confirms are more than preset position threshold range, are tied up to the binocular camera Fixed terminal sends sitting posture adjustment prompting.
  8. 8. device according to claim 7, which is characterized in that the parameter includes focal length and baseline length;
    Distance of the left eye ball apart from camera in the eye locations:
    Distance of the right eye ball apart from camera in the eye locations:
    Wherein, zlFor distance of the left eye ball apart from camera, zrFor distance of the right eye ball apart from camera, fxCoke for camera Away from, b is the baseline length of camera,For the first left eye ball position,For the first right eye ball position,It is Two left eye ball positions andFor the second right eye ball position.
  9. 9. a kind of equipment including memory, processor and stores the computer journey that can be run on a memory and on a processor Sequence, which is characterized in that the processor is realized when performing described program such as the sitting posture adjustment as described in any in claim 1-5 Method.
  10. 10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The method that the sitting posture adjustment as described in any in claim 1-5 is realized during execution.
CN201810015368.3A 2018-01-08 2018-01-08 A kind of method, apparatus, equipment and the storage medium of sitting posture adjustment Pending CN108227925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810015368.3A CN108227925A (en) 2018-01-08 2018-01-08 A kind of method, apparatus, equipment and the storage medium of sitting posture adjustment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810015368.3A CN108227925A (en) 2018-01-08 2018-01-08 A kind of method, apparatus, equipment and the storage medium of sitting posture adjustment

Publications (1)

Publication Number Publication Date
CN108227925A true CN108227925A (en) 2018-06-29

Family

ID=62645505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810015368.3A Pending CN108227925A (en) 2018-01-08 2018-01-08 A kind of method, apparatus, equipment and the storage medium of sitting posture adjustment

Country Status (1)

Country Link
CN (1) CN108227925A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284002A (en) * 2018-08-29 2019-01-29 北京七鑫易维信息技术有限公司 A kind of user distance evaluation method, device, equipment and storage medium
CN109522866A (en) * 2018-11-29 2019-03-26 宁波视睿迪光电有限公司 Naked eye 3D rendering processing method, device and equipment
CN112748798A (en) * 2019-10-31 2021-05-04 Oppo广东移动通信有限公司 Eyeball tracking calibration method and related equipment
CN114220123A (en) * 2021-12-10 2022-03-22 江苏泽景汽车电子股份有限公司 Posture correction method and device, projection equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793719A (en) * 2014-01-26 2014-05-14 深圳大学 Monocular distance-measuring method and system based on human eye positioning
CN106127163A (en) * 2016-06-29 2016-11-16 深圳大学 A kind of monocular ranging localization detecting system and detection method thereof
CN106503645A (en) * 2016-10-19 2017-03-15 深圳大学 Monocular distance-finding method and system based on Android

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793719A (en) * 2014-01-26 2014-05-14 深圳大学 Monocular distance-measuring method and system based on human eye positioning
CN106127163A (en) * 2016-06-29 2016-11-16 深圳大学 A kind of monocular ranging localization detecting system and detection method thereof
CN106503645A (en) * 2016-10-19 2017-03-15 深圳大学 Monocular distance-finding method and system based on Android

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284002A (en) * 2018-08-29 2019-01-29 北京七鑫易维信息技术有限公司 A kind of user distance evaluation method, device, equipment and storage medium
CN109284002B (en) * 2018-08-29 2020-12-29 北京七鑫易维信息技术有限公司 User distance estimation method, device, equipment and storage medium
CN109522866A (en) * 2018-11-29 2019-03-26 宁波视睿迪光电有限公司 Naked eye 3D rendering processing method, device and equipment
CN112748798A (en) * 2019-10-31 2021-05-04 Oppo广东移动通信有限公司 Eyeball tracking calibration method and related equipment
CN112748798B (en) * 2019-10-31 2023-05-26 Oppo广东移动通信有限公司 Eyeball tracking calibration method and related equipment
CN114220123A (en) * 2021-12-10 2022-03-22 江苏泽景汽车电子股份有限公司 Posture correction method and device, projection equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2021129642A1 (en) Image processing method, apparatus, computer device, and storage medium
AU2015348151B2 (en) Real-time visual feedback for user positioning with respect to a camera and a display
Kuster et al. Gaze correction for home video conferencing
JP6234383B2 (en) Method and system for image processing for gaze correction in video conferencing
WO2018201551A1 (en) Facial image fusion method and apparatus and computing device
CN108227925A (en) A kind of method, apparatus, equipment and the storage medium of sitting posture adjustment
CN114981844A (en) 3D body model generation
CN106682632B (en) Method and device for processing face image
JP2018538593A (en) Head mounted display with facial expression detection function
CN111754415B (en) Face image processing method and device, image equipment and storage medium
US20160314619A1 (en) 3-Dimensional Portrait Reconstruction From a Single Photo
US11482041B2 (en) Identity obfuscation in images utilizing synthesized faces
CN107609946B (en) Display control method and computing device
CN112419454B (en) Face reconstruction method, device, computer equipment and storage medium
EP3971838A1 (en) Personalized face display method and apparatus for three-dimensional character, and device and storage medium
CN113657357B (en) Image processing method, image processing device, electronic equipment and storage medium
CN111815768B (en) Three-dimensional face reconstruction method and device
CN111476151B (en) Eyeball detection method, device, equipment and storage medium
US20160055682A1 (en) Three-dimensional modeling method and electronic apparatus thereof
CN106358006B (en) The bearing calibration of video and device
WO2020119518A1 (en) Control method and device based on spatial awareness of artificial retina
CN110852934A (en) Image processing method and apparatus, image device, and storage medium
US11127218B2 (en) Method and apparatus for creating augmented reality content
Zhai et al. Joint gaze correction and face beautification for conference video using dual sparsity prior
WO2024051289A1 (en) Image background replacement method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination