Cloud diagnosis anti-rotation lease method and device, computer device and storage medium

By using a cloud and fog diagnostic method, which captures facial images with a camera and performs cloud and fog calculations and deep learning optimization, the problem of low recognition rate and long time consumption in existing technologies is solved, and efficient and accurate anti-subletting diagnosis is achieved.

CN115471290BActive Publication Date: 2026-11-27ZHEJIANG NINGYUN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211000147.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-19
Publication Date
2026-11-27
Estimated Expiration
2042-08-19

AI Technical Summary

Technical Problem

Existing technologies suffer from low recognition rates, long processing times, and high labor costs in preventing subletting, especially the compatibility issues and security risks associated with ID card and fingerprint verification methods for smart door locks.

Method used

The cloud-based diagnostic method is adopted. By associating room information and tenant information, facial images are captured by a camera, and cloud-based calculations and deep learning optimizations are performed on the facial information to achieve a high recognition rate for anti-subletting diagnosis.

Benefits of technology

It improved the accuracy of anti-subletting diagnosis, shortened processing time, and reduced labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115471290B_ABST
    Figure CN115471290B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a cloud and fog diagnosis anti-renting method and device, computer equipment and a storage medium. The method comprises: associating room information and tenant information to obtain rental information; obtaining a face image captured by a camera of the room; determining whether the face information corresponding to the face image is saved; if the face information corresponding to the face image is not saved, performing cloud and fog calculation according to the face image; if the face information corresponding to the face image is saved, performing face comparison between the face image and the rental information to obtain a comparison result; and sending the comparison result to a terminal. The method of the embodiments of the present application can achieve high recognition rate, improve the accuracy of anti-renting diagnosis, and save time and reduce labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method for handling rental properties, and more specifically to a method, apparatus, computer equipment, and storage medium for cloud-based diagnostics to prevent subletting. Background Technology

[0002] To further improve the management of the floating population and rental housing, and to prevent and combat crimes committed by the floating population, the collection of information on the floating population and the registration of information on rental housing in the jurisdiction have been prioritized in our outreach efforts. Police officers have been organized to conduct comprehensive checks on workers in local enterprises, construction sites, and rental properties to identify potential instability factors, investigate safety hazards, and strengthen the collection of information on the floating population and rental housing. This ensures the completeness and accuracy of the information and effectively improves the dynamism and timeliness of the management of the floating population.

[0003] Among the massive amounts of information on rental properties and tenants, existing methods for preventing subletting generally involve manual screening or smart lock screening. However, manual screening has drawbacks, requiring a large workforce and significant investment in advertising resources and expenses. Smart locks use ID card verification or fingerprint verification for screening, but due to inconsistencies in ID card manufacturers and standards across provinces and regions, the compatibility requirements of the ID card readers on the locks are very high. ID cards are currently the only way to verify legal identity, and their loss can lead to a series of security problems. Furthermore, whether prolonged use of ID cards for unlocking may damage the built-in chip requires further investigation. As for fingerprint verification, prolonged use of the fingerprint sensor can affect the recognition rate, and the recognition rate for the elderly and children is not very high.

[0004] Therefore, it is necessary to design a new method that achieves high recognition rate, improves the accuracy of anti-sublease diagnosis, and is time-saving and labor-intensive. Summary of the Invention

[0005] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method, device, computer equipment and storage medium for cloud and fog diagnosis to prevent subletting.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: a cloud and fog diagnostic method for preventing subleasing, comprising:

[0007] Link room information and tenant information to obtain rental information;

[0008] Obtain facial images captured by the room's cameras;

[0009] Determine whether the facial information corresponding to the facial image has been saved;

[0010] If the facial information corresponding to the facial image is not saved, then cloud and fog calculations are performed based on the facial image;

[0011] If the facial information corresponding to the facial image has been saved, then the facial image is compared with the rental information to obtain the comparison result;

[0012] Send the verification result to the terminal.

[0013] The further technical solution is as follows: the associated room information and tenant information are used to obtain rental information, including:

[0014] Obtain the tenant information corresponding to the room, and associate the tenant information with the card of the room's networked smart lock to obtain associated data;

[0015] Store room information and tenant information to obtain basic data;

[0016] The location, installation time, and pixel count of the camera are obtained and combined with the basic data to form combined data.

[0017] Obtain the tenant's facial recognition information, and integrate the facial recognition information with the combined information and related information to form rental information.

[0018] The further technical solution is as follows: the cloud and fog calculation based on the face image includes:

[0019] The face image is subjected to cloud and fog calculations for face information, and deep learning is used to optimize the face information to form face information to be stored.

[0020] Save the facial information to be stored.

[0021] The further technical solution is as follows: The step of performing facial verification between the facial image and the rental information to obtain the verification result includes:

[0022] The facial images are checked one by one against the faces in the rental information, and also against the faces of the entire unit, the entire building, and the entire community.

[0023] Determine whether cloud-based calculations are performed on faces in rooms, entire units, entire buildings, and the entire community;

[0024] If the faces in the room, the entire unit, the entire building, and the entire community are all subjected to cloud and fog calculations, then deep learning is used to optimize the facial information of the facial images, and the optimized facial information is saved.

[0025] If at least one of the faces in the room, the entire unit, the entire building, or the entire community has not been calculated for cloud and fog, then the face information will be optimized after the optimization cycle.

[0026] Send a message to the terminal to verify or review facial information, so that the terminal can re-collect facial information, update personal or family information, and obtain the verification result.

[0027] The further technical solution is as follows: sending a message to the terminal to verify or require review of facial information, so that the terminal can re-collect facial information and update personal or family information, includes:

[0028] Send a message to the terminal to verify or review facial information so that the terminal can re-collect facial information. If the corresponding person does not cooperate with the information collection, determine that the corresponding person is not the tenant, obtain the verification result, record it and report it to the owner; if the corresponding person cooperates with the information collection, collect a new facial image.

[0029] Acquire new facial images and perform the step of comparing the facial images with the faces in the rental information one by one, and comparing them with the faces in the entire unit, the entire building, and the entire community.

[0030] The present invention also provides a cloud and fog diagnostic anti-sublease device, comprising:

[0031] The associated unit is used to associate room information and tenant information to obtain rental information;

[0032] The image acquisition unit is used to acquire facial images captured by the room's camera;

[0033] A save determination unit is used to determine whether the facial information corresponding to the facial image should be saved;

[0034] The cloud and fog calculation unit is used to perform cloud and fog calculation based on the face image if the face information corresponding to the face image is not saved.

[0035] The verification unit is used to perform face verification between the face image and the rental information if the face information corresponding to the face image has been saved, so as to obtain the verification result;

[0036] A sending unit is used to send the verification result to the terminal.

[0037] Its further technical solution is as follows: the associated unit includes:

[0038] The card association subunit is used to obtain the tenant information corresponding to the room and associate the tenant information with the card of the room's networked smart lock to obtain association data;

[0039] The information storage subunit is used to store room information and tenant information to obtain basic data;

[0040] The camera information acquisition subunit is used to acquire the camera's location, installation time, and pixels, and combine them with the basic data to form combined data.

[0041] The integration subunit is used to obtain the tenant's facial recognition information, and integrate the facial recognition information with the combination information and related information to form rental information.

[0042] The further technical solution is as follows: the cloud and fog computing unit includes:

[0043] The first computing subunit is used to perform cloud and fog calculations on the face image and to optimize the face information using deep learning to form face information to be stored.

[0044] The first storage subunit is used to store the face information to be stored.

[0045] The present invention also provides a computer device, the computer device including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the above-described method.

[0046] The present invention also provides a storage medium storing a computer program that, when executed by a processor, implements the above-described method.

[0047] The beneficial effects of this invention compared with the prior art are as follows: This invention associates room information and tenant information, uses a camera to capture facial images, saves and judges the facial images, performs cloud fog calculation if the images are not saved, and performs face verification if the images are saved, thus achieving a high recognition rate, improving the accuracy of anti-subletting diagnosis, and is time-saving and low in labor costs.

[0048] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. Attached Figure Description

[0049] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0050] Figure 1 This is a schematic diagram illustrating an application scenario of the cloud and fog diagnostic anti-sublease method provided in an embodiment of the present invention;

[0051] Figure 2 A flowchart illustrating the cloud and fog diagnostic anti-subleasing method provided in an embodiment of the present invention;

[0052] Figure 3This is a schematic diagram of a sub-process of the cloud and fog diagnostic anti-sublease method provided in an embodiment of the present invention;

[0053] Figure 4 This is a schematic diagram of a sub-process of the cloud and fog diagnostic anti-sublease method provided in an embodiment of the present invention;

[0054] Figure 5 This is a schematic diagram of a sub-process of the cloud and fog diagnostic anti-sublease method provided in an embodiment of the present invention;

[0055] Figure 6 This is a schematic diagram of a sub-process of the cloud and fog diagnostic anti-sublease method provided in an embodiment of the present invention;

[0056] Figure 7 A schematic diagram illustrating the distribution of two point sets on a two-dimensional plane, provided in an embodiment of the present invention;

[0057] Figure 8 This is a schematic diagram illustrating the distribution of multiple datasets provided in an embodiment of the present invention;

[0058] Figure 9 A schematic diagram illustrating the restoration of a human face image provided in an embodiment of the present invention;

[0059] Figure 10 This is a schematic block diagram of the cloud and fog diagnostic anti-subleasing device provided in an embodiment of the present invention;

[0060] Figure 11 A schematic block diagram of the associated units of the cloud and fog diagnostic anti-subleasing device provided in an embodiment of the present invention;

[0061] Figure 12 A schematic block diagram of the cloud and fog calculation unit of the cloud and fog diagnostic anti-subleasing device provided in an embodiment of the present invention;

[0062] Figure 13 A schematic block diagram of the verification unit of the cloud and fog diagnostic anti-subleasing device provided in an embodiment of the present invention;

[0063] Figure 14 A schematic block diagram of the message sending subunit of the cloud and fog diagnostic anti-sublease device provided in an embodiment of the present invention;

[0064] Figure 15 A schematic block diagram of a computer device provided for an embodiment of the present invention. Detailed Implementation

[0065] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0066] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0067] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0068] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0069] Please see Figure 1 and Figure 2 , Figure 1 This is a schematic diagram illustrating an application scenario of the cloud and fog diagnostic anti-subleasing method provided in an embodiment of the present invention. Figure 2 This is a schematic flowchart illustrating the cloud and fog diagnostic anti-subleasing method provided in an embodiment of the present invention. The method is applied in a server. The server is a device capable of performing cloud and fog calculations. It interacts with cameras and terminals to achieve anti-subleasing of facial information through cloud and fog diagnostics, achieving high recognition rates, improving the accuracy of anti-subleasing diagnostics, and is time-efficient with low labor costs.

[0070] In this embodiment, a networked door lock needs to be installed in the rental room. This door lock needs to process door opening messages in real time. The networked camera is installed in a place that people must pass through, such as the entrance of the unit, the stairwell on the first floor, or a place in the elevator where people must pass through to easily capture the location of faces.

[0071] Figure 2 This is a flowchart illustrating the cloud and fog diagnostic anti-subleasing method provided in an embodiment of the present invention. Figure 2 As shown, the method includes the following steps S110 to S160.

[0072] S110, associate room information and tenant information to obtain rental information.

[0073] In this embodiment, rental information refers to information formed by associating room information with tenant information.

[0074] In one embodiment, please refer to Figure 3 The above-mentioned step S110 may include steps S111 to S114.

[0075] S111. Obtain the tenant information corresponding to the room, and associate the tenant information with the card of the room's networked smart lock to obtain associated data.

[0076] In this embodiment, the associated data refers to the data formed after the tenant's information is associated with the card of the room's networked smart lock.

[0077] The networked smart lock is installed in a designated room. When someone rents the room, the tenant's name, mobile phone number, face, ID card and other basic data will be entered into the room. The tenant's information will be associated with the networked smart lock card and a unique association data will be generated.

[0078] S112. Store room information and tenant information to obtain basic data.

[0079] In this embodiment, the basic data refers to room information and tenant information.

[0080] Specifically, room information such as location, size, and layout, along with tenant information such as name, mobile phone number, face, and ID card, will be entered into the data platform service to form basic data.

[0081] S113. Obtain the camera's location, installation time, and pixels, and combine them with the basic data to form combined data.

[0082] In this embodiment, the combined data refers to the data formed by combining the camera's location, installation time, and pixels with the basic data.

[0083] S114. Obtain the tenant's facial recognition information, and integrate the facial recognition information with the combined information and related information to form rental information.

[0084] Specifically, the camera is installed in a designated location, and the camera's location, installation time, pixels, etc. are initialized into the data middle platform service to form basic data. At the same time, the tenant data of the data middle platform will be recorded in the camera, and the camera will be downloaded based on the facial recognition information to generate unique data.

[0085] S120. Obtain facial images captured by the room's camera.

[0086] In this embodiment, the facial image refers to the image captured when the tenant passes in front of the camera. The server will determine whether the facial image has been saved. If it has, there will be a unique corresponding data, and corresponding processing will be performed for various business layers. When the tenant wants to unlock the networked door lock by facial recognition, the server will also perform corresponding processing for various business layers.

[0087] S130. Determine whether the facial information corresponding to the facial image is saved.

[0088] In this embodiment, whether or not facial information is saved indicates whether the face belongs to the tenant.

[0089] S140. If the facial information corresponding to the facial image is not saved, then perform cloud and fog calculation based on the facial image.

[0090] In one embodiment, please refer to Figure 4 The above-mentioned step S140 may include steps S141 to S142.

[0091] S141. Perform cloud and fog calculations on the face image and optimize the face information using deep learning to form face information to be stored.

[0092] In this embodiment, the face information to be stored refers to the cloud and fog calculation of face information on the face image. That is, every time the tenant passes in front of the camera, the user's face at the current angle is calculated and compared with the previously calculated face information. The most suitable face angle is selected, and the face information is optimized by deep learning to form the most suitable user information.

[0093] S142. Save the face information to be stored.

[0094] When a tenant passes in front of the camera, the server will determine whether the face has been saved. If the face has not been saved, the face information will be resent to the cloud computing system. If a match cannot be found, temporary data storage and data such as the number of times the face has been saved will be collected.

[0095] S150. If the facial information corresponding to the facial image has been saved, then the facial image is compared with the rental information to obtain the comparison result.

[0096] In this embodiment, the verification result refers to the result of facial verification between the facial image and the rental information, or the result of collecting facial information.

[0097] In one embodiment, please refer to Figure 5 The above-mentioned step S150 may include steps S151 to S155.

[0098] S151. The face image is checked one by one against the faces in the rental information, and also against the faces of the entire unit, the entire building, and the entire community.

[0099] S152. Determine whether cloud and fog calculations are performed on faces in rooms, the entire unit, the entire building, and the entire community.

[0100] S153. If the faces in the room, the entire unit, the entire building, and the entire community are all subjected to cloud and fog calculations, then deep learning is used to optimize the face information of the face image and the optimized face information is saved.

[0101] S154. If at least one of the faces in the room, the entire unit, the entire building, or the entire community has not been calculated for cloud and fog, then the face information is optimized after the optimization number of times.

[0102] S155. Send a message to the terminal to verify or review facial information, so that the terminal can re-collect facial information, update personal or family information, and obtain the verification result.

[0103] In one embodiment, please refer to Figure 6 The above-mentioned step S155 may include steps S1551 to S1552.

[0104] S1551. Send a message to the terminal to verify or review facial information so that the terminal can re-collect facial information. If the corresponding person does not cooperate with the information collection, determine that the corresponding person is not the tenant, obtain the verification result, record it and report it to the owner; if the corresponding person cooperates with the information collection, collect a new facial image.

[0105] S1552. Obtain a new face image and perform the following steps: compare the face image with the faces in the rental information one by one, and compare it with the faces of the entire unit, the entire building, and the entire community.

[0106] Specifically, when a tenant unlocks a door or passes in front of a camera, the server will verify their face against pre-stored data one by one, gradually expanding the verification scope by comparing data for this unit, this building, and this community. Each layer fully utilizes cloud computing, re-optimizes the data after deep learning, saves it, and then distributes it again for matching using cloud computing.

[0107] When layered processing doesn't fully utilize cloud computing, after optimization, a message is sent requesting verification or re-verification of facial information. Data is then re-collected via self-service terminals or manual counters to update personal or family information. If the person doesn't cooperate with information collection, they are considered a tenant, and this is recorded and reported to the landlord. If they cooperate, previously collected information is used for verification and comparison, and the algorithm is continuously optimized layer by layer while updating the tenant's facial information. The algorithm continuously deepens its understanding, learns, optimizes, and iterates.

[0108] In this embodiment, the face verification algorithm is based on LDA (Linear Discriminant Analysis) theory and has similarities to PCA used in eigenface analysis. Both are methods that perform overall dimensionality reduction mapping of the original data to a lower-dimensional space. LDA and PCA both start from the overall data, unlike LBP which extracts local texture features. When the dataset is binary, the face to be matched usually needs to be matched against multiple faces in the face database, so this is a multi-class case. For simplicity, we can first introduce the binary case and then extend it to multi-class. Assume there are two point sets x (x is a two-dimensional vector containing horizontal and vertical coordinates) on a two-dimensional plane, such as... Figure 7 As shown, the original data is two-dimensional data scattered on a plane. How can we represent and distinguish this data using a one-dimensional quantity (such as the distance to a point on the map)? An effective method is to find a suitable vector w (with the same dimension as the data) and project the data onto w (resulting in a scalar, intuitively understood as the distance from the projection point to the origin). The original data is then represented and distinguished based on the projection points. The distance from the projection point to the origin is given mathematically as: y = y = wTx. Two schemes for w are given, where w is represented by a straight line from the origin, and the points on the line are the projection points of the original data. Intuitively, the w on the right is better, as its projection points can reasonably distinguish the two datasets. However, the computer doesn't know this, so a definite method is needed to calculate w. First, calculate the mean (center point) of each data class: Here, 'i' represents the number of data categories, and 'Ni' represents the number of data points in a given category. For example, u1 represents the center of the red point, and u2 represents the center of the blue point. The center of the data point projected onto w is: How do we determine the optimal vector w? We can consider two aspects: the projected points from different categories should be as far apart as possible; the projected points from the same category should be as close together as possible. Based on these two aspects, we can define the following formula: J(w) represents the distance between the projection centers of different categories, and the larger its value, the better.

[0109] The above formula is called the scatter matrix, which represents the scatter value after projection of the same category, that is, the degree of aggregation of the projected points. The smaller the value, the more aggregated the projected points are. Combining the two formulas, the first formula is the numerator and the other is the denominator: The above expression is a function of w. The larger the value of w, the better the dimensionality reduction performance. Therefore, the following problem is to find the w that maximizes the above expression.

[0110] Expand the hash function: It can be observed that, apart from w and w^T, the remaining part can be defined as: This is actually the hash matrix of the original data, right? For a fixed dataset, its hash matrix is ​​also fixed.

[0111] Another definition: S w =S1 + S2; Sw is called the Within-class scatter matrix. Returning to... By replacing the two definitions above, we get: Expand the molecule of J(w) and define SB, which is called the Between-class scatter. This gives us the final representation of J(w):

[0112] The maximum value of the above expression can be found using the Lagrange multiplier method, but the value of the denominator needs to be limited; otherwise, if both the numerator and denominator change, how can the optimal value of w be determined? We can let w = w, and then use the Lagrange multiplier method to obtain: Where w is a matrix, so when taking the derivative, we can use w as a matrix. T S w w is used as S w w 2 Multiply both sides of the above equation by We can obtain: Sw -1 S B w = λw. It can be observed that w is actually a matrix. Are these the eigenvectors?

[0113] Solving for w using the above formula is still somewhat difficult, and w will have multiple solutions. Consider the following formula: S B =(μ1-μ2)(μ1-μ2) T Substitute it into the following formula: S B w=(μ1-μ2)(μ1-μ2) T w=(μ1-μ2)*λ w Where λw is a numerical value with w as the variable, because (u1-u2)^T and w have the same dimension, the former being a row vector and the latter a column vector. Continuing to substitute into the previous formula: Since scaling w by any factor does not affect the result, we can cancel out the unknown constants λ and λw twice: At this point, w can be solved relatively easily.

[0114] When the dataset is multi-class, suppose there are facial images of C people. Each person can have multiple images, so we can classify the images into C classes based on the person. This section addresses how to determine these C classes. Before classification, we need to process the images. For each image, we extract pixels row by row and column by column to form a vector. Similar to the first section, let this vector be x, and let the vector dimension be n. Let x be a column vector (n rows and 1 column). Unlike the two-dimensional data classification mentioned above, n here can be in the tens of thousands. For example, a 100x100 image will result in a 10,000-dimensional vector. Therefore, the method of projecting x into a vector in the first section may not be applicable. Figure 8 As shown, there isn't a suitable vector in the plane that can project all the data onto and reasonably separate different classes. Therefore, we need to increase the number of projection vectors w (of course, each vector has the same dimension as the data, otherwise how can we project them), let w be: W = [w1|w2|...|w K w1, w2, etc., are n-dimensional column vectors, so w is an n x k matrix. Here, k can be chosen arbitrarily as needed, as long as it reasonably represents the original data. The projection of x onto w can be expressed as: y = W T x, so y here is a k-dimensional column vector.

[0115] The optimal w will be considered from the inter-class and intra-class hash values ​​after projection, taking into account the case where the two-dimensional data in Figure (2) is divided into three categories. Similar to the first section, μi still represents the center of category i, and Sw is defined as follows: in: Let μ represent the intra-class hash rate of class i, which is an n x n matrix. The center μ of all x is defined as: The definition of inter-class hashing differs significantly from that of the two types of datasets: This represents the sum of the distances from each category to μ. Note that Ni represents the number of x values ​​within category i, which is the number of face images of a particular person.

[0116] The above content refers to various data between projections, while the calculation of J(w) actually relies on the distribution of data after projection, therefore: Let J(w) represent the center of class i after projection, the center of all data, the intra-class hash matrix, and the inter-class hash matrix, respectively. Similar to the previous section, J(w) can be defined as: The numerator of J(w) is the pairwise center distance, and the denominator is the hash rate of each class. Now that the projection direction is multi-dimensional (several straight lines), the numerator needs to be changed. Instead of calculating the sum of pairwise center distances (which is useless for describing the dispersion between classes), we calculate the sum of the hash rates of each class center relative to the total number of centers. We get: Finally, it becomes: We still need to find the eigenvectors of the matrix, and then select the eigenvector with the largest of the first k eigenvalues ​​according to the requirements.

[0117] Additionally, it's important to note that since the rank (μi-μ) in SB is 1, the maximum rank of SB is C (the rank of a matrix is ​​less than or equal to the sum of its constituent matrices). Furthermore, knowing the first C-1 μi, the last μc can be linearly represented by the preceding μi; therefore, the rank of SB is at most C-1, and the number of eigenvectors is at most C-1. Since C represents the categories of the dataset, assuming there are photos of N people, at most N-1 eigenvectors can be obtained to represent the original data.

[0118] In PCA, the eigenvectors obtained are all orthogonal, but in LDA, they are not symmetric. Therefore, the K eigenvectors obtained are not necessarily orthogonal, which is the biggest difference between LDA and PCA. If we obtain k eigenvectors from a set of faces and reconstruct them into a face image, as shown... Figure 9 As shown, we have obtained k feature vectors. How do we match a face with faces in the database to determine similarity? The method is to project the face onto the k feature vectors, obtaining a k-dimensional column vector or row vector. Then, we calculate the Euclidean distance between this vector and existing projections, and use a threshold to determine if a match exists. The specific method is described in the classic face recognition algorithm one: the Eigenface method.

[0119] Distributed cloud and fog computing constructs IoT clusters for hierarchical big data analysis and diagnostics, enabling faster and more accurate computations. Cloud and fog computing are not simply high-performance servers, but rather composed of various functionally distributed, less powerful computers, permeating appliances, factories, automobiles, streetlights, and everyday items. Fog computing is a semi-virtualized service computing architecture model between cloud computing and personal computing, emphasizing quantity; even the weakest individual computing nodes must play a role. Multiple projects in the computing lab are continuously advancing the application of fog computing technology in fields such as autonomous driving, robotics, smart buildings, and smart grids.

[0120] Fog computing primarily utilizes small-scale clouds such as personal, private, and enterprise clouds, which is entirely different from cloud computing. Cloud computing mainly focuses on IT operator services and public clouds. Fog computing prioritizes quantity, emphasizing the role of individual computing nodes regardless of their individual capabilities. Cloud computing, on the other hand, emphasizes overall computing power, typically achieved through a centralized cluster of high-performance computing devices. Fog computing expands the network computing model of cloud computing, extending network computing from the network center to the network edge, thus enabling wider application across various services.

[0121] It is understood that fog computing can fully utilize the distributed computing, storage, communication and control capabilities in the network environment, and achieve shorter service response times, stronger local computing capabilities, less data transmission load, more secure distributed service architecture, and faster and more accurate analysis, decision-making and control through resource sharing mechanisms and collaborative service architecture.

[0122] Compared to cloud computing, fog computing employs a more distributed architecture, closer to the network edge. Fog computing centralizes data, data processing, and applications on devices at the network edge, unlike cloud computing which stores almost entirely in the cloud. Data storage and processing rely more on local devices than servers. Therefore, cloud computing is a new generation of centralized computing, while fog computing is a new generation of distributed computing. Combined with distributed fog computing, data transmission bands are formed between different devices through devices and technologies such as smart routers, effectively reducing network traffic and correspondingly alleviating the computing load on data centers. Fog computing can serve as a computing processing method between M2M (machine-to-machine) networks and cloud computing, addressing the massive amounts of data generated by M2M networks—using processing programs to preprocess this data to enhance its usability. A good example is the application of fog computing in a tiered community subletting prevention scenario. When a tenant enters the rental community, the first step is for a camera to capture their facial information, followed by data processing to establish information on the community, building, unit, and floor level of the tenant. Based on temporarily deployed fog computing nodes near the community, it can provide timely response and more powerful information processing capabilities. It is foreseeable that with the continuous development, maturation, and widespread application of fog computing technology, the intelligent Internet of Things will become increasingly convenient and efficient. Fog computing will complement and collaborate with cloud computing, providing everyone with readily accessible and ubiquitous intelligent services, and injecting development momentum into smart cities where everything is interconnected. Establishing more fog nodes to release rental information will provide strong data support for governments and landlords, and offer tenants better services and data support.

[0123] S160. Send the verification result to the terminal.

[0124] The aforementioned cloud-based diagnostic method for preventing subletting links room information and tenant information, uses a camera to capture facial images, saves and judges the facial images, performs cloud calculations if the images are not saved, and performs facial verification if the images are saved. This achieves a high recognition rate, improves the accuracy of subletting diagnosis, and is time-saving and has low labor costs.

[0125] Figure 10 This is a schematic block diagram of a cloud and fog diagnostic anti-subleasing device 300 provided in an embodiment of the present invention. Figure 10As shown, corresponding to the above-described cloud and fog diagnostic anti-subleasing method, the present invention also provides a cloud and fog diagnostic anti-subleasing device 300. This cloud and fog diagnostic anti-subleasing device 300 includes a unit for executing the above-described cloud and fog diagnostic anti-subleasing method, and the device can be configured in a server. Specifically, please refer to... Figure 10 The cloud and fog diagnostic anti-subleasing device 300 includes an association unit 301, an image acquisition unit 302, a storage and judgment unit 303, a cloud and fog calculation unit 304, a verification unit 305, and a sending unit 306.

[0126] The system includes: an association unit 301 for associating room information and tenant information to obtain rental information; an image acquisition unit 302 for acquiring facial images captured by the room's camera; a save judgment unit 303 for determining whether the facial information corresponding to the facial image is saved; a cloud and fog calculation unit 304 for performing cloud and fog calculations based on the facial image if the facial information corresponding to the facial image is not saved; a verification unit 305 for performing facial verification between the facial image and the rental information if the facial information corresponding to the facial image is saved to obtain a verification result; and a sending unit 306 for sending the verification result to the terminal.

[0127] In one embodiment, such as Figure 11 As shown, the association unit 301 includes a card association subunit 3011, an information storage subunit 3012, a camera information acquisition subunit 3013, and an integration subunit 3014.

[0128] The card association subunit 3011 is used to obtain the tenant information corresponding to the room and associate the tenant information with the card of the smart lock connected to the room to obtain association data; the information storage subunit 3012 is used to store the room information and tenant information to obtain basic data; the camera information acquisition subunit 3013 is used to obtain the location, installation time and pixels of the camera and combine it with the basic data to form combined data; the integration subunit 3014 is used to obtain the tenant's facial recognition information and integrate the facial recognition information with the combined information and association information to form rental information.

[0129] In one embodiment, such as Figure 12 As shown, the cloud and fog calculation unit 304 includes a first calculation subunit 3041 and a first storage subunit 3042.

[0130] The first calculation subunit 3041 is used to perform cloud and fog calculation on the face image and optimize the face information using deep learning to form face information to be stored; the first storage subunit 3042 is used to store the face information to be stored.

[0131] In one embodiment, such as Figure 13 As shown, the verification unit 305 includes a face verification subunit 3051, a calculation and judgment subunit 3052, an optimization and storage subunit 3053, a face optimization subunit 3054, and a message sending subunit 3055.

[0132] The face verification subunit 3051 is used to verify the face image one by one with the faces in the rental information, and to verify the faces of the entire unit, the entire building, and the entire community. The calculation and judgment subunit 3052 is used to determine whether the faces of the room, the entire unit, the entire building, and the entire community have all undergone clouding calculation. The optimization and storage subunit 3053 is used to optimize the face information of the face image using deep learning if the faces of the room, the entire unit, the entire building, and the entire community have all undergone clouding calculation, and to save the optimized face information. The face optimization subunit 3054 is used to optimize the face information after an optimization cycle if at least one of the faces of the room, the entire unit, the entire building, and the entire community has not undergone clouding calculation. The message sending subunit 3055 is used to send a message to the terminal to verify or require review of the face information, so that the terminal can re-collect the face information, update personal information or family information, and obtain the verification result.

[0133] In one embodiment, such as Figure 14 As shown, the message sending subunit 3055 includes a sending module 30551 and an acquisition module 30552.

[0134] The sending module 30551 is used to send a message to the terminal to verify or re-verify facial information, so that the terminal can re-collect facial information. If the corresponding person does not cooperate with the information collection, it is determined that the corresponding person is not the tenant, so as to obtain the verification result, record and report to the landlord. If the corresponding person cooperates with the information collection, a new facial image is collected. The acquisition module 30552 is used to acquire the new facial image and perform the step of comparing the facial image with the faces in the rental information one by one, and comparing it with the faces of the entire unit, the entire building, and the entire community.

[0135] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned cloud and fog diagnostic anti-subleasing device 300 and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.

[0136] The aforementioned cloud and fog diagnostic anti-subleasing device 300 can be implemented as a computer program, which can, for example... Figure 15 It runs on the computer device shown.

[0137] Please see Figure 15 , Figure 15 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 can be a server, wherein the server can be a standalone server or a server cluster composed of multiple servers.

[0138] See Figure 15 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a system bus 501. The memory may include a non-volatile storage medium 503 and internal memory 504.

[0139] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a cloud and fog diagnostic anti-sublease method.

[0140] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.

[0141] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a cloud and fog diagnostic anti-sublease method.

[0142] This network interface 505 is used for network communication with other devices. Those skilled in the art will understand that... Figure 15 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0143] The processor 502 is used to run a computer program 5032 stored in the memory to perform the following steps:

[0144] The system associates room information and tenant information to obtain rental information; it acquires facial images captured by the room's camera; it determines whether the facial information corresponding to the facial image is saved; if the facial information corresponding to the facial image is not saved, it performs cloud and fog calculation based on the facial image; if the facial information corresponding to the facial image is saved, it performs facial verification between the facial image and the rental information to obtain a verification result; and it sends the verification result to the terminal.

[0145] In one embodiment, when the processor 502 implements the step of associating room information and tenant information to obtain rental information, it specifically implements the following steps:

[0146] The system obtains the tenant information corresponding to the room and associates the tenant information with the smart lock card of the room to obtain associated data; it stores the room information and tenant information to obtain basic data; it obtains the location, installation time and pixels of the camera and combines them with the basic data to form combined data; it obtains the tenant's facial recognition information and integrates the facial recognition information with the combined information and associated information to form rental information.

[0147] In one embodiment, when implementing the step of performing cloud and fog calculation based on the face image, the processor 502 specifically implements the following steps:

[0148] The face image is subjected to cloud and fog calculations for face information, and deep learning is used to optimize the face information to form face information to be stored; the face information to be stored is then saved.

[0149] In one embodiment, when the processor 502 performs face verification by comparing the face image with the rental information to obtain the verification result, it specifically implements the following steps:

[0150] The facial image is compared one by one with the faces in the rental information, and also compared with the faces of the entire unit, the entire building, and the entire community. It is determined whether the faces in the room, the entire unit, the entire building, and the entire community have all undergone fog calculation. If the faces in the room, the entire unit, the entire building, and the entire community have undergone fog calculation, deep learning is used to optimize the facial information of the facial image, and the optimized facial information is saved. If at least one of the faces in the room, the entire unit, the entire building, and the entire community has not undergone fog calculation, the facial information is optimized after an optimization cycle. A verification or re-verification message for the facial information is sent to the terminal so that the terminal can re-collect the facial information, update personal information or family information, and obtain the verification result.

[0151] In one embodiment, when the processor 502 implements the step of sending a message to the terminal for verification or verification of facial information so that the terminal can re-collect facial information and update personal or family information, the processor 502 specifically implements the following steps:

[0152] A message is sent to the terminal to verify or re-verify facial information, so that the terminal can re-collect facial information. If the corresponding person does not cooperate with the information collection, it is determined that the corresponding person is not the tenant, so as to obtain the verification result, record and report to the landlord. If the corresponding person cooperates with the information collection, a new facial image is collected. The new facial image is obtained, and the process of verifying the facial image with the faces in the rental information one by one, and with the faces of the entire unit, the entire building, and the entire community is performed.

[0153] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0154] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program includes program instructions and can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0155] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program, wherein when executed by a processor, the computer program causes the processor to perform the following steps:

[0156] The system associates room information and tenant information to obtain rental information; it acquires facial images captured by the room's camera; it determines whether the facial information corresponding to the facial image is saved; if the facial information corresponding to the facial image is not saved, it performs cloud and fog calculation based on the facial image; if the facial information corresponding to the facial image is saved, it performs facial verification between the facial image and the rental information to obtain a verification result; and it sends the verification result to the terminal.

[0157] In one embodiment, when the processor executes the computer program to obtain rental information by associating room information and tenant information, it specifically implements the following steps:

[0158] The system obtains the tenant information corresponding to the room and associates the tenant information with the smart lock card of the room to obtain associated data; it stores the room information and tenant information to obtain basic data; it obtains the location, installation time and pixels of the camera and combines them with the basic data to form combined data; it obtains the tenant's facial recognition information and integrates the facial recognition information with the combined information and associated information to form rental information.

[0159] In one embodiment, when the processor executes the computer program to implement the step of performing cloud and fog calculation based on the face image, it specifically implements the following steps:

[0160] The face image is subjected to cloud and fog calculations for face information, and deep learning is used to optimize the face information to form face information to be stored; the face information to be stored is then saved.

[0161] In one embodiment, when the processor executes the computer program to perform the step of facial verification by comparing the face image with the rental information to obtain a verification result, the processor specifically implements the following steps:

[0162] The facial image is compared one by one with the faces in the rental information, and also compared with the faces of the entire unit, the entire building, and the entire community. It is determined whether the faces in the room, the entire unit, the entire building, and the entire community have all undergone fog calculation. If the faces in the room, the entire unit, the entire building, and the entire community have undergone fog calculation, deep learning is used to optimize the facial information of the facial image, and the optimized facial information is saved. If at least one of the faces in the room, the entire unit, the entire building, and the entire community has not undergone fog calculation, the facial information is optimized after an optimization cycle. A verification or re-verification message for the facial information is sent to the terminal so that the terminal can re-collect the facial information, update personal information or family information, and obtain the verification result.

[0163] In one embodiment, when the processor executes the computer program to send a message to the terminal requesting verification or review of facial information so that the terminal can re-collect facial information and update personal or family information, the processor specifically implements the following steps:

[0164] A message is sent to the terminal to verify or re-verify facial information, so that the terminal can re-collect facial information. If the corresponding person does not cooperate with the information collection, it is determined that the corresponding person is not the tenant, so as to obtain the verification result, record and report to the landlord. If the corresponding person cooperates with the information collection, a new facial image is collected. The new facial image is obtained, and the process of verifying the facial image with the faces in the rental information one by one, and with the faces of the entire unit, the entire building, and the entire community is performed.

[0165] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), magnetic disk, or optical disk.

[0166] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0167] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0168] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0169] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0170] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A cloud and fog diagnostic method to prevent subleasing, characterized in that, include: Link room information and tenant information to obtain rental information; Obtain facial images captured by the room's cameras; Determine whether the facial information corresponding to the facial image has been saved; If the facial information corresponding to the facial image is not saved, then cloud and fog calculations are performed based on the facial image; If the facial information corresponding to the facial image has been saved, then the facial image is compared with the rental information to obtain the comparison result; Send the verification result to the terminal; The step of performing cloud and fog calculation based on the face image includes: The face image is subjected to cloud and fog calculations for face information, and deep learning is used to optimize the face information to form face information to be stored. Save the facial information to be stored; The step of performing facial verification between the facial image and the rental information to obtain the verification result includes: The facial images are checked one by one against the faces in the rental information, and also against the faces of the entire unit, the entire building, and the entire community. Determine whether cloud-based calculations are performed on faces in rooms, entire units, entire buildings, and the entire community; If the faces in the room, the entire unit, the entire building, and the entire community are all subjected to cloud and fog calculations, then deep learning is used to optimize the facial information of the facial images, and the optimized facial information is saved. If at least one of the faces in the room, the entire unit, the entire building, or the entire community has not been calculated for cloud and fog, then the face information will be optimized after the optimization cycle. Send a message to the terminal to verify or review facial information, so that the terminal can re-collect facial information, update personal or family information, and obtain the verification result.

2. The cloud and fog diagnostic method for preventing subleasing according to claim 1, characterized in that, The associated room information and tenant information are used to obtain rental information, including: Obtain the tenant information corresponding to the room, and associate the tenant information with the card of the room's networked smart lock to obtain associated data; Store room information and tenant information to obtain basic data; The location, installation time, and pixel count of the camera are obtained and combined with the basic data to form combined data. Obtain the tenant's facial recognition information, and integrate the facial recognition information with the combined data and related information to form rental information.

3. The cloud and fog diagnostic method for preventing subleasing according to claim 2, characterized in that, Sending a message to the terminal to verify or re-verify facial information, so that the terminal can re-collect facial information and update personal or family information, includes: Send a message to the terminal to verify or review facial information so that the terminal can re-collect facial information. If the corresponding person does not cooperate with the information collection, determine that the corresponding person is not the tenant, obtain the verification result, record it and report it to the owner; if the corresponding person cooperates with the information collection, collect a new facial image. Acquire new facial images and perform the step of comparing the facial images with the faces in the rental information one by one, and comparing them with the faces in the entire unit, the entire building, and the entire community.

4. A cloud and fog diagnostic anti-subleasing device, characterized in that, The device uses the cloud and fog diagnostic anti-subleasing method as described in any one of claims 1 to 3, comprising: The associated unit is used to associate room information and tenant information to obtain rental information; The image acquisition unit is used to acquire facial images captured by the room's camera; A save determination unit is used to determine whether the facial information corresponding to the facial image should be saved; The cloud and fog calculation unit is used to perform cloud and fog calculation based on the face image if the face information corresponding to the face image is not saved. The verification unit is used to perform face verification between the face image and the rental information if the face information corresponding to the face image has been saved, so as to obtain the verification result; Sending unit, used to send the verification result to the terminal; The cloud and fog computing unit includes: The first computing subunit is used to perform cloud and fog calculations on the face image and to optimize the face information using deep learning to form face information to be stored. The first storage subunit is used to store the face information to be stored.

5. The cloud and fog diagnostic anti-subleasing device according to claim 4, characterized in that, The associated unit includes: The card association subunit is used to obtain the tenant information corresponding to the room and associate the tenant information with the card of the room's networked smart lock to obtain association data; The information storage subunit is used to store room information and tenant information to obtain basic data; The camera information acquisition subunit is used to acquire the camera's location, installation time, and pixels, and combine them with the basic data to form combined data. The integration subunit is used to obtain the tenant's facial recognition information, and integrate the facial recognition information with the combined data and related information to form rental information.

6. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1 to 3.

7. A storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Hotel video security system based on fog computing

    CN110505446A

  • Public rental house personnel management method and system

    CN111599065A