blenderproc.python.utility.PatternUtility module

Provides a function to generate random pattern

blenderproc.python.utility.PatternUtility.generate_random_pattern_img(width, height, n_points)[source]

Generate transparent image with random pattern.

Parameters:
  • width (int) – width of image to be generated.

  • height (int) – height of image to be generated.

  • n_points (int) – number of white points uniformly placed on image.

Return type:

ndarray