combining  image  processing  with  artificial  neural 
networks;  Liu  Y  C  et  al.  (2007)  studied  the 
characteristics of laser fuze in complex environment, 
and  proposed  a  parallel  artificial  neural  network 
algorithm to detect and identify the edge features of 
fuze. 
Most  current  research  on  target  recognition 
focuses  on  target  feature  recognition  for  simple 
backgrounds or specific contexts. These methods use 
their own geometric feature constraints to extract the 
target  contour.  The  commonly  used  methods  are 
mainly  iteration  and  enumeration.  The  main 
disadvantage of this method is that  its robustness is 
not  high  and  the  computational  efficiency  is  not 
high.  In  some  complex feature collection  scenarios, 
or  real-time  online  processing  projects,  a  more 
efficient way to extract contours is needed. To solve 
these kinds of complicated,  large-scale optimization 
problem,  meta-heuristic  optimization  algorithms 
emerged.  By  virtue  of  its  obvious  advantages, 
mainly  including easy to implement,  do not require 
specific  parameters  information  and  being  able  to 
bypass  local  optima,  these  meta-heuristic 
optimization  algorithms  have  been  utilized  in 
engineering applications widely. 
Based  on  the  previous  research,  this  paper 
proposes a target recognition method based on whale 
optimization  algorithm. In this paper,  the geometric 
features of rectangular objects of different scales are 
used  as  features  to  be  identified  and  tested  in 
complex  backgrounds.  At  the  same  time,  a  multi-
constraint condition based on its spatial geometry is 
proposed,  which  can  extract  the  target  contour 
quickly  and  accurately  after  image  preprocessing. 
The  simulation  results  show  that  the  proposed 
method  can  accurately  extract  rectangular  targets 
with  complex  background  and  has  a  certain degree 
of robustness. 
2  OBJECT STRUCTURE AND 
FEATURE RECOGNITION 
2.1  Rectangular Object Feature 
Analysis 
The main target of the proposed object in this paper 
is  Rectangular  object.  There  are  many  rectangular 
features in the identification problem that need to be 
identified,  such  as  satellites,  parts,  containers,  etc. 
There  is  no  cooperation  mark  on  it,  and  its  motion 
cannot  be  predicted.  Therefore,  its  recognition 
mainly  depends  on  its  geometric  features.  The 
satellite body in Figure (a) has a rectangular feature, 
Figure (b) is a rectangular component. 
       
(a) Satellite               (b) Rectangular component 
Figure 1: Rectangular object structure. 
2.2  Rectangular Feature Recognition 
Process 
In  general,  the  feature  recognition  process  in  this 
paper  is  mainly  divided  into  two  parts:  image 
preprocessing and line detection. In the process of 
image shooting, it is easy to be affected by random 
noise, weakening the morphological features of the 
target, causing the target edge to be blurred, which 
has adverse effects on image recognition. Therefore, 
in  order  to  facilitate  the  accuracy  of  image 
recognition,  it  is  necessary  to  perform  a  pre-
processing operation first, and then complete the line 
detection on this basis. 
2.2.1  Image Preprocessing 
In this paper, the target  is captured by a grayscale 
camera. According to the acquisition equipment, the 
image  noise  collected  by  this  device  is  mainly 
normal  distributed  noise.  Denoising  grayscale 
images with Gaussian filter, which can eliminate the 
interference caused by environment and equipment. . 
The  two-dimensional  Gaussian  distribution  is  as 
follows: