This application claims priority to Japanese Patent Application No. 2014-051148, filed on Mar. 14, 2014, the content of which is hereby incorporated by reference.
The present disclosure relates to a sewing machine that is provided with an image capture portion, and to a non-transitory computer-readable medium that stores computer-readable instructions.
A sewing machine that is provided with an image capture device is known. In the sewing machine, an image (a captured image) that is described by image data that the image capture device has created is used for a background image when an embroidery pattern is positioned and edited. The captured image is also used in processing that creates embroidery data for sewing the embroidery pattern.
Because the sewing machine is used in various types of environments, cases sometimes occur in which the coloring of the image that is described by the image data that the image capture portion of the sewing machine has created becomes unnatural, due to factors such as the ambient light intensity, differences in light sources, and the like.
Various embodiments of the broad principles derived herein provide a sewing machine that is capable of acquiring image data in which the image is described by appropriate colors that make the coloring appear natural, and also provide a non-transitory computer-readable medium that stores computer-readable instructions.
Exemplary embodiments provide a sewing machine that includes a needle bar, an image capture device, and a control device. On a lower end of the needle bar, a sewing needle is mounted. The image capture device captures an image of an area that includes an area below the needle bar and creates image data. The control device executes steps of causing the image capture device to create first image data, causing the image capture device to create second image data, acquiring the first image data, acquiring the second image data, and performing color-related correction on the second image data, based on the first image data.
Exemplary embodiments also provide a non-transitory computer-readable medium storing a control program for a sewing machine that is provided with an image capture device. The control program includes instructions that, when executed, cause the sewing machine to perform the steps of creating first image data by the image capture device, creating second image data by the image capture device, acquiring first image data that describe a captured image of an area that includes an area below a needle bar, acquiring second image data that describe a captured image of the area that includes the area below the needle bar, and performing color-related correction on the second image data, based on the first image data.
Embodiments will be described below in detail with reference to the accompanying drawings in which:
Hereinafter, embodiments will be explained with reference to the drawings. Note that the drawings are used for explaining technological features that the present disclosure can utilize. Accordingly, device configurations, flowcharts for various types of processing, and the like that are shown in the drawings are merely explanatory examples and do not serve to restrict the present disclosure to those configurations, flowcharts, and the like, unless otherwise indicated specifically. A physical configuration of a sewing machine 1 will be explained with reference to
As shown in
The bed 11 is provided with a needle plate 21 (refer to
The sewing machine 1 is also provided with an embroidery frame moving mechanism (hereinafter called the moving mechanism) 40. The moving mechanism 40 is capable of being mounted on and removed from the bed 11 of the sewing machine 1.
The body portion 41 is provided with an X axis moving mechanism (not shown in the drawings) and an X axis motor 83 (refer to
The liquid crystal display (hereinafter called the LCD) 15 is provided on the front face of the pillar 12. An image that includes various types of items, such as commands, illustrations, setting values, messages, and the like, is displayed on the LCD 15. A touch panel 26 that can detect a pressed position is provided on the front face of the LCD 15. When a user uses a finger or a stylus pen (not shown in the drawings) to perform a pressing operation on the touch panel 26, the pressed position is detected by the touch panel 26. Based on the pressed position that was detected, a CPU 61 of the sewing machine 1 (refer to
A cover 16 that can be opened and closed is provided in the upper part of the arm 13. The cover 16 is in a closed state in
As shown in
An image sensor 35 is provided in the interior of the head 14. The image sensor 35 is a known complementary metal oxide semiconductor (CMOS) image sensor, for example. The image sensor 35 is disposed such that it can capture an image of an area that includes the area below the needle bar 6, and it is capable of creating image data. The image data that the image sensor 35 outputs are stored in a specified storage area of a RAM 63 (refer to
The image sensor 35 in the present embodiment has a function that creates the image data with the white balance corrected. More specifically, the image sensor 35 has an auto white balance function (hereinafter called the AWB) and a manual white balance function (hereinafter called the MWB). The AWB is a function that performs color temperature correction on the image data using determined white balance values (hereinafter called determined WB values) that are determined based on color information in the image data. The MWB is a function that performs color temperature correction on the image data using set white balance values (hereinafter called set WB values). The set WB values are white balance values (hereinafter called WB values) that are set by the CPU 61, which will be described later. The color information is information that describes color. In the present embodiment, the color information is expressed in the form of gradation values (numerical values from 0 to 255) for the three primary colors red (R), green (G), and blue (B).
The plurality of types of the embroidery frames and holder members that can be mounted on the moving mechanism 40 will be explained. The embroidery frame includes a first frame member and a second frame member, and it can hold the sewing workpiece using the first frame member and the second frame member. Each one of the first frame member and the second frame member is a frame-shaped member. The embroidery frame is configured such that stitches can be formed by the sewing portion 33 in a sewing-enabled area that is defined on the inner side the embroidery frame. The holder member is capable of holding an object of image capture by the image sensor 35. In some cases, the sewing workpiece is the object of image capture, so the embroidery frame is included in the holder member.
An embroidery frame 50 that can be mounted on the moving mechanism 40 and a holder plate 90 that can be mounted on the embroidery frame 50 will be explained with reference to
As shown in
The color reference member 93 is a member that serves as a color reference. The color reference member 93 includes a white color reference member 931 that serves as a reference for the color white and a black color reference member 932 that serves as a reference for the color black. In the present embodiment, each one of the white color reference member 931 and the black color reference member 932 is a known reflective plate whose surface is planar. The color reference member 93 may be formed by printing coatings of the specified colors on the planar portion 91, and may also be formed by affixing to the planar portion 91 a reflective tape material of the specified colors. Each one of the white color reference member 931 and the black color reference member 932 lies on the same plane as the surface 911 of the planar portion 91 and is positioned to the outside of an image capture object range R1. More specifically, each one of the white color reference member 931 and the black color reference member 932 is provided such that it extends in the short side direction (the left-right direction) of the holder plate 90 at one end (the front end) of the holder plate 90 in the long side direction. Each one of the white color reference member 931 and the black color reference member 932 is provided within an image capture enabled range for the image sensor 35. The image capture enabled range for the image sensor 35 is determined by an image capture range of the image sensor 35, a movement enabled range for the moving mechanism 40, the size of the embroidery frame or the holder member, and the like. The image capture object range R1 is a rectangular range that is the object of image capture by the image sensor 35 and is the range that is indicated by dashed-two dotted lines in
In the present embodiment, each one of the white color reference member 931 and the black color reference member 932 is rectangular, with a smaller surface area than that of the image capture object range R1, and they are disposed adjacent to one another. The lengths of the white color reference member 931 and the black color reference member 932 in the long side direction (the left-right direction) are the same as the length of the image capture object range R1 in the short side direction (the left-right direction). The image capture object range R1 is larger than the image capture range within which the image sensor 35 can capture an image in one round of image capture. Therefore, in order to create image data that describe the entire image capture object range R1, the CPU 61, which will be described later, causes the image sensor 35 to capture images of the image capture object range R1 sequentially while causing the moving mechanism 40 to move the embroidery frame 50.
In contrast, the lengths of the white color reference member 931 and the black color reference member 932 in the short side direction (the front-rear direction) are lengths that are set by taking into consideration a unit image capture range R3 for the image sensor 35. The unit image capture range R3 is a range, within the image capture range, that is used for image processing, and it is a rectangular range that is indicated by broken lines in
Each one of the six magnetic bodies 95 is an iron plate that is circular in a plan view. Each of the magnetic bodies 95 is disposed inside a recessed portion 94 that is provided in the surface 911 and is circular in a plan view, and is embedded in the planar portion 91. In other words, the top face of each of the magnetic bodies 95 is either even with the surface 911 or slightly below the surface 911 and does not protrude above the surface 911. In the present embodiment, each one of the six magnetic bodies 95 is disposed in a position that coincides with a portion of the boundary of the image capture object range R1 within the surface 911 of the planar portion 91. Four of the six magnetic bodies 95 are disposed at the four corners of the rectangular image capture object range R1. The remaining two of the six magnetic bodies 95 are disposed in the centers of the two long sides of the rectangular image capture object range R1. As shown in
The indicator portion 97 is provided in at least the perimeter portion of the planar portion 91. In the present embodiment, the indicator portion 97 includes eight indicators 96 that are positioned to the outside of the magnetic bodies 95 (in the same plane as the surface 911 and farther from the center of the holder plate 90 than are the magnetic bodies 95). Each one of the indicators 96 indicates the positions of the magnetic bodies 95 that are embedded in the planar portion 91. Two of the eight indicators 96 are recessed portions that are provided such that they extend from one edge (the rear edge) toward the other edge (the front edge) in the long side direction of the holder plate 90, and they indicate the positions of the magnetic bodies 95 in the long side direction of the holder plate 90. Three of the eight indicators 96 are recessed portions that are provided such that they extend from one edge (the left edge) toward the other edge (the right edge) in the short side direction of the holder plate 90, and they indicate the positions of the magnetic bodies 95 in the short side direction of the holder plate 90. Three of the eight indicators 96 are recessed portions that are provided such that they extend from one edge (the right edge) toward the other edge (the left edge) in the short side direction of the holder plate 90, and they indicate the positions of the magnetic bodies 95 in the short side direction of the holder plate 90. Because the indicator portion 97 is positioned to the outside of the magnetic bodies 95, cases occur in which, depending on the size of the sheet-shaped object, the indicators 96 are not covered by the sheet-shaped object, even if the magnetic bodies 95 are covered by the sheet-shaped object. In these cases, the user is able to specify the positions of the six magnetic bodies 95 based on the positions of the indicators 96 that indicate the positions in the short side direction of the holder plate 90 and on the positions of the indicators 96 that indicate the positions in the long side direction of the holder plate 90.
The base line 98 is a guide for placing an object on the surface 911 of the planar portion 91. In the present embodiment, the base line 98 is a straight line segment that extends along the outline of the image capture object range R1.
As shown in
A holder member 120 that can be mounted on the moving mechanism 40 will be explained with reference to
As shown in
The color reference member 123 is a member that serves as a color reference. The color reference member 123 is located in the perimeter portion of the planar portion 121, at one end of the holder member 120 in the long side direction, to the outside (on the front side) of an image capture object range R2, which is bounded by the base line 128. In the same manner as the color reference member 93, the color reference member 123 includes a white color reference member 131 that serves as a reference for the color white and a black color reference member 132 that serves as a reference for the color black. The lengths of the white color reference member 131 and the black color reference member 132 in the long side direction (the left-right direction) are the same as the length of the image capture object range R2 in the short side direction. The image capture object range R2 is a rectangular range that is the object of image capture by the image sensor 35 and is the range that is indicated by dashed-two dotted lines in
Each one of the six magnetic bodies 125 is an iron plate that is circular in a plan view. In the same manner as the magnetic bodies 95, each of the magnetic bodies 125 is embedded inside a recessed portion 124 that is provided in the surface 133 and is circular in a plan view. The holder member 120 is provided with the six magnets 130 (refer to
The indicator portion 127 is provided in at least the perimeter portion of the planar portion 121. In the same manner as the indicator portion 97, the indicator portion 127 is provided with eight indicators 126. Each one of the eight indicators 126 indicates the positions of the magnetic bodies 125 that are embedded in the planar portion 121.
The base line 128 is a guide for placing an object on the surface 133 of the planar portion 121. In the present embodiment, the base line 128 is a straight line segment that extends along the outline of the rectangular image capture object range R2. When the holder member 120 has been mounted on the moving mechanism 40, the surface 133 of the holder member 120 is approximately parallel to the bed 11. The planar portion 121 is disposed on the top side of the needle plate 21 and below the needle bar 6 and the presser foot 9.
An electrical configuration of the sewing machine 1 will be explained with reference to
The CPU 61 performs main control of the sewing machine 1 and, in accordance with various types of programs that are stored in the ROM 62, performs various types of computations and processing that are related to image capture and sewing. The ROM 62 is provided with a plurality of storage areas that include a program storage area, although they are not shown in the drawings. Various types of programs for operating the sewing machine 1 are stored in the program storage area. For example, among the stored programs is a program that causes the sewing machine 1 to perform image capture and sewing processing, which will be described later.
Storage areas that store computation results from computational processing by the CPU 61 are provided in the RAM 63 as necessary. Various types of parameters and the like for the sewing machine 1 to perform various types of processing, including the image capture and sewing processing that will be described later, are stored in the flash memory 64. Drive circuits 71 to 74, the touch panel 26, the start/stop switch 29, the image sensor 35, and the detector 36 are connected to the I/O 66. The detector 36 is configured to detect the type of the embroidery frame or the holder member that is mounted on the moving mechanism 40, and to output a detection result.
The sewing machine motor 81 is connected to the drive circuit 71. The drive circuit 71 drives the sewing machine motor 81 in accordance with a control signal from the CPU 61. As the sewing machine motor 81 is driven, the needle bar up-down drive mechanism 34 (refer to
The operation of the sewing machine 1 will be explained briefly. During embroidery sewing in which the embroidery frame 50 is used, the needle bar up-down drive mechanism 34 (refer to
The image capture and sewing processing will be explained with reference to
The embroidery data in the present embodiment include thread color data. The thread color data are data that indicate the colors of the upper threads that will form the stitches. In the image capture and sewing processing, the thread color data are determined based on color information for the figure that is described by the corrected second image data. As an example, a case will be explained in which embroidery data are created that describe the
The image capture and sewing processing is started in a case where the user has used a panel operation to input a start command. When the CPU 61 detects the start command, it reads into the RAM 63 the program for performing the image capture and sewing processing, which is stored in the program storage area of the ROM 62 that is shown in
As shown in
Based on first coordinate data that are stored in the flash memory 64, the CPU 61 controls the drive circuits 72, 73 to move the embroidery frame 50 or the holder member 120 to a position where at least a part of the white color reference member is in the image capture range (more specifically, the unit image capture range) (Step S3). The first coordinate data are coordinate data that indicate a position where at least a part of the white color reference member is in the image capture range. The first coordinate data may differ according to the type of the embroidery frame and the type of the holder member, and they may also be the same. In a case where the first coordinate data differ according to the type of the embroidery frame and the type of the holder member, the CPU 61 performs the processing at Step S3 after acquiring the first coordinate data that correspond to the detection result from the detector 36.
The CPU 61 acquires the first image data from the image sensor 35 and stores the acquired first image data as white color reference image data in the RAM 63 and the flash memory 64 (Step S4). More specifically, at Step S4, the image sensor 35 corrects the image data using the determined WB values, which have been determined by a known method, based on the color information in the image data for the image capture range. From among the image data that have been corrected using the determined WB values, the CPU 61 acquires, as the first image data, data that describe an image that corresponds to the unit image capture range R3. As shown in
The CPU 61 sets the AWB of the image sensor 35 to off (Step S6). The CPU 61 sets the MWB of the image sensor 35 to on, with the determined WB values that were acquired at Step S5 defined as the set WB values (Step S7). Based on second coordinate data that are stored in the flash memory 64, the CPU 61 controls the drive circuits 72, 73 to move the embroidery frame 50 or the holder member 120 to a position where at least a part of the black color reference member is in the image capture range (more specifically, the unit image capture range) (Step S8). The second coordinate data are coordinate data that indicate a position where at least a part of the black color reference member is in the image capture range. The second coordinate data may differ according to the type of the embroidery frame and the type of the holder member, and they may also be the same. In a case where the second coordinate data differ according to the type of the embroidery frame and the type of the holder member, the CPU 61 performs the processing at Step S8 after acquiring the second coordinate data that correspond to the detection result from the detector 36.
The CPU 61 acquires the first image data from the image sensor 35 and stores the acquired first image data as black color reference image data in the RAM 63 and the flash memory 64 (Step S9). More specifically, at Step S9, the image sensor 35 corrects the image data using the set WB values that were set at Step S7. From among the image data that have been corrected using the set WB values, the CPU 61 acquires, as the first image data, data that describe an image that corresponds to the unit image capture range. As shown in
On the other hand, in a case where, at Step S1, a determination is made that the color reference member is not present (NO at Step S1), the CPU 61 acquires WB values for the image sensor 35 that are stored in the flash memory 64 (Step S10). The WB values that are acquired at Step S10 are either default values or the values that were stored by the most recent iteration of the processing at Step S5. The CPU 61 acquires the white color reference image data and the black color reference image data that are stored in the flash memory 64 (Steps S11, S12). The white color reference image data and the black color reference image data that are acquired at Steps S11 and S12 are either default values or the values that were stored by the most recent iteration of the processing at Steps S4 and S9. The white color reference image data and the black color reference image data that are acquired at Steps S11 and S12 are data in which the white balance has been adjusted using the WB values that were acquired at Step S10. The CPU 61 sets the MWB of the image sensor 35 to on, with the WB values that were acquired at Step S10 defined as the set WB values (Step S13).
Following Steps S9 and S13, the CPU 61, based on third coordinate data that are stored in the flash memory 64, controls the drive circuits 72, 73 to move the embroidery frame 50 or the holder member 120 to a position where an image of the image capture range will be captured. The CPU 61, synchronizing the control of the drive circuits 72, 73, acquires the second image data by causing the image sensor 35 to capture an image of the image capture range (Step S14). The third coordinate data are coordinate data that indicate a position where at least a part of the image capture object range is in the image capture range (more specifically, the unit image capture range) of the image sensor 35. The third coordinate data are specified based on the detection result from the detector 36. In the specific example, the image capture object range R1 is larger than the image capture range. Therefore, the CPU 61 synchronizes the control of the drive circuits 72, 73 such that image data are acquired for each one of a plurality of image capture ranges by causing the image sensor 35 to capture successive images of the image capture object range R1. The image sensor 35 outputs to the I/O 66 image data that have been corrected using the set WB values that were set at Step S7 (or Step S13). From among the image data that have been corrected by the image sensor 35 using the set WB values, the CPU 61 acquires, as the second image data, the data that describe an image that corresponds to the unit image capture range.
The second image data that are created by the processing at Step S14 correspond to each one of a plurality of images 310 of the left half of the image capture object range R1, for which image capture is performed a plurality of times, and to each one of a plurality of images 340 of the right half of the image capture object range R1, for which image capture is performed a plurality of times. As shown in
The CPU 61 corrects the second image data based on the white color reference image data and the black color reference image data (Step S15). In the present embodiment, the CPU 61 performs known shading correction on the second image data based on the white color reference image data and the black color reference image data. In the specific example, the pluralities of sets of the second image data that respectively correspond to the pluralities of the images 310, 340 are corrected individually.
The procedure for the shading correction will be briefly explained using a specific example. R, G, B gradation values are acquired for each of the pixels that are arrayed in matrix form, with N rows and M columns (N and M being positive integers), in each of the images that are described by the first image data and the second image data. For a pixel at row N, column M, given that the gradation values for the white color reference image data are W, the gradation values for the black color reference image data are B, and the gradation values for the second image data are 5, post-correction data D are derived by the following equation:
Post-correction data D=(S−B)×255/(W−B)
In a case where the gradation values W are (240, 232, 238), the gradation values B are (10, 5, 9), and the gradation values S are (54, 152, 43), the CPU 61 computes the (R, G, B) values for the post-correction data D as follows:
R=(54−10)×255/(240−10)=49
G=(152−5)×255/(232−5)=165
B=(43−9)×255/(238−9)=38
The CPU 61 performs these computations for all of the pixels that are contained in the images. As shown in
Based on the second image data that were corrected at Step S15, the CPU 61 creates combined image data that describe the entire image capture object range (Step S16). The combined image data are image data that describe a single combined image that combines the plurality of images that are described by the second image data. In the specific example, the combined image data are created by the procedure hereinafter described, for example. As shown in
The CPU 61 creates the embroidery data based on the combined image data that were created at Step S16 (Step S17). A known method (for example, the method that is described in Japanese Laid-Open Patent Publication No. 2009-201704) may be used for the method that creates the embroidery data based on the image data. The embroidery data that are created by the processing at Step S17 include the sewing order, the coordinate data, and the thread color data. The thread color data describe thread colors that are set based on color information on the usable thread colors that is stored in a storage device (for example, the flash memory 64) of the sewing machine 1, the thread colors that are set being those that most closely resemble the color information for the figure that the combined image data describe. In the specific example, the thread colors that are set are those that most closely resemble the first color, the second color, and the third color of the respective
The CPU 61 controls the drive circuit 74 to display a display screen on the LCD 15 (Step S18). For example, the combined image that is described by the combined image data that were created at Step S15, as well as information that is related to the pattern that is described by the embroidery data that were created based on the combined image, may be displayed on the display screen, although this is not shown in the drawings. After checking the display screen, the user mounts on the moving mechanism 40 the embroidery frame 50 that holds the sewing workpiece. The user inputs the command to start the sewing by performing a panel operation or pressing the start/stop switch 29.
The CPU 61 waits until it detects the command to start the sewing (NO at Step S19). In a case where the CPU 61 has detected the command to start the sewing (YES at Step S19), it waits until it detects that the embroidery frame 50 has been mounted, based on the detection result from the detector 36 (NO at Step S20). In a case where the CPU 61 has detected that the embroidery frame 50 has been mounted (YES at Step S20), it controls the drive circuits 72, 73 in accordance with the embroidery data to drive the moving mechanism 40 and move the embroidery frame 50. The CPU 61 synchronizes the drive control of the drive circuits 72, 73 and operates the drive circuit 71 to drive the needle bar up-down drive mechanism 34 (Step S21). The processing at Step S21 causes the plurality of the stitches that express the pattern to be formed in the sewing workpiece that is held by the embroidery frame 50, in accordance with the embroidery data. Note that, at Step S21, in a case where it is necessary to replace the thread for a color change or the like, the CPU 61 suspends the processing at Step S20 and displays information (for example, the color of the upper thread) that pertains to the replacement thread on the LCD 15. After replacing the thread, the user either performs a panel operation or presses the start/stop switch 29 to input a command to restart the sewing. When the CPU 61 detects the command to restart the sewing, the CPU 61 restarts control based on the embroidery data. When the sewing has been completed, the CPU 61 terminates the image capture and sewing processing.
The sewing machine 1 is able to correct the second image data based on the first image data, which were obtained by capturing an image under the same image capture conditions (for example, brightness, light source) as the second image data. The sewing machine 1 is able to correct the second image data using the first image data, which appropriately reflect the actual use environment. In other words, the sewing machine 1 is able to correct the second image data more appropriately than it could if it were to correct the second image data using correction values that were set at the time that the sewing machine 1 was shipped from the factory. Accordingly, the sewing machine 1 is able to acquire the second image data in which the image is described by appropriate colors, such that the coloring of the image is natural.
The sewing machine 1 is able to correct the second image data that are captured for the object that is placed on the planar portion 121, based on the first image data that were captured for at least a portion of the color reference member 123 of the holder member 120. Because the color reference member 123 is provided on the holder member 120, the user does not need to prepare a color reference member that is separate from the holder member 120. The color reference member 123 is provided in the same plane as the planar portion 121 on which the object is placed. The holder member 120 is disposed parallel to the bed 11. Accordingly, the sewing machine 1 is able to use the image sensor 35 to capture images of the color reference member 123 and the object that is placed on the planar portion 121, under conditions in which the color reference member 123 and the object are approximately the same distance from the bed 11. Because the image of the object is captured in a state in which the object is disposed along the flat surface 133, the sewing machine 1 is able to acquire the second image data that describe an image in which deformation of the object that is due to wrinkling, sagging, and the like is reduced.
The sewing machine 1 is able to correct the second image data that are captured for the object that is placed on the planar portion 91, based on the first image data that were captured for at least a portion of the color reference member 93 of the holder plate 90 that is mounted on the embroidery frame 50. Because the color reference member 93 is provided on the holder plate 90, the user does not need to prepare a color reference member that is separate from the holder plate 90. The color reference member 93 is provided in the same plane as the planar portion 91 on which the object is placed. The holder plate 90 is disposed parallel to the bed 11. Accordingly, the sewing machine 1 is able to use the image sensor 35 to capture images of the color reference member 93 and the object that is placed on the planar portion 91, under conditions in which the color reference member 93 and the object are approximately the same distance from the bed 11. Because the image of the object is captured in a state in which the object is disposed along the flat surface 911, the sewing machine 1 is able to acquire the second image data that describe an image in which deformation of the object that is due to wrinkling, sagging, and the like is reduced.
The CPU 61 of the sewing machine 1 can use the processing at Steps S3 and S8 to automatically move one of the embroidery frame 50 and the holder member 120 to a position where at least a portion of the color reference member is within the image capture range of the image sensor 35. The sewing machine 1 can use the processing at Step S14 to automatically move one of the embroidery frame 50 and the holder member 120 to a position where the image capture object range is within the image capture range of the image sensor 35. The sewing machine 1 is able to reduce the possibility that a problem will occur due to one of the color reference member and the image capture object range not being disposed appropriately within the image capture range of the image sensor 35. By performing the simple operation of mounting one of the holder member 120 and the embroidery frame 50 on the moving mechanism 40, the user can cause the sewing machine 1 to create the second image data that have been corrected using the first image data.
Based on the first image data that are captured for the white color reference member, the sewing machine 1 is able to express the colors of an object more appropriately, particularly white and colors that are close to white. Based on the first image data that are captured for the black color reference member, the sewing machine 1 is able to express the colors of an object more appropriately. More specifically, the CPU 61 of the sewing machine 1, by performing at Step S15 the known shading correction that uses the first image data, is able to acquire the second image data in which uneven coloring and uneven lighting have been reduced from what they were prior to the correction.
The first image data that are captured for the white color reference member are corrected using the AWB, so the color of the white color reference member can be expressed more appropriately than it could if the first image data were not corrected using the AWB. The white balance of the first image data that are captured for the black color reference member and the white balance of the second image data that are captured for the object are both adjusted using the same WB values that are used for the first image data that are captured for the white color reference member. The sewing machine 1 is therefore able to correct the white balance of the second image data more precisely by using the first image data that were captured for the color reference members than it could if it were to adjust the white balance using different WB values every time an image is captured. In other words, the sewing machine 1 is able to acquire the second image data in which the image is described by more appropriate colors, such that the coloring of the image is natural.
Even in a case where the color reference members are not used, the sewing machine 1 is able to correct the second image data appropriately by using the default WB values, the white color reference image data, and the black color reference image data that are stored in the flash memory 64.
The CPU 61 of the sewing machine 1 creates the embroidery data based on the second image data that describe the object that was disposed along the flat surface and that have been corrected based on the first image data. Therefore, based on the second image data, the sewing machine 1 is able to recognize the shape, size, and coloring of a figure that is drawn on the object more appropriately than it could if an image were captured of the object that is held by the holder member in a state in which it is wrinkled and sagging. In other words, the sewing machine 1 is better able than the known sewing machine to create, based on the image data that the image sensor 35 has created, embroidery data that make it possible to sew an embroidery pattern that appropriately expresses the figure that is drawn on the object. Because the sewing machine 1 creates the thread color data based on the second image data, in which the image is described by appropriate colors, such that the coloring of the image is natural, the sewing machine 1 is better able than the known sewing machine to sew the embroidery pattern based on embroidery data that reproduce the colors of the figure appropriately.
The sewing machine of the present disclosure is not limited to the embodiment that is described above, and various types of modifications may be made within the scope of the present disclosure. For example, modifications (A) to (E) described below may be made as desired.
(A) The configuration of the sewing machine 1 may be modified as desired. The sewing machine 1 may be an industrial sewing machine, and may also be a multi-needle sewing machine. It is sufficient for the image capture device to be a device that is disposed such that it can capture an image of an area that includes the area below the needle bar 6, and that is capable of creating image data and inputting the image data to the I/O 66. It is acceptable for the image capture device not to have at least one of the AWB and the MWB. The unit image capture range of the image capture device may be modified as desired.
(B) It is acceptable for the sewing machine 1 not to be provided with some or all of the color reference member, the embroidery frame, the holder plate, and the holder member. In the sewing machine 1, either one of the embroidery frame and the holder member may also be formed as a single unit with the moving mechanism 40. The configurations of the embroidery frame, the holder plate, and the holder member may be modified as desired. In a case where the sewing machine 1 is not provided with the color reference member, the sewing machine 1 may perform color-related correction on the second image data using first image data that describe a captured image of a color reference member that the user has prepared (for example, a reflective plate with a known reflectance ratio). In that case, it is preferable for the sewing machine 1 to use images or audio to guide the user in the placing of the color reference member, the timing of the image capture, and the like.
(B-1) The embroidery frame may also have configuration that is provided with a color reference member. Specifically, an embroidery frame 150 that has a color reference member will be explained with reference to
A color reference member 160 is provided on the planar portion 153 of the embroidery frame 150. In the same manner as the color reference member 93, the color reference member 160 is provided with a white color reference member 161 and a black color reference member 162 that extend in the left-right direction. In a case where the sewing machine 1 creates the second image data for a captured image of the sewing workpiece that is held in the embroidery frame 150, the sewing machine 1 may use the same sort of processing as is shown in
In a case where the sewing machine 1 is provided with the embroidery frame 150, the sewing machine 1 is able to correct the second image data that are captured for the object of image capture (for example, the sewing workpiece) that is held by the embroidery frame 150, based on the first image data that were captured for at least a portion of the color reference member 160 of the embroidery frame 150. Because the color reference member 160 is provided on the planar portion 153, the user does not need to prepare a color reference member that is separate from the embroidery frame 150. The color reference member 160 is provided in approximately the same plane as the plane in which the object of the image capture is held. The embroidery frame 150 that is mounted on the moving mechanism 40 is disposed parallel to the bed 11. Accordingly, the sewing machine 1 is able to use the image sensor 35 to capture images of the color reference member 160 and the object of the image capture that is held in the embroidery frame 150, under conditions in which the color reference member 160 and the object of the image capture are approximately the same distance from the bed 11. Because the color reference member 160 is located on the planar portion 153, it is exposed to the image sensor 35 while the object of the image capture is held by the embroidery frame 150. Therefore, after performing the simple operation of mounting the embroidery frame 150 that holds the object of image capture on the moving mechanism 40, the user can use the same sort of processing as is shown in
(B-2) The members of the holder plate 90 may be omitted as desired, and their configurations may be modified. The members of the holder member 120 may also be omitted as desired, and their configurations may be modified. The image capture object range R1 of the holder plate 90 and the image capture object range R2 of the holder member 120 may be modified as desired. The color reference members 93, 123 may each have a configuration in which only one of the white color reference member and the black color reference member is provided. The sewing machine 1 may freely modify the color-related correction processing that uses the first image data, in accordance with the color reference member. The positionings, the sizes, and the shapes, and the like of the color reference members 93, 123 may be modified as desired. For example, the color reference members may be provided over the entire image capture object ranges of the planar portions 91, 121. In that case, the first image data may be captured in a state in which the object is not affixed to the planar portions 91, 121, that is, in a state in which the color reference members are exposed to the image sensor 35. The second image data may be captured in a state in which the object is affixed to the planar portions 91, 121, that is, in a state in which the color reference members are not exposed to the image sensor 35,
(C) The color reference member may also be provided on the needle plate 21 (refer to
The sewing machine 1 is able to correct the second image data using the first image data for a captured image of the color reference member 22 that is provided on the needle plate 21. Because the color reference member 22 is provided on the needle plate 21, the user does not need to prepare a separate color reference member. The type, the shape, the size, the positioning, and the like of the color reference member 22 in the modified example may be modified as desired. A color reference member may also be provided on the top face of the bed 11 instead of being provided on the needle plate 21.
(D) The program that includes instructions for performing the image capture and sewing processing in
(E) The individual steps in the image capture and sewing processing in
(E-1) In a case where the image capture device is provided with only the MWB, image data that have been corrected using WB values that were either stored in advance or set by the user may be acquired as the first image data and the second image data, Therefore, the processing at Steps S2, S6, S7, and S13 may be omitted or modified as desired. Instead of the image sensor 35, the CPU 61 may perform the processing that adjusts the white balance of the image data.
(E-2) The determination at Step S1 as to whether the color reference member is present may also be made based on results of an analysis of the image data. In a case where the determination is made at Step S1 that the color reference member is not present (NO at Step S1), the CPU 61 may omit the processing at Steps 10 to 13 and at Step S15, and it may also omit the processing that corrects the second image data using the first image data. In a case where the determination is made at Step S1 that the color reference member is not present (NO at Step S1), the processing that corrects the second image data using the first image data may be performed based on data that correspond to one mode that the user has selected from among a plurality of modes that are stored in a storage device (for example, the flash memory 64) in advance. The plurality of the modes may be, for example, an indoor mode, an outdoor mode, a fluorescent lighting mode, and the like, for which the image capture conditions, such as the brightness, the use environment, and the like, are different. The data that correspond to the modes include, for example, the WB values, the white color reference image data, and the black color reference image data.
(E-3) In a case where the unit image capture range is larger than the image capture object range, the CPU 61, after moving the holder member 120 or the embroidery frame 50 to a position where the entire image capture object range is within the unit image capture range at Step S14, may create the second image data that describe the image of the unit image capture range. The CPU 61 may omit the processing at Step S16. At Steps S3, S8, and S14, the CPU 61 may control the moving mechanism 40 in accordance with commands that the user inputs through a panel operation or the like.
(E-4) The method for performing the color-related correction on the second image data at Step S15 using the first image data may be modified as desired. The color information for the image data may be expressed by something other than the RGB gradation values.
(E-5) The use of the second image data that have been corrected according to the first image data may be modified as desired. The image that is described by the second image data may be used as a background image when an embroidery pattern is positioned and edited, for example. In that case, the processing at Steps S16 to S21 may be omitted as necessary.
Number | Date | Country | Kind |
---|---|---|---|
2014-051148 | Mar 2014 | JP | national |