Yarn or woven fabric imaging apparatus
The yarn or woven cloth photographing device adjusts brightness based on object color and brightness to improve recognition accuracy by setting target values, addressing overexposure and underexposure issues.
Patent Information
- Application Number
- JP2023068585
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing photographing devices adjust brightness based on the entire image, leading to overexposure or underexposure issues, making it difficult for operators or inspection devices to recognize yarn or woven fabric accurately.
A yarn or woven cloth photographing device that adjusts brightness based on the color and brightness of the object being photographed, using a brightness detection section to set a target value and control illumination accordingly, ensuring appropriate brightness for recognition.
Enhances the ability to recognize yarn or woven fabric in images by setting appropriate brightness levels based on object color, reducing misrecognition and maintaining optimal visibility throughout the photographing process.
Smart Images

Figure 2024154647000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an imaging device for imaging yarn or woven fabric, the imaging subject being yarn or woven fabric. [Background technology]
[0002] The photographing device is equipped with a camera that photographs an object to be photographed, and a light that illuminates the object to be photographed. The photographing device may be used to inspect the shedding state of warp threads in a loom. In this case, the object photographed by the photographing device is the warp thread. An operator or an inspection device inspects whether the shedding state of the warp threads is appropriate by recognizing the warp threads in the photographed image. The photographing device may be used to inspect the flight state of a weft thread. In this case, the object photographed by the photographing device is the weft thread. An operator or an inspection device inspects whether the flight state of the weft thread is appropriate by recognizing the weft threads in the photographed image. The photographing device may be used to inspect woven fabric. In this case, the object photographed by the photographing device is the woven fabric. An operator or an inspection device inspects whether there are any abnormalities in the woven fabric by recognizing the woven fabric in the photographed image.
[0003] The automatic fabric inspection device described in Patent Document 1 includes a device for photographing a woven fabric. The device for photographing the woven fabric includes a brightness control unit for controlling the brightness of lighting. The brightness control unit receives a video signal output from the camera. The brightness control unit increases or decreases the brightness of lighting so that the average level of the video signal becomes a preset level. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Publication No. 8-254503 Summary of the Invention [Problem to be solved by the invention]
[0005] In Patent Document 1, the brightness of the lighting is controlled based on the brightness of the entire captured image, thereby adjusting the brightness of the entire captured image. However, the brightness of the subject in the captured image is not necessarily suitable for an operator or an inspection device to recognize the subject in the captured image. For this reason, for example, if the lighting is too bright, the subject may appear whitish in the captured image, so-called whiteout may occur. In this case, it becomes difficult for the operator or the inspection device to recognize the subject in the captured image, and there is a risk of misrecognizing the subject. In addition, if the lighting is too dark, the subject may appear dark in the captured image. In this case, too, it becomes difficult for the operator or the inspection device to recognize the subject in the captured image, and there is a risk of misrecognizing the subject. [Means for solving the problem]
[0006] The yarn or woven fabric photography device for solving the above problems is a yarn or woven fabric photography device in which the subject to be photographed is a yarn or woven fabric, and comprises a camera that photographs the subject, lighting that illuminates the subject, a brightness setting unit that sets an appropriate brightness value corresponding to the color of the subject as a target value, a brightness detection unit that detects the brightness of the subject from the image captured by the camera, and a brightness control unit that controls the brightness of the lighting based on the target value set by the brightness setting unit and the brightness of the subject detected by the brightness detection unit so that the brightness of the subject in the captured image becomes the target value.
[0007] According to the above configuration, the brightness setting unit sets an appropriate brightness value corresponding to the color of the object to be photographed as a target value. The brightness control unit controls the brightness of the lighting so that the brightness of the object in the photographed image becomes the target value. In this manner, the brightness of the lighting is controlled based on the color of the object to be photographed. Therefore, the photographing device can photograph the object while taking into consideration that the ease of recognizing the object in the photographed image differs depending on the color of the object. This makes it easier for an operator or an inspection device to recognize the yarn or woven fabric in the photographed image.
[0008] Further, the brightness detection unit detects the brightness of the subject from the image captured by the camera. The brightness control unit controls the brightness of the lighting so that the brightness of the subject in the captured image becomes a target value. In this manner, the brightness of the lighting is controlled based on the brightness of the subject. Therefore, compared to when the brightness of the lighting is controlled based on the brightness of the entire captured image, it is easier to make the brightness of the subject in the captured image suitable for an operator or inspection device to recognize the subject in the captured image. This also makes it easier for the operator or inspection device to recognize the thread or woven fabric in the captured image. As a result, the operator or inspection device is less likely to erroneously recognize the thread or woven fabric in the captured image.
[0009] In the yarn or woven fabric photographing device, while the camera continues photographing, the brightness detection unit may repeatedly detect the brightness of the subject to be photographed, and the brightness control unit may repeatedly control the brightness of the lighting.
[0010] When the shooting period is long, the illuminance may gradually decrease due to dust or the like adhering to the lighting. With the above configuration, while the camera continues shooting, the brightness detection unit repeatedly detects the brightness of the object to be shot, and the brightness control unit repeatedly controls the brightness of the lighting. Therefore, even at the end of the shooting period, it is easy to recognize the thread or woven fabric in the captured image.
[0011] In the above-mentioned yarn or woven fabric photographing device, a color detection unit is provided which detects the color of the subject from the photographed image, and the brightness setting unit stores the relationship between the color of the subject and the appropriate value, and the appropriate value corresponding to the color of the subject detected by the color detection unit is set as the target value.
[0012] According to the above configuration, the target value can be automatically set by the imaging device, which eliminates the need for the operator to input the color of the subject to be imaged or the appropriate brightness value corresponding to the color of the subject to the imaging device.
[0013] The yarn or woven fabric photographing device may further include an area setting unit that sets an area of the photographed image that includes the subject to be photographed as a target area, and the color detection unit may detect the color of the subject to be photographed by detecting the color of the target area, and the brightness detection unit may detect the brightness of the subject to be photographed by detecting the brightness of the target area.
[0014] In the above-mentioned yarn or woven fabric photographing device, the photographed object may be a portion of the warp yarns that forms an opening into which the weft yarn is inserted. According to the above configuration, the operator or the inspection device can easily recognize the portion that forms the warp shed in the captured image, and therefore the operator or the inspection device can easily inspect the warp shed state. Effect of the Invention
[0015] According to the present invention, it is possible to easily recognize threads or woven fabric in a captured image. [Brief description of the drawings]
[0016] [Figure 1] FIG. 1 is a block diagram showing the configuration of a loom and a photographing device. [Diagram 2] FIG. 2 is a diagram showing the relationship between an external input signal and a trigger signal. [Diagram 3] FIG. 3 is a block diagram showing functional elements of the control unit. [Figure 4] FIG. 4 is a schematic diagram showing an example of a captured image. [Diagram 5] FIG. 5 is a diagram showing the relationship between the color of the thread and the appropriate brightness value. [Figure 6] FIG. 6 is a flowchart showing a method for adjusting the brightness of lighting. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] An embodiment of the photographing device for yarn or woven fabric will be described below with reference to Figs. 1 to 6. The photographing device for yarn or woven fabric of this embodiment is used by an operator or an inspection device to inspect the opening state of the warp yarn. Therefore, the subject to be photographed in this embodiment is the warp yarn, more specifically, the part of the warp yarn that forms the opening into which the weft yarn is inserted. Hereinafter, the photographing device for yarn or woven fabric will be simply referred to as the "photographing device".
[0018] <Loom> As shown in FIG. 1, the loom 100 includes a machine base 101. The machine base 101 includes a weft insertion nozzle and a main shaft 102 (not shown). The weft insertion nozzle is provided at a first end in the width direction of the machine base 101. The loom 100 of this embodiment is an air jet loom. The weft insertion nozzle ejects air from the first end to the second end in the width direction of the machine base 101, thereby inserting a weft into an opening Ta (see FIG. 4) of the warp threads T. The main shaft 102 is driven to rotate by a main motor (not shown). The timing at which the weft insertion nozzle inserts a weft corresponds to the rotation angle of the main shaft 102. Specifically, the weft insertion nozzle inserts a weft at a timing when the main shaft 102 rotates a predetermined angle from a specific angle. In the following description, the specific angle of the main shaft 102 is referred to as a reference angle. Also, the delay angle relative to the reference angle is referred to as a delay angle.
[0019] The loom 100 includes an angle detection unit 103 and a signal output unit 104. The angle detection unit 103 detects the rotation angle of the main shaft 102. The angle detection unit 103 is, for example, a rotary encoder. The angle detection unit 103 is connected to the signal output unit 104. The angle detection unit 103 transmits the detected rotation angle of the main shaft 102 to the signal output unit 104. The signal output unit 104 outputs a signal to the imaging device 10 every time the rotation angle of the main shaft 102 received from the angle detection unit 103 becomes a preset reference angle.
[0020] <Photographic equipment> The photographing device 10 includes a camera 11, a light 12, a trigger unit 13, and a personal computer 14.
[0021] The camera 11 is a digital camera. The camera 11 has an imaging element. Examples of the imaging element include a charge coupled device (CCD) image sensor and a complementary metal oxide semiconductor (CMOS) image sensor. The camera 11 is an RGB camera. Therefore, an image captured by the camera 11 is an RGB image.
[0022] The camera 11 is provided at a position where it can photograph the subject. The camera 11 in this embodiment is provided at a position where it can photograph a portion of the warp threads T that forms an opening Ta where the weft thread is inserted. Specifically, the camera 11 is disposed at a first end, which is the end on the side where the weft insertion nozzle is located in the width direction of the machine 101. The camera 11 photographs the warp threads T from the upstream side to the downstream side in the weft insertion direction.
[0023] The lighting 12 in this embodiment is an LED light. The lighting 12 is provided at a position where it illuminates the subject to be photographed. The lighting 12 in this embodiment is provided at a position where it illuminates the portion of the warp threads T that forms the opening Ta where the weft thread is inserted. Specifically, the lighting 12 is disposed at a first end, which is the end on the side where the weft insertion nozzle is located in the width direction of the machine 101. The lighting 12 illuminates the warp threads T from the upstream side to the downstream side in the weft insertion direction.
[0024] The trigger unit 13 includes a processor 13a and a storage unit 13b. The processor 13a may be, for example, a central processing unit (CPU), a graphics processing unit (GPU), and a digital signal processor (DSP). The storage unit 13b includes a random access memory (RAM) and a read only memory (ROM). The storage unit 13b stores program codes or instructions configured to cause the processor 13a to execute processes. The storage unit 13b, i.e., the computer-readable medium, includes any available medium accessible by a general-purpose or dedicated computer. The trigger unit 13 may be configured by a hardware circuit such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). The trigger unit 13, which is a processing circuit, may include one or more processors operating according to a computer program, one or more hardware circuits such as an ASIC or an FPGA, or a combination thereof.
[0025] The trigger unit 13 is connected to the camera 11 and the lighting 12. The trigger unit 13 controls the timing at which the camera 11 captures an image and the timing at which the lighting 12 emits light. The trigger unit 13 is connected to a signal output unit 104 of the loom 100. A signal output from the signal output unit 104 is input to the trigger unit 13 as an external input signal. The trigger unit 13 is connected to a personal computer 14. A delay angle for photography is input to the trigger unit 13 from the personal computer 14. The delay angle for photography defines the timing at which the camera 11 captures an image. The trigger unit 13 controls the timing at which the camera 11 captures an image and the timing at which the lighting 12 emits light based on the external input signal input from the loom 100 and the delay angle for photography input from the personal computer 14.
[0026] 2, the trigger unit 13 grasps the rotation period Tm of the spindle 102 from the interval at which the external input signal is input. The trigger unit 13 converts the imaging delay angle into a delay time Td using the rotation period Tm of the spindle 102 and the reference angle. The trigger unit 13 outputs trigger signals simultaneously to the camera 11 and the lighting 12 at a time ts when the delay time Td has elapsed from the time tr when the external input signal is input. In other words, the trigger unit 13 outputs trigger signals simultaneously to the camera 11 and the lighting 12 at the timing when the spindle 102 has rotated by the imaging delay angle from the reference angle.
[0027] The camera 11 takes an image when a trigger signal is input from the trigger unit 13. The lighting 12 emits light when a trigger signal is input from the trigger unit 13. Therefore, the lighting 12 illuminates the warp thread T at the same time that the camera 11 takes an image of the warp thread T. The trigger unit 13 causes the photographing device 10 to take images for a predetermined photographing period and at predetermined photographing intervals.
[0028] Furthermore, the trigger unit 13 controls the brightness of the lighting 12. A brightness control value for controlling the brightness of the lighting 12 is input to the trigger unit 13 from the personal computer 14. The trigger unit 13 controls the brightness of the lighting 12 by controlling the lighting 12 according to the brightness control value of the lighting 12 input from the personal computer 14. In this embodiment, the brightness control value of the lighting 12 is a current value supplied to the LED light. The greater the current value supplied to the LED light, the brighter the lighting 12 becomes.
[0029] As shown in FIG. 1, the personal computer 14 includes an input unit 15, a display unit 16, and a control unit 17. The input unit 15 is, for example, a keyboard or a mouse. The input unit 15 is connected to the control unit 17. The display unit 16 is a display. The display unit 16 is connected to the control unit 17. The display unit 16 is controlled by the control unit 17.
[0030] The control unit 17 has a processor 17a and a storage unit 17b. The processor 17a may be, for example, a central processing unit (CPU), a graphics processing unit (GPU), and a digital signal processor (DSP). The storage unit 17b includes a random access memory (RAM) and a read only memory (ROM). The storage unit 17b stores program codes or instructions configured to cause the processor 17a to execute processes. The storage unit 17b, i.e., the computer-readable medium, includes any available medium accessible by a general-purpose or dedicated computer. The control unit 17 may be configured by a hardware circuit such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). The control unit 17, which is a processing circuit, may include one or more processors operating according to a computer program, one or more hardware circuits such as an ASIC or an FPGA, or a combination thereof.
[0031] The operator inputs an imaging delay angle to the control unit 17 through the input unit 15. The personal computer 14 transmits the imaging delay angle input by the operator to the trigger unit 13.
[0032] The personal computer 14 is connected to the camera 11. The personal computer 14 acquires captured images from the camera 11. The personal computer 14 stores the acquired captured images. In this embodiment, the personal computer 14 displays the captured images by the camera 11 on the display unit 16. An operator can check the captured images on the display unit 16. When an operator inspects the shedding state of the warp threads T, the operator inspects the shedding state of the warp threads T by recognizing the state of the warp threads T in the captured image.
[0033] When the inspection device inspects the open state of the warp threads T, the personal computer 14 transmits the captured image to the inspection device. The inspection device has a trained model that has been trained to output the state of the warp threads T in the captured image when the captured image is input, for example. The inspection device recognizes the state of the warp threads T in the captured image using the trained model. Then, the inspection device inspects the open state of the warp threads T from the recognized state of the warp threads T. Note that the control unit 17 of the personal computer 14 may function as the inspection device. In this case, it is not necessary to transmit the captured image to the inspection device.
[0034] The worker selects an area including the subject to be photographed in the image photographed by the camera 11 using the input unit 15. In this embodiment, the worker uses, for example, a mouse as the input unit 15 to select an area including the warp thread T in the image photographed by the camera 11 and displayed on the display unit 16.
[0035] 3, the control unit 17 has an area setting unit 21, a color detection unit 22, a luminance setting unit 23, a luminance detection unit 24, a judgment unit 25, and a brightness setting unit 26. The area setting unit 21, the color detection unit 22, the luminance setting unit 23, the luminance detection unit 24, the judgment unit 25, and the brightness setting unit 26 are functional elements that function when the processor 17a executes a program stored in the storage unit 17b.
[0036] 4 is a schematic diagram showing an example of an image P captured by the camera 11. The captured image P includes not only the portion of the warp threads T that forms the shed Ta, which is the subject of the image, but also components of the loom 100, such as the reed 105, and the background.
[0037] The area setting unit 21 sets an area including a subject in the image P captured by the camera 11 as the target area A. In this embodiment, the area setting unit 21 sets an area including a portion that forms the shed Ta of the warp threads T as the target area A in the image P captured by the camera 11.
[0038] As described above, in this embodiment, the worker selects an area including the warp threads T in the captured image P using the input unit 15. The area setting unit 21 in this embodiment sets the area selected by the worker as the target area A. As a result, the area including the warp threads T in the captured image P by the camera 11 is set as the target area A. The target area A is appropriately set so that most of the area is occupied by the warp threads T.
[0039] The color detection unit 22 detects the color of the subject from the image P captured by the camera 11. In this embodiment, the color detection unit 22 detects the color of the warp thread T from the image P captured by the camera 11. Specifically, the color detection unit 22 detects the color of the target area A based on each gradation of RGB in the target area A. As described above, the majority of the target area A is occupied by the warp thread T. Therefore, the color of the target area A detected by the color detection unit 22 can be considered to be the color of the warp thread T. In this way, the color detection unit 22 in this embodiment detects the color of the warp thread T by detecting the color of the target area A.
[0040] The luminance setting unit 23 sets an appropriate luminance value corresponding to the color of the subject to be photographed as the target value. In this embodiment, the luminance setting unit 23 sets an appropriate luminance value corresponding to the color of the warp thread T as the target value.
[0041] As described above, the operator or the inspection device recognizes the warp threads T in the captured image P in order to inspect the opening state of the warp threads T. At this time, the ease of recognizing the warp threads T in the image varies depending on the color of the warp threads T. The darker the color of the warp threads T, the more difficult it is to recognize the warp threads T in the image. For example, when the warp threads T are black, it is more difficult to recognize the warp threads T in the image than when the warp threads T are white. Therefore, if the brightness of the image is increased as the color of the warp threads T becomes darker, it is possible to ensure the ease of recognizing the warp threads T in the image regardless of the color of the warp threads T. The appropriate value of the brightness corresponding to the color of the imaging target is set in advance. The appropriate value of the brightness is set to a brightness such that it is difficult for the operator or the inspection device to misrecognize the warp threads T in the captured image P. The appropriate value of the brightness is set to be larger when the warp threads T are darker than when they are lighter. In the present embodiment, the appropriate value of the brightness is set with a margin.
[0042] For example, as shown in FIG. 5, when the color of the warp threads T is light, the appropriate value of the brightness is set to be not less than L1 and not more than L2. When the color of the warp threads T is dark, the appropriate value of the brightness is set to be not less than L3 and not more than L4. However, L2 < L3. When the color of the warp threads T is an intermediate color darker than light and lighter than dark, the appropriate value of the brightness is set to be not less than L5 and not more than L6. However, L2 < L5 and L6 < L3. For example, light colors are white and yellow, intermediate colors are blue, and dark colors are black.
[0043] The brightness setting unit 23 stores the relationship between the color of the warp threads T and the appropriate value of the brightness. The brightness setting unit 23 grasps the appropriate value of the brightness corresponding to the color of the warp threads T detected by the color detection unit 22 from the relationship between the color of the warp threads T and the appropriate value of the brightness. The brightness setting unit 23 sets the grasped appropriate value of the brightness as the target value. For example, when the color detection unit 22 detects that the color of the warp threads T is white, the brightness setting unit 23 sets the target value to be not less than L1 and not more than L2 because the color of the warp threads T is light.
[0044] The brightness detection unit 24 detects the brightness of the subject from the image P captured by the camera 11. In this embodiment, the brightness detection unit 24 detects the brightness of the warp thread T from the image P captured by the camera 11. Specifically, the brightness detection unit 24 converts the RGB image of the target area A into a grayscale image. The brightness detection unit 24 detects the brightness of the target area A from the gradation of the grayscale image of the target area A. As described above, the majority of the target area A is occupied by the warp thread T. Therefore, the brightness of the target area A detected by the brightness detection unit 24 can be considered to be the brightness of the warp thread T. In this way, the brightness detection unit 24 of this embodiment detects the brightness of the warp thread T by detecting the brightness of the target area A.
[0045] The determination unit 25 determines whether or not it is necessary to change the brightness of the illumination 12 by comparing the target value set by the brightness setting unit 23 with the brightness of the subject detected by the brightness detection unit 24. When the brightness of the subject detected by the brightness detection unit 24 is the target value, the determination unit 25 determines that it is not necessary to change the brightness of the illumination 12. On the other hand, when the brightness of the subject detected by the brightness detection unit 24 is not the target value, the determination unit 25 determines that it is necessary to change the brightness of the illumination 12.
[0046] The brightness setting unit 26 sets the brightness control value of the lighting 12 based on the judgment result of the judgment unit 25. In this embodiment, the brightness setting unit 26 sets the current value to be supplied to the LED light based on the judgment result of the judgment unit 25. If the judgment unit 25 judges that it is not necessary to change the brightness of the lighting 12, the brightness setting unit 26 does not change the brightness control value of the lighting 12 from the current brightness control value. On the other hand, if the judgment unit 25 judges that it is necessary to change the brightness of the lighting 12, the brightness setting unit 26 changes the brightness control value of the lighting 12 from the current brightness control value. The brightness setting unit 26 sets the brightness control value of the lighting 12 so that the brightness of the lighting 12 is set to a brightness such that the luminance of the subject in the captured image P becomes a target value.
[0047] Specifically, when the brightness of the subject to be photographed is below the lower limit of the target value, the brightness setting unit 26 increases the brightness control value of the lighting 12 from the current brightness control value in order to brighten the lighting 12. In this embodiment, the brightness setting unit 26 sets the current value supplied to the LED light to a value greater than the current current value. On the other hand, when the brightness of the subject to be photographed is above the upper limit of the target value, the brightness setting unit 26 decreases the brightness control value of the lighting 12 from the current brightness control value in order to darken the lighting 12. In this embodiment, the brightness setting unit 26 sets the current value supplied to the LED light to a value less than the current current value.
[0048] The personal computer 14 transmits the brightness control value of the lighting 12 set by the brightness setting unit 26 to the trigger unit 13. The trigger unit 13 controls the lighting 12 according to the brightness control value of the lighting 12 received from the personal computer 14. As a result, when the luminance of the subject in the photographed image P is below the lower limit of the target value, the brightness of the lighting 12 is controlled to be brighter. When the luminance of the subject in the photographed image P is above the upper limit of the target value, the brightness of the lighting 12 is controlled to be darker. As a result, the luminance of the subject in the photographed image P becomes the target value.
[0049] The determination unit 25, the brightness setting unit 26, and the trigger unit 13 constitute a brightness control unit. The brightness control unit controls the brightness of the illumination 12 based on the target value set by the brightness setting unit 23 and the brightness of the subject detected by the brightness detection unit 24 so that the brightness of the subject in the captured image P becomes the target value.
[0050] <How to adjust the lighting brightness> A method for adjusting the brightness of the illumination 12 by the image capturing device 10 will now be described. As shown in FIG. 6, in step S11, the area setting unit 21 sets an area including warp threads T in the image P captured by the camera 11 as a target area A. In step S12, the color detection unit 22 detects the color of the warp threads T from the image P captured by the camera 11. In step S13, the brightness setting unit 23 sets an appropriate brightness value corresponding to the color of the warp threads T as a target value. In step S14, the brightness detection unit 24 detects the brightness of the warp threads T from the captured image P. In step S15, the judgment unit 25 of the brightness control unit judges whether the brightness of the warp threads T detected in step S14 is the target value set in step S13.
[0051] If the brightness of the warp thread T is not the target value (NO in step S15), the process proceeds to step S16. In step S16, the brightness control unit changes the brightness of the lighting 12. Specifically, the brightness setting unit 26 changes the brightness control value of the lighting 12. The trigger unit 13 controls the lighting 12 according to the brightness control value of the lighting 12 changed by the brightness setting unit 26. On the other hand, if the brightness of the warp thread T is the target value (YES in step S15), the process proceeds to step S17. The brightness of the lighting 12 is not changed.
[0052] If the camera 11 continues shooting, i.e., if the personal computer 14 has received a new captured image P from the camera 11 (YES in step S17), the process returns to step S14. That is, while the camera 11 continues shooting, the brightness detection unit 24 repeatedly detects the brightness of the warp threads T. The brightness detection unit 24 detects the brightness of the warp threads T at a predetermined detection interval. Also, while the camera 11 continues shooting, the brightness control unit repeatedly controls the brightness of the lighting 12. On the other hand, if the camera 11 is not continuing shooting, i.e., if the personal computer 14 has not received a new captured image P from the camera 11 (NO in step S17), the flow ends.
[0053] [Operation of this embodiment] The operation of this embodiment will now be described. For example, when the brightness of the illumination 12 is constant, it is easy to recognize the warp threads T in the photographed image P when the warp threads T are light-colored, but it is difficult to recognize the warp threads T in the photographed image P when the warp threads T are dark-colored. On the other hand, if the brightness of the illumination 12 is increased, it becomes possible to recognize the warp threads T in the photographed image P when the warp threads T are dark-colored, but the warp threads T may be blown out in the photographed image P when the warp threads T are light-colored.
[0054] In contrast, in this embodiment, the brightness setting unit 23 sets an appropriate brightness value corresponding to the color of the warp thread T as a target value. The brightness control unit controls the brightness of the lighting 12 based on the target value set by the brightness setting unit 23 and the brightness of the warp thread T detected by the brightness detection unit 24 so that the brightness of the warp thread T in the captured image P becomes the target value. In this manner, the brightness of the lighting 12 is controlled based on the color of the warp thread T. Therefore, the photographing device 10 can perform photographing taking into consideration that the ease of recognizing the warp thread T in the captured image P differs depending on the color of the warp thread T. This makes it easier for an operator or an inspection device to recognize the warp thread T in the captured image P.
[0055] Furthermore, in this embodiment, the brightness detection unit 24 detects the brightness of the warp threads T from the captured image P. The brightness control unit controls the brightness of the lighting 12 so that the brightness of the warp threads T in the captured image P becomes a target value. In this manner, the brightness of the lighting 12 is controlled based on the brightness of the warp threads T. For this reason, compared to when the brightness of the lighting 12 is controlled based on the brightness of the entire captured image P, it is easier to make the brightness of the warp threads T in the captured image P suitable for an operator or inspection device to recognize the warp threads T in the captured image P. This also makes it easier for an operator or inspection device to recognize the warp threads T in the captured image P.
[0056] [Effects of this embodiment] The effects of this embodiment will be described. (1) The brightness of the lighting 12 is controlled based on the color of the warp thread T. Therefore, the photographing device 10 can photograph the warp thread T while taking into consideration that the ease of recognizing the warp thread T in the photographed image P varies depending on the color of the warp thread T. This makes it easier for the operator or inspection device to recognize the warp thread T in the photographed image P. In addition, the brightness of the lighting 12 is controlled based on the luminance of the warp thread T. Therefore, compared to when the brightness of the lighting 12 is controlled based on the luminance of the entire photographed image P, it is easier to make the luminance of the warp thread T in the photographed image P suitable for the operator or inspection device to recognize the warp thread T in the photographed image P. This also makes it easier for the operator or inspection device to recognize the warp thread T in the photographed image P. As a result, the operator or inspection device is less likely to erroneously recognize the warp thread T in the photographed image P.
[0057] (2) When the shooting period is long, the illuminance may gradually decrease due to dust or the like adhering to the lighting 12. In this embodiment, while the camera 11 continues shooting, the brightness detection unit 24 repeatedly detects the brightness of the warp threads T, and the brightness control unit repeatedly controls the brightness of the lighting 12. Therefore, the warp threads T in the captured image P are easy to recognize even at the end of the shooting period.
[0058] (3) The photographing device 10 is equipped with a color detection unit 22 that detects the color of the warp thread T from the photographed image P. The brightness setting unit 23 stores the relationship between the color of the warp thread T and the appropriate brightness value. The brightness setting unit 23 sets the appropriate brightness value corresponding to the color of the warp thread T detected by the color detection unit 22 as a target value. With this configuration, the target value can be automatically set by the photographing device 10. This eliminates the need for an operator to input the color of the warp thread T or the appropriate brightness value corresponding to the color of the warp thread T to the control unit 17.
[0059] (4) The subject of the photographing in this embodiment is the portion of the warp yarn T that forms the shed Ta where the weft yarn is inserted. This makes it easier for an operator or an inspection device to recognize the portion of the warp yarn T that forms the shed Ta in the photographed image P. This makes it easier for an operator or an inspection device to inspect the shed state of the warp yarn T.
[0060] (5) When the brightness of the warp thread T detected by the brightness detection unit 24 exceeds the upper limit of the target value set by the brightness setting unit 23, the brightness control unit reduces the current value supplied to the LED light serving as the lighting 12, thereby dimming the brightness of the lighting 12. This not only makes it easier for the worker or the inspection device to recognize the warp thread T in the captured image P, but also reduces the power required for the photographing device 10 to photograph and suppresses heat generation from the lighting 12.
[0061] [Example of change] The above embodiment can be modified as follows: The above embodiment and the following modifications can be combined with each other to the extent that no technical contradiction occurs.
[0062] In the above embodiment, the object to be photographed by the photographing device 10 is not limited to the warp threads T. The object to be photographed by the photographing device 10 may be a weft thread or a woven fabric. The camera 11 and the lighting 12 may be provided at a second end, which is the end opposite to the end where the weft insertion nozzle is located in the width direction of the machine 101. In this case, the camera 11 photographs the subject from downstream to upstream in the weft insertion direction. The lighting 12 illuminates the subject from downstream to upstream in the weft insertion direction.
[0063] The lighting 12 does not have to be an LED light as long as it can illuminate the subject and the brightness is adjustable. In the above embodiment, the worker selects the area in the captured image P that includes the subject, but this is not limited to the above. For example, the area setting unit 21 may select the area in the captured image P that includes the subject. Specifically, the area setting unit 21 may have a trained model that has been trained to output the area in the captured image P that includes the subject when the captured image P is input. The area setting unit 21 sets the area output by the trained model as the target area A. In this case, the worker does not need to select the area in the captured image P that includes the subject.
[0064] The region setting unit 21 may set a plurality of target regions A. In the above embodiment, the color detection unit 22 detects the color of the photographed subject by detecting the color of the target area A, but this is not limited to the above. For example, the color detection unit 22 may have a trained model that is trained to extract the photographed subject from the photographed image P and detect the color of the extracted photographed subject. The color detection unit 22 directly detects the color of the photographed subject from the photographed image P by using the trained model. In this case, the area setting unit 21 is not necessary.
[0065] In the above embodiment, the brightness detection unit 24 detects the brightness of the subject by detecting the brightness of the target area A, but this is not limited to the above. For example, the brightness detection unit 24 may have a trained model that is trained to extract the subject from the captured image P and detect the brightness of the extracted subject. The brightness detection unit 24 directly detects the brightness of the subject from the captured image P by using the trained model. In this case, the area setting unit 21 is not necessary.
[0066] In the above embodiment, the color detection unit 22 detects the color of the subject from the target area A, but this is not limiting. For example, the worker may input the color of the subject to the control unit 17 using the input unit 15. The luminance setting unit 23 sets the appropriate luminance value corresponding to the color of the subject input by the worker as a target value using the stored relationship between the color of the subject and the appropriate luminance value. In this case, the control unit 17 does not need to have the color detection unit 22. Also, step S12 is unnecessary.
[0067] In the above embodiment, the luminance setting unit 23 sets the appropriate luminance value corresponding to the color of the object detected by the color detection unit 22 as the target value by using the stored relationship between the color of the object and the appropriate luminance value, but this is not limited to this. For example, the operator may input the appropriate luminance value corresponding to the color of the object to the control unit 17 by the input unit 15. The luminance setting unit 23 sets the appropriate luminance value input by the operator as the target value. As a result, the appropriate luminance value corresponding to the color of the object to be photographed is set as the target value. In this case, the control unit 17 may not have the color detection unit 22. Also, step S12 is not necessary. Furthermore, the luminance setting unit 23 may not store the relationship between the color of the object to be photographed and the appropriate luminance value.
[0068] In the above embodiment, the appropriate value and the target value of the brightness corresponding to the color of the subject to be photographed have a range. However, the appropriate value and the target value of the brightness corresponding to the color of the subject to be photographed may be a single value. The trigger unit 13 and the control unit 17 may be a single control device.
[0069] The timing at which the brightness detection unit 24 detects the brightness of the warp thread T for the first time may be changed as appropriate as long as it is after step S11 in which the area setting unit 21 sets the target area A. For example, the brightness detection unit 24 may detect the brightness of the warp thread T for the first time simultaneously with or before step S12 in which the color detection unit 22 detects the color of the warp thread T. The brightness detection unit 24 may detect the brightness of the warp thread T for the first time simultaneously with or before step S13 in which the brightness setting unit 23 sets a target value.
[0070] The brightness detection unit 24 does not need to repeatedly detect the brightness of the warp threads T. The brightness control unit does not need to repeatedly control the brightness of the lighting 12. In other words, the brightness detection unit 24 may detect the brightness of the warp threads T only once, and the brightness control unit may control the brightness of the lighting 12 only once. In this case, step S17 is unnecessary.
[0071] [Note] The technical ideas that can be understood from the above-described embodiment and modified examples will be described below. [1] A thread or woven fabric photographing device in which the subject is a thread or woven fabric, comprising: a camera that photographs the subject; lighting that illuminates the subject; a brightness setting unit that sets an appropriate brightness value corresponding to the color of the subject as a target value; a brightness detection unit that detects the brightness of the subject from an image captured by the camera; and a brightness control unit that controls the brightness of the lighting so that the brightness of the subject in the captured image becomes the target value based on the target value set by the brightness setting unit and the brightness of the subject detected by the brightness detection unit.
[0072] [2] The yarn or woven fabric photographing device described in [1], wherein while the camera continues photographing, the brightness detection unit repeatedly detects the brightness of the subject to be photographed, and the brightness control unit repeatedly controls the brightness of the lighting.
[0073] [3] A yarn or woven fabric photographing device as described in [1] or [2], further comprising a color detection unit that detects the color of the subject from the photographed image, wherein the brightness setting unit stores a relationship between the color of the subject and the appropriate value, and sets the appropriate value corresponding to the color of the subject detected by the color detection unit as the target value.
[0074] [4] A yarn or woven fabric photographing device as described in [3], further comprising an area setting unit which sets an area of the photographed image which includes the subject to be photographed as a target area, wherein the color detection unit detects the color of the subject to be photographed by detecting the color of the target area, and the brightness detection unit detects the brightness of the subject to be photographed by detecting the brightness of the target area.
[0075] [5] The device for photographing yarns or woven fabric described in any one of [1] to [4], wherein the subject to be photographed is a portion of the warp yarns that forms an opening through which the weft yarn is inserted. [Explanation of symbols]
[0076] 10...imaging device, 11...camera, 12...lighting, 21...area setting section, 22...color detection section, 23...luminance setting section, 24...luminance detection section, A...target area, P...captured image, T...warp thread, Ta...opening.
Claims
1. A yarn or woven fabric photography device in which the photography object is yarn or woven fabric, a camera for photographing the subject; lighting for illuminating the subject; a brightness setting unit that sets an appropriate brightness value corresponding to the color of the subject to be photographed as a target value; a brightness detection unit that detects the brightness of the subject from the image captured by the camera; a brightness control unit that controls the brightness of the illumination based on the target value set by the brightness setting unit and the brightness of the object detected by the brightness detection unit so that the brightness of the object in the captured image becomes the target value; A device for photographing yarn or woven fabric, comprising:
2. The yarn or woven fabric photographing device according to claim 1, wherein while the camera continues photographing, the brightness detection unit repeatedly detects the brightness of the subject to be photographed, and the brightness control unit repeatedly controls the brightness of the lighting.
3. a color detection unit that detects the color of the subject from the captured image, The yarn or woven fabric photographing device according to claim 1, wherein the brightness setting unit stores a relationship between the color of the object to be photographed and the appropriate value, and sets the appropriate value corresponding to the color of the object to be photographed detected by the color detection unit as the target value.
4. a region setting unit that sets a region of the captured image that includes the subject as a target region; the color detection unit detects the color of the object by detecting the color of the object area; The yarn or woven fabric photographing device according to claim 3 , wherein the brightness detection unit detects the brightness of the photographing target by detecting the brightness of the target area.
5. 2. The apparatus for photographing yarns or woven fabrics according to claim 1, wherein the photographed object is a portion of the warp yarns that forms an opening into which the weft yarns are inserted.
Citation Information
Patent Citations
Apparatus and method for automatic fabric inspection
JP1996254503A
