A non-transitory computer readable medium storing a program causing a device for automatically generating a picture and labeling pick-and-place region in the picture to execute a method for automatically generating a picture and labeling a pick-and-place region in the picture, and the method comprises:
- generating a three-dimensional picture under a generated background condition, wherein the three-dimensional picture comprises a three-dimensional object image;
- capturing a two-dimensional picture of the three-dimensional picture, wherein the two-dimensional picture comprises a two-dimensional object image of the three-dimensional object image;
- recognizing an object region of the two-dimensional object image;
- obtaining an exposed ratio of an exposed area of an exposed region of the object region to an object area of the object region;
- determining whether the exposed ratio is greater than a preset ratio;
- and
- defining the exposed region as the pick-and-place region when the exposed ratio is greater than the preset ratio.