A kind of seat-regulating method, device, terminal and storage mediumTechnical field
The embodiment of the present invention relates to image processing techniques more particularly to a kind of seat-regulating method, device, terminal and storage are situated betweenMatter.
Background technique
With flourishing for national economy, automobile has become current particularly important transport facility.External industryDeveloped country is all using auto industry as one of pillar industry in national economy, in recent years, China's economic development is rapid, automobileConsumption is increasingly becoming the important indicator for driving gross national product.Currently, becoming increasingly popular with automobile, vehicle driver is to multiplyingThe requirement for sitting comfort and easy operation is higher and higher, therefore the adjusting of vehicle seat becomes more and more important.
It is existing in terms of automotive seat adjusting, driven usually using the electric switch of mechanical device or button formMotor is to carry out seat adjusting.However existing automotive seat regulative mode, due to use mechanical device or electric switch come intoThe associated adjustment of row seat, therefore cannot ensure that the riding comfort of vehicle driver and seat adjust accuracy, and useMechanical device carries out seat and adjusts low efficiency.
Summary of the invention
The embodiment of the present invention provides a kind of seat-regulating method, device, terminal and storage medium, solves currently employed machineryThe accuracy that device carries out seat adjusting is poor, and low efficiency leads to the problem of rider comfort difference.
In a first aspect, the embodiment of the invention provides a kind of seat-regulating method, this method includes:
The actual angle that the line and preset direction for obtaining camera and occupant's eyes are constituted;
The actual angle is compared with predetermined angle threshold value;
When the size of the actual angle and predetermined angle threshold value meets preset condition, control to adjust height of seat so thatIt obtains the actual angle and reaches predetermined angle threshold value.
Further, the preset direction is vertical direction, correspondingly, described to work as the actual angle and predetermined angle thresholdWhen the size of value meets preset condition, height of seat is controlled to adjust so that the actual angle reaches predetermined angle threshold value, packetIt includes:
When the actual angle is less than predetermined angle threshold value, height of seat is controlled to adjust so that the actual angle reachesTo predetermined angle threshold value.
Further, the preset direction is horizontal direction, correspondingly, described to work as the actual angle and predetermined angle thresholdWhen the size of value meets preset condition, height of seat is controlled to adjust so that the actual angle reaches predetermined angle threshold value, packetIt includes:
When the actual angle is greater than predetermined angle threshold value, height of seat is controlled to adjust so that the actual angle reachesTo predetermined angle threshold value.
Further, before being compared the actual angle with predetermined angle threshold value, further include:
According to the line of the position of camera occupant's eyes corresponding with preset height threshold value, constituted with preset directionAngle, determine predetermined angle threshold value.
Wherein, the camera is located at the top of driver's face orientation.
Wherein, the camera is located on the windshield of steering wheel side.
Second aspect, the embodiment of the invention also provides a kind of seat adjuster, which includes:
Actual angle obtains module, the reality that the line and preset direction for obtaining camera and occupant's eyes are constitutedBorder angle;
Comparison module, for the actual angle to be compared with predetermined angle threshold value;
Height of seat adjustment module, for meeting preset condition when the size of the actual angle and predetermined angle threshold valueWhen, height of seat is controlled to adjust so that the actual angle reaches predetermined angle threshold value.
Further, the preset direction is vertical direction, and correspondingly, the height of seat adjustment module is specifically also usedIn:
When the actual angle is less than predetermined angle threshold value, height of seat is controlled to adjust so that the actual angle reachesTo predetermined angle threshold value.
The third aspect, the embodiment of the invention also provides a kind of terminal, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processingDevice realize any embodiment of that present invention provide it is any as described in seat-regulating method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computerProgram, when which is executed by processor realize any embodiment of that present invention provide it is any as described in seat-regulating method.
The actual corners that the embodiment of the present invention is made up of the line and preset direction that obtain camera and occupant's eyesDegree, actual angle is compared with predetermined angle threshold value;When the size of actual angle and predetermined angle threshold value meets default itemWhen part, height of seat is controlled to adjust so that the actual angle reaches predetermined angle threshold value, compared to artificially judging seat heightDegree carries out seat adjusting using mechanical device, improves the efficiency and accuracy of height of seat adjusting, promotes the comfortable of occupantDegree.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodimentAttached drawing does one and simply introduces, it should be apparent that, drawings in the following description are some embodiments of the invention, for thisFor the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings othersAttached drawing.
Fig. 1 is a kind of flow diagram for seat-regulating method that the embodiment of the present invention one provides;
Fig. 2 is a kind of scheme of installation for camera that the embodiment of the present invention one provides;
Fig. 3 is a kind of actual angle schematic diagram for vertical direction that the embodiment of the present invention one provides;
Fig. 4 is a kind of actual angle schematic diagram for horizontal direction that the embodiment of the present invention one provides;
Fig. 5 is a kind of structural schematic diagram of seat adjuster provided by Embodiment 2 of the present invention;
Fig. 6 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present inventionFigure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention oneSection Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doingEvery other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of flow chart for seat-regulating method that the embodiment of the present invention one provides.The technical solution of the present embodimentIt can be adapted for the case where height of seat is adjusted.This method can be by a kind of seat tune provided in an embodiment of the present inventionRegulating device executes, which can be realized by the way of software and/or hardware, and be configured at intelligent terminal, such as mobile phone,It is applied in computer, camera or vehicle.This method specifically includes following operation:
The actual angle that S110, the line for obtaining camera and occupant's eyes and preset direction are constituted.
The occupant of different heights needs the seat of corresponding different height, just can guarantee comfort level.Illustratively, in dining tableThe height of the use that surrounding has many seats to meet multiple members in family, different home member is different, if seat can be certainlyMain modulation height adjusts the height of seat for the different heights using user, and the use that can better meet user needsIt asks, guarantees the comfort level of user.In another usage scenario, the height of the different driver of the steering position of vehicle is different,Whether the visual field that the height of the seat of steering position directly results in driver is open, influences the safety driven.Therefore, according to notWith the height of the height adjustment steering position seat of driver, drive safety can be improved, promote the comfort level of driver.
By taking the height adjustment of the seat of steering position as an example, camera can be mounted on to interior driver's face courtTo top position, Fig. 2 be camera scheme of installation.Optionally, camera 10 can be located at close to steering wheel sideWindshield on.The position can better meet the demand that camera 10 obtains Characteristics of Drivers ' Behavior.The height of driver canTo select any organ with driver as the face feature of measurement standard, such as driver:Eyes, eyebrow, nose orPerson's mouth, since eyes are the major organs of vision, the height of eyes is directly related to the open degree in the visual field, thus in this realityApply the commissarial height of height that driver's eyes are selected in example.
The different reality that Fig. 3 is made of the eyes of the occupant of different height from the line of camera and vertical directionAngle.If preset direction is vertical direction, highly it is for the eyes of the people of A and the line of camera and the angle of vertical directionα1, angle α highly for the eyes of the people of B and the line of camera and vertical direction2, it is highly the eyes and camera of the people of CLine and vertical direction angle α3.Wherein, height A<B<C, α1<α2<α3。
S120, the actual angle is compared with predetermined angle threshold value.
Optionally, before being compared the actual angle with predetermined angle threshold value, further include:
According to the line of the position of camera occupant's eyes corresponding with preset height threshold value, constituted with preset directionAngle, determine predetermined angle threshold value.
In Fig. 3, the human eye height B of occupant is the minimum altitude of steering position requirement, if the height of the eyes of occupantDegree can have the danger that can't see things near headstock lower than height B, be easy to happen traffic accident.Therefore, it is possible to by B pairs of heightThe angle [alpha] answered2It is set as predetermined angle threshold value, when the eyes of occupant and the line of camera and the angle of vertical direction are less thanα2When, it can determine that the height of occupant is less than height B, need for the height of the seat of the occupant to be turned up at this time, so thatThe eyes of occupant and the line of camera and the angle of vertical direction reach predetermined angle threshold value, guarantee that the eyes of occupant are highDegree determines unobscured, raising driving safety coefficient.
S130, when the size of the actual angle and predetermined angle threshold value meets preset condition, control to adjust seat heightDegree is so that the actual angle reaches predetermined angle threshold value.
It is correspondingly, described big when the actual angle and predetermined angle threshold value if the preset direction is vertical directionIt is small when meeting preset condition, height of seat is controlled to adjust so that the actual angle reaches predetermined angle threshold value, including:Work as instituteWhen stating actual angle less than predetermined angle threshold value, height of seat is controlled to adjust so that the actual angle reaches predetermined angle thresholdValue.
It is correspondingly, described big when the actual angle and predetermined angle threshold value if the preset direction is horizontal directionIt is small when meeting preset condition, height of seat is controlled to adjust so that the actual angle reaches predetermined angle threshold value, including:Work as instituteWhen stating actual angle greater than predetermined angle threshold value, height of seat is controlled to adjust so that the actual angle reaches predetermined angle thresholdValue.
The different reality that Fig. 4 is made of the eyes of the occupant of different height from the line of camera and horizontal directionAngle.When preset direction is horizontal direction, highly it is for the eyes of the people of A and the line of camera and the angle of horizontal directionβ1, angle β highly for the eyes of the people of B and the line of camera and horizontal direction2, it is highly the eyes and camera of the people of CLine and horizontal direction angle β3.Wherein, height A<B<C, β1>β2>β3。
The actual corners that the embodiment of the present invention is made up of the line and preset direction that obtain camera and occupant's eyesDegree, actual angle is compared with predetermined angle threshold value;When the size of actual angle and predetermined angle threshold value meets default itemWhen part, height of seat is controlled to adjust so that the actual angle reaches predetermined angle threshold value, compared to artificially judging seat heightDegree carries out seat adjusting using mechanical device, improves the efficiency and accuracy of height of seat adjusting, promotes the comfortable of occupantDegree.
Embodiment two
Fig. 5 is a kind of structural block diagram of seat adjuster provided by Embodiment 2 of the present invention.The device is for executingState a kind of seat-regulating method provided by any embodiment.The device includes:
Actual angle obtains module 210, and the line for obtaining camera and occupant's eyes is constituted with preset directionActual angle;
Comparison module 220, for the actual angle to be compared with predetermined angle threshold value;
Height of seat adjustment module 230 meets default item for the size when the actual angle and predetermined angle threshold valueWhen part, height of seat is controlled to adjust so that the actual angle reaches predetermined angle threshold value.
The actual corners that the embodiment of the present invention is made up of the line and preset direction that obtain camera and occupant's eyesDegree, actual angle is compared with predetermined angle threshold value;When the size of actual angle and predetermined angle threshold value meets default itemWhen part, height of seat is controlled to adjust so that the actual angle reaches predetermined angle threshold value, compared to artificially judging seat heightDegree carries out seat adjusting using mechanical device, improves the efficiency and accuracy of height of seat adjusting, promotes the comfortable of occupantDegree.
Further, the preset direction is vertical direction, and correspondingly, the height of seat adjustment module 230 is specific to go backFor:
When the actual angle is less than predetermined angle threshold value, height of seat is controlled to adjust so that the actual angle reachesTo predetermined angle threshold value.
Further, the preset direction is horizontal direction, and correspondingly, the height of seat adjustment module 230 is specific to go backFor:
When the actual angle is greater than predetermined angle threshold value, height of seat is controlled to adjust so that the actual angle reachesTo predetermined angle threshold value.
Further, which further includes:Predetermined angle threshold value determining module, for by the actual angle and defaultBefore angle threshold is compared, according to the line of the position of camera occupant's eyes corresponding with preset height threshold value, withThe angle that preset direction is constituted, determines predetermined angle threshold value.
Wherein, the camera is located at the top of driver's face orientation.
Wherein, the camera is located on the windshield of steering wheel side.
Seat adjuster provided by Embodiment 2 of the present invention improves the efficiency and accuracy of height of seat adjusting, mentionsRise the comfort level of occupant.
Seat tune provided by any embodiment of the invention can be performed in seat adjuster provided by the embodiment of the present inventionSection method has the corresponding functional module of execution method and beneficial effect.
Embodiment three
Fig. 6 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides, as shown in fig. 6, the terminal includes placeManage device 30, memory 31, input unit 32 and output device 33;The quantity of processor 30 can be one or more in terminal,In Fig. 6 by taking a processor 30 as an example;Processor 30, memory 31, input unit 32 and output device 33 in terminal can be withIt is connected by bus or other modes, in Fig. 6 for being connected by bus.
Memory 31 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computerSequence and module, if the corresponding program instruction/module of the seat-regulating method in the embodiment of the present invention is (for example, actual angle obtainsModulus block 210, comparison module 220 and height of seat adjustment module 230).Processor 30 is stored in memory 31 by operationSoftware program, instruction and module realize above-mentioned seat thereby executing the various function application and data processing of equipmentAdjusting method.
Memory 31 mainly include storing program area and storage data area, wherein storing program area can storage program area,Application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.In addition,Memory 31 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a diskMemory device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 31 can be wrapped furtherThe memory remotely located relative to processor 30 is included, these remote memories can pass through network connection to equipment.Above-mentioned netThe example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 32 can be used for receiving the number or character information of input, and generate with the user setting of equipment andThe related key signals input of function control.Output device 33 may include that display screen etc. shows equipment.
Example IV
The embodiment of the present invention four also provides a kind of storage medium comprising computer executable instructions, and the computer can be heldWhen being executed by computer processor for executing a kind of seat-regulating method, this method includes for row instruction:
The actual angle that the line and preset direction for obtaining camera and occupant's eyes are constituted;
The actual angle is compared with predetermined angle threshold value;
When the size of the actual angle and predetermined angle threshold value meets preset condition, control to adjust height of seat so thatIt obtains the actual angle and reaches predetermined angle threshold value.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present inventionThe method operation that executable instruction is not limited to the described above, can also be performed seat provided by any embodiment of the invention and adjustsRelevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present inventionIt can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is moreGood embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior artPart can be embodied in the form of software products, which can store in computer readable storage mediumIn, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computerAccess Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is setStandby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art thatThe invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present inventionIt is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, alsoIt may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.