NFC access control card switching method, device and equipment and storage medium

By using cloud matching technology in the NFC access control card system, the access control card is automatically switched according to geographical location and image matching, the problem of NFC access control card errors in electronic devices is solved, and the swiping efficiency and user experience are improved.

CN119516658APending Publication Date: 2025-02-25PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411534040.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

When multiple NFC access control cards are bound to the same electronic device, when the electronic device is close to the access control device, it is usually read the first NFC access control card bound by the user, rather than the NFC matching the current access control device. Access control cards cause users to actively choose matching NFC access control cards. The process is cumbersome and the error rate is high, which reduces the efficiency and user experience of NFC access control cards.

Method used

By responding to the presence of a second image (historical image) in the cloud that matches the current geographical location of the user's card swiping, and the matching second image is consistent with the first image currently captured by the electronic device, the NFC access control card for the access control device to read is switched by the NFC access control card for the access control device to read by the access control device, and the matching second image is consistent with the first image currently taken by the electronic device. An NFC access card that matches the current geographical location of the user's card swiping.

Benefits of technology

It improves the matching accuracy and swipe efficiency of NFC access control cards, reduces user operation steps and error rates, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516658A_ABST
    Figure CN119516658A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an NFC access control card switching method, device and equipment and a storage medium, and the method comprises the following steps: responding to an NFC card reading request sent by access control equipment, controlling a shooting device of electronic equipment to shoot the access control equipment to obtain a first image, and obtaining a first geographic position of the electronic equipment; and responding to a second image matched with the first geographic position in the cloud and the matched second image is consistent with the first image, switching the NFC access control card read by the access control equipment to the NFC access control card matched with the first geographic position, the second image being acquired by the electronic equipment when the NFC access control card is successfully swiped by the access control equipment and being uploaded to the cloud. According to the method, the matching accuracy and the swiping efficiency of the NFC access control card are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of near-field images, and in particular to an NFC access card switching method, device, equipment and storage medium. Background Art

[0002] Near Field Communication (NFC) access control card simulates an electronic device with NFC function into a contactless card, which is used to enter and exit residential areas, subways, offices, etc. Users only need to bring the electronic device with NFC function close to the access control device, and the access control device will read the NFC access control card to perform identity authentication and deduction, etc. However, when multiple NFC access control cards are bound to the same electronic device, when the electronic device is close to the access control device, the NFC access control card that can be read in the electronic device is usually the first NFC access control card bound by the user, rather than the NFC access control card that matches the current access control device. The user needs to actively select a matching NFC access control card from multiple NFC access control cards for the access control device to swipe, which is very troublesome and has a high error rate, resulting in low NFC access control card swiping efficiency and poor user experience. Summary of the invention

[0003] The embodiments of the present application provide an NFC access control card switching method, device, equipment and storage medium, aiming to improve the matching accuracy and swiping efficiency of NFC access control cards.

[0004] In a first aspect, an embodiment of the present application provides an NFC access card switching method, comprising:

[0005] In response to an NFC card reading request sent by a door access control device, controlling a photographing device of an electronic device to photograph the door access control device to obtain a first image and acquire a first geographic location of the electronic device;

[0006] In response to the existence of a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image, the NFC access card for reading by the access control device is switched to an NFC access card matching the first geographic location, and the second image is obtained and uploaded to the cloud by the electronic device when an NFC access card is successfully swiped by the access control device.

[0007] In some embodiments, the response cloud contains a second image matching the first geographic location, and the matching second image is consistent with the first image, and switching the NFC access card for reading by the access control device to the NFC access card matching the first geographic location includes:

[0008] Sending the first geographic location to the cloud, so that the cloud responds to the presence of a second image matching the first geographic location in the stored plurality of second images and sends the matching second image to the electronic device;

[0009] In response to receiving the matching second image returned by the electronic device based on the first geographic location, and the matching second image is consistent with the first image, the NFC access control card for reading by the access control device is switched to an NFC access control card matching the first geographic location.

[0010] In some embodiments, the response cloud contains a second image matching the first geographic location, and the matching second image is consistent with the first image, and switching the NFC access card for reading by the access control device to the NFC access card matching the first geographic location includes:

[0011] Sending the first geographic location and the first image to the cloud, so that the cloud, in response to the presence of a second image matching the first geographic location among the plurality of stored second images, and the matching second image is consistent with the first image, sends preset indication information to the electronic device, the preset indication information being used to indicate that there is a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image;

[0012] In response to receiving the preset indication information returned by the cloud, the NFC access control card for reading by the access control device is switched to an NFC access control card matching the first geographical location.

[0013] In some embodiments, the method further comprises:

[0014] In response to the absence of a second image matching the first geographic location in the cloud, displaying a plurality of NFC access control cards;

[0015] In response to a user's selection operation of one of the multiple NFC access control cards, the NFC access control card for the access control device to read is switched to the selected one NFC access control card.

[0016] In some embodiments, the method further comprises:

[0017] In response to the presence of a second image matching the first geographic location in the cloud, and the matching second image being inconsistent with the first image, displaying a plurality of NFC access control cards;

[0018] In response to a user's selection operation of one of the multiple NFC access control cards, the NFC access control card for the access control device to read is switched to the selected one NFC access control card.

[0019] In some embodiments, the method further comprises:

[0020] In response to receiving first indication information sent by the access control device, displaying multiple NFC access control cards, wherein the first indication information is used to indicate that a swipe of an NFC access control card matching the first geographical location fails;

[0021] In response to a user's selection operation of one of the multiple NFC access control cards, the NFC access control card for the access control device to read is switched to the selected one NFC access control card.

[0022] In some embodiments, after the NFC access control card to be read by the access control device is switched to the selected NFC access control card in response to the user's selection operation of the NFC access control card among the multiple NFC access control cards, the method further includes:

[0023] In response to receiving the second indication information sent by the access control device, controlling the photographing device of the electronic device to photograph the access control device to obtain a second image and acquire a second geographical location of the electronic device, wherein the second indication information is used to indicate that the selected NFC access control card has been successfully swiped;

[0024] The second image and the second geographic location are uploaded to the cloud for storage, and the second geographic location is bound to the selected NFC access control card.

[0025] In a second aspect, an embodiment of the present application further provides an NFC access card switching device, the NFC access card switching device comprising:

[0026] An information acquisition module, configured to respond to an NFC card reading request sent by an access control device, control a photographing device of an electronic device to photograph the access control device, obtain a first image, and obtain a first geographic location of the electronic device;

[0027] An access card switching module is used to respond to the presence of a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image, and switch the NFC access card for reading by the access control device to an NFC access card matching the first geographic location. The second image is obtained by the electronic device and uploaded to the cloud when an NFC access card is successfully swiped by the access control device.

[0028] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the NFC access card switching method as described in the first aspect is implemented.

[0029] In a fourth aspect, an embodiment of the present application further provides a storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the NFC access card switching method as described in the first aspect is implemented.

[0030] The embodiments of the present application provide an NFC access control card switching method, apparatus, device and storage medium. The embodiments of the present application, in response to the existence of a second image (historical image) in the cloud that matches the current geographic location of the user swiping the card, and the matching second image is consistent with the first image currently taken by the electronic device, switches the NFC access control card for reading by the access control device to an NFC access control card that matches the current geographic location of the user swiping the card, thereby improving the matching accuracy and swiping efficiency of the NFC access control card. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0032] Figure 1 It is a flowchart of an NFC access card switching method provided in an embodiment of the present application;

[0033] Figure 2 It is a flowchart of another NFC access card switching method provided in an embodiment of the present application;

[0034] Figure 3 This is a flow chart of another NFC access card switching method provided in an embodiment of the present application.

[0035] Figure 4 It is a flowchart of another NFC access card switching method provided in an embodiment of the present application;

[0036] Figure 5 It is a flowchart of another NFC access card switching method provided in an embodiment of the present application;

[0037] Figure 6 is a schematic block diagram of an NFC access card switching device provided in an embodiment of the present application;

[0038] Figure 7It is a schematic block diagram of the structure of an electronic device provided in an embodiment of the present application.

[0039] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0040] 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.

[0041] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0042] Near Field Communication (NFC) access control card simulates an electronic device with NFC function into a contactless card, which is used to enter and exit residential areas, subways, offices, etc. Users only need to bring the electronic device with NFC function close to the access control device, and the access control device will read the NFC access control card to perform identity authentication and deduction, etc. However, when multiple NFC access control cards are bound to the same electronic device, when the electronic device is close to the access control device, the NFC access control card that can be read in the electronic device is usually the first NFC access control card bound by the user, rather than the NFC access control card that matches the current access control device. The user needs to actively select a matching NFC access control card from multiple NFC access control cards for the access control device to swipe, which is very troublesome and has a high error rate, resulting in low NFC access control card swiping efficiency and poor user experience.

[0043] To solve the above problems, the embodiments of the present application provide an NFC access control card switching method, device, electronic device and storage medium. The method switches the NFC access control card read by the access control device to an NFC access control card that matches the current geographical location of the user swiping the card in response to the presence of a second image (historical image) in the cloud that matches the current geographical location of the user swiping the card, and the matching second image is consistent with the first image currently captured by the electronic device, thereby improving the matching accuracy of the NFC access control card and making the access control device more efficient in swiping the NFC access control card. Among them, the NFC access control card switching method can be applied to electronic devices, which may include mobile phones, tablet computers, laptops, desktop computers, personal digital assistants, wearable devices, etc.

[0044] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0045] See also Figure 1 , Figure 1 It is a flow chart of an NFC access card switching method provided in an embodiment of the present application.

[0046] like Figure 1 As shown, the NFC access card switching method includes steps S101 to S102.

[0047] Step S101: respond to an NFC card reading request sent by a door access control device, control a photographing device of an electronic device to photograph the door access control device, obtain a first image, and acquire a first geographic location of the electronic device.

[0048] In this embodiment, the access control device is a device used in places where access to and from personnel needs to be controlled, which can improve security and management efficiency. Among them, the place may include residential areas, office buildings, factories, campuses, hospitals, financial institutions, data centers, hotel apartments, libraries, museums, stadiums, government agencies, airports, stations, subway stations, etc. The access control device includes an NFC reader. After the NFC function of the electronic device is turned on, when the electronic device is close to the NFC reader in the access control device, the access control device sends an NFC card reading request to the NFC module of the electronic device through the NFC reader.

[0049] In some embodiments, obtaining the first geographic location of the electronic device includes: obtaining the current geographic location of the electronic device through a positioning device in the electronic device, and determining the current geographic location of the electronic device as the first geographic location. The positioning device may include a positioning device based on the Global Positioning System (GPS), a positioning device based on the Beidou satellite navigation system, or a positioning device based on the Galileo satellite positioning system.

[0050] In some embodiments, the camera includes a wide-angle camera or a panoramic camera. The field of view of the wide-angle camera is greater than or equal to 100°, and the field of view of the panoramic camera is greater than or equal to 180°. In this embodiment, the wide-angle camera or the panoramic camera is used to shoot the access control device, which can ensure that the image captured can only cover the access control device, which is convenient for subsequent comparison and improves the image comparison accuracy of the access control device.

[0051] In some embodiments, controlling a camera of an electronic device to photograph the access control device to obtain a first image includes: adjusting the focal length of the camera to a minimum focal length, and after the focal length of the camera has been adjusted to the minimum focal length, controlling the camera of the electronic device to photograph the access control device to obtain the first image. In this embodiment, by controlling the camera of the electronic device to photograph the access control device after the focal length of the camera has been adjusted to the minimum focal length, it is ensured that the image obtained by the photographing can only cover the access control device as much as possible, which is convenient for subsequent comparison and improves the accuracy of image comparison of the access control device.

[0052] In some embodiments, the shooting device includes a wide-angle shooting device or a panoramic shooting device, and controlling the shooting device of the electronic device to shoot the access control device, and obtaining the first image includes: adjusting the focal length of the wide-angle shooting device or the panoramic shooting device to the minimum focal length, and after the focal length of the wide-angle shooting device or the panoramic shooting device has been adjusted to the minimum focal length, controlling the wide-angle shooting device or the panoramic shooting device of the electronic device to shoot the access control device to obtain the first image. This embodiment can ensure that the image obtained by shooting can only cover the access control device, which is convenient for subsequent comparison, and effectively improves the image comparison accuracy of the access control device.

[0053] Step S102, in response to the presence of a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image, the NFC access card for reading by the access control device is switched to an NFC access card matching the first geographic location, and the second image is obtained and uploaded to the cloud by the electronic device when the NFC access card is successfully swiped by the access control device.

[0054] This embodiment responds to the existence of a second image (historical image) in the cloud that matches the current geographic location of the user swiping the card, and the matching second image is consistent with the first image currently taken by the electronic device, and switches the NFC access control card for reading by the access control device to an NFC access control card that matches the current geographic location of the user swiping the card, thereby improving the matching accuracy and swiping efficiency of the NFC access control card.

[0055] In some embodiments, in response to the presence of a second image matching a first geographic location in the cloud, and the matching second image being consistent with the first image, switching the NFC access control card for reading by the access control device to an NFC access control card matching the first geographic location includes: sending the first geographic location to the cloud, for the cloud to respond to the presence of a second image matching the first geographic location among multiple second images stored in the cloud, and sending the matching second image to the electronic device; in response to receiving the matching second image returned by the electronic device based on the first geographic location, and the matching second image being consistent with the first image, switching the NFC access control card for reading by the access control device to an NFC access control card matching the first geographic location.

[0056] In some embodiments, the method further includes: the cloud or electronic device determines the similarity between the matched second image and the first image, and when the similarity is greater than or equal to the preset similarity, determines that the matched second image is consistent with the first image, and when the similarity is less than the preset similarity, determines that the matched second image is inconsistent with the first image. The preset similarity can be set based on actual conditions, and this embodiment does not specifically limit this. For example, the preset similarity is any similarity between 80% and 100%.

[0057] In some embodiments, the method further includes: determining in the cloud the distance between the second geographic location corresponding to each of the plurality of second images stored and the first geographic location; when at least one such distance is less than or equal to a preset distance, determining that there is a second image matching the first geographic location in the cloud, and determining the second image corresponding to the distance less than or equal to the preset distance as the second image matching the first geographic location; when multiple such distances are greater than the preset distance, determining that there is no second image matching the first geographic location in the cloud. The preset distance can be set based on actual conditions, and this embodiment does not specifically limit this.

[0058] In some embodiments, in response to the presence of a second image matching a first geographic location in the cloud, and the matching second image is consistent with the first image, switching the NFC access control card for reading by the access control device to the NFC access control card matching the first geographic location includes: sending the first geographic location and the first image to the cloud, so that the cloud responds that there is a second image matching the first geographic location among the plurality of second images stored, and the matching second image is consistent with the first image, sending preset indication information to the electronic device, the preset indication information is used to indicate that there is a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image; in response to receiving the preset indication information returned by the cloud, switching the NFC access control card for reading by the access control device to the NFC access control card matching the first geographic location. This embodiment uses the cloud to determine whether the second image matching the first geographic location is consistent with the first image, which can reduce the amount of calculation of the electronic device, thereby reducing power consumption and increasing the switching speed of the NFC access control card, and providing a better user experience.

[0059] In some embodiments, the method further includes: responding to an NFC card reading request sent by the access control device, switching the NFC access control card for the access control device to be read by the access control device to the last used NFC access control card; responding to receiving a card swiping success indication message sent by the access control device, displaying a display page before swiping the card; responding to receiving a card swiping failure indication message sent by the access control device, controlling a shooting device of the electronic device to shoot the access control device, obtain a first image, and obtain a first geographic location of the electronic device; responding to the presence of a second image matching the first geographic location in the cloud, and the matched second image is consistent with the first image, switching the NFC access control card for the access control device to be read by the access control device to an NFC access control card matching the first geographic location. In this embodiment, by attempting to switch the NFC access control card for the access control device to be read by the access control device to the last used NFC access control card, when the swiping is successful, there is no need to compare the image of the access control device and the geographic location of the electronic device, thereby reducing power consumption, and when the swiping fails, the image of the access control device and the geographic location of the electronic device are continued to be compared, so as to improve the matching accuracy of the NFC access control card, so that the access control device is more efficient in swiping the NFC access control card.

[0060] In some embodiments, Figure 2 As shown, after step S101, the following steps are also included:

[0061] Step S103: In response to the absence of a second image matching the first geographic location in the cloud, display a plurality of NFC access control cards.

[0062] In this embodiment, when there is no second image matching the first geographic location in the cloud, it can be determined that the user has not swiped the NFC access card at the first geographic location before, or the swiping of the NFC access card at the first geographic location has failed, and automatic switching of the NFC access card cannot be achieved. The user is required to manually switch the NFC access card. Therefore, multiple NFC access cards are displayed for the user to select or switch.

[0063] In some embodiments, in response to the absence of a second image matching a first geographic location in the cloud, displaying multiple NFC access control cards may include: sending the first geographic location to the cloud, for the cloud to respond to the absence of a second image matching the first geographic location among the multiple second images stored, sending a first notification message to the electronic device, the first notification message being used to indicate that there is no second image matching the first geographic location in the cloud; in response to receiving image matching failure indication information sent by the cloud, displaying multiple NFC access control cards.

[0064] Step S104: in response to the user's selection operation of one of the multiple NFC access control cards, the NFC access control card for reading by the access control device is switched to the selected NFC access control card.

[0065] This embodiment displays multiple NFC access control cards for the user to select or switch, and switches the NFC access control card read by the access control device to the selected NFC access control card. In this way, when automatic switching of NFC access control cards cannot be achieved, the user is allowed to manually switch NFC access control cards, thereby improving the user experience.

[0066] In some embodiments, Figure 3 As shown, after step S101, the following steps are also included:

[0067] Step S105: In response to the presence of a second image matching the first geographic location in the cloud, and the matching second image is inconsistent with the first image, multiple NFC access control cards are displayed. Then, step S104 is executed.

[0068] This embodiment displays multiple NFC access control cards for the user to select or switch, and switches the NFC access control card read by the access control device to the selected NFC access control card. In this way, when automatic switching of NFC access control cards cannot be achieved, the user is allowed to manually switch NFC access control cards, thereby improving the user experience.

[0069] In some embodiments, in response to the presence of a second image matching a first geographic location in the cloud, and the matching second image is inconsistent with the first image, displaying multiple NFC access control cards may include: sending the first geographic location to the cloud, for the cloud to respond to the presence of a second image matching the first geographic location among multiple second images stored in the cloud, and the matching second image is inconsistent with the first image, sending a second notification message to the electronic device, the second notification message being used to indicate that there is a second image matching the first geographic location in the cloud, and the matching second image is inconsistent with the first image; and displaying multiple NFC access control cards in response to receiving the second notification message sent by the cloud.

[0070] In some embodiments, Figure 4 As shown, after step S102, the following steps are also included:

[0071] Step S106: In response to receiving the first indication information sent by the access control device, multiple NFC access control cards are displayed, where the first indication information is used to indicate that the NFC access control card matching the first geographical location has failed to be swiped. Then, step S104 is executed.

[0072] This embodiment displays multiple NFC access control cards when the automatically switched NFC access control card fails to be swiped, thereby facilitating the user to manually select or switch the NFC access control card, and providing a good user experience.

[0073] In some embodiments, after reading the information in the NFC access card matching the first geographic location, if the information does not meet the preset condition, the access control device determines that the NFC access card matching the first geographic location has failed to be swiped, and sends a first indication message to the electronic device, the first indication message is used to indicate that the NFC access card matching the first geographic location has failed to be swiped; if the information meets the preset condition, it is determined that the NFC access card matching the first geographic location has been successfully swiped, and the gate is controlled to open for the user to pass through. The preset condition can be set based on the actual situation, and this embodiment does not specifically limit this.

[0074] For example, in a scenario where access control equipment controls the entry and exit of people in residential areas, office buildings, factories, campuses, hospitals, financial institutions, etc., when the access control device reads that the user information in the NFC access control card is located in the database, it determines that the NFC access control card has been swiped successfully, controls the gate to open, and allows the user to pass through. When the access control device reads that the user information in the NFC access control card is not located in the database, it determines that the NFC access control card has failed to be swiped.

[0075] In some embodiments, Figure 5 As shown, after step S104, the following steps are also included:

[0076] Step S107: in response to receiving the second indication information sent by the access control device, controlling the photographing device of the electronic device to photograph the access control device to obtain a second image and acquire a second geographical location of the electronic device, wherein the second indication information is used to indicate that the selected NFC access control card has been successfully swiped;

[0077] Step S108: uploading the second image and the second geographic location to the cloud for storage and binding the second geographic location to a selected NFC access control card.

[0078] In this embodiment, after the access control system successfully swipes the NFC access control card manually selected by the user, a second image obtained by the camera of the electronic device photographing the access control device and the second geographic location of the electronic device are uploaded to the cloud for storage, and the second geographic location is bound to a selected NFC access control card, providing basic data for the subsequent automatic switching of NFC access control cards, thereby facilitating the automatic switching of NFC access control cards.

[0079] In some embodiments, after reading the information in a selected NFC access card, if the information does not meet the preset conditions, the access control device determines that the selected NFC access card has failed to be swiped, and sends a card swiping failure notification message to the electronic device; if the information meets the preset conditions, it determines that the selected NFC access card has been successfully swiped, controls the gate to open for the user to pass, and sends a second indication message to the electronic device. The preset conditions can be set based on actual conditions, and this embodiment does not specifically limit this.

[0080] See also Figure 6 , Figure 6 It is a schematic block diagram of an NFC access card switching device provided in an embodiment of the present application.

[0081] like Figure 6 As shown, the NFC access card switching device 100 includes:

[0082] The information acquisition module 110 is used to respond to the NFC card reading request sent by the access control device, control the shooting device of the electronic device to shoot the access control device, obtain a first image, and obtain a first geographical location of the electronic device;

[0083] The access card switching module 120 is used to respond to the presence of a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image, and switch the NFC access card for reading by the access control device to an NFC access card matching the first geographic location. The second image is obtained by the electronic device and uploaded to the cloud when an NFC access card is successfully swiped by the access control device.

[0084] In some embodiments, the access card switching module 120 includes:

[0085] a sending submodule, configured to send the first geographic location to the cloud, so that the cloud can respond to the presence of a second image matching the first geographic location in the stored plurality of second images and send the matching second image to the electronic device;

[0086] The access control card switching submodule is used to respond to receiving the matching second image returned by the electronic device based on the first geographic location, and the matching second image is consistent with the first image, and switch the NFC access control card read by the access control device to an NFC access control card matching the first geographic location.

[0087] In some embodiments, the access card switching module 120 includes:

[0088] a sending submodule, configured to send the first geographic location and the first image to the cloud, so that the cloud, in response to the presence of a second image matching the first geographic location among the plurality of stored second images, and the matching second image being consistent with the first image, sends preset indication information to the electronic device, the preset indication information being used to indicate that there is a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image;

[0089] The access control card switching submodule is used to switch the NFC access control card for reading by the access control device to an NFC access control card matching the first geographical location in response to receiving the preset indication information returned by the cloud.

[0090] In some embodiments, the NFC access card switching device 100 further includes:

[0091] A display module, configured to display a plurality of NFC access control cards in response to the absence of a second image matching the first geographical location in the cloud;

[0092] The access card switching module 120 is further configured to respond to a user's selection operation of one of the multiple NFC access cards and switch the NFC access card to be read by the access control device to the selected NFC access card.

[0093] In some embodiments, the NFC access card switching device 100 further includes:

[0094] A display module, configured to display a plurality of NFC access control cards in response to the presence of a second image matching the first geographical location in the cloud, and the matching second image being inconsistent with the first image;

[0095] The access card switching module 120 is further configured to respond to a user's selection operation of one of the multiple NFC access cards and switch the NFC access card to be read by the access control device to the selected NFC access card.

[0096] In some embodiments, the NFC access card switching device 100 further includes:

[0097] A display module, configured to display a plurality of NFC access control cards in response to receiving first indication information sent by the access control device, wherein the first indication information is used to indicate that a swipe of the NFC access control card matching the first geographical location fails;

[0098] The access card switching module 120 is further configured to respond to a user's selection operation of one of the multiple NFC access cards and switch the NFC access card to be read by the access control device to the selected NFC access card.

[0099] In some embodiments, the NFC access card switching device 100 further includes:

[0100] The information acquisition module 110 is further configured to, in response to receiving second indication information sent by the access control device, control the photographing device of the electronic device to photograph the access control device to obtain a second image and obtain a second geographical location of the electronic device, wherein the second indication information is used to indicate that the selected NFC access control card has been successfully swiped;

[0101] A sending module, used for uploading the second image and the second geographical location to the cloud for storage;

[0102] A binding module is used to bind the second geographical location with the selected NFC access control card.

[0103] It should be noted that technicians in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each module and unit can refer to the corresponding process in the aforementioned NFC access card switching method embodiment, and will not be repeated here.

[0104] The apparatus provided in the above embodiment may be implemented in the form of a computer program. The computer program may be Figure 7 The electronic device shown is running.

[0105] See also Figure 7 , Figure 7 It is a schematic block diagram of the structure of an electronic device provided in an embodiment of the present application.

[0106] like Figure 7 As shown, the electronic device includes a processor, a memory and a network interface connected via a system bus, wherein the memory may include a storage medium and an internal memory.

[0107] The storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any NFC access card switching method.

[0108] The processor is used to provide computing and control capabilities to support the operation of the entire electronic device.

[0109] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 7 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0110] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0111] In some embodiments, the processor is used to run a computer program stored in the memory to implement the following steps:

[0112] In response to an NFC card reading request sent by a door access control device, controlling a photographing device of an electronic device to photograph the door access control device to obtain a first image and acquire a first geographic location of the electronic device;

[0113] In response to the existence of a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image, the NFC access card for reading by the access control device is switched to an NFC access card matching the first geographic location, and the second image is obtained and uploaded to the cloud by the electronic device when an NFC access card is successfully swiped by the access control device.

[0114] In some embodiments, when the processor implements switching the NFC access card for reading by the access control device to the NFC access card matching the first geographic location in response to the presence of a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image, the processor is used to implement:

[0115] Sending the first geographic location to the cloud, so that the cloud responds to the presence of a second image matching the first geographic location in the stored plurality of second images and sends the matching second image to the electronic device;

[0116] In response to receiving the matching second image returned by the electronic device based on the first geographic location, and the matching second image is consistent with the first image, the NFC access control card for reading by the access control device is switched to an NFC access control card matching the first geographic location.

[0117] In some embodiments, when the processor implements switching the NFC access card for reading by the access control device to the NFC access card matching the first geographic location in response to the presence of a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image, the processor is used to implement:

[0118] Sending the first geographic location and the first image to the cloud, so that the cloud, in response to the presence of a second image matching the first geographic location among the plurality of stored second images, and the matching second image being consistent with the first image, sends preset indication information to the electronic device, the preset indication information being used to indicate that there is a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image;

[0119] In response to receiving the preset indication information returned by the cloud, the NFC access control card for reading by the access control device is switched to an NFC access control card matching the first geographical location.

[0120] In some embodiments, after acquiring the first geographic location of the electronic device, the processor is further configured to:

[0121] In response to the absence of a second image matching the first geographic location in the cloud, displaying a plurality of NFC access control cards;

[0122] In response to a user's selection operation of one of the multiple NFC access control cards, the NFC access control card for the access control device to read is switched to the selected one NFC access control card.

[0123] In some embodiments, after acquiring the first geographic location of the electronic device, the processor is further configured to:

[0124] In response to the presence of a second image matching the first geographic location in the cloud, and the matching second image being inconsistent with the first image, displaying a plurality of NFC access control cards;

[0125] In response to a user's selection operation of one of the multiple NFC access control cards, the NFC access control card for the access control device to read is switched to the selected one NFC access control card.

[0126] In some embodiments, after implementing switching the NFC access card for reading by the access control device to an NFC access card matching the first geographic location, the processor is further configured to implement:

[0127] In response to receiving first indication information sent by the access control device, displaying multiple NFC access control cards, wherein the first indication information is used to indicate that a swipe of an NFC access control card matching the first geographical location fails;

[0128] In response to a user's selection operation of one of the multiple NFC access control cards, the NFC access control card for the access control device to read is switched to the selected one NFC access control card.

[0129] In some embodiments, after implementing a selection operation of one of the multiple NFC access control cards by the user, switching the NFC access control card for reading by the access control device to the selected NFC access control card, the processor is further configured to implement:

[0130] In response to receiving the second indication information sent by the access control device, controlling the photographing device of the electronic device to photograph the access control device to obtain a second image and acquire a second geographical location of the electronic device, wherein the second indication information is used to indicate that the selected NFC access control card has been successfully swiped;

[0131] The second image and the second geographic location are uploaded to the cloud for storage, and the second geographic location is bound to the selected NFC access control card.

[0132] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the electronic device described above can refer to the corresponding process in the aforementioned NFC access card switching method embodiment, and will not be repeated here.

[0133] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art 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 an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0134] An embodiment of the present application further provides a storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the NFC access card switching method of the present application.

[0135] The storage medium may be volatile or non-volatile. The storage medium may be an internal storage unit of the electronic device described in the foregoing embodiment, such as a hard disk or memory of the electronic device. The storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device.

[0136] Furthermore, the storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0137] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0138] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0139] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0140] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A near field communication NFC access card switching method, characterized in that: include: In response to an NFC card reading request sent by a door access control device, controlling a photographing device of an electronic device to photograph the door access control device to obtain a first image and acquire a first geographic location of the electronic device; In response to the existence of a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image, the NFC access card for reading by the access control device is switched to an NFC access card matching the first geographic location, and the second image is obtained and uploaded to the cloud by the electronic device when an NFC access card is successfully swiped by the access control device.

2. The NFC access card switching method according to claim 1, characterized in that: The response cloud contains a second image matching the first geographic location, and the matching second image is consistent with the first image, and the NFC access control card for the access control device to read is switched to the NFC access control card matching the first geographic location, including: Sending the first geographic location to the cloud, so that the cloud responds to the presence of a second image matching the first geographic location in the stored plurality of second images and sends the matching second image to the electronic device; In response to receiving the matching second image returned by the electronic device based on the first geographic location, and the matching second image is consistent with the first image, the NFC access control card for reading by the access control device is switched to an NFC access control card matching the first geographic location.

3. The NFC access card switching method according to claim 1, characterized in that: The response cloud contains a second image matching the first geographic location, and the matching second image is consistent with the first image, and the NFC access control card for the access control device to read is switched to the NFC access control card matching the first geographic location, including: Sending the first geographic location and the first image to the cloud, so that the cloud, in response to the presence of a second image matching the first geographic location among the plurality of stored second images, and the matching second image being consistent with the first image, sends preset indication information to the electronic device, the preset indication information being used to indicate that there is a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image; In response to receiving the preset indication information returned by the cloud, the NFC access control card for reading by the access control device is switched to an NFC access control card matching the first geographical location.

4. The NFC access card switching method according to claim 1, characterized in that: After acquiring the first geographical location of the electronic device, the method further includes: In response to the absence of a second image matching the first geographic location in the cloud, displaying a plurality of NFC access control cards; In response to a user's selection operation of one of the multiple NFC access control cards, the NFC access control card for the access control device to read is switched to the selected one NFC access control card.

5. The NFC access card switching method according to claim 1, characterized in that: After acquiring the first geographical location of the electronic device, the method further includes: In response to the presence of a second image matching the first geographic location in the cloud, and the matching second image being inconsistent with the first image, displaying a plurality of NFC access control cards; In response to a user's selection operation of one of the multiple NFC access control cards, the NFC access control card for the access control device to read is switched to the selected one NFC access control card.

6. The NFC access card switching method according to claim 1, characterized in that: After the NFC access control card for the access control device to be read is switched to an NFC access control card matching the first geographical location, the method further includes: In response to receiving first indication information sent by the access control device, displaying multiple NFC access control cards, wherein the first indication information is used to indicate that a NFC access control card matching the first geographical location has failed to be swiped; In response to a user's selection operation of one of the multiple NFC access control cards, the NFC access control card for the access control device to read is switched to the selected one NFC access control card.

7. The NFC access card switching method according to any one of claims 4 to 6, characterized in that: After the NFC access control card to be read by the access control device is switched to the selected NFC access control card in response to the user's selection operation of one of the multiple NFC access control cards, the method further includes: In response to receiving the second indication information sent by the access control device, controlling the photographing device of the electronic device to photograph the access control device to obtain a second image and acquire a second geographical location of the electronic device, wherein the second indication information is used to indicate that the selected NFC access control card has been successfully swiped; The second image and the second geographic location are uploaded to the cloud for storage, and the second geographic location is bound to the selected NFC access control card.

8. An NFC access card switching device, characterized in that: The NFC access card switching device comprises: An information acquisition module, configured to respond to an NFC card reading request sent by an access control device, control a photographing device of an electronic device to photograph the access control device, obtain a first image, and obtain a first geographic location of the electronic device; An access card switching module is used to respond to the presence of a second image matching the first geographic location in the cloud, and the matching second image is consistent with the first image, and switch the NFC access card for reading by the access control device to an NFC access card matching the first geographic location. The second image is obtained by the electronic device and uploaded to the cloud when an NFC access card is successfully swiped by the access control device.

9. An electronic device, characterized in that: The electronic device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the NFC access card switching method according to any one of claims 1 to 7 is implemented.

10. A storage medium for computer-readable storage, characterized in that: The storage medium stores a computer program, wherein when the computer program is executed by the processor, the NFC access card switching method according to any one of claims 1 to 7 is implemented.