Movement amount detection system
Patent Information
- Application Number
- JP2023066560
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-14
- Publication Date
- 2024-10-25
AI Technical Summary
【0014】 このようにした本発明によれば、スケールの分解能と光学素子の分解能とを一致させる必要がなく、さらにはスケールの取付誤差や製造誤差による精度の低下が抑えられる移動量検知システムを提供することができる。
Smart Images

Figure 2024152396000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a movement amount detection system that detects the amount of movement of an object moving in a predetermined direction. [Background technology]
[0002] Conventionally, as a movement amount detection system that detects the movement amount (movement speed, rotation speed, etc.) of an object, for example, an optical encoder that calculates the transport speed of a rotating belt conveyor is known. As shown in Patent Document 1, this optical encoder is configured to emit light from a light source to an object at a predetermined position and to sense the reflected light reflected by the object with a light receiving element. A light reflection pattern (so-called encoder scale or code wheel) consisting of a reflective part that easily reflects light and a non-reflective part that does not easily reflect light is formed on the object. A reflective optical sensor is capable of reading the light reflection pattern by sensing the brightness ratio of the reflected light from the reflective part and the non-reflective part with a light receiving element, and obtaining various information such as the transport speed and rotation amount of the belt conveyor. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2006-038572 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the conventional method of calculating the amount of movement using an optical encoder, it is necessary to match the resolution of the encoder scale with the resolution of the optical element, and therefore it is necessary to newly develop and manufacture the encoder scale and the light receiving element according to the required resolution, which results in problems such as a long development period and high costs. In particular, the resolution of the encoder slit created by molding, pressing, etching, printing, etc. is limited, and the light receiving element is created according to that resolution, which limits the detectable resolution.
[0005] Furthermore, when the device is attached to an object, the light-dark ratio may shift due to an attachment error, resulting in an accuracy error. For this reason, the attachment accuracy must be strictly controlled, and the light receiving element and the encoder scale must be placed close to each other, resulting in many restrictions on the attachment conditions and the distance between them. In addition, the light reflection pattern itself formed by the slits, etc., has physical dimensional errors for each slit, and the variation in the light-dark ratio and pitch causes measurement errors.
[0006] The present invention has been made to solve the above-mentioned problems in one fell swoop, and its object is to provide a movement detection system which does not require the scale resolution to match the optical element resolution, and which suppresses loss of accuracy due to scale installation errors or manufacturing errors. [Means for solving the problem]
[0007] In other words, the movement amount detection system of the present invention detects the movement amount of a moving body moving along a predetermined movement direction, and is characterized by comprising a striped pattern attached to the surface of the moving body and alternating between light and dark along the movement direction, an imaging device that images the area through which the striped pattern passes at regular time intervals and sequentially outputs the image data, an edge detection unit that detects the edges of the striped pattern reflected in the captured image represented by the image data, and a movement amount calculation unit that calculates the movement amount of the moving body based on the position of the edge of the striped pattern detected by the edge detection unit.
[0008] Such an encoder is configured to capture an image of a striped pattern moving along the direction of movement and calculate the amount of movement of the moving object based on the edge positions of the detected striped pattern, so that the amount of movement can be calculated as long as the striped pattern is captured in the imaging area of the imaging device, and there is no need to match the resolution of the encoder scale with the resolution of the optical element as in conventional optical encoders. Moreover, since the resolution is not physically limited as in the case of the encoder scale, it is possible to obtain a finer resolution than conventional optical encoders. Furthermore, since the amount of movement is not detected by the light-dark ratio of an optical element as in conventional optical encoders, the decrease in measurement accuracy caused by deviations in the light-dark ratio due to mounting errors or manufacturing errors of the scale can be reduced.
[0009] It is preferable that the movement amount detection system has a striped pattern in which a plurality of dark areas and a plurality of bright areas having different brightnesses in the captured image are alternately arranged along the movement direction, and the movement amount calculation unit calculates the movement amount of the moving body based on the edge position of only one of the edges in the striped pattern, either the edge of the boundary where a dark area changes to a bright area or the edge of the boundary where a bright area changes to a dark area. In this way, even if there is a difference in detection accuracy between the detection of the edge of the boundary where a light area changes to a dark area and the detection of the edge of the boundary where a dark area changes to a light area, the amount of movement is calculated using the position of only one of the edges, so that the amount of movement can be calculated accurately without being affected by detection accuracy due to differences in edge type.
[0010] Furthermore, it is preferable that the movement amount detection system has two detection areas, each having a predetermined area smaller than the area of the imaging area captured by the imaging device, set in sequence along the movement direction, the edge detection unit detects the edge of the striped pattern captured in the two detection areas, and the movement amount calculation unit calculates the movement amount of the moving body based on the position of the edge of the striped pattern detected in either of the two detection areas. In this way, the amount of movement of the moving object can be calculated by processing only the image data in the detection area, which is smaller than the imaging area, so the amount of data to be processed can be reduced compared to processing image data showing the entire imaging area. As a result, the processing speed of the edge detection unit and the movement amount calculation unit can be improved, and the movement amount of the moving object can be calculated in a short time. When setting a detection area smaller than the imaging area in this manner, depending on the imaging timing, there is a possibility that the stripe pattern will not be detected in the detection area (i.e., the edges will not fall within the detection area); however, by setting two detection areas, the possibility of detecting the stripe pattern in the detection area can be increased, and the amount of movement of the moving body can be constantly calculated.
[0011] In this case, it is preferable that the two detection areas are set so as to partially overlap each other in the movement direction. In this way, by setting the two detection areas so that they overlap partially in the direction of movement, it becomes possible to constantly detect the same edge of brightness change (for example, the edge of the boundary where a dark area switches to a light area) in at least one of the two detection areas. In other words, if two detection areas are set without overlapping with each other (for example, if two detection areas are set with a gap between them or if two detection areas are set so that they are exactly side by side), and if each detection area and the striped pattern are completely parallel, it will be possible to always detect the same edge of brightness change and detect the amount of movement, but there will be less margin for error.In other words, as shown in Figure 6, if each detection area and the striped pattern are not completely parallel (i.e., tilted), and an edge of the striped pattern straddles the boundary line of the detection areas, the edge will not be entirely included in either detection area, and may not be detected correctly. On the other hand, if the two detection areas are made to partially overlap each other, as shown in Figure 7, even if each detection area and the stripe pattern are not completely parallel and an edge of the stripe pattern crosses the boundary line of one of the detection areas, the edge will be entirely within the other detection area and will be detected in the other detection area. In this way, by making the two detection areas partially overlap each other, it is possible to provide a margin for the inclination of the stripe pattern that occurs in actual use, and it is possible to detect edges with the same brightness change and calculate the amount of movement with high accuracy.
[0012] In addition, an example of the movement amount detection system is one in which multiple edge detection lines are set within each of the two detection areas, the multiple edge detection lines being parallel to the movement direction and having different coordinates in a direction perpendicular to the movement direction, and the edge detection unit detects the edges of the moving body for each of the multiple edge detection lines in each of the two detection areas, and determines the position of the edges of the striped pattern when the number of detected edges reaches a predetermined number or more. In addition, in such an embodiment, if the stripe pattern is inclined relative to the detection area and is located on the boundary of the detection area, the edge of the stripe pattern cannot be detected by any of the multiple detection lines, and the effect of overlapping the two detection areas described above becomes more pronounced.
[0013] In the movement amount detection system, the multiple dark areas that make up the striped pattern have equal lengths in the movement direction and are arranged at regular intervals along the movement direction, and it is preferable that the width of one of the two detection areas in the movement direction is d1, the width of the other of the two detection areas is d2, the total width of the two detection areas is d3, the width of each of the dark areas is D1, and the pitch between the multiple dark areas is D2, thereby satisfying the following relationship equations (1) and (2). d1=d2 (1) D1 <d1<D2<d3 (2) By setting the stripe pattern and the detection areas so as to satisfy the relationship expressions (1) and (2), it is possible to configure the image so that, in multiple captured images captured at successive times, either the edge of the boundary where a dark area switches to a light area or the edge of the boundary where a light area switches to a dark area continues to be reflected in at least one of the two detection areas. Effect of the Invention
[0014] According to the present invention, it is possible to provide a movement detection system which does not require the resolution of the scale to match the resolution of the optical element, and which suppresses loss of accuracy due to scale installation errors or manufacturing errors. [Brief description of the drawings]
[0015] [Figure 1] 1 is a perspective view showing a schematic configuration of a movement amount detection system according to an embodiment of the present invention; [Diagram 2] FIG. 2 is a functional block diagram of the image processing device according to the embodiment. [Diagram 3] 5A to 5C are diagrams for explaining edge detection lines within an imaging area in the embodiment. [Figure 4] 3A and 3B are diagrams for explaining the configuration of an imaging region and a stripe pattern in the embodiment. [Diagram 5] 5A to 5C are diagrams for explaining a method of calculating a movement amount in the embodiment. [Figure 6] 5A to 5C are diagrams illustrating the effects of the movement amount detection system of the present invention. [Figure 7] 5A to 5C are diagrams illustrating the effects of the movement amount detection system of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] A movement amount detection system 100 according to an embodiment of the present invention will be described below with reference to the drawings.
[0017] The movement amount detection system 100 according to this embodiment is attached to a transport mechanism such as a belt conveyor, and is for detecting the amount of movement of a transport belt (hereinafter also referred to as a moving object O) transported in a predetermined moving direction. Specifically, as shown in Fig. 1, this movement amount detection system 100 includes an imaging device 1 that captures an image of an area through which the moving object O passes, and an image processing device 2 that processes the image captured by the imaging device 1 to detect the amount of movement of the moving object O. Each part will be described below.
[0018] The imaging device 1 captures a predetermined area through which a moving object O passes (hereinafter, also referred to as an imaging area R0) at a constant time interval t i (For example, t i =500[μs]) and sequentially output the image data. The image data includes at least information indicating the captured image, information regarding the time of capturing, and information regarding the frame number indicating the order of capturing. Specifically, the imaging device 1 includes a housing, an area sensor (not shown) housed inside the housing and having a plurality of imaging elements laid out in a planar matrix shape in the vertical and horizontal directions, an optical system (not shown) arranged in front of the area sensor, and an output unit (not shown) that outputs image data indicating the captured image. The imaging region R0 is rectangular, and one of two pairs of opposing sides is set to be parallel to the moving direction of the moving object O. That is, one of the vertical and horizontal directions in which the plurality of imaging elements are arranged is parallel to the moving direction, and the other is perpendicular to the moving direction. In this embodiment, a CMOS image sensor having 128×128 pixels is used as the area sensor, and the size of the imaging region R0 is 10×10 mm.
[0019] The image processing device 2 receives and processes image data output from the output section of the imaging device 1, thereby calculating the amount of movement of a moving object O captured within the imaging area R0.
[0020] In the movement amount detection system 100 of this embodiment, a striped pattern 3 in which light and dark alternate along the direction of movement is applied to the surface of the moving body O (conveyor belt), and the image processing device 2 is configured to calculate the amount of movement of the moving body O by detecting the striped pattern 3 that appears in the captured image.
[0021] As shown in FIG. 1 and FIG. 4, the striped pattern 3 is formed by alternately arranging a plurality of dark regions 31 having a brightness equal to or lower than a predetermined value and a plurality of bright regions 32 having a brightness higher than that of the dark regions 31 along the moving direction. Specifically, the dark regions 31 are rectangular (thin line-like) black regions extending in a direction intersecting (orthogonal here) the moving direction. The plurality of dark regions 31 are all of the same shape and are provided at regular intervals along the moving direction. The bright regions 32 are regions formed in the gaps between the plurality of dark regions 31, and are rectangular (thin line-like) regions extending in a direction intersecting (orthogonal here) the moving direction, similar to the dark regions 31, and are provided at regular intervals along the moving direction. The dark regions 31 and the bright regions 32 may be of any color as long as they have different brightness (or luminance) in the captured image.
[0022] Here, the image processing device 2 will be described. 2, the image processing device 2 at least performs the functions of an image data receiving unit 21, an edge detecting unit 22, and a movement amount calculating unit 23. Here, each functional unit is realized by a reconfigurable hardware circuit such as an FPGA (Field Programmable Gate Array). Each functional unit will be described below.
[0023] The image data receiving section 21 receives the image data output by the output section of the imaging device 1 , and transmits the image data to the edge detection section 22 .
[0024] The edge detection unit 22 sequentially processes the image data received from the image data reception unit 21, and detects edges (more specifically, boundaries between dark areas 31 and light areas 32) of the striped pattern 3 included in the image represented by the image data. The edge detection unit 22 then generates edge position data indicating the positions of the detected edges, and sequentially outputs these to the movement amount calculation unit 23. Note that the edge position indicated by the edge position data is a position in an image coordinate system in which the center of the upper left corner pixel of the captured image is the origin (0,0) and the center of the lower right corner pixel is the origin (127,127). The edge detection unit 22 detects all edges of the striped pattern 3 included in the image every time the imaging device 1 captures an image, that is, every time the image data reception unit 21 receives image data.
[0025] Within the imaging region R0, multiple (seven here) edge detection lines L1 to L7 are set that are parallel to the movement direction (x-axis direction) and have different coordinates in a direction perpendicular to the movement direction (y-axis direction), as shown in Fig. 3. The edge detection unit 22 individually detects the edge of the stripe pattern for each of the edge detection lines L1 to L7, and when the number of detected edges reaches a predetermined number or more (e.g., four or more), determines the position E(x, y) of the edge of the stripe pattern based on the individual positions of the detected edges. Specifically, when the edge detection unit 22 detects the edges of the stripe pattern using multiple (e.g., four or more) edge detection lines, it first calculates a linear approximation line by the least squares method based on the detected edge positions. Then, based on the calculated approximation line, the edge detection unit calculates the x coordinate position corresponding to a preset y coordinate (e.g., y=64) and determines this as the edge position E(x, y).
[0026] In addition, when calculating the individual edge positions for each edge detection line, the edge positions are calculated based on the gradient calculation of the brightness of the image represented by the image data. At this time, smoothing processing (moving average, Gaussian), filtering processing such as median, Prewitt filter, Sobel filter, subpixel processing, etc. may be performed.
[0027] The movement amount calculation unit 23 calculates the movement amount and the movement speed of the moving object O based on the multiple edge position data received from the edge detection unit 22. This movement amount calculation unit 23 calculates the movement amount and the movement speed of the moving object O every time the edge detection unit 22 processes image data, that is, every time the edge detection unit 22 detects and outputs the edge position of the stripe pattern 3. Specifically, this movement amount calculation unit 23 calculates the movement amount and the movement speed of the moving object O by comparing different edge position data of the same edge that appears in the captured images of two frames with consecutive imaging timing. The movement amount calculation unit 23 calculates the movement amount and the movement speed of the moving object O every time the imaging device 1 captures an image, that is, every time the image data receiving unit 21 receives image data, and outputs the calculated movement amount and the movement speed to a display (not shown) or the like.
[0028] Here, the edges of the striped pattern 3 used to calculate the movement amount and the movement speed may be edges of the boundaries where the dark region 31 switches to the light region 32, edges of the boundaries where the light region 32 switches to the dark region 31, or both. From the viewpoint of improving detection accuracy, it is preferable that the movement amount calculation unit 23 calculates the movement amount and the movement speed using only edges of the same type (for example, only edges of the boundaries where the dark region 31 switches to the light region 32).
[0029] In the movement amount detection system 100 of this embodiment, as shown in FIG. 4, two detection areas (first detection area R1 and second detection area R2) having a predetermined area are set in the imaging area R0 in order from the upstream side (hereinafter simply referred to as the upstream side) along the movement direction. The two detection areas R1 and R2 have the same size and shape, and both have areas smaller than the imaging area R0. The two detection areas R1 and R2 are both rectangular, and are set so that a pair of opposing short sides are parallel to the movement direction and a pair of opposing long sides are perpendicular to the movement direction. The two detection areas R1 and R2 are set so that they are symmetrical with respect to the center of the imaging area R0 in the movement direction and have no gaps in the movement direction (here, the areas overlap each other). The above-mentioned multiple edge detection lines L1 to L7 are set in each detection area R1 and R2.
[0030] In this embodiment, the edge detection unit 22 constantly detects the edges of the stripe pattern 3 in both the first detection region R1 and the second detection region R2, and outputs edge position data indicating the positions of the detected edges of the stripe pattern 3 to the movement amount calculation unit 23. The edge detection unit 22 detects only the same type of edge (for example, only the edge of the boundary where the dark region 31 switches to the light region 32) in both the first detection region R1 and the second detection region R2.
[0031] 5, at time t=T1, an edge (light → dark) H1 of the striped pattern 3 is detected in the second detection region R2, at time t=T2, an edge (light → dark) H2 of the striped pattern 3 is detected in the second detection region R2, and an edge (light → dark) H2' of the striped pattern 3 is detected in the first detection region R1, and at time t=T3, an edge (light → dark) H3 of the striped pattern 3 is detected in the first detection region R1. These edge position data are output to the movement amount calculation unit 23. Then, when the movement amount calculation unit 23 receives edge position data detected from the captured image at t=T2, it calculates the movement amount and movement speed of the moving object O based on the difference between two edges (H2 and H1) of the striped pattern 3 detected in the second detection region R2 in the captured image and the captured image of the frame immediately preceding this one (t=T1). Then, when the movement amount calculation unit 23 receives edge position data detected from the captured image at t=T3, it calculates the movement amount and movement speed of the moving object O based on the difference between two edges (H3, H2') of the striped pattern 3 detected in the second detection region R2 in the captured image and the captured image of the frame immediately preceding this one (t=T2).
[0032] In this embodiment, in at least one of the first detection region R1 and the second detection region R2, the two detection regions R1, R2 are set to satisfy the following relational expressions (1) and (2) so that the same edge of the stripe pattern 3 is always detected in two consecutive frames of captured images and the detected edges are always of the same type (either light → dark or dark → light).
[0033] d1=d2 (1) D1 <d1<D2<d3 (2) Here, d1 is the width of the first detection region R1, d2 is the width of the second detection region R2, d3 is the total width of the first detection region R1 and the second detection region R2, D1 is the width of the dark region 31 of the stripe pattern 3, and D2 is the pitch length of the dark region 31 of the stripe pattern 3 (all lengths along the direction of movement).
[0034] According to the movement amount detection system 100 of this embodiment configured as described above, the stripe pattern 3 moving along the movement direction is photographed, and the movement amount of the moving object O is calculated based on the edge position of the detected stripe pattern 3, so that the movement amount can be calculated if the stripe pattern 3 is captured in the imaging area R0 of the imaging device 1, and there is no need to match the resolution of the encoder scale and the resolution of the optical element as in the case of conventional optical encoders. Also, since the movement amount is not detected based on the light-dark ratio of the optical element as in the case of conventional optical encoders, it is possible to reduce the decrease in measurement accuracy caused by deviation in the light-dark ratio due to installation error or manufacturing error of the scale.
[0035] The present invention is not limited to the above-described embodiment. For example, the image processing device 2 of the movement amount detection system 100 of another embodiment may be a so-called computer having a CPU, a memory, an A / D converter, a D / A converter, etc., and may fulfill the functions of the image data receiving unit 21, the edge detecting unit 22, and the movement amount calculating unit 23 by the CPU and peripheral devices working together in accordance with a predetermined program stored in the memory. In addition, some of these functions may be realized by a reconfigurable hardware circuit such as an FPGA.
[0036] In the above embodiment, two detection regions R1 and R2 having an area smaller than the imaging region R0 are set within the imaging region R0, but this is not limited to the above. In other embodiments, only one detection region having an area smaller than the imaging region R0 may be set, or the entire imaging region R0 may be set as the detection region.
[0037] In the above embodiment, the two detection regions R1 and R2 are set to overlap each other, but this is not limited thereto. In other embodiments, the two detection regions R1 and R2 may be set without overlapping each other and without a gap (spacing) in the moving direction. In other embodiments, the two detection regions R1 and R2 may be set so as not to overlap each other, for example, to be spaced apart in the moving direction.
[0038] In the movement amount detection system 100 of other embodiments, the stripe pattern 3 may be in any form as long as it alternates between light and dark in the captured image. For example, the dark area 31 and the light area 32 may be separated into light and dark by color coding, or one of the areas may be formed with a slit to separate light and dark. The stripe pattern 3 does not have to be attached to the moving object O itself, and may be attached to a scale or the like that moves with the moving object O.
[0039] Furthermore, the movement amount detection system 100 of another embodiment is not limited to detecting the movement amount and movement speed of a conveyor belt, and may be configured to detect the movement amount and movement speed of an arbitrary moving body O. Furthermore, this movement amount detection system 100 may be used as a so-called encoder.
[0040] Furthermore, the present invention is not limited to the above-described embodiment, and it goes without saying that various modifications are possible without departing from the spirit and scope of the present invention. [Explanation of symbols]
[0041] 100 Movement detection system 1. Imaging device 2. Image Processing Device 21 Image data reception section 22 Edge detection section 23. Displacement calculation section 3. Striped pattern 31...Dark region 32...light area O...mobile object R0: Imaging area R1: First target region R2: Second target region
Claims
1. A sensor that detects the amount of movement of a moving object moving along a predetermined moving direction, a striped pattern that is applied to a surface of the moving body and has light and dark alternating along the moving direction; an imaging device that captures an image of an area through which the stripe pattern passes at regular time intervals and sequentially outputs the image data; an edge detection unit that detects edges of the stripe pattern reflected in a captured image represented by the image data; a movement amount calculation unit that calculates the movement amount of the moving object based on the position of the edge of the stripe pattern detected by the edge detection unit.
2. the striped pattern is formed by alternating a plurality of dark regions and a plurality of bright regions having different brightness in the captured image along the movement direction, The movement amount detection system according to claim 1 , wherein the movement amount calculation unit calculates the movement amount of the moving body based on the edge position of only one of the edge positions of the boundary edge where a dark area changes to a light area and the edge position where a light area changes to a dark area in the striped pattern.
3. two detection areas each having a predetermined area smaller than an area of the imaging area captured by the imaging device are set in sequence along the moving direction; the edge detection unit detects edges of the stripe pattern reflected in the two detection areas; 3. The movement amount detection system according to claim 2, wherein the movement amount calculation section calculates the movement amount of the moving object based on a position of an edge of the stripe pattern detected in one of the two detection areas.
4. The movement amount detection system according to claim 3 , wherein the two detection areas are set so as to partially overlap each other in the movement direction.
5. A plurality of edge detection lines are set in each of the two detection regions, the edge detection lines being parallel to the moving direction and having different coordinates in a direction perpendicular to the moving direction; The movement detection system described in claim 4, wherein the edge detection unit detects the edges of the moving body for each of the multiple edge detection lines in each of the two detection areas, and determines the position of the edges of the striped pattern when the number of detected edges reaches a predetermined number or more.
6. the plurality of dark regions constituting the striped pattern have equal lengths in the moving direction and are arranged at regular intervals along the moving direction; The movement amount detection system of claim 3, wherein in the movement direction, a width length of one of the two detection areas is d1, a width length of the other of the two detection areas is d2, a total width length of the two detection areas is d3, a width length of each of the dark areas is D1, and a pitch between the multiple dark areas is D2, and the following relationship equations (1) and (2) are satisfied. d1=d2 (1) D1<d1<D2<d3 (2)
Citation Information
Patent Citations
Calculation device for reference value of periodic waveform
JP2001249031A
Relative position detection device, rotor cruise detection device, and image forming device
JP2008139283A
Moving object detection system and program for moving object detection system
JP2020071202A
Methods and apparatus for position determination
US20020079466A1
Reflection type encoder and electronic apparatus using this reflection type encoder
JP2006038572A
