Management method, device, system and readable storage medium of smart library
By analyzing the number and depth of wrinkles in facial images, the age of the person is determined, which solves the problem of chaotic management of library personnel, achieves the effect of managing areas according to age groups, and improves the order of the library.
Patent Information
- Application Number
- CN202010985042.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-18
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-09-18
AI Technical Summary
The existing library lacks personnel management, resulting in chaos, adults occupying the children's area, or children playing in the adult area.
Obtain the person's face image through the camera, analyze the number and depth of wrinkles in the facial features, determine the person's age, and allow entry to the corresponding area according to the age range.
It has realized the management of library areas according to the age groups of readers, avoiding personnel confusion and improving the orderliness of the library.
Smart Images

Figure HDA0002688940890000011 
Figure HDA0002688940890000021 
Figure HDA0002688940890000031
Abstract
Description
Technical Field
[0001] The present invention relates to the field of library management technology, and in particular to a management method, device, system and readable storage medium for a smart library. Background Art
[0002] A library is a public place where books and materials are collected, organized, and stored for reading and reference. Libraries have the functions of preserving human cultural heritage, developing information resources, and participating in social education. Both schools and governments will set up libraries for people to consult relevant information. Libraries generally classify books, such as books for elementary school students, books for middle school students, books for adults, and books for the elderly. Different works are suitable for different age groups. However, current libraries do not specifically manage personnel, which leads to chaos in the place. Adults often occupy children's places, or children often fight in adult places. Summary of the invention
[0003] In view of this, in order to solve one of the technical problems in the related art to a certain extent, it is necessary to provide a management method, device, system and readable storage medium for a smart library to manage the library according to the age of readers.
[0004] The present invention provides a management method for a smart library, wherein the library is divided into multiple areas, each area having books for people of different age groups to read, and the method comprises:
[0005] When a person needs to enter the area, a facial image of the person is acquired through a camera;
[0006] According to the distribution of facial features in the facial image, obtaining the number and depth of wrinkles in a predetermined area in the facial image;
[0007] determining the age of the person based on the number of wrinkles and the depth of the wrinkles;
[0008] If the age of the person is within the age range corresponding to the area, the person is allowed to enter the area to read the books in the area.
[0009] Furthermore, the “obtaining the number and depth of wrinkles in a predetermined area of the face image according to the distribution of facial features in the face image” includes:
[0010] Acquire the contours of the facial features in the facial image;
[0011] The edge contours of the facial features are offset outward by a predetermined distance to obtain an outer edge line, and the area between the outer edge line and the edge contour constitutes the predetermined area;
[0012] The number of wrinkles and the depth of wrinkles in the predetermined area are obtained.
[0013] Furthermore, the “obtaining the number and depth of wrinkles in a predetermined area of the face image” includes:
[0014] extracting the contours of wrinkles and the number of wrinkles from the predetermined area by contrast;
[0015] The wrinkle depth is obtained by the grayscale difference between the grayscale of the wrinkle center pixel and the grayscale of the wrinkle boundary line pixel.
[0016] Furthermore, extracting the contours of wrinkles and the number of wrinkles from the predetermined area by contrast includes:
[0017] If the pixels in the predetermined area with brightness lower than a predetermined value are adjacent and connected to form a predetermined length, it is confirmed to be a wrinkle and the contour of the wrinkle and the number of wrinkles are extracted.
[0018] Furthermore, the “when a person needs to enter the area, a facial image of the person is obtained through a camera” includes:
[0019] When a person needs to enter the area, the camera's viewing angle is enlarged to obtain a full-body image of the person;
[0020] Determine the gender of the person based on the person's clothing, hairstyle, appearance, and walking posture;
[0021] reducing the viewing angle of the camera to acquire a facial image of the person;
[0022] The “determining the age of the person based on the number and depth of wrinkles” includes:
[0023] The age corresponding to the gender of the person is determined based on the number of wrinkles and the depth of wrinkles.
[0024] Furthermore, the “when a person needs to enter the area, a facial image of the person is obtained through a camera” includes:
[0025] When a person needs to enter the area, a prompt is issued to ask the person to make a specific facial movement;
[0026] Acquiring a facial image of the person through the camera and determining whether the person has made a specific facial movement based on the facial features of the person;
[0027] If the person has made a specific facial movement, a facial image of the person with the specific expression is obtained through a camera;
[0028] If the person does not make the specific facial movement, continue to issue prompts for the person to make the specific facial movement.
[0029] The present invention provides a management device for a smart library, wherein the library is divided into multiple areas, each area having books for people of different age groups to read, and the device comprises:
[0030] A first acquisition module is used to acquire a facial image of a person through a camera when a person needs to enter the area;
[0031] A second acquisition module, configured to acquire the number and depth of wrinkles in a predetermined area of the face image according to the distribution of facial features in the face image;
[0032] A determination module, used for determining the age of the person according to the number of wrinkles and the depth of wrinkles;
[0033] The control module is used for allowing the person to enter the area to read the books in the area when the age of the person is within the age range corresponding to the area.
[0034] Furthermore, the second acquisition module is specifically used to:
[0035] Acquire the contours of the facial features in the facial image;
[0036] The edge contours of the facial features are offset outward by a predetermined distance to obtain an outer edge line, and the area between the outer edge line and the edge contour constitutes the predetermined area;
[0037] The number of wrinkles and the depth of wrinkles in the predetermined area are obtained.
[0038] The present invention provides a management system for a smart library, the system comprising:
[0039] processor;
[0040] A storage device having a computer program stored thereon, wherein the computer program can be executed by the processor to implement the smart library management method.
[0041] The present invention provides a computer-readable storage medium, on which a computer program is stored. The computer program can be executed by the processor to implement the management method of the smart library.
[0042] The present invention divides the library into multiple areas, each area has books for people of different age groups to read. When a person needs to enter one of the areas, the facial image of the person is obtained through a camera; the number of wrinkles and the depth of wrinkles in a predetermined area of the facial image are obtained according to the distribution of facial features in the facial image; the age of the person is determined according to the number of wrinkles and the depth of wrinkles; if the age of the person is within the age range corresponding to the area, the person is allowed to enter the area to read the books in the area. In this way, only people of the corresponding age group can enter the corresponding area to read books, which can avoid confusion among the personnel in the library and make the library more orderly. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is a schematic diagram of the library's area divisions.
[0044] Figure 2 This is a method flow chart of the first embodiment of the present invention.
[0045] Figure 3 This is a method flow chart of the second embodiment of the present invention.
[0046] Figure 4 This is a method flow chart of the third embodiment of the present invention.
[0047] Figure 5 This is a method flow chart of the fourth embodiment of the present invention.
[0048] Figure 6 It is a schematic diagram of the device structure of the present invention.
[0049] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 belong to the protection scope of the present invention. It is understood that the drawings are only provided for reference and explanation, and are not used to limit the present invention.
[0051] like Figure 1 As shown, the library can be divided into multiple areas A / B / C / D, each area contains books for people of different age groups to read, and the areas can be on the same floor and / or on different floors. Figure 2 As shown, a first embodiment of the present invention provides a management method for a smart library, the method comprising:
[0052] S110: When a person needs to enter the area, a facial image of the person is acquired through a camera.
[0053] S120: Acquire the number and depth of wrinkles in a predetermined area of the facial image according to the distribution of facial features in the facial image.
[0054] The predetermined area may be a specific area of the face, and may include a selected area or multiple selected areas, such as a forehead area, a mouth area, an eye corner area, or an area between two eyes. After acquiring the face image, the contours of the facial features of the face may be obtained, and the predetermined area may be obtained through the positions of the facial features.
[0055] In this step, the number of wrinkles and the depth of wrinkles can be obtained specifically in the following manner.
[0056] The contour of the wrinkles and the number of wrinkles are extracted from the predetermined area by contrast, and the wrinkle depth is obtained by the grayscale difference between the grayscale of the center pixel of the wrinkle and the grayscale of the pixel of the wrinkle boundary line.
[0057] The greater the contrast of the predetermined area, the higher the credibility of the existence of wrinkles. Wrinkles can be distinguished by contrast, and then the contour of the wrinkle and the number of wrinkles in the predetermined area can be obtained. After the wrinkle contour is obtained, the center of the wrinkle and the wrinkle boundary line can be obtained along the wrinkle contour, and then the grayscale of the center pixel and the boundary pixel of the wrinkle can be obtained. The wrinkle depth is obtained by the grayscale difference between the two. The greater the grayscale difference, the deeper the wrinkle.
[0058] Specifically, extracting the contours and number of wrinkles from the predetermined area by contrast includes: if pixel points in the predetermined area with brightness lower than a predetermined value are adjacent and connected to form a predetermined length, then they are confirmed to be wrinkles and the contours and number of wrinkles are extracted.
[0059] S130: Determine the age of the person according to the number of wrinkles and the depth of wrinkles.
[0060] The greater the number of wrinkles and the deeper the wrinkles, the older the person is.
[0061] S140: If the age of the person is within the age range corresponding to the area, the person is allowed to enter the area to read the books in the area.
[0062] The age range corresponding to the area is 50-60 years old. If the person's face image is collected and evaluated to determine that the person is 30 years old, the person is not allowed to enter the area, or needs to make a special application before entering. If the person is 55 years old, his age is within the age range corresponding to the area, and the person is allowed to enter the area to read the books in the area.
[0063] To sum up, only people of corresponding age groups can enter the corresponding areas to read books, which can avoid chaos in the library and make the library more orderly.
[0064] It should also be noted that in the existing library personnel management, personnel generally enter and exit specific places in the library through reading cards, so it is necessary to allocate reading cards to each person who wants to enter a specific place, which is a waste of resources. In addition, reading cards sometimes cannot reflect the real age, and management is sometimes in name only, requiring specific personnel to supervise. Using the method provided by the present invention, when a person enters, the number and depth of facial wrinkles are extracted to determine the age of the person. Only people in the corresponding age group can enter the corresponding area, without the need for cards and without the need for specific personnel to supervise.
[0065] like Figure 3 As shown, a second embodiment of the present invention provides a management method for a smart library, the method comprising:
[0066] S210: When a person needs to enter the area, a facial image of the person is acquired through a camera.
[0067] S220: Obtain the contours of the facial features in the facial image.
[0068] S230: Offset the edge contour of the facial features outward by a predetermined distance to obtain an outer edge line, and the area between the outer edge line and the edge contour constitutes the predetermined area.
[0069] Different facial features can be offset outwards by different distances, for example, the edge contours of the eyes and mouth can be extracted, with the edge contour of the eyes offset outwards by 1 cm, and the edge contour of the mouth offset outwards by 2 cm. Multiple different predetermined areas can be obtained, and the predetermined areas are the reasonable edge areas within the facial features area that are discarded.
[0070] S240: Obtain the number and depth of wrinkles in the predetermined area.
[0071] S250: Determine the age of the person according to the number of wrinkles and the depth of wrinkles.
[0072] The greater the number of wrinkles and the deeper the wrinkles, the older the person is.
[0073] S260: If the age of the person is within the age range corresponding to the area, the person is allowed to enter the area to read the books in the area.
[0074] In this embodiment, the edge contours of the facial features are extracted, and then the outer edge line is obtained by offsetting the edge contour outward by a certain distance. The outer edge line and the area between the edge contour constitute a predetermined area. The predetermined area does not include the facial features because the facial features themselves are likely to affect wrinkle recognition. Therefore, this embodiment can reduce recognition errors.
[0075] In addition, this embodiment makes full use of information on facial features. The facial features are the most active, and wrinkles are more likely to form around the facial features. The older you are, the more and deeper the wrinkles around the facial features will be. This embodiment only identifies wrinkles in a certain area outside the facial features, which can reasonably narrow the area for wrinkle recognition. There is no need to recognize wrinkles on the entire face, thereby increasing the speed of age determination.
[0076] like Figure 4 As shown, a third embodiment of the present invention provides a management method for a smart library, the method comprising:
[0077] S310: When a person needs to enter the area, the viewing angle of the camera is enlarged to obtain a full-body image of the person.
[0078] S320: Determine the gender of the person based on the person's clothing, hairstyle, appearance, and walking posture.
[0079] S330: Narrowing the viewing angle of the camera to obtain a facial image of the person.
[0080] S340: Obtaining the number and depth of wrinkles in a predetermined area of the facial image according to the distribution of facial features in the facial image.
[0081] S350: Determine the age corresponding to the gender of the person according to the number of wrinkles and the depth of wrinkles.
[0082] S360: If the age of the person is within the age range corresponding to the area, the person is allowed to enter the area to read the books in the area.
[0083] In this embodiment, a full-body image of a person is preferentially obtained through a camera, and the gender of the person is determined through the full-body image. Then, wrinkles are identified. People of different genders and the same age will have different wrinkles. Generally speaking, among adults, the number and depth of wrinkles in females are smaller than those in males. Age recognition of different genders is differentiated in this embodiment, so that the results are closer to the facts.
[0084] like Figure 5 As shown, a fourth embodiment of the present invention provides a management method for a smart library, the method comprising:
[0085] S410: When a person needs to enter the area, a prompt is issued to ask the person to make a specific facial movement.
[0086] S420: Acquire a facial image of the person through the camera.
[0087] S430: Determine whether the person has made a specific facial movement based on the facial features of the person; if so, execute step S440; if not, return to execute step S410.
[0088] The shape and changes of the facial features can be used to determine whether the person has made specific facial movements.
[0089] S440: Acquire a facial image of the person with a specific expression through a camera.
[0090] S450: Obtaining the number and depth of wrinkles in a predetermined area of the facial image according to the distribution of facial features in the facial image.
[0091] S460: Determine the age of the person based on the number of wrinkles and the depth of wrinkles.
[0092] S470: If the age of the person is within the age range corresponding to the area, the person is allowed to enter the area to read the books in the area.
[0093] For young people or those who wear makeup, some wrinkles are generally difficult to identify (especially light wrinkles). Through this embodiment, by asking the person to make specific facial movements (such as smiling), hidden wrinkles can be made more obvious, thereby making it easier to obtain the actual number and depth of wrinkles.
[0094] It should be understood that those skilled in the art can apply the technical solutions of each embodiment of the present invention to other embodiments accordingly, thereby obtaining more specific embodiments without creative work.
[0095] The present invention further provides a management device for a smart library, the device comprising: a first acquisition module 11, a second acquisition module 12, a determination module 13, and a control module 14.
[0096] The first acquisition module 11 is used to acquire a facial image of a person through a camera when a person needs to enter the area;
[0097] The second acquisition module 12 is used to acquire the number and depth of wrinkles in a predetermined area of the face image according to the distribution of facial features in the face image;
[0098] The determination module 13 is used to determine the age of the person according to the number of wrinkles and the depth of wrinkles;
[0099] The control module 14 is used for allowing the person to enter the area to read the books in the area when the age of the person is within the age range corresponding to the area.
[0100] Furthermore, the second acquisition module 12 is specifically used for:
[0101] Acquire the contours of the facial features in the facial image;
[0102] The edge contours of the facial features are offset outward by a predetermined distance to obtain an outer edge line, and the area between the outer edge line and the edge contour constitutes the predetermined area;
[0103] The number of wrinkles and the depth of wrinkles in the predetermined area are obtained.
[0104] Furthermore, the second acquisition module 12 is further specifically configured to:
[0105] extracting the contours of wrinkles and the number of wrinkles from the predetermined area by contrast;
[0106] The wrinkle depth is obtained by the grayscale difference between the grayscale of the wrinkle center pixel and the grayscale of the wrinkle boundary line pixel.
[0107] Furthermore, extracting the contours of wrinkles and the number of wrinkles from the predetermined area by contrast includes:
[0108] If the pixels in the predetermined area with brightness lower than a predetermined value are adjacent and connected to form a predetermined length, it is confirmed to be a wrinkle and the contour of the wrinkle and the number of wrinkles are extracted.
[0109] Furthermore, the first acquisition module 11 is specifically used for:
[0110] When a person needs to enter the area, the camera's viewing angle is enlarged to obtain a full-body image of the person;
[0111] Determine the gender of the person based on the person's clothing, hairstyle, appearance, and walking posture;
[0112] reducing the viewing angle of the camera to acquire a facial image of the person;
[0113] The determining module 13 is specifically used for:
[0114] The age corresponding to the gender of the person is determined based on the number of wrinkles and the depth of wrinkles.
[0115] Furthermore, the first acquisition module 11 is further specifically configured to:
[0116] When a person needs to enter the area, a prompt is issued to ask the person to make a specific facial movement;
[0117] Acquiring a facial image of the person through the camera and determining whether the person has made a specific facial movement based on the facial features of the person;
[0118] If the person has made a specific facial movement, a facial image of the person with the specific expression is obtained through a camera;
[0119] If the person does not make the specific facial movement, continue to issue prompts for the person to make the specific facial movement.
[0120] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A management method for a smart library, characterized in that: The library is divided into multiple areas, each area has books for people of different ages to read, and the method manages the flow of people according to their ages, and the method includes: When a person needs to enter the area, a facial image of the person is acquired through a camera; According to the distribution of facial features in the facial image, obtaining the number and depth of wrinkles in a predetermined area in the facial image; determining the age of the person based on the number of wrinkles and the depth of the wrinkles; If the age of the person is within the age range corresponding to the area, the person is allowed to enter the area to read the books in the area; The “obtaining the number and depth of wrinkles in a predetermined area of the face image according to the distribution of facial features in the face image” includes: Acquire the contours of the facial features in the facial image; The edge contours of the facial features are offset outward by a predetermined distance to obtain an outer edge line, and the area between the outer edge line and the edge contour constitutes the predetermined area; Acquiring the number and depth of wrinkles in the predetermined area; The "obtaining the number and depth of wrinkles in a predetermined area of the face image" includes: extracting the contours of wrinkles and the number of wrinkles from the predetermined area by contrast; The wrinkle depth is obtained by the grayscale difference between the grayscale of the wrinkle center pixel and the grayscale of the wrinkle boundary line pixel; The extracting the contours of wrinkles and the number of wrinkles from the predetermined area by contrast comprises: If the pixels in the predetermined area whose brightness is lower than the predetermined value are adjacent and connected to form a predetermined length, it is confirmed to be a wrinkle and the contour of the wrinkle and the number of wrinkles are extracted; The “when a person needs to enter the area, obtaining a facial image of the person through a camera” includes: When a person needs to enter the area, the camera's viewing angle is enlarged to obtain a full-body image of the person; Determine the gender of the person based on the person's clothing, hairstyle, appearance, and walking posture; reducing the viewing angle of the camera to acquire a facial image of the person; The “determining the age of the person based on the number of wrinkles and the depth of wrinkles” includes: Determining the age corresponding to the gender of the person based on the number of wrinkles and the depth of wrinkles; The “when a person needs to enter the area, obtaining a facial image of the person through a camera” includes: When a person needs to enter the area, a prompt is issued to ask the person to make a specific facial movement; Acquiring a facial image of the person through the camera and determining whether the person has made a specific facial movement based on the facial features of the person; If the person has made a specific facial movement, a facial image of the person with the specific expression is obtained through a camera; If the person does not make the specific facial movement, continue to issue a prompt for the person to make the specific facial movement; Wherein, the specific facial action is a smiling action.
2. A smart library management device for managing a library using the smart library management method of claim 1, characterized in that: The library is divided into multiple areas, each area has books for people of different ages to read, and the device includes: A first acquisition module is used to acquire a facial image of a person through a camera when a person needs to enter the area; A second acquisition module, configured to acquire the number and depth of wrinkles in a predetermined area of the face image according to the distribution of facial features in the face image; A determination module, used for determining the age of the person according to the number of wrinkles and the depth of wrinkles; A control module, configured to allow the person to enter the area to read books in the area when the age of the person is within the age range corresponding to the area; Wherein, the second acquisition module is specifically used for: Acquire the contours of the facial features in the facial image; The edge contours of the facial features are offset outward by a predetermined distance to obtain an outer edge line, and the area between the outer edge line and the edge contour constitutes the predetermined area; The number of wrinkles and the depth of wrinkles in the predetermined area are obtained.
3. A management system for a smart library, characterized in that: The system comprises: processor; A storage device having a computer program stored thereon, wherein the computer program can be executed by the processor to implement the smart library management method as claimed in claim 1.
4. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program can be executed by a processor to implement the smart library management method as claimed in claim 1.
