Account identification methods, devices and electronic equipment
By adding source information of account profile pictures to chat applications and combining it with nickname similarity detection, the system can identify and alert users to fake accounts, solving the problem of identifying criminals in chat applications and improving user asset security.
Patent Information
- Application Number
- CN202311724681.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2043-12-14
AI Technical Summary
Existing technologies are unable to effectively identify criminals in chat applications, resulting in low user asset security and vulnerability to fraud.
By adding source information to the account profile picture in the chat application and combining it with nickname similarity detection, the system can identify whether the account is impersonating someone else and output a risk warning message.
It enhances the ability to prevent fraud in chat application scenarios and protects users' property security.
Smart Images

Figure CN117726340B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, specifically relating to an account identification method, device, and electronic equipment. Background Technology
[0002] In recent years, users have increasingly used chat applications for communication and monetary transactions. However, this has also led to a surge in fraudulent activities using chat applications. One common method involves criminals obtaining the profile pictures and nicknames of a user's chat friends and then using identical profile pictures and nicknames to gain the user's trust and commit fraud. Another common method involves criminals joining chat groups and using the same profile picture and nickname as other group members to gain their trust and commit fraud. However, current technologies cannot effectively identify whether a user on a chat application is a criminal, resulting in low security and making users vulnerable to financial losses. Summary of the Invention
[0003] The purpose of this application is to provide an account identification method, device, and electronic device that can identify illegal elements in chat applications, offering high security and thus protecting users' property safety.
[0004] In a first aspect, embodiments of this application provide an account identification method, executed by an electronic device corresponding to a first account, the method comprising:
[0005] Obtain the account information of the second account to be identified, wherein the account information includes: profile picture and nickname, and the profile picture of the second account carries the source information of the profile picture of the second account;
[0006] If it is determined from the source information of the profile picture of the second account that the profile picture of the second account is copied from the historical profile picture of the third account, the nickname of the second account is compared with the historical name of the third account, wherein the third account is an account in the address book of the first account, and the historical name includes at least one of the following: historical nickname, historical nickname of the first account user for the third account;
[0007] If the nickname of the second account is the same as at least one of the historical names of the third account, a risk warning message will be output for the second account.
[0008] Secondly, embodiments of this application provide an account identification device, executed by an electronic device corresponding to a first account, the device comprising:
[0009] The first acquisition module is used to acquire the account information of the second account to be identified, wherein the account information includes: profile picture and nickname, and the profile picture of the second account carries the source information of the profile picture of the second account;
[0010] The comparison module is used to compare the nickname of the second account with the historical name of the third account when it is determined from the source information of the profile picture of the second account that the profile picture of the second account is copied from the historical profile picture of the third account. The third account is an account in the address book of the first account, and the historical name includes at least one of the following: historical nickname, historical nickname of the first account user for the third account.
[0011] The output module is used to output risk warning information for the second account if the nickname of the second account is the same as at least one historical name of the third account.
[0012] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0013] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0014] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0015] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0016] In this embodiment, the electronic device corresponding to the first account obtains the account information of the second account to be identified. The account information includes: an avatar image and a nickname. The avatar image of the second account carries the source information of the avatar image of the second account. If it is determined from the source information of the avatar image of the second account that the avatar image of the second account is copied from the historical avatar image of the third account, the nickname of the second account is compared with the historical name of the third account. The third account is an account in the address book of the first account. The historical name includes at least one of the following: historical nickname, historical nickname of the first account user for the third account. If the nickname of the second account is the same as at least one historical name of the third account, a risk warning message for the second account is output.
[0017] As can be seen, in this embodiment, the source information of the avatar image can be added to the avatar image of each account in the chat application. For the account to be identified, the source information is used to identify whether the account has the risk of copying the avatar. If the risk of copying the avatar is found, nickname similarity detection is further combined to identify whether it is a fake identity account. If it is identified as a fake identity account, the user is prompted to guard against fraud. This can identify illegal elements in the chat application, has high security, improves the ability to prevent fraud in the chat application scenario, and thus protects the user's property security. Attached Figure Description
[0018] Figure 1 This is a flowchart of an account recognition method provided in an embodiment of this application;
[0019] Figure 2 This is one of the example diagrams of risk warning information provided in the embodiments of this application;
[0020] Figure 3 This is the second example diagram of the risk warning information provided in the embodiments of this application;
[0021] Figure 4 This is one of the example diagrams illustrating the method of adding source information provided in the embodiments of this application;
[0022] Figure 5 This is the second example diagram of the source information addition method provided in the embodiments of this application;
[0023] Figure 6 This is a structural block diagram of an account recognition device provided in an embodiment of this application;
[0024] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0025] Figure 8 This is a schematic diagram of the hardware structure of an electronic device that implements the various embodiments of this application. Detailed Implementation
[0026] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0027] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0028] With the rapid development of mobile internet, users are increasingly using chat applications for communication and monetary transactions. However, this has also led to a surge in fraudulent activities by criminals using chat applications. In recent years, fraudulent methods within chat applications have proliferated. One common method involves criminals obtaining the profile pictures and nicknames of a user's chat friends and then using identical profile pictures and nicknames to gain the user's trust and commit fraud. Another common method involves criminals joining chat groups and using the same profile picture and nickname as other group members to gain trust and commit fraud, commonly known as "impersonation." This is frequently seen in class groups where criminals impersonate homeroom teachers or other teachers to deceive parents and collect fees for learning materials. Although these methods seem simple, they significantly lower the user's guard, resulting in relatively large sums of money involved and causing serious harm to users. However, current technologies cannot identify whether users within chat applications are criminals, leading to low security and easy financial losses for users. To address these technical problems, this application provides an account identification method, device, and electronic device.
[0029] The account recognition method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0030] It should be noted that the account recognition method provided in this application is applicable to electronic devices. In practical applications, the electronic device can be a smartphone, tablet computer, or personal digital assistant, etc. This application does not limit this.
[0031] Figure 1 This is a flowchart of an account identification method provided in an embodiment of this application, executed by the electronic device corresponding to the first account, such as... Figure 1 As shown, the method may include the following steps: step 101, step 102 and step 103;
[0032] In step 101, the account information of the second account to be identified is obtained, wherein the account information includes: the profile picture and nickname of the second account, and the profile picture of the second account carries the source information of the profile picture of the second account.
[0033] In this embodiment of the application, the term "account" refers to the account of a chat application, such as the first account, the second account, ..., the tenth account, etc.
[0034] In some embodiments, considering identity fraud, it usually occurs in the following chat scenarios: (1) criminals impersonate the user's friend, request to add the user as a friend, and then defraud the user; (2) criminals defraud the user through a one-on-one chat interface; (3) criminals defraud the user through a group chat interface; For the above situations, the calling scenarios for account information identification are mainly divided into three types: (1) there is a new friend request; (2) the user opens the chat interface; (3) the group chat message contains sensitive words related to financial transactions, such as: receiving payment, digital + yuan, transfer, fees, etc., or the receiving code, transfer account, network link, etc. appear.
[0035] Accordingly, step 101 may include the following steps: step 1011, step 1012 or step 1013;
[0036] In step 1011, if a friend request from a second account is detected, the account information of the second account to be identified is obtained.
[0037] In this embodiment of the application, when a user of the second account initiates a friend request to a user of the first account through a chat application, the account information of the second account is obtained, and the account information of the second account is used to identify whether the second account is a risky account of identity fraud, wherein the user of a risky account of identity fraud is an illegal person.
[0038] In step 1012, if the user of the first account opens the chat interface of the second account, the account information of the second account to be identified is obtained.
[0039] In this embodiment of the application, when the user of the first account opens the chat interface with the user of the second account, the account information of the second account is obtained, and the account information of the second account is used to identify whether the second account is a risky account of identity fraud.
[0040] In step 1013, if it is detected that a user of the second account sends financial information on the group chat interface, the account information of the second account to be identified is obtained.
[0041] In this embodiment of the application, when a user of the second account sends monetary information on the group chat interface of the user of the first account, the account information of the second account is obtained, and the account information of the second account is used to identify whether the second account is a risky account that impersonates another user.
[0042] As can be seen, the embodiments of this application can be applied to various chat scenarios such as one-on-one chat, requesting to add friends, and existing group chat, and have a wide range of applications.
[0043] In this embodiment of the application, the source information of the profile picture of the second account is used to indicate whether the profile picture is copied from the profile picture of another account or comes from the Internet.
[0044] In some embodiments, for any account under the chat application, source information can be added to the attribute information of the account's profile picture to identify any risky behavior of copying profile pictures and help identify impersonating accounts; correspondingly, the attribute information of the second account's profile picture includes the source information of the second account's profile picture.
[0045] In some embodiments, for any account under the chat application, source information can be added to the pixel information of the account's profile picture to identify any risky behavior of copying profile pictures and help identify impersonating accounts; correspondingly, the pixel information of the second account's profile picture includes the source information of the second account's profile picture.
[0046] In some embodiments, for any account under the chat application, source information can also be added to the attribute information of the account's avatar image and to the pixel information of the account's avatar image to identify whether there is a risk of copying the avatar and help identify impersonating accounts; accordingly, the attribute information of the second account's avatar image includes the source information of the second account's avatar image, and the pixel information of the second account's avatar image includes the source information of the second account's avatar image.
[0047] As can be seen, in this embodiment of the application, the way the profile picture of the second account carries the source information of the profile picture of the second account is flexible and diverse, which can meet the needs of different chat scenarios.
[0048] In step 102, if it is determined from the source information of the profile picture of the second account that the profile picture of the second account is copied from the historical profile picture of the third account, the nickname of the second account is compared with the historical name of the third account. The third account is an account in the address book of the first account, and the historical name includes at least one of the following: historical nickname, historical nickname of the first account user for the third account.
[0049] In this embodiment of the application, the historical nickname name may include: the nickname name for one-on-one chat and the nickname name for group chat.
[0050] In this embodiment, the electronic device corresponding to the first account can establish a local chat friend information database. The information in the database includes: the account identifiers (i.e., IDs; user account IDs are unique and cannot be changed in the chat application) of the first account's contact friends, their historical nicknames, historical nicknames, and historical profile pictures, as shown in Table 1. The friend information in the database is updated every time the user opens the chat application. For chat groups, each chat group establishes a database of information for all accounts within the group, with the same content as above.
[0051] Serial Number Account ID Historical nicknames Historical Notes Name Historical portraits 1 0108972930xh Light clouds, warm sunshine, happiness Mom, Mom, Mother a.jpg、b.jpg … … … …
[0052] Table 1
[0053] In this embodiment, the third account is the account of a contact friend of the first account. If it is determined from the source information of the second account's profile picture that the second account's profile picture is copied from the third account's historical profile picture, it indicates that the second account's profile picture is likely impersonating the profile picture of a friend of the first account. In other words, the user of the second account may impersonate the user of the third account and defraud the user of the first account.
[0054] Considering that there are currently three main ways of nickname impersonation: (1) the account nickname impersonates the nickname of the user's friend; (2) the account nickname impersonates the nickname of the user's friend; (3) the group nickname of the account in the group chat impersonates the group nickname of other members, in response to the above situations, in this application embodiment, when it is determined that the profile picture of the second account is copied from the historical profile picture of the third account, the user of the second account is further determined to be impersonating the user of the third account by comparing whether the nickname of the second account is the same as the historical name of the third account. In a one-on-one chat scenario, if the nickname of the second account is the same as the nickname or nickname of the third account, it is determined that the second account is impersonating the third account, that is, the user of the second account is an illegal person; in a group chat scenario, if the nickname of the second account is the same as the group nickname of the third account, it is determined that the second account is impersonating the third account in the group, that is, the user of the second account is an illegal person.
[0055] In this embodiment of the application, considering that the friend accounts of the first account may have updated information, but the user of the first account may remember the historical account information, when comparing the nickname, nickname name, and group nickname name of the third account, the historical nickname, historical nickname name, and historical group nickname name of the corresponding friend information database are used to achieve comprehensive protection.
[0056] In step 103, if the nickname of the second account is the same as at least one of the historical names of the third account, a risk warning message is output for the second account.
[0057] In this embodiment of the application, if the nickname of the second account is the same as at least one of the historical names of the third account, it indicates that the second account is a fake account. That is to say, the user of the second account impersonates the user of the third account to defraud the user of the first account. At this time, the user of the first account is reminded to verify.
[0058] In this embodiment of the application, different risk warning messages can be output for different counterfeiting scenarios, for example... Figure 2 As shown, in the friend request scenario, if it is identified that the second account "Xiaoming" sending the friend request is a fake account, then information about the fake account's suspected impersonation of a friend will be displayed on the friend request interface; for example, Figure 3 As shown, in a group chat scenario, if the second account "Class Teacher" that sent the transfer information in the group is identified as a fake account, the information of the fake account and the identity of the group member that the fake account is suspected of impersonating will be displayed on the group chat interface.
[0059] In this embodiment, not only are scenarios where criminals use avatars to impersonate users' chat friends considered, but also scenarios where criminals use nicknames and contact names to impersonate users' chat friends. This provides more effective protection against impersonation and helps users identify accounts of criminals impersonating friends when chatting or adding friends, alerting users to prevent fraud and protecting their property.
[0060] As can be seen from the above embodiments, in this embodiment, the source information of the avatar image can be added to the avatar image of each account in the chat application. For the account to be identified, the source information is used to identify whether the account has the risk of copying the avatar. If the risk of copying the avatar is found, nickname similarity detection is further combined to identify whether it is a fake identity account. If it is identified as a fake identity account, the user is prompted to guard against fraud. It can identify illegal elements in the chat application, has high security, improves the ability to prevent fraud in the chat application scenario, and thus protects the user's property security.
[0061] In some embodiments provided in this application, when the attribute information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way: steps 201 and 202.
[0062] In step 201, if the first image is set as the avatar of the fourth account, the identifier of the fourth account is added to the attribute information of the first image to obtain the avatar image of the fourth account.
[0063] In this embodiment, the fourth account can be any account in the chat application, and the fifth account can be any account in the chat application other than the fourth account. The fourth account is the account whose profile picture is copied, and the fifth account is the account that copied the profile picture. For ease of understanding, the "account whose profile picture is copied" will be referred to as the "source account" below. In this case, for the profile picture of the fifth account, the fourth account is the source account.
[0064] In step 202, when the profile picture of the fourth account is set as the profile picture of the fifth account, the identifier of the fifth account is added to the attribute information of the profile picture of the fourth account to obtain the profile picture of the fifth account. The attribute information of the profile picture of the fifth account includes the identifier of the fourth account and the identifier of the fifth account.
[0065] In this embodiment, for a user-set profile picture, the identifier of the source account (i.e., account ID) is added to the image's attribute information. When another user copies the profile picture and sets it as their own profile picture, the profile picture's attribute information will include the account ID of the user whose profile picture was copied and the account ID of the copyer, for example, {from_user_id:[010897230xhus,01076290]}.
[0066] As can be seen, in this embodiment of the application, by adding source information to the account's profile picture, it is possible to intuitively distinguish whether the account's profile picture is copied from the profile picture of another account or is an image downloaded from the network.
[0067] In some embodiments provided in this application, considering that adding the source account ID to the attribute information of the profile picture may be cracked and deleted by criminals, source information that is not easily rewritten can be added to the profile picture. For example, source information can be added at specific pixel positions of the profile picture. Accordingly, when the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way: steps 301, 302 and 303.
[0068] In step 301, when the second image is set as the avatar of the sixth account, the pixel value of the pixel at the first position in the second image is modified to the first pixel value, and the pixel value of the pixel at the second position in the second image is modified to the second pixel value, to obtain the avatar image of the sixth account, wherein the second pixel value is used to indicate the identifier of the sixth account.
[0069] In this embodiment, the sixth account can be any account in the chat application, and the seventh account can be any account in the chat application other than the sixth account. The sixth account is the account whose profile picture is copied, and the seventh account is the account that copied the profile picture. In this case, for the profile picture of the seventh account, the sixth account is the source account.
[0070] In this embodiment, the first position can be three pixel positions at the center of the image, namely (mid_x, mid_y), (mid_x-1, mid_y), and (mid_x+1, mid_y). The first pixel value is the pixel value of the RGB three channels (127, 128, 129), where 127 is the R channel pixel value, 128 is the G channel pixel value, and 129 is the B channel pixel value. The pixel value at the first position of the image is used to indicate that the image is set as the user's avatar. If the width / height of the image is an even value, the center value mid_x is rounded up. It is understood that the first position can be other positions in the image, and the first pixel value can also be the pixel value of other channels; this embodiment does not limit this.
[0071] In this embodiment, the second position can be a series of pixel positions starting from the middle position (mid_x,0) of the first row of the image. For example, if the ID of the sixth account is 8 bits long, then the R channel pixel value of pixel (mid_x,0) is set to 8, the R channel pixel value of pixel (mid_x+1,0) is set to the ASCII code of the first character in the ID of the sixth account, the R channel pixel value of pixel (mid_x+2,0) is set to the ASCII code of the second character in the ID of the sixth account, and so on, the R channel pixel value of pixel (mid_x+8,0) is set to the ASCII code of the eighth character in the ID of the sixth account. The above value 8 and the 8 corresponding ASCII codes constitute the second pixel value. For example, if the ID of the sixth account is 5 characters long, then the R-channel pixel value of pixel (mid_x,0) is set to 5, the R-channel pixel value of pixel (mid_x+1,0) is set to the ASCII code of the first character in the ID of the sixth account, the R-channel pixel value of pixel (mid_x+2,0) is set to the ASCII code of the second character in the ID of the sixth account, and so on, until the R-channel pixel value of pixel (mid_x+8,0) is set to the ASCII code of the fifth character in the ID of the sixth account. The value 5 and the five corresponding ASCII codes constitute the second pixel value. It is understood that the second position can be any other position in the image, and the second pixel value can also be other types of pixel values; this application does not limit this.
[0072] In one example, such as Figure 4 As shown, the image has a size of 11×9. The first position of the image is the position of three pixels (4,4), (5,4), and (6,4). The first position is a series of positions starting from pixel (5,0) in the first row. The second position is a series of positions starting from pixel (5,8) in the last row.
[0073] In step 302, when the profile picture of the sixth account is set as the profile picture of the seventh account, the pixel value of the first pixel in the profile picture of the sixth account is incremented by 1, the pixel value of the second pixel in the profile picture of the sixth account is modified to the third pixel value, and the pixel value of the third pixel in the profile picture of the sixth account is modified to the second pixel value, so as to obtain the profile picture of the seventh account. The third pixel value is used to indicate the identifier of the seventh account.
[0074] In this embodiment of the application, the third position can be a series of pixel positions starting from the middle position (mid_x,0) of the last row of the image.
[0075] In this embodiment, if the image is copied from another user, meaning the pixel values of the three pixels at the center of the image are (127, 128, 129), then all pixel values in the center channels are incremented by 1, resulting in (128, 129, 130). The account ID length and ASCII code information recorded in the first row are moved to the middle (mid_x, y) of the last row, while the ID length and ASCII code of the copied user are written into the R channel of the first row starting at (mid_x, 0). Thus, the first row of the image retains the copier's ID, and the last row retains the copied user's ID, i.e., the source account's ID.
[0076] In step 303, when the profile picture of the seventh account is set as the profile picture of the eighth account, the pixel value of the second position pixel in the profile picture of the seventh account is modified to the fourth pixel value, and the pixel value of the third position pixel in the profile picture of the seventh account is modified to the third pixel value, so as to obtain the profile picture of the eighth account, wherein the fourth pixel value is used to indicate the identifier of the eighth account.
[0077] In this embodiment of the application, if the pixel values of the three pixels at the center of the image are all (128, 129, 130), then the pixel values of these three pixels are kept unchanged. Similarly, the ID information of the seventh account is moved from the first row to the corresponding position in the last row, and the ID information of the eighth account is added to the corresponding position in the first row.
[0078] As can be seen, in this embodiment of the application, source information can be added to specific pixel positions of the portrait image, which is not easily cracked by criminals and has a high level of security.
[0079] In some embodiments provided in this application, source information can be added to the edge contour position of the profile picture. Accordingly, when the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way: steps 401 and 402.
[0080] In step 401, when the third image is set as the profile picture of the ninth account, the first edge of the third image is extracted, and the pixel value of the pixel at the position of the first edge is incremented by 1 to obtain the profile picture image of the ninth account.
[0081] In step 402, when the profile picture of the ninth account is set as the profile picture of the tenth account, the second edge of the profile picture of the ninth account is extracted, and the pixel value of the pixel at the position of the second edge is incremented by 1 to obtain the profile picture of the tenth account.
[0082] In this embodiment, the Canny operator in image processing can be used to extract the edges of an image, wherein the low threshold is set to 70 and the high threshold is set to 150. For example, the edge extraction result is as follows: Figure 5 As shown. Then, the R channel value of all edge pixel locations is incremented by 1, thus embedding source information into the image without significantly altering its appearance.
[0083] As can be seen, in this embodiment of the application, source information can be added to the edge contour of the portrait image, which is not easy to be cracked by criminals and has a high level of security.
[0084] In some embodiments provided in this application, the account information further includes: account identifier, and the attribute information of the profile picture of the second account includes the source information of the profile picture of the second account. Accordingly, before the above step 102, the following step may also be included: step 104.
[0085] In step 104, if the attribute information of the second account's profile picture includes the identifier of the second account and the identifier of the third account, it is determined that the profile picture of the second account is copied from the historical profile picture of the third account.
[0086] In this embodiment of the application, since the attribute information of the profile picture of the second account includes the source information of the profile picture of the second account, and the identifier of the third account indicates the profile picture of the third account, if the attribute information of the profile picture of the second account includes the identifier of the second account and the identifier of the third account, it can be accurately determined that the profile picture of the second account is copied from the historical profile picture of the third account.
[0087] In some embodiments provided in this application, the account information further includes: account identifier, and the pixel information of the avatar image of the second account includes the source information of the avatar image of the second account. Accordingly, before the above step 102, the following step may also be included: step 105.
[0088] In step 105, if the difference between the pixel value of the first pixel at the first position in the profile picture of the second account and the first pixel value is 1, and the pixel value of the third pixel at the third position in the profile picture of the second account indicates the identifier of the third account, it is determined that the profile picture of the second account is copied from the historical profile picture of the third account.
[0089] In this embodiment of the application, since the pixel values at some specific pixel positions in the profile picture of the second account indicate that the profile picture is a copied image, and the pixel values at other specific pixel positions indicate the profile picture of the third account, it can be accurately determined that the profile picture of the second account is copied from the historical profile picture of the third account.
[0090] In some embodiments, before step 105 above, the following step may also be included: step 106;
[0091] In step 106, if the attribute information of the profile picture of the second account includes the identifier of the second account but does not include the identifier of the third account, the pixel value of the first pixel and the pixel value of the third pixel in the profile picture of the second account are obtained.
[0092] In this embodiment, the attribute information and pixel information of the profile picture of the second account can be combined to determine whether the profile picture of the second account is copied from the historical profile picture of the third account. The referenced information is more comprehensive and the recognition effect is more accurate.
[0093] In some embodiments provided in this application, the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account. Accordingly, before the above step 102, the following step may also be included: step 107.
[0094] In step 107, after decrementing the pixel value of the edge position of the second account's profile picture by one, the similarity between the pixel value and the edge position of the third account's historical profile picture is calculated pixel by pixel, and the first number of pixels with a similarity greater than the first threshold is counted; if the first number is greater than the second threshold, it is determined that the profile picture of the second account is copied from the historical profile picture of the third account.
[0095] In this embodiment, since the pixel value of the pixel at the edge of the image is incremented by 1 every time the image is copied, when comparing whether one image is a copy of another image, the pixel value of the pixel at the edge of the image is decremented by 1 first, and then the similarity with the other image is calculated. This can accurately determine whether the profile picture of the second account is copied from the historical profile picture of the third account.
[0096] In some embodiments provided in this application, the attribute information of the profile picture of the second account to be identified can be extracted first. If the attribute information only contains the ID of the second account, in order to prevent the source information from being cracked and rewritten by illegal elements, the pixel value identification step (i.e., step 105 or step 107) is entered. If the attribute information contains multiple other source account IDs in addition to the ID of the second account, it indicates that the profile picture of the second account is a copied image. The corresponding friend information database is searched to see if at least one of the source account IDs exists (to check if it is impersonating a friend of the first account). If it exists, the nickname identification step (i.e., step 103) is entered. If it does not exist, it indicates that it is impossible to determine whether it is impersonating a friend from the profile picture attributes, and the pixel value identification step (i.e., step 105 or step 107) is entered.
[0097] For step 105, for example, extract the pixel values of the three pixels at the center of the image, namely (mid_x, mid_y), (mid_x-1, mid_y), and (mid_x+1, mid_y). Verify whether the pixel values of these three pixels are (128, 129, 130). If not, it indicates that the avatar is not copied, and the impersonation is ruled out (the friend is not impersonating, and the risk warning is lifted). If the avatar is copied, obtain the account length by taking the R channel value starting from the middle pixel of the last row, and take the corresponding R channel value of the account length starting from the next digit, which is the ASCII code of the id. Convert it into a character to obtain the source account id. Check whether the source account id exists in the corresponding friend information database. If it exists, it indicates that it may be impersonation, and proceed to the nickname verification step (i.e., step 103); otherwise, the impersonation is ruled out.
[0098] For step 107, for example, the Canny operator (low threshold 70, high threshold 150) is used to extract the edges of the profile picture of the second account. The R channel value of all pixels at the edge position is decremented by 1. Then, the pixel values of all channels at the edge position are compared with all historical profile pictures in the local friend information database. If the proportion of identical values is more than 95%, it is considered that the profile picture of the second account is copied from the historical profile picture of the first account's friend, and there is a risk of identity fraud. The process then proceeds to the nickname verification step (i.e., step 103).
[0099] As can be seen, in this embodiment of the application, multiple dimensions of source information in the profile picture can be combined to help users identify illegal accounts that impersonate friends when chatting or adding friends, prompt users to guard against fraudulent activities, and protect users' property security.
[0100] The account recognition method provided in this application can be executed by an account recognition device. This application uses an account recognition device executing the account recognition method as an example to illustrate the account recognition device provided in this application.
[0101] Figure 6 This is a structural block diagram of an account recognition device provided in an embodiment of this application, executed by the electronic device corresponding to the first account, such as... Figure 6 As shown, the account recognition device 600 may include: a first acquisition module 601, a comparison module 602, and an output module 603;
[0102] The first acquisition module 601 is used to acquire account information of the second account to be identified, wherein the account information includes: profile picture and nickname, and the profile picture of the second account carries the source information of the profile picture of the second account;
[0103] The comparison module 602 is used to compare the nickname of the second account with the historical name of the third account when it is determined from the source information of the profile picture of the second account that the profile picture of the second account is copied from the historical profile picture of the third account. The third account is an account in the address book of the first account, and the historical name includes at least one of the following: historical nickname, historical nickname of the first account user for the third account.
[0104] The output module 603 is used to output risk warning information for the second account when the nickname of the second account is the same as at least one historical name of the third account.
[0105] As can be seen from the above embodiments, in this embodiment, the source information of the avatar image can be added to the avatar image of each account in the chat application. For the account to be identified, the source information is used to identify whether the account has the risk of copying the avatar. If the risk of copying the avatar is found, nickname similarity detection is further combined to identify whether it is a fake identity account. If it is identified as a fake identity account, the user is prompted to guard against fraud. It can identify illegal elements in the chat application, has high security, improves the ability to prevent fraud in the chat application scenario, and thus protects the user's property security.
[0106] Optionally, as an embodiment, when the attribute information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way: when the first image is set as the profile picture of the fourth account, the identifier of the fourth account is added to the attribute information of the first image to obtain the profile picture of the fourth account.
[0107] When the profile picture of the fourth account is set as the profile picture of the fifth account, the identifier of the fifth account is added to the attribute information of the profile picture of the fourth account to obtain the profile picture of the fifth account. The attribute information of the profile picture of the fifth account includes the identifier of the fourth account and the identifier of the fifth account.
[0108] Optionally, as an embodiment, when the pixel information of the profile picture image of the second account includes the source information of the profile picture image of the second account, the source information of the profile picture image is added in the following way: when the second image is set as the profile picture of the sixth account, the pixel value of the pixel at the first position in the second image is modified to a first pixel value, and the pixel value of the pixel at the second position in the second image is modified to a second pixel value, to obtain the profile picture image of the sixth account, wherein the second pixel value is used to indicate the identifier of the sixth account;
[0109] When the profile picture of the sixth account is set as the profile picture of the seventh account, the pixel value of the first position in the profile picture of the sixth account is incremented by 1, the pixel value of the second position in the profile picture of the sixth account is modified to the third pixel value, and the pixel value of the third position in the profile picture of the sixth account is modified to the second pixel value to obtain the profile picture of the seventh account, wherein the third pixel value is used to indicate the identifier of the seventh account;
[0110] When the profile picture of the seventh account is set as the profile picture of the eighth account, the pixel value of the pixel at the second position in the profile picture of the seventh account is modified to the fourth pixel value, and the pixel value of the pixel at the third position in the profile picture of the seventh account is modified to the third pixel value, so as to obtain the profile picture of the eighth account, wherein the fourth pixel value is used to indicate the identifier of the eighth account.
[0111] Optionally, as an embodiment, when the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way: when the third image is set as the profile picture of the ninth account, the first edge of the third image is extracted, and the pixel value of the pixel at the position of the first edge is incremented by 1 to obtain the profile picture of the ninth account.
[0112] When the profile picture of the ninth account is set as the profile picture of the tenth account, the second edge of the profile picture of the ninth account is extracted, and the pixel value of the pixel at the position of the second edge is incremented by 1 to obtain the profile picture of the tenth account.
[0113] Optionally, as an embodiment, the account information further includes: an account identifier; the attribute information of the profile picture image of the second account includes the source information of the profile picture image of the second account; the account recognition device 600 may further include:
[0114] The first determining module is used to determine that the profile picture of the second account is copied from the historical profile picture of the third account, provided that the attribute information of the profile picture of the second account includes the identifier of the second account and the identifier of the third account.
[0115] Optionally, as an embodiment, the account information further includes: an account identifier; the pixel information of the profile picture image of the second account includes the source information of the profile picture image of the second account; the account recognition device 600 may further include:
[0116] The second determining module is used to determine that the profile picture of the second account is copied from the historical profile picture of the third account when the difference between the pixel value of the first pixel point at the first position in the profile picture of the second account and the first pixel value is 1, and the pixel value of the third pixel point at the third position in the profile picture of the second account indicates the identifier of the third account.
[0117] Optionally, as an embodiment, the account recognition device 600 may further include:
[0118] The second acquisition module is used to acquire the pixel value of the pixel at the first position and the pixel value of the pixel at the third position in the profile picture image of the second account, provided that the attribute information of the profile picture image of the second account includes the identifier of the second account but does not include the identifier of the third account.
[0119] Optionally, as an embodiment, the pixel information of the profile picture image of the second account includes the source information of the profile picture image of the second account; the account recognition device 600 may further include:
[0120] The statistics module is used to subtract one from the pixel value of the edge position of the account avatar of the second account, calculate the similarity of the pixel value with the pixel value of the edge position of the historical avatar of the third account, and count the first number of pixels with a similarity greater than a first threshold.
[0121] The third determining module is used to determine, when the first number is greater than the second threshold, that the profile picture of the second account is copied from the historical profile picture of the third account.
[0122] Optionally, as an embodiment, the first acquisition module 601 may include:
[0123] The first acquisition submodule is used to acquire the account information of the second account to be identified when a friend request from the second account is detected; or,
[0124] The second acquisition submodule is used to acquire the account information of the second account to be identified when the user of the first account opens the chat interface of the second account; or,
[0125] The third acquisition submodule is used to acquire the account information of the second account to be identified when it is detected that the user of the second account sends financial information on the group chat interface.
[0126] The account identification device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0127] The account recognition device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0128] The account recognition device provided in this application embodiment can implement all the processes implemented in the above account recognition method embodiment, and will not be described again here to avoid repetition.
[0129] Optionally, such as Figure 7 As shown, this application embodiment also provides an electronic device 700, including a processor 701 and a memory 702. The memory 702 stores a program or instructions that can run on the processor 701. When the program or instructions are executed by the processor 701, they implement the various steps of the above-described account identification method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0130] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0131] Figure 8 This is a schematic diagram of the hardware structure of an electronic device that implements the various embodiments of this application.
[0132] The electronic device 800 includes, but is not limited to, components such as: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, and processor 810.
[0133] Those skilled in the art will understand that the electronic device 800 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 810 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 8 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0134] The processor 810 is configured to acquire account information of a second account to be identified, wherein the account information includes: an avatar image and a nickname, and the avatar image of the second account carries source information of the avatar image of the second account; if it is determined from the source information of the avatar image of the second account that the avatar image of the second account is copied from a historical avatar image of a third account, the processor compares the nickname of the second account with the historical name of the third account, wherein the third account is an account in the address book of the first account, and the historical name includes at least one of the following: a historical nickname, or a historical nickname given by the user of the first account to the third account; if the nickname of the second account is the same as at least one historical name of the third account, the processor outputs risk warning information for the second account.
[0135] As can be seen, in this embodiment, the source information of the avatar image can be added to the avatar image of each account in the chat application. For the account to be identified, the source information is used to identify whether the account has the risk of copying the avatar. If the risk of copying the avatar is found, nickname similarity detection is further combined to identify whether it is a fake identity account. If it is identified as a fake identity account, the user is prompted to guard against fraud. This can identify illegal elements in the chat application, has high security, improves the ability to prevent fraud in the chat application scenario, and thus protects the user's property security.
[0136] Optionally, as an embodiment, when the attribute information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way:
[0137] When the first image is set as the profile picture of the fourth account, the identifier of the fourth account is added to the attribute information of the first image to obtain the profile picture image of the fourth account.
[0138] When the profile picture of the fourth account is set as the profile picture of the fifth account, the identifier of the fifth account is added to the attribute information of the profile picture of the fourth account to obtain the profile picture of the fifth account. The attribute information of the profile picture of the fifth account includes the identifier of the fourth account and the identifier of the fifth account.
[0139] Optionally, as an embodiment, when the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way:
[0140] When the second image is set as the profile picture of the sixth account, the pixel value of the pixel at the first position in the second image is modified to the first pixel value, and the pixel value of the pixel at the second position in the second image is modified to the second pixel value to obtain the profile picture image of the sixth account, wherein the second pixel value is used to indicate the identifier of the sixth account;
[0141] When the profile picture of the sixth account is set as the profile picture of the seventh account, the pixel value of the first position in the profile picture of the sixth account is incremented by 1, the pixel value of the second position in the profile picture of the sixth account is modified to the third pixel value, and the pixel value of the third position in the profile picture of the sixth account is modified to the second pixel value to obtain the profile picture of the seventh account, wherein the third pixel value is used to indicate the identifier of the seventh account;
[0142] When the profile picture of the seventh account is set as the profile picture of the eighth account, the pixel value of the pixel at the second position in the profile picture of the seventh account is modified to the fourth pixel value, and the pixel value of the pixel at the third position in the profile picture of the seventh account is modified to the third pixel value, so as to obtain the profile picture of the eighth account, wherein the fourth pixel value is used to indicate the identifier of the eighth account.
[0143] Optionally, as an embodiment, when the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way:
[0144] When the third image is set as the profile picture of the ninth account, the first edge of the third image is extracted, and the pixel value of the pixel at the position of the first edge is incremented by 1 to obtain the profile picture image of the ninth account.
[0145] When the profile picture of the ninth account is set as the profile picture of the tenth account, the second edge of the profile picture of the ninth account is extracted, and the pixel value of the pixel at the position of the second edge is incremented by 1 to obtain the profile picture of the tenth account.
[0146] Optionally, as an embodiment, the account information further includes: an account identifier; the attribute information of the profile picture of the second account includes the source information of the profile picture of the second account; the processor 810 is further configured to determine that the profile picture of the second account is copied from a historical profile picture of the third account when the attribute information of the profile picture of the second account includes the identifier of the second account and the identifier of the third account.
[0147] Optionally, as an embodiment, the account information further includes: an account identifier; the pixel information of the profile picture image of the second account includes source information of the profile picture image of the second account; the processor 810 is further configured to determine that the profile picture image of the second account is copied from the historical profile picture image of the third account when the difference between the pixel value of the first pixel point at the first position in the profile picture image of the second account and the first pixel value is 1, and the pixel value of the third pixel point at the third position in the profile picture image of the second account indicates the identifier of the third account.
[0148] Optionally, as an embodiment, the processor 810 is further configured to obtain the pixel value of the pixel at the first position and the pixel value of the pixel at the third position in the profile picture image of the second account, provided that the attribute information of the profile picture image of the second account includes the identifier of the second account but does not include the identifier of the third account.
[0149] Optionally, as an embodiment, the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account; the processor 810 is further configured to subtract one from the pixel value of the pixel at the edge position of the profile picture of the second account, calculate the similarity of the pixel value with the pixel value at the edge position of the historical profile picture of the third account pixel by pixel, and count the first number of pixels with a similarity greater than a first threshold; if the first number is greater than a second threshold, it is determined that the profile picture of the second account is copied from the historical profile picture of the third account.
[0150] Optionally, as an embodiment, the processor 810 is further configured to obtain the account information of the second account to be identified when a friend request from the second account is detected; or, when the user of the first account opens the chat interface of the second account, obtain the account information of the second account to be identified; or, when the user of the second account sends financial information on the group chat interface, obtain the account information of the second account to be identified.
[0151] It should be understood that, in this embodiment, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042. The GPU 8041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 807 includes at least one of a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0152] The memory 809 can be used to store software programs and various data. The memory 809 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 809 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 809 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0153] Processor 810 may include one or more processing units; optionally, processor 810 may be integrated into an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 810.
[0154] This application also provides a readable storage medium storing a program or instructions. When executed by a processor, the program or instructions implement the various processes of the account identification method embodiments described above and achieve the same technical effects. To avoid repetition, these will not be described again here. The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.
[0155] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-described account identification method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here. It should be understood that the chip mentioned in this application embodiment can also be called a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0156] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the account identification method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0157] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0158] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0159] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An account identification method, executed by an electronic device corresponding to a first account, characterized in that, The method includes: If a friend request from a second account to be identified is detected, the account information of the second account is obtained; or, if a user of the first account is detected to have opened the chat interface of the second account, the account information of the second account is obtained; or, if a user of the second account is detected to have sent financial information in a group chat interface, the account information of the second account is obtained, wherein the account information includes: profile picture and nickname, and the profile picture of the second account carries the source information of the profile picture of the second account; If the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account, after deducting one from the pixel value of the pixel at the edge position of the profile picture of the second account, the similarity between the pixel value and the pixel value at the edge position of the historical profile picture of the third account is calculated pixel by pixel, and the first number of pixels with a similarity greater than a first threshold is counted; if the first number is greater than a second threshold, it is determined that the profile picture of the second account is copied from the historical profile picture of the third account. If it is determined from the source information of the profile picture of the second account that the profile picture of the second account is copied from the historical profile picture of the third account, the nickname of the second account is compared with the historical name of the third account, wherein the third account is an account in the address book of the first account, and the historical name includes at least one of the following: historical nickname, historical nickname of the first account user for the third account; If the nickname of the second account is the same as at least one of the historical names of the third account, a risk warning message will be output for the second account.
2. The method according to claim 1, characterized in that, When the attribute information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way: When the first image is set as the profile picture of the fourth account, the identifier of the fourth account is added to the attribute information of the first image to obtain the profile picture image of the fourth account. When the profile picture of the fourth account is set as the profile picture of the fifth account, the identifier of the fifth account is added to the attribute information of the profile picture of the fourth account to obtain the profile picture of the fifth account. The attribute information of the profile picture of the fifth account includes the identifier of the fourth account and the identifier of the fifth account.
3. The method according to claim 1 or 2, characterized in that, When the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way: When the second image is set as the profile picture of the sixth account, the pixel value of the pixel at the first position in the second image is modified to the first pixel value, and the pixel value of the pixel at the second position in the second image is modified to the second pixel value to obtain the profile picture image of the sixth account, wherein the second pixel value is used to indicate the identifier of the sixth account; When the profile picture of the sixth account is set as the profile picture of the seventh account, the pixel value of the first position in the profile picture of the sixth account is incremented by 1, the pixel value of the second position in the profile picture of the sixth account is modified to the third pixel value, and the pixel value of the third position in the profile picture of the sixth account is modified to the second pixel value to obtain the profile picture of the seventh account, wherein the third pixel value is used to indicate the identifier of the seventh account; When the profile picture of the seventh account is set as the profile picture of the eighth account, the pixel value of the pixel at the second position in the profile picture of the seventh account is modified to the fourth pixel value, and the pixel value of the pixel at the third position in the profile picture of the seventh account is modified to the third pixel value, so as to obtain the profile picture of the eighth account, wherein the fourth pixel value is used to indicate the identifier of the eighth account.
4. The method according to claim 1 or 2, characterized in that, When the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account, the source information of the profile picture is added in the following way: When the third image is set as the profile picture of the ninth account, the first edge of the third image is extracted, and the pixel value of the pixel at the position of the first edge is incremented by 1 to obtain the profile picture image of the ninth account. When the profile picture of the ninth account is set as the profile picture of the tenth account, the second edge of the profile picture of the ninth account is extracted, and the pixel value of the pixel at the position of the second edge is incremented by 1 to obtain the profile picture of the tenth account.
5. The method according to claim 1, characterized in that, The account information also includes: account identifier; the attribute information of the profile picture of the second account includes the source information of the profile picture of the second account; Before comparing the nickname of the second account with the historical name of the third account, in the case where it is determined from the source information of the second account's profile picture that the profile picture of the second account is copied from the historical profile picture of the third account, the method further includes: If the attribute information of the profile picture of the second account includes the identifier of the second account and the identifier of the third account, it is determined that the profile picture of the second account is copied from the historical profile picture of the third account.
6. The method according to claim 1 or 5, characterized in that, The account information also includes: account identifier; the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account; Before comparing the nickname of the second account with the historical name of the third account, in the case where it is determined from the source information of the second account's profile picture that the profile picture of the second account is copied from the historical profile picture of the third account, the method further includes: If the difference between the pixel value of the first pixel at the first position in the profile picture of the second account and the first pixel value is 1, and the pixel value of the third pixel at the third position in the profile picture of the second account indicates the identifier of the third account, then it is determined that the profile picture of the second account is copied from the historical profile picture of the third account.
7. The method according to claim 6, characterized in that, Before determining that the profile picture of the second account is copied from a historical profile picture of the third account when the difference between the pixel value of the first position in the profile picture of the second account and the first pixel value is 1, and the pixel value of the third position in the profile picture of the second account indicates the identifier of the third account, the method further includes: If the attribute information of the profile picture of the second account includes the identifier of the second account but does not include the identifier of the third account, then obtain the pixel value of the pixel at the first position and the pixel value of the pixel at the third position in the profile picture of the second account.
8. An account identification device, executed by an electronic device corresponding to a first account, characterized in that, The device includes: The first acquisition module is used to acquire account information of the second account when a friend request from the second account to be identified is detected; or, when a user of the first account opens the chat interface of the second account, the module acquires account information of the second account; or, when a user of the second account sends financial information in a group chat interface, the module acquires account information of the second account. The account information includes: an avatar image and a nickname, and the avatar image of the second account carries the source information of the avatar image of the second account. The statistics module is used to, when the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account, subtract one from the pixel value of the pixel at the edge position of the profile picture of the second account, calculate the similarity of the pixel value with the pixel value at the edge position of the historical profile picture of the third account pixel, and count the first number of pixels with similarity greater than the first threshold. The third determining module is used to determine, when the first number is greater than the second threshold, that the profile picture of the second account is copied from the historical profile picture of the third account; The comparison module is used to compare the nickname of the second account with the historical name of the third account when it is determined from the source information of the profile picture of the second account that the profile picture of the second account is copied from the historical profile picture of the third account. The third account is an account in the address book of the first account, and the historical name includes at least one of the following: historical nickname, historical nickname of the first account user for the third account. The output module is used to output risk warning information for the second account if the nickname of the second account is the same as at least one historical name of the third account.
9. The apparatus according to claim 8, characterized in that, The account information further includes: an account identifier; the attribute information of the profile picture of the second account includes the source information of the profile picture of the second account; the account recognition device further includes: The first determining module is used to determine that the profile picture of the second account is copied from the historical profile picture of the third account, provided that the attribute information of the profile picture of the second account includes the identifier of the second account and the identifier of the third account.
10. The apparatus according to claim 8 or 9, characterized in that, The account information further includes: an account identifier; the pixel information of the profile picture of the second account includes the source information of the profile picture of the second account; the account recognition device further includes: The second determining module is used to determine that the profile picture of the second account is copied from the historical profile picture of the third account when the difference between the pixel value of the first pixel point at the first position in the profile picture of the second account and the first pixel value is 1, and the pixel value of the third pixel point at the third position in the profile picture of the second account indicates the identifier of the third account.
11. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the account identification method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Social communication methods and terminals
CN109639569A
Abnormal head portrait identification method and device
CN113536870A