WO2019114418A1 - 图片处理方法及装置 - Google Patents

图片处理方法及装置 Download PDF

Info

Publication number
WO2019114418A1
WO2019114418A1 PCT/CN2018/111544 CN2018111544W WO2019114418A1 WO 2019114418 A1 WO2019114418 A1 WO 2019114418A1 CN 2018111544 W CN2018111544 W CN 2018111544W WO 2019114418 A1 WO2019114418 A1 WO 2019114418A1
Authority
WO
WIPO (PCT)
Prior art keywords
character
picture
characters
sensitive
preset
Prior art date
Application number
PCT/CN2018/111544
Other languages
English (en)
French (fr)
Inventor
郭一贤
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2019114418A1 publication Critical patent/WO2019114418A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Definitions

  • the embodiments disclosed in the present specification relate to the field of Internet technologies, and in particular, to a picture processing method and apparatus.
  • the image will include some personal information, such as identity information, account information, and so on.
  • the transcript picture downloaded by the user on the test result query website usually includes the user's real name and ID number.
  • the transaction information is often included. At this time, if the user directly publishes these pictures including personal information on the social platform, the personal information will be leaked, and therefore, the picture needs to be desensitized.
  • the present specification describes a picture processing method and apparatus, which determines a sensitive character of a picture according to a preset discrimination condition, and uses a layer including a preset pattern to cover an area where the sensitive character is located, thereby realizing a fast and comprehensive image. Desensitization treatment.
  • a picture processing method includes:
  • the area in which the sensitive character is located is overwritten using a layer including a preset pattern.
  • the picture operation includes an operation in which the user shares the picture.
  • the picture operation includes an operation of the user screenshot to generate the picture.
  • the picture operation includes the user inputting a desensitization processing instruction for the picture.
  • the method before the determining the sensitive characters in the characters according to the preset determination condition, the method further includes:
  • the preset determination condition input by the user is received.
  • the preset determining condition includes a key character library
  • a character matching the key characters in the key character library among the characters is determined as the sensitive character.
  • the preset determination condition includes a preset character type, and the preset character type includes at least one of a Chinese character, a numeric character, an alphabetic character, and a symbol character;
  • a character belonging to the preset character type among the characters is determined as the sensitive character.
  • the preset determination condition includes a character combination format
  • the determining the sensitive character in the character includes:
  • a character combination of the characters that conforms to the character combination format is determined as the sensitive character.
  • an image processing apparatus includes:
  • a recognition unit configured to identify a character in a picture for which the picture operation is directed in response to a picture operation performed by a user
  • a determining unit configured to determine, according to a preset determination condition, a sensitive character in the character and an area where the sensitive character is located;
  • a processing unit configured to cover an area where the sensitive character is located by using a layer that includes a preset pattern.
  • the picture operation responsive in the identification unit includes an operation in which the user shares the picture.
  • the picture operation responsive in the identification unit includes an operation of the user screen shot to generate the picture.
  • the picture operation responsive in the recognition unit includes the user inputting a desensitization process instruction for the picture.
  • it also includes:
  • a receiving unit configured to receive the preset determination condition input by the user.
  • the preset determination condition in the determining unit includes a key character library
  • the determining unit is specifically configured to determine, as the sensitive character, a character in the character that matches a key character in the key character library.
  • the preset determination condition in the determining unit includes a preset character type, and the preset character type includes at least one of a Chinese character, a numeric character, an alphabetic character, and a symbol character;
  • the determining unit is specifically configured to determine, as the sensitive character, a character that belongs to the preset character type in the character.
  • the preset determination condition in the determining unit includes a character combination format
  • the determining unit is specifically configured to determine, as the sensitive character, a combination of characters in the character that conforms to the character combination format.
  • the image processing method and device in response to a picture operation performed by a user, identify a character in a picture for which the picture operation is directed, and determine a sensitive character in the character and an area where the sensitive character is located according to a preset determination condition. Then, the layer including the preset pattern is used to cover the area.
  • FIG. 1 is a flowchart of a picture processing method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a picture to be processed provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a picture to be processed provided by another embodiment disclosed in the present specification.
  • FIG. 4 is a schematic diagram of a picture to be processed provided by another embodiment disclosed in the present specification.
  • FIG. 5 is a schematic diagram of a picture to be processed according to still another embodiment disclosed in the present specification.
  • FIG. 6 is a schematic diagram of a processed picture provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a processed picture provided by another embodiment disclosed in the present specification.
  • FIG. 8 is a schematic diagram of a processed picture provided by still another embodiment disclosed in the present specification.
  • FIG. 9 is a schematic diagram of a picture operation provided by an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a picture operation provided by another embodiment disclosed in the present specification.
  • FIG. 11 is a schematic structural diagram of a picture processing apparatus according to an embodiment of the present disclosure.
  • the tool in the user terminal can detect a specific picture operation performed by the user (eg, a specific picture operation can be an operation for the user to send a picture to the friend), and in response to such a picture operation, identify a character in the picture for which the picture operation is directed (eg, , characters can include text, letters, numbers, and symbols). Then, according to the preset discriminating condition (for example, the preset discriminating condition includes a character of a numeric type), the sensitive character in the character is determined (for example, the sensitive character may be a character of a numeric type in the character of the picture) and the area where the sensitive character is located. .
  • a specific picture operation can be an operation for the user to send a picture to the friend
  • identify a character in the picture for which the picture operation is directed eg, characters can include text, letters, numbers, and symbols.
  • the preset discriminating condition for example, the preset discriminating condition includes a character of a numeric type
  • the sensitive character in the character is determined (for
  • the area where the sensitive character is located is covered by using a layer including a preset pattern (for example, the preset pattern may be a pattern).
  • the above tools may include system software tools and application software tools.
  • the app can be an Alipay application.
  • the tool in the Alipay detects that the user uses his account (eg, the account can be an Alipay account) to send a picture to the account of his friend (eg, the friend can be a friend of the user in Alipay)
  • the disclosure of this specification can be used.
  • the picture processing method provided by the multiple embodiments of the embodiment processes the picture.
  • the image processing method provided by the multiple embodiments disclosed in the present specification in response to a picture operation performed by the user, identifies a character in the picture for which the picture operation is directed, and determines a sensitive character and a sensitive character in the character according to the preset determination condition. In the area where you are, use a layer that includes a preset pattern to cover the area. Through the automatic recognition and coverage of sensitive characters, it is possible to quickly, comprehensively and accurately desensitize the image, so that the user can quickly and easily obtain the desensitized image.
  • FIG. 1 is a flowchart of a picture processing method according to an embodiment of the present disclosure.
  • the execution body of the method may be a picture processing tool such as system software or application software. As shown in FIG. 1 , the method specifically includes:
  • Step S110 in response to a picture operation performed by the user, identifying a character in the picture for which the picture operation is directed.
  • the responsive picture operation performed by the user may include: an operation of sharing a picture by the user, or an operation of the user performing a screen capture to generate a picture, or the user inputs a desensitization processing instruction for the picture.
  • the characters recognized therein may include text characters, numeric characters, alphabet characters, and symbol characters.
  • the text characters may include "branch", “pay”, “trea”, etc.; numeric characters may include “0", "1", etc.; alphabet characters may include "A”, "Z”, etc.; symbol characters may include " %", ".”, " ⁇ ”, etc.
  • the characters in the recognition picture can be cut by the optical character recognition (OCR) technology, and the shape of the characters in the picture is cut, and then the template shape or feature extraction is performed on the shape of the cut characters to The character shape is translated into computer characters.
  • OCR optical character recognition
  • the characters in the picture may be identified by using various prior art in various embodiments disclosed in the present specification, which are not limited herein.
  • the characters in the picture are identified in response to an operation by the user to share the picture. More specifically, the character in the picture may be identified in response to an operation of the user selecting a picture in the process of sharing the picture; or, in response to the user selecting a picture in the process of sharing the picture, the input instruction of the picture may be input and recognized. The characters in the picture.
  • the character included in the picture is identified: "1997/10/05".
  • clicking the "desensitize send” button operation identifies the character included in the picture: "1997/10/05".
  • the characters in the picture are identified in response to a desensitization processing instruction entered by the user for the picture. More specifically, the characters in the picture may be identified in response to a desensitization processing instruction input by the user at the editing interface of the picture.
  • the editing interface of the image may be an interface in the image editing application, or an interface for implementing image editing in the system software, or an interface for realizing image editing in the social application.
  • the user opens the image shown in FIG. 4 through system software (eg, photo) and enters the editing interface.
  • system software eg, photo
  • the method of the embodiment recognizes the characters in the picture according to the processing instruction.
  • the recognized characters may include: “V034447”, “Beijing West Railway Station”, “K617”, “Zhangjiakou South Station”, “Beijingxi”, “Zhangjiakounan”, “Opened at 10:24 on October 21, 2017”, “16 Car 010”, “ ⁇ 28.5 yuan”, “net”, “new air conditioning hard seat”, “limited time on the same day”, “1234561995****1162”, “Ailei”, "buy tickets please 12306", “delivery to 95306", “China Railway wishes you a pleasant journey", “21152310431022V034447”, “Beijing West Sale”.
  • the characters in the picture are identified in response to the user performing an operation of taking a screen to generate a picture.
  • the display interface of the user terminal screen is as described in FIG.
  • the captured image includes characters: “China Mobile”, “6:39 PM”, “44%”, “ ⁇ ", “My”, “Total Assets” , “Electronic Voucher”, “Little God”, “Points”, “2552”, “Account Security Insurance”, “Total Assets (Yuan)", “232.33”, “Balance”, “50.00”, “Yuebao” “, “182.33”, “regular”, “0.00”, “fund”, “0.00”, “you have a wealth of tips", “take 1 minute! Quickly understand yourself", “a test”, “ What kind of financial management are you suitable for?" "Yesterday earnings", “+0.01", “balance”, “Yuebao”, “Selection”, “Finance” and “Asset”.
  • step S220 After identifying the characters in the picture, in step S220, the sensitive characters in the characters and the area where the sensitive characters are located are determined according to the preset determination conditions.
  • the preset determination condition may be a default determination condition stored in advance, or may be a determination condition set in advance by the user.
  • the preset determination condition may include at least one of a key character library, a preset character type, and a character combination format.
  • the key character library includes the user-preset key characters "Ailei” and "123456199512151162".
  • the character recognized in step S210 is the character in FIG. Correspondingly, you can determine the sensitive character in the picture as "Ailei”.
  • the preset discrimination condition includes a preset character type.
  • the preset character type includes at least one of a text character, a numeric character, an alphabetic character, and a symbol character. Determining the sensitive character in the character may include: determining a character belonging to the preset character type among the characters recognized in the picture as a sensitive character.
  • the default character type is a numeric character.
  • the character recognized in step S210 is the character in FIG.
  • the sensitive characters in the picture include: "034447”, “617”, “Zhangjiakounan”, “2017” “10”, “21”, “10”, “24”, “16”, “010” , “28”, “5", "1234561995", “1162”, “12306”, “95306", "21152310431022”, "034447”.
  • the character combination format in the preset discrimination condition includes a date format consisting of 4 numeric characters + symbol characters "/" + 2 numeric characters + symbol characters "/" + 2 numeric characters.
  • the character recognized in step S210 is the character in FIG. Correspondingly, you can determine the sensitive characters in the picture: "1997/10/05".
  • the character combination format in the preset discrimination condition includes a currency amount format consisting of an arbitrary number of numeric characters + a symbol character ".” + 2 numeric characters.
  • the character recognized in step S210 is the character in FIG.
  • the sensitive characters in the picture include: "232.33”, “50.00”, “182.33”, “0.00", "0.00", "+0.01".
  • the area where the sensitive characters are located is also determined.
  • This area can be an area range that includes sensitive characters, including sensitive characters, and does not include other characters in the picture.
  • step S230 the area in which the sensitive character is located is overwritten using the layer including the preset pattern.
  • the preset pattern may include: a black and white square pattern, a pattern “*”, a frosted glass effect pattern, and the like, which are not limited thereto.
  • the preset pattern is a frosted glass effect pattern
  • the sensitive character is "2017/07/09" in FIG.
  • the covered image is shown in Figure 6.
  • the preset pattern is a black and white square pattern
  • the sensitive character is "Ailei" in FIG.
  • the preset pattern is the pattern "*"
  • the sensitive characters are "232.33", “50.00”, “182.33”, “0.00", "0.00", “+0.01” in FIG.
  • the covered picture is shown in Figure 8.
  • the method may further include: performing the picture operation by using the desensitized picture obtained in step S230.
  • the picture operation responded in step S210 is an operation in which the user shares a picture.
  • the method further includes: sharing the picture after desensitization in step S230.
  • the operation of the picture shown in FIG. 9 is selected, the desensitized picture is generated, and the user is provided with a preview so that the user can preview After confirming the error, click the “Send” button to complete the sharing of the image.
  • the picture operation responsive in step S210 is a user input desensitization processing instruction for the picture.
  • the method further includes: storing the image desensitized in step S230.
  • the picture operation responded in step S210 is an operation of the user performing a screen shot generation picture.
  • the method further includes: storing the desensitized screen shot image generated in step S230, or simultaneously storing the screen capture image that has not undergone desensitization processing and the desensitized processing image.
  • the image processing method determines the characters in the picture for which the picture operation is directed in response to the picture operation performed by the user, and determines the sensitive characters in the characters according to the preset determination condition. And the area where the sensitive character is located, and then overlay the area by using a layer including a preset pattern.
  • the embodiments disclosed in the present specification further provide a picture processing device.
  • the device includes:
  • the identifying unit 1110 is configured to identify a character in a picture for which the picture operation is directed in response to a picture operation performed by the user;
  • a determining unit 1120 configured to determine, according to a preset determination condition, a sensitive character in the character and an area where the sensitive character is located;
  • the processing unit 1130 is configured to cover an area where the sensitive character is located by using a layer including a preset pattern.
  • the picture operation responsive in the recognition unit 1110 includes an operation in which the user shares the picture.
  • the picture operation responsive in the recognition unit 1110 includes an operation of the user screen shot generating a picture.
  • the picture operation responsive in the recognition unit 1110 includes the user inputting a desensitization process instruction for the picture.
  • the device further includes:
  • the receiving unit 1140 is configured to receive a preset determination condition input by the user.
  • the preset determination condition in the determining unit 1120 includes a key character library
  • the determining unit 1120 is specifically configured to determine, as a sensitive character, a character in the character that matches a key character in the key character library.
  • the preset determination condition in the determining unit 1120 includes a preset character type, and the preset character type includes at least one of a Chinese character, a numeric character, an alphabetic character, and a symbol character;
  • the determining unit 1120 is specifically configured to determine a character belonging to the preset character type in the character as a sensitive character.
  • the preset determination condition in the determining unit 1120 includes a character combination format
  • the determining unit 1120 is specifically configured to determine, as a sensitive character, a combination of characters in the character that conforms to the character combination format.
  • the recognition unit 1110 identifies a character in the picture for which the picture operation is directed in response to a picture operation performed by the user, and the determining unit 1120 determines the condition according to the preset condition.
  • the sensitive character in the character and the area in which the sensitive character is located are determined, and the processing unit 1130 overwrites the area using the layer including the preset pattern.
  • the image processing apparatus described above is embodied as part of system software, such as tools in system software.
  • the image processing device is implemented as a plug-in or a tool in an application software or an App, and the application software or App may be social software, image processing software, or the like.
  • the image processing apparatus may provide multiple access options, such as providing a “one button security” or “auto desensitization” button in the image processing interface, and providing a “desensitization sending” button on the image sharing interface.
  • the "Desensitization Screen Capture” option is provided in the system pull-down function item.
  • the picture processing device described above is automatically executed in response to a particular user operation.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Character Input (AREA)
  • User Interface Of Digital Computer (AREA)
  • Character Discrimination (AREA)

Abstract

本说明书披露的实施例提供的一种图片处理方法,该方法包括:响应于用户进行的图片操作,识别该图片操作所针对的图片中的字符。接着,根据预设判别条件,确定识别出的字符中的敏感字符以及该敏感字符所在的区域。然后,使用包括预设图案的图层,对敏感字符所在的区域进行覆盖。

Description

图片处理方法及装置 技术领域
本说明书披露的多个实施例涉及互联网技术领域,尤其涉及一种图片处理方法及装置。
背景技术
随着互联网技术的发展,人们越来越多的在社交平台中发布图片或者向好友发送图片。在某些情况下,图片中会包括一些个人信息,如身份信息、账户信息等。例如,用户在考试成绩查询网站上下载的成绩单图片中,通常会包括用户的真实姓名和身份证号等。又例如,用户在截取支付软件的使用界面时,往往会包括一些交易信息。此时,如果用户在社交平台上直接发布这些包括个人信息的图片,将会造成个人信息的泄露,因此,需要对图片进行脱敏处理。
目前,用户对图片进行脱敏处理时的操作过于繁琐。因此,需要提供更加可靠的方案,以使用户能够快速获取经过全面准确地脱敏处理后的图片。
发明内容
本说明书描述了一种图片处理方法及装置,根据预设判别条件确定图片的敏感字符,并使用包括预设图案的图层对敏感字符所在的区域进行覆盖,从而实现快速全面准确地对图片进行脱敏处理。
第一方面,提供了一种图片处理方法。该方法包括:
响应于用户进行的图片操作,识别所述图片操作所针对的图片中的字符;
根据预设判别条件,确定所述字符中的敏感字符以及所述敏感字符所在的区域;
使用包括预设图案的图层,对所述敏感字符所在的区域进行覆盖。
在一种可能的实施方式中,所述图片操作包括所述用户分享所述图片的操作。
在一种可能的实施方式中,所述图片操作包括所述用户截屏生成所述图片的操作。
在一种可能的实施方式中,所述图片操作包括所述用户针对所述图片输入脱敏处理指令。
在一种可能的实施方式中,在所述根据预设判别条件,确定所述字符中的敏感字符之前,还包括:
接收用户输入的所述预设判别条件。
在一种可能的实施方式中,所述预设判别条件包括关键字符库;
所述确定所述字符中的敏感字符,包括:
将所述字符中与所述关键字符库中的关键字符相匹配的字符,确定为所述敏感字符。
在一种可能的实施方式中,所述预设判别条件包括预设字符类型,所述预设字符类型包括汉字字符、数字字符、字母字符和符号字符中的至少一种;
所述确定所述字符中的敏感字符,包括:
将所述字符中属于所述预设字符类型的字符,确定为所述敏感字符。
在一种可能的实施方式中,所述预设判别条件包括字符组合格式,所述确定所述字符中的敏感字符,包括:
将所述字符中符合所述字符组合格式的字符组合,确定为所述敏感字符。
第二方面,提供了一种图片处理装置。该装置包括:
识别单元,用于响应于用户进行的图片操作,识别所述图片操作所针对的图片中的字符;
确定单元,用于根据预设判别条件,确定所述字符中的敏感字符以及所述敏感字符所在的区域;
处理单元,用于使用包括预设图案的图层,对所述敏感字符所在的区域进行覆盖。
在一种可能的设计中,所述识别单元中响应的所述图片操作包括所述用户分享所述图片的操作。
在一种可能的设计中,所述识别单元中响应的所述图片操作包括所述用户截屏生成所述图片的操作。
在一种可能的设计中,所述识别单元中响应的所述图片操作包括所述用户针对所述图片输入脱敏处理指令。
在一种可能的设计中,还包括:
接收单元,用于接收用户输入的所述预设判别条件。
在一种可能的设计中,所述确定单元中所述预设判别条件包括关键字符库;
所述确定单元具体用于,将所述字符中与所述关键字符库中的关键字符相匹配的字符,确定为所述敏感字符。
在一种可能的设计中,所述确定单元中所述预设判别条件包括预设字符类型,所述预设字符类型包括汉字字符、数字字符、字母字符和符号字符中的至少一种;
所述确定单元具体用于,将所述字符中属于所述预设字符类型的字符,确定为所述敏感字符。
在一种可能的设计中,所述确定单元中所述预设判别条件包括字符组合格式;
所述确定单元具体用于,将所述字符中符合所述字符组合格式的字符组合,确定为所述敏感字符。
本说明书提供的一种图片处理方法及装置,响应于用户进行的图片操作,识别该图片操作所针对的图片中的字符,根据预设判别条件,确定字符中的敏感字符以及敏感字符所在的区域,再使用包括预设图案的图层,对该区域进行覆盖。通过对敏感字符的自动识别和覆盖,从而实现快速、全面、准确的对图片进行脱敏处理,使用户能够方便快捷地获取脱敏处理后的图片。
附图说明
为了更清楚地说明本说明书披露的多个实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书披露的多个实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本说明书披露的一个实施例提供的图片处理方法的流程图;
图2为本说明书披露的一个实施例提供的待处理的图片的示意图;
图3为本说明书披露的另一个实施例提供的待处理的图片的示意图;
图4为本说明书披露的又一个实施例提供的待处理的图片的示意图;
图5为本说明书披露的再一个实施例提供的待处理的图片的示意图;
图6为本说明书披露的一个实施例提供的处理后的图片的示意图;
图7为本说明书披露的另一个实施例提供的处理后的图片的示意图;
图8为本说明书披露的又一个实施例提供的处理后的图片的示意图;
图9为本说明书披露的一个实施例提供的图片操作的示意图;
图10为本说明书披露的另一个实施例提供的图片操作的示意图;
图11为本说明书披露的一个实施例提供的图片处理装置结构示意图。
具体实施方式
下面结合附图,对本说明书披露的多个实施例进行描述。
首先,对本说明书披露的多个实施例提供的图片处理方法的应用场景进行介绍。用户终端中的工具可以检测用户进行的特定图片操作(如,特定图片操作可以为用户向好友发送图片的操作),响应于这样的图片操作,识别该图片操作所针对的图片中的字符(如,字符可以包括文字、字母、数字和符号)。然后,根据预设判别条件(如,预设判别条件包括数字类型的字符),确定字符中的敏感字符(如,敏感字符可以为图片的字符中属于数字类型的字符)以及敏感字符所在的区域。接着,使用包括预设图案(如,预设图案可以为花纹图案)的图层,对敏感字符所在的区域进行覆盖。上述工具可以包括系统软件工具和应用软件工具。例如,应用可以为支付宝应用。相应地,当支付宝中的工具检测到用户使用其账户(如,账户可以为支付宝账户)向其好友(如,好友可以为用户在支付宝中的好友)的账户发送图片时,可以采用本说明书披露的多个实施例提供的图片处理方法对该图片进行处理。
采用本说明书披露的多个实施例提供的图片处理方法,响应于用户进行的图片操作,识别该图片操作所针对的图片中的字符,根据预设判别条件,确定字符中的敏感字符以及敏感字符所在的区域,再使用包括预设图案的图层,对该区域进行覆盖。通过对敏感字符的自动识别和覆盖,从而实现快速、全面、准确的对图片进行脱敏处理,使用户能 够方便快捷地获取脱敏处理后的图片。
图1为本说明书披露的一个实施例提供的图片处理方法的流程图。所述方法的执行主体可以为图片处理工具:如系统软件或应用软件等。如图1所示,所述方法具体包括:
步骤S110,响应于用户进行的图片操作,识别该图片操作所针对的图片中的字符。
具体的,所响应的用户进行的图片操作,可以包括:用户分享图片的操作,或用户进行截屏生成图片的操作,或用户针对图片输入脱敏处理指令。其中所识别的字符可以包括文字字符、数字字符、字母字符和符号字符等。例如,文字字符可以包括“支”、“付”、“宝”等;数字字符可以包括“0”、“1”等;字母字符可以包括“A”、“Z”等;符号字符可以包括“%”、“.”、“¥”等。
可以理解,识别图片中的字符可以采用光学字符识别(Optical Character Recognition,简称OCR)技术,对图片中的字符形状进行切割,然后对切割的字符形状进行模板匹配或者特征提取,以将图片中的字符形状翻译成计算机字符。本说明书所披露的多个实施例中可以采用多种现有技术对图片中的字符进行识别,在此不作限定。
在一个实施例中,响应于用户分享图片的操作,识别该图片中的字符。更具体地,可以响应于用户在分享图片过程中选取图片的操作,识别该图片中的字符;或者,可以响应于用户在分享图片过程中选取图片后,输入的对该图片的发送指令,识别该图片中的字符。
在一个例子中,响应于用户在分享图片的过程中、选取图2中所示图片的操作,识别该图片中包括的字符:“1997/10/05”。
在另一个例子中,响应于用户在分享图片过程中选取图3中所示图片后,点击“脱敏发送”按钮的操作,识别该图片中包括的字符:“1997/10/05”。
在另一个实施例中,响应于用户针对图片输入的脱敏处理指令,识别该图片中的字符。更具体地,可以响应于用户在对图片的编辑界面输入的脱敏处理指令,识别该图片中的字符。其中图片的编辑界面可以为图片编辑应用中的界面,或者系统软件中实现图片编辑的界面,又或者是社交应用中实现图片编辑的界面。
在一个例子中,用户通过系统软件(如,照片)打开如图4所示的图片,并进入编辑界面。当用户在编辑界面点击“一键安全”按钮时,本实施例的方法根据该处理指令,识别图片中的字符。所识别的字符可以包括:“V034447”、“北京西站”、“K617”、“张家口南站”、“Beijingxi”、“Zhangjiakounan”、“2017年10月21日10:24开”、 “16车010号”、“¥28.5元”、“网”、“新空调硬座”、“限乘当日当次车”、“1234561995****1162”、“艾乐帝”、“买票请到12306”、“发货请到95306”、“中国铁路祝您旅途愉快”、“21152310431022V034447”、“北京西售”。
在又一个实施例中,响应于用户进行截屏生成图片的操作,识别该图片中的字符。
在一个例子中,用户终端屏幕的显示界面如图5所述。响应于用户进行截屏生成图片的操作,可以识别出所截取的图片中包括字符:“中国移动”、“下午6:39”、“44%”、“<”、“我的”、“总资产”、“电子凭证”、“小神”、“积分”、“2552”、“账户安全险保障中”、“总资产(元)”、“232.33”、“余额”、“50.00”、“余额宝”、“182.33”、“定期”、“0.00”、“基金”、“0.00”、“你有1个财富锦囊”、“花1分钟!快速了解自己”、“一测便知”、“你到底适合何种理财方式”、“昨日收益”、“+0.01”、“余额”、“余额宝”、“精选”、“理财”和“资产”。
在识别图片中的字符后,在步骤S220,根据预设判别条件,确定字符中的敏感字符以及敏感字符所在的区域。
具体地,预设判别条件可以为预先存储的默认判别条件,也可以为由用户预先设置的判别条件。另外,预设判别条件可以包括关键字符库、预设字符类型和字符组合格式中的至少一种。
在一个实施例中,预设判别条件包括关键字符库。确定字符中的敏感字符可以包括:将从图片中识别出的字符与关键字符库中的关键字符相匹配的字符,确定为敏感字符。
在一个例子中,关键字符库中包括用户预设的关键字符“艾乐帝”、“123456199512151162”。在步骤S210中识别出的字符为图4中的字符。相应的,可以确定图片中的敏感字符为“艾乐帝”。
在另一个实施例中,预设判别条件包括预设字符类型。预设字符类型包括文字字符、数字字符、字母字符和符号字符中的至少一种。确定字符中的敏感字符可以包括:将从图片中识别出的字符中、属于预设字符类型的字符,确定为敏感字符。
在一个例子中,预设字符类型为数字字符。在步骤S210中识别出的字符为图4中的字符。相应的,可以确定图片中的敏感字符包括:“034447”、“617”、“Zhangjiakounan”、“2017”“10”、“21”、“10”、“24”、“16”、“010”、“28”、“5”、“1234561995”“1162”、“12306”、“95306”、“21152310431022”、“034447”。
在又一个实施例中,预设判别条件包括字符组合格式。确定字符中的敏感字符可以包括:将从图片中识别出的字符中、符合字符组合格式的字符组合,确定为敏感字符。
在一个例子中,预设判别条件中的字符组合格式包括,由4个数字字符+符号字符“/”+2个数字字符+符号字符“/”+2个数字字符组成的日期格式。在步骤S210中识别出的字符为图3中的字符。相应的,可以确定图片中的敏感字符为:“1997/10/05”。
在另一个例子中,预设判别条件中的字符组合格式包括,由任意个数的数字字符+符号字符“.”+2个数字字符组成的货币数额格式。在步骤S210中识别出的字符为图5中的字符。相应的,可以确定图片中的敏感字符包括:“232.33”、“50.00”、“182.33”、“0.00”、“0.00”、“+0.01”。
需要说明的是,在确定敏感字符后,敏感字符所在的区域也随着确定。该区域可以为以敏感字符为中心的包括敏感字符在内、不包括图片中其它字符的面积范围。
接着,在步骤S230,使用包括预设图案的图层,对敏感字符所在的区域进行覆盖。
具体地,预设图案可以包括:黑白方块图案、图案“*”、毛玻璃效果图案等,对此不作限定。
在一个例子中,预设图案为毛玻璃效果图案,敏感字符为图3中的“2017/07/09”。使用包括毛玻璃效果图案的图层,对“2017/07/09”所在的区域进行覆盖,覆盖后的图片如图6所示。
在另一个例子中,预设图案为黑白方块图案,敏感字符为图4中的“艾乐帝”。使用包括黑白方块图案的图层,对“艾乐帝”所在的区域进行覆盖,覆盖后的图片如图7所示。
在又一个例子中,预设图案为图案“*”,敏感字符为图5中的“232.33”、“50.00”、“182.33”、“0.00”、“0.00”、“+0.01”。使用包括图案“*”的图层,对这些敏感字符所在的区域进行覆盖,覆盖后的图片如图8所示。
需要说明的是,在步骤S230之后,与步骤S210中所响应的用户进行的图片操作相应的,还可以包括:使用步骤S230中得到的脱敏处理后的图片,继续执行图片操作。
在一个实施例中,在步骤S210中所响应的图片操作为用户分享图片的操作。相应地,在步骤S230之后,还可以包括:对步骤S230中进行脱敏处理后的图片进行分享。
在一个例子中,如图9所示,响应于用户在分享图片的过程中,选取图9所示图片 的操作,生成脱敏处理后的图片,并向用户提供预览,以使用户可以通过预览确认无误后点击“发送”按钮,完成对图片的分享操作。
在另一个例子中,如图10所示,响应于用户在分享图片过程中选取图片后,点击“脱敏发送”的操作,生成脱敏处理后的图片后直接发送该图片。
在另一个实施例中,在步骤S210中所响应的图片操作为用户针对图片输入脱敏处理指令。相应地,在步骤S230之后,还可以包括:对步骤S230中进行脱敏处理后的图片进行存储。
在又一个实施例中,在步骤S210中所响应的图片操作为用户进行截屏生成图片的操作。相应地,在步骤S230之后,还可以包括:对步骤S230中生成的脱敏处理后的截屏图片进行存储,或者,同时存储未经过脱敏处理的截屏图片和经过脱敏处理后的图片。
由上可知,采用本说明书披露的一个实施例提供的图片处理方法,响应于用户进行的图片操作,识别该图片操作所针对的图片中的字符,根据预设判别条件,确定字符中的敏感字符以及敏感字符所在的区域,再使用包括预设图案的图层,对该区域进行覆盖。通过对敏感字符的自动识别和覆盖,从而实现快速、全面、准确的对图片进行脱敏处理,使用户能够方便快捷地获取脱敏处理后的图片。
与上述图片处理方法对应地,本说明书披露的多个实施例还提供一种图片处理装置,如图11所示,该装置包括:
识别单元1110,用于响应于用户进行的图片操作,识别图片操作所针对的图片中的字符;
确定单元1120,用于根据预设判别条件,确定字符中的敏感字符以及敏感字符所在的区域;
处理单元1130,用于使用包括预设图案的图层,对敏感字符所在的区域进行覆盖。
在一种可能的设计中,识别单元1110中响应的图片操作包括用户分享图片的操作。
在一种可能的设计中,识别单元1110中响应的图片操作包括用户截屏生成图片的操作。
在一种可能的设计中,识别单元1110中响应的图片操作包括用户针对图片输入脱敏处理指令。
在一种可能的设计中,该装置还包括:
接收单元1140,用于接收用户输入的预设判别条件。
在一种可能的设计中,确定单元1120中预设判别条件包括关键字符库;
确定单元1120具体用于,将字符中与关键字符库中的关键字符相匹配的字符,确定为敏感字符。
在一种可能的设计中,确定单元1120中预设判别条件包括预设字符类型,预设字符类型包括汉字字符、数字字符、字母字符和符号字符中的至少一种;
确定单元1120具体用于,将字符中属于预设字符类型的字符,确定为敏感字符。
在一种可能的设计中,确定单元1120中预设判别条件包括字符组合格式;
确定单元1120具体用于,将字符中符合字符组合格式的字符组合,确定为敏感字符。
由上可知,采用本说明书披露的一个实施例提供的图片处理装置,识别单元1110响应于用户进行的图片操作,识别该图片操作所针对的图片中的字符,确定单元1120根据预设判别条件,确定字符中的敏感字符以及敏感字符所在的区域,处理单元1130使用包括预设图案的图层,对该区域进行覆盖。通过对敏感字符的自动识别和覆盖,从而实现快速、全面、准确的对图片进行脱敏处理,使用户能够方便快捷地获取脱敏处理后的图片。
在一个实施例中,上述图片处理装置体现为系统软件的一部分,例如系统软件中的工具。在另一实施例中,上述图片处理装置体现为应用软件或App中的插件或工具,上述应用软件或App可以是社交软件、图片处理软件等。
在一种实施方式中,上述图片处理装置可以提供多种接入选项,例如在图片处理界面提供“一键安全”或“自动脱敏”按钮,在图片分享界面提供“脱敏发送”按钮,在系统下拉功能项中提供“脱敏截屏”的选项等。在另一种实施方式中,上述图片处理装置响应于特定用户操作自动执行。
以上所述的具体实施方式,对本说明书披露的多个实施例的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本说明书披露的多个实施例的具体实施方式而已,并不用于限定本说明书披露的多个实施例的保护范围,凡在本说明书披露的多个实施例的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本说明书披露的多个实施例的保护范围之内。

Claims (16)

  1. 一种图片处理方法,其特征在于,包括:
    响应于用户进行的图片操作,识别所述图片操作所针对的图片中的字符;
    根据预设判别条件,确定所述字符中的敏感字符以及所述敏感字符所在的区域;
    使用包括预设图案的图层,对所述敏感字符所在的区域进行覆盖。
  2. 根据权利要求1所述的方法,其特征在于,所述图片操作包括所述用户分享所述图片的操作。
  3. 根据权利要求1所述的方法,其特征在于,所述图片操作包括所述用户截屏生成所述图片的操作。
  4. 根据权利要求1所述的方法,其特征在于,所述图片操作包括所述用户针对所述图片输入脱敏处理指令。
  5. 根据权利要求1所述的方法,其特征在于,在所述根据预设判别条件,确定所述字符中的敏感字符之前,还包括:
    接收用户输入的所述预设判别条件。
  6. 根据权利要求1所述的方法,其特征在于,所述预设判别条件包括关键字符库;
    所述确定所述字符中的敏感字符,包括:
    将所述字符中与所述关键字符库中的关键字符相匹配的字符,确定为所述敏感字符。
  7. 根据权利要求1所述的方法,其特征在于,所述预设判别条件包括预设字符类型,所述预设字符类型包括汉字字符、数字字符、字母字符和符号字符中的至少一种;
    所述确定所述字符中的敏感字符,包括:
    将所述字符中属于所述预设字符类型的字符,确定为所述敏感字符。
  8. 根据权利要求1所述的方法,其特征在于,所述预设判别条件包括字符组合格式,所述确定所述字符中的敏感字符,包括:
    将所述字符中符合所述字符组合格式的字符组合,确定为所述敏感字符。
  9. 一种图片处理装置,其特征在于,包括:
    识别单元,用于响应于用户进行的图片操作,识别所述图片操作所针对的图片中的字符;
    确定单元,用于根据预设判别条件,确定所述字符中的敏感字符以及所述敏感字符所在的区域;
    处理单元,用于使用包括预设图案的图层,对所述敏感字符所在的区域进行覆盖。
  10. 根据权利要求9所述的装置,其特征在于,所述识别单元中响应的所述图片操作包括所述用户分享所述图片的操作。
  11. 根据权利要求9所述的装置,其特征在于,所述识别单元中响应的所述图片操作包括所述用户截屏生成所述图片的操作。
  12. 根据权利要求9所述的装置,其特征在于,所述识别单元中响应的所述图片操作包括所述用户针对所述图片输入脱敏处理指令。
  13. 根据权利要求9所述的装置,其特征在于,还包括:
    接收单元,用于接收用户输入的所述预设判别条件。
  14. 根据权利要求9所述的装置,其特征在于,所述确定单元中所述预设判别条件包括关键字符库;
    所述确定单元具体用于,将所述字符中与所述关键字符库中的关键字符相匹配的字符,确定为所述敏感字符。
  15. 根据权利要求9所述的装置,其特征在于,所述确定单元中所述预设判别条件包括预设字符类型,所述预设字符类型包括汉字字符、数字字符、字母字符和符号字符中的至少一种;
    所述确定单元具体用于,将所述字符中属于所述预设字符类型的字符,确定为所述敏感字符。
  16. 根据权利要求9所述的装置,其特征在于,所述确定单元中所述预设判别条件包括字符组合格式;
    所述确定单元具体用于,将所述字符中符合所述字符组合格式的字符组合,确定为所述敏感字符。
PCT/CN2018/111544 2017-12-14 2018-10-24 图片处理方法及装置 WO2019114418A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711338701.6A CN108153468A (zh) 2017-12-14 2017-12-14 图片处理方法及装置
CN201711338701.6 2017-12-14

Publications (1)

Publication Number Publication Date
WO2019114418A1 true WO2019114418A1 (zh) 2019-06-20

Family

ID=62466134

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/111544 WO2019114418A1 (zh) 2017-12-14 2018-10-24 图片处理方法及装置

Country Status (3)

Country Link
CN (1) CN108153468A (zh)
TW (1) TW201928880A (zh)
WO (1) WO2019114418A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4064114A4 (en) * 2019-12-24 2023-01-04 Zhuhai Pantum Electronics Co., Ltd. IMAGE PROCESSING METHOD AND APPARATUS, ELECTRONIC DEVICE, AND STORAGE MEDIA

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153468A (zh) * 2017-12-14 2018-06-12 阿里巴巴集团控股有限公司 图片处理方法及装置
CN110633457B (zh) * 2018-06-22 2023-05-26 广州金山移动科技有限公司 一种内容替换方法、装置、电子设备及可读存储介质
CN109325326B (zh) * 2018-08-16 2022-09-30 深圳云安宝科技有限公司 非结构化数据访问时的数据脱敏方法、装置、设备及介质
CN109472847A (zh) * 2018-10-16 2019-03-15 平安普惠企业管理有限公司 一种图片处理方法、系统及终端设备
CN109710362B (zh) * 2018-12-26 2020-02-07 掌阅科技股份有限公司 截图处理方法、计算设备及计算机存储介质
CN109872284A (zh) * 2019-01-18 2019-06-11 平安普惠企业管理有限公司 图像信息脱敏方法、装置、计算机设备及存储介质
CN110188565A (zh) * 2019-04-17 2019-08-30 平安科技(深圳)有限公司 数据脱敏方法、装置、计算机设备及存储介质
CN111782107A (zh) * 2020-06-30 2020-10-16 联想(北京)有限公司 信息处理方法、装置、计算机系统及可读存储介质
CN113222809B (zh) * 2021-05-21 2023-05-26 支付宝(杭州)信息技术有限公司 实现隐私保护的图片处理方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484612A (zh) * 2014-11-19 2015-04-01 中电长城(长沙)信息技术有限公司 一种用于远程桌面应用中的敏感信息屏蔽方法及系统
CN106570408A (zh) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 敏感信息的展现方法和装置
CN107145795A (zh) * 2017-04-28 2017-09-08 广东欧珀移动通信有限公司 截图方法、装置及计算机设备
CN108153468A (zh) * 2017-12-14 2018-06-12 阿里巴巴集团控股有限公司 图片处理方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631393A (zh) * 2014-11-06 2016-06-01 阿里巴巴集团控股有限公司 信息识别方法及装置
CN105991670B (zh) * 2015-01-28 2020-02-14 中兴通讯股份有限公司 数据分享方法、数据分享装置及终端
CN107330848A (zh) * 2017-05-18 2017-11-07 捷开通讯(深圳)有限公司 图片处理方法、移动终端和存储设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484612A (zh) * 2014-11-19 2015-04-01 中电长城(长沙)信息技术有限公司 一种用于远程桌面应用中的敏感信息屏蔽方法及系统
CN106570408A (zh) * 2015-10-08 2017-04-19 阿里巴巴集团控股有限公司 敏感信息的展现方法和装置
CN107145795A (zh) * 2017-04-28 2017-09-08 广东欧珀移动通信有限公司 截图方法、装置及计算机设备
CN108153468A (zh) * 2017-12-14 2018-06-12 阿里巴巴集团控股有限公司 图片处理方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4064114A4 (en) * 2019-12-24 2023-01-04 Zhuhai Pantum Electronics Co., Ltd. IMAGE PROCESSING METHOD AND APPARATUS, ELECTRONIC DEVICE, AND STORAGE MEDIA

Also Published As

Publication number Publication date
CN108153468A (zh) 2018-06-12
TW201928880A (zh) 2019-07-16

Similar Documents

Publication Publication Date Title
WO2019114418A1 (zh) 图片处理方法及装置
TWI667592B (zh) 基於增強實境的虛擬對象分配方法及裝置
US10387742B2 (en) Extracting card data for simultaneous display with an image
US10043184B2 (en) Systems and methods for implementing transactions based on facial recognition
US10742844B2 (en) Hiding sensitive data
CN112804445A (zh) 显示方法、装置和电子设备
EP3176719A1 (en) Methods and devices for acquiring certification document
WO2021244531A1 (zh) 一种基于人脸识别的支付方法及装置
US20210264299A1 (en) Fraud estimation system, fraud estimation method and program
US11100572B1 (en) Customer verification and account creation systems and methods
EP3118760B1 (en) Authentication information management system, authentication information management device, program, recording medium, and authentication information management method
WO2020019977A1 (zh) 一种身份验证方法及装置、一种计算设备及存储介质
CN111669744A (zh) 信息处理方法、装置和电子设备
US20150227787A1 (en) Photograph billpay tagging
CN112785312A (zh) 信息共享方法、装置、电子设备和可读存储介质
US20130317805A1 (en) Systems and methods for detecting real names in different languages
CN113407959B (zh) 操作执行方法、装置及电子设备
CN110298206B (zh) 信息处理方法及相关设备
KR100953111B1 (ko) 온라인 파일 보안 방법
CN112001725A (zh) 基于电子签名工具的交易异议申请信息发送方法和装置
CN115329390A (zh) 基于隐私保护计算的金融隐私信息的安全审核方法及装置
CN114531290A (zh) 登录信息管理方法、登录信息管理装置和电子设备
CN116127117A (zh) 信息显示方法及装置
JP2009211493A (ja) 自動受付端末、及び自動受付方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18887490

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18887490

Country of ref document: EP

Kind code of ref document: A1