A kind of method, device and equipment of the installation for camera assembly
Technical field
This specification is related to field of computer technology more particularly to a kind of method, apparatus of the installation for camera assembly
And equipment.
Background technique
For the target equipment for being applied to recognition of face or Face datection, in addition to recognition of face or face datection application
Algorithm accuracy and safety except, due in human face data or face data acquisition phase, the mounting height of camera assembly
First link of recognition of face or Face datection, therefore, the installation pair of camera assembly can be directly influenced with setting angle
It is influenced in the percent of pass of recognition of face or Face datection huge.How the face figure an of high quality is collected in a short time
Picture is most important differentiation ability in recognition of face or the full link of Face datection.
And reality is often, and by camera assembly according to the setting requirements of designer, is fixed on the specified of target equipment
Position (is such as mounted on the top of target equipment), then, the image of user is shot with this.And peace when camera assembly installation
Dress height and setting angle are difficult to formulate a unified standard, moreover, mounting height and setting angle will receive many factors
Influence, the design for the target equipment installed such as camera assembly is different, camera assembly field angle and operating distance are different
Deng, it all may result in the setting angle and mounting height difference of camera assembly, accordingly, it is desirable to provide a kind of algorithm of optimization,
To provide the best mounting height of camera assembly and the technical solution of setting angle.
Summary of the invention
The purpose of this specification embodiment is to provide a kind of method, device and equipment of installation for camera assembly, with
User in the prior art is solved to want to obtain what pushed information needed frequently to operate back and forth between the top and bottom of the page
Problem.
In order to solve the above technical problems, this specification embodiment is achieved in that
A kind of method for installation for camera assembly that this specification embodiment provides, which comprises
The installation parameter of camera assembly to be installed is obtained, the installation parameter includes at least the visual field of the camera assembly
The distance between angle, the user imaged and the installation site of the camera assembly are imaged by the camera assembly
The height of user, one or more in the distance between camera assembly target equipment edge and given side to be installed
?;
According to the installation parameter of the camera assembly, determine that installation of the camera assembly on the target equipment is high
The setting angle of degree and the camera assembly on the target equipment.
Optionally, the installation parameter according to the camera assembly determines the camera assembly in the target equipment
On mounting height and the camera assembly after the setting angle on the target equipment, the method also includes:
Obtain the image that target user is shot by the camera assembly;
According to position of the face-image of the target user in described image, the camera assembly is adjusted in the mesh
Mark the setting angle on equipment.
Optionally, the installation parameter according to the camera assembly determines the camera assembly in the target equipment
On mounting height and the camera assembly after the setting angle on the target equipment, the method also includes:
Obtain the image that target user is shot by the camera assembly;
Based on described image, the installation parameter of the camera assembly, the installation parameter after being adjusted are adjusted;
Based on installation parameter adjusted, mounting height of the camera assembly on the target equipment is adjusted separately,
And setting angle of the camera assembly on the target equipment.
Optionally, the installation parameter include between the user imaged and the installation site of the camera assembly away from
From,
It is described to be based on described image, adjust the installation parameter of the camera assembly, the installation parameter after being adjusted, packet
It includes:
According to the face-image of target user region shared in described image, the target user and institute are determined
State the distance between the installation site of camera assembly;
The distance between installation site based on the target user Yu the camera assembly adjusts the user imaged
The distance between installation site of the camera assembly.
Optionally, the installation parameter includes the user's height imaged by the camera assembly,
It is described to be based on described image, adjust the installation parameter of the camera assembly, the installation parameter after being adjusted, packet
It includes:
According to the face-image of the target user in described image, gender information and the age letter of the target user are determined
Breath;
According to the gender information of the target user and age information, the use imaged by the camera assembly is adjusted
Family height.
Optionally, the planned orbit for including lens assembly in the camera assembly and supplying the lens assembly mobile,
The installation parameter according to the camera assembly determines installation of the camera assembly on the target equipment
Highly and the camera assembly is after the setting angle on the target equipment, the method also includes:
Obtain the image that target user is shot by the camera assembly;
According to position of the face-image of the target user in described image, adjusts the lens assembly and taken the photograph described
As the position in component in planned orbit, so that the face-image of target user described in the image of shooting is located at presumptive area
It is interior.
Optionally, the position according to the face-image of the target user in described image, adjusts the camera lens
Position of the component in the camera assembly in planned orbit, comprising:
Detect the face-image integrity degree of target user described in described image;
The face-image integrity degree of the target user according to described image and the face-image of the target user exist
Position in described image adjusts position of the lens assembly in the camera assembly in planned orbit.
Optionally, the target equipment is that self-help settlement equipment or artificial intelligence sell equipment.
A kind of device for installation for camera assembly that this specification embodiment provides, described device include:
Parameter acquisition module, for obtaining the installation parameter of camera assembly to be installed, the installation parameter is included at least
The distance between installation site of the field angle of the camera assembly, the user imaged and the camera assembly passes through institute
It states between the height of the user that camera assembly is imaged, the camera assembly target equipment edge and given side to be installed
It is one or more in distance;
Output module determines the camera assembly in the target machine for the installation parameter according to the camera assembly
The setting angle of mounting height and the camera assembly on the target equipment on tool.
Optionally, described device further include:
First image collection module, the image shot for obtaining target user by the camera assembly;
The first adjustment module adjusts institute for the position according to the face-image of the target user in described image
State setting angle of the camera assembly on the target equipment.
Optionally, described device further include:
Image collection module, the image shot for obtaining target user by the camera assembly;
Parameter adjustment module adjusts the installation parameter of the camera assembly, after being adjusted for being based on described image
Installation parameter;
Second adjustment module adjusts separately the camera assembly in the target for being based on installation parameter adjusted
The setting angle of mounting height and the camera assembly on the target equipment on equipment.
Optionally, the installation parameter include between the user imaged and the installation site of the camera assembly away from
From the parameter adjustment module, comprising:
First distance determination unit, for the area shared in described image according to the face-image of the target user
Domain determines the distance between the installation site of the target user Yu the camera assembly;
Second distance determination unit, between the installation site based on the target user and the camera assembly away from
From the distance between the installation site of user and the camera assembly that adjustment is imaged.
Optionally, the installation parameter includes the user's height imaged by the camera assembly, the parameter tune
Mould preparation block, comprising:
Information determination unit determines the target user for the face-image according to the target user in described image
Gender information and age information;
Parameter adjustment unit, for according to the target user gender information and age information, adjustment taken the photograph by described
The user's height imaged as component.
Optionally, the planned orbit for including lens assembly in the camera assembly and supplying the lens assembly mobile, it is described
Device further include:
Image collection module, the image shot for obtaining target user by the camera assembly;
Position adjusting type modules adjust institute for the position according to the face-image of the target user in described image
Position of the lens assembly in the camera assembly in planned orbit is stated, so that the face of target user described in the image of shooting
Image is located in presumptive area.
Optionally, the position adjusting type modules, comprising:
Detection unit, for detecting the face-image integrity degree of target user described in described image;
Position adjustment unit, face-image integrity degree and the target for the target user according to described image
Position of the face-image of user in described image adjusts the lens assembly in the camera assembly in planned orbit
Position.
Optionally, the target equipment is that self-help settlement equipment or artificial intelligence sell equipment.
A kind of equipment for installation for camera assembly that this specification embodiment provides, the peace for camera assembly
The equipment of dress includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed
Manage device:
The installation parameter of camera assembly to be installed is obtained, the installation parameter includes at least the visual field of the camera assembly
The distance between angle, the user imaged and the installation site of the camera assembly are imaged by the camera assembly
The height of user, one or more in the distance between camera assembly target equipment edge and given side to be installed
?;
According to the installation parameter of the camera assembly, determine that installation of the camera assembly on the target equipment is high
The setting angle of degree and the camera assembly on the target equipment.
The technical solution provided by above this specification embodiment is as it can be seen that this specification embodiment is to be installed by obtaining
The installation parameter of camera assembly, the installation parameter include at least field angle, the user imaged and the camera shooting group of camera assembly
The distance between installation site of part, the height of the user imaged by camera assembly, camera assembly target to be installed
It is one or more in the distance between equipment edge and given side, then, according to the installation parameter of camera assembly, determine camera shooting
Component is in the setting angle of mounting height and camera assembly on target equipment on target equipment, in this way, can be according to defeated
The different installation parameters entered provide the best mounting height and setting angle of camera assembly, so as to ensure with a camera shooting group
Part is used for different types of target equipment, and the body of optimal recognition of face or Face datection can be reached under different scenes
It tests.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or
Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only
The some embodiments recorded in this specification, for those of ordinary skill in the art, in not making the creative labor property
Under the premise of, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of embodiment of the method for the installation for camera assembly of this specification;
Fig. 2 is the schematic diagram of user's composition of a kind of target equipment of this specification and shooting;
Fig. 3 is a kind of schematic diagram of the installation settings page of camera assembly of this specification;
Fig. 4 is the embodiment of the method for installation of this specification another kind for camera assembly;
For this specification, another is used for the embodiment of the method for the installation of camera assembly to Fig. 5;
For this specification, another is used for the embodiment of the method for the installation of camera assembly to Fig. 6;
For this specification, another is used for the embodiment of the method for the installation of camera assembly to Fig. 7;
Fig. 8 is a kind of Installation practice of the installation for camera assembly of this specification;
Fig. 9 is a kind of apparatus embodiments of the installation for camera assembly of this specification.
Specific embodiment
This specification embodiment provides a kind of method, device and equipment of installation for camera assembly.
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual,
Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, all should belong to
The range of this specification protection.
Embodiment one
As shown in Figure 1, this specification embodiment provides a kind of method of installation for camera assembly, the execution of this method
Main body can be electronic equipment, which can such as terminal device or server, wherein the terminal device can be such as hand
The mobile terminal devices such as machine or tablet computer, can also such as personal computer equipment.The server can be independent service
Device is also possible to the server cluster etc. being made of multiple servers.This method can specifically include following steps:
In step s 102, the installation parameter of camera assembly to be installed is obtained, which includes at least the camera shooting
The distance between the field angle of component, installation site of the user imaged and the camera assembly, by the camera assembly into
One in the distance between the height of user of row camera shooting, the camera assembly target equipment edge and given side to be installed or
It is multinomial.
Wherein, camera assembly can be the component for having camera function, and camera assembly can be camera etc., camera assembly
Usually with the distance range (operating distance for being referred to as camera assembly) of normal focus, imaged when user stands in distance
When the distance between component is in above-mentioned distance range, the facial image of the user of camera assembly shooting can normal focus.
Field angle can be using the camera lens in camera assembly as vertex, can pass through the two of the maximum magnitude of camera lens with the image of measured target
The angle that edge is constituted.The size of field angle determines the field range of camera assembly, and field angle is bigger, the view of camera assembly
It is wild bigger, in addition, the image of the measured target would not be received in camera lens if measured target is more than the field angle.
As shown in Fig. 2, field angle can be divided into horizontal field of view angle and vertical field of view angle, currently, the visual field of the camera lens in camera assembly again
Angle is usually 45 degree or so.For the camera assembly for carrying out Face datection or recognition of face, the corresponding model of field angle
Enclose the success rate for determining acquisition user's face or face data.As shown in Fig. 2, the installation site of user and the camera assembly it
Between distance can be the horizontal distance between user and the camera assembly, be also possible to the installation position of user Yu the camera assembly
Linear distance etc. between setting.As shown in Fig. 2, the height of user can be the height etc. of user.Target equipment, which can be, to be used for
Equipment of the installation of camera assembly, such as common self-service equipment etc., it is specific as self-service cash register equipment, self-service sale device tool or from
Dynamic automatic teller machine etc..As shown in Fig. 2, given side can be stood when ground or user are imaged by the camera assembly it is flat
Face etc., in practical applications, given side are not limited to can also be curved surface etc., can specifically set according to the actual situation for plane
Fixed, this specification embodiment does not limit this.Target equipment edge can be the edge where the position of camera assembly installation, example
The edge of the close screen of the top edge of screen or target equipment screen sides in such as target equipment.
In an implementation, for the target equipment for being applied to recognition of face or Face datection, in addition to recognition of face or people
Except the algorithm accuracy and safety of face detection application, due in human face data or face data acquisition phase, camera assembly
Mounting height and setting angle can directly influence first link of recognition of face or Face datection, therefore, camera shooting group
The installation of part influences the percent of pass of recognition of face or Face datection huge.How a high quality is collected in a short time
Facial image, be most important differentiation ability in recognition of face or the full link of Face datection.And reality is often, and takes the photograph
Mounting height and setting angle when as component installation are difficult to formulate a unified standard, moreover, mounting height and established angle
Degree will receive the influence of many factors, such as may include:
The design of target equipment is different, such as some target equipments are tabletop machine, and the height of target equipment is by putting
Desktop or the podium level decision of the target equipment, and due to the screen position of some target equipments difference, camera assembly needs
It is mounted on above screen, therefore, causes the mounting height of camera assembly also different.
The field angle of camera assembly and operating distance difference, for the camera of different model or different businessmans, visual field
Angle and operating distance are often different, and in order to cover the user of different heights to the maximum extent, this is resulted in required for camera
Mounting height and setting angle are also different.
The user's height imaged by camera assembly is different, and user's height usually has the characteristic of region and point,
For example, southern user's height is lower than the height of adult lower than northern user's height, the height of students in middle and primary schools, different user passes through
Camera assembly can be also different to the best mounting height and setting angle of camera assembly during being imaged.
The distance between screen of camera assembly and target equipment and camera assembly target equipment edge to be installed and
The distance between given side difference, the setting angle for also resulting in camera assembly is different, accordingly, it is desirable to provide a kind of calculation of optimization
Method provides the best mounting height of camera assembly and the technical solution of setting angle with the different installation parameters according to input, from
And, it may be possible to ensure to reach most under different scenes with a camera assembly for different types of target equipment
Good recognition of face or Face datection experience.For this purpose, this specification embodiment provides and a kind of can solve above-mentioned relevant issues
Technical solution can specifically include the following contents:
In order to preferably provide the installation service of camera assembly for user, can be write accordingly by scheduled programming language
Application program, which can be used as a complete independent application program and is mounted on certain electronic equipment, this is answered
Program is used to be also possible to as in functional module setting Mr. Yu's application program, such as the application program is also possible to as one
A functional module is set in the management application of target equipment, becomes the function etc. in the management application of target equipment.Such as
Shown in Fig. 3, the application program write can provide the installation settings page of camera assembly, may include installation in the setting page
The output box of the input frame of parameter and output result, wherein the input frame of installation parameter may include an input frame, can also be with
Including multiple sub- input frames, as shown in figure 3, sub- input frame can be used for requesting user's input such as field angle of the camera assembly,
The distance between installation site of the user that is imaged and the camera assembly, the user that is imaged by the camera assembly
Highly, the data at any one of the distance between camera assembly target equipment edge to be installed and given side, for example, peace
Dress parameter includes the field angle of the camera assembly, the distance between the installation site of the user that is imaged and the camera assembly,
Between the height of the user imaged by the camera assembly, the camera assembly target equipment edge and given side to be installed
Distance etc. four, can be used respectively in four sub- input frames of project following settings of installation parameter, four sub- input frames
In above-mentioned four related contents of input.Exporting result may include mounting height and setting angle etc..
When needing to install camera assembly for target equipment, the electricity for being equipped with above-mentioned application program is can be used in installation personnel
Sub- equipment starts the application program, after the application program launching, the above-mentioned camera shooting group of the available application program of electronic equipment
The setting page of part, then, installation personnel can fill in corresponding number according to the installation parameter provided in the setting page respectively
According to for example, as shown in figure 3, including the field angle of the camera assembly, the user imaged and the camera assembly in the setting page
The distance between installation site, the height of the user imaged by the camera assembly, the camera assembly mesh to be installed
Four projects such as the distance between equipment edge and given side are marked, each item setup has a sub- input frame, for the camera shooting
The corresponding sub- input frame of the field angle project of component, installation personnel can determine the camera shooting by data such as the performances of camera assembly
Determining numerical value can be input to corresponding sub- input frame by the numerical value of the field angle of component;For the user that is imaged with
The corresponding sub- input frame of the distance between installation site of the camera assembly (by taking the horizontal distance of the two as an example) project installs people
Member can measure the numerical value of the horizontal distance between measured target (i.e. user) and the installation site of the camera assembly, in order to guarantee
The accuracy of data can measure multinomial above-mentioned numerical value, so that the corresponding numberical range of the numerical value measured, can will measure
Numberical range be input to corresponding sub- input frame;It is corresponding for the height project of the user imaged by the camera assembly
Sub- input frame, installation personnel can measure the numerical value of the height of different measured targets (i.e. user), can be by the height of measurement
The range of numerical value is input to corresponding sub- input frame;Between the target equipment edge to be installed for the camera assembly and given side
Apart from the corresponding sub- input frame of project, installation personnel can measure camera assembly target equipment edge to be installed and specified
The range of the numerical value of measurement can be input in corresponding sub- input frame by the numerical value in the distance between face (such as ground), on
After the completion of stating data input, user, which can click, to submit key or determines that key, electronic equipment can obtain in installation parameter project
The data in above-mentioned sub- input frame are taken, it is thus possible to get the installation parameter of camera assembly to be installed.
In step S104, according to the installation parameter of above-mentioned camera assembly, determine the camera assembly on the target equipment
Setting angle on the target equipment of mounting height and the camera assembly.
Wherein, mounting height can be the installation site of camera assembly to the vertical range on given side (such as ground), or
The installation site of person's camera assembly to target equipment least significant end vertical range etc..Setting angle can be in camera assembly
Lens assembly and horizontal direction or the angle of vertical direction etc..
In an implementation, it can choose according to the actual situation high for calculating installation of the camera assembly on the target equipment
The algorithm of setting angle on the target equipment of degree and camera assembly, calculating mounting height and calculate setting angle can be with
It is to be realized by two different algorithms, is also possible to realize using the same algorithm, specifically may be set according to actual conditions,
This specification embodiment does not limit this.Algorithm for calculating mounting height and setting angle is set through the above way
Afterwards, the installation parameter of the camera assembly of above-mentioned acquisition can be input in above-mentioned algorithm and is calculated, obtain corresponding mounting height
And setting angle.Specific calculating process can be such that the target of the calculation processes is that the image septum reset image shot exists
The middle position of the image, then can be according to the camera assembly of this in installation parameter target equipment edge to be installed and given side
The distance between (specifically such as can height according to the screen top edge of target equipment apart from ground plus camera assembly distance screen
The fixed range of curtain top edge, obtains height of the camera assembly apart from ground;Fixed in height of the camera assembly apart from ground
In the case of, (it can be set to 27 centimetres according to the average length of the altitude range of the target subject in installation parameter, and face
Deng), the regional scope where face can be calculated, it is then possible to according to the field angle of the camera assembly in installation parameter, meter
The setting angle for calculating camera assembly, is limited at the middle area in camera assembly areas imaging for the region where face
Domain.Above-mentioned treatment process is only a kind of feasible processing mode, in practical applications can also include a variety of implementations, this theory
Bright book embodiment does not limit this.
Electronic equipment can export the mounting height being calculated and setting angle, it can the installation that will be obtained
Height and setting angle are shown in the output box of the output result in the above-mentioned setting page.Installation personnel views output result
Afterwards, camera assembly can be mounted on target equipment according to the setting angle and mounting height shown in output box, in this way,
When needing to image the user before target equipment by camera assembly, it can star the camera assembly and shoot the user's
Image, and the image of shooting can be performed corresponding processing, such as recognition of face or face can be carried out to the image of shooting
Detection, to confirm the identity etc. of user, and can be stored in target equipment or be sent to corresponding service for the image of shooting
Device is stored.
This specification embodiment provides a kind of method of installation for camera assembly, by obtaining camera shooting group to be installed
The installation parameter of part, the installation parameter include at least field angle, the peace of the user and camera assembly that are imaged of camera assembly
The distance between holding position, the height of the user imaged by camera assembly, camera assembly target equipment side to be installed
It is one or more in the distance between edge and given side, then, according to the installation parameter of camera assembly, determine that camera assembly exists
The setting angle of mounting height and camera assembly on target equipment on target equipment, in this way, can be according to input not
The best mounting height and setting angle of camera assembly are provided, with installation parameter so as to ensure to be used for a camera assembly
On different types of target equipment, optimal recognition of face or the experience of Face datection can be reached under different scenes.
Embodiment two
As shown in figure 4, this specification embodiment provides a kind of method of installation for camera assembly, the execution of this method
Main body can be electronic equipment, which can such as terminal device or server, wherein the terminal device can be such as hand
The mobile terminal devices such as machine or tablet computer, can also such as personal computer equipment.The server can be independent service
Device is also possible to the server cluster etc. being made of multiple servers.This method can specifically include following steps:
In step S402, the installation parameter of camera assembly to be installed is obtained, which includes at least the camera shooting
The distance between the field angle of component, installation site of the user imaged and the camera assembly, by the camera assembly into
One in the distance between the height of user of row camera shooting, the camera assembly target equipment edge and given side to be installed or
It is multinomial.
Wherein, target equipment can be user self-help class equipment, such as self-help settlement equipment (specific such as self-service cash register equipment
Or automated teller equipment etc.) or artificial intelligence sell equipment (specifically such as AI sell goods equipment), or can be other any need
The equipment (such as outdoor scene advertising board etc.) etc. of camera assembly is installed.
In step s 404, according to the installation parameter of above-mentioned camera assembly, determine the camera assembly on the target equipment
Setting angle on the target equipment of mounting height and the camera assembly.
In addition, it is contemplated that the data of the installation parameter of camera assembly are possible to not be inconsistent with the corresponding data under actual conditions,
Such as to user's numerical value for estimating of height or numberical range inaccuracy etc., in addition, target equipment manufacturer may be it is difficult to ensure that mesh
The quality for marking equipment, in addition, target equipment may also can make in transit or during installation the lens group in camera assembly
The angle of part shifts, for this reason, it may be necessary to lasting monitoring be carried out to the target equipment in use process, from the data of monitoring
It was found that the camera assembly to go wrong in installation, and school can be carried out to the setting angle of camera assembly by the data of monitoring
Standard guarantees the good experience of the lasting Face datection or recognition of face for meeting actual environment, for this purpose, this specification embodiment mentions
For a kind of optional processing mode, the processing of following steps S406 and step S408 can specifically include.
In step S406, the image that target user is shot by above-mentioned camera assembly is obtained.
Wherein, target user can be multiple users using the camera assembly.
In an implementation, whenever user (i.e. target user) is imaged using the camera assembly installed in above-mentioned target equipment
When, which in the storage unit that is stored in target equipment of image that target user shoots or can will be sent to phase
The server answered is stored.When the duration that the camera assembly uses reaches scheduled duration (such as 7 days or 10 days) or the camera shooting
When the quantity of the image of component shooting reaches predetermined quantity threshold value (such as 1000 or 500), electronic equipment can be from target
The image that camera assembly shooting is obtained in equipment or corresponding server (can be the image in scheduled duration or the figure of shooting
The quantity of picture reaches the image etc. of predetermined quantity threshold value), it is shot so as to get target user by above-mentioned camera assembly
Image.
In step S408, according to the position of the face-image of target user in the images, camera assembly is adjusted in mesh
Mark the setting angle on equipment.
In an implementation, the processing of S406 obtains the image that target user is shot by above-mentioned camera assembly through the above steps
Afterwards, it can analyze the position of the face-image of target user in every image in the images, if the face figure of target user
Picture is excessively on the upper side or excessively on the lower side in the images, then shows that the setting angle of camera assembly does not reach target user's face
Best shooting effect, for this purpose, upper and lower part of the face-image of target user in whole image can be preset
Maximum magnitude, and the face-image of target user range locating in whole image can be set with this, if target user
Face-image be not completely within the scope of this, then show the setting angle of camera assembly do not reach target user face
Best shooting effect, at this point, electronic equipment can be according to the position of the face-image of target user in every image in the images
It sets, the setting angle of above-mentioned calculating is adjusted, the setting angle after being adjusted can mention setting angle adjusted
Installation personnel is supplied, installation personnel can be adjusted the camera assembly on target equipment based on setting angle adjusted.
For example, point of position of the electronic equipment by the face-image to target user in every image in the images
Analysis, determines that the face-image of target user is excessively on the upper side in the images, at this point, electronic equipment can determine the image of shooting
The center of the face-image of center (average value that can be the center of multiple images) and target user (can be with
It is the average value of the face-image of multiple target users), it is then possible to calculate the center of the face-image of target user
After being overlapped with the center of the image of shooting, the angle value that the setting angle of camera assembly needs to adjust can be based on the angle
The setting angle of angle value and above-mentioned calculating determines setting angle adjusted.Then, installation personnel can be based on peace adjusted
Dress angle is adjusted the camera assembly on target equipment.
This specification embodiment provides a kind of method of installation for camera assembly, by obtaining camera shooting group to be installed
The installation parameter of part, the installation parameter include at least field angle, the peace of the user and camera assembly that are imaged of camera assembly
The distance between holding position, the height of the user imaged by camera assembly, camera assembly target equipment side to be installed
It is one or more in the distance between edge and given side, then, according to the installation parameter of camera assembly, determine that camera assembly exists
The setting angle of mounting height and camera assembly on target equipment on target equipment, in this way, can be according to input not
The best mounting height and setting angle of camera assembly are provided, with installation parameter so as to ensure to be used for a camera assembly
On different types of target equipment, optimal recognition of face or the experience of Face datection can be reached under different scenes.
Embodiment three
As shown in figure 5, this specification embodiment provides a kind of method of installation for camera assembly, the execution of this method
Main body can be electronic equipment, which can such as terminal device or server, wherein the terminal device can be such as hand
The mobile terminal devices such as machine or tablet computer, can also such as personal computer equipment.The server can be independent service
Device is also possible to the server cluster etc. being made of multiple servers.This method can specifically include following steps:
In step S502, the installation parameter of camera assembly to be installed is obtained, which includes at least the camera shooting
The distance between the field angle of component, installation site of the user imaged and the camera assembly, by the camera assembly into
One in the distance between the height of user of row camera shooting, the camera assembly target equipment edge and given side to be installed or
It is multinomial.
Wherein, target equipment can be user self-help class equipment, such as self-help settlement equipment (specific such as self-service cash register equipment
Or automated teller equipment etc.) or artificial intelligence sell equipment (specifically such as AI sell goods equipment), or can be other any need
The equipment (such as outdoor scene advertising board etc.) etc. of camera assembly is installed.
In step S504, according to the installation parameter of above-mentioned camera assembly, determine the camera assembly on the target equipment
Setting angle on the target equipment of mounting height and the camera assembly.
In addition, it is contemplated that the data of the installation parameter of camera assembly are possible to not be inconsistent with the corresponding data under actual conditions,
Such as to user's numerical value for estimating of height or numberical range inaccuracy etc., in addition, target equipment manufacturer may be it is difficult to ensure that mesh
The quality for marking equipment, in addition, target equipment may also can make in transit or during installation the lens group in camera assembly
The angle of part shifts, for this reason, it may be necessary to lasting monitoring be carried out to the target equipment in use process, from the data of monitoring
It was found that the camera assembly that goes wrong in installation, and can be by the data of monitoring to the mounting height and/or peace of camera assembly
Dress angle is calibrated, and guarantees the good experience of the lasting Face datection or recognition of face for meeting actual environment, for this purpose, this theory
Bright book embodiment provides a kind of optional processing mode, can specifically include following steps S506~step S510 processing.
In step S506, the image that target user is shot by above-mentioned camera assembly is obtained.
In step S508, it is based on above-mentioned image, adjusts the installation parameter of above-mentioned camera assembly, the installation after being adjusted
Parameter.
In an implementation, the processing of S506 obtains the image that target user is shot by above-mentioned camera assembly through the above steps
Afterwards, it can analyze the face-image of target user in every image, the phase that can be embodied by the face-image of target user
Close information, the installation parameter of camera assembly is adjusted correspondingly, for example, can the face-image based on target user whole
Area size shared in image is opened, between the user image in installation parameter and the installation site of the camera assembly
Distance be adjusted, for another example the distance of whole image center location can also be deviateed according to the face-image of target user,
The height of user in installation parameter is adjusted.By the above-mentioned means, available installation parameter adjusted.
Related content in based on the above embodiment, installation parameter may include the field angle of the camera assembly, taken the photograph
The distance between installation site of the user of picture and the camera assembly, the height of the user imaged by the camera assembly,
It is one or more in the distance between camera assembly target equipment edge to be installed and given side, for including different letters
The installation parameter of breath, specific processing can be different, the optional processing mode of two kinds of above-mentioned steps S508 presented below, specifically can be with
Referring to following manner one and mode two.
Mode one, if installation parameter includes the distance between the user imaged and the installation site of camera assembly,
Then the processing of above-mentioned steps S508 can be realized by following step one and step 2.
Step 1 determines target user and camera shooting according to the face-image of target user shared region in the images
The distance between installation site of component.
In an implementation, the distance between the practical user for carrying out Face datection or recognition of face and camera assembly can not
Together, for example, target equipment for desktop type, before user should be located at target equipment, if the position that user stands is different, mesh
Mark the distance between user and the installation site of camera assembly is different, moreover, for different users, standing place
Habit is also different, therefore with regard to needing to be adjusted the distance between the installation site of the user and camera assembly that are imaged.
Specifically, after the processing of S506 obtains the image that target user is shot by above-mentioned camera assembly through the above steps, Ke Yifen
The face-image of target user in every image is analysed, if installation parameter includes the user imaged and the installation of camera assembly
The distance between position, then the face-image of available target user area size shared in whole image can be with base
In the face-image of target user area size shared in whole image, the installation of target user and camera assembly is calculated
The distance between position.
Step 2, the distance between the installation site based on target user and camera assembly adjust the user imaged
The distance between installation site of camera assembly.
Mode two, if installation parameter includes the user's height imaged by camera assembly, above-mentioned steps S508
Processing can pass through following step one and step 2 and realize.
Step 1 determines gender information and the age of target user according to the face-image of the target user in the image
Information.
In an implementation, the user imaged in practical application by camera assembly may in region locating for target equipment
The average height range of crowd is not inconsistent, for example, found by actual monitored, the male user imaged by camera assembly compared with
It is more, and by the female user that camera assembly is imaged is less or target equipment locating for region be middle and primary schools, by taking the photograph
As the students in middle and primary schools that component is imaged are more, the adult imaged by camera assembly is less etc., in this way, it is necessary to right
The user's height imaged by camera assembly is adjusted.Specifically, the processing of S506 obtains target through the above steps
After the image that user is shot by above-mentioned camera assembly, the face-image of target user in every image can analyze, it can with this
To evaluate ratio shared by female user and male user in the user imaged by camera assembly.It is then possible to logical
The face-image for analyzing target user in every image is crossed, the age point of the user imaged by camera assembly is evaluated
Cloth.
Step 2 adjusts the use imaged by camera assembly according to the gender information of target user and age information
Family height.
In an implementation, the user of all ages and classes different sexes in region locating for the target equipment of available pre-selection storage
Height data can pass through the height data and the above-mentioned progress evaluated of the user of all ages and classes different sexes of acquisition
The age distribution of ratio and the user imaged shared by female user and male user in the user of camera shooting, determination are more accurate
The user's height imaged by camera assembly.
In step S510, it is based on installation parameter adjusted, adjusts separately above-mentioned camera assembly on target equipment
The setting angle of mounting height and camera assembly on the target equipment.
In an implementation, above-mentioned installation parameter adjusted can be input in corresponding algorithm and is calculated, obtained corresponding
Mounting height and setting angle, and above-mentioned steps S504 can be calculated respectively based on obtained mounting height and setting angle
Mounting height and setting angle are adjusted, setting angle and mounting height after being adjusted, can be by installation adjusted
Angle and mounting height are supplied to installation personnel, and installation personnel can be based on setting angle adjusted and mounting height to target
Camera assembly on equipment is adjusted.
This specification embodiment provides a kind of method of installation for camera assembly, by obtaining camera shooting group to be installed
The installation parameter of part, the installation parameter include at least field angle, the peace of the user and camera assembly that are imaged of camera assembly
The distance between holding position, the height of the user imaged by camera assembly, camera assembly target equipment side to be installed
It is one or more in the distance between edge and given side, then, according to the installation parameter of camera assembly, determine that camera assembly exists
The setting angle of mounting height and camera assembly on target equipment on target equipment, in this way, can be according to input not
The best mounting height and setting angle of camera assembly are provided, with installation parameter so as to ensure to be used for a camera assembly
On different types of target equipment, optimal recognition of face or the experience of Face datection can be reached under different scenes.
Example IV
As shown in fig. 6, this specification embodiment provides a kind of method of installation for camera assembly, the execution of this method
Main body can be electronic equipment, which can such as terminal device or server, wherein the terminal device can be such as hand
The mobile terminal devices such as machine or tablet computer, can also such as personal computer equipment.The server can be independent service
Device is also possible to the server cluster etc. being made of multiple servers.This method can specifically include following steps:
In step S602, the installation parameter of camera assembly to be installed is obtained, which includes at least the camera shooting
The distance between the field angle of component, installation site of the user imaged and the camera assembly, by the camera assembly into
One in the distance between the height of user of row camera shooting, the camera assembly target equipment edge and given side to be installed or
It is multinomial.
Wherein, target equipment can be user self-help class equipment, such as self-help settlement equipment (specific such as self-service cash register equipment
Or automated teller equipment etc.) or artificial intelligence sell equipment (specifically such as AI sell goods equipment), or can be other any need
The equipment (such as outdoor scene advertising board etc.) etc. of camera assembly is installed.
In step s 604, according to the installation parameter of above-mentioned camera assembly, determine the camera assembly on the target equipment
Setting angle on the target equipment of mounting height and the camera assembly.
In addition, it is contemplated that the data of the installation parameter of camera assembly are possible to not be inconsistent with the corresponding data under actual conditions,
Such as to user's numerical value for estimating of height or numberical range inaccuracy etc., in addition, target equipment manufacturer may be it is difficult to ensure that mesh
The quality for marking equipment, in addition, target equipment may also can make in transit or during installation the lens group in camera assembly
The angle of part shifts, for this reason, it may be necessary to lasting monitoring be carried out to the target equipment in use process, from the data of monitoring
It was found that the camera assembly that goes wrong in installation, and can be by the data of monitoring to the mounting height and/or peace of camera assembly
Dress angle is calibrated, and guarantees the good experience of the lasting Face datection or recognition of face for meeting actual environment, for this purpose, this theory
Bright book embodiment provides a kind of optional processing mode, can specifically include following steps S606~step S608 processing.
In practical applications, it in order to adjust the shooting area of camera assembly in time, can be set in the camera assembly
There is planned orbit, i.e., includes lens assembly and the planned orbit mobile for the lens assembly in the camera assembly, in this way, for the mirror
The mobile planned orbit of head assembly may include the mobile horizontal rail of horizontal direction being carried out for the lens assembly and for the camera lens
Component carries out the mobile vertical track etc. of vertical direction, can also be along in this way, lens assembly can be moved along horizontal rail
Vertical track is mobile, and to adjust the coverage of lens assembly, concrete processing procedure may refer to following step S606 and step
The processing of S608.
In step S606, the image that target user is shot by above-mentioned camera assembly is obtained.
In step S608, according to position of the face-image of target user in above-mentioned image, adjusts lens assembly and exist
Position in camera assembly in planned orbit, so that the face-image of target user is located in presumptive area in the image of shooting.
In an implementation, it is based on above content, for example, can be shared in the images according to the face-image of target user
Region determines the distance between the installation site of target user and camera assembly, the installation based on target user and camera assembly
The distance between position adjusts the distance between the installation site of the user and camera assembly that are imaged;And/or according to this
The face-image of target user in image determines gender information and the age information of target user, according to the property of target user
Other information and age information adjust the user's height etc. imaged by camera assembly, through the above way available tune
Installation parameter after whole can be based on installation parameter adjusted, obtain corresponding mounting height and setting angle.It can be based on
The mounting height and setting angle that obtained mounting height and setting angle and above-mentioned steps S604 calculates, can be along dampening
The position of plate rail road and/or vertical track adjustment lens assembly in camera assembly in planned orbit, so that in the image of shooting
The face-image of target user is located in presumptive area.
For another example if the face-image of target user is excessively on the upper side or excessively on the lower side in the images, it can basis
The position of the face-image of target user in the images is being taken the photograph along horizontal rail and/or vertical track adjustment lens assembly
As the position in component in planned orbit, so as to be located at presumptive area interior etc. for the face-image of target user in the image of shooting.
The processing mode of above-mentioned steps S608 can be varied, and a kind of optional treatment process presented below specifically may be used
To include the following steps one and step 2.
Step 1 detects the face-image integrity degree of target user in above-mentioned image.
In an implementation, reach scheduled duration (such as 7 days or 10 days) or the camera assembly in the duration that camera assembly uses
After the quantity of the image of shooting reaches predetermined quantity threshold value (such as 1000 or 500), it can calculate and shoot every time
In face-image, position of the facial coordinate in whole image will lead to face if the setting angle of camera assembly is improper
Position of portion's coordinate in whole image is most of all in position on the upper side or on the lower side, is not inconsistent with desired middle position.Such as
The setting angle deviation of fruit camera assembly is excessive, also results in without complete face-image in image, for this purpose, can shoot
Image in detect facial image integrity degree.
Step 2, according to the face-image integrity degree of target user in above-mentioned image and the face-image of target user at this
Position in image adjusts position of the lens assembly in camera assembly in planned orbit.
In an implementation, it can be based on facial positions and face integrity degree, judge that the setting angle of current camera assembly is
It is no to be suitble to current user, if being not suitable for current user, can recalculate or adjust camera assembly setting angle and/
Or mounting height, and position of the adjustment lens assembly in camera assembly in planned orbit according to this.
This specification embodiment provides a kind of method of installation for camera assembly, by obtaining camera shooting group to be installed
The installation parameter of part, the installation parameter include at least field angle, the peace of the user and camera assembly that are imaged of camera assembly
The distance between holding position, the height of the user imaged by camera assembly, camera assembly target equipment side to be installed
It is one or more in the distance between edge and given side, then, according to the installation parameter of camera assembly, determine that camera assembly exists
The setting angle of mounting height and camera assembly on target equipment on target equipment, in this way, can be according to input not
The best mounting height and setting angle of camera assembly are provided, with installation parameter so as to ensure to be used for a camera assembly
On different types of target equipment, optimal recognition of face or the experience of Face datection can be reached under different scenes.
Embodiment five
The present embodiment will provide this specification embodiment a kind of for camera assembly in conjunction with specific application scenarios
The method of installation is explained in detail, and corresponding application scenarios can be as shown in Figure 2, wherein installation parameter at least can wrap
Include between vertical field of view angle, the user imaged and the camera assembly target equipment to be installed of camera assembly it is horizontal away from
From, the height of the user that is imaged by the camera assembly, target equipment edge at a distance from ground in it is one or more.
As shown in fig. 7, this specification embodiment provides a kind of method of installation for camera assembly, the executing subject of this method can be with
For electronic equipment, which can such as terminal device or server, wherein the terminal device can be such as mobile phone or plate
The mobile terminal devices such as computer, can also such as personal computer equipment.The server can be independent server, can also be with
The server cluster etc. being made of multiple servers.This method can specifically include following steps:
In step S702, the installation parameter of camera assembly to be installed is obtained, which includes at least the camera shooting
It is horizontal distance between the vertical field of view angle of component, the user imaged and camera assembly target equipment to be installed, logical
Cross the height of the user that the camera assembly is imaged, target equipment edge at a distance from ground in it is one or more.
Wherein, target equipment can be user self-help class equipment, such as self-help settlement equipment (specific such as self-service cash register equipment
Or automated teller equipment etc.) or artificial intelligence sell equipment (specifically such as AI sell goods equipment), or can be other any need
The equipment (such as outdoor scene advertising board etc.) etc. of camera assembly is installed.
In step S704, according to the installation parameter of above-mentioned camera assembly, determine the camera assembly on the target equipment
Setting angle on the target equipment of mounting height and the camera assembly.
In addition, it is contemplated that the data of the installation parameter of camera assembly are possible to not be inconsistent with the corresponding data under actual conditions,
Such as to user's numerical value for estimating of height or numberical range inaccuracy etc., in addition, target equipment manufacturer may be it is difficult to ensure that mesh
The quality for marking equipment, in addition, target equipment may also can make in transit or during installation the lens group in camera assembly
The angle of part shifts, for this reason, it may be necessary to lasting monitoring be carried out to the target equipment in use process, from the data of monitoring
It was found that the camera assembly that goes wrong in installation, and can be by the data of monitoring to the mounting height and/or peace of camera assembly
Dress angle is calibrated, and guarantees the good experience of the lasting Face datection or recognition of face for meeting actual environment, for this purpose, this theory
Bright book embodiment provides a kind of optional processing mode, can specifically include following steps S706~step S710 processing.
If the face-image of target user is excessively on the upper side or excessively on the lower side in the images, show the peace of camera assembly
Dress angle does not reach the best shooting effect of target user's face, at this point it is possible to according to target user in every image
The position of face-image in the images, is adjusted above-mentioned installation parameter, can specifically include following steps S706~step
The processing of rapid S710.
In step S706, the image that target user is shot by above-mentioned camera assembly is obtained.
In step S708, it is based on above-mentioned image, adjusts the installation parameter of above-mentioned camera assembly, the installation after being adjusted
Parameter.
In an implementation, the processing of S706 obtains the image that target user is shot by above-mentioned camera assembly through the above steps
Afterwards, it can analyze the face-image of target user in every image, the phase that can be embodied by the face-image of target user
Information is closed, the installation parameter of camera assembly is adjusted correspondingly.
Related content in based on the above embodiment, installation parameter may include the camera assembly vertical field of view angle, into
Horizontal distance between the user and camera assembly target equipment to be installed of row camera shooting is imaged by the camera assembly
The height of user, target equipment edge at a distance from ground in it is one or more, the installation comprising different information is joined
Number, specific processing can be different, and the optional processing mode of two kinds of above-mentioned steps S708 presented below specifically may refer to following sides
Formula one and mode two.
Mode one, if installation parameter includes between the user imaged and camera assembly target equipment to be installed
Horizontal distance, then the processing of above-mentioned steps S708 can pass through following step one and step 2 and realize.
Step 1 determines target user and target according to the face-image of target user shared region in the images
Horizontal distance between equipment.
In an implementation, the practical horizontal distance carried out between Face datection or the user and target equipment of recognition of face can be with
Difference, for example, for the target equipment of desktop type, before user should be located at target equipment, if the position that user stands is different,
The distance between target user and target equipment are different, moreover, for different users, the habit of standing place is not yet
Together, therefore with regard to needing the horizontal distance between the target equipment to be installed to the user imaged and the camera assembly to adjust
It is whole.It specifically, can be with after the processing of S706 obtains the image that target user is shot by above-mentioned camera assembly through the above steps
The face-image of target user in every image is analyzed, if installation parameter includes that the user imaged waits for the camera assembly
Horizontal distance between the target equipment of installation, the then face-image of available target user area shared in whole image
Domain size, can the area size shared in whole image of the face-image based on target user, calculate target user with
Horizontal distance between target equipment.
Step 2 is adjusted the user imaged and is taken the photograph with this based on the horizontal distance between target user and target equipment
As the horizontal distance between component target equipment to be installed.
Mode two, if installation parameter includes the user's height imaged by camera assembly, above-mentioned steps S708
Processing can pass through following step one and step 2 and realize.
Step 1 determines gender information and the age of target user according to the face-image of the target user in the image
Information.
Step 2 adjusts the use imaged by camera assembly according to the gender information of target user and age information
Family height.
In step S710, it is based on installation parameter adjusted, adjusts separately above-mentioned camera assembly on target equipment
The setting angle of mounting height and camera assembly on the target equipment.
This specification embodiment provides a kind of method of installation for camera assembly, by obtaining camera shooting group to be installed
The installation parameter of part, the installation parameter include at least field angle, the peace of the user and camera assembly that are imaged of camera assembly
The distance between holding position, the height of the user imaged by camera assembly, camera assembly target equipment side to be installed
It is one or more in the distance between edge and given side, then, according to the installation parameter of camera assembly, determine that camera assembly exists
The setting angle of mounting height and camera assembly on target equipment on target equipment, in this way, can be according to input not
The best mounting height and setting angle of camera assembly are provided, with installation parameter so as to ensure to be used for a camera assembly
On different types of target equipment, optimal recognition of face or the experience of Face datection can be reached under different scenes.
Embodiment six
The above are the methods for the installation for camera assembly that this specification embodiment provides, and are based on same thinking, this
Specification embodiment also provides a kind of device of installation for camera assembly, as shown in Figure 8.
The device for being used for the installation of camera assembly includes: parameter acquisition module 801 and output module 802, in which:
Parameter acquisition module 801, for obtaining the installation parameter of camera assembly to be installed, the installation parameter is at least wrapped
The distance between the field angle for including the camera assembly, the user imaged and the installation site of the camera assembly pass through
Between the height for the user that the camera assembly is imaged, the camera assembly target equipment edge to be installed and given side
Distance in it is one or more;
Output module 802 determines the camera assembly in the target for the installation parameter according to the camera assembly
The setting angle of mounting height and the camera assembly on the target equipment on equipment.
In this specification embodiment, described device further include:
First image collection module, the image shot for obtaining target user by the camera assembly;
The first adjustment module adjusts institute for the position according to the face-image of the target user in described image
State setting angle of the camera assembly on the target equipment.
In this specification embodiment, described device further include:
Image collection module, the image shot for obtaining target user by the camera assembly;
Parameter adjustment module adjusts the installation parameter of the camera assembly, after being adjusted for being based on described image
Installation parameter;
Second adjustment module adjusts separately the camera assembly in the target for being based on installation parameter adjusted
The setting angle of mounting height and the camera assembly on the target equipment on equipment.
In this specification embodiment, the installation parameter includes the user imaged and the installation position of the camera assembly
The distance between set, the parameter adjustment module, comprising:
First distance determination unit, for the area shared in described image according to the face-image of the target user
Domain determines the distance between the installation site of the target user Yu the camera assembly;
Second distance determination unit, between the installation site based on the target user and the camera assembly away from
From the distance between the installation site of user and the camera assembly that adjustment is imaged.
In this specification embodiment, the installation parameter includes the user's height imaged by the camera assembly,
The parameter adjustment module, comprising:
Information determination unit determines the target user for the face-image according to the target user in described image
Gender information and age information;
Parameter adjustment unit, for according to the target user gender information and age information, adjustment taken the photograph by described
The user's height imaged as component.
In this specification embodiment, in the camera assembly include lens assembly and makes a reservation for for the lens assembly is mobile
Track, described device further include:
Image collection module, the image shot for obtaining target user by the camera assembly;
Position adjusting type modules adjust institute for the position according to the face-image of the target user in described image
Position of the lens assembly in the camera assembly in planned orbit is stated, so that the face of target user described in the image of shooting
Image is located in presumptive area.
In this specification embodiment, the position adjusting type modules, comprising:
Detection unit, for detecting the face-image integrity degree of target user described in described image;
Position adjustment unit, face-image integrity degree and the target for the target user according to described image
Position of the face-image of user in described image adjusts the lens assembly in the camera assembly in planned orbit
Position.
In this specification embodiment, the target equipment is that self-help settlement equipment or artificial intelligence sell equipment.
This specification embodiment provides a kind of device of installation for camera assembly, by obtaining camera shooting group to be installed
The installation parameter of part, the installation parameter include at least field angle, the peace of the user and camera assembly that are imaged of camera assembly
The distance between holding position, the height of the user imaged by camera assembly, camera assembly target equipment side to be installed
It is one or more in the distance between edge and given side, then, according to the installation parameter of camera assembly, determine that camera assembly exists
The setting angle of mounting height and camera assembly on target equipment on target equipment, in this way, can be according to input not
The best mounting height and setting angle of camera assembly are provided, with installation parameter so as to ensure to be used for a camera assembly
On different types of target equipment, optimal recognition of face or the experience of Face datection can be reached under different scenes.
Embodiment seven
The above are the devices for the installation for camera assembly that this specification embodiment provides, and are based on same thinking, this
Specification embodiment also provides a kind of equipment of installation for camera assembly, as shown in Figure 9.
The equipment of the installation for camera assembly can be electronic equipment provided by the above embodiment.
The equipment of installation for camera assembly can generate bigger difference because configuration or performance are different, may include
One or more processor 901 and memory 902 can store one or more storages in memory 902
Application program or data.Wherein, memory 902 can be of short duration storage or persistent storage.It is stored in the application journey of memory 902
Sequence may include one or more modules (diagram is not shown), and each module may include to the installation for camera assembly
Equipment in series of computation machine executable instruction.Further, processor 901 can be set to logical with memory 902
Letter executes the series of computation machine executable instruction in memory 902 in the equipment for the installation of camera assembly.For taking the photograph
As the equipment of the installation of component can also include one or more power supplys 903, one or more wired or wireless nets
Network interface 904, one or more input/output interfaces 905, one or more keyboards 906.
Specifically in the present embodiment, the equipment of the installation for camera assembly includes memory and one or one
Above program, perhaps more than one program is stored in memory and one or more than one program can be with for one of them
Including one or more modules, and each module may include to a series of in the equipment for the installation of camera assembly
Computer executable instructions, and be configured to execute this or more than one program by one or more than one processor
Comprising for carrying out following computer executable instructions:
The installation parameter of camera assembly to be installed is obtained, the installation parameter includes at least the visual field of the camera assembly
The distance between angle, the user imaged and the installation site of the camera assembly are imaged by the camera assembly
The height of user, one or more in the distance between camera assembly target equipment edge and given side to be installed
?;
According to the installation parameter of the camera assembly, determine that installation of the camera assembly on the target equipment is high
The setting angle of degree and the camera assembly on the target equipment.
In this specification embodiment, the installation parameter according to the camera assembly determines the camera assembly in institute
Mounting height on target equipment and the camera assembly are stated after the setting angle on the target equipment, further includes:
Obtain the image that target user is shot by the camera assembly;
According to position of the face-image of the target user in described image, the camera assembly is adjusted in the mesh
Mark the setting angle on equipment.
In this specification embodiment, the installation parameter according to the camera assembly determines the camera assembly in institute
Mounting height on target equipment and the camera assembly are stated after the setting angle on the target equipment, further includes:
Obtain the image that target user is shot by the camera assembly;
Based on described image, the installation parameter of the camera assembly, the installation parameter after being adjusted are adjusted;
Based on installation parameter adjusted, mounting height of the camera assembly on the target equipment is adjusted separately,
And setting angle of the camera assembly on the target equipment.
In this specification embodiment, the installation parameter includes the user imaged and the installation position of the camera assembly
The distance between set,
It is described to be based on described image, adjust the installation parameter of the camera assembly, the installation parameter after being adjusted, packet
It includes:
According to the face-image of target user region shared in described image, the target user and institute are determined
State the distance between the installation site of camera assembly;
The distance between installation site based on the target user Yu the camera assembly adjusts the user imaged
The distance between installation site of the camera assembly.
In this specification embodiment, the installation parameter includes the user's height imaged by the camera assembly,
It is described to be based on described image, adjust the installation parameter of the camera assembly, the installation parameter after being adjusted, packet
It includes:
According to the face-image of the target user in described image, gender information and the age letter of the target user are determined
Breath;
According to the gender information of the target user and age information, the use imaged by the camera assembly is adjusted
Family height.
In this specification embodiment, in the camera assembly include lens assembly and makes a reservation for for the lens assembly is mobile
Track,
The installation parameter according to the camera assembly determines installation of the camera assembly on the target equipment
Highly and the camera assembly is after the setting angle on the target equipment, the method also includes:
Obtain the image that target user is shot by the camera assembly;
According to position of the face-image of the target user in described image, adjusts the lens assembly and taken the photograph described
As the position in component in planned orbit, so that the face-image of target user described in the image of shooting is located at presumptive area
It is interior.
In this specification embodiment, the position according to the face-image of the target user in described image is adjusted
Position of the whole lens assembly in the camera assembly in planned orbit, comprising:
Detect the face-image integrity degree of target user described in described image;
The face-image integrity degree of the target user according to described image and the face-image of the target user exist
Position in described image adjusts position of the lens assembly in the camera assembly in planned orbit.
In this specification embodiment, the target equipment is that self-help settlement equipment or artificial intelligence sell equipment.
This specification embodiment provides a kind of equipment of installation for camera assembly, by obtaining camera shooting group to be installed
The installation parameter of part, the installation parameter include at least field angle, the peace of the user and camera assembly that are imaged of camera assembly
The distance between holding position, the height of the user imaged by camera assembly, camera assembly target equipment side to be installed
It is one or more in the distance between edge and given side, then, according to the installation parameter of camera assembly, determine that camera assembly exists
The setting angle of mounting height and camera assembly on target equipment on target equipment, in this way, can be according to input not
The best mounting height and setting angle of camera assembly are provided, with installation parameter so as to ensure to be used for a camera assembly
On different types of target equipment, optimal recognition of face or the experience of Face datection can be reached under different scenes.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment
It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable
Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can
With or may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, the embodiment of this specification can provide as method, system or computer journey
Sequence product.Therefore, complete hardware embodiment, complete software embodiment or knot can be used in this specification one or more embodiment
The form of embodiment in terms of conjunction software and hardware.Moreover, this specification one or more embodiment can be used at one or more
A wherein includes computer-usable storage medium (the including but not limited to magnetic disk storage, CD- of computer usable program code
ROM, optical memory etc.) on the form of computer program product implemented.
The embodiment of this specification is referring to the method, equipment (system) and computer journey according to this specification embodiment
The flowchart and/or the block diagram of sequence product describes.It should be understood that flow chart and/or box can be realized by computer program instructions
The combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in figure.It can provide this
A little computer program instructions to general purpose computer, special purpose computer, Embedded Processor or other may be programmed for camera assembly
Installation equipment processor to generate a machine so that by computer or other may be programmed the peace for camera assembly
The instruction that the processor of the equipment of dress executes generates for realizing in one or more flows of the flowchart and/or block diagram one
The device for the function of being specified in a box or multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other may be programmed the peace for camera assembly
In the equipment of dress computer-readable memory operate in a specific manner, so that finger stored in the computer readable memory
It enables and generates the manufacture including command device, which realizes in one or more flows of the flowchart and/or box
The function of being specified in figure one box or multiple boxes.
These computer program instructions can also be loaded into computer or other may be programmed setting for the installation for camera assembly
It is standby upper, so that execute series of operation steps on a computer or other programmable device to generate computer implemented processing,
To which instruction executed on a computer or other programmable device is provided for realizing in one process of flow chart or multiple streams
The step of function of being specified in journey and/or one or more blocks of the block diagram.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program
Product.Therefore, this specification one or more embodiment can be used complete hardware embodiment, complete software embodiment or combine software
With the form of the embodiment of hardware aspect.Moreover, this specification one or more embodiment can be used it is one or more wherein
It include computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, the light of computer usable program code
Learn memory etc.) on the form of computer program product implemented.
This specification one or more embodiment can computer executable instructions it is general on
It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type
Routine, programs, objects, component, data structure etc..Can also practice in a distributed computing environment this specification one or
Multiple embodiments, in these distributed computing environments, by being executed by the connected remote processing devices of communication network
Task.In a distributed computing environment, the local and remote computer that program module can be located at including storage equipment is deposited
In storage media.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology
For personnel, this specification can have various modifications and variations.It is all made any within the spirit and principle of this specification
Modification, equivalent replacement, improvement etc., should be included within the scope of the claims of this specification.