Movatterモバイル変換


[0]ホーム

URL:


CN113452897B - Image processing method, system, equipment and computer readable storage medium - Google Patents

Image processing method, system, equipment and computer readable storage medium
Download PDF

Info

Publication number
CN113452897B
CN113452897BCN202010229679.7ACN202010229679ACN113452897BCN 113452897 BCN113452897 BCN 113452897BCN 202010229679 ACN202010229679 ACN 202010229679ACN 113452897 BCN113452897 BCN 113452897B
Authority
CN
China
Prior art keywords
image
optical center
test
deviation information
center deviation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010229679.7A
Other languages
Chinese (zh)
Other versions
CN113452897A (en
Inventor
许红锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co LtdfiledCriticalZhejiang Uniview Technologies Co Ltd
Priority to CN202010229679.7ApriorityCriticalpatent/CN113452897B/en
Publication of CN113452897ApublicationCriticalpatent/CN113452897A/en
Application grantedgrantedCritical
Publication of CN113452897BpublicationCriticalpatent/CN113452897B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The application discloses an image processing method, a system, equipment and a computer readable storage medium, which are used for determining optical center deviation information of camera equipment in the zooming process; and based on the optical center deviation information, performing deviation elimination on the image shot by the camera equipment to obtain a target image. In the process of zooming of the camera equipment, the optical center deviation information can cause the relative position relationship of the object in the shot image to change before and after zooming. The image processing system, the image processing equipment and the computer readable storage medium solve the corresponding technical problems.

Description

Translated fromChinese
一种图像处理方法、系统、设备及计算机可读存储介质Image processing method, system, device and computer-readable storage medium

技术领域technical field

本申请涉及图像处理技术领域,更具体地说,涉及一种图像处理方法、系统、设备及计算机可读存储介质。The present application relates to the technical field of image processing, and more specifically, to an image processing method, system, device, and computer-readable storage medium.

背景技术Background technique

当前,随着摄像技术的发展,摄像设备的应用场景也随之丰富,比如将摄像设备应用于视频监控等,而在摄像设备的应用过程中,有时为了拍摄到清晰的图像,需要对目标场景进行变焦拍摄,这样可以保证拍摄得到的图像放大后依然清晰,然而,在此过程中,由于摄像设备焦距变化,容易出现拍摄图像间的位置关系也发生变化的情况,使得拍摄图像与被拍摄物的真实情况不相符。At present, with the development of camera technology, the application scenarios of camera equipment are also enriched. Zoom shooting can ensure that the captured image is still clear after zooming in. However, in the process, due to the change of the focal length of the camera equipment, the positional relationship between the captured images is likely to change, making the captured image and the subject does not match the real situation.

综上所述,如何提高摄像设备在变焦过程中的拍摄准确性是目前本领域技术人员亟待解决的问题。To sum up, how to improve the shooting accuracy of the camera device during the zooming process is an urgent problem to be solved by those skilled in the art.

发明内容Contents of the invention

本申请的目的是提供一种图像处理方法,其能在一定程度上解决如何提高摄像设备在变焦过程中的拍摄准确性的技术问题。本申请还提供了一种图像处理系统、设备及计算机可读存储介质。The purpose of this application is to provide an image processing method, which can solve the technical problem of how to improve the shooting accuracy of an imaging device during the zooming process to a certain extent. The present application also provides an image processing system, equipment, and computer-readable storage medium.

为了实现上述目的,本申请提供一种图像处理方法,包括:In order to achieve the above purpose, the present application provides an image processing method, including:

确定摄像设备在变焦过程中出现的光心偏差信息;Determine the optical center deviation information that occurs during the zooming process of the imaging device;

基于所述光心偏差信息,对所述摄像设备拍摄的图像进行偏差消除,得到目标图像。Based on the optical center deviation information, deviation elimination is performed on the image captured by the imaging device to obtain a target image.

优选的,所述确定摄像设备在变焦过程中出现的光心偏差信息,包括:Preferably, the determination of the optical center deviation information that occurs during the zooming process of the imaging device includes:

获取所述摄像设备在不同焦距下对测试场景拍摄后得到的测试图像;Obtain the test images obtained after the camera equipment shoots the test scene at different focal lengths;

基于位于所述测试图像几何中心的对象间的位置信息,确定所述光心偏差信息。The optical center deviation information is determined based on the position information between objects located at the geometric center of the test image.

优选的,所述获取所述摄像设备在不同焦距下对测试场景拍摄后得到的测试图像,包括:Preferably, the acquisition of the test images obtained after the camera equipment shoots the test scene at different focal lengths includes:

获取第一焦距下,所述摄像设备对所述测试场景进行拍摄得到的第一测试图像;Obtaining a first test image obtained by shooting the test scene by the imaging device at the first focal length;

获取第二焦距下,所述摄像设备对所述测试场景进行拍摄得到的第二测试图像;Obtaining a second test image obtained by shooting the test scene by the imaging device at a second focal length;

所述基于位于所述测试图像几何中心的对象间的位置信息,确定所述光心偏差信息,包括:The determining the optical center deviation information based on the position information between objects located at the geometric center of the test image includes:

在所述摄像设备对所述测试场景的一幅拍摄图像中,将位于所述第一测试图像与所述第二测试图像几何中心的对象间的相对位置关系,作为所述光心偏差信息。In one captured image of the test scene by the imaging device, the relative positional relationship between the objects located at the geometric centers of the first test image and the second test image is used as the optical center deviation information.

优选的,所述在所述摄像设备对所述测试场景的一幅拍摄图像中,将位于所述第一测试图像与所述第二测试图像几何中心的对象间的相对位置关系,作为所述光心偏差信息,包括:Preferably, in one shot image of the test scene by the camera device, the relative positional relationship between the objects located in the geometric centers of the first test image and the second test image is taken as the Optical center deviation information, including:

在所述第一测试图像中,确定位于几何中心的目标对象;In said first test image, determining a target object located at a geometric center;

在所述第二测试图像中,将所述目标对象与所述第二测试图像的几何中心间的相对位置关系,确定为所述光心偏差信息。In the second test image, the relative positional relationship between the target object and the geometric center of the second test image is determined as the optical center deviation information.

优选的,所述将所述目标对象与所述第二测试图像的几何中心间的相对位置关系,确定为所述光心偏差信息,包括:Preferably, determining the relative positional relationship between the target object and the geometric center of the second test image as the optical center deviation information includes:

确定所述目标对象在所述第二测试图像中的第一位置;determining a first location of the target object in the second test image;

确定所述第二测试图像的几何中心的第二位置;determining a second location of the geometric center of the second test image;

将所述第一位置与所述第二位置间的比值,作为所述光心偏差信息。The ratio between the first position and the second position is used as the optical center deviation information.

优选的,所述第一位置包括第一横坐标、第一纵坐标;所述第二位置包括第二横坐标、第二纵坐标;Preferably, the first position includes a first abscissa and a first ordinate; the second position includes a second abscissa and a second ordinate;

所述将所述第一位置与所述第二位置间的比值,作为所述光心偏差信息,包括:The using the ratio between the first position and the second position as the optical center deviation information includes:

确定所述第一横坐标与所述第二横坐标间的横坐标比例;determining the abscissa ratio between the first abscissa and the second abscissa;

确定所述第一纵坐标与所述第二纵坐标间的纵坐标比例;determining the ordinate ratio between the first ordinate and the second ordinate;

将所述横坐标比例和所述纵坐标比例作为所述光心偏差信息。The abscissa ratio and the ordinate ratio are used as the optical center deviation information.

优选的,所述基于所述光心偏差信息,对所述摄像设备拍摄的图像进行偏差消除,得到目标图像,包括:Preferably, based on the optical center deviation information, the deviation elimination is performed on the image captured by the imaging device to obtain the target image, including:

若所述摄像设备拍摄所述图像时焦距变大,则将所述图像中待调整对象的坐标与所述光心偏差信息的乘积,作为所述目标图像中所述待调整对象的新坐标;If the focal length becomes larger when the imaging device captures the image, the product of the coordinates of the object to be adjusted in the image and the optical center deviation information is used as the new coordinates of the object to be adjusted in the target image;

若所述摄像设备拍摄所述图像时焦距变小,则将所述图像中待调整对象的坐标与所述光心偏差信息的比值,作为所述目标图像中所述待调整对象的新坐标。If the focal length becomes smaller when the imaging device captures the image, the ratio of the coordinates of the object to be adjusted in the image to the optical center deviation information is used as the new coordinates of the object to be adjusted in the target image.

优选的,所述基于所述光心偏差信息,对所述摄像设备拍摄的图像进行偏差消除,得到目标图像,包括:Preferably, based on the optical center deviation information, the deviation elimination is performed on the image captured by the imaging device to obtain the target image, including:

获取图像处理任务;Obtain image processing tasks;

基于所述图像处理任务、所述光心偏差信息,对所述摄像设备拍摄的图像进行偏差消除,得到所述目标图像;Based on the image processing task and the optical center deviation information, performing deviation elimination on the image captured by the imaging device to obtain the target image;

所述图像处理任务的类型包括:隐私遮挡任务、3D定位任务、AR标签追踪任务。The types of image processing tasks include: privacy masking tasks, 3D positioning tasks, and AR tag tracking tasks.

为实现上述目的,本申请进一步提供一种图像处理系统,包括:In order to achieve the above purpose, the present application further provides an image processing system, including:

偏差确定模块,用于确定摄像设备在变焦过程中出现的光心偏差信息;A deviation determination module, configured to determine the optical center deviation information that occurs during the zooming process of the imaging device;

偏差消除模块,用于基于所述光心偏差信息,对所述摄像设备拍摄的图像进行偏差消除,得到目标图像。The deviation elimination module is configured to perform deviation elimination on the image captured by the imaging device based on the optical center deviation information to obtain a target image.

为实现上述目的,本申请进一步提供一种图像处理设备,包括:To achieve the above purpose, the present application further provides an image processing device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现如上任一所述图像处理方法的步骤。A processor configured to implement the steps of any one of the above image processing methods when executing the computer program.

为实现上述目的,本申请进一步提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述图像处理方法的步骤。In order to achieve the above purpose, the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above-mentioned image processing methods are realized .

本申请提供的一种图像处理方法,能够确定摄像设备在变焦过程中出现的光心偏差信息;基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像。本申请中,由于确定出了变焦过程中出现的光心偏差信息,而光心偏差信息会导致变焦前后拍摄图像中物体的位置相对关系发生变化,所以之后会基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到位置相对关系不会随变焦变动的目标图像,拍摄准确性高。本申请提供的一种图像处理系统、设备及计算机可读存储介质也解决了相应技术问题。An image processing method provided by the present application can determine the optical center deviation information that occurs during the zooming process of the imaging device; based on the optical center deviation information, the deviation is eliminated on the image captured by the imaging device to obtain a target image. In this application, since the optical center deviation information that occurs during the zooming process is determined, and the optical center deviation information will cause changes in the relative positions of objects in the captured images before and after zooming, the imaging equipment will be analyzed based on the optical center deviation information. The deviation of the captured image is eliminated to obtain a target image whose position relative relationship does not change with zooming, and the shooting accuracy is high. An image processing system, device, and computer-readable storage medium provided by the present application also solve corresponding technical problems.

附图说明Description of drawings

为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对实施例或背景技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the background technology. Obviously, the drawings in the following description are only the present invention. For the embodiments of the application, those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本申请实施例提供的一种图像处理方法的第一流程图;FIG. 1 is a first flow chart of an image processing method provided in an embodiment of the present application;

图2为本申请实施例提供的一种图像处理方法的第二流程图;FIG. 2 is a second flowchart of an image processing method provided in an embodiment of the present application;

图3为本申请实施例提供的一种图像处理方法的第三流程图;FIG. 3 is a third flowchart of an image processing method provided in an embodiment of the present application;

图4为本申请实施例提供的一种图像处理方法的第四流程图;FIG. 4 is a fourth flowchart of an image processing method provided in an embodiment of the present application;

图5为本申请实施例提供的一种用矩形框隐私遮挡图像中树叶的变焦成像过程;FIG. 5 is a zoom imaging process of using a rectangular frame to hide leaves in an image provided by an embodiment of the present application;

图6为本申请实施例提供的一种图像处理系统的结构示意图;FIG. 6 is a schematic structural diagram of an image processing system provided by an embodiment of the present application;

图7为本申请实施例提供的一种图像处理设备的结构示意图;FIG. 7 is a schematic structural diagram of an image processing device provided in an embodiment of the present application;

图8为本申请实施例提供的一种图像处理设备的另一结构示意图。FIG. 8 is another schematic structural diagram of an image processing device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

当前,随着摄像技术的发展,摄像设备的应用场景也随之丰富,比如将摄像设备应用于视频监控等,而在摄像设备的应用过程中,有时为了拍摄到清晰的图像,需要对摄像设备进行变焦拍摄,这样可以保证拍摄得到的图像放大后依然清晰,然而,在此过程中,容易出现拍摄图像间的位置关系发生变化的情况,使得拍摄图像与被拍摄物的真实情况不相符。而本申请提供的图像处理方法可以解决因变焦出现的拍摄图像间的位置关系发生变化的问题,提高摄像设备在变焦过程中的拍摄准确性。At present, with the development of camera technology, the application scenarios of camera equipment are also enriched, such as the application of camera equipment to video surveillance. Zoom shooting can ensure that the captured image is still clear after zooming in. However, in the process, the positional relationship between the captured images is prone to change, making the captured image inconsistent with the real situation of the subject. However, the image processing method provided by the present application can solve the problem that the positional relationship between captured images changes due to zooming, and improve the shooting accuracy of the camera device during the zooming process.

请参阅图1,图1为本申请实施例提供的一种图像处理方法的第一流程图。Please refer to FIG. 1 . FIG. 1 is a first flowchart of an image processing method provided by an embodiment of the present application.

本申请实施例提供的一种图像处理方法,可以包括以下步骤:An image processing method provided in an embodiment of the present application may include the following steps:

步骤S11:确定摄像设备在变焦过程中出现的光心偏差信息。Step S11: Determine the optical center deviation information that occurs during the zooming process of the imaging device.

实际应用中,可以先确定摄像设备在变焦过程中出现的光心偏差信息。也即本申请发现摄像设备在变焦过程中,会出现光心偏移现象,光心也即光学中心,光心偏移现象指的是变焦前后,光心的位置发生偏差,此种现象产生的原因可能为摄像设备的生产误差,也可能为摄像设备因碰撞等因素造成的光心移动等,光心偏差后,成像图像与光心间的位置关系便会发生变化,由此使得成像图像中物体间的相对位置关系也会发生变化,也即变焦会使得拍摄图像中物体间的相对位置关系发生变化,由此使得图像出现偏差,本申请正是发现了变焦过程中的这一现象,并提出了本申请根据光心偏差信息来对图像进行偏差消除的技术方案。In practical applications, the optical center deviation information that occurs during the zooming process of the imaging device may be determined first. That is to say, the present application finds that during the zooming process of the imaging device, there will be an optical center shift phenomenon. The optical center is also the optical center. The optical center shift phenomenon refers to the deviation of the position of the optical center before and after zooming. The reason may be the production error of the camera equipment, or the optical center movement of the camera equipment due to factors such as collision, etc. After the optical center deviates, the positional relationship between the imaging image and the optical center will change, thus making the object in the imaging image The relative positional relationship between objects will also change, that is, zooming will cause the relative positional relationship between objects in the captured image to change, thereby causing image deviations. This application discovered this phenomenon during the zooming process, and proposed The present application provides a technical solution for eliminating the deviation of the image according to the deviation information of the optical center.

应当指出,本申请中的光心指的是一切方向的光线通过透镜时,都会产生偏折,使光线传播方向发生变化,但透镜上有一点,任意方向的光线通过该点时,光线的传播方向不变,即出射方向和入射方向相互平行,这一点叫透镜的光学中心。It should be pointed out that the optical center in this application refers to the deflection of light rays in all directions passing through the lens, which changes the direction of light propagation. However, there is a point on the lens. When light rays in any direction pass through this point, the propagation of light The direction remains unchanged, that is, the outgoing direction and the incident direction are parallel to each other, which is called the optical center of the lens.

步骤S12:基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像。Step S12: Based on the optical center deviation information, perform deviation elimination on the image captured by the imaging device to obtain the target image.

实际应用中,在确定出光心偏差信息之后,便可以对摄像设备拍摄的图像进行偏差消除,得到目标图像。In practical applications, after the optical center deviation information is determined, the deviation can be eliminated on the image captured by the camera device to obtain the target image.

本申请提供的一种图像处理方法,能够确定摄像设备在变焦过程中出现的光心偏差信息;基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像。本申请中,由于确定出了变焦过程中出现的光心偏差信息,而光心偏差信息会导致变焦前后拍摄图像中物体的位置相对关系发生变化,所以之后会基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到位置相对关系不会随变焦变动的目标图像,拍摄准确性高。An image processing method provided by the present application can determine the optical center deviation information that occurs during the zooming process of the imaging device; based on the optical center deviation information, the deviation is eliminated on the image captured by the imaging device to obtain a target image. In this application, since the optical center deviation information that occurs during the zooming process is determined, and the optical center deviation information will cause changes in the relative positions of objects in the captured images before and after zooming, the imaging equipment will be analyzed based on the optical center deviation information. The deviation of the captured image is eliminated to obtain a target image whose position relative relationship does not change with zooming, and the shooting accuracy is high.

本申请实施例提供的一种图像处理方法中,可以通过对摄像设备进行测试来确定摄像设备的光心偏差信息,在此过程中,为了降低测试难度,可以预先选定测试场景,借助摄像设备对测试场景的变焦拍摄图像来确定光心偏差信息,此外,在拍摄图像中,图像的几何中心也即摄像设备的光学中心,所以可以借助几何中心来确定摄像设备的光心偏差信息,也即步骤S11确定出摄像设备在变焦过程中出现的光心偏差信息的步骤,可以具体为:获取摄像设备在不同焦距下对测试场景拍摄得到的测试图像;基于位于测试图像几何中心的对象间的位置信息,确定光心偏差信息。In an image processing method provided by an embodiment of the present application, the optical center deviation information of the camera device can be determined by testing the camera device. In this process, in order to reduce the difficulty of testing, the test scene can be pre-selected, and The optical center deviation information is determined by zooming and shooting images of the test scene. In addition, in the captured images, the geometric center of the image is also the optical center of the camera device, so the geometric center can be used to determine the optical center deviation information of the camera device, that is Step S11 determines the step of determining the optical center deviation information of the imaging device during the zooming process, which can be specifically: obtaining the test images obtained by the imaging device shooting the test scene at different focal lengths; information to determine the optical center deviation information.

实际应用中,为了降低测试复杂度,可以在测试场景中指定目标对象,根据目标对象在变焦过程中的位置变化信息来确定光心偏差信息,比如获取摄像设备在不同焦距下对测试场景拍摄得到的测试图像,基于位于测试图像几何中心的对象间的位置信息,确定光心偏差信息的步骤,可以具体为:在测试场景中确定出目标对象,将摄像设备的焦距调至最大,将摄像设备的屏幕几何中心对准目标对象,保持摄像设备与测试场景间的位置不变,将摄像设备的焦距调至最小,拍摄得到测试图像,由于摄像设备的光心不随变焦偏移的话,目标对象理论上应该位于测试图像的几何中心,所以可以根据测试图像中目标对象的位置及测试图像的几何中心间的位置信息,确定光心偏差信息。In practical applications, in order to reduce the complexity of the test, the target object can be specified in the test scene, and the optical center deviation information can be determined according to the position change information of the target object during the zooming process. The test image, based on the position information between the objects located in the geometric center of the test image, the step of determining the optical center deviation information can be specifically: determine the target object in the test scene, adjust the focal length of the camera device to the maximum, and set the camera device Align the geometric center of the screen with the target object, keep the position between the camera device and the test scene unchanged, adjust the focal length of the camera device to the minimum, and shoot the test image. Since the optical center of the camera device does not shift with the zoom, the target object theory should be located at the geometric center of the test image, so the optical center deviation information can be determined according to the position of the target object in the test image and the position information between the geometric center of the test image.

请参阅图2,图2为本申请实施例提供的一种图像处理方法的第二流程图。Please refer to FIG. 2 . FIG. 2 is a second flowchart of an image processing method provided by an embodiment of the present application.

本申请实施例提供的一种图像处理方法,可以包括以下步骤:An image processing method provided in an embodiment of the present application may include the following steps:

步骤S21:获取第一焦距下,摄像设备对测试场景进行拍摄得到的第一测试图像。Step S21: Acquiring a first test image obtained by shooting a test scene by an imaging device at a first focal length.

步骤S22:获取第二焦距下,摄像设备对测试场景进行拍摄得到的第二测试图像。Step S22: Obtain a second test image obtained by shooting a test scene by the imaging device at the second focal length.

实际应用中,因为摄像设备的光心偏差信息不会随着变焦倍数的变化而变化,所以可以通过两个焦距下的测试图像来确定光心偏差信息,也即获取摄像设备在不同焦距下对测试场景拍摄得到的测试图像的步骤,可以具体为:获取第一焦距下,摄像设备对测试场景进行拍摄得到的第一测试图像;获取第二焦距下,摄像设备对测试场景进行拍摄得到的第二测试图像。In practical applications, because the optical center deviation information of the imaging device does not change with the change of the zoom factor, the optical center deviation information can be determined through the test images at two focal lengths, that is, the optical center deviation information of the imaging device at different focal lengths can be obtained. The steps of the test image obtained by shooting the test scene can be specifically: obtaining the first test image obtained by shooting the test scene by the camera device at the first focal length; obtaining the first test image obtained by shooting the test scene by the camera device at the second focal length; Two test images.

实际应用中,第一焦距和第二焦距的倍数可以根据实际需要确定,比如第一焦距可以为最大焦距,第二焦距可以为原始焦距等。In practical applications, the multiples of the first focal length and the second focal length can be determined according to actual needs, for example, the first focal length can be the maximum focal length, and the second focal length can be the original focal length.

步骤S23:在摄像设备对测试场景的一幅拍摄图像中,将位于第一测试图像与第二测试图像几何中心的对象间的相对位置关系,作为光心偏差信息。Step S23: In one captured image of the test scene by the imaging device, the relative positional relationship between the objects located at the geometric center of the first test image and the second test image is used as the optical center deviation information.

实际应用中,在获取第一测试图像和第二测试图像之后,可以在摄像设备对测试场景的一幅拍摄图像中,将位于第一测试图像与第二测试图像几何中心的对象间的相对位置关系,作为光心偏差信息,具体的,可以直接在第一测试图像或第二测试图像中,将位于第一测试图像与第二测试图像几何中心的对象间的相对位置关系,作为光心偏差信息等;比如,可以在第一测试图像中,确定出位于几何中心的目标对象,在第二测试图像中,将目标对象与第二测试图像的几何中心间的相对位置关系,确定为光心偏差信息。In practical applications, after the first test image and the second test image are acquired, the relative position between the object located in the geometric center of the first test image and the second test image can be calculated in a captured image of the test scene by the camera device relationship, as the optical center deviation information, specifically, the relative positional relationship between the objects located at the geometric center of the first test image and the second test image can be directly in the first test image or the second test image, as the optical center deviation information, etc.; for example, in the first test image, the target object at the geometric center can be determined, and in the second test image, the relative positional relationship between the target object and the geometric center of the second test image can be determined as the optical center Deviation information.

应当指出,由于同一物体在不同焦距下的成像范围不同,所以位于第一测试图像中的目标对象在第二测试图像中的范围会发生变化,为了确定目标对象的位置,可以根据拍摄焦距灵活选择目标对象的范围;并且,在此过程中,可以灵活选择目标对象的范围形状,比如矩形、三角形等,且可以将目标对象的几何中心作为目标对象的位置等。It should be pointed out that since the same object has different imaging ranges at different focal lengths, the range of the target object in the first test image will change in the second test image. In order to determine the position of the target object, it can be flexibly selected according to the shooting focal length The range of the target object; and, in this process, the range shape of the target object can be flexibly selected, such as rectangle, triangle, etc., and the geometric center of the target object can be used as the position of the target object.

步骤S24:基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像。Step S24: Based on the optical center deviation information, perform deviation elimination on the image captured by the imaging device to obtain the target image.

请参阅图3,图3为本申请实施例提供的一种图像处理方法的第三流程图。Please refer to FIG. 3 . FIG. 3 is a third flowchart of an image processing method provided by an embodiment of the present application.

本申请实施例提供的一种图像处理方法,可以包括以下步骤:An image processing method provided in an embodiment of the present application may include the following steps:

步骤S31:获取第一焦距下,摄像设备对测试场景进行拍摄得到的第一测试图像。Step S31: Obtain a first test image obtained by photographing a test scene by an imaging device at a first focal length.

步骤S32获取第二焦距下,摄像设备对测试场景进行拍摄得到的第二测试图像。Step S32 acquires a second test image obtained by shooting a test scene by the imaging device at the second focal length.

步骤S33:在第一测试图像中,确定位于几何中心的目标对象。Step S33: In the first test image, determine the target object located at the geometric center.

步骤S34:确定目标对象在第二测试图像中的第一位置;确定第二测试图像的几何中心的第二位置;Step S34: determining the first position of the target object in the second test image; determining the second position of the geometric center of the second test image;

步骤S35:将第一位置与第二位置间的比值,作为光心偏差信息。Step S35: Using the ratio between the first position and the second position as the optical center deviation information.

步骤S36:基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像。Step S36: Based on the optical center deviation information, perform deviation elimination on the image captured by the imaging device to obtain the target image.

实际应用中,可以先确定目标对象在第二测试图像中的第一位置,确定第二测试图像的几何中心的第二位置,将第一位置与第二位置间的比值,作为光心偏差信息;也即可以将位于两幅测试图像几何中心的物体间的坐标比值作为光心偏差信息,这样,在基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像时,可以直接将图像坐标与光心偏差信息进行相乘或相除,即可进行偏差消除。In practical applications, the first position of the target object in the second test image can be determined first, the second position of the geometric center of the second test image can be determined, and the ratio between the first position and the second position can be used as the optical center deviation information ; That is to say, the coordinate ratio between the objects located at the geometric centers of the two test images can be used as the optical center deviation information, so that, based on the optical center deviation information, the image taken by the camera device is eliminated to obtain the target image. The deviation can be eliminated by multiplying or dividing the image coordinates and the deviation information of the optical center.

实际应用中,为了降低光心偏差信息的复杂度,可以将光心偏差信息分为横坐标偏差信息和纵坐标偏差信息,也即第一位置包括第一横坐标、第一纵坐标;第二位置包括第二横坐标、第二纵坐标;相应的,将第一位置与第二位置间的比值,作为光心偏差信息的步骤,可以具体为:确定第一横坐标与第二横坐标间的横坐标比例;确定第一纵坐标与第二纵坐标间的纵坐标比例;将横坐标比例和纵坐标比例作为光心偏差信息。应当指出,横坐标比例也即横坐标偏差信息,纵坐标比例也即纵坐标偏差信息。In practical applications, in order to reduce the complexity of the optical center deviation information, the optical center deviation information can be divided into abscissa deviation information and ordinate deviation information, that is, the first position includes the first abscissa and the first ordinate; the second The position includes a second abscissa and a second ordinate; correspondingly, the step of using the ratio between the first position and the second position as the optical center deviation information may specifically be: determine the distance between the first abscissa and the second abscissa The abscissa ratio; determine the ordinate ratio between the first ordinate and the second ordinate; use the abscissa ratio and the ordinate ratio as the optical center deviation information. It should be noted that the ratio of the abscissa is also the deviation information of the abscissa, and the ratio of the ordinate is also the deviation information of the ordinate.

具体应用场景中,基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像的过程中,若摄像设备拍摄图像时焦距变大,也即当前拍摄得到的图像是经过调大焦距操作得到的图像,则需要将图像中待调整对象的坐标与光心偏差信息的乘积,作为目标图像中待调整对象的新坐标。In a specific application scenario, based on the optical center deviation information, the deviation of the image captured by the camera device is eliminated. In the process of obtaining the target image, if the focal length of the image captured by the camera device becomes larger, that is, the currently captured image is obtained after the focal length is increased. To operate the obtained image, the product of the coordinates of the object to be adjusted in the image and the optical center deviation information needs to be used as the new coordinates of the object to be adjusted in the target image.

具体应用场景中,基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像的过程中,若摄像设备拍摄图像时焦距变小,也即当前拍摄得到的图像是经过调小焦距操作得到的图像,则需要将图像中待调整对象的坐标与光心偏差信息的比值,作为目标图像中待调整对象的新坐标。In a specific application scenario, based on the optical center deviation information, the deviation of the image captured by the camera device is eliminated. In the process of obtaining the target image, if the focal length becomes smaller when the camera device captures the image, that is, the currently captured image is obtained after reducing the focal length. To operate the obtained image, it is necessary to use the ratio of the coordinates of the object to be adjusted in the image to the optical center deviation information as the new coordinates of the object to be adjusted in the target image.

实际应用中,本申请中的横坐标与纵坐标可以为摄像设备的屏幕坐标系下的坐标值。也即可以根据屏幕坐标系来确定光心偏差信息,由于屏幕坐标系与摄像设备的屏幕分辨率相关,所以可以基于摄像设备的屏幕分辨率来确定光心偏差信息,比如摄像设备的分辨率为(width,height),原先位于第一测试图像几何中心处的物体A,在第二测试图像中的坐标为(x,y),则可以将(2x/width)作为横坐标比例,将(2y/height)作为纵坐标比例等。In practical applications, the abscissa and ordinate in this application may be coordinate values in the screen coordinate system of the imaging device. That is, the optical center deviation information can be determined according to the screen coordinate system. Since the screen coordinate system is related to the screen resolution of the camera device, the optical center deviation information can be determined based on the screen resolution of the camera device. For example, the resolution of the camera device is (width, height), the object A originally located at the geometric center of the first test image, the coordinates in the second test image are (x, y), then (2x/width) can be used as the abscissa ratio, and (2y /height) as the ordinate scale, etc.

请参阅图4,图4为本申请实施例提供的一种图像处理方法的第四流程图。Please refer to FIG. 4 . FIG. 4 is a fourth flowchart of an image processing method provided by an embodiment of the present application.

本申请实施例提供的一种图像处理方法,可以包括以下步骤:An image processing method provided in an embodiment of the present application may include the following steps:

步骤S41:确定摄像设备在变焦过程中出现的光心偏差信息。Step S41: Determine the optical center deviation information that occurs during the zooming process of the imaging device.

步骤S42:获取图像处理任务;图像处理任务的类型包括:隐私遮挡任务、3D定位任务、AR标签追踪任务。Step S42: Acquire image processing tasks; types of image processing tasks include: privacy masking tasks, 3D positioning tasks, and AR tag tracking tasks.

步骤S43:基于图像处理任务、光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像。Step S43: Based on the image processing task and the optical center deviation information, perform deviation elimination on the image captured by the imaging device to obtain the target image.

实际应用中,在对摄像设备拍摄的图像进行偏差消除的过程中,可能需要根据应用场景,也即根据图像处理任务来决定偏差消除方式,也即基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像的步骤,可以具体为:获取图像处理任务;基于图像处理任务、光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像;图像处理任务的类型包括:隐私遮挡任务、3D定位任务、AR标签追踪任务。In practical applications, in the process of eliminating the deviation of the images captured by the camera equipment, it may be necessary to determine the deviation elimination method according to the application scenario, that is, according to the image processing task, that is, based on the optical center deviation information, the image captured by the camera equipment The step of eliminating the deviation and obtaining the target image may be specifically: obtaining an image processing task; based on the image processing task and optical center deviation information, performing deviation elimination on the image captured by the camera equipment to obtain the target image; the types of image processing tasks include: Privacy masking tasks, 3D positioning tasks, AR tag tracking tasks.

为了便于理解,现结合隐私遮挡任务来对本申请提供的图像处理方法进行描述。请参阅图5,图5为本申请实施例提供的一种用矩形框隐私遮挡图像中树叶的变焦成像过程,其中,左上角的图为最高焦距下的成像图,右上角的图为第二高焦距下的成像图,左下角为第二低焦距下的成像图,右下角为最低焦距下的成像图,由图5可知,在最高焦距下,矩形框还能遮挡住树叶,而在最低焦距下,矩形框已遮挡不住树叶,此时,便需要应用本申请提供的图像处理方法来对成像图中的矩形框或树叶进行偏差消除,使得在每幅成像图中,矩形框均可以遮挡住树叶。For ease of understanding, the image processing method provided in this application is now described in conjunction with the privacy masking task. Please refer to FIG. 5. FIG. 5 is a zoom imaging process of using a rectangular frame to shield leaves in an image provided by an embodiment of the present application, wherein the picture in the upper left corner is the imaging picture at the highest focal length, and the picture in the upper right corner is the second The imaging image at the high focal length, the lower left corner is the imaging image at the second lowest focal length, and the lower right corner is the imaging image at the lowest focal length. It can be seen from Figure 5 that at the highest focal length, the rectangular frame can still cover the leaves, while at the lowest At the focal length, the rectangular frame can no longer cover the leaves. At this time, it is necessary to apply the image processing method provided by this application to eliminate the deviation of the rectangular frame or leaves in the imaging image, so that in each imaging image, the rectangular frame can be Shade the leaves.

请参阅图6,图6为本申请实施例提供的一种图像处理系统的结构示意图。Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of an image processing system provided by an embodiment of the present application.

本申请实施例提供的一种图像处理系统,可以包括:An image processing system provided in an embodiment of the present application may include:

偏差确定模块11,用于确定摄像设备在变焦过程中出现的光心偏差信息;Adeviation determination module 11, configured to determine the optical center deviation information that occurs during the zooming process of the imaging device;

偏差消除模块12,用于基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像。Thedeviation elimination module 12 is configured to perform deviation elimination on the image captured by the imaging device based on the optical center deviation information to obtain the target image.

本申请实施例提供的一种图像处理系统,偏差确定模块可以包括:In an image processing system provided in an embodiment of the present application, the deviation determination module may include:

第一获取子模块,用于获取摄像设备在不同焦距下对测试场景拍摄得到的测试图像;The first acquisition sub-module is used to acquire the test images obtained by shooting the test scene by the camera equipment at different focal lengths;

第一确定子模块,用于基于位于测试图像几何中心的对象间的位置信息,确定光心偏差信息。The first determination sub-module is configured to determine optical center deviation information based on the position information between objects located at the geometric center of the test image.

本申请实施例提供的一种图像处理系统,第一获取子模块可以包括:In an image processing system provided in an embodiment of the present application, the first acquisition submodule may include:

第一获取单元,用于获取第一焦距下,摄像设备对测试场景进行拍摄得到的第一测试图像;The first acquisition unit is configured to acquire the first test image obtained by photographing the test scene by the imaging device at the first focal length;

第二获取单元,用于获取第二焦距下,摄像设备对测试场景进行拍摄得到的第二测试图像;The second acquisition unit is configured to acquire a second test image obtained by photographing the test scene by the camera device at the second focal length;

第一确定子模块可以包括:The first determination submodule may include:

第二确定子模块,用于在摄像设备对测试场景的一幅拍摄图像中,将位于第一测试图像与第二测试图像几何中心的对象间的相对位置关系,确定为光心偏差信息。The second determination sub-module is used to determine the relative positional relationship between the objects located at the geometric centers of the first test image and the second test image in a captured image of the test scene by the imaging device as optical center deviation information.

本申请实施例提供的一种图像处理系统,第二确定子模块可以包括:In an image processing system provided in an embodiment of the present application, the second determining submodule may include:

第三确定子模块,用于在第一测试图像中,确定出位于几何中心的目标对象;The third determining submodule is used to determine the target object located at the geometric center in the first test image;

第四确定子模块,用于在第二测试图像中,将目标对象与第二测试图像的几何中心间的相对位置关系,确定为光心偏差信息。The fourth determination sub-module is configured to determine, in the second test image, the relative positional relationship between the target object and the geometric center of the second test image as optical center deviation information.

本申请实施例提供的一种图像处理系统,第四确定子模块可以包括:In an image processing system provided in an embodiment of the present application, the fourth determining submodule may include:

第五确定子模块,用于确定目标对象在第二测试图像中的第一位置;确定第二测试图像的几何中心的第二位置;The fifth determination submodule is used to determine the first position of the target object in the second test image; determine the second position of the geometric center of the second test image;

第一设置子模块,用于将第一位置与第二位置间的比值,设置为光心偏差信息。The first setting sub-module is used to set the ratio between the first position and the second position as the optical center deviation information.

本申请实施例提供的一种图像处理系统,第一位置可以包括第一横坐标、第一纵坐标;第二位置可以包括第二横坐标、第二纵坐标;In an image processing system provided in an embodiment of the present application, the first position may include a first abscissa and a first ordinate; the second position may include a second abscissa and a second ordinate;

第一设置子模块可以包括:The first setting submodule may include:

第一确定单元,用于确定第一横坐标与第二横坐标间的横坐标比例;a first determination unit, configured to determine the ratio of the abscissa between the first abscissa and the second abscissa;

第二确定单元,用于确定第一纵坐标与第二纵坐标间的纵坐标比例;a second determining unit, configured to determine the ordinate ratio between the first ordinate and the second ordinate;

第一设置单元,用于将横坐标比例和纵坐标比例设置为光心偏差信息。The first setting unit is configured to set the abscissa ratio and the ordinate ratio as the optical center deviation information.

本申请实施例提供的一种图像处理系统,横坐标与纵坐标为摄像设备的屏幕坐标系下的坐标值。In an image processing system provided in an embodiment of the present application, the abscissa and ordinate are coordinate values in the screen coordinate system of the imaging device.

本申请实施例提供的一种图像处理系统,偏差消除模块可以包括:In an image processing system provided in an embodiment of the present application, the deviation elimination module may include:

第一消除单元,用于若摄像设备拍摄图像时焦距变大,则将图像中待调整对象的坐标与光心偏差信息的乘积,作为目标图像中待调整对象的新坐标。The first elimination unit is configured to use the product of the coordinates of the object to be adjusted in the image and the optical center deviation information as the new coordinates of the object to be adjusted in the target image if the focal length becomes larger when the image is captured by the imaging device.

本申请实施例提供的一种图像处理系统,偏差消除模块可以包括:In an image processing system provided in an embodiment of the present application, the deviation elimination module may include:

第二消除单元,用于若摄像设备拍摄图像时焦距变小,则将图像中待调整对象的坐标与光心偏差信息的比值,作为目标图像中待调整对象的新坐标。The second elimination unit is configured to use the ratio of the coordinates of the object to be adjusted in the image to the optical center deviation information as the new coordinates of the object to be adjusted in the target image if the focal length becomes smaller when the image is captured by the imaging device.

本申请实施例提供的一种图像处理系统,第一焦距可以为最大焦距,第二焦距可以为原始焦距。In an image processing system provided in an embodiment of the present application, the first focal length may be a maximum focal length, and the second focal length may be an original focal length.

本申请实施例提供的一种图像处理系统,偏差消除模块可以包括:In an image processing system provided in an embodiment of the present application, the deviation elimination module may include:

第三获取单元,用于获取图像处理任务;a third acquiring unit, configured to acquire an image processing task;

第三消除单元,用于基于图像处理任务、光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像;The third elimination unit is used to eliminate the deviation of the image taken by the camera device based on the image processing task and the optical center deviation information to obtain the target image;

图像处理任务的类型包括:隐私遮挡任务、3D定位任务、AR标签追踪任务。The types of image processing tasks include: privacy masking tasks, 3D positioning tasks, and AR tag tracking tasks.

本申请还提供了一种图像处理设备及计算机可读存储介质,其均具有本申请实施例提供的一种图像处理方法具有的对应效果。请参阅图7,图7为本申请实施例提供的一种图像处理设备的结构示意图。The present application also provides an image processing device and a computer-readable storage medium, both of which have corresponding effects of the image processing method provided in the embodiment of the present application. Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of an image processing device provided in an embodiment of the present application.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202, a computer program is stored in thememory 201, and theprocessor 202 implements the following steps when executing the computer program:

确定摄像设备在变焦过程中出现的光心偏差信息;Determine the optical center deviation information that occurs during the zooming process of the imaging device;

基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像。Based on the optical center deviation information, the deviation is eliminated on the image captured by the imaging device to obtain the target image.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:获取摄像设备在不同焦距下对测试场景拍摄得到的测试图像;基于位于测试图像几何中心的对象间的位置信息,确定光心偏差信息。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: obtain the photographing of the test scene by the camera device at different focal lengths The obtained test image; based on the position information between the objects located at the geometric center of the test image, the optical center deviation information is determined.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:获取第一焦距下,摄像设备对测试场景进行拍摄得到的第一测试图像;获取第二焦距下,摄像设备对测试场景进行拍摄得到的第二测试图像;在摄像设备对测试场景的一幅拍摄图像中,将位于第一测试图像与第二测试图像几何中心的对象间的相对位置关系,作为光心偏差信息。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: obtain the image of the test scene of the imaging device at the first focal length Take the first test image obtained by shooting; obtain the second test image obtained by shooting the test scene by the camera equipment at the second focal length; 2. Test the relative positional relationship between the objects at the geometric center of the image as the optical center deviation information.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:在第一测试图像中,确定出位于几何中心的目标对象;在第二测试测图中,将目标对象与第二测试图像的几何中心间的相对位置关系,确定为光心偏差信息。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: In the first test image, determine the The target object at the center; in the second test pattern, the relative positional relationship between the target object and the geometric center of the second test image is determined as the optical center deviation information.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:确定目标对象在第二测试图像中的第一位置;确定第二测试图像的几何中心的第二位置;将第一位置与第二位置间的比值,作为光心偏差信息。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: determine the first position of the target object in the second test image a position; determine a second position of the geometric center of the second test image; use the ratio between the first position and the second position as the optical center deviation information.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:第一位置包括第一横坐标、第一纵坐标;第二位置包括第二横坐标、第二纵坐标;确定第一横坐标与第二横坐标间的横坐标比例;确定第一纵坐标与第二纵坐标间的纵坐标比例;将横坐标比例和纵坐标比例作为光心偏差信息。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: the first position includes the first abscissa, the first The ordinate; the second position includes the second abscissa and the second ordinate; determine the ratio of the abscissa between the first abscissa and the second abscissa; determine the ratio of the ordinate between the first ordinate and the second ordinate; The ratio of abscissa and ordinate is used as the optical center deviation information.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:横坐标与纵坐标为摄像设备的屏幕坐标系下的坐标值。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: the abscissa and the ordinate are the screen coordinates of the imaging device Coordinate values under the system.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:若摄像设备拍摄图像时焦距变大,则将图像中待调整对象的坐标与光心偏差信息的乘积,作为目标图像中待调整对象的新坐标。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: if the focal length becomes larger when the imaging device takes an image, then The product of the coordinates of the object to be adjusted in the image and the optical center deviation information is used as the new coordinates of the object to be adjusted in the target image.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:若摄像设备拍摄图像时焦距变小,则将图像中待调整对象的坐标与光心偏差信息的比值,作为目标图像中待调整对象的新坐标。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: if the focal length becomes smaller when the imaging device captures an image, then The ratio of the coordinates of the object to be adjusted in the image to the optical center deviation information is used as the new coordinates of the object to be adjusted in the target image.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:第一焦距为最大焦距,第二焦距为原始焦距。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: the first focal length is the maximum focal length, and the second focal length is original focal length.

本申请实施例提供的一种图像处理设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如下步骤:获取图像处理任务;基于图像处理任务、光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像;图像处理任务的类型包括:隐私遮挡任务、3D定位任务、AR标签追踪任务。An image processing device provided in an embodiment of the present application includes amemory 201 and aprocessor 202. A computer program is stored in thememory 201. When theprocessor 202 executes the computer program, the following steps are implemented: acquiring an image processing task; Center deviation information, eliminate the deviation of the image captured by the camera equipment, and obtain the target image; the types of image processing tasks include: privacy masking tasks, 3D positioning tasks, and AR tag tracking tasks.

请参阅图8,本申请实施例提供的另一种图像处理设备中还可以包括:与处理器202连接的输入端口203,用于传输外界输入的命令至处理器202;与处理器202连接的显示单元204,用于显示处理器202的处理结果至外界;与处理器202连接的通信模块205,用于实现图像处理设备与外界的通信。显示单元204可以为显示面板、激光扫描式显示器等;通信模块205所采用的通信方式包括但不局限于移动高清链接技术(HML)、通用串行总线(USB)、高清多媒体接口(HDMI)、无线连接:无线保真技术(WiFi)、蓝牙通信技术、低功耗蓝牙通信技术、基于IEEE802.11s的通信技术。Please refer to FIG. 8 , another image processing device provided by the embodiment of the present application may also include: aninput port 203 connected to theprocessor 202 for transmitting commands input from the outside to theprocessor 202; Thedisplay unit 204 is used to display the processing result of theprocessor 202 to the outside world; thecommunication module 205 connected to theprocessor 202 is used to realize the communication between the image processing device and the outside world. Thedisplay unit 204 can be a display panel, a laser scanning display, etc.; the communication methods adopted by thecommunication module 205 include but are not limited to mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), Wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, low power consumption bluetooth communication technology, communication technology based on IEEE802.11s.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:In a computer-readable storage medium provided by an embodiment of the present application, a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented:

确定摄像设备在变焦过程中出现的光心偏差信息;Determine the optical center deviation information that occurs during the zooming process of the imaging device;

基于光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像。Based on the optical center deviation information, the deviation is eliminated on the image captured by the imaging device to obtain the target image.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:获取摄像设备在不同焦距下对测试场景拍摄得到的测试图像;基于位于测试图像几何中心的对象间的位置信息,确定光心偏差信息。A computer-readable storage medium provided by an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: Obtain the test results obtained by shooting the test scene by the camera device at different focal lengths. An image; determining optical center deviation information based on position information between objects located at the geometric center of the test image.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:获取第一焦距下,摄像设备对测试场景进行拍摄得到的第一测试图像;获取第二焦距下,摄像设备对测试场景进行拍摄得到的第二测试图像;在摄像设备对测试场景的一幅拍摄图像中,将位于第一测试图像与第二测试图像几何中心的对象间的相对位置关系,作为光心偏差信息。A computer-readable storage medium provided by an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: at the first focal length, the imaging device shoots the test scene to obtain The first test image of the first test image; obtain the second test image obtained by shooting the test scene by the camera device at the second focal length; in a shot image of the test scene by the camera device, the first test image and the second test image The relative positional relationship between the objects in the geometric center is used as the optical center deviation information.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:在第一测试图像中,确定出位于几何中心的目标对象;在第二测试图像中,将目标对象与第二测试图像的几何中心间的相对位置关系,确定为光心偏差信息。In the computer-readable storage medium provided by the embodiment of the present application, a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: In the first test image, determine the target located at the geometric center Object: in the second test image, determining the relative positional relationship between the target object and the geometric center of the second test image as optical center deviation information.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:确定目标对象在第二测试图像中的第一位置;确定第二测试图像的几何中心的第二位置;将第一位置与第二位置间的比值,作为光心偏差信息。In a computer-readable storage medium provided by an embodiment of the present application, a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented: determining the first position of the target object in the second test image; determining a second position of the geometric center of the second test image; using the ratio between the first position and the second position as optical center deviation information.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:第一位置包括第一横坐标、第一纵坐标;第二位置包括第二横坐标、第二纵坐标;确定第一横坐标与第二横坐标间的横坐标比例;确定第一纵坐标与第二纵坐标间的纵坐标比例;将横坐标比例和纵坐标比例作为光心偏差信息。A computer-readable storage medium provided by an embodiment of the present application. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: the first position includes a first abscissa and a first ordinate; The second position includes a second abscissa and a second ordinate; determine the ratio of the abscissa between the first abscissa and the second abscissa; determine the ratio of the ordinate between the first ordinate and the second ordinate; and the ordinate ratio as the optical center deviation information.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:横坐标与纵坐标为摄像设备的屏幕坐标系下的坐标值。A computer-readable storage medium provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: coordinate value.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:若摄像设备拍摄图像时焦距变大,则将图像中待调整对象的坐标与光心偏差信息的乘积,作为目标图像中待调整对象的新坐标。A computer-readable storage medium provided in an embodiment of the present application, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented: The product of the coordinates of the object to be adjusted and the optical center deviation information is used as the new coordinates of the object to be adjusted in the target image.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:若摄像设备拍摄图像时焦距变小,则将图像中待调整对象的坐标与光心偏差信息的比值,作为目标图像中待调整对象的新坐标。A computer-readable storage medium provided in an embodiment of the present application, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented: The ratio of the coordinates of the object to be adjusted to the optical center deviation information is used as the new coordinates of the object to be adjusted in the target image.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:第一焦距为最大焦距,第二焦距为原始焦距。In the computer-readable storage medium provided by the embodiment of the present application, a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented: the first focal length is the maximum focal length, and the second focal length is the original focal length.

本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如下步骤:获取图像处理任务;基于图像处理任务、光心偏差信息,对摄像设备拍摄的图像进行偏差消除,得到目标图像;图像处理任务的类型包括:隐私遮挡任务、3D定位任务、AR标签追踪任务。A computer-readable storage medium provided in an embodiment of the present application, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented: acquiring an image processing task; based on the image processing task and optical center deviation information , to eliminate the deviation of the image captured by the camera equipment to obtain the target image; the types of image processing tasks include: privacy masking tasks, 3D positioning tasks, and AR tag tracking tasks.

本申请所涉及的计算机可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。The computer-readable storage medium involved in this application includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM , or any other form of storage medium known in the technical field.

本申请实施例提供的图像处理系统、设备及计算机可读存储介质中相关部分的说明请参见本申请实施例提供的图像处理方法中对应部分的详细说明,在此不再赘述。另外,本申请实施例提供的上述技术方案中与背景技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。For descriptions of relevant parts of the image processing system, device, and computer-readable storage medium provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in the image processing method provided in the embodiments of the present application, and details are not repeated here. In addition, the parts of the above technical solutions provided by the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the background art are not described in detail, so as not to repeat them too much.

还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this article, relational terms such as first and second etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations Any such actual relationship or order exists between. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

CN202010229679.7A2020-03-272020-03-27Image processing method, system, equipment and computer readable storage mediumActiveCN113452897B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010229679.7ACN113452897B (en)2020-03-272020-03-27Image processing method, system, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010229679.7ACN113452897B (en)2020-03-272020-03-27Image processing method, system, equipment and computer readable storage medium

Publications (2)

Publication NumberPublication Date
CN113452897A CN113452897A (en)2021-09-28
CN113452897Btrue CN113452897B (en)2023-04-07

Family

ID=77807840

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010229679.7AActiveCN113452897B (en)2020-03-272020-03-27Image processing method, system, equipment and computer readable storage medium

Country Status (1)

CountryLink
CN (1)CN113452897B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104980730A (en)*2014-04-012015-10-14宁波舜宇光电信息有限公司Method for positioning optical center on the basis of concentric circle theory
CN105825493A (en)*2015-01-092016-08-03华为技术有限公司Image registration method and device
CN108171673A (en)*2018-01-122018-06-15京东方科技集团股份有限公司Image processing method, device, vehicle-mounted head-up-display system and vehicle

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2006191181A (en)*2004-12-282006-07-20Canon Marketing Japan IncImaging device, its control method, and its control program
JP2007058028A (en)*2005-08-262007-03-08Fujinon CorpLens system and camera system
JP6476701B2 (en)*2014-09-302019-03-06カシオ計算機株式会社 Imaging apparatus, lens position shift correction method, and program
CN110858872B (en)*2018-08-232021-06-22浙江宇视科技有限公司Optical axis offset compensation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104980730A (en)*2014-04-012015-10-14宁波舜宇光电信息有限公司Method for positioning optical center on the basis of concentric circle theory
CN105825493A (en)*2015-01-092016-08-03华为技术有限公司Image registration method and device
CN108171673A (en)*2018-01-122018-06-15京东方科技集团股份有限公司Image processing method, device, vehicle-mounted head-up-display system and vehicle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁保宗.光心位置计算.《信息技术促成人机融合》.北京:北京交通大学出版社,2018,*

Also Published As

Publication numberPublication date
CN113452897A (en)2021-09-28

Similar Documents

PublicationPublication DateTitle
CN110717942B (en) Image processing method and apparatus, electronic device, computer-readable storage medium
CN113365041B (en)Projection correction method, projection correction device, storage medium and electronic equipment
US10306165B2 (en)Image generating method and dual-lens device
US12307683B2 (en)Subject detecting method and device, electronic device, and non-transitory computer-readable storage medium
CN104867113B (en)The method and system of perspective image distortion correction
US20160301868A1 (en)Automated generation of panning shots
US20230033956A1 (en)Estimating depth based on iris size
CN111083458B (en)Brightness correction method, system, equipment and computer readable storage medium
US12039767B2 (en)Subject detection method and apparatus, electronic device, and computer-readable storage medium
CN108717704B (en)Target tracking method based on fisheye image, computer device and computer readable storage medium
WO2019105151A1 (en)Method and device for image white balance, storage medium and electronic equipment
WO2019232793A1 (en)Two-camera calibration method, electronic device and computer-readable storage medium
CN109828681A (en)Laser pen light stream trace tracking method, projection device and computer readable storage medium
CN110650288A (en)Focusing control method and device, electronic equipment and computer readable storage medium
CN116416701A (en)Inspection method, inspection device, electronic equipment and storage medium
CN114640833A (en)Projection picture adjusting method and device, electronic equipment and storage medium
CN116343652A (en)LED display screen splice line compensation system, method, equipment and storage medium
CN115423709A (en)Image processing method, image processing device, electronic equipment and computer readable storage medium
CN113452897B (en)Image processing method, system, equipment and computer readable storage medium
CN113938578A (en)Image blurring method, storage medium and terminal device
WO2021093537A1 (en)Phase difference acquisition method and device, electronic apparatus, and computer readable storage medium
JP2020048034A (en)Electronic device and notification method
KR102242202B1 (en)Apparatus and Method for camera calibration
WO2018099128A1 (en)Method and device used in projection apparatus
TWI892360B (en) Projection image correction method, device, projection equipment, acquisition equipment and readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp