WO2017215351A1 - 摄像装置识别范围的调整方法及装置 - Google Patents
摄像装置识别范围的调整方法及装置 Download PDFInfo
- Publication number
- WO2017215351A1 WO2017215351A1 PCT/CN2017/081702 CN2017081702W WO2017215351A1 WO 2017215351 A1 WO2017215351 A1 WO 2017215351A1 CN 2017081702 W CN2017081702 W CN 2017081702W WO 2017215351 A1 WO2017215351 A1 WO 2017215351A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- target area
- ratio
- adjusting
- size
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/64—Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
Definitions
- the present invention relates to the field of imaging technology, and in particular to a method and apparatus for adjusting an identification range of an imaging device.
- the distance between the target object and the camera is different.
- the size of the target area is different within the visible range of the camera. It is possible that the target object is not in the visible range.
- the existing camera recognition range adjustment method is to specify that the user operates and uses within a predetermined distance range of the camera, and this adjustment method brings great inconvenience to both the user use and the machine vision algorithm processing.
- the embodiment of the invention provides a method and a device for adjusting the recognition range of the camera device, so as to at least solve the prior art method for adjusting the recognition range of the camera device, which stipulates that the user operates within a fixed distance range, is inconvenient to use, and is inconvenient for the machine vision algorithm. Dealing with the problem.
- an embodiment of the present invention provides a method for adjusting an identification range of an imaging device, including: acquiring an image captured by an imaging device within a recognition range thereof; determining a target region in the image; and detecting the target region a ratio in the image and a center position of the target area; adjusting an identification range of the imaging device according to the ratio and the center position.
- detecting a ratio of the target area in the image and a center position of the target area includes: detecting a size of the target area; according to a size of the target area and the image Calculating a ratio of the target area in the image; calculating a center point coordinate of the target area according to a size of the target area and a position of the target area in the image.
- adjusting the recognition range of the imaging device according to the ratio comprises: determining whether a ratio of the target area in the image is in a preset range corresponding to the target area; If the ratio is not in the preset range, the focal length of the camera device is adjusted; if the ratio is in the preset range, it is determined that the focal length used by the camera device to capture the image is appropriate.
- adjusting the recognition range of the imaging device according to the central position comprises: determining whether a center point coordinate of the target area is on a reference line of the image; if a center point of the target area If the coordinates are not on the reference line of the image, the lens of the imaging device is adjusted; if the center point coordinate of the target region is on the reference line of the image, it is determined that the imaging device is aligned with the target region.
- an apparatus for adjusting an identification range of an imaging apparatus includes: an acquisition unit for acquiring an image acquired by an imaging apparatus within a recognition range thereof; and a determining unit for using the image Determining a target area; detecting a ratio of the target area in the image and a center position of the target area; and adjusting unit, configured to adjust the camera device according to the ratio and the center position Recognition range.
- the detecting unit includes: a detecting module, configured to detect a size of the target area; and a first calculating module, configured to calculate the target according to a size of the target area and a size of the image a ratio of the area in the image; a second calculating module, configured to calculate a center point coordinate of the target area according to a size of the target area and a position of the target area in the image.
- the adjusting unit includes: a first determining module, configured to determine whether a ratio of the target area in the image is in a preset range corresponding to the target area; And a first determining module, configured to determine the camera if the ratio is in the preset range, if the ratio is not in the preset range; The focal length used by the device to acquire the image is appropriate.
- the adjusting unit includes: a second determining module, configured to determine whether a center point coordinate of the target area is on a reference line of the image; and a second adjusting module, configured to be in the target Adjusting a lens of the imaging device if a center point coordinate of the region is not on a reference line of the image; and a second determining module configured to use a center point coordinate of the target region on a reference line of the image In the case, it is determined that the imaging device is aligned with the target area.
- the recognition range of the imaging device is adjusted by using the ratio of the target area in the image and the center position of the target area, and the imaging device is automatically adjusted according to the scene within the recognition range, thereby avoiding the manual adjustment of the imaging device to the imaging
- the hardware of the device is damaged, and the use flexibility of the camera device is improved.
- the target detection error caused by the recognition range of the camera device is reduced by using the predetermined distance, and the extraction efficiency of the recognition range of the camera device is improved.
- FIG. 1 is a flowchart of a method for adjusting an identification range of an image pickup apparatus according to an embodiment of the present invention
- FIG. 2 is a block diagram showing the structure of an apparatus for adjusting an identification range of an image pickup apparatus according to an embodiment of the present invention
- FIG. 3 is a schematic flow chart of a method for adjusting an identification range of an image pickup apparatus according to an embodiment of the present invention.
- Embodiments of the present invention provide a method for adjusting an identification range of an imaging device, which may be an imaging device, for example, an imaging device applied to the field of machine vision.
- an imaging device which may be an imaging device, for example, an imaging device applied to the field of machine vision.
- FIG. 1 is a flowchart of a method for adjusting an identification range of an image pickup apparatus according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
- Step S101 Acquire an image captured by the camera device within its recognition range.
- Step S102 determining a target area in the image.
- the target area can be a face, a gesture, or other object that is easily recognized.
- Step S103 detecting the proportion of the target area in the image and the center position of the target area.
- Step S104 adjusting the recognition range of the imaging device according to the scale and the center position.
- the recognition range of the imaging device is adjusted by using the ratio of the target area in the image and the center position of the target area, and the imaging device is automatically adjusted according to the scene in the recognition range, thereby avoiding the manner of manually adjusting the imaging device to the imaging device.
- the damage caused by the hardware improves the flexibility of the use of the camera device.
- the target detection error caused by the recognition range of the camera device is reduced by using the existing prescribed distance, and the extraction efficiency of the recognition range of the camera device is improved.
- the ratio of the target area in the image and the center position of the target area may be detected by: detecting the size of the target area; and calculating the proportion of the target area in the image according to the size of the target area and the size of the image; The center point coordinates of the target area are calculated according to the size of the target area and the position of the target area in the image.
- the target area can be identified by image recognition technology, and the size of the target area can be determined.
- Adjusting the recognition range of the imaging device includes adjusting the focal length of the imaging device and adjusting the lens, which will be separately described below.
- adjusting the recognition range of the imaging device according to the ratio in step S104 may include: determining whether the ratio of the target region in the image is in a preset range corresponding to the target region; if the ratio is not in the preset range, adjusting The focal length of the camera; if the ratio is within the preset range, determine the focal length used when the camera captures the image suitable.
- the preset range corresponding to the face may be 1/10 to 1/9, and if the calculated ratio of the face to the image is not in the range of 1/10 to 1/9, Then, it is necessary to adjust the focal length of the camera device. Specifically, if the ratio is greater than 1/9, the focal length is adjusted, and if the ratio is less than 1/10, the focal length is adjusted. After adjusting the focal length, the image can be acquired again, the proportion of the target area in the image is calculated, and then the adjusted focal length is determined to be appropriate. If not, the adjustment is continued until a suitable focal length is obtained.
- the focal length of the imaging device is adjusted by the ratio of the target area in the image, the adjustment is reliable, and the adjustment mode is simple.
- adjusting the recognition range of the imaging device according to the center position in step S104 may include: determining whether the center point coordinate of the target area is on a reference line of the image; if the center point coordinate of the target area is not on the reference line of the image Then, the lens of the imaging device is adjusted; if the coordinates of the center point of the target area are on the reference line of the image, it is determined that the imaging device is aligned with the target area.
- the reference line of the image may be the center coordinate of the image.
- the lens of the camera device needs to be adjusted. Specifically, if the center coordinate of the face is shifted to the left from the reference line, the lens is moved to the right. Until the center coordinate of the face coincides with the baseline; if the center coordinate of the face is above the baseline, move the lens down until the center coordinate of the face coincides with the baseline.
- the lens of the imaging device is adjusted by using the coordinates of the center point of the target area, and the adjustment is reliable, and the adjustment mode is simple.
- the embodiment of the present invention further provides an apparatus for adjusting the recognition range of the camera, which can be used to implement the method described in the foregoing embodiments. Since the principle of solving the problem of the device is similar to the above method, the implementation of the device can be referred to the implementation of the above method, and the repeated description is not repeated.
- the term "unit” or "module” may implement a combination of software and/or hardware of a predetermined function. Although the systems described in the following embodiments are preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 2 is a structural block diagram of an apparatus for adjusting an identification range of an image pickup apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes:
- the acquiring unit 21 is configured to acquire an image captured by the camera device within the recognition range thereof;
- a determining unit 22 configured to determine a target area in the image
- a detecting unit 23 configured to detect a proportion of the target area in the image and a center position of the target area
- the adjusting unit 24 is configured to adjust the recognition range of the imaging device according to the ratio and the center position.
- the recognition range of the imaging device is adjusted by using the ratio of the target area in the image and the center position of the target area, and the imaging device is automatically adjusted according to the scene in the recognition range, thereby avoiding the manner of manually adjusting the imaging device to the imaging device.
- the damage caused by the hardware improves the flexibility of the use of the camera device.
- the target detection error caused by the recognition range of the camera device is reduced by using the existing prescribed distance, and the extraction efficiency of the recognition range of the camera device is improved.
- the detecting unit 23 may include: a detecting module, configured to detect a size of the target area; and a first calculating module, configured to calculate a proportion of the target area in the image according to the size of the target area and the size of the image; A calculation module is configured to calculate a center point coordinate of the target area according to the size of the target area and the position of the target area in the image.
- the adjusting unit 24 may include: a first determining module, configured to determine whether a ratio of the target area in the image is in a preset range corresponding to the target area; and the first adjusting module is configured to In the case of the range, the focal length of the camera device is adjusted; and the first determining module is configured to determine that the focal length used by the camera device when the image is in the preset range is appropriate.
- the adjusting unit 24 may include: a second determining module, configured to determine whether a center point coordinate of the target area is on a reference line of the image; and a second adjusting module, where the center point coordinate of the target area is not in the image In the case of the reference line, the lens of the imaging device is adjusted; and the second determining module is configured to determine that the imaging device is aligned with the target area in the case where the center point coordinate of the target area is on the reference line of the image.
- FIG. 3 is a schematic flow chart of a method for adjusting an identification range of a camera device according to the present invention, including the following steps:
- the camera captures an image. Specifically, the image can be taken directly, or the image can be obtained from the video and saved in the cache.
- T S/A
- A m ⁇ n
- m is the number of lines of the image
- n is the number of columns of the image.
- the preset range may be determined according to the extracted human body related target. For example, if the human body related target is a human face, the preset range is 1/10 to 1/9.
- step (7) Adjust the focal length of the camera. After adjustment, return to step (1) to reacquire the image.
- step (9) Is the center point coordinate P(x, y) of the face determined on the reference line of the image? If no, step (9) is performed; if yes, indicating that the camera is aligned with the target area, the process ends;
- step (9) Adjust the lens of the camera unit. After adjustment, return to step (1) to reacquire the image.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
本发明公开了一种摄像装置识别范围的调整方法及装置,其中,该方法包括:获取摄像装置在其识别范围内所采集的图像;在图像中确定目标区域;检测目标区域在图像中的比例以及目标区域的中心位置;根据比例和中心位置调整摄像装置的识别范围。本发明利用目标区域在图像中的比例和目标区域的中心位置来调整摄像装置的识别范围,根据识别范围内的场景自动调整摄像装置,避免了手动调整摄像装置的方式给摄像装置的硬件造成损坏,提高了摄像装置的使用灵活性;同时减少了现有使用规定距离的方式调整摄像装置识别范围带来的目标检测错误,提升了摄像装置识别范围的提取有效性。
Description
相关申请
本发明申请要求2016年06月15日申请的,申请号为201610431673.1,名称为“摄像装置识别范围的调整方法及装置”的中国专利申请的优先权,在此将其全文引入作为参考。
本发明涉及摄像技术领域,具体而言,涉及一种摄像装置识别范围的调整方法及装置。
随着传感器的发展,摄像头也得到了发展与应用,特别是在机器视觉技术的应用,同时机器视觉技术的发展对摄像头的控制要求也越来越高。
当摄像头采集图像数据时,目标物体与摄像头的距离不一样,在摄像头的可视范围内目标区域的大小也不一样,有可能目标物体都没有在可视范围内。
针对上述问题,现有的摄像头识别范围调整方式是规定用户在摄像头的规定距离范围内操作使用,这种调整方式对用户使用和机器视觉算法处理都带来了很大的不便。
发明内容
本发明实施例提供了一种摄像装置识别范围的调整方法及装置,以至少解决现有技术中的摄像装置识别范围调整方式规定用户在固定距离范围内操作,使用不便,且不便于机器视觉算法处理的问题。
为实现上述目的,本发明实施例提供了一种摄像装置识别范围的调整方法,包括:获取摄像装置在其识别范围内所采集的图像;在所述图像中确定目标区域;检测所述目标区域在所述图像中的比例以及所述目标区域的中心位置;根据所述比例和所述中心位置调整所述摄像装置的识别范围。
在其中一个实施例中,检测所述目标区域在所述图像中的比例以及所述目标区域的中心位置,包括:检测所述目标区域的大小;根据所述目标区域的大小和所述图像的大小计算所述目标区域在所述图像中的比例;根据所述目标区域的大小和所述目标区域在所述图像中的位置计算所述目标区域的中心点坐标。
在其中一个实施例中,采用以下公式计算所述目标区域在所述图像中的比例T:T=S/A,其中,S表示目标区域的大小,A表示图像的大小,A=m×n,m表示图像的行数,n表示图
像的列数。
在其中一个实施例中,根据所述比例调整所述摄像装置的识别范围,包括:判断所述目标区域在所述图像中的比例是否处于与所述目标区域对应的预设范围;如果所述比例没有处于所述预设范围,则调整所述摄像装置的焦距;如果所述比例处于所述预设范围,则确定所述摄像装置采集所述图像时使用的焦距合适。
在其中一个实施例中,根据所述中心位置调整所述摄像装置的识别范围,包括:判断所述目标区域的中心点坐标是否在所述图像的基准线上;如果所述目标区域的中心点坐标不在所述图像的基准线上,则调整所述摄像装置的镜头;如果所述目标区域的中心点坐标在所述图像的基准线上,则确定所述摄像装置对准所述目标区域。
根据本发明的另一方面,提供了一种摄像装置识别范围的调整装置,包括:获取单元,用于获取摄像装置在其识别范围内所采集的图像;确定单元,用于在所述图像中确定目标区域;检测单元,用于检测所述目标区域在所述图像中的比例以及所述目标区域的中心位置;调整单元,用于根据所述比例和所述中心位置调整所述摄像装置的识别范围。
在其中一个实施例中,所述检测单元包括:检测模块,用于检测所述目标区域的大小;第一计算模块,用于根据所述目标区域的大小和所述图像的大小计算所述目标区域在所述图像中的比例;第二计算模块,用于根据所述目标区域的大小和所述目标区域在所述图像中的位置计算所述目标区域的中心点坐标。
在其中一个实施例中,所述第一计算模块采用以下公式计算所述目标区域在所述图像中的比例T:T=S/A,其中,S表示目标区域的大小,A表示图像的大小,A=m×n,m表示图像的行数,n表示图像的列数。
在其中一个实施例中,所述调整单元包括:第一判断模块,用于判断所述目标区域在所述图像中的比例是否处于与所述目标区域对应的预设范围;第一调整模块,用于在所述比例没有处于所述预设范围的情况下,调整所述摄像装置的焦距;第一确定模块,用于在所述比例处于所述预设范围的情况下,确定所述摄像装置采集所述图像时使用的焦距合适。
在其中一个实施例中,所述调整单元包括:第二判断模块,用于判断所述目标区域的中心点坐标是否在所述图像的基准线上;第二调整模块,用于在所述目标区域的中心点坐标不在所述图像的基准线上的情况下,调整所述摄像装置的镜头;第二确定模块,用于在所述目标区域的中心点坐标在所述图像的基准线上的情况下,确定所述摄像装置对准所述目标区域。
应用本发明的技术方案,利用目标区域在图像中的比例和目标区域的中心位置来调整摄像装置的识别范围,根据识别范围内的场景自动调整摄像装置,避免了手动调整摄像装置的方式给摄像装置的硬件造成损坏,提高了摄像装置的使用灵活性;同时减少了现有使用规定距离的方式调整摄像装置识别范围带来的目标检测错误,提升了摄像装置识别范围的提取有效性。
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的限定。在附图中:
图1是本发明实施例的摄像装置识别范围的调整方法的流程图;
图2是本发明实施例的摄像装置识别范围的调整装置的结构框图;
图3是本发明实施例的摄像装置识别范围的调整方法的流程示意图。
下面结合附图和具体实施例对本发明作进一步详细描述,但不作为对本发明的限定。
本发明实施例提供了一种摄像装置识别范围的调整方法,该摄像装置可以是摄像装置,例如,应用于机器视觉领域的摄像装置。
图1是本发明实施例的摄像装置识别范围的调整方法的流程图,如图1所示,该方法包括如下步骤:
步骤S101,获取摄像装置在其识别范围内所采集的图像。
步骤S102,在图像中确定目标区域。例如,该目标区域可以是人脸、手势或其他方便识别的物体。
步骤S103,检测目标区域在图像中的比例以及目标区域的中心位置。
步骤S104,根据比例和中心位置调整摄像装置的识别范围。
通过上述实施例,利用目标区域在图像中的比例和目标区域的中心位置来调整摄像装置的识别范围,根据识别范围内的场景自动调整摄像装置,避免了手动调整摄像装置的方式给摄像装置的硬件造成损坏,提高了摄像装置的使用灵活性;同时减少了现有使用规定距离的方式调整摄像装置识别范围带来的目标检测错误,提升了摄像装置识别范围的提取有效性。
在一个实施例中,可以通过以下步骤来检测目标区域在图像中的比例以及目标区域的中心位置:检测目标区域的大小;根据目标区域的大小和图像的大小计算目标区域在图像中的比例;根据目标区域的大小和目标区域在图像中的位置计算目标区域的中心点坐标。具体的,可以通过图像识别技术识别出目标区域,并确定目标区域的大小。
具体的,可以采用以下公式计算目标区域在图像中的比例T:T=S/A,其中,S表示目标区域的大小,A表示图像的大小,A=m×n,m表示图像的行数,n表示图像的列数。
调整摄像装置的识别范围包括对摄像装置焦距的调整和镜头的调整,下面分别进行说明。
在一个实施例中,步骤S104中根据比例调整摄像装置的识别范围,可以包括:判断目标区域在图像中的比例是否处于与目标区域对应的预设范围;如果比例没有处于预设范围,则调整摄像装置的焦距;如果比例处于预设范围,则确定摄像装置采集图像时使用的焦距合
适。
例如,目标区域是人脸,则与人脸对应的预设范围可以是1/10至1/9,如果计算得到的人脸占图像的比例未处于1/10至1/9这个范围内,则需要调整摄像装置的焦距,具体的,如果比例大于1/9,则调大焦距,如果比例小于1/10,则调小焦距。调整完焦距后,可以再次采集图像,计算图像中目标区域占该图像的比例,然后,判断调整后的焦距是否合适,如果不合适,则继续调整,直到得到较为合适的焦距。
本实施例中,利用目标区域在图像中的比例调整摄像装置的焦距,调整依据可靠,调整方式简单。
在一个实施例中,步骤S104中根据中心位置调整摄像装置的识别范围,可以包括:判断目标区域的中心点坐标是否在图像的基准线上;如果目标区域的中心点坐标不在图像的基准线上,则调整摄像装置的镜头;如果目标区域的中心点坐标在图像的基准线上,则确定摄像装置对准目标区域。其中,图像的基准线可以是图像的中心坐标。
例如,目标区域是人脸,如果人脸的中心点坐标不在图像的基准线上,则需要调整摄像装置的镜头,具体的,如果人脸的中心坐标较基准线偏左,则向右移动镜头,直到人脸的中心坐标与基准线重合;如果人脸的中心坐标较基准线偏上,则向下移动镜头,直到人脸的中心坐标与基准线重合。
本实施例中,利用目标区域的中心点坐标调整摄像装置的镜头,调整依据可靠,调整方式简单。
需要说明的是,焦距和镜头的调整顺序可以不区分先后。
基于同一发明构思,本发明实施例还提供了一种摄像装置识别范围的调整装置,可以用于实现上述实施例所描述的方法。由于该装置解决问题的原理与上述方法相似,因此该装置的实施可以参见上述方法的实施,重复之处不再赘述。以下所使用的,术语“单元”或者“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的系统较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是本发明实施例的摄像装置识别范围的调整装置的结构框图,如图2所示,该装置包括:
获取单元21,用于获取摄像装置在其识别范围内所采集的图像;
确定单元22,用于在图像中确定目标区域;
检测单元23,用于检测目标区域在图像中的比例以及目标区域的中心位置;
调整单元24,用于根据比例和中心位置调整摄像装置的识别范围。
通过上述实施例,利用目标区域在图像中的比例和目标区域的中心位置来调整摄像装置的识别范围,根据识别范围内的场景自动调整摄像装置,避免了手动调整摄像装置的方式给摄像装置的硬件造成损坏,提高了摄像装置的使用灵活性;同时减少了现有使用规定距离的方式调整摄像装置识别范围带来的目标检测错误,提升了摄像装置识别范围的提取有效性。
在一个实施例中,检测单元23可以包括:检测模块,用于检测目标区域的大小;第一计算模块,用于根据目标区域的大小和图像的大小计算目标区域在图像中的比例;第二计算模块,用于根据目标区域的大小和目标区域在图像中的位置计算目标区域的中心点坐标。
具体的,第一计算模块采用以下公式计算目标区域在图像中的比例T:T=S/A,其中,S表示目标区域的大小,A表示图像的大小,A=m×n,m表示图像的行数,n表示图像的列数。
在一个实施例中,调整单元24可以包括:第一判断模块,用于判断目标区域在图像中的比例是否处于与目标区域对应的预设范围;第一调整模块,用于在比例没有处于预设范围的情况下,调整摄像装置的焦距;第一确定模块,用于在比例处于预设范围的情况下,确定摄像装置采集图像时使用的焦距合适。
在一个实施例中,调整单元24可以包括:第二判断模块,用于判断目标区域的中心点坐标是否在图像的基准线上;第二调整模块,用于在目标区域的中心点坐标不在图像的基准线上的情况下,调整摄像装置的镜头;第二确定模块,用于在目标区域的中心点坐标在图像的基准线上的情况下,确定摄像装置对准目标区域。
下面结合具体实施例对本发明进行说明,该实施例以人脸为例进行说明。
如图3所示,为本发明的摄像装置识别范围的调整方法的流程示意图,包括如下步骤:
(1)摄像装置采集图像。具体的,可以直接拍摄图像,也可以从视频中获取图像,并保存于缓存中。
(2)使用人体相关特性提取图像中的人体相关目标区域,例如,人脸。
(3)计算人脸区域的大小S。
(4)计算人脸在图像中所占的比例T,具体的,T=S/A,A=m×n,m为图像的行数,n为图像的列数。
(5)判断比例T是否处于预设范围?如果是,则确定摄像装置的焦距合适,执行步骤(6),如果否,说明摄像装置的焦距不合适,执行步骤(7)。其中,预设范围可以根据提取的人体相关目标来定,例如,人体相关目标为人脸,则预设范围是1/10至1/9。
(6)计算人脸的中心点坐标P(x,y)。
(7)调整摄像装置的焦距。调整以后,返回步骤(1)重新采集图像。
(8)判断人脸的中心点坐标P(x,y)是否在图像的基准线上?如果否,则执行步骤(9);如果是,说明摄像装置对准目标区域,流程结束;
(9)调整摄像装置的镜头。调整以后,返回步骤(1)重新采集图像。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (10)
- 一种摄像装置识别范围的调整方法,其特征在于,包括:获取摄像装置在其识别范围内所采集的图像;在所述图像中确定目标区域;检测所述目标区域在所述图像中的比例以及所述目标区域的中心位置;根据所述比例和所述中心位置调整所述摄像装置的识别范围。
- 根据权利要求1所述的方法,其特征在于,检测所述目标区域在所述图像中的比例以及所述目标区域的中心位置,包括:检测所述目标区域的大小;根据所述目标区域的大小和所述图像的大小计算所述目标区域在所述图像中的比例;根据所述目标区域的大小和所述目标区域在所述图像中的位置计算所述目标区域的中心点坐标。
- 根据权利要求2所述的方法,其特征在于,采用以下公式计算所述目标区域在所述图像中的比例T:T=S/A,其中,S表示目标区域的大小,A表示图像的大小,A=m×n,m表示图像的行数,n表示图像的列数。
- 根据权利要求1所述的方法,其特征在于,根据所述比例调整所述摄像装置的识别范围,包括:判断所述目标区域在所述图像中的比例是否处于与所述目标区域对应的预设范围;如果所述比例没有处于所述预设范围,则调整所述摄像装置的焦距;如果所述比例处于所述预设范围,则确定所述摄像装置采集所述图像时使用的焦距合适。
- 根据权利要求1所述的方法,其特征在于,根据所述中心位置调整所述摄像装置的识别范围,包括:判断所述目标区域的中心点坐标是否在所述图像的基准线上;如果所述目标区域的中心点坐标不在所述图像的基准线上,则调整所述摄像装置的镜头;如果所述目标区域的中心点坐标在所述图像的基准线上,则确定所述摄像装置对准所述目标区域。
- 一种摄像装置识别范围的调整装置,其特征在于,包括:获取单元,用于获取摄像装置在其识别范围内所采集的图像;确定单元,用于在所述图像中确定目标区域;检测单元,用于检测所述目标区域在所述图像中的比例以及所述目标区域的中心位置;调整单元,用于根据所述比例和所述中心位置调整所述摄像装置的识别范围。
- 根据权利要求6所述的装置,其特征在于,所述检测单元包括:检测模块,用于检测所述目标区域的大小;第一计算模块,用于根据所述目标区域的大小和所述图像的大小计算所述目标区域在所述图像中的比例;第二计算模块,用于根据所述目标区域的大小和所述目标区域在所述图像中的位置计算所述目标区域的中心点坐标。
- 根据权利要求7所述的装置,其特征在于,所述第一计算模块采用以下公式计算所述目标区域在所述图像中的比例T:T=S/A,其中,S表示目标区域的大小,A表示图像的大小,A=m×n,m表示图像的行数,n表示图像的列数。
- 根据权利要求6所述的装置,其特征在于,所述调整单元包括:第一判断模块,用于判断所述目标区域在所述图像中的比例是否处于与所述目标区域对应的预设范围;第一调整模块,用于在所述比例没有处于所述预设范围的情况下,调整所述摄像装置的焦距;第一确定模块,用于在所述比例处于所述预设范围的情况下,确定所述摄像装置采集所述图像时使用的焦距合适。
- 根据权利要求6所述的装置,其特征在于,所述调整单元包括:第二判断模块,用于判断所述目标区域的中心点坐标是否在所述图像的基准线上;第二调整模块,用于在所述目标区域的中心点坐标不在所述图像的基准线上的情况下,调整所述摄像装置的镜头;第二确定模块,用于在所述目标区域的中心点坐标在所述图像的基准线上的情况下,确定所述摄像装置对准所述目标区域。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610431673.1A CN107517344A (zh) | 2016-06-15 | 2016-06-15 | 摄像装置识别范围的调整方法及装置 |
CN201610431673.1 | 2016-06-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017215351A1 true WO2017215351A1 (zh) | 2017-12-21 |
Family
ID=60662993
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/081702 WO2017215351A1 (zh) | 2016-06-15 | 2017-04-24 | 摄像装置识别范围的调整方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107517344A (zh) |
WO (1) | WO2017215351A1 (zh) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110992368A (zh) * | 2019-11-08 | 2020-04-10 | 武汉互创联合科技有限公司 | 一种培养皿成像定位方法及装置 |
CN111062933A (zh) * | 2019-12-24 | 2020-04-24 | 广西大学 | 一种基于视场自适应调节的输电线路覆冰图像检测方法 |
CN112149478A (zh) * | 2019-06-28 | 2020-12-29 | 广州慧睿思通信息科技有限公司 | 一种防尾随通行方法、装置、设备以及可读介质 |
CN113132632A (zh) * | 2021-04-06 | 2021-07-16 | 支付宝(杭州)信息技术有限公司 | 一种针对宠物的辅助拍摄方法和装置 |
CN113177498A (zh) * | 2021-05-10 | 2021-07-27 | 清华大学 | 基于物体真实大小和物体特征的图像识别方法和装置 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111953866B (zh) * | 2019-05-15 | 2021-11-26 | 华硕电脑股份有限公司 | 电子装置 |
CN111698428B (zh) * | 2020-06-23 | 2021-07-16 | 广东小天才科技有限公司 | 一种文档拍摄的方法、装置、电子设备和存储介质 |
CN113408512A (zh) * | 2021-06-03 | 2021-09-17 | 云从科技集团股份有限公司 | 利用机器人进行集装箱查验的方法、系统、装置及介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000156817A (ja) * | 1998-11-19 | 2000-06-06 | Casio Comput Co Ltd | 撮影装置および記憶媒体 |
JP2011135538A (ja) * | 2009-12-25 | 2011-07-07 | Fujitsu Ltd | 撮像装置、及び撮像プログラム |
CN103197491A (zh) * | 2013-03-28 | 2013-07-10 | 华为技术有限公司 | 快速自动聚焦的方法和图像采集装置 |
CN103595917A (zh) * | 2013-11-14 | 2014-02-19 | 上海华勤通讯技术有限公司 | 移动终端及其调焦方法 |
CN104243832A (zh) * | 2014-09-30 | 2014-12-24 | 北京金山安全软件有限公司 | 通过移动终端进行拍摄的方法、装置及移动终端 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101790048B (zh) * | 2010-02-10 | 2013-03-20 | 深圳先进技术研究院 | 智能摄像系统及方法 |
-
2016
- 2016-06-15 CN CN201610431673.1A patent/CN107517344A/zh active Pending
-
2017
- 2017-04-24 WO PCT/CN2017/081702 patent/WO2017215351A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000156817A (ja) * | 1998-11-19 | 2000-06-06 | Casio Comput Co Ltd | 撮影装置および記憶媒体 |
JP2011135538A (ja) * | 2009-12-25 | 2011-07-07 | Fujitsu Ltd | 撮像装置、及び撮像プログラム |
CN103197491A (zh) * | 2013-03-28 | 2013-07-10 | 华为技术有限公司 | 快速自动聚焦的方法和图像采集装置 |
CN103595917A (zh) * | 2013-11-14 | 2014-02-19 | 上海华勤通讯技术有限公司 | 移动终端及其调焦方法 |
CN104243832A (zh) * | 2014-09-30 | 2014-12-24 | 北京金山安全软件有限公司 | 通过移动终端进行拍摄的方法、装置及移动终端 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112149478A (zh) * | 2019-06-28 | 2020-12-29 | 广州慧睿思通信息科技有限公司 | 一种防尾随通行方法、装置、设备以及可读介质 |
CN110992368A (zh) * | 2019-11-08 | 2020-04-10 | 武汉互创联合科技有限公司 | 一种培养皿成像定位方法及装置 |
CN111062933A (zh) * | 2019-12-24 | 2020-04-24 | 广西大学 | 一种基于视场自适应调节的输电线路覆冰图像检测方法 |
CN113132632A (zh) * | 2021-04-06 | 2021-07-16 | 支付宝(杭州)信息技术有限公司 | 一种针对宠物的辅助拍摄方法和装置 |
CN113177498A (zh) * | 2021-05-10 | 2021-07-27 | 清华大学 | 基于物体真实大小和物体特征的图像识别方法和装置 |
CN113177498B (zh) * | 2021-05-10 | 2022-08-09 | 清华大学 | 基于物体真实大小和物体特征的图像识别方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
CN107517344A (zh) | 2017-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017215351A1 (zh) | 摄像装置识别范围的调整方法及装置 | |
CN109977770B (zh) | 一种自动跟踪拍摄方法、装置、系统及存储介质 | |
CN108986164B (zh) | 基于图像的位置检测方法、装置、设备及存储介质 | |
WO2017181899A1 (zh) | 一种人脸活体验证方法及装置 | |
JP5445460B2 (ja) | なりすまし検知システム、なりすまし検知方法及びなりすまし検知プログラム | |
TWI425828B (zh) | 攝影裝置、圖像區域之判定方法以及電腦可讀取之記錄媒體 | |
US9330325B2 (en) | Apparatus and method for reducing noise in fingerprint images | |
TW201727537A (zh) | 人臉識別系統及人臉識別方法 | |
US20190378294A1 (en) | Stereo camera and height acquisition method thereof and height acquisition system | |
CN111627073B (zh) | 一种基于人机交互的标定方法、标定装置和存储介质 | |
EP1596332A3 (en) | Information processing method and apparatus for finding position and orientation of targeted object | |
EP2824416A1 (en) | Distance calculation device and distance calculation method | |
JP6035620B2 (ja) | 車載ステレオカメラシステム及びそのキャリブレーション方法 | |
WO2018032860A1 (zh) | 一种测量方法及装置 | |
CN103795935B (zh) | 一种基于图像校正的摄像式多目标定位方法及装置 | |
WO2017215246A1 (zh) | 输入设备识别方法和系统、输入指令识别方法和系统 | |
KR101469099B1 (ko) | 사람 객체 추적을 통한 자동 카메라 보정 방법 | |
JP6617150B2 (ja) | 物体検出方法及び物体検出装置 | |
JP2022051312A5 (zh) | ||
JP5911227B2 (ja) | 判定装置、判定方法及びプログラム | |
JP2017126942A5 (zh) | ||
CN104065949B (zh) | 一种电视虚拟触控方法及系统 | |
US20210335010A1 (en) | Calibration method and calibration apparatus | |
JP2013251005A (ja) | 画像補正方法 | |
KR101578891B1 (ko) | 패턴 인식을 이용한 영상 정보의 차원 일치 장치 및 방법 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17812463 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17812463 Country of ref document: EP Kind code of ref document: A1 |