CN110992446A - Picture auditing method - Google Patents

Picture auditing method Download PDF

Info

Publication number
CN110992446A
CN110992446A CN201911228004.4A CN201911228004A CN110992446A CN 110992446 A CN110992446 A CN 110992446A CN 201911228004 A CN201911228004 A CN 201911228004A CN 110992446 A CN110992446 A CN 110992446A
Authority
CN
China
Prior art keywords
picture
text content
point coordinate
template
text
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201911228004.4A
Other languages
Chinese (zh)
Inventor
亢博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Santi Video Technology Co ltd
Original Assignee
Hangzhou Santi Video Technology Co ltd
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 Hangzhou Santi Video Technology Co ltd filed Critical Hangzhou Santi Video Technology Co ltd
Priority to CN201911228004.4A priority Critical patent/CN110992446A/en
Publication of CN110992446A publication Critical patent/CN110992446A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a picture auditing method, which relates to the technical field of picture identification, and is characterized in that whether a picture is sent or not is judged by removing text contents in the picture and judging whether the text contents contain keywords or not, so that the text contents in the picture are automatically analyzed, filtered and synthesized, and the picture auditing and sending efficiency is improved.

Description

Picture auditing method
Technical Field
The invention relates to the technical field of picture identification, in particular to a picture auditing method.
Background
At present, when pictures are sent to users in short messages, multimedia messages and other modes, the pictures need to be checked to ensure the content safety. In many scenarios, for example, when sending personalized bills and postcards, although the content of the pictures is substantially the same, each picture needs to be audited, which results in low sending efficiency and heavy auditing work.
Disclosure of Invention
In order to solve the defects of the prior art, an embodiment of the present invention provides a picture auditing method, including the following steps:
acquiring a coordinate point of the text content in the picture and removing the text content in the picture to obtain a template of the picture;
performing semantic analysis on the text content and judging whether the text content contains keywords or not according to an analysis result;
if the text content does not contain keywords, writing the text content into the template according to the coordinate point of the text content to generate a synthetic picture;
and coding the synthesized picture into a binary file, and sending the binary file to a user terminal.
Preferably, removing the text content in the picture to obtain the template of the picture includes:
determining a starting position and an ending position of the text content according to the starting point coordinate and the end point coordinate of the text content;
and setting the colors of all pixel points within the range from the starting point coordinate to the end point coordinate to be the same as the background color of the picture.
Preferably, writing the text content into the template, and generating a composite picture includes:
determining the area where the text is located according to the starting point coordinate and the end point coordinate, and converting the text into a picture;
and covering the picture in the template, wherein the upper left corner of the picture corresponds to a starting point coordinate, and the lower right corner of the picture corresponds to a finishing point coordinate.
Preferably, the determining whether the text content contains a keyword includes:
and if the text content contains keywords, the picture is prohibited from being sent.
The picture auditing method provided by the invention has the following beneficial effects:
the method and the device realize automatic analysis, filtering and picture synthesis of the text content in the picture, and improve the picture auditing and sending efficiency.
Detailed Description
The present invention will be described in detail with reference to the following embodiments.
The error correction method for the business report data provided by the embodiment of the invention comprises the following steps:
s101, obtaining a coordinate point of the text content in the picture, removing the text content in the picture, and obtaining a template of the picture.
S102, performing semantic analysis on the text content and judging whether the text content contains keywords or not according to the analysis result.
The keywords comprise sensitive words which violate laws, social posts and obstruct public interests, such as yellow-related words and terrorism.
And S103, if the text content does not contain the keywords, writing the text content into a template according to the coordinate point of the text content to generate a composite picture.
And S104, coding the synthesized picture into a binary file, and sending the binary file to the user terminal.
Optionally, removing text content in the picture to obtain a template of the picture includes:
determining the starting position and the ending position of the text content according to the starting point coordinate and the end point coordinate of the text content;
and setting the colors of all the pixel points within the range from the starting point coordinate to the end point coordinate to be the same as the color of the ground color of the picture.
As a specific example, the starting point coordinate is (x)0,y0) The coordinate of the end point is (x)n,yn) Then the corresponding text content includes n pixel points.
Optionally, writing the text content into the template, and generating the composite picture includes:
determining the area where the text is located according to the starting point coordinate and the end point coordinate, and converting the text into a picture;
and covering the picture in the template, wherein the upper left corner of the picture corresponds to a starting point coordinate, and the lower right corner of the picture corresponds to a terminal point coordinate.
Optionally, the determining whether the text content contains a keyword includes:
and if the text content contains the keywords, the picture is prohibited from being sent.
According to the picture auditing method provided by the embodiment of the invention, whether the picture is sent or not is judged by removing the text content in the picture and judging whether the text content contains the keywords, so that the text content in the picture is automatically analyzed, filtered and synthesized, and the picture auditing and sending efficiency is improved.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In addition, the memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (5)

1. A picture auditing method is characterized by comprising the following steps:
acquiring a coordinate point of the text content in the picture and removing the text content in the picture to obtain a template of the picture;
performing semantic analysis on the text content and judging whether the text content contains keywords or not according to an analysis result;
if the text content does not contain keywords, writing the text content into the template according to the coordinate point of the text content to generate a synthetic picture;
and coding the synthesized picture into a binary file, and sending the binary file to a user terminal.
2. The picture auditing method according to claim 1, wherein removing text content in a picture to obtain a template for the picture comprises:
determining a starting position and an ending position of the text content according to the starting point coordinate and the end point coordinate of the text content;
and setting the colors of all pixel points within the range from the starting point coordinate to the end point coordinate to be the same as the background color of the picture.
3. The picture auditing method according to claim 1 or 2, characterized in that writing the text content into the template to generate a composite picture comprises:
determining the area where the text is located according to the starting point coordinate and the end point coordinate, and converting the text into a picture;
and covering the picture in the template, wherein the upper left corner of the picture corresponds to a starting point coordinate, and the lower right corner of the picture corresponds to a finishing point coordinate.
4. The picture auditing method of claim 1, wherein determining whether the textual content contains keywords comprises:
and if the text content contains keywords, the picture is prohibited from being sent.
5. A computer arrangement comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of claims 1-4 are implemented when the computer program is executed by the processor.
CN201911228004.4A 2019-12-04 2019-12-04 Picture auditing method Pending CN110992446A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911228004.4A CN110992446A (en) 2019-12-04 2019-12-04 Picture auditing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911228004.4A CN110992446A (en) 2019-12-04 2019-12-04 Picture auditing method

Publications (1)

Publication Number Publication Date
CN110992446A true CN110992446A (en) 2020-04-10

Family

ID=70090004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911228004.4A Pending CN110992446A (en) 2019-12-04 2019-12-04 Picture auditing method

Country Status (1)

Country Link
CN (1) CN110992446A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996180A (en) * 2009-08-12 2011-03-30 升东网络科技发展(上海)有限公司 Picture examination and filter system and method
CN103116752A (en) * 2013-02-25 2013-05-22 新浪网技术(中国)有限公司 Picture auditing method and system
CN105654057A (en) * 2015-12-31 2016-06-08 中国建设银行股份有限公司 Picture auditing system and picture auditing method based on picture contents
CN107133221A (en) * 2017-06-09 2017-09-05 北京京东尚科信息技术有限公司 Signal auditing method, device, computer-readable medium and electronic equipment
CN107943839A (en) * 2017-10-30 2018-04-20 百度在线网络技术(北京)有限公司 Method, apparatus, equipment and storage medium based on picture and word generation video
CN108124191A (en) * 2017-12-22 2018-06-05 北京百度网讯科技有限公司 A kind of video reviewing method, device and server
CN109492981A (en) * 2018-09-14 2019-03-19 龙马智芯(珠海横琴)科技有限公司 The checking method and device of information
WO2019127660A1 (en) * 2017-12-30 2019-07-04 惠州学院 Method and system for identifying harmful pictures based on user id
CN110378350A (en) * 2019-07-23 2019-10-25 中国工商银行股份有限公司 A kind of method, apparatus and system of Text region

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996180A (en) * 2009-08-12 2011-03-30 升东网络科技发展(上海)有限公司 Picture examination and filter system and method
CN103116752A (en) * 2013-02-25 2013-05-22 新浪网技术(中国)有限公司 Picture auditing method and system
CN105654057A (en) * 2015-12-31 2016-06-08 中国建设银行股份有限公司 Picture auditing system and picture auditing method based on picture contents
CN107133221A (en) * 2017-06-09 2017-09-05 北京京东尚科信息技术有限公司 Signal auditing method, device, computer-readable medium and electronic equipment
CN107943839A (en) * 2017-10-30 2018-04-20 百度在线网络技术(北京)有限公司 Method, apparatus, equipment and storage medium based on picture and word generation video
CN108124191A (en) * 2017-12-22 2018-06-05 北京百度网讯科技有限公司 A kind of video reviewing method, device and server
WO2019127660A1 (en) * 2017-12-30 2019-07-04 惠州学院 Method and system for identifying harmful pictures based on user id
CN109492981A (en) * 2018-09-14 2019-03-19 龙马智芯(珠海横琴)科技有限公司 The checking method and device of information
CN110378350A (en) * 2019-07-23 2019-10-25 中国工商银行股份有限公司 A kind of method, apparatus and system of Text region

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨虹;王一丁;: "一种不良图片快速过滤方法" *

Similar Documents

Publication Publication Date Title
CN111091350A (en) Method, device and equipment for auditing and processing service data and storage medium
CN106033418B (en) Voice adding and playing method and device, and picture classifying and retrieving method and device
CN109828993B (en) Statistical data query method and device
CN106776655B (en) Web application system display method and device
CN110362547A (en) Coding, parsing, storage method and the device of journal file
CN109582305B (en) Encoding method and device for mobile application page elements and electronic equipment
CN108874379B (en) Page processing method and device
CN112052857A (en) Method and related device for detecting target field in bill image
CN116243919A (en) Interface rendering method, device and medium for interpretation rendering and code rendering
CN108804563B (en) Data labeling method, device and equipment
CN110969547A (en) Text generation method and device
CN108241620B (en) Query script generation method and device
CN110992446A (en) Picture auditing method
CN110347921B (en) Label extraction method and device for multi-mode data information
CN111177093A (en) Method, device and medium for sharing scientific and technological resources
CN114138745A (en) Data integration method and device, storage medium and processor
CN110928540A (en) Page generation method and device
CN114281461A (en) Management method, equipment and medium for configurable data source attributes
CN107608947B (en) HTML file processing method and device and electronic equipment
CN114329495A (en) Endogenous security based asset vulnerability static analysis method and device
CN113129071A (en) Method and device for analyzing product SKU of merchant
CN112835903A (en) Sensitive data identification method and equipment
CN111478985A (en) Service domain name basic information dynamic configuration method
CN113687973B (en) Control method, equipment and medium for log dynamic output
CN114880394B (en) SQL script sharing method, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410