The present application belongs to the technical field of
image processing, and particularly relates to a method for generating pictures by intelligent shooting based on
computer vision. The steps include: S1, collecting an initial image of a target person, using an improved YOLOv5
algorithm with a Neck layer introducing an attention module to identify key points and center coordinates of the person, calculating an offset and adjusting a shooting angle or position to obtain an initial composition; S2, detecting eye and limb states through key point detection, determining a shooting intention, and then shooting to obtain an original image; S3, calculating
noise features by dividing the original image, classifying
noise based on MobileNetV2, and denoising accordingly, and correcting
mixed noise through a residual network; S4, segmenting image regions by using a full
convolution network, optimizing by verifying an intersection-over-union ratio, fusing a
mask, and generating a target picture by global
color balance. The present application improves the composition accuracy, denoising effect and
image quality, and meets the demand for high-quality intelligent shooting.