File mailing method, device, electronic device and storage medium
By determining the location of archive storage and specifying the mailing company information, obtaining the information of archives persons and completing legality inspections, generating and displaying the pickup routes, the problem of inefficiency of traditional archive mailing methods is solved, remote or automatic mailing is realized, and user experience is improved.
Patent Information
- Application Number
- CN202110855435.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2041-07-27
AI Technical Summary
Traditional file mailing methods require users to be present in person, resulting in inefficient processing by people who are not in local cities or do not have time and poor user experience.
Through the mailing task, determine the storage location of the files to be mailed and the information of the designated mailing company, obtain the information of the archiver, complete the legality inspection of the applicant, send the voucher code, receive the information of the pickup clerk, generate and display the pickup route, and realize remote or automatic mailing of the stored archives.
Remote or automatic mailing of stored archives is realized. Users do not need to be present in person, they only need to remotely or pre-submit mailing tasks to complete mailing, improving processing efficiency and user experience.
Smart Images

Figure CN113505940B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a file mailing method, device, electronic equipment and storage medium. Background Art
[0002] Postal and express delivery services are important components of the modern service industry, and are modern leading industries that promote the transformation of circulation methods and consumption upgrades, and are important tools for promoting "smooth trade". On the other hand, the development of the national economy has greatly driven the progress of postal and express delivery services. As the country gradually increases its attention to e-commerce, postal and express delivery services will also usher in more intense competition and development opportunities.
[0003] With the development of postal and express delivery services, whether it is for public affairs or personal business, some users who are not in the local city to collect certificates, or users who have time problems, cannot go to the site to collect certificates. In order to save time, users are more inclined to choose to collect them by mail or express delivery. However, in the traditional handling method, for the mailing of files, users are often required to be on site in person. After verifying the identity information, the postal and express delivery services will be triggered to mail the files or certificates. This handling mode is inefficient and has a poor user experience for people who are not in the local city or do not have time. Summary of the invention
[0004] In order to solve the above-mentioned problems existing in the prior art, the embodiments of the present application provide a file mailing method, device, electronic device and storage medium, which can realize remote mailing or automatic mailing of deposited files, thereby improving processing efficiency and user experience.
[0005] In a first aspect, an embodiment of the present application provides a method for mailing a file, comprising:
[0006] Determine the storage location of the files to be mailed and the designated mailing company information according to the mailing task;
[0007] According to the storage location of the files to be mailed, the information of the file owner of the files to be mailed is obtained, wherein the information of the file owner is used to identify the information of the owner of the files to be stored;
[0008] When the applicant of the mailing task is determined to be legitimate based on the file holder information, the voucher code is sent to the corresponding mailing company based on the designated mailing company information, and the pickup person information returned by the mailing company is received;
[0009] Receive the pickup request submitted by the pickup person, and when it is determined that the pickup person is legitimate, generate a pickup route based on the pickup request, and show the pickup route to the pickup person so that the pickup person can pick up the files to be mailed according to the pickup route and complete the mailing.
[0010] In a second aspect, an embodiment of the present application provides a file mailing device, comprising:
[0011] The positioning module is used to determine the storage location of the files to be mailed and the designated mailing company information according to the mailing task;
[0012] The verification module is used to obtain the file owner information of the file to be mailed according to the storage location of the file to be mailed, wherein the file owner information is used to identify the information of the owner of the file to be stored; and when it is determined that the applicant of the mailing task is legitimate according to the file owner information, the verification module sends a voucher code to the corresponding mailing company according to the designated mailing company information, and receives the pickup information returned by the mailing company;
[0013] The display module is used to receive the pickup request submitted by the pickup person, and when it is determined that the pickup person is legitimate, generate a pickup route according to the pickup request and display the pickup route to the pickup person so that the pickup person can take the files to be mailed according to the pickup route and complete the mailing.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, the processor is connected to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs the method of the first aspect.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method of the first aspect.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and is computer-operable to cause the computer to execute the method of the first aspect.
[0017] The implementation of the present application has the following beneficial effects:
[0018] In the implementation mode of the present application, the storage location of the files to be mailed and the information of the designated mailing company are determined through the mailing task, and then the information of the file holder of the files to be mailed is obtained through the storage location of the files to be mailed, so as to complete the legitimacy check of the applicant of the mailing task. After the inspection is completed, the voucher code is sent to the corresponding mailing company according to the information of the designated mailing company, and the pickup information returned by the mailing company is received. Finally, according to the pickup request submitted by the pickup, the legitimacy check of the pickup is completed, and the pickup route is generated and displayed to the pickup so that the pickup can take the files to be mailed according to the pickup route and complete the mailing. In this way, the remote mailing or automatic mailing of the deposited files is realized, and the user does not need to be present in person, but only needs to submit the corresponding mailing task remotely or in advance to realize the mailing of the deposited files, thereby improving the handling efficiency and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the implementation modes of the present application, the drawings required for use in the description of the implementation modes will be briefly introduced below. Obviously, the drawings described below are some implementation modes of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of a file mailing system provided for an embodiment of the present application;
[0021] Figure 2 A schematic diagram of the hardware structure of a file mailing device provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of a process of mailing a file provided for an implementation method of the present application;
[0023] Figure 4 A flowchart of a method for determining a storage location of a to-be-mailed file according to a mailing task provided in an embodiment of the present application;
[0024] Figure 5 A flowchart of a method for determining the storage location of a file to be mailed based on an image of a storage area and a file name provided in an embodiment of the present application;
[0025] Figure 6 A functional module composition block diagram of a file mailing device provided in an embodiment of the present application;
[0026] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0029] Reference to "embodiment" herein means that a particular feature, result, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] First of all, it should be noted that Figure 1 As shown, Figure 1 The schematic diagram of the file mailing system involved in the present application is that the file mailing system 100 includes a processing system 101, a camera system 102, a display system 103 and a storage system 104. Among them, the processing system 101 is used to receive remotely submitted mailing tasks, analyze the mailing tasks, and then complete the subsequent mailing operations. The camera system 102 includes a plurality of camera devices, which are distributed in various corners of the space where the storage system 104 is located. The display system 103 is used to interact with the pickup person and guide the pickup person to take away the files to be mailed. The storage system 104 includes a plurality of storage devices for storing various types of deposited files.
[0031] In addition, the present application can be applied to the remote mailing of various deposited items, which include, by way of example, but are not limited to: archives, certificates, express delivery, pets, etc. In the present application, the remote mailing scenario of deposited archives is mainly used as an example to illustrate the process of the archive mailing method. The archive mailing methods in other scenarios are similar to the archive mailing methods in the remote mailing scenario of deposited archives, and will not be described here.
[0032] Second, see Figure 2 , Figure 2 The hardware structure diagram of a file mailing device provided in the embodiment of the present application is as follows: The file mailing device 200 includes at least one processor 201 , a communication line 202 , a memory 203 and at least one communication interface 204 .
[0033] In this embodiment, the processor 201 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0034] The communication link 202 may include a path to transmit information between the above components.
[0035] The communication interface 204 may be any transceiver-like device (eg, antenna, etc.) for communicating with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (WLAN), etc.
[0036] The memory 203 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0037] In this embodiment, the memory 203 can exist independently and be connected to the processor 201 via the communication line 202. The memory 203 can also be integrated with the processor 201. The memory 203 provided in the embodiment of the present application can generally be non-volatile. Among them, the memory 203 is used to store computer-executable instructions for executing the scheme of the present application, and the execution is controlled by the processor 201. The processor 201 is used to execute the computer-executable instructions stored in the memory 203, so as to implement the method provided in the following embodiment of the present application.
[0038] In an optional implementation, the computer-executable instructions may also be referred to as application code, which is not specifically limited in this application.
[0039] In an optional embodiment, the processor 201 may include one or more CPUs, such as Figure 2 CPU0 and CPU1 in.
[0040] In an optional embodiment, the archive mailing device 200 may include multiple processors, such as Figure 2 201 and processor 207 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0041] In an optional embodiment, if the archive mailing device 200 is a server, the archive mailing device 200 may also include an output device 205 and an input device 206. The output device 205 communicates with the processor 201 and can display information in a variety of ways. For example, the output device 205 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 206 communicates with the processor 201 and can receive user input in a variety of ways. For example, the input device 206 can be a mouse, a keyboard, a touch screen device, or a sensor device.
[0042] The above-mentioned file mailing device 200 can be a general device or a special device. The embodiment of the present application does not limit the type of the file mailing device 200.
[0043] The following is an explanation of the file mailing method disclosed in this application:
[0044] See also Figure 3 , Figure 3 A flowchart of a method for mailing a file provided in the embodiment of the present application. The method for mailing a file comprises the following steps:
[0045] 301: Determine the storage location of the files to be mailed and the designated mailing company information based on the mailing task.
[0046] In this embodiment, the mailing task can be submitted by the applicant on his own initiative, for example, submitting a file retrieval application on a web page or applet and selecting a mailing task. Thus, the file storage device automatically triggers the mailing task upon receiving the file retrieval application. In addition, the mailing task can also be timed, for example, when the user stores files or handles file-related business, he selects a file retrieval time and selects a mailing task. Thus, when the file retrieval time is reached, the file storage device automatically triggers the mailing task.
[0047] Exemplarily, the mailing task may include the file name, the applicant's personal information, mailing address, mailing method, designated mailing company information, etc. Specifically, the user can independently select the mailing method and mailing company when setting the mailing task. Taking the above scenario of submitting a file retrieval application and selecting a mailing task on a web page or mini program as an example, after the user selects the mailing task, the file storage device will display an information filling interface to the user through the web page or mini program, and the user will submit the file name, the applicant's personal information, mailing address, mailing method, designated mailing company information, etc. to the file storage device through the interface.
[0048] Therefore, the present application provides a method for determining the storage location of the files to be mailed according to the mailing task, such as Figure 4 As shown, the method includes:
[0049] 401: According to the mailing task, determine the file name of the file to be mailed and the personal information of the applicant of the mailing task.
[0050] 402: Determine the storage area for the files to be mailed based on the applicant’s personal information.
[0051] In this embodiment, it is possible to query whether the relevant files specified by the applicant are stored in the file storage device according to the applicant information, and at the same time, quickly determine the storage area of the relevant files. Exemplarily, the file storage device can maintain a storage database in advance, in which the characteristic information of the owner of the files stored in the file storage device and the storage area of the files are stored, and these two information are interrelated. Therefore, if the characteristic information of the corresponding owner can be matched in the storage database according to the personal information of the applicant, it means that the relevant files of the applicant of the mailing task are stored in the file storage device. At the same time, according to the information of the storage area associated with the characteristic information of the owner, the storage area of the relevant files of the owner can be quickly located, thereby shortening the time to find the files to be mailed. In addition, the storage database only maintains some characteristic information and the storage area information associated with it. Therefore, the memory occupied by the storage database is relatively small, and correspondingly, the resources consumed are also relatively small.
[0052] Specifically, the applicant's personal information may include: the applicant's name and ID number. Thus, the name and ID number of the applicant can be word-embedded respectively to obtain a first word vector corresponding to the applicant's name and a second word vector corresponding to the applicant's ID number. Then, the first word vector and the second word vector are concatenated to obtain a third word vector, and then the third word vector is scrambled according to the scrambling parameters corresponding to the file storage device to obtain a fourth word vector. Finally, according to the fourth word vector, the corresponding fifth word vector is determined in the storage database, and according to the fifth word vector, the storage area of the file to be mailed is determined.
[0053] In this embodiment, the fifth word vector is the characteristic information of the owner of the archive stored in the archive storage device, and its acquisition method is similar to the third word vector, which will not be repeated here. Therefore, the storage database of the archive storage device will not directly save the identity information of the owner of the archive stored in the archive storage device, but save the scrambled information after the identity information is vectorized, so that even if the database is attacked, the security of user information can be guaranteed.
[0054] 403: Calling a camera device corresponding to the storage area to obtain an image of the storage area.
[0055] 404: Determine the storage location of the file to be mailed based on the image of the storage area and the file name.
[0056] In this embodiment, the present application provides a method for determining the storage location of the file to be mailed based on the image of the storage area and the file name, such as Figure 5 As shown, the method includes:
[0057] 501: Perform median filtering on the image in the storage area to obtain a first image.
[0058] In this embodiment, the storage area may include at least one filing cabinet, each of the at least one filing cabinet is used to store files, and a QR code uniquely corresponding to each filing cabinet is provided on the cabinet door of each filing cabinet, and the QR code records the file information of all files stored in the corresponding filing cabinet.
[0059] 502: Binarize the first image, and use a Canny operator to extract edges of the binarized first image to obtain a second image.
[0060] In this embodiment, other methods that can realize edge extraction may also be used, and this application does not limit this.
[0061] 503: extracting the outer contours of all the two-dimensional codes in the second image according to the preset topological structure of the standard contour of the two-dimensional code, so as to determine the area where all the two-dimensional codes in the second image are located.
[0062] 504: According to the areas where all the QR codes in the second image are located, each of the QR codes in the second image is parsed to obtain the file information corresponding to each QR code.
[0063] In this embodiment, since each filing cabinet can store at least one file, the file information in the QR code corresponding to each filing cabinet can be the file name of each file in the at least one file stored in the filing cabinet.
[0064] 505: Determine a target QR code among all QR codes in the second image according to the file name.
[0065] In this embodiment, the file information corresponding to the target two-dimensional code includes the file name, that is, the file to be mailed is stored in the file cabinet corresponding to the target two-dimensional code.
[0066] 506: Determine the storage location of the file to be mailed based on the target QR code.
[0067] In this embodiment, after determining the target two-dimensional code, only the approximate position of the file to be mailed in the storage area can be obtained, so further processing is required to obtain more accurate location information. Based on this, in this embodiment, the area of the target two-dimensional code in the second image can be determined, and then combined with the internal parameters of the camera device and the actual area of the two-dimensional code, the distance of the filing cabinet corresponding to the target two-dimensional code from the camera device can be determined. Then, based on the shooting angle of the camera device and the distance of the filing cabinet corresponding to the target two-dimensional code from the camera device, the coordinates of the filing cabinet corresponding to the target two-dimensional code in the first coordinate system are determined, wherein the first coordinate system is a spatial coordinate system established with the camera device as the origin. Thus, the coordinates of the filing cabinet corresponding to the target two-dimensional code in the first coordinate system can be used as the storage location of the file to be mailed.
[0068] 302: According to the storage location of the file to be mailed, obtain the file owner information of the file to be mailed.
[0069] In this embodiment, the file owner information is used to identify the information of the owner of the file to be stored. For example, if the file is Zhang San's work experience file, the owner of the file should be Zhang San, the experiencer described in the file, and the file owner information is Zhang San's personal information.
[0070] 303: When the applicant of the mailing task is determined to be legitimate based on the file holder information, a voucher code is sent to the corresponding mailing company based on the designated mailing company information, and the pickup person information returned by the mailing company is received.
[0071] In the implementation method of this city, before mailing, it is necessary to confirm that the applicant of the mailing task is legitimate, that is, to confirm that the applicant of the mailing task and the archivist of the file to be mailed are the same person, so as to ensure the security of the file and the privacy of the archivist.
[0072] Specifically, according to the mailing task, a request message can be sent to the communication account of the applicant reserved in the mailing task, wherein the request message is used to request the applicant's biometric information, such as facial image, fingerprint information, voice information, etc. Then, according to the file holder information, the pre-stored biometric information of the file holder is obtained. Then, the applicant's biometric information is compared with the file holder's biometric information to obtain the similarity. When the similarity is greater than the threshold, it can be determined that the applicant of the mailing task is legitimate.
[0073] In this embodiment, after confirming that the applicant of the mailing task is legitimate, a unique voucher code can be generated for the mailing task. The voucher code can be a digital code or a QR code. Thus, the mailing company can obtain the location of the file storage device and the mailing request with the voucher code. At the same time, the voucher code does not contain information related to the mailing task. Therefore, even if the voucher code is intercepted midway, the relevant information will not be leaked, ensuring the information security of the mailing task and the applicant.
[0074] In this embodiment, after receiving the voucher code, the mailing company can send the mailing request to the pickup person near the location of the file storage device according to the location of the file storage device in the voucher code, and at the same time, feed back the pickup person information of the pickup person to the file storage device. The pickup person information may include the name, facial image, fingerprint information, voice information, etc. of the pickup person.
[0075] 304: receiving a pickup request submitted by a pickup person, and when determining that the pickup person is legitimate, generating a pickup route according to the pickup request, and displaying the pickup route to the pickup person.
[0076] In this embodiment, after the pickup arrives at the file storage device, the pickup can present the voucher code to the scanning device of the file storage device, or input the voucher code through the display device of the file storage device to activate the mailing task. After the mailing task is activated, the file storage device will retrieve the received pickup information according to the voucher code and verify the legitimacy of the pickup. The specific verification method is similar to the method for determining the legitimacy of the applicant of the mailing task in step 303, and will not be repeated here.
[0077] In this embodiment, after the pickup is determined, the storage location of the archives to be mailed is determined according to the activated mailing task, and then the internal map of the indoor space where the corresponding archive storage device is located is obtained according to the storage location of the archives to be mailed. Then, according to the internal map, the path information of the traversable path in the internal map is determined. Finally, according to the path information and the storage location of the archives to be mailed, a pickup route is generated, wherein the pickup route is limited to the range indicated by the path information of the traversable path. After the interval route is generated, it can be displayed to the pickup through the display device, and at the same time, a QR code containing the mailing information is generated, so that the pickup can take the archives to be mailed according to the pickup route, and obtain the mailing information by scanning the QR code, thereby completing the mailing.
[0078] In an optional implementation, the pickup route can be integrated into a QR code containing mailing information. After the pickup person reads the QR code through a terminal device carried by him, he can see the corresponding pickup route and mailing information on the terminal device. At the same time, the file storage device will send the pickup person's facial image to the camera device in the storage area of the files to be mailed. When the pickup person reaches the corresponding area, the camera device obtains the pickup person's facial image. After the comparison is correct, the lock of the storage location is automatically opened, so that the pickup person can smoothly take away the files to be mailed.
[0079] In summary, in the file mailing method provided by the present invention, the storage location of the file to be mailed and the information of the designated mailing company are determined through the mailing task, and then the file holder information of the file to be mailed is obtained through the storage location of the file to be mailed, so as to complete the legitimacy check of the applicant of the mailing task. After the inspection is completed, the voucher code is sent to the corresponding mailing company according to the designated mailing company information, and the pickup information returned by the mailing company is received. Finally, according to the pickup request submitted by the pickup, the legitimacy check of the pickup is completed, and the pickup route is generated and displayed to the pickup, so that the pickup can take the file to be mailed according to the pickup route and complete the mailing. In this way, the remote mailing or automatic mailing of the deposited files is realized, and the user does not need to be present in person, but only needs to submit the corresponding mailing task remotely or in advance to realize the mailing of the deposited files, thereby improving the handling efficiency and user experience.
[0080] See also Figure 6 , Figure 6 This is a functional module block diagram of a file mailing device provided in the embodiment of the present application. Figure 6 As shown, the file mailing device 600 includes:
[0081] Positioning module 601, used to determine the storage location of the files to be mailed and the designated mailing company information according to the mailing task;
[0082] The verification module 602 is used to obtain the file owner information of the file to be mailed according to the storage location of the file to be mailed, wherein the file owner information is used to identify the information of the owner of the file to be stored; and when it is determined that the applicant of the mailing task is legitimate according to the file owner information, send a voucher code to the corresponding mailing company according to the designated mailing company information, and receive the pickup information returned by the mailing company;
[0083] The display module 603 is used to receive the pickup request submitted by the pickup person, and when it is determined that the pickup person is legitimate, generate a pickup route according to the pickup request and display the pickup route to the pickup person so that the pickup person can take the files to be mailed according to the pickup route and complete the mailing.
[0084] In the embodiment of the present invention, in determining the storage location of the to-be-mailed archive according to the mailing task, the positioning module 601 is specifically used to:
[0085] According to the mailing task, determine the file name of the file to be mailed and the personal information of the applicant of the mailing task;
[0086] Determine the storage area for the files to be mailed based on the applicant's personal information;
[0087] Calling a camera device corresponding to the storage area to obtain an image of the storage area;
[0088] Determine the storage location of the files to be mailed based on the image of the storage area and the name of the files.
[0089] In the implementation manner of the present invention, the personal information of the applicant includes: the name and ID number of the applicant.
[0090] Based on this, in terms of determining the storage area of the files to be mailed according to the personal information of the applicant, the positioning module 601 is specifically used to:
[0091] The name and ID number of the applicant are word-embedded respectively to obtain a first word vector corresponding to the name of the applicant and a second word vector corresponding to the ID number of the applicant;
[0092] Concatenate the first word vector and the second word vector to obtain the third word vector;
[0093] Scrambling the third word vector according to the scrambling parameter corresponding to the file storage device to obtain a fourth word vector;
[0094] Based on the fourth word vector, the corresponding fifth word vector is determined in the storage database, and based on the fifth word vector, the storage area for the files to be mailed is determined.
[0095] In the embodiment of the present invention, in determining the storage location of the to-be-mailed file according to the image of the storage area and the file name, the positioning module 601 is specifically used to:
[0096] Performing median filtering on an image of a storage area to obtain a first image, wherein the storage area includes at least one filing cabinet, each of the at least one filing cabinet is used to store files, and a two-dimensional code uniquely corresponding to each filing cabinet is set on a cabinet door of each filing cabinet, and the two-dimensional code records the file information of all files stored in the corresponding filing cabinet;
[0097] Binarizing the first image, and using a Canny operator to extract edges of the binarized first image to obtain a second image;
[0098] According to the topological structure of the preset standard outline of the two-dimensional code, in the second image, the outer outlines of all the two-dimensional codes are extracted to determine the area where all the two-dimensional codes in the second image are located;
[0099] According to the area where all the QR codes in the second image are located, each of the QR codes in the second image is parsed to obtain the archive information corresponding to each QR code;
[0100] According to the file name, determining a target QR code among all QR codes in the second image, wherein the file information corresponding to the target QR code includes the file name;
[0101] Determine the storage location of the files to be mailed based on the target QR code.
[0102] In the embodiment of the present invention, in determining the storage location of the file to be mailed according to the target two-dimensional code, the positioning module 601 is specifically used to:
[0103] Determine the area of the target two-dimensional code in the second image;
[0104] Determine the distance between the filing cabinet corresponding to the target two-dimensional code and the camera device according to the internal parameters of the camera device, the actual area of the two-dimensional code, and the area of the target two-dimensional code in the second image;
[0105] Obtaining a shooting angle of a camera device;
[0106] Determine the coordinates of the filing cabinet corresponding to the target QR code in a first coordinate system according to the shooting angle of the camera device and the distance between the filing cabinet corresponding to the target QR code and the camera device, wherein the first coordinate system is a spatial coordinate system established with the camera device as the origin;
[0107] The storage location of the files to be mailed is determined according to the coordinates of the filing cabinet corresponding to the target QR code in the first coordinate system.
[0108] In the embodiment of the present invention, in determining the legitimacy of the applicant of the mailing task according to the file person information, the inspection module 602 is specifically used to:
[0109] According to the mailing task, a request message is sent to the communication account of the applicant reserved in the mailing task, wherein the request message is used to request to obtain the biometric information of the applicant;
[0110] According to the file holder information, obtain the pre-stored biometric information of the file holder;
[0111] Compare the applicant's biometric information with the file holder's biometric information to obtain similarity;
[0112] When the similarity is greater than the threshold, it is determined that the applicant for the mailing task is legitimate.
[0113] In the embodiment of the present invention, in terms of generating a pickup route according to a pickup request, the display module 603 is specifically used to:
[0114] Determine the storage location of the files to be mailed based on the pickup request;
[0115] Obtaining an internal map of the indoor space where the archive storage device corresponding to the storage location of the archive to be mailed is located;
[0116] According to the internal map, path information of the traversable path in the internal map is determined;
[0117] A pickup route is generated based on the path information and the storage location of the files to be mailed, wherein the pickup route is limited to the range identified by the path information of the walkable path.
[0118] See also Figure 7 , Figure 7 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device 700 is set in the first tenant system. Figure 7 As shown, the electronic device 700 includes a transceiver 701, a processor 702 and a memory 703. They are connected via a bus 704. The memory 703 is used to store computer programs and data, and can transmit the data stored in the memory 703 to the processor 702.
[0119] The processor 702 is used to read the computer program in the memory 703 and perform the following operations:
[0120] Determine the storage location of the files to be mailed and the designated mailing company information according to the mailing task;
[0121] According to the storage location of the files to be mailed, the information of the file owner of the files to be mailed is obtained, wherein the information of the file owner is used to identify the information of the owner of the files to be stored;
[0122] When the applicant of the mailing task is determined to be legitimate based on the file holder information, the voucher code is sent to the corresponding mailing company based on the designated mailing company information, and the pickup person information returned by the mailing company is received;
[0123] Receive the pickup request submitted by the pickup person, and when it is determined that the pickup person is legitimate, generate a pickup route based on the pickup request, and show the pickup route to the pickup person so that the pickup person can pick up the files to be mailed according to the pickup route and complete the mailing.
[0124] In the embodiment of the present invention, in determining the storage location of the to-be-mailed file according to the mailing task, the processor 702 is specifically configured to perform the following operations:
[0125] According to the mailing task, determine the file name of the file to be mailed and the personal information of the applicant of the mailing task;
[0126] Determine the storage area for the files to be mailed based on the applicant's personal information;
[0127] Calling a camera device corresponding to the storage area to obtain an image of the storage area;
[0128] Determine the storage location of the files to be mailed based on the image of the storage area and the name of the files.
[0129] In the implementation manner of the present invention, the personal information of the applicant includes: the name and ID number of the applicant.
[0130] Based on this, in terms of determining the storage area for the files to be mailed according to the applicant's personal information, the processor 702 is specifically configured to perform the following operations:
[0131] The name and ID number of the applicant are word-embedded respectively to obtain a first word vector corresponding to the name of the applicant and a second word vector corresponding to the ID number of the applicant;
[0132] Concatenate the first word vector and the second word vector to obtain the third word vector;
[0133] Scrambling the third word vector according to the scrambling parameter corresponding to the file storage device to obtain a fourth word vector;
[0134] Based on the fourth word vector, the corresponding fifth word vector is determined in the storage database, and based on the fifth word vector, the storage area for the files to be mailed is determined.
[0135] In the embodiment of the present invention, in determining the storage location of the to-be-mailed file according to the image of the storage area and the file name, the processor 702 is specifically configured to perform the following operations:
[0136] Performing median filtering on an image of a storage area to obtain a first image, wherein the storage area includes at least one filing cabinet, each of the at least one filing cabinet is used to store files, and a two-dimensional code uniquely corresponding to each filing cabinet is set on a cabinet door of each filing cabinet, and the two-dimensional code records the file information of all files stored in the corresponding filing cabinet;
[0137] Binarizing the first image, and using a Canny operator to extract edges of the binarized first image to obtain a second image;
[0138] According to the topological structure of the preset standard outline of the two-dimensional code, in the second image, the outer outlines of all the two-dimensional codes are extracted to determine the area where all the two-dimensional codes in the second image are located;
[0139] According to the area where all the QR codes in the second image are located, each of the QR codes in the second image is parsed to obtain the archive information corresponding to each QR code;
[0140] According to the file name, determining a target QR code among all QR codes in the second image, wherein the file information corresponding to the target QR code includes the file name;
[0141] Determine the storage location of the files to be mailed based on the target QR code.
[0142] In the embodiment of the present invention, in determining the storage location of the file to be mailed according to the target QR code, the processor 702 is specifically configured to perform the following operations:
[0143] Determine the area of the target two-dimensional code in the second image;
[0144] Determine the distance between the filing cabinet corresponding to the target two-dimensional code and the camera device according to the internal parameters of the camera device, the actual area of the two-dimensional code, and the area of the target two-dimensional code in the second image;
[0145] Obtaining a shooting angle of a camera device;
[0146] Determine the coordinates of the filing cabinet corresponding to the target QR code in a first coordinate system according to the shooting angle of the camera device and the distance between the filing cabinet corresponding to the target QR code and the camera device, wherein the first coordinate system is a spatial coordinate system established with the camera device as the origin;
[0147] The storage location of the files to be mailed is determined according to the coordinates of the filing cabinet corresponding to the target QR code in the first coordinate system.
[0148] In the embodiment of the present invention, in determining the legitimacy of the applicant of the mailing task according to the file person information, the processor 702 is specifically used to perform the following operations:
[0149] According to the mailing task, a request message is sent to the communication account of the applicant reserved in the mailing task, wherein the request message is used to request to obtain the biometric information of the applicant;
[0150] According to the file holder information, obtain the pre-stored biometric information of the file holder;
[0151] Compare the applicant's biometric information with the file holder's biometric information to obtain similarity;
[0152] When the similarity is greater than the threshold, it is determined that the applicant for the mailing task is legitimate.
[0153] In the embodiment of the present invention, in terms of generating a pickup route according to a pickup request, the processor 702 is specifically configured to perform the following operations:
[0154] Determine the storage location of the files to be mailed based on the pickup request;
[0155] Obtaining an internal map of the indoor space where the archive storage device corresponding to the storage location of the archive to be mailed is located;
[0156] According to the internal map, path information of the traversable path in the internal map is determined;
[0157] A pickup route is generated based on the path information and the storage location of the files to be mailed, wherein the pickup route is limited to the range identified by the path information of the walkable path.
[0158] It should be understood that the file mailing device in the present application may include a smart phone (such as an Android phone, an iOS phone, a Windows Phone phone, etc.), a tablet computer, a PDA, a laptop computer, a mobile Internet device MID (Mobile Internet Devices, MID for short), a robot or a wearable device, etc. The above-mentioned file mailing device is only an example, not an exhaustive list, including but not limited to the above-mentioned file mailing device. In actual applications, the above-mentioned file mailing device may also include: a smart vehicle terminal, a computer device, etc.
[0159] Through the description of the above implementation modes, those skilled in the art can clearly understand that the present invention can be implemented by combining software with a hardware platform. Based on such an understanding, all or part of the contribution of the technical solution of the present invention to the background technology can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation modes of the present invention or some parts of the implementation modes.
[0160] Therefore, the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement some or all steps of any one of the file mailing methods described in the above method implementation. For example, the storage medium may include a hard disk, a floppy disk, an optical disk, a tape, a disk, a USB flash drive, a flash memory, etc.
[0161] The embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any one of the archive mailing methods recorded in the above method implementation.
[0162] It should be noted that, for the sake of simplicity, the aforementioned method implementations are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the implementations described in the specification are all optional implementations, and the actions and modules involved are not necessarily required by the present application.
[0163] In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0164] In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device implementation described above is only schematic, such as the division of the units, which is only a logical function division. 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, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0165] 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 present embodiment.
[0166] In addition, each functional unit in each embodiment of the present application 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 integrated unit may be implemented in the form of hardware or in the form of a software program module.
[0167] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, 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, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0168] A person skilled in the art may understand that all or part of the steps in the various methods of the above-mentioned embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0169] The above is a detailed introduction to the implementation methods of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above implementation methods is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for mailing files, characterized in that: The method comprises: Determine the storage location of the files to be mailed and the designated mailing company information according to the mailing task; According to the storage location of the file to be mailed, the file owner information of the file to be mailed is obtained, wherein the file owner information is used to identify the information of the owner of the file to be stored; When it is determined that the applicant of the mailing task is legitimate according to the file holder information, a voucher code is sent to the corresponding mailing company according to the designated mailing company information, and the pickup person information returned by the mailing company is received; Receive the pickup request submitted by the pickup person, and when determining that the pickup person is legitimate, generate a pickup route according to the pickup request, and show the pickup route to the pickup person, so that the pickup person can take the file to be mailed according to the pickup route to complete the mailing; Wherein, determining the storage location of the files to be mailed according to the mailing task includes: According to the mailing task, determine the file name of the file to be mailed and the personal information of the applicant of the mailing task; Determine the storage area for the files to be mailed based on the personal information of the applicant; Invoking a camera device corresponding to the storage area to obtain an image of the storage area; Performing median filtering on the image of the storage area to obtain a first image, wherein the storage area includes at least one filing cabinet, each of the at least one filing cabinet is used to store files, and a two-dimensional code uniquely corresponding to each filing cabinet is set on the cabinet door of each filing cabinet, and the two-dimensional code records the file information of all files stored in the corresponding filing cabinet; Binarizing the first image, and using a Canny operator to perform edge extraction on the binarized first image to obtain a second image; According to the topological structure of the preset standard outline of the two-dimensional code, in the second image, the outer outlines of all the two-dimensional codes are extracted to determine the area where all the two-dimensional codes in the second image are located; According to the area where all the two-dimensional codes in the second image are located, each of the two-dimensional codes in the second image is parsed to obtain the archive information corresponding to each of the two-dimensional codes; According to the file name, determining a target two-dimensional code among all the two-dimensional codes in the second image, wherein the file information corresponding to the target two-dimensional code includes the file name; Determining the area of the target two-dimensional code in the second image; Determine the distance between the filing cabinet corresponding to the target two-dimensional code and the camera device according to the internal parameters of the camera device, the actual area of the two-dimensional code, and the area of the target two-dimensional code in the second image; Acquire the shooting angle of the camera device; Determine the coordinates of the filing cabinet corresponding to the target QR code in a first coordinate system according to the shooting angle of the camera device and the distance between the filing cabinet corresponding to the target QR code and the camera device, wherein the first coordinate system is a spatial coordinate system established with the camera device as the origin; The storage location of the file to be mailed is determined according to the coordinates of the filing cabinet corresponding to the target QR code in the first coordinate system.
2. The method according to claim 1, characterized in that The applicant’s personal information includes: the applicant’s name and ID number; Determining the storage area of the to-be-mailed files based on the applicant's personal information includes: Performing word embedding on the name and ID card number of the applicant respectively to obtain a first word vector corresponding to the name of the applicant and a second word vector corresponding to the ID card number of the applicant; Concatenate the first word vector and the second word vector to obtain a third word vector; Scrambling the third word vector according to the scrambling parameter corresponding to the file storage device to obtain a fourth word vector; Based on the fourth word vector, a corresponding fifth word vector is determined in the storage database, and based on the fifth word vector, a storage area for the archive to be mailed is determined.
3. The method according to claim 1, characterized in that Determining the legitimacy of the applicant of the mailing task according to the file holder information includes: According to the mailing task, sending a request message to the communication account of the applicant reserved in the mailing task, wherein the request message is used to request to obtain the biometric information of the applicant; According to the file holder information, obtaining the pre-stored biometric information of the file holder; Comparing the biometric information of the applicant with the biometric information of the file holder to obtain similarity; When the similarity is greater than a threshold, it is determined that the applicant for the mailing task is legitimate.
4. The method according to claim 1, characterized in that: Generating a pickup route according to the pickup request includes: Determine the storage location of the archive to be mailed according to the pickup request; Obtaining an internal map of the indoor space where the archive storage device corresponding to the storage location of the archive to be mailed is located; Determining path information of a traversable path in the internal map according to the internal map; The pickup route is generated according to the path information and the storage location of the archive to be mailed, wherein the pickup route is limited to the range identified by the path information of the walkable path.
5. A file mailing device, characterized in that: The device comprises: The positioning module is used to determine the storage location of the files to be mailed and the designated mailing company information according to the mailing task; The verification module is used to obtain the file owner information of the file to be mailed according to the storage location of the file to be mailed, wherein the file owner information is used to identify the information of the owner of the file to be stored; and when it is determined that the applicant of the mailing task is legitimate according to the file owner information, send a voucher code to the corresponding mailing company according to the designated mailing company information, and receive the pickup information returned by the mailing company; A display module is used to receive the pickup request submitted by the pickup worker, and when it is determined that the pickup worker is legitimate, generate a pickup route according to the pickup request, and display the pickup route to the pickup worker, so that the pickup worker can take the files to be mailed according to the pickup route to complete the mailing; Wherein, in determining the storage location of the archive to be mailed according to the mailing task, the positioning module is used to: According to the mailing task, determine the file name of the file to be mailed and the personal information of the applicant of the mailing task; Determine the storage area for the files to be mailed based on the personal information of the applicant; Invoking a camera device corresponding to the storage area to obtain an image of the storage area; Performing median filtering on the image of the storage area to obtain a first image, wherein the storage area includes at least one filing cabinet, each of the at least one filing cabinet is used to store files, and a two-dimensional code uniquely corresponding to each filing cabinet is set on the cabinet door of each filing cabinet, and the two-dimensional code records the file information of all files stored in the corresponding filing cabinet; Binarizing the first image, and using a Canny operator to perform edge extraction on the binarized first image to obtain a second image; According to the topological structure of the preset standard outline of the two-dimensional code, in the second image, the outer outlines of all the two-dimensional codes are extracted to determine the area where all the two-dimensional codes in the second image are located; According to the area where all the two-dimensional codes in the second image are located, each of the two-dimensional codes in the second image is parsed to obtain the archive information corresponding to each of the two-dimensional codes; According to the file name, determining a target two-dimensional code among all the two-dimensional codes in the second image, wherein the file information corresponding to the target two-dimensional code includes the file name; Determining the area of the target two-dimensional code in the second image; Determine the distance between the filing cabinet corresponding to the target two-dimensional code and the camera device according to the internal parameters of the camera device, the actual area of the two-dimensional code, and the area of the target two-dimensional code in the second image; Acquire the shooting angle of the camera device; Determine the coordinates of the filing cabinet corresponding to the target QR code in a first coordinate system according to the shooting angle of the camera device and the distance between the filing cabinet corresponding to the target QR code and the camera device, wherein the first coordinate system is a spatial coordinate system established with the camera device as the origin; The storage location of the file to be mailed is determined according to the coordinates of the filing cabinet corresponding to the target QR code in the first coordinate system.
6. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for executing the steps in any one of the methods of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Online intelligent application method and system for mailing logistics parcel
CN108846604A
File processing method, device and equipment based on RFID and storage medium
CN113127899A