CN113418091B - Method, device and equipment for installing camera shooting assembly - Google Patents

Method, device and equipment for installing camera shooting assembly Download PDF

Info

Publication number
CN113418091B
CN113418091B CN202110632475.2A CN202110632475A CN113418091B CN 113418091 B CN113418091 B CN 113418091B CN 202110632475 A CN202110632475 A CN 202110632475A CN 113418091 B CN113418091 B CN 113418091B
Authority
CN
China
Prior art keywords
installation
image
user
assembly
camera
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.)
Active
Application number
CN202110632475.2A
Other languages
Chinese (zh)
Other versions
CN113418091A (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.)
Advanced New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN202110632475.2A priority Critical patent/CN113418091B/en
Publication of CN113418091A publication Critical patent/CN113418091A/en
Application granted granted Critical
Publication of CN113418091B publication Critical patent/CN113418091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M11/00Stands or trestles as supports for apparatus or articles placed thereon Stands for scientific apparatus such as gravitational force meters
    • F16M11/02Heads
    • F16M11/04Means for attachment of apparatus; Means allowing adjustment of the apparatus relatively to the stand
    • 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

Abstract

The embodiment of the specification discloses a method, a device and equipment for mounting a camera shooting assembly, wherein the method comprises the following steps: acquiring installation parameters of a camera assembly to be installed, wherein the installation parameters at least comprise one or more of the angle of view of the camera assembly, the distance between a user who takes a picture and the installation position of the camera assembly, the height of the user who takes a picture through the camera assembly, and the distance between the edge of a target machine tool to be installed on the camera assembly and a designated surface; and determining the installation height of the camera assembly on the target machine tool and the installation angle of the camera assembly on the target machine tool according to the installation parameters of the camera assembly.

Description

Method, device and equipment for installing camera shooting assembly
The application is a divisional application of Chinese patent application with the name of 'a method, a device and equipment for mounting a camera component' filed by Chinese patent office with the application number of 201910238954.9 on 27.03.2019.
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for installing a camera module.
Background
For a target machine tool applied to face recognition or face detection, besides the accuracy and safety of an algorithm applied to the face recognition or the face detection, in a face data or face data acquisition stage, the installation height and the installation angle of the camera shooting assembly can directly influence the first link of the face recognition or the face detection, so that the installation of the camera shooting assembly has great influence on the passing rate of the face recognition or the face detection. How to acquire a high-quality face image in a short time is the most important differentiation capability in a whole link of face recognition or face detection.
In the actual situation, the camera module is usually fixed at a designated position of the target machine (for example, mounted at the top end of the target machine) according to the setting requirements of the designer, and then the image of the user is shot. Moreover, the mounting height and the mounting angle of the camera assembly are affected by various factors, such as different appearance designs of target machines and tools for mounting the camera assembly, different angles of view and working distances of the camera assembly, etc., which may result in different mounting angles and mounting heights of the camera assembly.
Disclosure of Invention
An object of the embodiments of the present specification is to provide a method, an apparatus, and a device for installing a camera assembly, so as to solve the problem in the prior art that a user needs to frequently operate back and forth between the top and the bottom of a page to acquire push information.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
the method for installing the camera shooting assembly provided by the embodiment of the specification comprises the following steps:
acquiring installation parameters of a camera assembly to be installed, wherein the installation parameters at least comprise one or more of the angle of view of the camera assembly, the distance between a user who takes a picture and the installation position of the camera assembly, the height of the user who takes a picture through the camera assembly, and the distance between the edge of a target tool to be installed on the camera assembly and a designated surface;
and determining the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool according to the installation parameters of the camera shooting assembly.
Optionally, after determining the mounting height of the camera assembly on the target implement and the mounting angle of the camera assembly on the target implement according to the mounting parameters of the camera assembly, the method further includes:
acquiring an image shot by a target user through the camera shooting assembly;
and adjusting the installation angle of the camera assembly on the target equipment according to the position of the facial image of the target user in the image.
Optionally, after determining the mounting height of the camera assembly on the target implement and the mounting angle of the camera assembly on the target implement according to the mounting parameters of the camera assembly, the method further includes:
acquiring an image shot by a target user through the camera shooting assembly;
adjusting the installation parameters of the camera shooting assembly based on the image to obtain adjusted installation parameters;
and respectively adjusting the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool based on the adjusted installation parameters.
Optionally, the mounting parameter includes a distance between a user performing the image pickup and a mounting position of the image pickup assembly,
adjusting the installation parameters of the camera assembly based on the image to obtain adjusted installation parameters, including:
determining the distance between the target user and the installation position of the camera shooting assembly according to the area occupied by the face image of the target user in the image;
and adjusting the distance between the user who takes the image and the installation position of the image pickup assembly based on the distance between the target user and the installation position of the image pickup assembly.
Optionally, the installation parameters include a user height for imaging by the imaging assembly,
adjusting the installation parameters of the camera shooting assembly based on the image to obtain the adjusted installation parameters, and the method comprises the following steps:
determining gender information and age information of a target user according to a facial image of the target user in the image;
and adjusting the height of the user who shoots through the shooting component according to the gender information and the age information of the target user.
Optionally, the camera assembly comprises a lens assembly and a predetermined track for the lens assembly to move,
after determining the installation height of the camera assembly on the target implement and the installation angle of the camera assembly on the target implement according to the installation parameters of the camera assembly, the method further comprises:
acquiring an image shot by a target user through the camera shooting assembly;
and adjusting the position of the lens assembly in a preset track in the camera assembly according to the position of the face image of the target user in the image, so that the face image of the target user in the shot image is located in a preset area.
Optionally, the adjusting the position of the lens assembly in the predetermined track in the camera assembly according to the position of the face image of the target user in the image includes:
detecting the face image integrity of the target user in the image;
and adjusting the position of the lens assembly in a preset track in the camera assembly according to the integrity of the face image of the target user in the image and the position of the face image of the target user in the image.
Optionally, the target implement is a self-checkout implement or an artificial intelligence vending implement.
An apparatus for mounting a camera module provided by an embodiment of the present specification, the apparatus includes:
the device comprises a parameter acquisition module, a parameter acquisition module and a parameter display module, wherein the parameter acquisition module is used for acquiring installation parameters of a camera assembly to be installed, and the installation parameters at least comprise one or more of the field angle of the camera assembly, the distance between a user who takes a picture and the installation position of the camera assembly, the height of the user who takes a picture through the camera assembly and the distance between the edge of a target tool to be installed on the camera assembly and a designated surface;
and the output module is used for determining the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool according to the installation parameters of the camera shooting assembly.
Optionally, the apparatus further comprises:
the first image acquisition module is used for acquiring an image shot by a target user through the camera shooting assembly;
the first adjusting module is used for adjusting the installation angle of the camera shooting assembly on the target machine tool according to the position of the facial image of the target user in the image.
Optionally, the apparatus further comprises:
the image acquisition module is used for acquiring an image shot by a target user through the camera shooting assembly;
the parameter adjusting module is used for adjusting the installation parameters of the camera shooting assembly based on the image to obtain the adjusted installation parameters;
and the second adjusting module is used for respectively adjusting the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool based on the adjusted installation parameters.
Optionally, the installation parameter includes a distance between a user who performs image pickup and an installation position of the image pickup assembly, and the parameter adjusting module includes:
a first distance determination unit configured to determine a distance between the target user and the mounting position of the image pickup assembly based on an area occupied by the face image of the target user in the image;
a second distance determination unit configured to adjust a distance between a user who performs imaging and the installation position of the imaging component based on the distance between the target user and the installation position of the imaging component.
Optionally, the installation parameter includes a user height for shooting through the camera shooting assembly, and the parameter adjusting module includes:
an information determination unit configured to determine gender information and age information of a target user from a face image of the target user in the image;
and the parameter adjusting unit is used for adjusting the height of the user who shoots through the shooting component according to the gender information and the age information of the target user.
Optionally, the camera assembly includes a lens assembly and a predetermined track for the lens assembly to move, and the apparatus further includes:
the image acquisition module is used for acquiring an image shot by a target user through the camera shooting assembly;
and the position adjusting module is used for adjusting the position of the lens assembly in a preset track in the camera assembly according to the position of the face image of the target user in the image, so that the face image of the target user in the shot image is positioned in a preset area.
Optionally, the position adjusting module includes:
a detection unit for detecting the face image integrity of the target user in the image;
and the position adjusting unit is used for adjusting the position of the lens assembly in a preset track in the camera assembly according to the integrity of the face image of the target user in the image and the position of the face image of the target user in the image.
Optionally, the target implement is a self-checkout implement or an artificial intelligence vending implement.
An apparatus for mounting a camera assembly according to an embodiment of the present specification includes:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring installation parameters of a camera assembly to be installed, wherein the installation parameters at least comprise one or more of the angle of view of the camera assembly, the distance between a user who takes a picture and the installation position of the camera assembly, the height of the user who takes a picture through the camera assembly, and the distance between the edge of a target machine tool to be installed on the camera assembly and a designated surface;
and determining the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool according to the installation parameters of the camera shooting assembly.
According to the technical scheme provided by the embodiment of the present specification, the embodiment of the present specification obtains the installation parameters of the camera assembly to be installed, where the installation parameters at least include one or more of the field angle of the camera assembly, the distance between the user who takes a picture and the installation position of the camera assembly, the height of the user who takes a picture through the camera assembly, and the distance between the edge of the target equipment where the camera assembly is to be installed and the designated surface, and then determines the installation height of the camera assembly on the target equipment and the installation angle of the camera assembly on the target equipment according to the installation parameters of the camera assembly, so that the optimal installation height and installation angle of the camera assembly can be given according to the input different installation parameters, thereby ensuring that the same type of camera assembly is used on different types of target equipment, and achieving the optimal experience of face recognition or face detection under different scenes.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in the present specification, and for those skilled in the art, other drawings may be obtained according to these drawings without creative efforts.
FIG. 1 is a method embodiment for installation of a camera assembly according to the present disclosure;
FIG. 2 is a schematic diagram of a target implement and a photographed user configuration of the present disclosure;
FIG. 3 is a schematic view of a setup page for a camera assembly according to the present disclosure;
FIG. 4 is another method embodiment of the present disclosure for installation of a camera assembly;
FIG. 5 is a flowchart of yet another method embodiment of the present disclosure for mounting a camera assembly;
FIG. 6 is a flowchart of yet another method embodiment of the present disclosure for mounting a camera assembly;
FIG. 7 is a method embodiment of the present disclosure for installation of a camera assembly;
FIG. 8 is an apparatus embodiment for mounting of a camera assembly according to the present disclosure;
fig. 9 is an embodiment of an apparatus for mounting a camera assembly according to the present disclosure.
Detailed Description
The embodiment of the specification provides a method, a device and equipment for mounting a camera shooting assembly.
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Example one
As shown in fig. 1, the present specification provides a method for installing a camera assembly, where an execution subject of the method may be an electronic device, and the electronic device may be a terminal device or a server, where the terminal device may be a mobile terminal device such as a mobile phone or a tablet computer, and may also be a device such as a personal computer. The server may be an independent server, or a server cluster including a plurality of servers. The method specifically comprises the following steps:
in step S102, installation parameters of the camera assembly to be installed are acquired, where the installation parameters at least include one or more of a field angle of the camera assembly, a distance between a user who takes a picture and an installation position of the camera assembly, a height of the user who takes a picture through the camera assembly, and a distance between an edge of a target tool to be installed on the camera assembly and a designated surface.
The camera module may be a module having a camera function, the camera module may be a camera, and the camera module generally has a normal in-focus distance range (which may also be referred to as a working distance of the camera module), and when a user stands in the distance range from the camera module, a face image of the user shot by the camera module may be normally in-focus. The field angle may be an angle formed by two edges of a lens of the imaging assembly, which are at the vertex and through which an object image of the target to be measured can pass. The size of the field angle determines the field of view of the imaging module, and the larger the field of view, the larger the field of view of the imaging module, and if the object exceeds the field of view, the object image of the object will not be captured in the lens. As shown in fig. 2, the angle of view can be divided into a horizontal angle of view and a vertical angle of view, and the angle of view of the lens in the image pickup module is usually about 45 degrees at present. For a camera module used for face detection or face recognition, the range corresponding to the field angle determines the success rate of acquiring the face or face data of a user. As shown in fig. 2, the distance between the user and the installation position of the camera module may be a horizontal distance between the user and the camera module, a straight distance between the user and the installation position of the camera module, or the like. As shown in fig. 2, the height of the user may be the height of the user, etc. The target implement may be an implement for mounting of the camera assembly, such as a commonly used self-service implement or the like, in particular a self-service cash register, a self-service vending machine, or an automated teller machine or the like. As shown in fig. 2, the designated surface may be a ground surface or a plane on which a user stands when taking an image through the image taking assembly, and in practical applications, the designated surface is not limited to a plane, and may also be a curved surface, which may be set according to practical situations, and is not limited in this embodiment of the present specification. The target implement edge may be an edge where the camera assembly is mounted, such as an upper edge of a screen in the target implement or edges near the screen on both sides of the target implement screen.
In the implementation, for a target machine tool applied to face recognition or face detection, besides the accuracy and safety of an algorithm applied to the face recognition or the face detection, in a face data or face data acquisition stage, the installation height and the installation angle of the camera assembly can directly influence the first link of the face recognition or the face detection, so that the installation of the camera assembly has a great influence on the passing rate of the face recognition or the face detection. How to acquire a high-quality face image in a short time is the most important differentiation capability in the whole link of face recognition or face detection. And the reality condition often is that, mounting height and installation angle when the subassembly installation of making a video recording are difficult to formulate a unified standard, and moreover, mounting height and mounting angle can receive the influence of multiple factor, if can include:
the design of the target device is different, for example, some target devices are desktop devices, the height of the target device is determined by the height of the desktop or platform on which the target device is placed, and the camera assembly needs to be installed above the screen due to different screen positions of some target devices, so that the installation height of the camera assembly is also different.
The camera module has different angles of view and working distances, and for cameras of different models or different merchants, the angles of view and the working distances are often different, so as to cover users of different heights to the maximum extent, which causes the mounting heights and mounting angles required by the cameras to be different.
The user height that makes a video recording through the subassembly of making a video recording is different, and the user height has the characteristic of region and position usually, for example, southern user height is less than northern user height, high the height that is less than the adult of middle and primary school student, and the in-process that different users make a video recording through the subassembly of making a video recording can also be different to the best mounting height and the installation angle of subassembly of making a video recording.
The distance between the screen of the camera shooting assembly and the target machine tool and the distance between the edge of the target machine tool to be installed and the designated surface of the camera shooting assembly are different, and the installation angle of the camera shooting assembly is different. Therefore, the embodiments of the present specification provide a technical solution that can solve the above related problems, which specifically includes the following contents:
in order to better provide the installation service of the camera assembly for the user, a corresponding application program can be written through a predetermined programming language, the application program can be installed on some electronic equipment as a complete independent application program, the application program can also be arranged in some application program as a functional module, for example, the application program can also be arranged in the management application of the target machine as a functional module to become a function in the management application of the target machine, and the like. As shown in fig. 3, the written application program may provide an installation setting page of the camera module, where the installation setting page may include an input box of the installation parameters and an output box of the output result, where the input box of the installation parameters may include one input box or a plurality of sub-input boxes, as shown in fig. 3, the sub-input boxes may be used to request the user to input data such as any one of a field angle of the camera module, a distance between a user who performs imaging and an installation position of the camera module, a height of a user who performs imaging through the camera module, and a distance between an edge of a target implement to be installed and a designated surface of the camera module, for example, the installation parameters include four items of the field angle of the camera module, a distance between a user who performs imaging and an installation position of the camera module, a height of a user who performs imaging through the camera module, and a distance between an edge of a target implement to be installed and a designated surface of the camera module, and four sub-input boxes may be respectively used to input related contents of the four items. The output result may include a mounting height, a mounting angle, and the like.
When a camera shooting component needs to be installed on a target machine tool, an installer can start the application program by using the electronic device on which the application program is installed, after the application program is started, the electronic device can obtain a setting page of the camera shooting component of the application program, then the installer can fill corresponding data according to installation parameters provided in the setting page, for example, as shown in fig. 3, the setting page includes four items, such as a field angle of the camera shooting component, a distance between a user who performs camera shooting and an installation position of the camera shooting component, a height of the user who performs camera shooting through the camera shooting component, a distance between an edge of the target machine tool to be installed on the camera shooting component and a designated surface, each item is provided with a sub input box, for the sub input box corresponding to the field angle item of the camera shooting component, the installer can determine a numerical value of the field angle of the camera shooting component through data, such as performance of the camera shooting component, and can input the determined numerical value into the corresponding sub input box; for the sub input frame corresponding to the item of the distance between the user who performs the image pickup and the installation position of the image pickup assembly (taking the horizontal distance between the user and the installation position of the image pickup assembly as an example), an installer can measure the numerical value of the horizontal distance between the object to be measured (i.e. the user) and the installation position of the image pickup assembly, and in order to ensure the accuracy of data, can measure a plurality of numerical values, thereby obtaining the numerical value range corresponding to the measured numerical value, and can input the measured numerical value range to the corresponding sub input frame; for the sub input boxes corresponding to the height items of the user who performs the image pickup through the image pickup assembly, an installer can measure the height values of different measured objects (namely the user) and can input the range of the measured height values into the corresponding sub input boxes; for the sub-input boxes corresponding to the distance items between the edge of the target machine tool to be installed and the appointed surface of the camera shooting assembly, an installer can measure the numerical value of the distance between the edge of the target machine tool to be installed and the appointed surface (such as the ground) of the camera shooting assembly, the range of the measured numerical value can be input into the corresponding sub-input boxes, after the data input is completed, a user can click a submit key or a confirm key in an installation parameter item, and the electronic equipment can acquire the data in the sub-input boxes, so that the installation parameters of the camera shooting assembly to be installed can be acquired.
In step S104, the mounting height of the camera assembly on the target implement and the mounting angle of the camera assembly on the target implement are determined according to the mounting parameters of the camera assembly.
The installation height may be a vertical distance from the installation position of the camera assembly to a designated surface (such as the ground), or a vertical distance from the installation position of the camera assembly to the lowest end of the target implement. The installation angle can be the included angle between the lens assembly in the camera assembly and the horizontal direction or the vertical direction, and the like.
In implementation, an algorithm for calculating the installation height of the camera assembly on the target machine and the installation angle of the camera assembly on the target machine can be selected according to actual conditions, the calculation of the installation height and the calculation of the installation angle can be realized through two different algorithms, or can be realized by using the same algorithm, and the calculation can be specifically set according to the actual conditions, which is not limited in the embodiments of the present specification. After the algorithm for calculating the installation height and the installation angle is set in the above manner, the obtained installation parameters of the camera shooting assembly can be input into the algorithm for calculation, and the corresponding installation height and installation angle are obtained. The specific calculation process may be as follows: the calculation processing is to obtain the distance between the edge of the target tool to be installed on the camera module and the designated surface in the installation parameter (specifically, the distance between the edge of the screen of the target tool and the designated surface can be obtained by adding the fixed distance between the camera module and the upper edge of the screen to the height of the target tool from the ground, and in the case that the height between the camera module and the ground is fixed, the range of the area where the face is located can be calculated according to the range of the height of the target to be shot in the installation parameter and the average length of the face (which can be set to 27 cm and the like), and then the installation angle of the camera module can be calculated according to the field angle of the camera module in the installation parameter to limit the area where the face is located to the middle area within the imaging range of the camera module.
The electronic device may output the calculated installation height and installation angle, that is, may display the obtained installation height and installation angle in an output frame of the output result in the setting page. After the installer looks at the output result, the camera shooting assembly can be installed on the target machine tool according to the installation angle and the installation height displayed in the output frame, so that when the user in front of the target machine tool needs to be shot through the camera shooting assembly, the camera shooting assembly can be started to shoot the image of the user, corresponding processing can be carried out on the shot image, for example, face recognition or face detection can be carried out on the shot image, the identity of the user can be confirmed, and the shot image can be stored in the target machine tool or sent to a corresponding server for storage.
The embodiment of the specification provides a method for installing a camera assembly, which includes obtaining installation parameters of the camera assembly to be installed, wherein the installation parameters at least include one or more of a field angle of the camera assembly, a distance between a user who takes a picture and an installation position of the camera assembly, a height of the user who takes a picture through the camera assembly and a distance between an edge of a target machine tool to be installed on the camera assembly and a designated surface, and then determining an installation height of the camera assembly on the target machine tool and an installation angle of the camera assembly on the target machine tool according to the installation parameters of the camera assembly, so that the optimal installation height and installation angle of the camera assembly can be given according to different input installation parameters, and the same type of camera assembly can be used on different types of target machine tools, and the optimal experience of face recognition or face detection can be achieved under different scenes.
Example two
As shown in fig. 4, the present specification provides a method for installing a camera module, where an execution subject of the method may be an electronic device, and the electronic device may be a terminal device, a server, or the like, where the terminal device may be a mobile terminal device such as a mobile phone or a tablet computer, and may also be a device such as a personal computer. The server may be an independent server, a server cluster including a plurality of servers, or the like. The method may specifically comprise the steps of:
in step S402, acquiring installation parameters of a camera assembly to be installed, where the installation parameters at least include one or more of a field angle of the camera assembly, a distance between a user who takes a picture and an installation position of the camera assembly, a height of the user who takes a picture through the camera assembly, and a distance between an edge of a target tool to be installed on the camera assembly and a designated surface.
The target machine may be a user self-service machine, such as a self-service settlement machine (specifically, a self-service cash register, an automatic teller machine, or the like) or an artificial intelligence vending machine (specifically, an AI vending machine, or the like), or may be any other machine (for example, an outdoor scene billboard, or the like) that needs to mount a camera module.
In step S404, the mounting height of the camera assembly on the target implement and the mounting angle of the camera assembly on the target implement are determined according to the mounting parameters of the camera assembly.
In addition, in consideration of the fact that data of installation parameters of the camera module may not conform to corresponding data in an actual situation, for example, a numerical value or a numerical range estimated for a user height is inaccurate, and in addition, it may be difficult for a target equipment manufacturer to ensure quality of a target equipment, and in addition, an angle of a lens component in the camera module may also be shifted during transportation or during installation of the target equipment, and for this reason, the target equipment in a use process needs to be continuously monitored, a camera module with a problem in installation is found from the monitored data, and an installation angle of the camera module can be calibrated through the monitored data, so as to ensure a good experience of continuous face detection or face recognition conforming to an actual environment.
In step S406, an image captured by the target user through the above-described image capturing module is acquired.
Wherein the target users may be a plurality of users using the camera assembly.
In implementation, each time a user (i.e., a target user) uses the camera assembly installed in the target equipment to take a picture, the camera assembly can store an image taken by the target user in a storage component in the target equipment or send the image to a corresponding server for storage. When the duration of the use of the camera assembly reaches a predetermined duration (e.g., 7 days or 10 days), or the number of images captured by the camera assembly reaches a predetermined number threshold (e.g., 1000 or 500 images), the electronic device may acquire the images captured by the camera assembly (which may be images within the predetermined duration or images whose number of captured images reaches the predetermined number threshold) from the target tool or the corresponding server, so as to acquire the images captured by the target user through the camera assembly.
In step S408, the installation angle of the camera assembly on the target implement is adjusted according to the position of the facial image of the target user in the image.
In an implementation, after obtaining the image captured by the image capturing component by the target user through the processing in step S406, the position of the face image of the target user in each image may be analyzed, and if the face image of the target user is too high or too low in the image, it indicates that the installation angle of the image capturing component does not achieve the best image capturing effect of the face of the target user.
For example, the electronic device may determine that the face image of the target user is too far out of the image by analyzing the position of the face image of the target user in each image, in this case, the electronic device may determine the center position of the captured image (which may be an average of the center positions of the plurality of images) and the center position of the face image of the target user (which may be an average of the face images of the plurality of target users), may calculate an angle value at which the mounting angle of the image pickup unit needs to be adjusted after the center position of the face image of the target user coincides with the center position of the captured image, and may determine the adjusted mounting angle based on the angle value and the calculated mounting angle. The installer may then adjust the camera assembly on the target implement based on the adjusted installation angle.
The embodiment of the specification provides a method for installing a camera shooting assembly, which comprises the steps of obtaining installation parameters of the camera shooting assembly to be installed, wherein the installation parameters at least comprise one or more of a field angle of the camera shooting assembly, a distance between a user who takes a picture and an installation position of the camera shooting assembly, a height of the user who takes a picture through the camera shooting assembly and a distance between the edge of a target machine tool to be installed with the camera shooting assembly and a specified surface, and then determining the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool according to the installation parameters of the camera shooting assembly.
EXAMPLE III
As shown in fig. 5, an embodiment of the present specification provides a method for installing a camera module, where an execution subject of the method may be an electronic device, and the electronic device may be a terminal device, a server, or the like, where the terminal device may be a mobile terminal device such as a mobile phone or a tablet computer, and may also be a device such as a personal computer. The server may be an independent server, a server cluster including a plurality of servers, or the like. The method may specifically comprise the steps of:
in step S502, acquiring installation parameters of a camera assembly to be installed, where the installation parameters at least include one or more of a field angle of the camera assembly, a distance between a user who takes a picture and an installation position of the camera assembly, a height of the user who takes a picture through the camera assembly, and a distance between an edge of a target implement to be installed on the camera assembly and a designated surface.
The target machine may be a user self-service machine, such as a self-service settlement machine (specifically, a self-service cash register, an automatic teller machine, or the like) or an artificial intelligence vending machine (specifically, an AI vending machine, or the like), or may be any other machine (for example, an outdoor scene billboard, or the like) that needs to mount a camera module.
In step S504, the mounting height of the camera assembly on the target implement and the mounting angle of the camera assembly on the target implement are determined according to the mounting parameters of the camera assembly.
In addition, in consideration of the fact that the data of the installation parameters of the camera module may not conform to the corresponding data in the actual situation, for example, the estimated value or the range of the value of the height of the user is inaccurate, and in addition, the manufacturer of the target equipment may hardly guarantee the quality of the target equipment, and in addition, the angle of the lens component in the camera module may also be shifted during transportation or installation of the target equipment, for this reason, the target equipment in the use process needs to be continuously monitored, the camera module with a problem in installation is found from the monitored data, and the installation height and/or the installation angle of the camera module can be calibrated through the monitored data, so as to guarantee a good experience of continuous human face detection or human face recognition conforming to the actual environment.
In step S506, an image captured by the target user through the above-described image capturing module is acquired.
In step S508, the mounting parameters of the image pickup module are adjusted based on the image, and the adjusted mounting parameters are obtained.
In an implementation, after the images captured by the image capturing component by the target user are obtained through the processing in step S506, the face image of the target user in each image may be analyzed, and the installation parameters of the image capturing component may be adjusted accordingly through the related information embodied in the face image of the target user, for example, the distance between the user performing image capturing and the installation position of the image capturing component in the installation parameters may be adjusted based on the size of the area occupied by the face image of the target user in the whole image, and for example, the height of the user in the installation parameters may be adjusted according to the distance of the face image of the target user deviating from the center position of the whole image. By the above mode, the adjusted installation parameters can be obtained.
Based on the relevant contents in the foregoing embodiment, the installation parameters may include one or more of an angle of view of the camera assembly, a distance between a user who takes a picture and an installation position of the camera assembly, a height of the user who takes a picture through the camera assembly, and a distance between an edge of a target implement to be installed on the camera assembly and a designated plane, and specific processing may be different for installation parameters containing different information, and two alternative processing manners of the foregoing step S508 are provided below, which may be specifically referred to as the following manner one and manner two.
First, if the mounting parameter includes a distance between the user who performs imaging and the mounting position of the imaging component, the processing of step S508 described above can be realized by the following first and second steps.
The method comprises the following steps of firstly, determining the distance between a target user and the installation position of a camera shooting assembly according to the area occupied by the face image of the target user in the image.
In the implementation, the distance between the user who actually performs face detection or face recognition and the camera module may be different, for example, for a desktop type target machine tool, the user should be located in front of the target machine tool, if the position where the user stands is different, the distance between the target user and the installation position of the camera module is different, and for different users, the habit of the standing position is also different, so that the distance between the user who performs the image pickup and the installation position of the camera module needs to be adjusted. Specifically, after the image captured by the image capturing module by the target user is obtained through the processing in step S506, the facial image of the target user in each image may be analyzed, if the installation parameter includes the distance between the user who captured the image and the installation position of the image capturing module, the size of the area occupied by the facial image of the target user in the whole image may be obtained, and the distance between the target user and the installation position of the image capturing module may be calculated based on the size of the area occupied by the facial image of the target user in the whole image.
And step two, adjusting the distance between the user who takes the image and the installation position of the image pickup assembly based on the distance between the target user and the installation position of the image pickup assembly.
In the second mode, if the installation parameter includes the height of the user who performs imaging by the imaging component, the processing of step S508 described above can be realized by the following step one and step two.
Step one, according to the face image of the target user in the image, determining the gender information and the age information of the target user.
In practice, the user who takes a picture through the camera component may not be in accordance with the average height range of the crowd in the area where the target equipment is located in practical application, for example, it is found through practical monitoring that many male users take a picture through the camera component, few female users take a picture through the camera component, or the area where the target equipment is located is a school of middle and primary schools, many students of middle and primary schools take a picture through the camera component, few adults take a picture through the camera component, and the like, and thus, the height of the user who takes a picture through the camera component needs to be adjusted. Specifically, after the images of the target user captured by the image capturing module are obtained through the processing in step S506, the facial image of the target user in each image can be analyzed, so that the proportion of the female user and the male user in the users captured by the image capturing module can be estimated. Then, by analyzing the face image of the target user in each image, the age distribution of the user who is imaged by the imaging component can be estimated.
And step two, adjusting the height of the user for shooting through the shooting component according to the gender information and the age information of the target user.
In implementation, the height data of users of different ages and different sexes in the region where the target equipment is located can be obtained and stored in a preselected mode, and the height of the user who can shoot through the shooting component can be determined more accurately through the obtained height data of the users of different ages and different sexes, the estimated proportion of the female user and the male user in the shooting users and the estimated age distribution of the shooting users.
In step S510, based on the adjusted installation parameters, the installation height of the camera module on the target machine and the installation angle of the camera module on the target machine are adjusted respectively.
In implementation, the adjusted installation parameters may be input into a corresponding algorithm for calculation, so as to obtain a corresponding installation height and an installation angle, the installation height and the installation angle calculated in step S504 may be adjusted based on the obtained installation height and installation angle, so as to obtain an adjusted installation angle and installation height, the adjusted installation angle and installation height may be provided to an installer, and the installer may adjust the camera module on the target implement based on the adjusted installation angle and installation height.
The embodiment of the specification provides a method for installing a camera assembly, which includes obtaining installation parameters of the camera assembly to be installed, wherein the installation parameters at least include one or more of a field angle of the camera assembly, a distance between a user who takes a picture and an installation position of the camera assembly, a height of the user who takes a picture through the camera assembly and a distance between an edge of a target machine tool to be installed on the camera assembly and a designated surface, and then determining an installation height of the camera assembly on the target machine tool and an installation angle of the camera assembly on the target machine tool according to the installation parameters of the camera assembly, so that the optimal installation height and installation angle of the camera assembly can be given according to different input installation parameters, and the same type of camera assembly can be used on different types of target machine tools, and the optimal experience of face recognition or face detection can be achieved under different scenes.
Example four
As shown in fig. 6, the present specification provides a method for installing a camera module, where an execution subject of the method may be an electronic device, and the electronic device may be a terminal device, a server, or the like, where the terminal device may be a mobile terminal device such as a mobile phone or a tablet computer, and may also be a device such as a personal computer. The server may be an independent server, or a server cluster including a plurality of servers. The method may specifically comprise the steps of:
in step S602, installation parameters of a camera module to be installed are obtained, where the installation parameters at least include one or more of a field angle of the camera module, a distance between a user who takes a picture and an installation position of the camera module, a height of the user who takes a picture through the camera module, and a distance between an edge of a target tool to be installed on the camera module and a designated surface.
The target machine may be a user self-service machine, such as a self-service settlement machine (specifically, a self-service cash register, an automatic teller machine, or the like) or an artificial intelligence vending machine (specifically, an AI vending machine, or the like), or may be any other machine (for example, an outdoor scene billboard, or the like) that needs to mount a camera module.
In step S604, the mounting height of the camera assembly on the target implement and the mounting angle of the camera assembly on the target implement are determined according to the mounting parameters of the camera assembly.
In addition, in consideration of the fact that data of the installation parameters of the camera module may not be consistent with corresponding data in an actual situation, for example, a numerical value or a numerical range estimated for a user height is inaccurate, and it may be difficult for a manufacturer of the target equipment to ensure quality of the target equipment, and in addition, an angle of a lens assembly in the camera module may also be shifted during transportation or during installation of the target equipment, and for this reason, the target equipment in the use process needs to be continuously monitored, the camera module with a problem in installation is found from the monitored data, and the installation height and/or the installation angle of the camera module can be calibrated through the monitored data, so as to ensure a good experience of continuous face detection or face recognition conforming to an actual environment.
In practical applications, in order to adjust the shooting area of the camera module in time, a predetermined track may be provided in the camera module, that is, the camera module includes a lens module and a predetermined track for moving the lens module, so that the predetermined track for moving the lens module may include a horizontal track for moving the lens module in a horizontal direction, a vertical track for moving the lens module in a vertical direction, and the like, so that the lens module may move along the horizontal track and may also move along the vertical track to adjust the shooting range of the lens module, and the specific processing procedure may refer to the following processing of step S606 and step S608.
In step S606, an image captured by the target user through the above-described imaging module is acquired.
In step S608, the position of the lens assembly in the predetermined track in the camera assembly is adjusted according to the position of the face image of the target user in the image, so that the face image of the target user in the captured image is located in the predetermined area.
In an implementation, based on the above, for example, the distance between the target user and the installation position of the camera module may be determined according to the area occupied by the facial image of the target user in the image, and the distance between the user who performs the image capturing and the installation position of the camera module may be adjusted based on the distance between the target user and the installation position of the camera module; and/or determining gender information and age information of the target user according to the facial image of the target user in the image, adjusting the height of the user shot by the camera assembly according to the gender information and the age information of the target user, and the like. Based on the obtained mounting height and mounting angle, and the mounting height and mounting angle calculated in step S604 above, the position of the lens assembly in the predetermined track in the camera assembly may be adjusted along the horizontal track and/or the vertical track so that the image of the face of the target user in the captured image is located within the predetermined area.
For another example, if the image of the face of the target user is too far up or too far down in the image, the position of the lens assembly in the predetermined track in the camera assembly may be adjusted along the horizontal track and/or the vertical track according to the position of the image of the face of the target user in the image, so that the image of the face of the target user in the captured image is within the predetermined area, and so on.
The processing manner of the step S608 may be various, and an optional processing procedure is provided below, which may specifically include the following step one and step two.
Step one, detecting the face image integrity of the target user in the image.
In practice, after the duration of use of the camera assembly reaches a predetermined duration (e.g., 7 days, 10 days, etc.) or the number of images captured by the camera assembly reaches a predetermined number threshold (e.g., 1000 or 500 images, etc.), the position of the face coordinates in the entire image in each captured face image may be calculated, and if the installation angle of the camera assembly is not appropriate, the position of the face coordinates in the entire image will be mostly in an upper or lower position, which is not in accordance with the desired intermediate position. If the deviation of the installation angle of the camera shooting assembly is too large, the image is not provided with a complete face image, and therefore the integrity of the face image can be detected in the shot image.
And secondly, adjusting the position of the lens assembly in a preset track in the camera assembly according to the integrity of the face image of the target user in the image and the position of the face image of the target user in the image.
In implementation, whether the installation angle of the current camera shooting assembly is suitable for the current user can be judged based on the face position and the face integrity, and if the installation angle and/or the installation height of the camera shooting assembly are not suitable for the current user, the installation angle and/or the installation height of the camera shooting assembly can be recalculated or adjusted, and the position of the lens assembly in the preset track in the camera shooting assembly is adjusted accordingly.
The embodiment of the specification provides a method for installing a camera assembly, which includes obtaining installation parameters of the camera assembly to be installed, wherein the installation parameters at least include one or more of a field angle of the camera assembly, a distance between a user who takes a picture and an installation position of the camera assembly, a height of the user who takes a picture through the camera assembly and a distance between an edge of a target machine tool to be installed on the camera assembly and a designated surface, and then determining an installation height of the camera assembly on the target machine tool and an installation angle of the camera assembly on the target machine tool according to the installation parameters of the camera assembly, so that the optimal installation height and installation angle of the camera assembly can be given according to different input installation parameters, and the same type of camera assembly can be used on different types of target machine tools, and the optimal experience of face recognition or face detection can be achieved under different scenes.
EXAMPLE five
The present embodiment will describe in detail a method for installing a camera module provided in the embodiments of the present specification with reference to specific application scenarios, where the corresponding application scenarios may be as shown in fig. 2, where the installation parameters may include at least one or more of a vertical field angle of the camera module, a horizontal distance between a user who takes a picture and a target implement to be installed on the camera module, a height of the user who takes a picture through the camera module, and a distance between an edge of the target implement and the ground. As shown in fig. 7, the present specification provides a method for installing a camera module, where an execution subject of the method may be an electronic device, and the electronic device may be a terminal device, a server, or the like, where the terminal device may be a mobile terminal device such as a mobile phone or a tablet computer, and may also be a device such as a personal computer. The server may be an independent server, a server cluster including a plurality of servers, or the like. The method specifically comprises the following steps:
in step S702, acquiring installation parameters of a camera assembly to be installed, where the installation parameters at least include one or more of a vertical field angle of the camera assembly, a horizontal distance between a user who takes a picture and a target implement to be installed on the camera assembly, a height of the user who takes a picture through the camera assembly, and a distance between an edge of the target implement and the ground.
The target equipment may be self-service equipment of the user, such as self-service settlement equipment (specifically, a self-service cash register, an automatic teller machine, or the like) or artificial intelligent vending equipment (specifically, an AI vending equipment, or the like), or may be any other equipment (for example, an outdoor scene billboard, or the like) that needs to be equipped with a camera module.
In step S704, a mounting height of the camera assembly on the target implement and a mounting angle of the camera assembly on the target implement are determined according to the mounting parameters of the camera assembly.
In addition, in consideration of the fact that the data of the installation parameters of the camera module may not conform to the corresponding data in the actual situation, for example, the estimated value or the range of the value of the height of the user is inaccurate, and in addition, the manufacturer of the target equipment may hardly guarantee the quality of the target equipment, and in addition, the angle of the lens component in the camera module may also be shifted during transportation or installation of the target equipment, and for this reason, the target equipment in the use process needs to be continuously monitored, the camera module with a problem in installation is found from the monitored data, and the installation height and/or the installation angle of the camera module can be calibrated through the monitored data, so as to guarantee a good experience of continuous face detection or face recognition conforming to the actual environment.
If the image of the target user ' S face is too much upward or too much downward in the image, it indicates that the installation angle of the camera module does not achieve the best shooting effect of the target user ' S face, and at this time, the installation parameters may be adjusted according to the position of the image of the target user ' S face in each image, and the following processing from step S706 to step S710 may be specifically included.
In step S706, an image captured by the target user through the above-described imaging assembly is acquired.
In step S708, the mounting parameters of the imaging module are adjusted based on the image, and the adjusted mounting parameters are obtained.
In implementation, after the images captured by the target user through the camera module are obtained through the processing in step S706, the facial image of the target user in each image may be analyzed, and the installation parameters of the camera module may be adjusted accordingly through the related information embodied in the facial image of the target user.
Based on the relevant contents in the above embodiments, the installation parameters may include one or more of a vertical field angle of the camera assembly, a horizontal distance between a user who takes a picture and a target tool to be installed on the camera assembly, a height of the user who takes a picture through the camera assembly, and a distance between an edge of the target tool and the ground, and the specific processing may be different for installation parameters containing different information, and two optional processing manners of the above step S708 are provided below, and specifically, refer to the following manner one and manner two.
In a first mode, if the installation parameters include a horizontal distance between a user who performs imaging and a target implement to which the imaging component is to be installed, the process of step S708 may be implemented by the following first step and second step.
Step one, according to the area occupied by the face image of the target user in the image, determining the horizontal distance between the target user and the target machine tool.
In practice, the horizontal distance between the user actually performing face detection or face recognition and the target implement may be different, for example, for a desktop type target implement, the user should be located in front of the target implement, if the standing position of the user is different, the distance between the target user and the target implement is different, and for different users, the habit of the standing position is also different, so that the horizontal distance between the user performing image pickup and the target implement to which the image pickup assembly is to be mounted needs to be adjusted. Specifically, after the images captured by the target user through the camera assembly are obtained through the processing in step S706, the facial image of the target user in each image may be analyzed, if the installation parameter includes the horizontal distance between the user who takes the image and the target implement to be installed on the camera assembly, the size of the area occupied by the facial image of the target user in the whole image may be obtained, and the horizontal distance between the target user and the target implement may be calculated based on the size of the area occupied by the facial image of the target user in the whole image.
And step two, adjusting the horizontal distance between the user for shooting and the target machine tool to be installed by the shooting assembly based on the horizontal distance between the target user and the target machine tool.
In a second mode, if the installation parameter includes the user height for imaging by the imaging component, the process of step S708 described above can be implemented by the following step one and step two.
Step one, according to the face image of the target user in the image, determining the gender information and the age information of the target user.
And step two, adjusting the height of the user who shoots through the shooting component according to the gender information and the age information of the target user.
In step S710, based on the adjusted installation parameters, the installation height of the camera assembly on the target implement and the installation angle of the camera assembly on the target implement are respectively adjusted.
The embodiment of the specification provides a method for installing a camera shooting assembly, which comprises the steps of obtaining installation parameters of the camera shooting assembly to be installed, wherein the installation parameters at least comprise one or more of a field angle of the camera shooting assembly, a distance between a user who takes a picture and an installation position of the camera shooting assembly, a height of the user who takes a picture through the camera shooting assembly and a distance between the edge of a target machine tool to be installed with the camera shooting assembly and a specified surface, and then determining the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool according to the installation parameters of the camera shooting assembly.
Example six
Based on the same idea, the method for mounting the camera module provided in the embodiment of the present specification further provides an apparatus for mounting the camera module, as shown in fig. 8.
The apparatus for mounting of a camera assembly comprises: a parameter obtaining module 801 and an output module 802, wherein:
a parameter obtaining module 801, configured to obtain installation parameters of a camera shooting assembly to be installed, where the installation parameters at least include one or more of a field angle of the camera shooting assembly, a distance between a user who takes a picture and an installation position of the camera shooting assembly, a height of the user who takes a picture through the camera shooting assembly, and a distance between an edge of a target implement to be installed on the camera shooting assembly and a designated surface;
an output module 802, configured to determine, according to the installation parameter of the camera shooting assembly, an installation height of the camera shooting assembly on the target implement and an installation angle of the camera shooting assembly on the target implement.
In an embodiment of this specification, the apparatus further includes:
the first image acquisition module is used for acquiring an image shot by a target user through the camera shooting assembly;
the first adjusting module is used for adjusting the installation angle of the camera shooting assembly on the target machine tool according to the position of the facial image of the target user in the image.
In an embodiment of this specification, the apparatus further includes:
the image acquisition module is used for acquiring an image shot by a target user through the camera shooting assembly;
the parameter adjusting module is used for adjusting the installation parameters of the camera shooting assembly based on the image to obtain the adjusted installation parameters;
and the second adjusting module is used for respectively adjusting the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool based on the adjusted installation parameters.
In an embodiment of the present specification, the installation parameter includes a distance between a user who performs image capturing and an installation position of the image capturing component, and the parameter adjusting module includes:
a first distance determination unit configured to determine a distance between the target user and the mounting position of the image pickup assembly based on an area occupied by the face image of the target user in the image;
a second distance determination unit configured to adjust a distance between a user who performs image capturing and an installation position of the image capturing component based on a distance between the target user and the installation position of the image capturing component.
In an embodiment of this specification, the installation parameter includes a user height for shooting through the camera shooting assembly, and the parameter adjusting module includes:
an information determination unit configured to determine gender information and age information of a target user from a face image of the target user in the image;
and the parameter adjusting unit is used for adjusting the height of the user who shoots through the shooting component according to the gender information and the age information of the target user.
In an embodiment of this specification, the image capturing assembly includes a lens assembly and a predetermined track for the lens assembly to move, and the apparatus further includes:
the image acquisition module is used for acquiring an image shot by a target user through the camera shooting assembly;
and the position adjusting module is used for adjusting the position of the lens assembly in a preset track in the camera assembly according to the position of the facial image of the target user in the image, so that the facial image of the target user in the shot image is positioned in a preset area.
In an embodiment of this specification, the position adjustment module includes:
a detection unit for detecting the face image integrity of the target user in the image;
and the position adjusting unit is used for adjusting the position of the lens assembly in a preset track in the camera assembly according to the integrity of the face image of the target user in the image and the position of the face image of the target user in the image.
In the embodiment of the specification, the target machine is a self-service settlement machine or an artificial intelligence vending machine.
The embodiment of the specification provides a device for installing a camera shooting assembly, the device is characterized in that installation parameters of the camera shooting assembly to be installed are obtained, the installation parameters at least comprise one or more of the angle of view of the camera shooting assembly, the distance between a user who takes a picture and the installation position of the camera shooting assembly, the height of the user who takes a picture through the camera shooting assembly and the distance between the edge of a target machine tool to be installed and a specified surface of the camera shooting assembly, then the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool are determined according to the installation parameters of the camera shooting assembly, and therefore the optimal installation height and installation angle of the camera shooting assembly can be given according to different input installation parameters, the same type of camera shooting assembly can be used on different types of target machine tools, and the optimal face recognition or face detection experience can be achieved under different scenes.
EXAMPLE seven
Based on the same idea, the apparatus for mounting an image pickup module provided in the embodiments of the present specification further provides an apparatus for mounting an image pickup module, as shown in fig. 9.
The apparatus for mounting a camera module may be the electronic apparatus provided in the above embodiment.
The apparatus for installation of the camera assembly may vary significantly depending on configuration or performance, and may include one or more processors 901 and memory 902, where the memory 902 may store one or more stored applications or data. Memory 902 may be, among other things, transient storage or persistent storage. The application program stored in memory 902 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for use in a device for installation of a camera assembly. Still further, the processor 901 may be configured to communicate with the memory 902 to execute a series of computer-executable instructions in the memory 902 on the device for installation of the camera assembly. The apparatus for installation of the camera component may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, one or more input-output interfaces 905, one or more keyboards 906.
In particular, in this embodiment, an apparatus for installation of a camera component includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the apparatus for installation of a camera component, and execution of the one or more programs by one or more processors includes computer-executable instructions for:
acquiring installation parameters of a camera assembly to be installed, wherein the installation parameters at least comprise one or more of the angle of view of the camera assembly, the distance between a user who takes a picture and the installation position of the camera assembly, the height of the user who takes a picture through the camera assembly, and the distance between the edge of a target tool to be installed on the camera assembly and a designated surface;
and determining the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool according to the installation parameters of the camera shooting assembly.
In an embodiment of this specification, after determining the installation height of the camera module on the target implement and the installation angle of the camera module on the target implement according to the installation parameters of the camera module, the method further includes:
acquiring an image shot by a target user through the camera shooting assembly;
and adjusting the installation angle of the camera assembly on the target equipment according to the position of the facial image of the target user in the image.
In an embodiment of this specification, after determining the installation height of the camera module on the target implement and the installation angle of the camera module on the target implement according to the installation parameters of the camera module, the method further includes:
acquiring an image shot by a target user through the camera shooting assembly;
adjusting the installation parameters of the camera shooting assembly based on the image to obtain adjusted installation parameters;
and respectively adjusting the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool based on the adjusted installation parameters.
In the embodiment of the specification, the installation parameters comprise the distance between a user who takes a picture and the installation position of the camera shooting component,
adjusting the installation parameters of the camera shooting assembly based on the image to obtain the adjusted installation parameters, and the method comprises the following steps:
determining the distance between the target user and the installation position of the camera shooting assembly according to the area occupied by the face image of the target user in the image;
and adjusting the distance between the user who takes the image and the installation position of the image pickup assembly based on the distance between the target user and the installation position of the image pickup assembly.
In the embodiment of the specification, the installation parameters comprise the height of a user who takes a picture through the camera component,
adjusting the installation parameters of the camera assembly based on the image to obtain adjusted installation parameters, including:
determining gender information and age information of a target user according to a facial image of the target user in the image;
and adjusting the height of the user who shoots through the shooting component according to the gender information and the age information of the target user.
In the embodiment of the present specification, the camera assembly includes a lens assembly and a predetermined track for the lens assembly to move,
after determining the installation height of the camera assembly on the target implement and the installation angle of the camera assembly on the target implement according to the installation parameters of the camera assembly, the method further comprises:
acquiring an image shot by a target user through the camera shooting assembly;
and adjusting the position of the lens assembly in a preset track in the camera assembly according to the position of the face image of the target user in the image, so that the face image of the target user in the shot image is located in a preset area.
In this embodiment of the present specification, the adjusting the position of the lens assembly in the predetermined track in the camera assembly according to the position of the facial image of the target user in the image includes:
detecting the face image integrity of the target user in the image;
and adjusting the position of the lens assembly in a preset track in the camera assembly according to the integrity of the face image of the target user in the image and the position of the face image of the target user in the image.
In an embodiment of the specification, the target machine is a self-service settlement machine or an artificial intelligence vending machine.
The embodiment of the specification provides equipment for installing a camera shooting assembly, the installation parameters of the camera shooting assembly to be installed are obtained, the installation parameters at least comprise one or more of the angle of view of the camera shooting assembly, the distance between a user who makes a video and the installation position of the camera shooting assembly, the height of the user who makes a video through the camera shooting assembly and the distance between the edge of a target machine tool to be installed with the camera shooting assembly and a specified surface, then the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool are determined according to the installation parameters of the camera shooting assembly, and therefore the optimal installation height and installation angle of the camera shooting assembly can be given according to different input installation parameters, the same type of camera shooting assembly can be used on different types of target machine tools, and the optimal face recognition or face detection experience can be achieved under different scenes.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as ABEL (Advanced Boolean Expression Language), AHDL (alternate Hardware Description Language), traffic, CUPL (core universal Programming Language), HDCal, jhddl (Java Hardware Description Language), lava, lola, HDL, PALASM, rhyd (Hardware Description Language), and vhigh-Language (Hardware Description Language), which is currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in purely computer readable program code means, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be conceived to be both a software module implementing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, respectively. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present description are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (9)

1. A method for installation of a camera assembly, the method comprising:
acquiring an image shot by a target user through a camera assembly arranged on a target machine tool;
adjusting the installation parameters of the camera shooting assembly based on the image to obtain the adjusted installation parameters, wherein the installation parameters comprise the height of a user who shoots through the camera shooting assembly, the height of the user is determined by pre-stored height data of users with different ages and different sexes in the region where the target machine tool is located, and the proportion occupied by female users and male users and the age distribution determined based on the image;
and respectively adjusting the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool based on the adjusted installation parameters.
2. The method of claim 1, the installation parameters comprising a distance between a user taking a picture and an installation location of the camera assembly,
adjusting the installation parameters of the camera shooting assembly based on the image to obtain the adjusted installation parameters, and the method comprises the following steps:
determining the distance between the target user and the installation position of the camera shooting assembly according to the area occupied by the facial image of the target user in the image;
and adjusting the distance between the user who takes the image and the installation position of the image pickup assembly based on the distance between the target user and the installation position of the image pickup assembly.
3. The method of claim 1, wherein adjusting the mounting parameters of the camera assembly based on the image to obtain adjusted mounting parameters comprises:
determining gender information and age information of a target user according to a facial image of the target user in the image;
and adjusting the height of the user who shoots through the shooting component according to the gender information and the age information of the target user.
4. The method of claim 1, the target implement being a self-checkout implement or an artificial intelligence vending implement.
5. An apparatus for installation of a camera assembly, the apparatus comprising:
the image acquisition module is used for acquiring an image shot by a target user through a camera assembly arranged on a target machine tool;
the parameter adjusting module is used for adjusting the installation parameters of the camera shooting assembly based on the image to obtain the adjusted installation parameters, the installation parameters comprise the height of a user who shoots through the camera shooting assembly, the height of the user is determined by the height data of the users with different ages and different sexes in the region where the target machine tool is located, and the proportion occupied by female users and male users and the age distribution of the users who shoot based on the image;
and the second adjusting module is used for respectively adjusting the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool based on the adjusted installation parameters.
6. The apparatus of claim 5, the mounting parameters comprising a distance between a user performing the imaging and a mounting location of the imaging assembly, the parameter adjustment module comprising:
a first distance determination unit configured to determine a distance between the target user and the mounting position of the image pickup assembly based on an area occupied by the face image of the target user in the image;
a second distance determination unit configured to adjust a distance between a user who performs image capturing and an installation position of the image capturing component based on a distance between the target user and the installation position of the image capturing component.
7. The apparatus of claim 5, the parameter adjustment module, comprising:
an information determination unit configured to determine gender information and age information of a target user from a face image of the target user in the image;
and the parameter adjusting unit is used for adjusting the height of the user who shoots through the shooting component according to the gender information and the age information of the target user.
8. The apparatus of claim 5, the target implement being a self-checkout implement or an artificial intelligence vending implement.
9. An apparatus for mounting of a camera assembly, the apparatus comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring an image shot by a target user through a camera assembly arranged on a target machine tool;
adjusting the installation parameters of the camera shooting assembly based on the image to obtain the adjusted installation parameters, wherein the installation parameters comprise the height of a user who shoots through the camera shooting assembly, the height of the user is determined by pre-stored height data of users with different ages and different sexes in the region where the target machine tool is located, and the proportion occupied by female users and male users and the age distribution determined based on the image;
and respectively adjusting the installation height of the camera shooting assembly on the target machine tool and the installation angle of the camera shooting assembly on the target machine tool based on the adjusted installation parameters.
CN202110632475.2A 2019-03-27 2019-03-27 Method, device and equipment for installing camera shooting assembly Active CN113418091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110632475.2A CN113418091B (en) 2019-03-27 2019-03-27 Method, device and equipment for installing camera shooting assembly

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110632475.2A CN113418091B (en) 2019-03-27 2019-03-27 Method, device and equipment for installing camera shooting assembly
CN201910238954.9A CN110030467B (en) 2019-03-27 2019-03-27 Method, device and equipment for installing camera shooting assembly

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910238954.9A Division CN110030467B (en) 2019-03-27 2019-03-27 Method, device and equipment for installing camera shooting assembly

Publications (2)

Publication Number Publication Date
CN113418091A CN113418091A (en) 2021-09-21
CN113418091B true CN113418091B (en) 2022-12-23

Family

ID=67236748

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110632475.2A Active CN113418091B (en) 2019-03-27 2019-03-27 Method, device and equipment for installing camera shooting assembly
CN201910238954.9A Active CN110030467B (en) 2019-03-27 2019-03-27 Method, device and equipment for installing camera shooting assembly

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910238954.9A Active CN110030467B (en) 2019-03-27 2019-03-27 Method, device and equipment for installing camera shooting assembly

Country Status (1)

Country Link
CN (2) CN113418091B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111144327B (en) * 2019-12-28 2023-04-07 神思电子技术股份有限公司 Method for improving recognition efficiency of face recognition camera of self-service equipment
CN114842618A (en) * 2022-04-24 2022-08-02 北京启辰智达科技有限公司 Embedded driver behavior state early warning method and device, vehicle and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150002690A1 (en) * 2013-07-01 2015-01-01 Sony Corporation Image processing method and apparatus, and electronic device
CN104853088A (en) * 2015-04-09 2015-08-19 来安县新元机电设备设计有限公司 Method for rapidly focusing a photographing mobile terminal and mobile terminal
CN106845454A (en) * 2017-02-24 2017-06-13 张家口浩扬科技有限公司 The method and its device of a kind of image output feedback
CN107257440A (en) * 2017-07-31 2017-10-17 深圳回收宝科技有限公司 It is a kind of to detect method, equipment and storage medium that video tracking is shot
CN107917324A (en) * 2016-10-09 2018-04-17 杭州骥跃科技有限公司 A kind of intelligent video monitoring apparatus and installation method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898136A (en) * 2015-11-17 2016-08-24 乐视致新电子科技(天津)有限公司 Camera angle adjustment method, system and television
CN205938364U (en) * 2016-01-25 2017-02-08 安徽胜佳和电子科技有限公司 Monitoring camera
JP2017219697A (en) * 2016-06-08 2017-12-14 キヤノン株式会社 Imaging device and control method of imaging device
CN106657878B (en) * 2016-10-09 2019-08-09 上海智领网络科技有限责任公司 A kind of intelligent camera monitoring device and its installation and debugging method
CN106891824B (en) * 2017-01-25 2020-11-24 北京图森智途科技有限公司 Vehicle-mounted end camera mounting method
JP6495398B2 (en) * 2017-09-04 2019-04-03 株式会社コロプラ Method and program for providing virtual space, and information processing apparatus for executing the program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150002690A1 (en) * 2013-07-01 2015-01-01 Sony Corporation Image processing method and apparatus, and electronic device
CN104853088A (en) * 2015-04-09 2015-08-19 来安县新元机电设备设计有限公司 Method for rapidly focusing a photographing mobile terminal and mobile terminal
CN107917324A (en) * 2016-10-09 2018-04-17 杭州骥跃科技有限公司 A kind of intelligent video monitoring apparatus and installation method
CN106845454A (en) * 2017-02-24 2017-06-13 张家口浩扬科技有限公司 The method and its device of a kind of image output feedback
CN107257440A (en) * 2017-07-31 2017-10-17 深圳回收宝科技有限公司 It is a kind of to detect method, equipment and storage medium that video tracking is shot

Also Published As

Publication number Publication date
CN110030467A (en) 2019-07-19
CN110030467B (en) 2021-04-20
CN113418091A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
US11003893B2 (en) Face location tracking method, apparatus, and electronic device
CN108764091B (en) Living body detection method and apparatus, electronic device, and storage medium
US9940717B2 (en) Method and system of geometric camera self-calibration quality assessment
CN108668086B (en) Automatic focusing method and device, storage medium and terminal
CN110400337B (en) Image processing method, image processing device, electronic equipment and storage medium
CN104333748A (en) Method, device and terminal for obtaining image main object
CN107113373B (en) Method in electronic information processing system and information processing system
CN108702457B (en) Method, apparatus and computer-readable storage medium for automatic image correction
US10957021B2 (en) Method for rendering a final image from initial images acquired by a camera array, corresponding device, computer program product and computer-readable carrier medium
US20170374268A1 (en) Focusing point determining method and apparatus
CN108200335A (en) Photographic method, terminal and computer readable storage medium based on dual camera
CN113689578B (en) Human body data set generation method and device
CN113418091B (en) Method, device and equipment for installing camera shooting assembly
CN110706283B (en) Calibration method and device for sight tracking, mobile terminal and storage medium
CN109816628B (en) Face evaluation method and related product
CN108769538B (en) Automatic focusing method and device, storage medium and terminal
CN116235210A (en) System and method for processing captured images
US20180197273A1 (en) System and Method for Displaying Graphical Effects Based on Determined Facial Positions
CN108427110A (en) Distance measuring method, device and electronic equipment
CN110933304A (en) Method and device for determining to-be-blurred region, storage medium and terminal equipment
CN116017129A (en) Method, device, system, equipment and medium for adjusting angle of light supplementing lamp
US11283970B2 (en) Image processing method, image processing apparatus, electronic device, and computer readable storage medium
CN106550183A (en) A kind of image pickup method and device
CN116980744B (en) Feature-based camera tracking method and device, electronic equipment and storage medium
CN106131401A (en) A kind of image pickup method and terminal

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