CN115718907A - Font copyright detection method and device - Google Patents
Font copyright detection method and device Download PDFInfo
- Publication number
- CN115718907A CN115718907A CN202211513815.0A CN202211513815A CN115718907A CN 115718907 A CN115718907 A CN 115718907A CN 202211513815 A CN202211513815 A CN 202211513815A CN 115718907 A CN115718907 A CN 115718907A
- Authority
- CN
- China
- Prior art keywords
- font
- text information
- list
- detected
- file
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 claims abstract description 24
- 238000013145 classification model Methods 0.000 claims description 21
- 238000013136 deep learning model Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The invention discloses a font copyright detection method and a font copyright detection device, wherein the method comprises the following steps: acquiring a purchased font list and a public free font list according to a preset configuration file; identifying a first font used in the text information to be detected, comparing the first font according to the purchased font list and the public free font list, and generating a comparison result; and detecting whether the first font has the copyright or not according to the comparison result. The embodiment of the invention improves the detection precision of font copyright.
Description
Technical Field
The invention relates to the technical field of font detection, in particular to a font copyright detection method and device.
Background
With the advent of the computer age, font libraries have become a part of people's work and life. The fonts are designed manually, and each font designer performs secondary creation on elements such as strokes, vision, architecture and the like on the basis of Chinese characters or other characters. Fonts are copyrighted and copyright protected, and font copyright needs to be detected in order to avoid being identified as infringed when a font is not authorized for use.
At present, font copyright detection tools in the market cannot support removal of fonts purchased by an enterprise, so that the fonts purchased by the enterprise and used by the enterprise are judged to be infringing fonts by mistake, and the font copyright detection accuracy is not high.
Disclosure of Invention
The embodiment of the invention provides a font copyright detection method and device, which improve the detection precision of font copyright.
A first aspect of an embodiment of the present application provides a font copyright detection method, including:
acquiring a purchased font list and a public free font list according to a preset configuration file;
identifying a first font used in the text information to be detected, comparing the first font according to the purchased font list and the public free font list, and generating a comparison result;
and detecting whether the first font has the copyright or not according to the comparison result.
In a possible implementation manner of the first aspect, identifying a first font used in the text information to be detected specifically includes:
reading first text information containing different program language types according to a file suffix of a source code file, and taking the first text information as text information to be detected;
and analyzing grammatical features and keyword usages from the text information to be detected according to the program language type, and identifying the font used in the text information to be detected according to the analysis result and using the font as a first font.
In a possible implementation manner of the first aspect, the method further includes:
and inputting the first picture into the font classification model, so that the font classification model detects the font used in the text information to be detected as the first font after acquiring the text information to be detected in the first picture.
In a possible implementation manner of the first aspect, detecting whether the first font has a copyright according to the comparison result specifically includes:
when the first font is judged to belong to the purchased font list or the public free font list according to the comparison result, the first font has copyright;
and when the first font is judged not to belong to the purchased font list or the public free font list according to the comparison result, the first font does not have copyright.
In a possible implementation manner of the first aspect, the method further includes:
when the first font does not have the copyright, if the first font is originated from the source code file, storing a file path, a file name and the first font of the source code file; and if the first font is from the first picture, storing the picture path and the picture name of the first picture.
In a possible implementation manner of the first aspect, the method further includes:
acquiring a list of excludable files according to a preset configuration file;
when a certain file belongs to the list of exclusionable files, font copyright detection is not performed on the certain file.
In a possible implementation manner of the first aspect, the training process of the font classification model specifically includes:
inputting the training picture set into a deep learning model so that the deep learning model is trained according to the training picture set until the deep learning model converges, and generating a font classification model after training; wherein, training picture set includes: pictures containing purchased fonts and public free fonts.
A second aspect of the embodiments of the present application provides a font copyright detection apparatus, including: the device comprises an acquisition module, a comparison module and a detection module;
the acquisition module is used for acquiring a purchased font list and a public free font list according to a preset configuration file;
the comparison module is used for identifying a first font used in the text information to be detected, comparing the first font according to the purchased font list and the public free font list and generating a comparison result;
the detection module is used for detecting whether the first font has the copyright or not according to the comparison result.
In a possible implementation manner of the second aspect, the identifying a first font used in the text information to be detected specifically includes:
reading first text information containing different program language types according to a file suffix of a source code file, and taking the first text information as text information to be detected;
and analyzing grammatical features and keyword usages from the text information to be detected according to the program language type, and identifying the font used in the text information to be detected according to the analysis result and using the font as a first font.
In a possible implementation manner of the second aspect, the method further includes:
and inputting the first picture into the font classification model, so that the font classification model detects the font used in the text information to be detected as the first font after acquiring the text information to be detected in the first picture.
Compared with the prior art, the font copyright detection method and device provided by the embodiment of the invention comprise the following steps: acquiring a purchased font list and a public free font list according to a preset configuration file; identifying a first font used in the text information to be detected, comparing the first font according to the purchased font list and the public free font list, and generating a comparison result; and detecting whether the first font has the copyright or not according to the comparison result.
The beneficial effects are that: in the font copyright detection process, the comparison is carried out according to the public free fonts and the comparison is carried out according to the purchased fonts, and the purchased fonts of each enterprise can be considered in the process of judging whether the used fonts have the copyright, so that the problem of misjudgment caused by the fact that the used fonts which are purchased by the enterprise are infringement fonts in the prior art is solved, and the font copyright detection precision is improved.
Furthermore, the embodiment of the invention can detect the font copyright of all source code files and all picture information containing fonts in the system, thereby realizing the comprehensive detection of the font copyright in the system and overcoming the problem of incomplete detection caused by only checking a font library installed on a computer or identifying pictures for font copyright detection in the prior art.
Moreover, the embodiment of the invention realizes the automatic detection of the font copyright, can avoid the problem of low efficiency caused by the operations of manually intercepting the picture, uploading the picture, manually searching the keyword and the like in the prior art, and greatly improves the detection efficiency of the font copyright.
Finally, the embodiment of the invention can set the preset configuration file according to the actual requirements of each enterprise, can configure the purchased font list according to the actual conditions of the enterprise, can configure the configuration without checking the file according to the actual conditions of the system, and is flexible and convenient.
Drawings
Fig. 1 is a schematic flow chart of a font copyright detection method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a font copyright detection system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a font copyright detecting apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Referring to fig. 1, which is a schematic flow chart of a font copyright detection method according to an embodiment of the present invention, the method includes steps S101 to S103:
s101: and acquiring a purchased font list and a public free font list according to a preset configuration file.
The preset configuration file can be set according to different actual requirements.
S102: and identifying a first font used in the text information to be detected, comparing the first font according to the purchased font list and the public free font list, and generating a comparison result.
In this embodiment, the identifying a first font used in the text information to be detected specifically includes:
reading first text information containing different program language types according to a file suffix of a source code file, and taking the first text information as text information to be detected;
and analyzing grammatical features and keyword usages from the text information to be detected according to the program language type, and identifying the font used in the text information to be detected according to an analysis result and using the font as the first font.
Wherein the source code file comprises: html, css, javaScript, java, C, and Python.
In a specific embodiment, the method further comprises:
inputting the first picture into a font classification model, so that after the font classification model acquires the text information to be detected in the first picture, the font used in the text information to be detected is detected and used as the first font.
In a specific embodiment, the training process of the font classification model specifically includes:
inputting a training picture set into a deep learning model so that the deep learning model is trained according to the training picture set until the deep learning model converges, and generating the font classification model after training; wherein the training picture set comprises: there are pictures of purchased fonts and public free fonts.
S103: and detecting whether the first font has the copyright or not according to the comparison result.
In this embodiment, the detecting whether the first font has a copyright according to the comparison result specifically includes:
when the first font is judged to belong to the purchased font list or the public free font list according to the comparison result, the first font has copyright;
and when the first font is judged not to belong to the purchased font list or the public free font list according to the comparison result, the first font does not possess copyright.
In a specific embodiment, the method further comprises:
when the first font does not have the copyright, if the first font is originated from the source code file, storing a file path, a file name and the first font of the source code file; and if the first font is from the first picture, storing the picture path and the picture name of the first picture.
In a specific embodiment, the method further comprises:
acquiring an exclusionable file list according to the preset configuration file;
and when a certain file belongs to the exclusionable file list, not performing font copyright detection on the certain file.
Further, a specific embodiment of the present invention provides a font copyright detection system, please refer to fig. 2, fig. 2 is a schematic structural diagram of the font copyright detection system provided in an embodiment of the present invention, including: the system comprises a master control unit 201, a configuration file reading module 202, an infringement font checking module 203 and a result writing module 204.
The master control unit 201 is used to implement control of the configuration file reading module 202, the infringing font checking module 203, and the result writing module 204. The configuration file reading module 202 is controlled to read customized configuration information, such as information that the enterprise has purchased copyright fonts (i.e. purchased font list), public free font information (i.e. public free font list), and file list information (i.e. exclusive file list) need not be checked. Then, the control infringement font checking module 203 checks that the designated system relates to the use of the infringement font, and after a checking result is obtained, the control result writing module 204 writes the result of the tool checking into a result file.
The configuration file reading module 202 is configured to read a preset configuration file, where the preset configuration file includes a font list that can be safely used and a file list that does not need to be checked (i.e., a file list that can be excluded), where the font list file that can be safely used includes: a list of purchased fonts and a list of public free fonts. But safe use typeface list can be used to typeface copyright detection, discerns infringement typeface, need not to examine the file list and can let the instrument directly filter partial file, promotes inspection efficiency.
Wherein the list of files that need not be checked includes mainly some third party dependent library files of the system, so that no checking of such files is required.
Further, reading a configuration file which can be safely used, and maintaining a font list which can be safely used in a memory; and reading the configuration file of the exclusionable file, and maintaining an exclusionable file list in the memory.
The workflow of the infringing font checking module 203 is as follows:
firstly, reading source code file contents of various program languages, such as program languages of Html, css, javaScript, java, C, python and the like, acquiring all files of various program languages in a specified system according to file suffixes, reading text information of the source code files, and taking the text information as text information to be detected. And analyzing grammar and keywords which are possibly used for setting fonts according to different program language types, and identifying the fonts set in the source codes as first fonts by analyzing grammar characteristics and keyword usages from the text information to be detected. And comparing the first font with the purchased font list and the public free font list to judge whether the unauthorized font is used. If the unauthorized font is used, the file path, the file name and the file content related to infringement of the source code file using the unauthorized font are recorded.
Meanwhile, the system establishes a font classification model to identify the fonts of characters used by various picture resources by learning the characteristics of pictures containing purchased fonts and public free fonts based on a deep learning algorithm, judges whether unauthorized fonts are used or not, and records the paths and names of the pictures using the unauthorized fonts if the unauthorized fonts are used.
The result writing module 204: file information and picture information related to the use of the infringement font recorded by the infringement font checking module 203 are acquired and written into a result file.
For further explanation of the font copyright detecting device, please refer to fig. 3, where fig. 3 is a schematic structural diagram of a font copyright detecting device according to an embodiment of the present invention, and includes: an acquisition module 301, a comparison module 302 and a detection module 303;
the obtaining module 301 is configured to obtain a purchased font list and a public free font list according to a preset configuration file;
the comparison module 302 is configured to identify a first font used in text information to be detected, compare the first font with the purchased font list and the public free font list, and generate a comparison result;
the detecting module 303 is configured to detect whether the first font has a copyright according to the comparison result.
In this embodiment, the identifying a first font used in the text information to be detected specifically includes:
reading first text information containing different program language types according to a file suffix of a source code file, and taking the first text information as text information to be detected;
and analyzing grammatical features and keyword usages from the text information to be detected according to the program language type, and identifying the font used in the text information to be detected according to an analysis result and using the font as the first font.
In a specific embodiment, the method further comprises:
inputting the first picture into a font classification model, so that after the font classification model acquires the text information to be detected in the first picture, the font used in the text information to be detected is detected and serves as the first font.
In a specific embodiment, the training process of the font classification model specifically includes:
inputting a training picture set into a deep learning model so that the deep learning model can be trained according to the training picture set until the deep learning model is converged, and generating the font classification model after training; wherein the training picture set comprises: pictures containing purchased fonts and public free fonts.
In a specific embodiment, the detecting whether the first font has a copyright according to the comparison result specifically includes:
when the first font is judged to belong to the purchased font list or the public free font list according to the comparison result, the first font has copyright;
and when the first font is judged not to belong to the purchased font list or the public free font list according to the comparison result, the first font does not possess copyright.
In this embodiment, the method further includes:
when the first font does not have the copyright, if the first font is originated from the source code file, storing a file path, a file name and the first font of the source code file; and if the first font is from the first picture, storing the picture path and the picture name of the first picture.
In this embodiment, the method further includes:
acquiring an exclusionable file list according to the preset configuration file;
and when a certain file belongs to the exclusionable file list, not performing font copyright detection on the certain file.
According to the embodiment of the invention, the purchased font list and the public free font list are obtained through the obtaining module according to the preset configuration file; identifying a first font used in the text information to be detected through a comparison module, comparing the first font according to a purchased font list and a public free font list, and generating a comparison result; and detecting whether the first font has the copyright or not through a detection module according to the comparison result.
In the font copyright detection process, the comparison is carried out according to the public free fonts and the comparison is carried out according to the purchased fonts, and the purchased fonts of each enterprise can be considered in the process of judging whether the used fonts have the copyright, so that the problem of misjudgment caused by the fact that the used fonts which are purchased by the enterprise are infringement fonts in the prior art is solved, and the font copyright detection precision is improved.
Furthermore, the embodiment of the invention can detect the font copyright of all source code files and all picture information containing fonts in the system, thereby realizing the comprehensive detection of the font copyright in the system and overcoming the problem of incomplete detection caused by only checking a font library installed on a computer or identifying pictures for font copyright detection in the prior art.
Moreover, the embodiment of the invention realizes the automatic detection of the font copyright, can avoid the problem of low efficiency caused by operations of manually intercepting the picture, uploading the picture, manually searching the keywords and the like in the prior art, and greatly improves the detection efficiency of the font copyright.
Finally, the embodiment of the invention can set the preset configuration file according to the actual requirements of each enterprise, can configure the purchased font list according to the actual conditions of the enterprise, can configure the configuration without checking the file according to the actual conditions of the system, and is flexible and convenient.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (10)
1. A font copyright detection method is characterized by comprising the following steps:
acquiring a purchased font list and a public free font list according to a preset configuration file;
identifying a first font used in text information to be detected, comparing the first font according to the purchased font list and the public free font list, and generating a comparison result;
and detecting whether the first font has copyright or not according to the comparison result.
2. The font copyright detection method according to claim 1, wherein the identifying a first font used in the text information to be detected specifically includes:
reading first text information containing different program language types according to a file suffix of a source code file, and taking the first text information as text information to be detected;
and analyzing grammatical features and keyword usages from the text information to be detected according to the program language type, and identifying the font used in the text information to be detected according to an analysis result and using the font as the first font.
3. The font copyright detecting method according to claim 2, further comprising:
inputting the first picture into a font classification model, so that after the font classification model acquires the text information to be detected in the first picture, the font used in the text information to be detected is detected and used as the first font.
4. The method for detecting font copyright according to claim 3, wherein the detecting whether the first font has copyright according to the comparison result specifically includes:
when the first font is judged to belong to the purchased font list or the public free font list according to the comparison result, the first font has copyright;
and when the first font is judged not to belong to the purchased font list or the public free font list according to the comparison result, the first font does not possess copyright.
5. The font copyright detecting method according to claim 4, further comprising:
when the first font does not have the copyright, if the first font is originated from the source code file, storing a file path, a file name and the first font of the source code file; and if the first font is from the first picture, storing the picture path and the picture name of the first picture.
6. The font copyright detecting method according to claim 5, further comprising:
acquiring an exclusionable file list according to the preset configuration file;
and when a certain file belongs to the exclusionable file list, not performing font copyright detection on the certain file.
7. The font copyright detection method according to claim 5, wherein the training process of the font classification model specifically includes:
inputting a training picture set into a deep learning model so that the deep learning model is trained according to the training picture set until the deep learning model converges, and generating the font classification model after training; wherein the training picture set comprises: pictures containing purchased fonts and public free fonts.
8. A font copyright detection apparatus, comprising: the device comprises an acquisition module, a comparison module and a detection module;
the acquisition module is used for acquiring a purchased font list and a public free font list according to a preset configuration file;
the comparison module is used for identifying a first font used in the text information to be detected, comparing the first font according to the purchased font list and the public free font list and generating a comparison result;
the detection module is used for detecting whether the first font has the copyright or not according to the comparison result.
9. The font copyright detection device according to claim 8, wherein the identifying a first font used in the text information to be detected specifically includes:
reading first text information containing different program language types according to a file suffix of a source code file, and taking the first text information as text information to be detected;
and analyzing grammatical features and keyword usages from the text information to be detected according to the program language type, and identifying the font used in the text information to be detected according to an analysis result and using the font as the first font.
10. The font copyright detecting apparatus according to claim 9, further comprising:
inputting the first picture into a font classification model, so that after the font classification model acquires the text information to be detected in the first picture, the font used in the text information to be detected is detected and serves as the first font.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211513815.0A CN115718907A (en) | 2022-11-29 | 2022-11-29 | Font copyright detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211513815.0A CN115718907A (en) | 2022-11-29 | 2022-11-29 | Font copyright detection method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115718907A true CN115718907A (en) | 2023-02-28 |
Family
ID=85256968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211513815.0A Pending CN115718907A (en) | 2022-11-29 | 2022-11-29 | Font copyright detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115718907A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729580A (en) * | 2014-01-27 | 2014-04-16 | 国家电网公司 | Method and device for detecting software plagiarism |
CN110688949A (en) * | 2019-09-26 | 2020-01-14 | 北大方正集团有限公司 | Font identification method and apparatus |
CN111814428A (en) * | 2020-06-29 | 2020-10-23 | 远光软件股份有限公司 | Method, device, terminal and storage medium for detecting font copyright information |
-
2022
- 2022-11-29 CN CN202211513815.0A patent/CN115718907A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729580A (en) * | 2014-01-27 | 2014-04-16 | 国家电网公司 | Method and device for detecting software plagiarism |
CN110688949A (en) * | 2019-09-26 | 2020-01-14 | 北大方正集团有限公司 | Font identification method and apparatus |
CN111814428A (en) * | 2020-06-29 | 2020-10-23 | 远光软件股份有限公司 | Method, device, terminal and storage medium for detecting font copyright information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107239666B (en) | Method and system for desensitizing medical image data | |
CN112199506B (en) | Information detection method, device and equipment for application program | |
US11372942B2 (en) | Method, apparatus, computer device and storage medium for verifying community question answer data | |
CN111078908A (en) | Data annotation detection method and device | |
CN107221328B (en) | Method and device for positioning modification source, computer equipment and readable medium | |
CN108170468B (en) | Method and system for automatically detecting annotation and code consistency | |
CN110750982A (en) | Error correction method and device for legal documents, storage medium and processor | |
CN112149680B (en) | Method and device for detecting and identifying wrong words, electronic equipment and storage medium | |
US20140067696A1 (en) | System and method for automatically submitting prior art | |
Fischbach et al. | Cira: A tool for the automatic detection of causal relationships in requirements artifacts | |
CN116484420A (en) | Text desensitization processing method and device | |
CN118013963A (en) | Method and device for identifying and replacing sensitive words | |
CN110555212A (en) | Document verification method and device based on natural language processing and electronic equipment | |
CN114580346A (en) | Information generation method and device combining RPA and AI, electronic equipment and storage medium | |
CN113723063A (en) | Method for converting RTF (real time function) into HTML (hypertext markup language) and realizing effect on PDF (Portable document Format) file | |
CN110162729B (en) | Method and device for establishing browser fingerprint and identifying browser type | |
CN115718907A (en) | Font copyright detection method and device | |
CN114925373B (en) | Mobile application privacy protection policy vulnerability automatic identification method based on user comment | |
CN110688558A (en) | Method and device for searching web page, electronic equipment and storage medium | |
CN113642739B (en) | Training method of sensitive word shielding quality evaluation model and corresponding evaluation method | |
CN113050933B (en) | Brain graph data processing method, device, equipment and storage medium | |
WO2021018016A1 (en) | Patent information display method and apparatus, device, and storage medium | |
CN112685072B (en) | Method, device, equipment and storage medium for generating communication address knowledge base | |
CN114706766A (en) | False alarm elimination method and device of security function, electronic equipment and storage medium | |
CN113672512A (en) | Code inspection rule generating method, code inspection 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: 20230228 |
|
RJ01 | Rejection of invention patent application after publication |