A smart basketball management system based on Bluetooth transmission technology
The smart basketball management system using Bluetooth transmission technology automatically determines user behavior and controls the opening of the cabinet door, which solves the inconvenience of scanning codes when returning basketballs and improves convenience and user experience.
Patent Information
- Application Number
- CN202410063770.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-01-16
AI Technical Summary
In the shared rental basketball system, users need to scan the code when returning the basketball, which causes the hands to be dirty or the process of waiting to wash hands is time-consuming and affects the user experience.
Adopting a smart basketball management system based on Bluetooth transmission technology, the user terminal establishes a connection with the rental cabinet through Bluetooth communication, automatically determines the user's behavior and controls the opening of the cabinet door to avoid code scanning operations.
It improves the convenience for users to borrow and return basketballs, reduces hand contamination and waiting time, and improves user experience.
Smart Images

Figure CN117727136B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of management, and in particular to an intelligent basketball management system based on Bluetooth transmission technology. Background Art
[0002] In the prior art, when using a shared rental cabinet to rent a basketball, a scanning rental method is usually adopted, that is, the user first scans the code to open the cabinet, and when the user is finished, scans the code again to open the cabinet, puts the basketball into the cabinet, and then closes the cabinet. However, when the user just finishes playing basketball, his hands are very dirty. If the user directly uses a mobile phone to scan the code, the mobile phone will be dirty. Alternatively, the user washes his hands and then returns to return the basketball. However, if washing hands is inconvenient, the return process will take a long time, resulting in a poor user experience. Summary of the invention
[0003] The purpose of the present invention is to disclose an intelligent basketball management system based on Bluetooth transmission technology, so as to solve the problem of how to return the basketball without scanning the code again, thereby improving the convenience of users returning the basketball.
[0004] In order to achieve the above object, the present invention provides the following technical solutions:
[0005] The present invention provides a smart basketball management system based on Bluetooth transmission technology, including a user terminal, a rental cabinet and a cloud server;
[0006] The user terminal is used to send identity information to the rental cabinet by means of Bluetooth communication;
[0007] The rental cabinet is used to send identity information to the cloud server;
[0008] The cloud server is used to determine whether the user's current behavior is to rent a basketball or return a basketball based on the identity information. If the user is renting a basketball, the cloud server obtains the number of the cabinet with the door opened in the rental cabinet and sends the number to the rental cabinet. If the user is returning a basketball, the cloud server sends the cabinet number in the rental cabinet corresponding to the identity information when renting the basketball to the rental cabinet.
[0009] The rental cabinet is used to open the door of the cabinet corresponding to the number after receiving the number.
[0010] Optionally, the user terminal is further used to send the user's registration information to the cloud server;
[0011] After receiving the registration information, the cloud server determines whether the user meets the preset registration rules. If so, the registration information is saved.
[0012] Optionally, registration information includes identity information, password, mobile phone number and ID number.
[0013] Optionally, the user terminal runs on a smart device used by the user, and can reside in the background of the smart device after the user starts the user terminal.
[0014] Optionally, the identity information is sent to the rental cabinet by Bluetooth communication, including:
[0015] If it is the first time to send identity information to the rental cabinet, pair it with the Bluetooth of the rental cabinet through Bluetooth pairing. After the pairing is successful, save the Bluetooth of the rental cabinet as a paired device, and then send the identity information to the rental cabinet;
[0016] If it is not the first time to send identity information to the rental cabinet, the surrounding area is scanned regularly to determine whether the Bluetooth of the rental cabinet appears in the communication range. If so, a communication connection is established with the Bluetooth of the rental cabinet, and then the identity information is sent to the rental cabinet.
[0017] Optionally, judging whether the user's current behavior is to rent a basketball or return a basketball based on the identity information includes:
[0018] Get the rental order closest to the current moment corresponding to the identity information;
[0019] Determine whether the status of the rental order is completed. If so, the user's current behavior is to rent the basketball. If not, the user's current behavior is to return the basketball.
[0020] Optionally, the cloud server is further used to generate a new rental order when the user's current behavior is to rent a basketball;
[0021] When the user's current action is to return the basketball, a rental bill is generated and sent to the user terminal;
[0022] And it is used to change the status of the rental order corresponding to the user information to completed after the user pays the rental fee according to the rental bill.
[0023] Optionally, the rental cabinet includes a plurality of cabinets, each cabinet stores a basketball, and the surface of the basketball is printed with a number that is the same as the number of the cabinet in which the basketball is stored.
[0024] Optionally, the cloud server is also used to associate the serial number of the cabinet with the open door with the identity information when the user rents a basketball, and save it.
[0025] Optionally, the rental cabinet is further used to photograph the basketball returned by the user when the user returns the basketball, obtain a surface image of the basketball, and obtain a number on the surface of the basketball based on the surface image;
[0026] Determine whether the number of the basketball in the surface image is the same as the number of the cabinet corresponding to the identity information;
[0027] If yes, then open the door of the cabinet corresponding to the number. If no, then prompt the user that the basketball returned is incorrect.
[0028] Beneficial effects:
[0029] Compared with the prior art, the present invention does not require scanning of codes during the process of returning basketballs. It only requires the user terminal to establish a Bluetooth connection with the rental cabinet. The present invention can automatically determine whether the user's current behavior is to rent a basketball or return a basketball based on the identity information, thereby controlling the opening of the cabinet door in the rental cabinet, effectively improving the convenience for users to borrow and return basketballs. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0031] Figure 1 A schematic diagram of an intelligent basketball management system based on Bluetooth transmission technology of the present invention.
[0032] Figure 2 A schematic diagram of the process of determining whether a user meets preset registration rules according to the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope parameters of the protection of the present invention.
[0034] like Figure 1 In one embodiment shown, the present invention provides a smart basketball management system based on Bluetooth transmission technology, including a user terminal, a rental cabinet and a cloud server;
[0035] The user terminal is used to send identity information to the rental cabinet by means of Bluetooth communication;
[0036] The rental cabinet is used to send identity information to the cloud server;
[0037] The cloud server is used to determine whether the user's current behavior is to rent a basketball or return a basketball based on the identity information. If the user is renting a basketball, the cloud server obtains the number of the cabinet with the door opened in the rental cabinet and sends the number to the rental cabinet. If the user is returning a basketball, the cloud server sends the cabinet number in the rental cabinet corresponding to the identity information when renting the basketball to the rental cabinet.
[0038] The rental cabinet is used to open the door of the cabinet corresponding to the number after receiving the number.
[0039] In the process of returning a basketball, the present invention does not require scanning a code. It only requires the user terminal to establish a Bluetooth connection with the rental cabinet. The present invention can automatically determine whether the user's current behavior is to rent a basketball or return a basketball based on the identity information, thereby controlling the opening of the door of the cabinet in the rental cabinet, effectively improving the convenience of users borrowing and returning basketballs.
[0040] When the user needs to return the basketball, he only needs to approach the rental cabinet so that the user terminal can establish a Bluetooth connection with the rental cabinet.
[0041] Specifically, in the present invention, the user terminal is an application software.
[0042] Optionally, the user terminal is further used to send the user's registration information to the cloud server;
[0043] After receiving the registration information, the cloud server determines whether the user meets the preset registration rules. If so, the registration information is saved.
[0044] Specifically, the saved registration information can be verified in a subsequent verification process, so that the user does not need to scan the code.
[0045] Optionally, registration information includes identity information, password, mobile phone number and ID number.
[0046] Specifically, identity information includes account name. Each user's identity information is different.
[0047] Optional, such as Figure 2 As shown, judging whether the user meets the preset registration rules includes:
[0048] The first step is to determine whether the identity information is repeated with the identity information of an existing user. If so, it does not meet the preset registration rules. If not, proceed to the second step;
[0049] The second step is to determine whether the security level of the password meets the preset requirements. If so, it does not meet the preset registration rules. If not, proceed to the third step;
[0050] The third step is to determine whether the mobile phone number is the same as that of an existing user. If so, it does not meet the preset registration rules. If not, proceed to the fourth step.
[0051] The fourth step is to determine whether the ID number is the same as the ID number of an existing user. If so, it does not meet the preset registration rules. If not, proceed to the fifth step.
[0052] The fifth step is to determine whether the user is an adult user based on the date of birth on the ID number. If so, it meets the preset registration rules. If not, it does not meet the preset registration rules.
[0053] Specifically, the preset requirements include whether punctuation marks, uppercase letters, lowercase letters and numbers are included and whether the number of digits is greater than a set minimum number of digits.
[0054] Optionally, the user terminal runs on a smart device used by the user, and can reside in the background of the smart device after the user starts the user terminal.
[0055] Specifically, smart devices include smartphones, tablet computers, etc.
[0056] During the installation process, the user terminal will apply for user authorization to reside in the background and apply for permission to use Bluetooth. Only when the user authorizes to reside in the background and use Bluetooth, the user terminal can be installed normally.
[0057] Specifically, when the user puts the basketball into the cabinet and closes the cabinet door, the rental cabinet sends a notification of exiting the background to the user terminal; after receiving the notification, the user terminal exits the background residence.
[0058] This setting can prevent the user terminal from staying in the background for a long time and wasting the power of the smart device.
[0059] Optionally, the identity information is sent to the rental cabinet by Bluetooth communication, including:
[0060] If it is the first time to send identity information to the rental cabinet, pair it with the Bluetooth of the rental cabinet through Bluetooth pairing. After the pairing is successful, save the Bluetooth of the rental cabinet as a paired device, and then send the identity information to the rental cabinet;
[0061] If it is not the first time to send identity information to the rental cabinet, the surrounding area is scanned regularly to determine whether the Bluetooth of the rental cabinet appears in the communication range. If so, a communication connection is established with the Bluetooth of the rental cabinet, and then the identity information is sent to the rental cabinet.
[0062] Specifically, the user can log in to the rental system on the user terminal only after registration, and the user terminal will scan the surroundings, search for the Bluetooth of the rental cabinet, and pair with the rental cabinet only after the user logs in successfully.
[0063] The name of the Bluetooth of the rental cabinet is pre-stored in a file of the user terminal, so that the user terminal can automatically identify the Bluetooth name of the rental cabinet.
[0064] Optionally, judging whether the user's current behavior is to rent a basketball or return a basketball based on the identity information includes:
[0065] Get the rental order closest to the current moment corresponding to the identity information;
[0066] Determine whether the status of the rental order is completed. If so, the user's current behavior is to rent the basketball. If not, the user's current behavior is to return the basketball.
[0067] Specifically, the rental order includes the order start time. By comparing the order start time with the current time, the rental order closest to the current time can be obtained.
[0068] Optionally, the cloud server is further used to generate a new rental order when the user's current behavior is to rent a basketball;
[0069] When the user's current action is to return the basketball, a rental bill is generated and sent to the user terminal;
[0070] And it is used to change the status of the rental order corresponding to the user information to completed after the user pays the rental fee according to the rental bill.
[0071] Specifically, the rental order includes the order start time, the number of the rental cabinet where the rented basketball is located, the number of the cabinet where the rented basketball is located, the number of the rented basketball, and user information.
[0072] Specifically, the process of generating a rental bill is as follows:
[0073] Get the time when the user closes the locker door when the user returns the basketball;
[0074] Calculate the time between the time the user closes the door and the time the order is placed;
[0075] Calculate the user's rental fee based on the duration and preset charging rules;
[0076] Get the pre-saved bill template, fill in the duration, rental fee, bill number, user information and other information into the bill template to generate a rental bill.
[0077] Optionally, obtain the cabinet ID of the open cabinet in the rental cabinet, including:
[0078] Get a set of numbers of cabinets in the rental cabinet that are not rented, and randomly select a number from the set as the number of the cabinet to be opened.
[0079] Specifically, when the basketball in the cabinet is rented out, the cabinet number is deleted from the set, and when the basketball in the cabinet is returned, the cabinet number is added to the set.
[0080] Optionally, the rental cabinet includes a plurality of cabinets, each cabinet stores a basketball, and the surface of the basketball is printed with a number that is the same as the number of the cabinet in which the basketball is stored.
[0081] Specifically, by printing numbers, users can be prevented from returning the wrong basketball, thereby improving the safety of the return.
[0082] Optionally, the cloud server is also used to associate the serial number of the cabinet with the open door with the identity information when the user rents a basketball, and save it.
[0083] Specifically, the serial numbers and corresponding identity information of all the cabinets in the rental state will be stored to facilitate the control of opening the corresponding cabinet doors of the rental cabinets.
[0084] Optionally, when renting a basketball, the number of the cabinet in the rental cabinet corresponding to the identity information is sent to the rental cabinet, including:
[0085] The identity information is queried to obtain the number of the cabinet that has opened the door, and the obtained number is sent to the rental cabinet.
[0086] Optionally, the rental cabinet is further used to photograph the basketball returned by the user when the user returns the basketball, obtain a surface image of the basketball, and obtain a number on the surface of the basketball based on the surface image;
[0087] Determine whether the number of the basketball in the surface image is the same as the number of the cabinet corresponding to the identity information;
[0088] If yes, then open the door of the cabinet corresponding to the number. If no, then prompt the user that the basketball returned is incorrect.
[0089] Specifically, the present invention uses image recognition to automatically identify the number of the basketball, thereby improving the safety of returning the basketball.
[0090] Optionally, a speaker and a display screen are provided in the rental cabinet, the speaker is used to prompt the user by voice, and the display screen is used to prompt the user by text.
[0091] Optionally, a camera is also provided in front of the rental cabinet, and the camera is used to photograph the basketball returned by the user when the user returns the basketball, so as to obtain a surface image of the basketball.
[0092] Specifically, the display screen or the speaker is used to prompt the user to face the side of the basketball with the number printed on it toward the camera when the user returns the basketball.
[0093] Optionally, the basketball returned by the user is photographed to obtain a surface image of the basketball, including:
[0094] The basketball returned by the user is photographed in a continuous shooting manner to obtain multiple images to be screened;
[0095] Calculate the effective information coefficient of each image to be screened respectively;
[0096] The image to be screened with the largest effective information coefficient is taken as the surface image.
[0097] Specifically, since the user may have hand shaking when returning the basketball, a single shot may result in a blurred image. Therefore, the present invention improves the probability of obtaining a high-quality image by continuous shooting, thereby shortening the time to identify the number on the surface of the basketball and avoiding the user waiting too long.
[0098] Optionally, the effective information coefficient of each image to be screened is calculated separately, including:
[0099] Anyimg is used to represent the image to be screened with the earliest shooting time among multiple images to be screened;
[0100] Perform edge detection on anyimg to obtain edge pixels in anyimg;
[0101] Get the set S of closed areas surrounded by edge pixels;
[0102] Based on the set S, obtain a set Q representing the coordinates of the pixel points;
[0103] Based on the set Q, the effective information coefficient of each image to be screened is calculated respectively.
[0104] In the screening process, the present invention determines the comparison area based on the image with the earliest shooting time, and then calculates the effective information coefficient based on the comparison area. This is because even if the user has hand shaking, the amplitude of the shaking is limited within a short period of time. Therefore, by obtaining representative pixels and then calculating the effective information coefficient based on the neighborhood of the representative pixels, the information coefficient can be made more representative. Therefore, when calculating the effective information coefficient of the subsequent image to be screened, the present invention does not need to calculate all the pixels, but only needs to calculate the area near the coordinates of the representative pixel, which improves the efficiency of the calculation.
[0105] Optionally, perform edge detection on anyimg to obtain edge pixels in anyimg, including:
[0106] Use edge detection algorithm to perform edge detection on anyimg and get the edge pixels in anyimg.
[0107] Specifically, the edge detection algorithms used include the Sobel algorithm, the Canny algorithm, and the like.
[0108] In the present invention, the reason why edge pixels are obtained first is that the edge pixels carry the most significant details of the image. By obtaining representative pixels based on edge pixels, it is possible to avoid calculating the effective information coefficient based on all edge pixels, thereby improving the calculation efficiency while ensuring the validity of the calculation results.
[0109] Optionally, a set S of closed areas enclosed by edge pixels is obtained, including:
[0110] S1, for any edge pixel b, take edge pixel b as a comparison pixel;
[0111] S2, storing the compared pixels into a comparison set;
[0112] S3, determine whether there is an edge pixel point that does not belong to the comparison set in the 8-neighborhood of the comparison pixel point, if not, go to S4, if yes, go to S5;
[0113] S4, determining whether there are two edge pixels in the comparison set that are adjacent to the edge pixel b and are located on both sides of the edge pixel b. If so, the edge pixels in the comparison set enclose a closed area, and the obtained closed area is stored in the set S; if not, the edge pixels in the comparison set do not enclose a closed area.
[0114] S5, taking the edge pixel points that do not belong to the comparison set in the 8-neighborhood of the comparison pixel point as new comparison pixel points, and entering S2.
[0115] Specifically, the closed set starts from any edge pixel point in the closed area, moves along the edge of the image, and finally returns to the starting edge pixel point, that is, the edge pixels form a circle.
[0116] Specifically, the edge pixels on both sides of the edge pixel b refer to that when 0 degrees is horizontally to the right, the two edge pixels are in the 0 degree direction, the 45 degree direction, the 90 degree direction, or the 135 degree direction and are adjacent to the edge pixel b.
[0117] Optionally, obtaining a set Q of coordinates representing pixel points based on the set S includes:
[0118] The following calculations are performed for each closed area in the set S:
[0119] The first step is to obtain the set T of edge pixels surrounding the closed area d in the set S.
[0120] The second step is to randomly select an edge pixel point h from the set T as the starting pixel point;
[0121] Step 3: Starting from the starting pixel, each edge pixel in the set T is numbered consecutively, and N represents the total number of edge pixels in the set T.
[0122] Step 4: Take the edge pixel h as the representative pixel;
[0123] Step 5, storing the representative pixel points into the representative pixel point set;
[0124] Step 6: Calculate the moving interval based on the representative pixel points;
[0125] Step 7: Calculate the number of the edge pixel corresponding to the new representative pixel based on the moving interval, and determine whether the obtained number is greater than N. If so, proceed to step 9; if not, proceed to step 8;
[0126] Step 8: Use the edge pixel corresponding to the number calculated in step 7 as the new representative pixel, and proceed to step 5;
[0127] The ninth step is to save the coordinates of all edge pixels in the representative pixel set to the set Q.
[0128] Specifically, in the present invention, the difference in the numbers of the edge pixel points corresponding to two adjacent representative pixel points is not fixed, but is adaptively changed based on the distribution of the pixel points. This change method enables the present invention to further screen the edge pixel points to obtain more representative pixel points to calculate the effective information coefficient, while improving the calculation efficiency of the effective information coefficient.
[0129] Optionally, starting from the starting pixel, each edge pixel in the set T is numbered consecutively, including:
[0130] Starting from the starting pixel point, each edge pixel point in the set T is traversed along the extension direction of the edge, and each edge pixel point is numbered. Adjacent edge pixel points have adjacent numbers.
[0131] Optionally, the moving interval is calculated based on the representative pixel, including:
[0132] The moving interval corresponding to the second representative pixel is K, where K is a preset positive integer;
[0133] Starting from the third representative pixel, the moving interval corresponding to the representative pixel is obtained in the following way:
[0134] If the representative pixel is not an edge pixel h, use movitr i-1 represents the moving interval corresponding to the i-th representative pixel,
[0135] i is greater than or equal to 3; the i+1th represents the moving interval corresponding to the pixel point movitr i The calculation formula is:
[0136]
[0137] itrins indicates the preset moving interval, smgcef i-2 and smgcef i-1 They respectively represent the detail content coefficients corresponding to the i-2th representative pixel and the i-1th representative pixel; smgthre represents the preset detail content coefficient threshold.
[0138] Specifically, in the present invention, the latter moving interval is calculated based on the coefficient content coefficients of the first two representative pixels. If the absolute value of the difference between the coefficient content coefficients of the two representative pixels changes slightly, that is, it is less than or equal to the preset detail content coefficient threshold, it means that the details of the area where the edge extends change more slowly. At this time, the present invention will increase the moving interval to increase the arrival of the area where the details change faster, so as to obtain more representative pixels more quickly; if the absolute value of the difference between the coefficient content coefficients of the two representative pixels changes greatly, that is, it is greater than the preset detail content coefficient threshold, it means that the details of the area where the edge extends change faster. At this time, the present invention will reduce the moving interval to obtain more representative pixels. Therefore, the moving interval of the present invention can change adaptively based on the changes in the details of the image, so that the present invention can obtain representative pixels more efficiently and accurately, and ensure the calculation of accurate effective information coefficients.
[0139] Optionally, for the j-th edge pixel, the calculation formula of the corresponding detail content coefficient is:
[0140]
[0141] smgcef j represents the detail content coefficient corresponding to the j-th edge pixel, nbrj represents the set of pixels in the D×D window centered at the j-th edge pixel, and hdry u represents the image gradient of pixel u in nbrj, nfnbrj represents the total number of pixels in nbrj, hdry maxrepresents the maximum value of the image gradient of the pixel in nbrj, mihd represents the minimum value of the grayscale value of the pixel in nbrj, mshd represents the maximum value of the grayscale value of the pixel in nbrj, and total hd is the total number of pixels in nbrj whose grayscale value is equal to hd, and w1 and w2 are the preset first weighted value and second weighted value respectively.
[0142] Specifically, the detail content coefficient is calculated from the image gradient and the grayscale distribution of the image pixels. The greater the difference in the image gradient in the window, the greater the difference in the number of pixels with different grayscale values, and the more effective detail information. Therefore, the present invention calculates the detail content coefficient from different angles so that the detail content coefficient can more accurately represent the detail content in the window.
[0143] Optionally, the value of D is 5.
[0144] Optionally, the first weighted value and the second weighted value are 0.6 and 0.4 respectively.
[0145] Optionally, the preset detail content coefficient threshold is 0.2.
[0146] Optionally, the number of the edge pixel point corresponding to the new representative pixel point is calculated based on the moving interval, including:
[0147] The number of the edge pixel corresponding to the second representative pixel is K+1;
[0148] The number of the edge pixel corresponding to the i-th representative pixel, numedg i The calculation formula is:
[0149] numedg i =numedg i-1 +movitr i-1
[0150] numedg i-1 Indicates the number of the edge pixel corresponding to the i-1th representative pixel.
[0151] Optionally, the effective information coefficient of each image to be screened is calculated based on the set Q, including:
[0152] The calculation formula of effective information coefficient is:
[0153]
[0154] efifcef represents the effective information coefficient, msgvalue z Represents the detail content coefficient of the pixel corresponding to coordinate z.
[0155] Specifically, the calculation method of the detail content coefficient of the pixel point corresponding to the coordinate z is the same as the calculation method of the detail content coefficient corresponding to the j-th edge pixel point.
[0156] By accumulating the detail content coefficients around different representative pixels, the quality of the entire image can be accurately represented. The larger the effective information coefficient, the higher the image quality.
[0157] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0158] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0160] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope parameters of the technical solutions of the embodiments of the present invention.
Claims
1. A smart basketball management system based on Bluetooth transmission technology, characterized in that: Includes user terminals, rental cabinets and cloud servers; The user terminal is used to send identity information to the rental cabinet by means of Bluetooth communication; The rental cabinet is used to send identity information to the cloud server; The cloud server is used to determine whether the user's current behavior is to rent a basketball or return a basketball based on the identity information. If the user is renting a basketball, the cloud server obtains the number of the cabinet with the door opened in the rental cabinet and sends the number to the rental cabinet. If the user is returning a basketball, the cloud server sends the cabinet number in the rental cabinet corresponding to the identity information when renting the basketball to the rental cabinet. The rental cabinet is used to open the door of the cabinet corresponding to the number after receiving the number; The rental cabinet includes a plurality of cabinets, each of which stores a basketball, and the surface of the basketball is printed with the same number as the cabinet in which it is stored; The cloud server is also used to associate the number of the cabinet with the identity information when the user rents the basketball, and save it; The rental cabinet is also used to photograph the basketball returned by the user when the user returns the basketball, obtain a surface image of the basketball, and obtain a number on the surface of the basketball based on the surface image; Determine whether the number of the basketball in the surface image is the same as the number of the cabinet corresponding to the identity information; If yes, then the door of the cabinet corresponding to the number is opened; if no, then the user is prompted that the basketball returned is incorrect; The basketball returned by the user is photographed to obtain a surface image of the basketball, including: The basketball returned by the user is photographed in a continuous shooting manner to obtain multiple images to be screened; Calculate the effective information coefficient of each image to be screened respectively; The image to be screened with the largest effective information coefficient is taken as the surface image; Calculate the effective information coefficient of each image to be screened separately, including: Anyimg is used to represent the image to be screened with the earliest shooting time among multiple images to be screened; Perform edge detection on anyimg to obtain edge pixels in anyimg; Get the set S of closed areas surrounded by edge pixels; Based on the set S, obtain a set Q representing the coordinates of the pixel points; Based on the set Q, the effective information coefficient of each image to be screened is calculated respectively.
2. According to claim 1, a smart basketball management system based on Bluetooth transmission technology is characterized in that: The user terminal is also used to send the user's registration information to the cloud server; After receiving the registration information, the cloud server determines whether the user meets the preset registration rules. If so, the registration information is saved.
3. The smart basketball management system based on Bluetooth transmission technology according to claim 2 is characterized in that: Registration information includes identity information, password, mobile phone number and ID number.
4. The smart basketball management system based on Bluetooth transmission technology according to claim 1 is characterized in that: The user terminal runs on the smart device used by the user, and can reside in the background of the smart device after the user starts the user terminal.
5. The smart basketball management system based on Bluetooth transmission technology according to claim 1 is characterized in that: Use Bluetooth communication to send identity information to the rental cabinet, including: If it is the first time to send identity information to the rental cabinet, pair it with the Bluetooth of the rental cabinet through Bluetooth pairing. After the pairing is successful, save the Bluetooth of the rental cabinet as a paired device, and then send the identity information to the rental cabinet; If it is not the first time to send identity information to the rental cabinet, the surrounding area is scanned regularly to determine whether the Bluetooth of the rental cabinet appears in the communication range. If so, a communication connection is established with the Bluetooth of the rental cabinet, and then the identity information is sent to the rental cabinet.
6. The smart basketball management system based on Bluetooth transmission technology according to claim 1 is characterized in that: Determine whether the user's current behavior is renting a basketball or returning a basketball based on the identity information, including: Get the rental order closest to the current moment corresponding to the identity information; Determine whether the status of the rental order is completed. If so, the user's current behavior is to rent the basketball. If not, the user's current behavior is to return the basketball.
7. The smart basketball management system based on Bluetooth transmission technology according to claim 6 is characterized in that: The cloud server is also used to generate a new rental order when the user's current behavior is to rent a basketball; When the user's current action is to return the basketball, a rental bill is generated and sent to the user terminal; And it is used to change the status of the rental order corresponding to the user information to completed after the user pays the rental fee according to the rental bill.
