This application provides a
shooting method and a related device. The
shooting method may be applied to an electronic device with a
camera lens. In the
shooting method, the electronic device may output a RAW image through the
camera lens, and divide the image into three paths of data streams through an
image processor. The three paths of data streams are respectively data streams of a
panorama path, a focus tracking path, and a detection path respectively. After stabilization
processing, the
data stream of the
panorama path is used to display and preview a large window of a camera application interface. After
human body detection and successful focus tracking, information about a
human body cropping frame may be output, through the
data stream of the detection path, to the focus tracking path for
cropping a
human body frame. After stabilization
processing,
smoothing processing, and
cropping processing, the
data stream of the focus tracking path may be used to display and preview a
small window of the camera application interface. It may be understood that related processing on the three data streams is performed in a camera
software architecture, and does not depend on a platform. This greatly facilitates
transplantation, development, and the reuse at another platform at a later stage.