A method for eliminating watermark influence of power transmission line images
Using Tesseract-OCR text recognition technology and preset watermark position information to assist identification, the problem of misidentification of watermarks in transmission line images is solved, the credibility and automation level of the identification results are improved, and the false alarm rate and confirmation time are reduced.
Patent Information
- Application Number
- CN202110374052.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-07
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the process of image recognition of transmission lines in the existing technology, it is difficult to distinguish watermarks from wires when they overlap, leading to misidentification and waste of resources, which affects the credibility of the recognition results.
Through Tesseract-OCR text recognition technology, hidden danger alarms that may be caused by watermarks are screened, and preset watermark position information is used to assist identification, distinguishing watermarks from real wire foreign objects, and eliminating the impact of watermarks on the identification results.
It improves the credibility of the recognition results, reduces the false alarm rate, reduces the time cost of manual confirmation, and improves the efficiency of automated recognition.
Smart Images

Figure CN113516009B
Abstract
Description
Technical Field
[0001] The invention discloses a method for eliminating the influence of watermark on a power transmission line image, and belongs to the technical field of hidden danger detection of power transmission lines. Background Art
[0002] With the continuous development of the technology for identifying hidden dangers in transmission line channels, the technology for automatic identification and alarm of hidden dangers has been widely used in the field of transmission line detection. At present, it can accurately identify hidden dangers that threaten the wires, such as foreign objects on the wires, cranes, etc. In the actual image recognition process, the watermark information on the image has a great influence on the recognition result. The part where the watermark overlaps with the wire is easily identified as a foreign object on the wire, wasting human resources to confirm whether it is a real foreign object hidden danger on the wire.
[0003] The existing solution is to add positive and negative samples of foreign objects in wires to continue training the recognition model and improve the model recognition effect. However, for foreign objects in wires that look like watermarks, the recognition model is difficult to distinguish.
[0004] In summary, how to provide an efficient and reliable method for eliminating the influence of watermarks in transmission line channels and improve the credibility of hidden danger identification results is one of the problems that technical personnel in this field urgently need to solve. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention provides a method for eliminating the influence of watermarks on power transmission line images. The method can eliminate the influence of watermarks on the identification results during the process of identifying hidden dangers in power transmission line channels. SUMMARY OF THE INVENTION
[0007] The present invention screens hidden danger alarms that may be caused by watermarks based on the identified hidden danger types and hidden danger locations, and confirms whether the hidden danger alarms are caused by watermarks by performing Tesseract-OCR text recognition on the hidden danger alarms, thereby eliminating the influence of the watermark on the recognition results.
[0008] The detailed technical scheme of the present invention is as follows:
[0009] A method for eliminating the influence of watermark on a power transmission line image, characterized by comprising:
[0010] a. Use the existing transmission line channel image recognition hidden danger software to identify the transmission line channel image and obtain the hidden danger recognition result;
[0011] b. Extract the wire foreign body hidden danger alarm from the identification results;
[0012] c. Determine whether the area corresponding to the conductor foreign body hidden danger alarm coincides with the watermark position of the transmission line channel image, wherein the watermark position is information preset and stored in the system;
[0013] When the area coincides with the watermark position, jump to step d;
[0014] When the area does not overlap with the watermark position, jump to step e;
[0015] d. Performing text recognition on the hidden dangers in the watermark location area, and filtering the hidden danger recognition results in step a for the warnings corresponding to the recognized text and / or data symbols;
[0016] e. End.
[0017] Preferably, according to the present invention, the text recognition is Tesseract-OCR text recognition.
[0018] Preferably according to the present invention, the watermark position is information preset and stored in the system including but not limited to: the coordinate range of the watermark position in the transmission line channel image, the data rules for displaying the content of the watermark position, wherein the data rules include text data type, arrangement rules for text data, and data symbols between text data.
[0019] Preferably, according to the present invention, when the area partially overlaps with the watermark position, the process jumps to step d, and the watermark position is called to obtain information to assist in text recognition of hidden dangers in the watermark position area.
[0020] Compared with the prior art, the present invention has the following technical advantages:
[0021] In view of the technical shortcoming of the prior art that it is still difficult to distinguish image watermarks by using a single hidden danger identification, the present invention can accurately distinguish image watermarks from real foreign objects on wires, avoid the accumulation of erroneous hidden danger information, and improve the efficiency of human-assisted identification.
[0022] The present invention introduces the concept of watermark position information in a breakthrough way, and performs range identification between the identified hidden danger information and the watermark position. As long as the hidden danger information falls within the watermark position, it needs to be confirmed by text recognition. If there are text and / or data symbols, the corresponding hidden danger is directly filtered.
[0023] In addition, the present invention also introduces the Tesseract-OCR text recognition algorithm, which can quickly confirm whether the hidden danger is a watermark, and the recognition speed is significantly improved compared with the hidden danger identification model.
[0024] In order to further improve the recognition effect of the present invention, the present invention further optimizes the watermark position information for system pre-storage. When the area partially overlaps with the watermark position, the watermark position information can be called to assist in text recognition of hidden dangers in the watermark position area. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a flow chart of a method for eliminating the influence of watermark on a power transmission line image according to the present invention;
[0026] Figure 2 In step a of the present invention, the transmission line channel image is identified by using the existing hidden danger identification model for the transmission line channel image to obtain the hidden danger identification result;
[0027] exist Figure 2 The image in the figure is a captured image of a transmission line channel, wherein the upper left corner of the image is the watermark position, wherein "2019-10-14" is the acquisition date of the image, and "13:40:13" is the acquisition time of the image. The "box" on the acquisition date in the figure is the content filtered by the method of the present invention; the recorded "colorbelts 0.86" is a foreign object on the conductor, and the confidence rate is 0.86. DETAILED DESCRIPTION
[0028] The present invention will be further described below in conjunction with the embodiments and the accompanying drawings, but is not limited thereto.
[0029] Embodiment 1,
[0030] like Figure 1 shown.
[0031] a. Use the existing transmission line channel image recognition hidden danger software to identify the transmission line channel image and obtain the hidden danger recognition result;
[0032] b. Extract the wire foreign body hidden danger alarm from the identification results;
[0033] c. Determine whether the area corresponding to the conductor foreign body hidden danger alarm coincides with the watermark position of the transmission line channel image, wherein the watermark position is information preset and stored in the system;
[0034] When the area coincides with the watermark position, jump to step d;
[0035] When the area does not overlap with the watermark position, jump to step e;
[0036] d. Performing text recognition on the hidden dangers in the watermark location area, and filtering the hidden danger recognition results in step a for the warnings corresponding to the recognized text and / or data symbols;
[0037] e. End.
[0038] The text recognition is Tesseract-OCR text recognition.
[0039] The watermark position is information preset and stored in the system, including but not limited to: the coordinate range of the watermark position in the transmission line channel image, the data rule of the watermark position display content, wherein the data rule includes the text data type, the arrangement rule of the text data, and the data symbols between the text data. In this embodiment, the watermark position information includes numbers and "-".
[0040] Application examples:
[0041] The method described in Example 1 was applied to images taken in a power transmission line channel in one day. After hidden danger identification, there were 120 wire foreign body alarms. The wire foreign body alarms were extracted and position determination and Tesseract-OCR text recognition were performed. The situations where watermarks caused hidden danger alarms were filtered out to eliminate the influence of watermarks on the recognition results.
[0042] a. Extract the wire foreign body hidden danger alarm from the identification results;
[0043] The source code of the alarm data is displayed as follows:
[0044]
[0045]
[0046] }, the image display result is as shown in the attached Figure 2 As shown;
[0047] The meanings of the fields in the above source code are shown in Table 1:
[0048] Table 1: Source code field meaning
[0049] Fields type meaning filename string file name width int Image width height int Image height objects.tag string Hidden danger type objects.score float Confidence Rate objects.frame.x int Coordinate x of the upper left corner of the warning box objects.frame.y int The y coordinate of the upper left corner of the alarm box objects.frame.width int Alarm frame width objects.frame.height int Alarm frame height
[0050] b. Determine whether the wire foreign body hidden danger alarm is located at the watermark position in the upper left corner of the image, and filter the wire foreign body hidden danger alarm in the watermark area; wherein the watermark position area is: xmin: 30, ymin: 50, xmax: 600, ymax: 100;
[0051] c. Perform Tesseract-OCR text recognition on the hidden dangers at the watermark position, and filter the alarms containing numbers or '-' symbols in the recognition results. Among them, the Tesseract-OCR text recognition results are: '2019-10-21' and '10-14';
[0052] d. Filter the alarms corresponding to the identification results containing numbers or '-' symbols.
[0053] In this application example, the Tesseract-OCR text recognition algorithm is used to eliminate the impact of watermarks on the transmission line channel. This effectively solves the problem of hidden danger alarms caused by watermarks, improves the automation level of transmission line alarm detection, and reduces the time cost required for operation and maintenance personnel to confirm alarms.
[0054] According to statistics, in this application example, the present invention reduces the false alarm rate of foreign matter in the model wire by 0.5 by eliminating the influence of watermarks, and the confirmation rate of hidden danger alarms caused by watermarks reaches 0.89.
[0055] Embodiment 2,
[0056] As described in the method of Example 1, it also includes: when the area partially overlaps with the watermark position, jump to step d, call the watermark position to assist in the text recognition of the hidden dangers in the watermark position area. For example, when the shape or pattern of the foreign body on the wire contains text or symbols, it will cause unnecessary interference to the text recognition in step d. Therefore, the present invention calls the watermark position information pre-stored in the system, and verifies what content the text data and symbol data specifically contained in the watermark position involve. Even if the text and symbol content are recognized by the text, they will not be filtered out, thereby improving the recognition effect.
Claims
1. A method for eliminating the watermark effect of power transmission line images, It is characterized in that include: a. Use the existing transmission line channel image recognition hidden danger software to identify the transmission line channel image and obtain the hidden danger recognition result; b. Extract the wire foreign body hidden danger alarm from the identification results; c. Determine whether the area corresponding to the conductor foreign body hidden danger alarm coincides with the watermark position of the transmission line channel image, wherein the watermark position is information preset and stored in the system; When the area completely or partially overlaps with the watermark position, jump to step d; When the area does not overlap with the watermark position, jump to step e; d. Performing text recognition on the hidden dangers in the watermark location area, and filtering the hidden danger recognition results in step a for the warnings corresponding to the recognized text and / or data symbols; e. End; The text recognition is Tesseract-OCR text recognition; The watermark position is information preset and stored in the system, including: the coordinate range of the watermark position in the transmission line channel image, and the data rules for displaying the content of the watermark position, wherein the data rules include the text data type, the arrangement rules of the text data, and the data symbols between the text data.
2. A method for eliminating the influence of watermark on a power transmission line image according to claim 1, It is characterized in that When the area completely or partially overlaps with the watermark position, the process jumps to step d, and the watermark position is called to obtain information to assist in text recognition of hidden dangers in the watermark position area.
Citation Information
Patent Citations
Image authentication system based on high-capacity USB KEY
CN101246556A
Document watermark copyright information protection device based on Opentype vector outline fonts
CN102495833A
Intelligent repair assistance system for cracks of ancient wall murals
CN103295199A
Copyright administration watermark publishing system and watermark embedding method
CN103324873A
Photography processing method and device for intelligent terminal
CN106231195A
