blenderproc.python.utility.PatternUtility module

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