[go: up one dir, main page]

CN106303155B - Image processing method and image processing device - Google Patents

Image processing method and image processing device Download PDF

Info

Publication number
CN106303155B
CN106303155B CN201510303870.0A CN201510303870A CN106303155B CN 106303155 B CN106303155 B CN 106303155B CN 201510303870 A CN201510303870 A CN 201510303870A CN 106303155 B CN106303155 B CN 106303155B
Authority
CN
China
Prior art keywords
image
light source
mode
automatic cleaning
background noise
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
CN201510303870.0A
Other languages
Chinese (zh)
Other versions
CN106303155A (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.)
Pixart Imaging Inc
Original Assignee
Pixart Imaging Inc
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 Pixart Imaging Inc filed Critical Pixart Imaging Inc
Priority to CN201510303870.0A priority Critical patent/CN106303155B/en
Publication of CN106303155A publication Critical patent/CN106303155A/en
Application granted granted Critical
Publication of CN106303155B publication Critical patent/CN106303155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses an image processing method, which is applied to an image processing device, wherein the image processing device comprises a light source and an image sensor, and comprises the following steps: capturing a first image by an image sensor when the light source operates in a first mode; capturing a second image by the image sensor when the light source operates in a second mode; capturing a third image by the image sensor when the light source operates in the first mode; forming a mixed image by the first image and the third image; the mixed image is subtracted from the second image to obtain a target image without background noise. By this method, the target image with background noise removed can be obtained more accurately.

Description

影像处理方法以及影像处理装置Image processing method and image processing device

技术领域technical field

本发明有关于影像处理方法以及影像处理装置,特别有关于可得到一去背景杂讯后的目标影像的影像处理方法以及影像处理装置。The present invention relates to an image processing method and an image processing device, in particular to an image processing method and an image processing device capable of obtaining a target image after removing background noise.

背景技术Background technique

近年来,自动清扫装置(例如:扫地机器人)逐渐普及,即使使用者不在场,此种装置仍然可以自行进行清扫工作。此类装置在不进行清扫时,可连接在一基座进行充电,而在预定清扫时间到或是感应到环境脏乱时,会自行离开基座进行清扫工作。而在进行完清扫工作后,会自动回到基座进行充电。因此,自动清扫装置须具有量测距离的功能,来量测自动清扫装置与外围物体的距离。否则在进行自动清扫工作时,可能会撞击到物体而造成自动清扫装置的损坏,或是造成物体的损坏。In recent years, automatic cleaning devices (such as floor sweeping robots) have become more and more popular. Even if the user is not present, this type of device can still perform cleaning work by itself. This type of device can be connected to a base for charging when not cleaning, and will leave the base for cleaning when the scheduled cleaning time is up or when the environment is dirty. After cleaning, it will automatically return to the base for charging. Therefore, the automatic cleaning device must have a distance measuring function to measure the distance between the automatic cleaning device and peripheral objects. Otherwise, during the automatic cleaning work, objects may be hit and the automatic cleaning device may be damaged, or the objects may be damaged.

自动清扫装置通常会包含一距离量测装置用来量测距离,此距离量测装置可运用多种机制来量测距离。其中一种机制为利用影像来量测距离。此机制下,距离量测装置会包含一影像传感器来撷取目标物(例如墙)的多个影像,并根据这些影像来计算出距离。举例来说,可根据多个影像中对象的距离、角度或形变来计算出距离。The automatic cleaning device usually includes a distance measuring device for measuring the distance. The distance measuring device can use various mechanisms to measure the distance. One such mechanism is the use of images to measure distances. Under this mechanism, the distance measurement device will include an image sensor to capture multiple images of the target object (such as a wall), and calculate the distance based on these images. For example, the distance can be calculated based on the distance, angle or deformation of objects in multiple images.

然而,撷取的影像可能会受到周遭环境的干扰(例如环境光),使得在计算距离时产生误差。为了改善这样的状况,会对撷取的影像施行”去背景杂讯”的步骤来对撷取的影像进行校正,并以校正后的影像来计算出距离。通常的作法为,先以光源对目标物照光并撷取影像A,然后在不发光的状态下撷取影像B,并以A影像减去B影像后即可得到去背景杂讯后的目标影像,然后再以此去背景杂讯后的目标影像来进行距离的计算。然而,此类去背景杂讯的机制在自动清扫装置移动且图框率(frame rate)较低时,可能会产生一些问题。However, the captured image may be disturbed by the surrounding environment (such as ambient light), causing errors in calculating the distance. In order to improve this situation, the captured image will be corrected by performing a "removal of background noise" step, and the distance will be calculated using the corrected image. The usual practice is to first illuminate the target with a light source and capture image A, then capture image B in a state where no light is emitted, and subtract image B from image A to obtain the target image after removing background noise , and then use the target image after removing background noise to calculate the distance. However, this type of background noise removal mechanism may cause some problems when the automatic cleaning device is moving and the frame rate is low.

图1A绘示了习知技术中,一自动清洁装置逐渐远离目标物W的示意图。在图1A的例子中,自动清洁装置R逐渐远离目标物W(例如墙),因此如图1A所示,其撷取的影像范围会有所不同。自动清洁装置R在位置P1、P2、P3时,所撷取的影像分别为f1、f2、f3,且自动清洁装置R在位置P1、P3时,其内的光源是开启的状态,而在位置P2时,其内的光源是关闭的状态。因此会以影像f3减去影像f2来得到去背景杂讯后的目标影像。然而,因为自动清洁装置R在位置P2和P3时,所撷取的影像范围有所不同,因此影像f2相较于影像f3会少了部份信息(图1B中的斜线部份),且对象Ob1、Ob2的大小可能有所不同。因此在去背景杂讯时可能会计算出错误的目标影像。FIG. 1A is a schematic diagram of an automatic cleaning device moving away from a target W gradually in the prior art. In the example shown in FIG. 1A , the automatic cleaning device R gradually moves away from the target object W (such as a wall). Therefore, as shown in FIG. 1A , the image ranges captured by it will vary. When the automatic cleaning device R is at the positions P1, P2, and P3, the captured images are f1, f2, and f3 respectively, and when the automatic cleaning device R is at the positions P1, P3, the light source inside is turned on, while at the position At P2, the light source inside is off. Therefore, the image f2 is subtracted from the image f3 to obtain the target image after removing the background noise. However, because the image ranges captured by the automatic cleaning device R are different at positions P2 and P3, the image f2 will have less information than the image f3 (the oblique line in FIG. 1B ), and The objects Ob1, Ob2 may have different sizes. Therefore, wrong target images may be calculated when removing background noise.

而自动清洁装置相对于目标物W(平行或呈现一角度)移动或是旋转时,亦可能有相同的问题。图2A绘示了习知技术中,一自动清洁装置相对于目标物W移动的示意图,图2B绘示了图2A的例子中,如何得到去背景杂讯后的目标影像的示意图。如图2B所示,自动清洁装置R是相对于目标物W移动,在位置P1、P2、P3时,所撷取的影像分别为f1、f2、f3。且自动清洁装置R在位置P1、P3时,其内的光源是开启的状态,而在位置P2时,其内的光源是关闭的状态。因此会以影像f3减去影像f2来得到去背景杂讯后的目标影像。但因为影像f2、f3包含了不同的内容,如图2B所示,影像f2包含对象ob1、ob2,但影像f3仅包含对象ob2,因此若将影像f2、f3相减会得到错误的去背景杂讯后的目标影像,进而影响到距离的计算。而自动清洁装置旋转时,亦可能发生如图2A和图2B所述的状况。The same problem may also occur when the automatic cleaning device moves or rotates relative to the object W (parallel or at an angle). 2A is a schematic diagram of an automatic cleaning device moving relative to an object W in the prior art, and FIG. 2B is a schematic diagram of how to obtain an object image after removing background noise in the example of FIG. 2A . As shown in FIG. 2B , the automatic cleaning device R moves relative to the target object W, and when it is at the positions P1 , P2 , and P3 , the captured images are f1 , f2 , and f3 , respectively. And when the automatic cleaning device R is at the positions P1 and P3, the light source inside is turned on, and when the automatic cleaning device R is at the position P2, the light source inside is turned off. Therefore, the image f2 is subtracted from the image f3 to obtain the target image after removing the background noise. However, because the images f2 and f3 contain different contents, as shown in Figure 2B, the image f2 contains the objects ob1 and ob2, but the image f3 only contains the object ob2. Therefore, if the images f2 and f3 are subtracted, a false background decluttering result will be obtained. The image of the target after information will affect the calculation of the distance. When the automatic cleaning device rotates, the situation as shown in FIG. 2A and FIG. 2B may also occur.

综上所述,若使用习知技术的去背景杂讯计算方法,因为自动清洁装置的移动,会得到错误的去背景杂讯后的目标影像,进而影响到距离的计算。此类问题在自动清洁装置快速移动或图框率(即影像撷取频率)较低时,会更为明显。To sum up, if the background noise removal calculation method of the prior art is used, the movement of the automatic cleaning device will result in wrong target image after background noise removal, which will affect the distance calculation. Such problems will be more obvious when the automatic cleaning device moves fast or the frame rate (ie image capture frequency) is low.

发明内容Contents of the invention

因此,本发明一目的为提供一种可计算出正确去背景杂讯后的目标影像的影像处理方法。Therefore, an object of the present invention is to provide an image processing method capable of calculating a target image after background noise has been correctly removed.

本发明另一目的为提供一种可计算出正确去背景杂讯后的目标影像的影像处理装置。Another object of the present invention is to provide an image processing device capable of calculating a target image after background noise has been correctly removed.

本发明一实施例揭露了一种影像处理方法,施行在一影像处理装置上,影像处理装置包含一光源以及一影像传感器。影像处理方法包含:在光源运作于一第一模式下时,以影像传感器撷取一第一影像;在光源运作于一第二模式下时,以影像传感器撷取一第二影像;在光源运作于第一模式下时,以影像传感器撷取一第三影像;以第一影像以及第三影像形成一混合影像;以第二影像减去混合影像以得到一去背景杂讯后的目标影像。An embodiment of the present invention discloses an image processing method, which is implemented on an image processing device, and the image processing device includes a light source and an image sensor. The image processing method includes: capturing a first image with an image sensor when the light source is operating in a first mode; capturing a second image with the image sensor when the light source is operating in a second mode; In the first mode, a third image is captured by the image sensor; a mixed image is formed by the first image and the third image; the mixed image is subtracted from the second image to obtain a target image after background noise is removed.

本发明另一实施例揭露了一种影像处理装置上,包含一光源、一影像传感器以及一影像计算单元。在光源运作于一第一模式下时,影像传感器撷取一第一影像;在光源运作于一第二模式下时,影像传感器撷取一第二影像;在光源运作于第一模式下时,影像传感器撷取一第三影像。影像计算单元以第一影像以及第三影像形成一混合影像,并以第二影像减去混合影像以得到一去背景杂讯后的目标影像。Another embodiment of the present invention discloses an image processing device, which includes a light source, an image sensor, and an image computing unit. When the light source operates in a first mode, the image sensor captures a first image; when the light source operates in a second mode, the image sensor captures a second image; when the light source operates in the first mode, The image sensor captures a third image. The image calculation unit forms a mixed image from the first image and the third image, and subtracts the mixed image from the second image to obtain a target image after removing background noise.

本发明所提供的去背景杂讯计算方法可避免习知技术中因为自动清洁装置R的移动而计算出错误的去背景杂讯后的目标影像,进而计算出正确的距离。The background noise removal calculation method provided by the present invention can avoid calculating the wrong target image after background noise removal due to the movement of the automatic cleaning device R in the prior art, and then calculate the correct distance.

附图说明Description of drawings

图1A绘示了习知技术中,一自动清洁装置逐渐远离目标物的示意图;FIG. 1A is a schematic diagram of an automatic cleaning device gradually moving away from a target object in the prior art;

图1B绘示了图1A的例子中,如何得到去背景杂讯后的目标影像的示意图;FIG. 1B is a schematic diagram of how to obtain a target image after removing background noise in the example of FIG. 1A;

图2A绘示了习知技术中,一自动清洁装置相对于目标物移动的示意图;FIG. 2A is a schematic diagram of an automatic cleaning device moving relative to an object in the prior art;

图2B绘示了图2A的例子中,如何得到去背景杂讯后的目标影像的示意图;FIG. 2B is a schematic diagram of how to obtain a target image after removing background noise in the example of FIG. 2A;

图3、图4绘示了根据本发明一实施例的影像处理方法的示意图;3 and 4 illustrate schematic diagrams of an image processing method according to an embodiment of the present invention;

图5、图6绘示了根据本发明一实施例的影像处理方法的示意图;5 and 6 illustrate schematic diagrams of an image processing method according to an embodiment of the present invention;

图7绘示了根据本发明一实施例的影像处理方法的流程图;FIG. 7 illustrates a flowchart of an image processing method according to an embodiment of the present invention;

图8绘示了根据本发明一实施例的影像处理装置的方块图。FIG. 8 is a block diagram of an image processing device according to an embodiment of the invention.

附图标号说明:Explanation of reference numbers:

R 自动清洁装置R Automatic cleaning device

f1、f2、f3 影像f1, f2, f3 images

ob1、ob2 物件ob1, ob2 objects

I1、Ia、Ib、Ic、Id 影像区域I1, Ia, Ib, Ic, Id Image area

fm 混合影像fm mixed video

701-709 步骤701-709 steps

801 影像处理装置801 Image processing device

803 影像传感器803 image sensor

805 光源805 light source

807 光源控制器807 light source controller

809 影像计算单元809 image computing unit

811 距离计算单元811 distance calculation unit

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

以下将以不同实施例来说明本发明的内容,然请留意以下实施例仅用以说明,并不限定本案的范围仅限制于以下实施例。The content of the present invention will be described below with different embodiments, but please note that the following embodiments are only for illustration, and do not limit the scope of the present application only to the following embodiments.

图3、图4绘示了根据本发明一实施例的影像处理方法的示意图。请留意,图3、图4的实施例是对应图1A的移动方式,因此请共同参照图1A、图3、图4以更为了解本发明。图3绘示了自动清洁装置R在不同位置P1、P2、P3时所撷取的影像f1、f2、f3的示意图。且撷取影像f1、f3时,自动清洁装置R内的光源是处于一第一模式,而撷取影像f2时,自动清洁装置R内的光源是处于一第二模式。在一实施例中,第一模式下光源不会发出光照射目标物W,而第二模式下光源会发出光。在另一实施例中,第一模式下光源会发出光,而第二模式下光源不会发出光照射目标物W。3 and 4 illustrate schematic diagrams of an image processing method according to an embodiment of the present invention. Please note that the embodiment shown in FIG. 3 and FIG. 4 corresponds to the movement method shown in FIG. 1A , so please refer to FIG. 1A , FIG. 3 , and FIG. 4 to better understand the present invention. FIG. 3 shows schematic diagrams of images f1 , f2 , f3 captured by the automatic cleaning device R at different positions P1 , P2 , P3 . And when the images f1 and f3 are captured, the light source in the automatic cleaning device R is in a first mode, and when the image f2 is captured, the light source in the automatic cleaning device R is in a second mode. In one embodiment, the light source does not emit light to illuminate the target W in the first mode, while the light source emits light in the second mode. In another embodiment, the light source emits light in the first mode, and the light source does not emit light to illuminate the target W in the second mode.

如图3所示,相较于影像f2,影像f1一样具有影像区域I1的内容,但缺少了影像区域Ia和Ib的内容。而相较于影像f2,影像f3具有影像区域I1、Ia和Ib的内容,但多了影像区域Ic和Id的内容。不论影像f2是和影像f1或是影像f3直接相减,都会得到错误的去背景杂讯后的目标影像。As shown in FIG. 3 , compared to the image f2 , the image f1 also has the content of the image area I1 , but lacks the content of the image areas Ia and Ib. Compared with the image f2, the image f3 has the contents of the image regions I1, Ia and Ib, but has more contents of the image regions Ic and Id. Regardless of whether the image f2 is directly subtracted from the image f1 or the image f3, an erroneous target image after background noise removal will be obtained.

因此,会先将影像f3和影像f1合成来形成一混合影像,并将影像f2减去此混合影像来得到去背景杂讯后的目标影像。图4绘示了混合影像fm的示范性实施例。在此实施例中,混合影像fm包含了影像f1的影像区域I1的内容,且包含了影像f3的影像区域Ia和Ib的内容。也就是说,混合影像fm包含了所有影像f1的内容以及影像f3仅一部份的内容,且影像f2的大小等于混合影像fm的大小。影像f2与目标物W的对应位置与混合影像fm和目标物的对应位置相同。由于影像f2和影像f1、f3有不同方向的差异,例如和影像f1有负的差异,然后和影像f3有正的差异,因此若以影像f1的内容取代掉部份影像f3的内容来形成混合影像,可使差异互相抵消,来得到更正确的去背景杂讯后的目标影像。然请留意,图4的实施例仅用以说明,所有根据图4实施例教示的相关变化均应在本发明的范围之内。Therefore, the image f3 and the image f1 are first synthesized to form a mixed image, and the mixed image is subtracted from the image f2 to obtain the target image after removing background noise. FIG. 4 illustrates an exemplary embodiment of the blended image fm. In this embodiment, the mixed image fm includes the content of the image area I1 of the image f1, and includes the contents of the image areas Ia and Ib of the image f3. That is to say, the mixed image fm includes all the contents of the image f1 and only a part of the image f3, and the size of the image f2 is equal to the size of the mixed image fm. The corresponding position of the image f2 and the object W is the same as the corresponding position of the mixed image fm and the object. Since the image f2 differs from the images f1 and f3 in different directions, for example, it has a negative difference with the image f1 and a positive difference with the image f3, so if the content of the image f1 is replaced by part of the content of the image f3 to form a mixture Image, the differences can be offset each other to obtain a more accurate target image after removing background noise. However, please note that the embodiment in FIG. 4 is only for illustration, and all relevant changes according to the teaching of the embodiment in FIG. 4 should fall within the scope of the present invention.

图5、图6绘示了根据本发明一实施例的影像处理方法的示意图,其对应本案图2A的移动方式,亦可对应自动清洁装置R旋转时的情况。图5绘示了自动清洁装置R在不同位置P1、P2、P3时所撷取的影像f1、f2、f3的示意图。且撷取影像f1、f3时,自动清洁装置R内的光源是处于一第一模式,而撷取影像f2时,自动清洁装置R内的光源是处于一第二模式。在一实施例中,第一模式下光源不会发出光照射目标物W,而第二模式下光源会发出光。在另一实施例中,第一模式下光源会发出光,而第二模式下光源不会发出光照射目标物W。5 and 6 are schematic diagrams of an image processing method according to an embodiment of the present invention, which correspond to the moving manner of FIG. 2A in this case, and can also correspond to the situation when the automatic cleaning device R rotates. FIG. 5 shows schematic diagrams of images f1 , f2 , f3 captured by the automatic cleaning device R at different positions P1 , P2 , P3 . And when the images f1 and f3 are captured, the light source in the automatic cleaning device R is in a first mode, and when the image f2 is captured, the light source in the automatic cleaning device R is in a second mode. In one embodiment, the light source does not emit light to illuminate the target W in the first mode, while the light source emits light in the second mode. In another embodiment, the light source emits light in the first mode, and the light source does not emit light to illuminate the target W in the second mode.

如图5所示,因为自动清洁装置R移动的关系,影像f1、f2、f3会包含不同的内容。详细言之,影像f1仅包含对象ob1,影像f2包含了对象ob1和ob2,而影像f3仅包含对象ob2,不论影像f2是和影像f1或是影像f3相减,都会得到错误的去背景杂讯后的目标影像。因此,在此实施例中,会以影像f1的一部份和影像f3的一部份来形成混合影像。如图6所示,混合影像fm包含了影像f1的右半边影像和影像f3的左半边影像,如此混合影像fm包含了对象ob1和ob2,因此影像f2减去混合影像fm后,可得到较正确的去背景杂讯后的目标影像。由于要取影像f1和影像f3的那一部份来形成混合影像跟自动清洁装置R的移动方向有关,因此在一实施例中,是根据自动清洁装置R的移动方向,来决定要采用前后影像的那一部份来产生混合影像。As shown in FIG. 5 , due to the movement of the automatic cleaning device R, the images f1 , f2 , and f3 contain different contents. In detail, the image f1 only contains the object ob1, the image f2 contains the objects ob1 and ob2, and the image f3 only contains the object ob2, no matter whether the image f2 is subtracted from the image f1 or the image f3, the false background noise will be obtained the target image after. Therefore, in this embodiment, a part of the image f1 and a part of the image f3 are used to form a mixed image. As shown in Figure 6, the mixed image fm includes the right half of the image f1 and the left half of the image f3, so the mixed image fm includes the objects ob1 and ob2, so after subtracting the mixed image fm from the image f2, a more correct The target image after removing background noise. Since the part of image f1 and image f3 to be taken to form a mixed image is related to the moving direction of the automatic cleaning device R, in one embodiment, it is determined to use the front and rear images according to the moving direction of the automatic cleaning device R That part of it to generate a blended image.

在一实施例中,前述产生影像f1、f2、f3的步骤,产生混合影像的步骤,以及计算出去背景杂讯后的目标影像的步骤,会在自动清洁装置R移动时,或是如图1A、图2A般的移动,或者自动清洁装置R与目标物的距离改变,或者旋转时,才会执行。也就是说,在静止时自动清洁装置R并不会如前述实施例所述般来产生混合影像,藉此可节省电能。In one embodiment, the aforementioned steps of generating images f1, f2, f3, the step of generating mixed images, and the step of calculating the target image after removing background noise will be performed when the automatic cleaning device R is moving, or as shown in FIG. 1A , movement as shown in Figure 2A, or when the distance between the automatic cleaning device R and the target changes, or when it rotates, it will be executed. That is to say, the automatic cleaning device R does not generate mixed images as described in the foregoing embodiments when it is stationary, thereby saving power.

请留意,前述方法所得到去背景杂讯后的目标影像,不限制于运用在量测距离上,亦可使用在其他目的。而且,此方法不限制于一定要使用在连续的三个影像。因此,根据前述实施例,可得到一种影像处理方法,用以得到一去背景杂讯后的目标影像,此方法施行在一影像处理装置上,此影像处理装置包含一光源以及一影像传感器。此影像处理方法包含图7所示的步骤:Please note that the background noise-removed target image obtained by the above method is not limited to be used for distance measurement, and can also be used for other purposes. Moreover, this method is not limited to using three consecutive images. Therefore, according to the aforementioned embodiments, an image processing method for obtaining a target image after removing background noise can be obtained. The method is implemented on an image processing device, and the image processing device includes a light source and an image sensor. This image processing method includes the steps shown in Figure 7:

步骤701Step 701

在光源运作于一第一模式下时,以影像传感器撷取第一影像(例如f1)。于一实施例中,第一影像包含目标物(例如墙)至少一部份的影像。When the light source is operating in a first mode, a first image (such as f1 ) is captured by the image sensor. In one embodiment, the first image includes an image of at least a part of the object (such as a wall).

步骤703Step 703

在光源运作于一第二模式下时,以影像传感器撷取一第二影像(例如f2)。于一实施例中,第二影像包含目标物至少一部份的影像。When the light source is operating in a second mode, a second image (for example, f2 ) is captured by the image sensor. In one embodiment, the second image includes an image of at least a part of the target object.

步骤705Step 705

在光源运作于第一模式下时,以影像传感器撷取一第三影像(例如f3)。于一实施例中,第三影像包含目标物至少一部份的影像。When the light source operates in the first mode, capture a third image (eg f3 ) with the image sensor. In one embodiment, the third image includes an image of at least a part of the target object.

步骤707Step 707

以第一影像以及第三影像形成一混合影像(例如fm)。A mixed image (eg fm) is formed with the first image and the third image.

步骤709Step 709

以第二影像减去混合影像以得到一去背景杂讯后的目标影像。The blended image is subtracted from the second image to obtain a target image with background noise removed.

图8绘示了根据本发明一实施例的影像处理装置的方块图。在此实施例中,影像处理装置801是设置于自动清洁装置R中,但并不限定。如图8所示,影像处理装置801包含一影像传感器803、一光源805、一光源控制器807以及一影像计算单元809。光源805被光源控制器807控制而发光或不发光。影像传感器803用以如前所述般撷取光源805在不同模式时的影像,影像计算单元809根据影像传感器803撷取的影像如前述实施例般计算出去背景杂讯后的目标影像然后此目标影像再经过校正后,将校正后影像CF传送给距离计算单元811。距离计算单元811会根据多个校正后的影像CF计算出自动清洁装置R与目标物的距离,距离计算单元811亦可位于影像处理装置801中。然请留意图8实施例仅用以举例,并非用以限定本发明,各组件可以互相整合或再分割成多个组件。FIG. 8 is a block diagram of an image processing device according to an embodiment of the invention. In this embodiment, the image processing device 801 is disposed in the automatic cleaning device R, but it is not limited thereto. As shown in FIG. 8 , the image processing device 801 includes an image sensor 803 , a light source 805 , a light source controller 807 and an image computing unit 809 . The light source 805 is controlled by the light source controller 807 to emit or not emit light. The image sensor 803 is used to capture the images of the light source 805 in different modes as described above, and the image calculation unit 809 calculates the target image after the background noise is removed according to the images captured by the image sensor 803 as in the previous embodiment, and then the target After the image is corrected, the corrected image CF is sent to the distance calculation unit 811 . The distance calculation unit 811 calculates the distance between the automatic cleaning device R and the target object according to the corrected images CF, and the distance calculation unit 811 can also be located in the image processing device 801 . However, please note that the embodiment in FIG. 8 is only used as an example, and is not intended to limit the present invention. Each component can be integrated with each other or divided into multiple components.

综上所述,本发明所提供的去背景杂讯计算方法可避免习知技术中因为自动清洁装置R的移动而计算出错误的去背景杂讯后的目标影像,进而计算出正确的距离。To sum up, the background noise removal calculation method provided by the present invention can avoid calculating the wrong target image after background noise removal due to the movement of the automatic cleaning device R in the prior art, and then calculate the correct distance.

以上所述仅为本发明之较佳实施例,凡依本发明申请专利范围所做之均等变化与修饰,皆应属本发明之涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.

Claims (23)

1. a kind of image treatment method, which is characterized in that be implemented on an image processor, which includes one Light source and an image sensor, which includes:
When the light source operates under a first mode, one first image is captured with the image sensor;
When the light source operates under a second mode, one second image is captured with the image sensor;
When the light source operates under the first mode, a third image is captured with the image sensor;
A composite image is formed with first image and the third image, which contains all first images Content and the third image only a part of content, alternatively, to contain first image only a part of interior for the composite image Hold and the third image only a part of content;And
The target image after background noise is removed with second image and the composite image to obtain one.
2. image treatment method as described in claim 1, which is characterized in that second image is after capturing first image It is subtracted, and the third image is subtracted after capturing second image.
3. image treatment method as described in claim 1, which is characterized in that the light source operates on first mode Shi Huifa Light, the light source do not shine when operating on the second mode.
4. image treatment method as described in claim 1, which is characterized in that the light source operates on first mode Shi Bufa Light can shine when the light source operates on the second mode.
5. image treatment method as described in claim 1, which is characterized in that further include:
The distance of an automatic cleaning apparatus and an object is calculated according to the target image gone after background noise.
6. image treatment method as claimed in claim 5, which is characterized in that first image, second image, the third shadow As, the composite image and this to remove the target image after background noise be the generation when the automatic cleaning apparatus is mobile.
7. image treatment method as claimed in claim 6, which is characterized in that first image, second image, the third shadow As, the composite image and this to remove the target image after background noise changed at a distance from the object in the automatic cleaning apparatus It is generated when change.
8. image treatment method as claimed in claim 6, which is characterized in that first image, second image, the third shadow As, the composite image and this to remove the target image after background noise be mobile relative to the object in the automatic cleaning apparatus When generate.
9. image treatment method as claimed in claim 6, which is characterized in that first image, second image, the third shadow As, the composite image and this to remove the target image after background noise be the production when the automatic cleaning apparatus executes spinning movement It is raw.
10. image treatment method as described in claim 1, which is characterized in that the size of second image is equal to the mixing shadow The size of picture, and second image and the corresponding position of an object and the corresponding position phase of the composite image and the object Together.
11. image treatment method as described in claim 1, which is characterized in that with first image and the third image shape It is that the composite image is formed according to the moving direction of automatic cleaning apparatus at a composite image.
12. image treatment method as described in claim 1, which is characterized in that when the composite image contains first image Only a part of content and the third image only a part of content when, which contains the right one side of something of the first image Content and the left one side of something of the third image content.
13. a kind of image processor, the image processor is set in automatic cleaning apparatus, which is characterized in that packet Contain:
One light source;
One image sensor;
When the light source operates under a first mode, which captures one first image;One is operated in the light source When under second mode, which captures one second image;When the light source operates under the first mode, which is passed Sensor captures a third image;And
One image computing unit forms a composite image with first image and the third image, which contains Only a part of content or the composite image contains first shadow for the content of all first images and the third image As only a part of content and the third image only a part of content;And the composite image is subtracted to obtain with second image The target image after background noise is removed to one.
14. image processor as claimed in claim 13, which is characterized in that second image is to capture first image After be subtracted, and the third image is subtracted after capturing second image.
15. image processor as claimed in claim 13, which is characterized in that the light source operates on first mode Shi Huifa Light, the light source do not shine when operating on the second mode.
16. image processor as claimed in claim 13, which is characterized in that the light source operates on first mode Shi Bufa Light can shine when the light source operates on the second mode.
17. image processor as claimed in claim 13, which is characterized in that a metrics calculation unit is further included, according to this Target image after removing background noise calculates the distance of an automatic cleaning apparatus and an object.
18. image processor as claimed in claim 17, which is characterized in that first image, second image, the third Image, the composite image and the target image gone after background noise are the generations when the automatic cleaning apparatus is mobile.
19. image processor as claimed in claim 18, which is characterized in that first image, second image, the third Image, the composite image and the target image gone after background noise be in the automatic cleaning apparatus at a distance from the object It is generated when change.
20. image processor as claimed in claim 18, which is characterized in that first image, second image, the third Image, the composite image and the target image gone after background noise are to move in the automatic cleaning apparatus relative to the object It is generated when dynamic.
21. image processor as claimed in claim 18, which is characterized in that first image, second image, the third Image, the composite image and the target image gone after background noise are the productions when the automatic cleaning apparatus executes spinning movement It is raw.
22. image processor as claimed in claim 13, which is characterized in that the size of second image is equal to the mixing shadow The size of picture, and second image and the corresponding position of an object and the corresponding position phase of the composite image and the object Together.
23. image processor as claimed in claim 13, which is characterized in that the image computing unit is filled according to automated cleaning The moving direction set forms the composite image.
CN201510303870.0A 2015-06-04 2015-06-04 Image processing method and image processing device Active CN106303155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510303870.0A CN106303155B (en) 2015-06-04 2015-06-04 Image processing method and image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510303870.0A CN106303155B (en) 2015-06-04 2015-06-04 Image processing method and image processing device

Publications (2)

Publication Number Publication Date
CN106303155A CN106303155A (en) 2017-01-04
CN106303155B true CN106303155B (en) 2019-09-17

Family

ID=57659119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510303870.0A Active CN106303155B (en) 2015-06-04 2015-06-04 Image processing method and image processing device

Country Status (1)

Country Link
CN (1) CN106303155B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103808305A (en) * 2012-11-07 2014-05-21 原相科技股份有限公司 Detection system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4987355B2 (en) * 2005-10-14 2012-07-25 京セラ株式会社 Imaging apparatus and imaging method
KR101427660B1 (en) * 2008-05-19 2014-08-07 삼성전자주식회사 Apparatus and method for processing background blur in digital image processing apparatus
US8693731B2 (en) * 2012-01-17 2014-04-08 Leap Motion, Inc. Enhanced contrast for object detection and characterization by optical imaging

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103808305A (en) * 2012-11-07 2014-05-21 原相科技股份有限公司 Detection system

Also Published As

Publication number Publication date
CN106303155A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
JP6075122B2 (en) System, image projection apparatus, information processing apparatus, information processing method, and program
TWI398804B (en) Displacement detection system of an optical touch panel and method thereof
CN111683798B (en) Workpiece pickup device and workpiece pickup method
TWI531984B (en) Image processing method and image processing device
JP6914268B2 (en) Perspective correction for curved display screens
JP6201379B2 (en) Position calculation system, position calculation program, and position calculation method
CN107735646B (en) Shape measuring device and shape measuring method
US11606538B2 (en) Automatic keystone correction in a projection system
TWI432925B (en) Interaction control system, method for detecting motion of object, host apparatus and control method thereof
JP6061616B2 (en) Measuring apparatus, control method therefor, and program
TWI524050B (en) Image capturing device, image depth generating device and method thereof
US20140118556A1 (en) Detection system
CN107515714A (en) A finger touch recognition method, device and touch projection equipment
CN102158673A (en) Projection correction system and method
TW201633077A (en) Image processing method capable of detecting noise and related navigation device
EP3226090A1 (en) Operation support system, operation support device and operation support method
CN104613939B (en) Method and device for positioning operation body and method and device for determining depth
CN106303155B (en) Image processing method and image processing device
TW201715472A (en) Image segmentation determining method, gesture determining method, image sensing system and gesture determining system
JP7153514B2 (en) 3D shape inspection device, 3D shape inspection method, 3D shape inspection program, computer
US10416814B2 (en) Information processing apparatus to display an image on a flat surface, method of controlling the same, and storage medium
CN103888674A (en) Image capture device and image capture method
JP2018055685A (en) Information processing apparatus, control method therefor, program, and storage medium
JP2016061622A (en) Information processing system and information processing method
JP2017016169A (en) Inspection method, inspection apparatus, image processing apparatus, program, and recording medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant