CN110460772A - Camera Automatic adjustment method, device, equipment and storage medium - Google Patents

Camera Automatic adjustment method, device, equipment and storage medium Download PDF

Info

Publication number
CN110460772A
CN110460772A CN201910747550.2A CN201910747550A CN110460772A CN 110460772 A CN110460772 A CN 110460772A CN 201910747550 A CN201910747550 A CN 201910747550A CN 110460772 A CN110460772 A CN 110460772A
Authority
CN
China
Prior art keywords
camera
deviation angle
face
control instruction
described image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910747550.2A
Other languages
Chinese (zh)
Other versions
CN110460772B (en
Inventor
梁健之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Weaving Point Intelligent Technology Co Ltd
Original Assignee
Guangzhou Weaving Point Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Weaving Point Intelligent Technology Co Ltd filed Critical Guangzhou Weaving Point Intelligent Technology Co Ltd
Priority to CN201910747550.2A priority Critical patent/CN110460772B/en
Publication of CN110460772A publication Critical patent/CN110460772A/en
Application granted granted Critical
Publication of CN110460772B publication Critical patent/CN110460772B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention discloses a kind of camera Automatic adjustment method, device, equipment and storage medium, this method includes the image frame for obtaining acquisition, when detecting in described image picture comprising face, determines first position of the face in described image picture;Determine whether the first position meets regularization condition, if it is, the deviation angle of camera is then determined according to the second position and the first position, the second position includes the center of described image picture, and the offset direction of the deviation angle includes four direction up and down;Control instruction is generated according to the deviation angle, the control instruction keeps the camera mobile with the deviation angle for controlling the motor being connected with the camera.This programme realizes the efficient tracking to face, adjusts more efficient.

Description

Camera Automatic adjustment method, device, equipment and storage medium
Technical field
The invention relates to field of face identification more particularly to a kind of camera Automatic adjustment methods, device, equipment And storage medium.
Background technique
This part intends to provides background or context for the presently filed embodiment stated in claims.Herein Description recognizes it is the prior art not because not being included in this section.
With the development of the technologies such as artificial intelligence, big data, will be used wider and wider for recognition of face is general, recognition of face It is a kind of biological identification technology for carrying out identification based on facial feature information of people, recognition speed is fast, accuracy rate is high, user Experience is preferable.
During being acquired, identify to facial image by brush face payment mechanism, camera is needed with according to shooting Height, the orientation of face are adjusted to reach optimal shooting angle, however existing regulative mode existing defects, need to change Into.
Summary of the invention
The embodiment of the invention provides a kind of camera Automatic adjustment method, device, equipment and storage medium, realize pair The efficient tracking of face is adjusted more efficient.
In a first aspect, the embodiment of the invention provides a kind of camera Automatic adjustment methods, this method comprises:
The image frame for obtaining acquisition determines face in the figure when detecting in described image picture comprising face As the first position in picture;
Determine whether the first position meets regularization condition, if it is, according to the second position and the first position Determine the deviation angle of camera, the second position includes the center of described image picture, the deviation angle it is inclined It moves direction and includes four direction up and down;
Control instruction is generated according to the deviation angle, the control instruction is for controlling the electricity being connected with the camera Machine keeps the camera mobile with the deviation angle.
Second aspect, the embodiment of the invention also provides a kind of camera self-checking device, which includes:
Face location determining module includes people in described image picture when detecting for obtaining the image frame of acquisition When face, first position of the face in described image picture is determined;
Deviation angle determining module, for determining whether the first position meets regularization condition, if it is, according to Two positions and the first position determine the deviation angle of camera, and the second position includes the centre bit of described image picture It sets, the offset direction of the deviation angle includes four direction up and down;
Directive generation module, for according to the deviation angle generate control instruction, the control instruction for control and The connected motor of the camera keeps the camera mobile with the deviation angle.
The third aspect, the embodiment of the invention also provides a kind of equipment, 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 processing Device realizes camera Automatic adjustment method described in the embodiment of the present invention.
Fourth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions Computer executable instructions are adjusted when being executed as computer processor for executing camera described in the embodiment of the present invention automatically Section method.
In the embodiment of the present invention, the image frame of acquisition is obtained, when detecting in described image picture comprising face, really Determine first position of the face in described image picture, determine whether the first position meets regularization condition, if it is, root The deviation angle of camera is determined according to the second position and the first position, the second position includes in described image picture The offset direction of heart position, the deviation angle includes four direction up and down, generates control according to the deviation angle and refers to It enables, the control instruction keeps the camera mobile with the deviation angle for controlling the motor being connected with the camera. In the present solution, realizing the efficient tracking to face automatically by the Multidirectional-moving of motor control camera, it is not necessarily to user hand Dynamic control camera.
Detailed description of the invention
Fig. 1 is a kind of flow chart of camera Automatic adjustment method provided in an embodiment of the present invention;
Fig. 1 a is a kind of schematic diagram of the image frame of acquisition provided in an embodiment of the present invention;
Fig. 1 b is the schematic diagram of the image frame of another acquisition provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another camera Automatic adjustment method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another camera Automatic adjustment method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another camera Automatic adjustment method provided in an embodiment of the present invention;
Fig. 5 is the flow chart of another camera Automatic adjustment method provided in an embodiment of the present invention;
Fig. 6 is a kind of structural block diagram of camera self-checking device provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of equipment provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this Locate described specific embodiment and is used only for explaining the embodiment of the present invention, rather than the restriction to the embodiment of the present invention.In addition also It should be noted that only parts related to embodiments of the present invention are shown rather than entire infrastructure for ease of description, in attached drawing.
Fig. 1 is a kind of flow chart of camera Automatic adjustment method provided in an embodiment of the present invention, and the present embodiment is applicable In the automatic adjustment of camera, this method can be executed by equipment such as host computer, face payment devices, specifically include following step It is rapid:
Step S101, the image frame for obtaining acquisition determines face when detecting in described image picture comprising face First position in described image picture.
In one embodiment, image frame is shot to obtain by camera, which can be integrated in face payment Camera in equipment, wherein face payment devices, which can be, is arranged in supermarket, the intelligence for being paid in market Electronic equipment.The image frame of acquisition is obtained, image recognition is carried out, is determined if comprising face, specifically, determining that image is drawn The method of face present in face can use reference template method, and the image frame of acquisition and standard faces reference template are carried out It compares to determine whether that there are the first positions where face and face;Alternatively, extracting the characteristic information of image frame, sentence With the presence or absence of the part for meeting human face structure distribution characteristics in disconnected this feature information, the portion for meeting human face structure distribution characteristics is found I.e. confirmation is divided to detect face and accordingly determine the first position where the face.
In one embodiment, which can be the position where the face center of the face part recognized, It can also be the position where eye in face, mouth or nose.
Step S102, determine whether the first position meets regularization condition, if it is, according to the second position and described First position determines the deviation angle of camera.
In one embodiment, judged after determining first position, judge whether the first position meets adjustment item Part, specifically, can determine whether the distance of the first position range image picture center, if distance value is more than pre-determined distance Value then determines to meet regularization condition, illustratively, it is assumed that the size of image frame is 30cm*30cm, and pre-determined distance value can be 5cm, that is, determine first position to the position at image frame center be more than 5cm when determine meet regularization condition.As shown in Figure 1a, Fig. 1 a is a kind of schematic diagram of the image frame of acquisition provided in an embodiment of the present invention, and illustratively, first position 1021 is with people Subject to the position at face center, it can determine that the first position 1021 and image frame center are overlapped by Fig. 1 a, that is, be unsatisfactory for Regularization condition.Fig. 1 b is the schematic diagram of the image frame of another acquisition provided in an embodiment of the present invention, as shown in Figure 1 b, first The distance value of 1023 position of position 1022 and image frame center is more than 5cm, then determines that it meets regularization condition.
In one embodiment, true according to the second position and first position after determining that first position meets regularization condition Determine the deviation angle of camera, wherein the second position can be the customized position in image frame, be optionally image Picture center.Wherein, which is the rotation angle of camera, which can be four sides up and down To that is, the camera can four-way rotation.When camera offset, the corresponding range for acquiring picture changes, image frame In include position corresponding change of the face in image frame.In one embodiment, different directions are stored in database Deviation angle correspond to the variation distance of first position, illustratively, camera is drawn along a direction (as laterally) 5 ° of images of rotation The first position of face accordingly translates 2cm in image frame in face.Specifically, calculating the distance of first position and the second position Value a, and the distance value is calculated in component the distance value ax and ay of x-axis and y-axis, according to the distance value and offset stored in database The relationship of angle obtains the bx deviation angle of corresponding ax distance value, and the by deviation angle of corresponding ay distance value, wherein bx is inclined Moving angle is the angle along x-axis rotation offset, and by deviation angle is the angle along y-axis rotation offset, and bx and by are determined as working as Preceding camera needs the deviation angle rotated.
Step S103, control instruction is generated according to the deviation angle, the control instruction is for controlling and the camera shooting The connected motor of head keeps the camera mobile with the deviation angle.
Exemplary, which is generated by the controller that face payment devices integrate, as determined in step S102 Deviation angle bx along x-axis is 5 °, and the deviation angle by along y-axis is 10 °, then generates control instruction and control motor, In the motor be connected with camera for make camera carry out angular deflection, i.e., make camera edge respectively by assigning control instruction X-axis and y-axis rotate 5 ° and 10 °.In an another embodiment, the orientation of the comprehensive rotation of camera can also be calculated, such as along x-axis 30 ° of directions of y-axis angle are rotated, i.e., not using pure water put down or it is pure it is vertical by the way of rotate, using the side for having certain inclination angle Position rotation.
It include face in described image picture when detecting by above scheme it is found that by obtaining the image frame acquired When, it determines first position of the face in described image picture, determines whether the first position meets regularization condition, if It is that the deviation angle of camera is then determined according to the second position and the first position, the second position includes described image The offset direction of the center of picture, the deviation angle includes four direction up and down, raw according to the deviation angle At control instruction, the control instruction makes the camera with the deviation angle for controlling the motor being connected with the camera Degree movement realizes and carries out the adjusting of automatic camera head for the location of face according to the image frame of acquisition, is not necessarily to user It manually adjusts, realizes the efficient tracking to face, adjust more efficient.
In one embodiment, the control module of face payment devices is connected by USB interface with the end PC, and face payment is set Standby includes MCU control circuit plate, and MCU control circuit plate is connected the control for carrying out to motor, motor and camera with motor It is connected, for controlling the rotation of camera, MCU control circuit plate realizes USB connection by USB-HUB, and the end PC mainly includes connecing Mouth layer and application layer, wherein application layer for showing the interface user UI, calculate for realizing recognition of face and Face datection by interface layer Method, while interface layer drives control module by drive software.
Fig. 2 is the flow chart of another camera Automatic adjustment method provided in an embodiment of the present invention, gives one kind and works as Camera shooting head adjusting method when face is not included in image frame.As shown in Fig. 2, technical solution is specific as follows:
Step S201, when detecting the triggering of recognition of face event, control camera carries out picture photographing.
Step S202, the image frame of acquisition is obtained, does not include face in described image picture if detected, to institute It states image frame and carries out human body identification.
In one embodiment, human body identification is carried out if face is not detected in image frame, wherein should Human body includes neck, hand, shoulder etc..
Step S203, the first deviation angle is determined according to position recognition result.
In one embodiment, the first deviation angle is determined according to the different parts identified, illustratively, if identification It is out neck, then deviation angle is that upward (positive direction of the y-axis) deviates 10 °, if identifying that for shoulder, deviation angle is upward (positive direction of the y-axis) deviates 20 °.
Step S204, the first control instruction is generated according to first deviation angle, first control instruction is for controlling Making the motor being connected with the camera keeps the camera mobile with first deviation angle.
By above scheme it is found that if detect in described image picture do not include face, to described image picture into The identification of pedestrian's body region, determines the first deviation angle according to position recognition result, generates first according to first deviation angle Control instruction is not limited to just be able to achieve automatic adjustment after detecting face in this programme, can basis if face is not detected The human body of detection realizes the automatic adjustment of camera, expands the range of automatic adjustment, applicability is stronger.
Fig. 3 is the flow chart of another camera Automatic adjustment method provided in an embodiment of the present invention, gives a kind of base In the method that human body carries out camera automatic adjustment.As shown in figure 3, technical solution is specific as follows:
Step S301, when detecting the triggering of recognition of face event, control camera carries out picture photographing.
Step S302, the image frame of acquisition is obtained, does not include face in described image picture if detected, to institute It states image frame and carries out human body identification.
In one embodiment, human body identification is carried out if face is not detected in image frame, wherein should Human body includes neck, hand, shoulder etc..
Step S303, the associated deviation angle section of corresponding position is searched in preset table according to position recognition result.
In one embodiment, deviation angle section is determined according to the different parts identified, illustratively, if identification It is out neck, then deviation angle section is that upward (positive direction of the y-axis) deviates 8 ° to 12 °, if identified as shoulder, deviation angle Spending section is that upward (positive direction of the y-axis) deviates 15 degree to 25 °.
Step S304, control instruction group is generated according to the deviation angle section, each control in the control instruction group A deviation angle in the corresponding deviation angle section of system instruction.
Wherein, control instruction group makes the camera in the deviation angle for controlling the motor being connected with the camera Degree moves in section.Illustratively, every degree of rotation pause one in deviation angle section in control camera moving process Second, it whether determines in the image for carrying out image recognition comprising face.
Step S305, the picture acquired in moving process to the camera identifies, if recognizing face, Issue the movement that halt instruction terminates the camera.
In one embodiment, the picture of acquisition is identified in real time in camera rotary course, if recognizing face, Issue the movement that halt instruction terminates camera.
By above scheme it is found that searching the associated deviation angle area of corresponding position in preset table according to position recognition result Between, control instruction group is generated according to the deviation angle section, described in each control instruction correspondence in the control instruction group A deviation angle in deviation angle section, the control instruction group make institute for controlling the motor being connected with the camera Camera to be stated to move in the deviation angle section, the program automatically controls camera movement by way of interval off set, Improve the accuracy and efficiency of locating human face.
Fig. 4 is the flow chart of another camera Automatic adjustment method provided in an embodiment of the present invention, gives one kind not The Automatic adjustment method of camera when detecting face.As shown in figure 4, technical solution is specific as follows:
Step S401, the image frame for obtaining acquisition, identifies the image frame.
If step S402, carrying out human body recognition failures to described image picture, instruction is looked in sending, described to look for Seeking instruction rotates the camera with predetermined angle for controlling the motor being connected with the camera.
In one embodiment, if face, which is not detected, is also not detected human body, sending is looked for instruction, is looked for Instruction rotates the camera with predetermined angle for controlling the motor being connected with the camera, wherein the predetermined angle It can be 90 °.
Step S403, the picture acquired in moving process to the camera identifies, if recognizing human body portion Position, then issue the movement that halt instruction terminates the camera.
In one embodiment, identify the picture of acquisition in real time in camera rotary course, if recognize face or Human body then issues the movement that halt instruction terminates camera.
By above scheme it is found that obtaining the image frame of acquisition, which is identified, if to described image Picture carries out human body recognition failures, then issues and look for instruction, described to look for instruction and be connected for control with the camera Motor rotate the camera with predetermined angle, the picture acquired in moving process to the camera identifies, If recognizing human body, the movement that halt instruction terminates the camera is issued, realizes image frame in the program In camera automatic adjustment mode when not collecting human body to search human body, avoid and taken the photograph when human body is not detected The problem of being unable to adjust automatically as head.
Fig. 5 is the flow chart of another camera Automatic adjustment method provided in an embodiment of the present invention, is given a kind of same When camera automatic adjustment mode when detecting multiple faces.As shown in figure 5, technical solution is specific as follows:
Step S501, the image frame for obtaining acquisition, when detecting in described image picture comprising multiple faces, according to Preset algorithm determines the first identification face in the multiple face, determines first of the first face in described image picture It sets.
In one embodiment, which is the algorithm for determining the first identification face in multiple faces, exemplary, in advance Imputation method can be the ratio for determining that each face identified is shared in present image picture, and the maximum face of ratio is true It is set to the first identification face.
Step S502, determine whether the first position meets regularization condition, if it is, according to the second position and described First position determines the deviation angle of camera.
Step S503, control instruction is generated according to the deviation angle, the control instruction is for controlling and the camera shooting The connected motor of head keeps the camera mobile with the deviation angle.
It include multiple faces in described image picture when detecting by above scheme it is found that obtaining the image frame of acquisition When, the first identification face in the multiple face is determined according to preset algorithm, determines the first face in described image picture First position, determine whether the first position meets regularization condition, if it is, according to the second position and first described The deviation angle for setting determining camera generates control instruction according to the deviation angle, and the control instruction is for control and institute Stating the connected motor of camera keeps the camera mobile with the deviation angle, can guarantee in image frame in the program It identifies the automatic adjustment that can be automatically determined a face when multiple faces and carry out camera, avoids in image frame and include The problem of cannot achieve camera automatic adjustment when multiple faces.
Fig. 6 is a kind of structural block diagram of camera self-checking device provided in an embodiment of the present invention, and the device is for holding Row camera Automatic adjustment method provided by the above embodiment, has the corresponding functional module of execution method and beneficial effect.Such as Shown in Fig. 6, which is specifically included: face location determining module 101, deviation angle determining module 102 and directive generation module 103, wherein
Face location determining module 101, for obtain acquisition image frame, include when detecting in described image picture When face, first position of the face in described image picture is determined.
In one embodiment, image frame is shot to obtain by camera, which can be integrated in face payment Camera in equipment, wherein face payment devices, which can be, is arranged in supermarket, the intelligence for being paid in market Electronic equipment.The image frame of acquisition is obtained, image recognition is carried out, is determined if comprising face, specifically, determining that image is drawn The method of face present in face can use reference template method, and the image frame of acquisition and standard faces reference template are carried out It compares to determine whether that there are the first positions where face and face;Alternatively, extracting the characteristic information of image frame, sentence With the presence or absence of the part for meeting human face structure distribution characteristics in disconnected this feature information, the portion for meeting human face structure distribution characteristics is found I.e. confirmation is divided to detect face and accordingly determine the first position where the face.
In one embodiment, which can be the position where the face center of the face part recognized, It can also be the position where eye in face, mouth or nose.
Deviation angle determining module 102, for determining whether the first position meets regularization condition, if it is, root The deviation angle of camera is determined according to the second position and the first position, the second position includes in described image picture The offset direction of heart position, the deviation angle includes four direction up and down.
In one embodiment, judged after determining first position, judge whether the first position meets adjustment item Part, specifically, can determine whether the distance of the first position range image picture center, if distance value is more than pre-determined distance Value then determines to meet regularization condition, illustratively, it is assumed that the size of image frame is 30cm*30cm, and pre-determined distance value can be 5cm, that is, determine first position to the position at image frame center be more than 5cm when determine meet regularization condition.
In one embodiment, true according to the second position and first position after determining that first position meets regularization condition Determine the deviation angle of camera, wherein the second position can be the customized position in image frame, be optionally image Picture center.Wherein, which is the rotation angle of camera, which can be four sides up and down To that is, the camera can four-way rotation.When camera offset, the corresponding range for acquiring picture changes, image frame In include position corresponding change of the face in image frame.In one embodiment, different directions are stored in database Deviation angle correspond to the variation distance of first position, illustratively, camera is drawn along a direction (as laterally) 5 ° of images of rotation The first position of face accordingly translates 2cm in image frame in face.Specifically, calculating the distance of first position and the second position Value a, and the distance value is calculated in component the distance value ax and ay of x-axis and y-axis, according to the distance value and offset stored in database The relationship of angle obtains the bx deviation angle of corresponding ax distance value, and the by deviation angle of corresponding ay distance value, wherein bx is inclined Moving angle is the angle along x-axis rotation offset, and by deviation angle is the angle along y-axis rotation offset, and bx and by are determined as working as Preceding camera needs the deviation angle rotated.
Directive generation module 103, for generating control instruction according to the deviation angle, the control instruction is for controlling The motor being connected with the camera keeps the camera mobile with the deviation angle.
Exemplary, which is generated by the controller that face payment devices integrate, as determined in step S102 Deviation angle bx along x-axis is 5 °, and the deviation angle by along y-axis is 10 °, then generates control instruction and control motor, In the motor be connected with camera for make camera carry out angular deflection, i.e., make camera edge respectively by assigning control instruction X-axis and y-axis rotate 5 ° and 10 °.In an another embodiment, the orientation of the comprehensive rotation of camera can also be calculated, such as along x-axis 30 ° of directions of y-axis angle are rotated, i.e., not using pure water put down or it is pure it is vertical by the way of rotate, using the side for having certain inclination angle Position rotation.
It include face in described image picture when detecting by above scheme it is found that by obtaining the image frame acquired When, it determines first position of the face in described image picture, determines whether the first position meets regularization condition, if It is that the deviation angle of camera is then determined according to the second position and the first position, the second position includes described image The offset direction of the center of picture, the deviation angle includes four direction up and down, raw according to the deviation angle At control instruction, the control instruction makes the camera with the deviation angle for controlling the motor being connected with the camera Degree movement realizes and carries out the adjusting of automatic camera head for the location of face according to the image frame of acquisition, is not necessarily to user It manually adjusts, realizes the efficient tracking to face, adjust more efficient.
In a possible embodiment, the face location determining module 101 is also used to:
Before the image frame for obtaining acquisition, when detecting the triggering of recognition of face event, control camera carries out picture Shooting;
Do not include face in described image picture if detected, human body identification is carried out to described image picture;
The deviation angle determining module 102 is specifically used for: the first deviation angle is determined according to position recognition result, it is described Directive generation module 103 is specifically used for: generating the first control instruction, first control instruction according to first deviation angle Keep the camera mobile with first deviation angle for controlling the motor being connected with the camera.
In a possible embodiment, the deviation angle determining module 102 is specifically used for:
The associated deviation angle section of corresponding position is searched in preset table according to position recognition result;
Described instruction generation module 103 is specifically used for: generating control instruction group, the control according to the deviation angle section Each control instruction in instruction group processed corresponds to a deviation angle in the deviation angle section;
The control instruction group makes the camera in the deviation angle for controlling the motor being connected with the camera Degree moves in section.
In a possible embodiment, described instruction generation module 103 is also used to:
The picture acquired in moving process to the camera identifies, if recognizing face, issues stopping Instruction terminates the movement of the camera.
In a possible embodiment, described instruction generation module 103 is specifically used for: if to described image picture into Pedestrian's body region recognition failures then issue and look for instruction, described to look for instruction for controlling the motor being connected with the camera Rotate the camera with predetermined angle.
In a possible embodiment, the face location determining module 101 is also used to:
When the camera is rotated with predetermined angle, the picture acquired in moving process to the camera is known Not, if recognizing human body, the movement that halt instruction terminates the camera is issued.
In a possible embodiment, the face location determining module 101 is specifically used for:
When detecting in described image picture comprising multiple faces, determined in the multiple face according to preset algorithm First identification face, determines first position of first face in described image picture.
Fig. 7 is a kind of structural schematic diagram of equipment provided in an embodiment of the present invention, as shown in fig. 7, the equipment includes processing Device 201, memory 202, input unit 203 and output device 204;The quantity of processor 201 can be one or more in equipment It is a, in Fig. 6 by taking a processor 201 as an example;Processor 201, memory 202, input unit 203 and output device in equipment 204 can be connected by bus or other modes, in Fig. 7 for being connected by bus.
Memory 202 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, such as the corresponding program instruction/module of camera Automatic adjustment method in the embodiment of the present invention.Processor 201 By running the software program, instruction and the module that are stored in memory 202, thereby executing equipment various function application with And data processing, that is, realize above-mentioned camera Automatic adjustment method.
Memory 202 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 202 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 202 can be into one Step includes the memory remotely located relative to processor 201, these remote memories can pass through network connection to equipment.On The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 203 can be used for receiving the number or character information of input, and generate with the user setting of equipment with And the related key signals input of function control.Output device 204 may include that display screen etc. shows equipment.
The embodiment of the present invention also provides a kind of storage medium comprising computer executable instructions, and the computer is executable Instruction is used to execute a kind of camera Automatic adjustment method when being executed by computer processor, this method comprises:
The image frame for obtaining acquisition determines face in the figure when detecting in described image picture comprising face As the first position in picture;
Determine whether the first position meets regularization condition, if it is, according to the second position and the first position Determine the deviation angle of camera, the second position includes the center of described image picture, the deviation angle it is inclined It moves direction and includes four direction up and down;
Control instruction is generated according to the deviation angle, the control instruction is for controlling the electricity being connected with the camera Machine keeps the camera mobile with the deviation angle.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention Embodiment can be realized by software and required common hardware, naturally it is also possible to by hardware realization, but in many cases before Person is more preferably embodiment.Based on this understanding, the technical solution of the embodiment of the present invention is substantially in other words to existing skill The part that art contributes can be embodied in the form of software products, which can store in computer Floppy disk, read-only memory (Read-OnlyMemory, ROM), random access memory in readable storage medium storing program for executing, such as computer (RandomAccessMemory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are used so that a meter It calculates machine equipment (can be personal computer, server or the network equipment etc.) and executes each embodiment institute of the embodiment of the present invention The method stated.
It is worth noting that, in the embodiment of above-mentioned camera self-checking device, included each unit and module It is only divided according to the functional logic, but is not limited to the above division, as long as corresponding functions can be realized; In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, it is not intended to restrict the invention the guarantor of embodiment Protect range.
Note that above are only the preferred embodiment and institute's application technology principle of the embodiment of the present invention.Those skilled in the art It will be appreciated that the embodiment of the present invention is not limited to specific embodiment described here, it is able to carry out for a person skilled in the art each The apparent variation of kind, readjustment and the protection scope substituted without departing from the embodiment of the present invention.Therefore, although more than passing through Embodiment is described in further detail the embodiment of the present invention, but the embodiment of the present invention is not limited only to the above implementation Example can also include more other equivalent embodiments in the case where not departing from design of the embodiment of the present invention, and the present invention is implemented The range of example is determined by the scope of the appended claims.

Claims (10)

1. camera Automatic adjustment method characterized by comprising
The image frame for obtaining acquisition determines that face is drawn in described image when detecting in described image picture comprising face First position in face;
Determine whether the first position meets regularization condition, if it is, determining according to the second position and the first position The deviation angle of camera, the second position include the center of described image picture, the offset side of the deviation angle To including four direction up and down;
Control instruction is generated according to the deviation angle, the control instruction makes for controlling the motor being connected with the camera The camera is mobile with the deviation angle.
2. the method according to claim 1, wherein before the image frame for obtaining acquisition, further includes:
When detecting the triggering of recognition of face event, control camera carries out picture photographing;
Do not include face in described image picture if detected, human body identification is carried out to described image picture;
The first deviation angle is determined according to position recognition result, and the first control instruction, institute are generated according to first deviation angle Stating the first control instruction moves the camera with first deviation angle for controlling the motor being connected with the camera It is dynamic.
3. according to the method described in claim 2, it is characterized in that, described determine the first deviation angle according to position recognition result Degree generates control instruction according to first deviation angle, and the control instruction is for controlling the electricity being connected with the camera Machine makes the camera include: with the first deviation angle movement
The associated deviation angle section of corresponding position is searched in preset table according to position recognition result;
Control instruction group is generated according to the deviation angle section, described in each control instruction correspondence in the control instruction group A deviation angle in deviation angle section;
The control instruction group makes the camera in the deviation angle area for controlling the motor being connected with the camera Interior movement.
4. according to the method described in claim 3, it is characterized in that, being moved in the deviation angle section in the camera When, further includes:
The picture acquired in moving process to the camera identifies, if recognizing face, issues halt instruction Terminate the movement of the camera.
5. according to the method described in claim 2, it is characterized in that, being lost if carrying out human body identification to described image picture Lose, then issue and look for instruction, it is described look for instruction and be used to control the motor being connected with the camera make the camera with pre- If angle rotates.
6. according to the method described in claim 5, it is characterized in that, when the camera is rotated with predetermined angle, further includes:
The picture acquired in moving process to the camera identifies, if recognizing human body, issues stopping Instruction terminates the movement of the camera.
7. the method according to claim 1, wherein described work as detect to include face in described image picture When, determine that first position of the face in described image picture includes:
When detecting in described image picture comprising multiple faces, first in the multiple face is determined according to preset algorithm It identifies face, determines first position of first face in described image picture.
8. camera self-checking device characterized by comprising
Face location determining module, for obtaining the image frame of acquisition, when detecting in described image picture comprising face, Determine first position of the face in described image picture;
Deviation angle determining module, for determining whether the first position meets regularization condition, if it is, according to second The deviation angle that camera is determined with the first position is set, the second position includes the center of described image picture, The offset direction of the deviation angle includes four direction up and down;
Directive generation module, for according to the deviation angle generate control instruction, the control instruction for control and it is described The connected motor of camera keeps the camera mobile with the deviation angle.
9. a kind of equipment, the equipment 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 processors are realized such as Camera Automatic adjustment method of any of claims 1-7.
10. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal For executing such as camera Automatic adjustment method of any of claims 1-7 when device executes.
CN201910747550.2A 2019-08-14 2019-08-14 Camera automatic adjustment method, device, equipment and storage medium Expired - Fee Related CN110460772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910747550.2A CN110460772B (en) 2019-08-14 2019-08-14 Camera automatic adjustment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910747550.2A CN110460772B (en) 2019-08-14 2019-08-14 Camera automatic adjustment method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110460772A true CN110460772A (en) 2019-11-15
CN110460772B CN110460772B (en) 2021-03-09

Family

ID=68486370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910747550.2A Expired - Fee Related CN110460772B (en) 2019-08-14 2019-08-14 Camera automatic adjustment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110460772B (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131701A (en) * 2019-12-25 2020-05-08 航天信息股份有限公司 Intelligent head portrait tracking system and method
CN111144327A (en) * 2019-12-28 2020-05-12 神思电子技术股份有限公司 Method for improving recognition efficiency of face recognition camera of self-service equipment
CN111242106A (en) * 2020-04-24 2020-06-05 支付宝(杭州)信息技术有限公司 Facial image acquisition method, device and equipment and facial recognition equipment
CN111580646A (en) * 2020-04-22 2020-08-25 深圳市瀚邦为电子材料有限公司 Method, device and system for adjusting position of visual equipment according to face
CN111698428A (en) * 2020-06-23 2020-09-22 广东小天才科技有限公司 Document shooting method and device, electronic equipment and storage medium
CN111911758A (en) * 2020-07-21 2020-11-10 福建升腾资讯有限公司 Adjustable camera device for self-service terminal
CN111933136A (en) * 2020-08-18 2020-11-13 南京奥拓电子科技有限公司 Auxiliary voice recognition control method and device
CN111953936A (en) * 2020-07-21 2020-11-17 福建升腾资讯有限公司 Adjustable camera system and method for self-service equipment
CN111967431A (en) * 2020-08-31 2020-11-20 珠海研果科技有限公司 Angle correction method and device
CN112193175A (en) * 2020-10-09 2021-01-08 安徽江淮汽车集团股份有限公司 Adjusting method and adjusting mechanism of monitoring camera adjusting mechanism and monitoring device
CN112672062A (en) * 2020-08-21 2021-04-16 海信视像科技股份有限公司 Display device and portrait positioning method
CN112866772A (en) * 2020-08-21 2021-05-28 海信视像科技股份有限公司 Display device and sound image character positioning and tracking method
CN112866773A (en) * 2020-08-21 2021-05-28 海信视像科技股份有限公司 Display device and camera tracking method in multi-person scene
CN113132624A (en) * 2021-03-01 2021-07-16 广东职业技术学院 Angle adjustment control method and system of intelligent terminal
CN113518180A (en) * 2021-05-25 2021-10-19 宁夏宁电电力设计有限公司 Vehicle-mounted camera mounting method for electric power working vehicle
CN113561908A (en) * 2021-07-27 2021-10-29 奇瑞新能源汽车股份有限公司 Control method and device of vehicle-mounted face recognition equipment
CN113635833A (en) * 2020-04-26 2021-11-12 晋城三赢精密电子有限公司 Vehicle-mounted display device, method and system based on automobile A column and storage medium
CN113983301A (en) * 2021-11-05 2022-01-28 深圳市佰慧智能科技有限公司 Integrated intelligent monitoring equipment box convenient for intelligent operation and maintenance
CN114098387A (en) * 2020-08-27 2022-03-01 阿里巴巴集团控股有限公司 Mirror adjusting method and device, mirror, electronic equipment and computer readable medium
CN115250329A (en) * 2021-04-28 2022-10-28 深圳市三诺数字科技有限公司 Camera control method and device, computer equipment and storage medium
AU2021286429A1 (en) * 2021-12-17 2023-07-06 Oxti Corporation Camera device
US12028617B2 (en) 2020-07-01 2024-07-02 Hisense Visual Technology Co., Ltd. Display apparatus and processing method for display apparatus with camera

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090097707A1 (en) * 2007-10-12 2009-04-16 Samsung Techwin Co., Ltd. Method of controlling digital image processing apparatus for face detection, and digital image processing apparatus employing the method
US20090322936A1 (en) * 2008-06-25 2009-12-31 Altek Corporation Auto focusing method for face detection of digital imaging device
CN102761706A (en) * 2011-04-26 2012-10-31 株式会社理光 Imaging device and imaging method and program
US20130155226A1 (en) * 2011-12-19 2013-06-20 Electronics And Telecommunications Research Institute Object tracking system using robot and object tracking method using a robot
CN105357442A (en) * 2015-11-27 2016-02-24 小米科技有限责任公司 Shooting angle adjustment method and device for camera
US20170236298A1 (en) * 2016-02-16 2017-08-17 Braun Gmbh Interactive system setup concept
CN107423712A (en) * 2017-07-28 2017-12-01 南京华捷艾米软件科技有限公司 A kind of 3D face identification methods
CN108734472A (en) * 2018-05-17 2018-11-02 Oppo广东移动通信有限公司 Method of payment, device, electronic device and storage medium
CN108764914A (en) * 2018-04-24 2018-11-06 Oppo广东移动通信有限公司 Method of payment, device, mobile terminal and storage medium
CN109685033A (en) * 2018-12-29 2019-04-26 深圳三人行在线科技有限公司 Iris identification equipment and method
CN109977770A (en) * 2019-02-21 2019-07-05 安克创新科技股份有限公司 A kind of auto-tracking shooting method, apparatus, system and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090097707A1 (en) * 2007-10-12 2009-04-16 Samsung Techwin Co., Ltd. Method of controlling digital image processing apparatus for face detection, and digital image processing apparatus employing the method
US20090322936A1 (en) * 2008-06-25 2009-12-31 Altek Corporation Auto focusing method for face detection of digital imaging device
CN102761706A (en) * 2011-04-26 2012-10-31 株式会社理光 Imaging device and imaging method and program
US20130155226A1 (en) * 2011-12-19 2013-06-20 Electronics And Telecommunications Research Institute Object tracking system using robot and object tracking method using a robot
CN105357442A (en) * 2015-11-27 2016-02-24 小米科技有限责任公司 Shooting angle adjustment method and device for camera
US20170236298A1 (en) * 2016-02-16 2017-08-17 Braun Gmbh Interactive system setup concept
CN107423712A (en) * 2017-07-28 2017-12-01 南京华捷艾米软件科技有限公司 A kind of 3D face identification methods
CN108764914A (en) * 2018-04-24 2018-11-06 Oppo广东移动通信有限公司 Method of payment, device, mobile terminal and storage medium
CN108734472A (en) * 2018-05-17 2018-11-02 Oppo广东移动通信有限公司 Method of payment, device, electronic device and storage medium
CN109685033A (en) * 2018-12-29 2019-04-26 深圳三人行在线科技有限公司 Iris identification equipment and method
CN109977770A (en) * 2019-02-21 2019-07-05 安克创新科技股份有限公司 A kind of auto-tracking shooting method, apparatus, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘欣迪: "智能移动设备上人脸定位的实现与优化", 《电子世界 》 *

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131701A (en) * 2019-12-25 2020-05-08 航天信息股份有限公司 Intelligent head portrait tracking system and method
CN111131701B (en) * 2019-12-25 2022-10-04 航天信息股份有限公司 Intelligent head portrait tracking system and method
CN111144327A (en) * 2019-12-28 2020-05-12 神思电子技术股份有限公司 Method for improving recognition efficiency of face recognition camera of self-service equipment
CN111144327B (en) * 2019-12-28 2023-04-07 神思电子技术股份有限公司 Method for improving recognition efficiency of face recognition camera of self-service equipment
CN111580646A (en) * 2020-04-22 2020-08-25 深圳市瀚邦为电子材料有限公司 Method, device and system for adjusting position of visual equipment according to face
CN111242106A (en) * 2020-04-24 2020-06-05 支付宝(杭州)信息技术有限公司 Facial image acquisition method, device and equipment and facial recognition equipment
WO2021213249A1 (en) * 2020-04-24 2021-10-28 支付宝(杭州)信息技术有限公司 Facial image acquisition and facial recognition
CN113635833A (en) * 2020-04-26 2021-11-12 晋城三赢精密电子有限公司 Vehicle-mounted display device, method and system based on automobile A column and storage medium
CN111698428A (en) * 2020-06-23 2020-09-22 广东小天才科技有限公司 Document shooting method and device, electronic equipment and storage medium
US12028617B2 (en) 2020-07-01 2024-07-02 Hisense Visual Technology Co., Ltd. Display apparatus and processing method for display apparatus with camera
CN111911758A (en) * 2020-07-21 2020-11-10 福建升腾资讯有限公司 Adjustable camera device for self-service terminal
CN111953936A (en) * 2020-07-21 2020-11-17 福建升腾资讯有限公司 Adjustable camera system and method for self-service equipment
CN111933136A (en) * 2020-08-18 2020-11-13 南京奥拓电子科技有限公司 Auxiliary voice recognition control method and device
CN111933136B (en) * 2020-08-18 2024-05-10 南京奥拓电子科技有限公司 Auxiliary voice recognition control method and device
CN112866773A (en) * 2020-08-21 2021-05-28 海信视像科技股份有限公司 Display device and camera tracking method in multi-person scene
CN112866772A (en) * 2020-08-21 2021-05-28 海信视像科技股份有限公司 Display device and sound image character positioning and tracking method
CN112672062A (en) * 2020-08-21 2021-04-16 海信视像科技股份有限公司 Display device and portrait positioning method
WO2022037535A1 (en) * 2020-08-21 2022-02-24 海信视像科技股份有限公司 Display device and camera tracking method
CN112866773B (en) * 2020-08-21 2023-09-26 海信视像科技股份有限公司 Display equipment and camera tracking method in multi-person scene
CN114098387B (en) * 2020-08-27 2024-02-27 阿里巴巴集团控股有限公司 Mirror adjustment method, device, mirror, electronic apparatus, and computer-readable medium
CN114098387A (en) * 2020-08-27 2022-03-01 阿里巴巴集团控股有限公司 Mirror adjusting method and device, mirror, electronic equipment and computer readable medium
CN111967431A (en) * 2020-08-31 2020-11-20 珠海研果科技有限公司 Angle correction method and device
CN112193175B (en) * 2020-10-09 2022-04-08 安徽江淮汽车集团股份有限公司 Adjusting method and adjusting mechanism of monitoring camera adjusting mechanism and monitoring device
CN112193175A (en) * 2020-10-09 2021-01-08 安徽江淮汽车集团股份有限公司 Adjusting method and adjusting mechanism of monitoring camera adjusting mechanism and monitoring device
CN113132624A (en) * 2021-03-01 2021-07-16 广东职业技术学院 Angle adjustment control method and system of intelligent terminal
CN113132624B (en) * 2021-03-01 2023-02-07 广东职业技术学院 Angle adjustment control method and system of intelligent terminal
CN115250329A (en) * 2021-04-28 2022-10-28 深圳市三诺数字科技有限公司 Camera control method and device, computer equipment and storage medium
CN115250329B (en) * 2021-04-28 2024-04-19 深圳市三诺数字科技有限公司 Camera control method and device, computer equipment and storage medium
CN113518180B (en) * 2021-05-25 2022-08-05 宁夏宁电电力设计有限公司 Vehicle-mounted camera mounting method for electric power working vehicle
CN113518180A (en) * 2021-05-25 2021-10-19 宁夏宁电电力设计有限公司 Vehicle-mounted camera mounting method for electric power working vehicle
CN113561908A (en) * 2021-07-27 2021-10-29 奇瑞新能源汽车股份有限公司 Control method and device of vehicle-mounted face recognition equipment
CN113983301A (en) * 2021-11-05 2022-01-28 深圳市佰慧智能科技有限公司 Integrated intelligent monitoring equipment box convenient for intelligent operation and maintenance
AU2021286429A1 (en) * 2021-12-17 2023-07-06 Oxti Corporation Camera device

Also Published As

Publication number Publication date
CN110460772B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN110460772A (en) Camera Automatic adjustment method, device, equipment and storage medium
US11257223B2 (en) Systems and methods for user detection, identification, and localization within a defined space
KR102036978B1 (en) Liveness detection method and device, and identity authentication method and device
EP3686703B1 (en) Control method, apparatus and system for robot, and applicable robot
US11798283B2 (en) Active presence detection with depth sensing
EP3579086B1 (en) Screen light method, device, mobile terminal, and storage medium
US8525876B2 (en) Real-time embedded vision-based human hand detection
TW201941099A (en) A method and its equipment of locking interaction target for intelligent device
EP2534554B1 (en) Input command
US20140071042A1 (en) Computer vision based control of a device using machine learning
CN1573660A (en) Head pose assessment methods and systems
CN105512632A (en) In vivo detection method and device
Arcoverde Neto et al. Enhanced real-time head pose estimation system for mobile device
EP2996067A1 (en) Method and device for generating motion signature on the basis of motion signature information
CN106682607A (en) Offline face recognition system and offline face recognition method based on low-power-consumption embedded and infrared triggering
JP5550124B2 (en) INPUT DEVICE, DEVICE, INPUT METHOD, AND PROGRAM
WO2019011072A1 (en) Iris live detection method and related product
CN105824411A (en) Interaction control method and device based on virtual reality
CN109993794A (en) A kind of robot method for relocating, device, control equipment and storage medium
US20150117712A1 (en) Computer vision based control of a device using machine learning
US9761009B2 (en) Motion tracking device control systems and methods
CN109377519A (en) Target tracking method, device, target tracking equipment and storage medium
KR101656519B1 (en) Unmanned aerial vehicle having Automatic Tracking
CN112036213A (en) Gesture positioning method of robot, robot and device
KR20230088208A (en) System and method for preventing annotation errors using time and spatial information of multiple cameras

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210309