Method and device for generating shadow in image, electronic equipment and storage medium
The invention relates to a method and device for generating a shadow in an image, electronic equipment and a storage medium. The method comprises the steps that in response to a received shadow generation instruction, a target image of a shadow to be generated and a mask image of a target object are...
Saved in:
Main Authors | , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
14.06.2022
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention relates to a method and device for generating a shadow in an image, electronic equipment and a storage medium. The method comprises the steps that in response to a received shadow generation instruction, a target image of a shadow to be generated and a mask image of a target object are acquired, and the shadow generation instruction is used for generating the shadow of the target object in the target image; and inputting the target image and the mask image of the target object into a preset shadow generation model to obtain a target shadow image output by the shadow generation model, the target shadow image being used for training a perception model in the vehicle. Thus, the shadow of the target object can be generated in the target image without providing a shadow mask image, the process of generating the shadow in the image is simplified, the application range of shadow generation is widened, and the purpose of enhancing the robustness of the perception model for recognizing various complex sh |
---|---|
Bibliography: | Application Number: CN202210267945 |