A control method for a face recognition camera and a computer-readable storage medium

By stating the personnel distribution density and segmenting the panoramic image of the face recognition camera, and dynamically adjusting the recognition area, the problem of single scene recognition and poor flexibility in the existing technology is solved, and efficient face recognition and automatic naming functions are realized.

CN114419698BActive Publication Date: 2025-02-18TIANJIN TIANDI WEIYE INFORMATION SYST INTEGRATION CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111617719.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2025-02-18
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

The existing face recognition cameras have the problem of single recognition scenes and poor flexibility, and they cannot adjust the scene position at any time according to the actual situation in the environment.

Method used

By receiving the panoramic image of the first imaging device, using the area number detection algorithm to perform density statistics on the panoramic image, obtain density information of the personnel distribution range, and use the area separation algorithm to perform area segmentation on the panoramic image according to the density information. Get the information about the area to be identified. Then, based on the area information to be identified, the driving gimbal control component uses the second imaging device to complete the shooting of the area to be identified, obtains the area image, and performs personnel identification of the area image, and sends identification data to the back-end server.

Benefits of technology

It realizes dynamic adjustment of the recognition area based on personnel density information, improves the flexibility and working efficiency of the face recognition camera, and cooperates with the back-end server to realize the automatic naming function, improving the intelligent management of attendance information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114419698B_ABST
    Figure CN114419698B_ABST
Patent Text Reader

Abstract

The present invention provides a control method for a face recognition camera and a computer-readable storage medium, which belongs to the technical field of face recognition equipment and solves the problem that the existing face recognition cameras have a single recognition scene and poor flexibility. A control method for a face recognition camera is applied to a face recognition camera, and the face recognition camera includes a first camera device, a second camera device, a pan / tilt control component and a processor. The method includes: receiving a panoramic image of the first camera device; using a regional population detection algorithm to perform density statistics of the distribution range of personnel in the panoramic image to obtain density information of the distribution range of personnel; based on the density information of the distribution range of personnel, using a regional segmentation algorithm to perform regional segmentation on the panoramic image to obtain information of a region to be identified; based on the information of the region to be identified, driving the pan / tilt control component to complete the shooting of the region to be identified using the second camera device to obtain a regional image; performing personnel identification on the regional image, and sending the personnel identification data to a back-end server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of face recognition equipment, and in particular to a control method for a face recognition camera and a computer-readable storage medium. Background Art

[0002] With the development of intelligent cameras, the market demand for cameras that support face recognition is increasing.

[0003] At present, the face recognition spherical machine needs to pre-set the required recognition scene, and after the scene setting is completed, it can only recognize a few preset fixed scenes, and cannot adjust the scene position at any time according to the actual situation in the environment, and has poor flexibility.

[0004] Therefore, existing face recognition cameras have the problems of single recognition scene and poor flexibility. Summary of the invention

[0005] The object of the present invention is to provide a control method for a face recognition camera and a computer-readable storage medium to alleviate the technical problems of existing face recognition cameras, such as single recognition scene and poor flexibility.

[0006] In a first aspect, the present invention provides a control method for a face recognition camera, which is applied to the face recognition camera. The face recognition camera includes a first camera device, a second camera device, a pan / tilt control component, and a processor. The method includes:

[0007] Receiving a panoramic image of a first camera device;.

[0008] The regional population detection algorithm is used to perform density statistics of the personnel distribution range in the panoramic image to obtain the density information of the personnel distribution range;

[0009] According to the density information of the personnel distribution range, the panoramic image is segmented by using the regional segmentation algorithm to obtain the information of the area to be identified;

[0010] According to the information of the area to be identified, the pan / tilt control component is driven to use the second camera device to complete the shooting of the area to be identified, and obtain an image of the area;

[0011] Perform personnel recognition on the area image and send the personnel recognition data to the backend server.

[0012] Furthermore, after the step of using the regional population detection algorithm to perform density statistics of the personnel distribution range on the panoramic image to obtain the density information of the personnel distribution range, the method further includes:

[0013] According to the density information of the personnel distribution range, determine whether there is anyone in the panoramic image;

[0014] If yes, then perform a step of segmenting the panoramic image into regions using a region segmentation algorithm according to the density information of the personnel distribution range to obtain information of the region to be identified;

[0015] If not, then end.

[0016] Furthermore, the density information of the personnel distribution range includes personnel density values ​​within multiple ranges.

[0017] Furthermore, the density of people within the range is proportional to the number of segmented areas.

[0018] Furthermore, the number of the areas to be identified is 1 to 64.

[0019] Furthermore, the step of driving the pan / tilt control component to use the second camera device to complete the shooting of the area to be identified based on the information of the area to be identified to obtain the area image includes:

[0020] Receive preset time;

[0021] According to the information of the area to be identified and the preset time, the pan / tilt control component is driven to stay in the area to be identified for the preset time, and the second camera device is used to complete the shooting of the area to be identified to obtain the area image.

[0022] Furthermore, the step of identifying the regional image and sending the identification data to the back-end server includes:

[0023] Perform face detection and face comparison recognition on the regional image to obtain personnel identification information;

[0024] Sends person identification information to a back-end server.

[0025] Furthermore, the step of driving the pan / tilt control component to use the second camera device to complete the shooting of the area to be identified based on the information of the area to be identified to obtain the area image includes:

[0026] Receive the rotation number of the area to be identified;

[0027] According to the information of the area to be identified and the number of rotations, the pan / tilt control component is driven to use the second camera device to perform multiple rounds of shooting of the area to be identified.

[0028] Furthermore, the horizontal rotation range of the lens in the second camera device is 0 to 180 degrees, and the vertical rotation range is -90 to +90 degrees.

[0029] In a second aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to execute the method provided in the first aspect.

[0030] The present invention provides a control method for a face recognition camera, which is applied to the face recognition camera. The face recognition camera includes a first camera device, a second camera device, a pan-tilt control component and a processor. The method includes: receiving a panoramic image of the first camera device; using a regional population detection algorithm to perform density statistics of a personnel distribution range on the panoramic image to obtain density information of the personnel distribution range, that is, performing density statistics on people distributed in different ranges in the panoramic image; according to the density information of the personnel distribution range, using a regional segmentation algorithm to perform regional segmentation on the panoramic image to obtain information of a region to be identified; performing regional segmentation on the panoramic image according to the density information to segment multiple regions with personnel activities to obtain information of the region to be identified; according to the information of the region to be identified, driving the pan-tilt control component to complete the shooting of the region to be identified using the second camera device to obtain a regional image, that is, the second camera device is turned to a corresponding position through the pan-tilt control component according to the information of the region to be identified, and the shooting of the region to be identified is completed through appropriate magnification adjustment, thereby obtaining a regional image. Personnel identification is performed on the regional image, and the personnel identification data is sent to a back-end server, and the back-end server completes the statistics of attendance personnel according to the personnel identification data to realize the automatic roll call function.

[0031] The control method of the face recognition camera provided by the present invention is adopted. By performing density statistics of the personnel distribution range on the panoramic image taken by the first camera device, the density information of the personnel distribution range, i.e., the density information within multiple ranges where personnel are active, is obtained. According to the density information of the personnel distribution range, corresponding area segmentation is performed to segment multiple areas to be identified where personnel are active, so that the number of segmented areas can be adjusted accordingly according to the size of the personnel density, and only the areas where personnel are active are segmented accordingly to obtain the areas to be identified, and the second camera device performs corresponding shooting of the areas to be identified. The problem of single recognition scene and poor flexibility of the face recognition camera is solved. In addition, by accurately positioning the range of personnel activities in the panoramic image, the position positioning is provided for the shooting of the second camera device in combination with the personnel density value, the operating efficiency of the face recognition camera is improved, and the automatic roll call function of personnel in companies, schools and other places can be realized in conjunction with the back-end server. This control method is used to realize intelligent management of attendance information.

[0032] Correspondingly, a computer-readable storage medium provided by the present invention also has the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 This is a flow chart of a method for controlling a face recognition camera provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0037] At present, the face recognition spherical machine needs to pre-set the required recognition scene, and after the scene setting is completed, it can only recognize a few preset fixed scenes, and cannot adjust the scene position at any time according to the actual situation in the environment, and has poor flexibility.

[0038] Therefore, existing face recognition cameras have the problems of single recognition scene and poor flexibility.

[0039] In order to solve the above problems, an embodiment of the present invention provides a control method for a face recognition camera.

[0040] like Figure 1 The embodiment of the present invention provides a control method for a face recognition camera, which is applied to the face recognition camera. The face recognition camera includes a first camera device, a second camera device, a pan / tilt control component and a processor. The method includes:

[0041] S1: Receive a panoramic image from a first camera device.

[0042] S2: Use the regional population detection algorithm to perform density statistics on the distribution range of people in the panoramic image to obtain density information of the distribution range of people.

[0043] S3: According to the density information of the personnel distribution range, the panoramic image is segmented by using a region segmentation algorithm to obtain information of the area to be identified.

[0044] S4: According to the information of the area to be identified, the pan / tilt control component is driven to use the second camera device to complete the shooting of the area to be identified, and obtain an area image.

[0045] S5: Perform personnel recognition on the area image and send the personnel recognition data to the backend server.

[0046] Density statistics are performed on people distributed in different ranges in the panoramic image; the panoramic image is segmented into regions according to the density information, and multiple areas with human activities are segmented to obtain information on the area to be identified; the second camera device is moved to the corresponding position through the pan-tilt control component according to the information on the area to be identified, and the shooting of the area to be identified is completed through appropriate magnification adjustment, thereby obtaining a regional image, and personnel identification data is obtained by identifying personnel in the regional image. The background server completes the statistics of the attendance personnel according to the personnel identification data, thereby realizing the automatic roll call function.

[0047] The control method of the face recognition camera provided by the embodiment of the present invention is adopted. By performing density statistics of the personnel distribution range on the panoramic image taken by the first camera device, the density information of the personnel distribution range, i.e., the density information within multiple ranges where personnel are active, is obtained. According to the density information of the personnel distribution range, corresponding area segmentation is performed to segment multiple areas to be identified where personnel are active, so that the number of segmented areas can be adjusted accordingly according to the size of the personnel density, and only the areas where personnel are active are segmented accordingly to obtain the areas to be identified, and the second camera device performs corresponding shooting of the areas to be identified. The problem of single recognition scene and poor flexibility of the face recognition camera is solved. And by accurately positioning the range of personnel activities in the panoramic image, combined with the personnel density value, the position positioning is provided for the shooting of the second camera device, thereby improving the operating efficiency of the face recognition camera. In conjunction with the back-end server, the automatic roll call function for personnel in companies, schools and other places can be realized, and the intelligent management of attendance information can be realized by using this control method.

[0048] In a possible implementation manner, after step S2, the method further includes:

[0049] S21: judging whether there is anyone in the panoramic image according to the density information of the personnel distribution range.

[0050] If yes, execute S3; if no, execute S22.

[0051] S22: End.

[0052] If there are people in the panoramic image, the panoramic image is segmented using a region segmentation algorithm according to the density information of the distribution range of the people to obtain information of the area to be identified. If there are no people in the panoramic image, no region segmentation is required.

[0053] In a possible implementation, the density information of the personnel distribution range includes the personnel density values ​​in multiple ranges. The density information of the personnel distribution range includes the density values ​​in multiple ranges where personnel activities are present in the panoramic image. The density information of the personnel distribution range is counted to provide basic data for the number of segments and the segmentation range of the regional segmentation.

[0054] In a possible implementation, the density of people within the range is proportional to the number of segmented areas, so that the range with a higher density value will be segmented into more data to be identified areas, ensuring that within the range with a higher density, the number of people can be reasonably segmented into different to-be-identified areas, avoiding the problem of missing people due to the high density of a certain area, and improving the accuracy of people detection. The proportional relationship between the density of people within the range and the number of segmented areas can be specifically set according to the accuracy requirements of face recognition.

[0055] In a possible implementation manner, the number of the regions to be identified is 1 to 64. The panoramic image can be divided into a maximum of 64 regions to be identified.

[0056] In a possible implementation, the step S4 includes:

[0057] S411: Receive a preset time.

[0058] S412: According to the information of the area to be identified and the preset time, the pan / tilt control component is driven to stay in the area to be identified for the preset time, and the second camera device is used to complete the shooting of the area to be identified to obtain the area image.

[0059] The preset time can be set according to specific needs. The second camera device will stay on the area to be identified for a certain period of time, shoot the area to be identified to obtain the area image, and perform personnel detection in the area image. Staying for a certain period of time provides the second camera device with more sufficient capture time and personnel detection time, thereby improving the accuracy of personnel recognition.

[0060] In a possible implementation, step S5 includes:

[0061] S51: Perform face detection and face comparison recognition on the regional image to obtain person recognition information.

[0062] S52: Sending the personnel identification information to the backend server.

[0063] Using face recognition technology, face detection and face comparison recognition are performed on regional images to obtain personnel identification information, which is then sent to the back-end server, thereby completing the function of automatic roll call and realizing intelligent attendance information statistics.

[0064] In a possible implementation, step S4 includes:

[0065] S421: Receive the rotation number of the area to be identified.

[0066] S422: According to the information of the area to be identified and the number of rotations, the pan / tilt control component is driven to use the second camera device to perform multiple rounds of shooting of the area to be identified.

[0067] The rotation number of the area to be identified is received, so that the second camera device takes multiple rounds of photos of the area to be identified, thereby improving the personnel detection rate and the accuracy of personnel detection. The rotation number can be specifically set according to needs.

[0068] In a possible implementation manner, the lens in the second camera device has a horizontal rotation range of 0 to 180 degrees, and a vertical rotation range of -90 to +90 degrees.

[0069] In a possible implementation, the output end of the first camera device is connected to the input end of the processor, the output end of the second camera device is connected to the input end of the processor, the first camera device is used to capture panoramic images, the output end of the processor is connected through a gimbal control component, the second camera device is fixed to the gimbal control component, the processor controls the shooting area of ​​the second camera device through the gimbal control component according to image area segmentation; the processor is used to perform image area segmentation on the panoramic image, and the processor is also used to receive area images of the second camera device.

[0070] In a possible implementation, the first camera device includes a first lens and a panoramic image sensor; the panoramic image sensor is used to receive the image of the first lens; the output end of the panoramic image sensor is connected to the input end of the processor. The second camera device includes a second lens and a zoom image sensor; the zoom image sensor is used to receive the image of the second lens; the second lens is fixed to the pan / tilt control component.

[0071] An embodiment of the present invention further provides a computer-readable storage medium, which stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method provided in the above embodiment.

[0072] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0073] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0074] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0075] The device provided in the embodiment of the present invention may be specific hardware on the device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment. It can be clearly understood by those skilled in the art that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiment, and will not be repeated here.

[0076] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0077] For another example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some communication interface, device or unit, which can be electrical, mechanical or other forms.

[0078] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0079] In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0080] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0081] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention. They should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for controlling a face recognition camera, characterized in that: Applied to a face recognition camera, the face recognition camera includes a first camera device, a second camera device, a pan / tilt control component and a processor, and the method includes: Receiving a panoramic image of a first camera device;. The regional population detection algorithm is used to perform density statistics of the personnel distribution range in the panoramic image to obtain the density information of the personnel distribution range; According to the density information of the personnel distribution range, the panoramic image is segmented by using a regional segmentation algorithm to obtain information of the area to be identified; the density information of the personnel distribution range includes personnel density values ​​within a plurality of ranges, and the personnel density values ​​within the ranges are proportional to the number of segmented areas; According to the information of the area to be identified, the pan / tilt control component is driven to use the second camera device to complete the shooting of the area to be identified, and obtain an image of the area; Perform personnel recognition on the area image and send the personnel recognition data to the backend server.

2. The control method of the face recognition camera according to claim 1, characterized in that: After the step of using the regional population detection algorithm to perform density statistics of the personnel distribution range of the panoramic image to obtain the density information of the personnel distribution range, the method further includes: According to the density information of the personnel distribution range, determine whether there is anyone in the panoramic image; If yes, then perform a step of segmenting the panoramic image into regions using a region segmentation algorithm according to the density information of the personnel distribution range to obtain information of the region to be identified; If not, then end.

3. The control method of a face recognition camera according to claim 1, characterized in that: The number of the areas to be identified is 1 to 64.

4. The control method of a face recognition camera according to claim 1, characterized in that: The step of driving the pan / tilt control component to use the second camera device to complete the shooting of the area to be identified based on the information of the area to be identified to obtain the area image includes: Receive preset time; According to the information of the area to be identified and the preset time, the pan / tilt control component is driven to stay in the area to be identified for the preset time, and the second camera device is used to complete the shooting of the area to be identified to obtain the area image.

5. The control method of a face recognition camera according to claim 1, characterized in that: The step of identifying the regional image and sending the identification data to the back-end server includes: Perform face detection and face comparison recognition on the regional image to obtain personnel identification information; Sends person identification information to a back-end server.

6. The control method of a face recognition camera according to claim 1, characterized in that: The step of driving the pan / tilt control component to use the second camera device to complete the shooting of the area to be identified based on the information of the area to be identified to obtain the area image includes: Receive the rotation number of the area to be identified; According to the information of the area to be identified and the number of rotations, the pan / tilt control component is driven to use the second camera device to perform multiple rounds of shooting of the area to be identified.

7. The control method of a face recognition camera according to claim 1, characterized in that: The lens in the second camera device has a horizontal rotation range of 0 to 180 degrees and a vertical rotation range of -90 to +90 degrees.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • People counting method, people counting system and electronic equipment

    CN108021852A

  • Monitoring method and device based on audio and video linkage, terminal and storage medium

    CN109922311A

  • Roll call system

    CN112073676A