#NEWLINE# def get_foreheads( self ) : #NEWLINE# #INDENT# '\n        defines forehead location using offsets & multiplicative scalings\n        ' #NEWLINE# fh_x = 0.5 #NEWLINE# fh_y = 0.18 #NEWLINE# fh_w = 0.25 #NEWLINE# fh_h = 0.15 #NEWLINE# forh = [ ] #NEWLINE# for rect in self . detected : #NEWLINE# #INDENT# ( x , y , w , h ) = rect #NEWLINE# x += ( w * fh_x ) #NEWLINE# y += ( h * fh_y ) #NEWLINE# w *= fh_w #NEWLINE# h *= fh_h #NEWLINE# x -= ( w / 2.0 ) #NEWLINE# y -= ( h / 2.0 ) #NEWLINE# forh . append ( [ int ( x ) , int ( y ) , int ( w ) , int ( h ) ] ) #NEWLINE# #UNINDENT# self . foreheads = np . array ( forh )