detection at different levels. The method used in the 
PANet  paper  is  Addition,  and  the  YOLOv4 
algorithm will The fusion method was changed from 
addition to Concatenation. 
Head output - Head is used to complete the 
output  of  target  detection  results.  For  the  detection 
head  part,  YOLOv4  continues  to  use  the  detection 
head  of  the  YOLOv3  algorithm  (Cao  2021).  For 
different  detection  algorithms,  the  number  of 
branches at the output end varies, usually including a 
classification  branch  and  a  regression  branch. 
YOLOv4 uses CIOU_Loss to replace the Smooth L1 
Loss  function,  and  uses  DIOU_nms  to  replace  the 
traditional  NMS  operation,  thereby  further 
improving the detection accuracy of the algorithm. 
All  equipment,  terminals,  and  connecting  wires 
are  made  with  QR  codes  or  barcode  digital  labels. 
OPENCV  is  combined  with  cameras  to  collect  the 
target area, interpret the QR code information on the 
collected  photos,  and  bind  the  information 
accordingly. Log into a temporary database. 
The data detection function interprets the photos 
detected by YOLOv4 that need  to be judged by  the 
QR code interpretation algorithm, and compares the 
interpreted information with the binding relationship 
in  the  previous  database  to  determine  whether  the 
wiring is wrong. 
4  DESIGN OF INTELLIGENT 
JUDGMENT SYSTEM FOR 
TRANSFORMER WIRING 
The  core  of  this  paper  is  to  realize  the  intelligent 
judgment  system  of  transformer  wiring.  First, 
through  the  image  (video)  acquisition  equipment, 
combined  with  the  YOLOv4  target  detection 
algorithm, set the target recognition area, and collect 
the barcodes of all equipment, terminals and wiring 
(Gao  2021);  then  use  the  computer  to  check  the 
barcodes.  Perform  identification  and  analysis  to 
obtain  relevant  information  and  record  it  in  a 
temporary  database  for  relational  binding  to 
determine wiring connection rules. After the picture 
to  be  detected  is  sent  to  the  system  for  a  series  of 
analysis operations, the actual wiring relationship is 
compared  with  the  information  in  the  database  to 
judge whether the wiring is correct and complete the 
intelligent judgment of wiring. 
 
Figure 10: Flow chart of design of intelligent judgment system for transformer wiring. 
Specific function realization:(1) Data acquisition 
function:  use  microcomputer  Raspberry  Pi  with 
camera  as  video  picture  acquisition  terminal,  use 
LINUX  system,  install  OPENCV  environment, 
implant  YOLOv4,  barcode  recognition,  information 
comparison  and  other  algorithms.  (2)  barcode 
Information  binding:  The  barcode  recognition 
algorithm  is  implanted  in  the  computer,  the  data  is 
locally  analyzed  and  processed,  the  barcode  is 
parsed, and  the corresponding relationship is  bound 
and  recorded  in  the  temporary  database.  (3)  Data 
detection  function:  use  YOLOv4  to  detect  the 
pictures  that  need  to  be  judged,  interpret  the 
barcodes  in  them,  compare  the  interpreted 
information  with  the  database,  and  get  the  results 
(Wang 2021). The process is shown in Figure 10. 
The  system  uses  a  PC  host  as  the  management 
platform  host,  which  is  used  for  information 
comparison and equipment management of multiple 
acquisition  terminals.  The  test  platform  software 
includes  management  platform  software  and 
acquisition  terminal.  The  function  of  the 
management  platform  is  to  set  up  and  manage 
multiple  collection  terminals,  and  manage  the 
comparison  data  in  a  unified  manner.  The 
acquisition  terminal  is  embedded  with  a  variety  of 
artificial  intelligence  target  detection  algorithms, 
barcode recognition algorithms, and data intelligent 
verification  algorithms.  It  has  the  function  of 
automatically  outputting  assessment  results,  error 
prompting,  built-in  camera  and  display  screen, 
which  is  convenient  for  handheld  detection  and 
bracket fixed detection. The secondary development 
interface  is  convenient  for  users  to  expand 
functions.