Method and device for shooting image

文档序号:621391 发布日期:2021-05-07 浏览:12次 中文

阅读说明:本技术 拍摄图像的方法和装置 (Method and device for shooting image ) 是由 赵杨 那柏林 孙新江 刘理 仇芳 黄枭 于 2019-09-06 设计创作,主要内容包括:本申请提供了一种拍摄图像的方法和装置。该方法包括:根据捕获的多帧图像,在预置的多种抓拍模式中确定第一抓拍模式;使用与第一抓拍模式对应的评估策略,或与第一抓拍模式下的第一抓拍类别对应的评估策略,在捕获的多帧待评选图像中确定与第一抓拍模式对应的抓拍帧图像;其中所使用的评估策略是预置的多种评估策略中的一种。由此而输出的抓拍帧图像更符合实际拍摄场景,因此有利于获得理想的抓拍效果。(The application provides a method and a device for shooting images. The method comprises the following steps: determining a first snapshot mode in a plurality of preset snapshot modes according to the captured multi-frame images; determining a snapshot frame image corresponding to the first snapshot mode in the captured multiple frames of images to be evaluated by using an evaluation strategy corresponding to the first snapshot mode or an evaluation strategy corresponding to the first snapshot category in the first snapshot mode; wherein the evaluation policy used is one of a plurality of preset evaluation policies. Therefore, the output snapshot frame image is more in line with the actual shooting scene, and therefore an ideal snapshot effect is obtained.)

A method of capturing an image, comprising:

determining a first snapshot mode in a plurality of preset snapshot modes according to the captured multi-frame images;

determining a snapshot frame image corresponding to the first snapshot mode in the captured multiple frames of images to be evaluated by using an evaluation strategy corresponding to the first snapshot mode, wherein the evaluation strategy is one of multiple preset evaluation strategies.

The method of claim 1, wherein the plurality of snap-shot modes comprise one or more of: expression snapshot mode, closed photo snapshot mode, motion snapshot mode, multi-person motion snapshot mode, pet snapshot mode, and landscape snapshot mode.

The method of claim 1 or 2, wherein each of the plurality of snap-shot modes corresponds to at least one evaluation strategy of the preset plurality of evaluation strategies, each evaluation strategy comprising one or more scoring parameters for image scoring and a mode weight for each scoring parameter; and

the determining, by using an evaluation policy corresponding to the first capturing mode, a capturing frame image corresponding to the first capturing mode from among a plurality of captured frames of images to be evaluated includes:

calculating the grade of each frame of image to be evaluated in the plurality of frames of images to be evaluated by using one or more grade parameters in one of at least one evaluation strategy corresponding to the first snapshot mode and the mode weight of each grade parameter;

and determining the snapshot frame image corresponding to the first snapshot mode in the multiple frames of images to be evaluated according to the multiple scores of the multiple frames of images to be evaluated.

The method of claim 3, wherein the capture frame image has a highest score among the plurality of images to be evaluated.

The method as claimed in claim 3 or 4, wherein the scoring parameters included in different evaluation strategies corresponding to different capturing modes are the same, and the mode weights included in the different evaluation strategies are different.

The method according to any one of claims 3 to 5, wherein each of the snapshot modes includes one or more snapshot categories, each of the snapshot categories corresponding to one of the evaluation policies; in at least one evaluation policy corresponding to the first capturing mode, each evaluation policy including one or more scoring parameters corresponding to the first capturing mode, a mode weight for each scoring parameter, and a category weight corresponding to one capturing category; and

the determining a first snap-shot mode among a plurality of preset snap-shot modes further comprises: determining a first snapshot category in the first snapshot mode according to the multi-frame image;

the calculating the score of each frame of image to be evaluated in the plurality of frames of images to be evaluated by using one or more scoring parameters in one of at least one evaluation strategy corresponding to the first snapshot mode and the mode weight of each scoring parameter comprises:

and calculating the grade of each frame of image to be evaluated in the plurality of frames of images to be evaluated by using one or more grading parameters corresponding to the first snapshot mode, the mode weight of each grading parameter and the category weight of each grading parameter corresponding to the first snapshot category.

The method of claim 6, wherein scoring parameters included in different evaluation strategies for different snapshot categories are the same, and category weights included in the different evaluation strategies are different.

The method of any of claims 3 to 7, further comprising:

calling at least one detection model corresponding to the first snapshot mode to perform image recognition on the multiple frames of images to be selected so as to output recognition results;

determining a value of the one or more scoring parameters based on the recognition result.

The method of claim 8, wherein when the first capture mode is a motion capture mode or a multi-person motion capture mode, the at least one detection model comprises a pose estimation model and a motion detection model; or

The first snapshot mode is an expression snapshot mode or a closed photo snapshot mode, and the at least one detection model comprises a human face attribute detection model.

The method according to claim 8 or 9, wherein the determining of the first capturing mode among the plurality of preset capturing modes based on the captured plurality of frame images comprises:

performing mode detection on the captured multi-frame images based on a first frame rate to determine a first capturing mode in a plurality of preset capturing modes;

the calling of at least one detection model corresponding to the first snapshot mode for image recognition of the multiple frames of images to be selected comprises the following steps:

calling at least one detection model corresponding to the first snapshot mode, and carrying out image recognition on the multiple frames of images to be selected at a second frame rate;

wherein the first frame rate is less than the second frame rate.

An apparatus for capturing an image, comprising:

a mode determination unit configured to determine a first snap-shot mode among a plurality of preset snap-shot modes based on a captured multi-frame image;

the snapshot frame determination unit is used for determining a snapshot frame image corresponding to the first snapshot mode in a plurality of captured images to be evaluated by using an evaluation strategy corresponding to the first snapshot mode, wherein the evaluation strategy is one of a plurality of preset evaluation strategies.

The apparatus of claim 11, wherein the plurality of snap-shot modes comprise one or more of: expression snapshot mode, closed photo snapshot mode, motion snapshot mode, multi-person motion snapshot mode, pet snapshot mode, and landscape snapshot mode.

The apparatus of claim 11 or 12, wherein each of the plurality of snap-shot modes corresponds to at least one evaluation strategy of the preset plurality of evaluation strategies, each evaluation strategy comprising one or more scoring parameters for image scoring and a mode weight for each scoring parameter;

the capturing frame determining unit is specifically configured to calculate a score of each frame of images to be evaluated in the multiple frames of images to be evaluated by using one or more scoring parameters in one of at least one evaluation strategy corresponding to the first capturing mode and a mode weight of each scoring parameter; and the snapshot frame image corresponding to the first snapshot mode is determined in the multiple frames of images to be evaluated according to the multiple scores of the multiple frames of images to be evaluated.

The apparatus of claim 13, wherein the capture frame image has a highest score among the plurality of images to be evaluated.

The apparatus according to claim 13 or 14, wherein the scoring parameters included in the different evaluation strategies corresponding to the different snapshot modes are the same, and the mode weights included in the different evaluation strategies are different.

The apparatus according to any one of claims 13 to 15, wherein each of the capturing modes comprises one or more capturing categories, each capturing category corresponding to an evaluation policy; in at least one evaluation policy corresponding to the first capturing mode, each evaluation policy including one or more scoring parameters corresponding to the first capturing mode, a mode weight for each scoring parameter, and a category weight corresponding to one capturing category;

the mode determining unit is further used for determining a first capturing category in the first capturing mode according to the multi-frame image;

the snapshot frame determination unit is further used for calculating the grade of each frame of image to be evaluated in the multiple frames of images to be evaluated by using one or more grading parameters corresponding to the first snapshot mode, the mode weight of each grading parameter and the category weight of each grading parameter corresponding to the first snapshot category.

The apparatus of claim 16, wherein scoring parameters included in different evaluation strategies for different snapshot categories are the same, and category weights included in different evaluation strategies are different.

The apparatus of any one of claims 13 to 17, wherein the apparatus further comprises one or more detection models;

the snapshot frame determining unit is further used for calling at least one detection model corresponding to the first snapshot mode to perform image recognition on the multiple frames of images to be selected so as to output recognition results; and for determining a value of the one or more scoring parameters based on the recognition result.

The apparatus of claim 18, wherein when the first snap-shot mode is a motion snap-shot mode or a multi-person motion snap-shot mode, the at least one detection model comprises a pose estimation model and a motion detection model; or

The first snapshot mode is an expression snapshot mode or a closed photo snapshot mode, and the at least one detection model comprises a human face attribute detection model.

The apparatus according to claim 18 or 19, wherein the mode determination unit is specifically configured to perform mode detection on the captured multi-frame image based on a first frame rate to determine a first capturing mode among a plurality of preset capturing modes;

the capturing frame determining unit is specifically configured to invoke at least one detection model corresponding to the first capturing mode, and perform image recognition on the multiple frames of images to be selected at a second frame rate;

wherein the first frame rate is less than the second frame rate.

An apparatus for capturing images, comprising a processor for retrieving and executing a computer program from a memory to perform the method of any one of claims 1 to 10.

A computer-readable storage medium, comprising a computer program which, when run on an electronic device or a processor, causes the electronic device or the processor to perform the method of any of claims 1 to 10.

48页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:存储器系统中的温度补偿

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!