(EN) The embodiments of the present application disclose a focusing method and apparatus, an electronic device, and a computer readable medium. Said method comprises: acquiring focus information when a lens samples multiple frames of images during a focusing process, the focus information comprising device shake information, lens position information and index information of focusing regions in the multiple frames of images; on the basis of the device shake information, obtaining, by screening, candidate focus information; on the basis of the lens position information and the index information in the candidate focus information, determining a lens position during focusing; and controlling the lens to move to the lens position so as to complete focusing. The implementation improves the accuracy of focusing.
(FR) Les modes de réalisation de la présente invention divulguent un procédé et un appareil de mise au point, un dispositif électronique et un support lisible par ordinateur. Ledit procédé comprend les étapes consistant : à acquérir des informations de mise au point lorsqu'un objectif échantillonne de multiples trames d'images pendant un processus de mise au point, les informations de mise au point comprenant des informations de tremblement de dispositif, des informations de position d'objectif et des informations d'indice de régions mises au point dans les multiples trames d'images ; sur la base des informations de tremblement de dispositif, à obtenir, par criblage, des informations de mise au point candidates ; sur la base des informations de position d'objectif et des informations d'indice dans les informations de mise au point candidates, à déterminer une position d'objectif pendant la mise au point ; et à commander l'objectif pour que ce dernier se déplace vers la position d'objectif de façon à achever la mise au point. La mise en œuvre améliore la précision d'une mise au point.
(ZH) 本申请实施例公开了对焦方法、装置、电子设备和计算机可读介质。该方法包括:获取对焦过程中镜头采样多帧图像时的对焦信息,对焦信息包括设备抖动信息、镜头位置信息和多帧图像中的对焦区域的指标信息;基于设备抖动信息,筛选出候选对焦信息;基于所述候选对焦信息中的所述镜头位置信息和所述指标信息,确定合焦时的镜头位置;控制镜头移动至镜头位置,以完成对焦。该实现方式提高了对焦的准确性。