parameters: (self,bboxA)
return_statement: return bboxA
docstring: Convert bboxA to square
docstring_summary: Convert bboxA to square
docstring_tokens: Convert bboxA to square
function: def rerec(self,bboxA):
          
          '''Convert bboxA to square'''
          
          h = bboxA[:,3]-bboxA[:,1]
          w = bboxA[:,2]-bboxA[:,0]
          l = np.concatenate((w,h)).reshape((2,h.shape[0]))
          l = np.amax(l, axis=0) 
          bboxA[:,0] = bboxA[:,0] + w*0.5 -l*0.5
          bboxA[:,1] = bboxA[:,1] + h*0.5 -l*0.5
          bboxA[:,2] = bboxA[:,0] + l
          bboxA[:,3] = bboxA[:,1] + l
      
          return bboxA
function_tokens: def rerec ( self , bboxA ) : h = bboxA [ : , 3 ] - bboxA [ : , 1 ] w = bboxA [ : , 2 ] - bboxA [ : , 0 ] l = np . concatenate ( ( w , h ) ) . reshape ( ( 2 , h . shape [ 0 ] ) ) l = np . amax ( l , axis = 0 ) bboxA [ : , 0 ] = bboxA [ : , 0 ] + w * 0.5 - l * 0.5 bboxA [ : , 1 ] = bboxA [ : , 1 ] + h * 0.5 - l * 0.5 bboxA [ : , 2 ] = bboxA [ : , 0 ] + l bboxA [ : , 3 ] = bboxA [ : , 1 ] + l return bboxA