CN109920174B - Book borrowing method and device, electronic equipment and storage medium - Google Patents

Book borrowing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109920174B
CN109920174B CN201910064932.5A CN201910064932A CN109920174B CN 109920174 B CN109920174 B CN 109920174B CN 201910064932 A CN201910064932 A CN 201910064932A CN 109920174 B CN109920174 B CN 109920174B
Authority
CN
China
Prior art keywords
user
book
borrowing
face image
face
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
CN201910064932.5A
Other languages
Chinese (zh)
Other versions
CN109920174A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910064932.5A priority Critical patent/CN109920174B/en
Publication of CN109920174A publication Critical patent/CN109920174A/en
Application granted granted Critical
Publication of CN109920174B publication Critical patent/CN109920174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A book lending method comprising: collecting a face image of a user; confirming whether the user is a legal user or not according to the face image; when the user is determined to be a legal user, identifying the gender of the user and estimating the age of the user according to the face image; recommending a borrowing area in the library to the user according to the identified gender of the user and the estimated age of the user; and when the user applies for borrowing the books, acquiring the face images of the user and acquiring the book information applied for borrowing by the user again, and binding the face images and the book information applied for borrowing to finish borrowing the books. The invention also provides a book borrowing device, electronic equipment and a storage medium. According to the invention, whether the user is a legal user entering the library or not can be confirmed through the face comparison method, and the book borrowing and returning process is completed through face recognition, so that the workload and cost for borrowing the certificate are reduced, a quick and novel borrowing mode is provided, and the user experience is improved.

Description

Book borrowing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of face recognition, in particular to a book borrowing method and device, electronic equipment and a storage medium.
Background
At present, a general library can borrow books only by transacting borrowing certificates by users. The borrowing certificate is time-consuming and troublesome to handle, and the condition of forgetting or losing happens occasionally, so that inconvenience is brought to the user, and the borrowing enthusiasm of the user is influenced.
Disclosure of Invention
In view of the above, there is a need for a book borrowing method, apparatus, electronic device and storage medium, which can reduce the workload and cost for borrowing certificate transaction, provide a fast and novel borrowing mode, and improve the user experience.
The invention provides a book borrowing method, which comprises the following steps:
collecting a face image of a user;
determining whether the user is a legal user or not according to the face image;
when the user is determined to be a legal user, recognizing the gender of the user and estimating the age of the user according to the face image;
recommending a borrowing area in the library to the user according to the identified gender of the user and the estimated age of the user; and
when a user applies for borrowing books, the face images of the user and the book information applied for borrowing by the user are collected again, and the book borrowing is completed by binding the face images and the book information applied for borrowing.
Preferably, the method further comprises: and when the user is determined to be illegal, displaying prompt information to prompt the user to register the book management system, wherein the prompt information comprises a book management system login website.
Preferably, the step of determining whether the user is a legal user according to the face image comprises:
comparing the collected face image with a face image in a face database to determine whether the collected face image exists in the face database, wherein the face database stores the face image collected when a user registers in a book management system;
when the collected face image exists in the face database, the user is determined to be legal;
and when the acquired face image does not exist in the face database, confirming that the user is illegal.
Preferably, the recommending a borrowing area in a library to a user according to the identified gender and the estimated age of the user comprises:
sending a library schematic map to a portable mobile terminal carried by a user;
marking the borrowing area in the library schematic map;
and guiding the user to the borrowing area from the current position of the user by adopting an indoor navigation technology.
Preferably, the guiding the user from the current position of the user to the borrowing area by adopting the indoor navigation technology comprises the following steps:
determining the current position of a user according to an indoor positioning technology;
marking and displaying the current position of the user in a schematic map of the library;
planning a path according to the current position of the user and the marked borrowing area;
providing a shortest path for communicating the current position of the user with the marked borrowing area;
and providing navigation for the user according to the shortest path.
Preferably, the method further comprises:
when a user applies for returning books, current book information is collected, whether the collected current book information exists in a database is confirmed, when the collected current book information exists in the database, the current book is confirmed to be a book borrowed by the user, the user information is searched according to a face image bound with the current book, and prompt information is sent according to the user information to remind the user that the book is successfully returned.
Preferably, the method further comprises:
sending prompt information about overdue to a portable mobile terminal corresponding to the user to remind the user that the borrowed book is about to be overdue;
and when the books are overdue, acquiring the face images of the users when the users apply for returning the books, and linking the acquired face images of the users with the face images of the users stored in the face database to a third-party payment platform to pay overdue fees after the face images of the users are successfully matched with the face images of the users stored in the face database.
A second aspect of the present invention provides a book lending device, comprising:
the acquisition module is used for acquiring a face image of a user;
the confirming module is used for confirming whether the user is a legal user or not according to the face image;
the identification module is used for identifying the gender of the user and estimating the age of the user according to the face image when the user is determined to be a legal user;
the processing module is used for recommending a borrowing area in the library to the user according to the identified gender and the estimated age of the user; and
and the binding module is used for collecting the face image of the user and the book information which the user applies for borrowing again when the user applies for borrowing the book, and the borrowing of the book is completed by binding the face image and the book information which applies for borrowing.
A third aspect of the present invention provides an electronic device comprising a processor and a memory, the processor being configured to implement the book borrowing method when executing a computer program stored in the memory.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the book borrowing method.
According to the book borrowing method, the book borrowing device, the electronic equipment and the storage medium, the face images of the users entering and exiting the library are collected through the face recognition technology, and the gender and the age of the users are recognized through the face images of the users, so that the users can be guided to look up the books in the proper area of the library according to the gender and the age of the users. The system can reduce the workload and the cost for borrowing the certificates, provides a quick and novel borrowing mode to improve the user experience, and provides a reliable and safe library management mode.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a book lending method provided by an embodiment of the invention.
Fig. 2 is a functional block diagram of a book lending device provided by the second embodiment of the invention.
Fig. 3 is a schematic diagram of an electronic device according to a third embodiment of the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, and the described embodiments are merely some, but not all embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The terms "first," "second," and "third," etc. in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprises" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The book borrowing method provided by the embodiment of the invention is applied to electronic equipment. For the electronic equipment needing book borrowing, the book borrowing function provided by the method can be directly integrated on the electronic equipment, or a client used for realizing the method can be installed. For another example, the method provided by the present invention may also be operated on a device such as a server in the form of a Software Development Kit (SDK), an interface of the book borrowing function is provided in the form of the SDK, and the electronic device or other devices may implement the book borrowing function through the provided interface.
Example one
Fig. 1 is a flowchart of a book lending method provided by an embodiment of the invention. The execution sequence in the flow chart can be changed and some steps can be omitted according to different requirements.
And S01, acquiring a face image of the user.
In this embodiment, a camera (e.g., a wide-angle camera) is installed at the door of the library, and needs to face the camera when the user enters the library. At the moment, the camera can collect the user photos on site and send the collected user photos to the electronic equipment.
In this embodiment, the electronic device stores the user's photos in the same path in a predetermined format size.
In this embodiment, the electronic device includes, but is not limited to, a smart phone, a tablet computer, a desktop computer, or a kiosk.
Preferably, the method further comprises the step of pre-processing the captured user photograph.
In this embodiment, the preprocessing includes normalization processing of geometric characteristics of the face image. The normalization process of the geometric characteristics can normalize the face image to the same position, angle and size. Since the distance between the two eyes of a person is substantially the same for most people, the positions of the two eyes are usually used as the basis for geometric normalization of the face image.
Preferably, the method further comprises the step of detecting a face image in the user's picture according to a face detection algorithm. The face detection algorithm may be one or more of the following algorithms in combination: a template-based face detection method, an artificial neural network-based face detection method, a model-based face detection method, a skin color-based face detection method, or a feature sub-face-based face detection method, etc.
And S02, determining whether the user is a legal user or not according to the face image. When the user is determined to be legal, the flow goes to step S03; when it is confirmed that the user is illegal, the flow proceeds to step S04.
Preferably, the method for determining whether the user is a legal user according to the face image comprises:
comparing the collected face image with a face image in a face database to determine whether the collected face image exists in the face database, wherein the face database stores the face image collected when a user registers in a book management system;
when the collected face image exists in the face database, the user is confirmed to be legal;
and when the acquired face image does not exist in the face database, confirming that the user is illegal.
And S03, when the user is determined to be a legal user, recognizing the gender of the user and estimating the age of the user according to the face image.
In this embodiment, the method for identifying the gender of the user and estimating the age of the user according to the face image includes:
establishing a gender classifier and an age classifier;
acquiring an effective area image of a face in the face image;
extracting texture features of the effective area image;
and classifying the gender and the age of the texture features of the effective area image according to the gender classifier and the age classifier to obtain the gender attribute and the age attribute of the user.
In this embodiment, the method for establishing a gender classifier and an age classifier includes:
acquiring a training image sample set;
obtaining an effective area image of each image sample in the training image sample set;
extracting texture features of the effective area image of each image sample;
and sequentially establishing a gender classifier and an age classifier according to the texture characteristics of the effective area image of each image sample.
In this embodiment, the step of sequentially establishing a gender classifier and an age classifier according to texture features of the effective region image of each image sample includes:
dividing the training sample set into a male training sample and a female training sample;
respectively training the texture features of the male training samples and the texture features of the female training samples to obtain two classifiers corresponding to the gender, wherein the two classifiers respectively correspond to the male and the female;
dividing male training samples and female training samples according to age groups to obtain infant training samples, young training samples and old training samples;
training the infant training samples, the young training samples and the old training samples to construct a first-stage age classifier;
training the texture features of corresponding training samples by taking a preset age (such as 5 years) as a grade under each divided age group to obtain a second-stage age classifier;
under each age group of the division, a linear fitting third-stage age classifier is trained for each age group of the preset age.
And S04, when the user is determined to be illegal, displaying prompt information to prompt the user to register the book management system, wherein the prompt information comprises a book management system login website, and then returning the process to the step S01.
In this embodiment, when it is confirmed that the user is illegal, the electronic device displays a prompt message to prompt the user to register the book management system.
When a user needs to register the book management system, the user can log in a website link to a log-in interface by clicking the book management system log-in website displayed on the electronic equipment;
receiving personal information input by a user, wherein the personal information comprises a name, an identification card number and a mobile phone number;
and receiving a face image of a user, and storing the face image into the face database to complete registration. In this embodiment, the face image of the user may be a face image collected by a camera of the electronic device, or may be a face image sent by a portable mobile terminal carried by the user. The electronic equipment is in communication connection with a portable mobile terminal carried by a user through a wired or wireless network.
Typically, user information, including images of the user's faces and personal information, may be saved after the user has registered. The registered user can log in the book management system according to the name or the identification number to enter a borrower retrieval system to look up the borrowing situation, and can also perform retrieval query or make a reservation request on book information according to the book name, a publishing company or an author.
And S05, recommending the borrowing area in the library to the user according to the identified gender of the user and the estimated age of the user.
Specifically, the recommending a borrowing area in a library to a user according to the identified gender and the estimated age of the user comprises the following steps:
sending a library schematic map to a portable mobile terminal carried by a user;
marking the borrowing area in the library schematic map;
and guiding the user to the borrowing area from the current position of the user by adopting an indoor navigation technology.
In this embodiment, the guiding the user from the current location of the user to the borrowing area by using the indoor navigation technology includes:
a) Determining the current position of a user according to an indoor positioning technology;
the indoor positioning means that position positioning is realized in an indoor environment, and a set of indoor position positioning system is formed by mainly integrating multiple technologies such as wireless communication, base station positioning, inertial navigation positioning and the like, so that position monitoring of personnel, objects and the like in an indoor space is realized. Satellite signals are not suitable for indoor positioning because they are weak and do not penetrate buildings when reaching the ground. With the demand and development of indoor positioning, many indoor positioning solutions, such as base station positioning, wiFi positioning, bluetooth positioning, RFID positioning, etc., using a communication network, are currently available.
b) Marking and displaying the current position of the user in a schematic map of the library;
c) Planning a path according to the current position of the user and the marked borrowing area;
d) Providing a shortest path for communicating the current position of the user with the marked borrowing area;
e) And providing navigation for the user according to the shortest path.
The schematic map of the library adopts a two-dimensional map matrix form, and each element in the matrix represents a bookshelf, an aisle, a wall and a book borrowing position in the actual layout of each floor by using a one-bit integer; the number of elements filled in the matrix represents the proportion of the occupied area of the bookshelf, the aisle and the like in the floor, and the coordinate information of each element of the matrix represents the plane position of the bookshelf, the aisle and the like; according to the method, a two-dimensional map matrix of each floor of the library is established.
And S06, when the user applies for borrowing the books, acquiring the face images of the user and the book information applied for borrowing by the user again, and binding the face images and the book information applied for borrowing to finish book borrowing.
In the embodiment, the user face image and the book cover image can be collected through the camera, so that the book name information can be obtained from the collected book cover image, the user face image and the book name information are collected in a binding mode, the bound user face image and the bound book name information are stored in the database, and the book borrowing process is completed.
In another embodiment, the book information may be obtained by scanning a barcode attached to a book, and the collected human face image of the user is bound to the book information obtained from the barcode, so as to complete the book borrowing process.
Preferably, the method further comprises the step of confirming that the user has returned the book.
Specifically, when a user applies for returning a book, acquiring current book information, determining whether the acquired current book information exists in a database, when the acquired current book information exists in the database, determining that the current book is a book borrowed by the user, searching for user information according to a face image bound with the current book, and sending prompt information according to the user information to remind the user that the book is returned successfully.
In the present embodiment, the book information includes a book name, an author, a publishing house, a publication date, a borrowing period (e.g., one month), and the like. It is understood that the term of borrowing refers to the longest time period from the time when the user borrows the books from the library to the time when the user returns the books, and a certain overdue fee needs to be paid after the book is overdue.
In this embodiment, the method further includes sending a prompt message of coming overdue to the portable mobile terminal corresponding to the user to remind the user that the book borrowed by the user is coming overdue.
When the books are overdue, the user needs to pay overdue fees, and when the user applies for returning the books, the overdue fees can be paid by collecting the face images of the user, and linking the face images with the stored bound face images of the user and the face images of the user in the book name information to a third-party payment platform after the face images are successfully matched.
Preferably, the method further comprises the step of recording the user borrowing history information. Therefore, when the user borrows the books again, the same type of books can be recommended to be referred by the user according to the recorded borrowing history information.
The method can also divide credit rating of the users according to the recorded borrowing historical information, and the users with low credit rating are listed in a blacklist and the book borrowing is limited. The credit rating includes: the user credit rating without overdue behavior is highest; paying the credit grade of the overdue fee in time; the user's credit rating for refusing to pay overdue fees is lowest.
In this embodiment, a plurality of cameras are installed in the library, so that video information of a user when the user borrows a book in the library can be collected, and whether the user has a bad borrowing behavior (such as damaging the book) can be analyzed according to the collected video information. And when the user is confirmed to have poor borrowing behavior, listing the user on a blacklist. When a user enters and exits the library, alarm information is sent to remind a library administrator that the user has poor borrowing behavior.
In summary, the book borrowing method provided by the invention comprises the steps of collecting a face image of a user; confirming whether the user is a legal user or not according to the face image; when the user is determined to be a legal user, identifying the gender of the user and estimating the age of the user according to the face image; recommending a borrowing area in the library to the user according to the identified gender of the user and the estimated age of the user; and when the user applies for borrowing the books, acquiring the face images of the user and acquiring the book information applied for borrowing by the user again, and binding the face images and the book information applied for borrowing to finish borrowing the books. The invention can reduce the workload and cost for processing the borrowing certificate, provides a quick and novel borrowing mode to improve the user experience, and provides a reliable and safe library management mode.
The above description is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and it will be apparent to those skilled in the art that modifications may be made without departing from the inventive concept of the present invention, and these modifications are within the scope of the present invention.
With reference to fig. 2 and fig. 3, a functional module and a hardware structure of an electronic device for implementing the book borrowing method are respectively described below.
Example two
Fig. 2 is a functional block diagram of a preferred embodiment of the book lending device according to the invention.
In some embodiments, the book lending device 20 operates in an electronic device. The book lending device 20 may comprise a plurality of functional modules consisting of program code segments. The program code for the various program segments in the book borrowing device 20 may be stored in a memory and executed by at least one processor to perform (see fig. 1 and its associated description for details) the book borrowing function.
In this embodiment, the book lending device 20 may be divided into a plurality of functional modules according to the functions performed by the book lending device. The functional module may include: the system comprises an acquisition module 201, a confirmation module 202, an identification module 203, a processing module 204 and a binding module 205. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. In some embodiments, the functionality of the modules will be described in greater detail in subsequent embodiments.
The acquisition module 201 is used for acquiring a face image of a user.
In this embodiment, a camera (e.g., a wide-angle camera) is installed at the door of the library, and needs to face the camera when the user enters the library. At the moment, the camera can collect the user photos on site and send the collected user photos to the electronic equipment.
In this embodiment, the electronic device stores the user's photos in the same path in a predetermined format size.
In this embodiment, the electronic device includes, but is not limited to, a smart phone, a tablet computer, a desktop computer, or a kiosk.
Preferably, the book lending device 20 may also pre-process the captured user's photographs.
In this embodiment, the preprocessing includes normalization processing of geometric characteristics of a face image in a user photograph. The normalization process of the geometric characteristics can normalize the face images to the same position, angle and size. Since the distance between the two eyes of a person is substantially the same for most people, the positions of the two eyes are usually used as the basis for geometric normalization of the face image.
Preferably, the book lending device 20 may also detect a face image in the user's picture according to a face detection algorithm. The face detection algorithm may be one or more of the following algorithms in combination: a template-based face detection method, an artificial neural network-based face detection method, a model-based face detection method, a skin color-based face detection method, or a feature sub-face-based face detection method, etc.
The confirmation module 202 is configured to confirm whether the user is a valid user according to the face image.
Preferably, the method for determining whether the user is a legal user according to the face image includes:
comparing the collected face image with a face image in a face database to determine whether the collected face image exists in the face database, wherein the face database stores the face image collected when a user registers in a book management system;
when the collected face image exists in the face database, the user is determined to be legal;
and when the acquired face image does not exist in the face database, confirming that the user is illegal.
The identification module 203 is configured to identify the gender of the user and estimate the age of the user according to the face image when the user is determined to be a legal user.
In this embodiment, the method for identifying the gender of the user and estimating the age of the user according to the face image includes:
establishing a gender classifier and an age classifier;
acquiring an effective area image of a face in the face image;
extracting texture features of the effective area image;
and classifying the gender and the age of the texture features of the effective area image according to the gender classifier and the age classifier to obtain the gender attribute and the age attribute of the user.
In this embodiment, the method for establishing a gender classifier and an age classifier includes:
acquiring a training image sample set;
obtaining an effective area image of each image sample in the training image sample set;
extracting texture features of the effective area image of each image sample;
and sequentially establishing a gender classifier and an age classifier according to the texture features of the effective area image of each image sample.
In this embodiment, the step of sequentially establishing a gender classifier and an age classifier according to texture features of the effective region image of each image sample includes:
dividing the training sample set into a male training sample and a female training sample;
respectively training the texture features of the male training samples and the texture features of the female training samples to obtain two classifiers corresponding to the sexes, wherein the two classifiers respectively correspond to the male and the female;
dividing male training samples and female training samples according to age groups to obtain infant training samples, young training samples and old training samples;
training the infant training samples, the young training samples and the old training samples to construct a first-stage age classifier;
training the texture features of corresponding training samples by taking a preset age (such as 5 years) as a grade under each divided age group to obtain a second-stage age classifier;
under each age group of the division, a linear fitting third-stage age classifier is trained for each age group of the preset age.
The processing module 204 is configured to display a prompt message to prompt the user to register the book management system when the user is determined to be illegal, where the prompt message includes a login website of the book management system.
In this embodiment, when it is confirmed that the user is illegal, the electronic device displays a prompt message to prompt the user to register the book management system.
When a user needs to register the book management system, the user can log in a website link to a log-in interface by clicking the book management system log-in website displayed on the electronic equipment;
receiving personal information input by a user, wherein the personal information comprises a name, an identification card number and a mobile phone number;
and receiving a face image of a user, and storing the face image into the face database to complete registration. In this embodiment, the facial image of the user may be a facial image collected by a camera of the electronic device, or may be a facial image sent by a portable mobile terminal carried by the user. The electronic equipment is in communication connection with a portable mobile terminal carried by a user through a wired or wireless network.
Typically, user information, including images of the user's face and personal information, may be saved after the user has registered. The registered user can log in the book management system according to the name or the identification number to enter a borrower retrieval system to look up the borrowing situation, and can also perform retrieval query or make a reservation request on book information according to the book name, a publishing company or an author.
The processing module 204 is further configured to recommend a borrowing area in the library to the user according to the identified gender of the user and the estimated age of the user.
Specifically, the recommending a borrowing area in a library to a user according to the identified gender and the estimated age of the user comprises the following steps:
sending a library schematic map to a portable mobile terminal carried by a user;
marking the borrowing area in the library schematic map;
and guiding the user to the borrowing area from the current position of the user by adopting an indoor navigation technology.
In this embodiment, the guiding the user from the current location of the user to the borrowing area by using the indoor navigation technology includes:
a) Determining the current position of a user according to an indoor positioning technology;
the indoor positioning means that position positioning is realized in an indoor environment, and a set of indoor position positioning system is formed by mainly integrating multiple technologies such as wireless communication, base station positioning, inertial navigation positioning and the like, so that position monitoring of personnel, objects and the like in an indoor space is realized. Satellite signals are not suitable for indoor positioning because they are weak and do not penetrate buildings when reaching the ground. With the demand and development of indoor positioning, many indoor positioning solutions, such as base station positioning, wiFi positioning, bluetooth positioning, and RFID positioning, using a communication network, are currently available.
b) Marking and displaying the current position of the user in a schematic map of the library;
c) Planning a path according to the current position of the user and the marked borrowing area;
d) Providing a shortest path for communicating the current position of the user with the marked borrowing area;
e) And providing navigation for the user according to the shortest path.
The library schematic map is in a two-dimensional map matrix form, and each element in the matrix represents a bookshelf, a passageway, a wall and a book borrowing position in the actual layout of each floor by using one bit of integer; the number of elements filled in the matrix represents the proportion of the occupied area of the bookshelf, the aisle and the like in the floor, and the coordinate information of the elements in the matrix represents the plane positions of the bookshelf, the aisle and the like; according to the method, a two-dimensional map matrix of each floor of the library is established.
The binding module 205 is configured to collect the face image of the user and the book information that the user applies for borrowing again when the user applies for borrowing the book, and complete borrowing the book by binding the face image and the book information that applies for borrowing.
In the embodiment, the user face image and the book cover image can be collected through the camera, so that the book name information can be obtained from the collected book cover image, the user face image and the book name information are collected in a binding mode, the bound user face image and the bound book name information are stored in the database, and the book borrowing process is completed.
In another embodiment, the book information may be obtained by scanning a barcode attached to a book, and the collected human face image of the user is bound to the book information obtained from the barcode, so as to complete the book borrowing process.
Preferably, the book lending device 20 may also confirm that the user returns the book.
Specifically, when a user applies for book returning, current book information is collected, whether the collected current book information exists in a database or not is confirmed, when the collected current book information exists in the database, the current book is confirmed to be a book borrowed by the user, the user information is searched according to a face image bound with the current book, and prompt information is sent according to the user information to remind the user that the book is successfully returned.
In the present embodiment, the book information includes a book name, an author, a publishing house, a publication date, a borrowing period (e.g., one month), and the like. It is understood that the term of borrowing refers to the longest time period from the time of borrowing a book from the library to the time of returning the book, and a certain overdue fee needs to be paid after overdue.
In this embodiment, the book lending device 20 may further send a prompt message about the book lending to the portable mobile terminal corresponding to the user to remind the user that the book borrowed by the user is about to expire.
When the books are overdue, the user needs to pay overdue fees, and when the user applies for returning the books, the overdue fees can be paid by collecting the face images of the user, and linking the face images with the stored bound face images of the user and the face images of the user in the book name information to a third-party payment platform after the face images are successfully matched.
Preferably, the book lending device 20 may also record the user lending history information. Therefore, when the user borrows the books again, the same type of books can be recommended to be referred by the user according to the recorded borrowing history information.
The book lending device 20 may also classify the credit rating of the user based on the recorded lending history information, and blacklist and limit the lending of the user with a low credit rating. The credit rating includes: the user credit rating without overdue behavior is highest; paying the credit grade of the overdue fee in time; the user's credit rating for refusing to pay overdue fees is lowest.
In this embodiment, a plurality of cameras are installed in the library, so that video information of a user when the user borrows a book in the library can be collected, and whether the user has a bad borrowing behavior (such as damaging the book) can be analyzed according to the collected video information. And when the user is confirmed to have poor borrowing behavior, listing the user in a blacklist. When a user enters and exits a library, an alarm message is sent to remind a library administrator that the user has poor borrowing behavior.
In summary, the book lending device 20 of the invention comprises a collecting module 201, a confirming module 202, an identifying module 203, a processing module 204 and a binding module 205. The acquisition module 201 is used for acquiring a face image of a user; the confirmation module 202 is configured to confirm whether the user is a valid user according to the face image; the identification module 203 is used for identifying the gender of the user and estimating the age of the user according to the face image when the user is determined to be a legal user; the processing module 204 is configured to recommend a borrowing area in a library to a user according to the identified user gender and the estimated user age; and the binding module 205 is configured to collect the face image of the user and the book information that the user applies for borrowing again when the user applies for borrowing the book, and complete the book borrowing by binding the face image and the book information that the user applies for borrowing. The invention can reduce the workload and cost for processing the borrowing certificate, provides a quick and novel borrowing mode to improve the user experience, and provides a reliable and safe library management mode.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a dual-screen device, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present invention.
Fig. 3 is a schematic diagram of an electronic device according to a third embodiment of the present invention.
The electronic device 3 includes: a memory 31, at least one processor 32, a computer program 33 stored in the memory 31 and executable on the at least one processor 32, at least one communication bus 34, and a database 35.
The steps in the above-described book borrowing method embodiments are implemented when the computer program 33 is executed by the at least one processor 32.
Illustratively, the computer program 33 may be partitioned into one or more modules/units that are stored in the memory 31 and executed by the at least one processor 32 to carry out the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 33 in the electronic device 3.
The electronic device 3 may be a device such as a mobile phone, a tablet computer, a Personal Digital Assistant (PDA) and the like, which is installed with an application program. It will be understood by those skilled in the art that the schematic diagram 3 is merely an example of the electronic device 3, and does not constitute a limitation of the electronic device 3, and may include more or less components than those shown, or combine some components, or different components, for example, the electronic device 3 may further include an input-output device, a network access device, a bus, etc.
The at least one Processor 32 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The processor 32 may be a microprocessor or the processor 32 may be any conventional processor or the like, and the processor 32 is a control center of the electronic device 3 and connects various parts of the whole electronic device 3 by various interfaces and lines.
The memory 31 may be used to store the computer program 33 and/or the module/unit, and the processor 32 implements various functions of the electronic device 3 by running or executing the computer program and/or the module/unit stored in the memory 31 and calling data stored in the memory 31. The memory 31 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic apparatus 3, and the like. In addition, the memory 31 may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The memory 31 has program code stored therein, and the at least one processor 32 can call the program code stored in the memory 31 to perform related functions. For example, the modules (the collecting module 201, the confirming module 202, the identifying module 203, the processing module 204 and the binding module 205) illustrated in fig. 2 are program codes stored in the memory 31 and executed by the at least one processor 32, so as to realize the functions of the modules for the purpose of book borrowing.
The acquisition module is used for acquiring a face image of a user;
the confirming module is used for confirming whether the user is a legal user or not according to the face image;
the identification module is used for identifying the gender of the user and estimating the age of the user according to the face image when the user is determined to be a legal user;
the processing module is used for recommending a borrowing area in the library to the user according to the identified gender and the estimated age of the user;
and the binding module is used for collecting the face image of the user again and collecting the book information which the user applies for borrowing when the user applies for borrowing the book, and binding the face image and the book information which applies for borrowing to finish borrowing the book.
Preferably, the processor 32 may also: and when the user is determined to be illegal, displaying prompt information to prompt the user to register the book management system, wherein the prompt information comprises a book management system login website.
Preferably, the step of determining whether the user is a legal user according to the face image comprises:
comparing the collected face image with a face image in a face database to determine whether the collected face image exists in the face database, wherein the face database stores the face image collected when a user registers in a book management system;
when the collected face image exists in the face database, the user is determined to be legal;
and when the acquired face image does not exist in the face database, confirming that the user is illegal.
Preferably, the recommending a borrowing area in a library to a user according to the identified gender and the estimated age of the user comprises:
sending a library schematic map to a portable mobile terminal carried by a user;
marking the borrowing area in the library schematic map;
and guiding the user to the borrowing area from the current position of the user by adopting an indoor navigation technology.
Preferably, the guiding the user from the current position of the user to the borrowing area by adopting the indoor navigation technology comprises the following steps:
determining the current position of a user according to an indoor positioning technology;
marking and displaying the current position of the user in a schematic map of the library;
planning a path according to the current position of the user and the marked borrowing area;
providing a shortest path for communicating the current position of the user with the marked borrowing area;
and providing navigation for the user according to the shortest path.
Preferably, the processor 32 may also:
when a user applies for returning books, current book information is collected, whether the collected current book information exists in a database is confirmed, when the collected current book information exists in the database, the current book is confirmed to be a book borrowed by the user, the user information is searched according to a face image bound with the current book, and prompt information is sent according to the user information to remind the user that the book is successfully returned.
Preferably, the processor 32 may also:
sending prompt information about overdue to a portable mobile terminal corresponding to the user to remind the user that the borrowed book is about to be overdue;
and when the book is overdue, acquiring the face image of the user when the user applies for returning the book, and linking to a third-party payment platform to pay overdue fee after the acquired face image of the user is successfully matched with the face image of the user stored in the face database.
Said Database (Database) 35 is a repository built on said electronic device 3 that organizes, stores and manages data according to a data structure. Databases are generally classified into hierarchical databases, network databases, and relational databases. In the present embodiment, the database 35 is used to store information such as face images.
The integrated modules/units of the electronic device 3 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and which, when executed by a processor, may implement the steps of the above-described embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In the embodiments provided by the present invention, it should be understood that the disclosed electronic device and method can be implemented in other ways. For example, the above-described embodiments of the electronic device are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions when the actual implementation is performed.
In addition, functional units in the embodiments of the present invention may be integrated into the same processing unit, or each unit may exist alone physically, or two or more units are integrated into the same unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit scope of the technical solutions of the present invention.

Claims (9)

1. A book borrowing method, characterized in that the method comprises:
collecting a face image of a user;
carrying out normalization processing on the face image according to the geometric characteristics of the face image, wherein the geometric characteristics comprise the distance between two eyes, and confirming whether the user is a legal user according to the face image after the normalization processing;
when the user is determined to be a legal user, identifying the gender of the user and estimating the age of the user according to the face image after the normalization processing, which specifically comprises the following steps: establishing a gender classifier and an age classifier, acquiring an effective area image of a face in the face image after normalization processing, extracting texture features of the effective area image, and classifying the texture features by gender and age according to the gender classifier and the age classifier to obtain the user gender and the estimated user age of the user, wherein the gender classifier is a gender classifier which is generated after the texture features of male training samples and the texture features of female training samples are trained respectively, and the age classifier comprises a first-stage age classifier, a second-stage age classifier and a third-stage age classifier;
recommending a borrowing area in a library to a user according to the user gender and the user age, which specifically comprises the following steps: sending a library schematic map to a portable mobile terminal carried by a user, wherein the library schematic map is in a two-dimensional map matrix form, each element in the two-dimensional map matrix represents a bookshelf, a passageway, a wall and a book borrowing position in the actual layout of each floor by using one bit of integer, the coordinate information of each element in the two-dimensional map matrix represents the plane positions of the bookshelf, the passageway, the wall and the book borrowing position, the borrowing area is marked in the library schematic map, and the indoor navigation technology is adopted to guide the user to the borrowing area from the current position of the user; and
when a user applies for borrowing books, acquiring the face images of the user again, acquiring the book information applied for borrowing by the user, and binding the face images and the book information applied for borrowing to finish book borrowing;
collecting video information of a user when the user borrows books in the library, analyzing whether the user has poor borrowing behaviors or not according to the video information, if the user is confirmed to have the poor borrowing behaviors, listing the user in a blacklist, and sending alarm information to a library manager of the library.
2. The book borrowing method of claim 1, wherein the method further comprises:
and when the user is determined to be illegal, displaying prompt information to prompt the user to register the book management system, wherein the prompt information comprises a book management system login website.
3. The book lending method of claim 2, wherein confirming whether the user is a legitimate user from the normalized face image comprises:
comparing the collected and normalized face image with a face image in a face database to determine whether the collected and normalized face image exists in the face database, wherein the face database stores the face image collected when a user registers a book management system;
when the collected and normalized face image exists in the face database, the user is determined to be legal;
and when the acquired and normalized face image does not exist in the face database, determining that the user is illegal.
4. The book lending method of claim 1, wherein the employing indoor navigation technology to guide the user from the user's current location to the lending area comprises:
determining the current position of a user according to an indoor positioning technology;
marking and displaying the current position of the user in a schematic map of the library;
planning a path according to the current position of the user and the marked borrowing area;
providing a shortest path for communicating the current position of the user with the marked borrowing area;
and providing navigation for the user according to the shortest path.
5. The book borrowing method of claim 1, wherein the method further comprises:
when a user applies for returning books, current book information is collected, whether the collected current book information exists in a database is confirmed, when the collected current book information exists in the database, the current book is confirmed to be a book borrowed by the user, the user information is searched according to the face image bound with the current book information, and prompt information is sent according to the user information to remind the user that the book is successfully returned.
6. A book borrowing method as defined in claim 3, wherein said method further comprises:
sending prompt information about overdue to a portable mobile terminal corresponding to the user to remind the user that the borrowed book is about to be overdue;
and when the books are overdue, acquiring the face images of the users again when the users apply for returning the books, and linking the collected face images of the users with the face images of the users stored in the face database to a third-party payment platform to pay overdue fees after the collected face images of the users are successfully matched with the face images of the users stored in the face database.
7. A book lending device, characterized in that the device comprises:
the acquisition module is used for acquiring a face image of a user;
the confirmation module is used for carrying out normalization processing on the face image according to the geometric characteristics of the face image, wherein the geometric characteristics comprise the distance between two eyes, and confirming whether the user is a legal user or not according to the face image after the normalization processing;
the identification module is used for identifying the gender of the user and estimating the age of the user according to the face image after the normalization processing when the user is determined to be a legal user, and specifically comprises the following steps: establishing a gender classifier and an age classifier, acquiring an effective area image of a face in the face image after normalization processing, extracting texture features of the effective area image, and classifying the texture features by gender and age according to the gender classifier and the age classifier to obtain the user gender and the estimated user age of the user, wherein the gender classifier is a gender classifier which is generated after the texture features of male training samples and the texture features of female training samples are trained respectively, and the age classifier comprises a first-stage age classifier, a second-stage age classifier and a third-stage age classifier;
the processing module is used for recommending a borrowing area in a library to a user according to the user gender and the user age, and specifically comprises the following steps: sending a library schematic map to a portable mobile terminal carried by a user, wherein the library schematic map is in a two-dimensional map matrix form, each element in the two-dimensional map matrix represents a bookshelf, a passageway, a wall and a book borrowing position in the actual layout of each floor by using one bit of integer, the coordinate information of each element in the two-dimensional map matrix represents the plane positions of the bookshelf, the passageway, the wall and the book borrowing position, the borrowing area is marked in the library schematic map, and the indoor navigation technology is adopted to guide the user to the borrowing area from the current position of the user; and
the binding module is used for acquiring the face image of the user again when the user applies for borrowing the book, acquiring the book information applied for borrowing by the user, and binding the face image and the book information applied for borrowing to complete the book borrowing;
the system comprises a library, a plurality of cameras and a library manager, wherein the library is internally provided with the plurality of cameras and is used for collecting video information of a user when the user borrows a book in the library, analyzing whether the user has poor borrowing behavior or not according to the video information, and if the user is confirmed to have the poor borrowing behavior, listing the user in a blacklist and sending alarm information to the library manager of the library.
8. An electronic device, characterized in that the electronic device comprises a processor and a memory, the processor being configured to implement the book borrowing method according to any one of claims 1 to 6 when executing a computer program stored in the memory.
9. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the book borrowing method according to any one of claims 1 to 6.
CN201910064932.5A 2019-01-23 2019-01-23 Book borrowing method and device, electronic equipment and storage medium Active CN109920174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910064932.5A CN109920174B (en) 2019-01-23 2019-01-23 Book borrowing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910064932.5A CN109920174B (en) 2019-01-23 2019-01-23 Book borrowing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109920174A CN109920174A (en) 2019-06-21
CN109920174B true CN109920174B (en) 2023-04-07

Family

ID=66960673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910064932.5A Active CN109920174B (en) 2019-01-23 2019-01-23 Book borrowing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109920174B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110400433B (en) * 2019-08-21 2021-09-10 厦门亲禾教育科技有限公司 Intelligent bookcase book brushing and borrowing self-service borrowing method and system
CN110853242A (en) * 2019-11-18 2020-02-28 深圳市海恒智能科技有限公司 Non-inductive certificate handling method and device, computer equipment and storage medium
CN110909832A (en) * 2019-11-26 2020-03-24 青岛海尔科技有限公司 Data classification management method and device for intelligent household equipment
CN110851744A (en) * 2019-12-10 2020-02-28 南京赛百联人防科技有限公司 Underground space guiding and path finding method and system based on AI technology
CN112131477A (en) * 2020-09-27 2020-12-25 辽宁工程技术大学 Library book recommendation system and method based on user portrait
CN112216043A (en) * 2020-10-12 2021-01-12 电子科技大学中山学院 Wisdom library
CN112364066B (en) * 2020-11-02 2022-11-29 深圳赛雷文化传媒有限公司 Communication method and system based on shared information
CN115311732A (en) * 2022-10-12 2022-11-08 中国信息通信研究院 Book management method and device based on block chain
CN116992093A (en) * 2023-09-14 2023-11-03 东北农业大学 Library intelligent indexing method, device and storage medium based on reader borrowing behaviors

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102384745A (en) * 2011-08-18 2012-03-21 南京信息工程大学 Method of mobile phone navigation in library and system
CN103913161A (en) * 2013-01-06 2014-07-09 上海匹克信息科技咨询有限公司 Library indoor mobile phone navigation method
CN103310556A (en) * 2013-05-31 2013-09-18 苏州市职业大学 Intelligent book borrowing and returning system based on radio frequency identification technology
CN104809559A (en) * 2015-04-24 2015-07-29 柳州市网中网络策划中心 Library management system having information push and face recognition functions
CN104809570A (en) * 2015-04-24 2015-07-29 柳州市网中网络策划中心 Library management system having face recognition function
CN104809382A (en) * 2015-04-24 2015-07-29 柳州市网中网络策划中心 Book management system with returning and facial recognition and image analysis
CN205072457U (en) * 2015-10-28 2016-03-09 谢永宁 Monitored control system of library
CN106382932A (en) * 2016-09-09 2017-02-08 华南师范大学 Library indoor three-dimensional navigation method based on Bluetooth and triangulation
CN107169002A (en) * 2017-03-31 2017-09-15 咪咕数字传媒有限公司 A kind of personalized interface method for pushing and device recognized based on face
CN107845178A (en) * 2017-12-20 2018-03-27 江西白莲钢质制品有限公司 A kind of intelligent library
CN108256499A (en) * 2018-02-05 2018-07-06 湖南科乐坊教育科技股份有限公司 A kind of book assessment information determines method, apparatus and system
CN108549291A (en) * 2018-05-16 2018-09-18 安徽省久晟信息科技有限责任公司 A kind of library's intelligent monitoring management system
CN108777046A (en) * 2018-06-27 2018-11-09 华北理工大学 A kind of intelligent management system for library
CN109035551A (en) * 2018-08-08 2018-12-18 山东理工职业学院 A kind of community library system based on technology of Internet of things

Also Published As

Publication number Publication date
CN109920174A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
CN109920174B (en) Book borrowing method and device, electronic equipment and storage medium
CN110008903B (en) Face recognition method, device, system, storage medium and face payment method
CN109816441B (en) Policy pushing method, system and related device
US20150310293A1 (en) Method and system for recording and transferring motor vehicle information
JP2020504358A (en) Image-based vehicle damage evaluation method, apparatus, and system, and electronic device
US9881347B2 (en) Automated entry
US9633272B2 (en) Real time object scanning using a mobile phone and cloud-based visual search engine
CN109191635B (en) Passenger judging method and device based on face recognition technology and storage medium
CN109978552B (en) Payment processing method, device and equipment based on identity card information
CN111652622A (en) Risk website identification method and device and electronic equipment
CN110335139A (en) Appraisal procedure, device, equipment and readable storage medium storing program for executing based on similarity
JP6875521B2 (en) Methods and equipment for security verification based on biometric features
CN109102324B (en) Model training method, and red packet material laying prediction method and device based on model
US20130290728A1 (en) Method and system for a secure, searchable and sharable digital notary journal
CN112446995A (en) Identity information registration processing method, device, equipment and system
CN107392614A (en) The implementation method and device of off-line transaction
CN111738199A (en) Image information verification method, image information verification device, image information verification computing device and medium
CN114495364A (en) Self-service car renting method and device, electronic equipment and readable storage medium
US20200250907A1 (en) Automated entry
US20150019362A1 (en) System and method for creating fractional ownership of physical goods
CN109727056B (en) Financial institution recommendation method, device, storage medium and device
CN113065908A (en) Rental method, rental device, rental platform, and storage medium
Shahab et al. Android application for presence recognition based on face and geofencing
US20240095321A1 (en) Data integrity management in a computer network, including system that enables robust point-in time digital evidence generation
US20210407218A1 (en) Parking management system, parking management device, and computer-readable recording medium

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