parameters: (img, nbins=32, bins_range=(0, 256))
return_statement: return hist_features
docstring: Compute the color histogram features of a given image `img`.
      Histogram is computed for each channel separately: then histograms are \
      concatenated and resulting feature vector is returned.
docstring_summary: Compute the color histogram features of a given image `img`.
      Histogram is computed for each channel separately: then histograms are \
      concatenated and resulting feature vector is returned.
docstring_tokens: Compute the color histogram features of a given image img . Histogram is computed for each channel separately : then histograms are \ concatenated and resulting feature vector is returned .
function: def color_hist(img, nbins=32, bins_range=(0, 256)):
      """
      Compute the color histogram features of a given image `img`.
      Histogram is computed for each channel separately: then histograms are \
      concatenated and resulting feature vector is returned.
      """
      # Compute the histogram of the color channels separately
      channel1_hist = np.histogram(img[:, :, 0], bins=nbins, range=bins_range)
      channel2_hist = np.histogram(img[:, :, 1], bins=nbins, range=bins_range)
      channel3_hist = np.histogram(img[:, :, 2], bins=nbins, range=bins_range)
      # Concatenate the histograms into a single feature vector
      hist_features = np.concatenate((channel1_hist[0], channel2_hist[0], channel3_hist[0]))
      return hist_features
function_tokens: def color_hist ( img , nbins = 32 , bins_range = ( 0 , 256 ) ) : # Compute the histogram of the color channels separately channel1_hist = np . histogram ( img [ : , : , 0 ] , bins = nbins , range = bins_range ) channel2_hist = np . histogram ( img [ : , : , 1 ] , bins = nbins , range = bins_range ) channel3_hist = np . histogram ( img [ : , : , 2 ] , bins = nbins , range = bins_range ) # Concatenate the histograms into a single feature vector hist_features = np . concatenate ( ( channel1_hist [ 0 ] , channel2_hist [ 0 ] , channel3_hist [ 0 ] ) ) return hist_features