Optical decoding device
By integrating optical decoding devices in the electronic cigarette lighter, automatically detecting and decoding the code or color code on the cigarette, the problem of manual setting of traditional electronic cigarette lighters is solved, and the effect of automatic heating and power consumption saving is achieved.
Patent Information
- Application Number
- CN202411470144.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-09-04
- Filing Date
- 2024-10-21
- Publication Date
- 2025-05-06
AI Technical Summary
Traditional electronic cigarette lighters require manual settings for users to adapt to different cigarettes, affecting the smoking experience and the cigarette heating effect.
An optical decoding device including an image sensor, a processing circuit and a decoding device is designed, which can automatically detect cigarettes and adjust heating parameters according to encoded information, and realize an automatic heating function without manual setting.
By automatically detecting and decoding the code or color code on the cigarette, the electronic cigarette lighter can automatically switch heating parameters between different cigarettes, improving the consistency of smoking experience and cigarette heating, while reducing power consumption.
Smart Images

Figure CN119941877A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an optical decoding device capable of decoding invisible codes and color codes. In particular, the present invention relates to an optical decoding device capable of decoding invisible codes and color codes and reducing power consumption, which can be used in an electronic cigarette lighter. Background Art
[0002] Electronic cigarette lighters are very convenient for smokers because smokers do not need to use traditional cigarette lighters that may leak fuel or easily cause burns. However, traditional electronic cigarette lighters require users to make different settings for different cigarettes. Otherwise, they may not be able to light the cigarette smoothly or light the cigarette at the optimal temperature, which affects the smell when smoking. Summary of the invention
[0003] An object of the present invention is to disclose an optical decoding device including a decoding device that can save power consumption.
[0004] An embodiment of the present invention discloses an optical decoding device, comprising: an image sensor for sensing a first sensing image and a second sensing image; a processing circuit for determining the relative movement between the optical decoding device and an object according to the first sensing image; and a decoding device for decoding the second sensing image in a first mode to generate a decoding result, and not decoding the second sensing image in a second mode; wherein the decoding device switches between the first mode and the second mode according to the relative movement.
[0005] Another embodiment of the present invention discloses an optical decoding device, comprising: an image sensor for sensing a first sensing image and a second sensing image, wherein the second sensing image includes an image of a color code; a processing circuit for determining the relative movement between the optical decoding device and an object according to the first sensing image; and a decoding device for decoding the second sensing image in a first mode to generate a decoding result, and not decoding the second sensing image in a second mode; wherein the decoding device switches between the first mode and the second mode according to the relative movement. The color code comprises: a positioning area having a first color; a code area, wherein each of the code areas comprises a first subcode area and a second subcode area; wherein in each of the code areas, at least one of the first subcode area and the second subcode area has a second color; wherein the code value of each of the code areas is determined by which of the first subcode area and the second subcode area has the second color.
[0006] Another embodiment of the present invention discloses an optical decoding device, comprising: an image sensor for sensing a first sensing image and a second sensing image, wherein the second sensing image includes an image of a code; a processing circuit for determining the relative movement between the optical decoding device and an object according to the first sensing image; and a decoding device for decoding the second sensing image in a first mode to generate a decoding result, and not decoding the second sensing image in a second mode; wherein the decoding device switches between the first mode and the second mode according to the relative movement. The code includes: a positioning area for positioning the code; and code areas, wherein each of the code areas includes a sub-code area representing a first code value, wherein the first code value of each of the code areas is determined according to the position of the sub-code area in the code area.
[0007] According to the above embodiments, the electronic cigarette lighter can automatically heat the cigarette appropriately without manual setting. In addition, the present invention further discloses an optical decoding device with a decoding device and capable of saving power consumption, and also discloses an invisible code and a color code that can be set on a curved surface. Therefore, the problems of the prior art can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1A FIG. 4 is a block diagram of an optical decoding device according to an embodiment of the present invention.
[0009] Figure 1B According to an embodiment of the present invention, Figure 1A Schematic diagram of the operation of the optical decoding device in.
[0010] Figure 2 To illustrate an embodiment of the present invention, the Figure 1A as well as Figure 1B A schematic diagram of an electronic cigarette lighter with an optical decoding device is shown.
[0011] Figure 3A as well as Figure 3B FIG. 1 is a diagram showing a method of performing a multi-function circuit according to an embodiment of the present invention. Figure 1A Schematic diagram of a bar code decoded by a decoding device.
[0012] Figure 4 FIG. 1 is a diagram showing a method of performing a multi-function circuit according to an embodiment of the present invention. Figure 1A Schematic diagram of color code decoded by a decoding device.
[0013] Figure 5 , Figure 6 , Figure 7 as well as Figure 8 FIG. 1 is a diagram showing a method of performing a multi-function circuit according to an embodiment of the present invention. Figure 1A Schematic diagram of a code decoded by a decoding device.
[0014] Fig. 9FIG. 4 is a schematic diagram of a cigarette having a plurality of colored blocks according to an embodiment of the present invention.
[0015] The reference numerals are described as follows:
[0016] 100 Optical decoding device
[0017] 101 Image Sensor
[0018] 103 Processing Circuit
[0019] 105 Decoding device
[0020] 200 Electronic cigarette lighter
[0021] 201 Heating device
[0022] 203 Control Circuit
[0023] 205 Heating element
[0024] 207 Chamber
[0025] 209 Cigarettes
[0026] 211,211_1,211_2,211_3,211_4 code blocks
[0027] 400,400_1 color code
[0028] 501_1,501,503,503_1,601,603,700,800 code
[0029] BR_1 First bar
[0030] BR_2 Second code bar
[0031] BR_11,BR_12,BR_21,BR_22 subcode bar
[0032] CR_1,CR_2,CR_3,CR_4,CR_5,CR_a,CR_b,CR_c,CR_d,CR_e,CR_f,CR_g,CR_h,CR_a1,CR_a2,CR_a3,CR_a4,CR_a5,CR_b1,CR_b2,CR_b3,CR_b4,CR_b5 code area
[0033] CS control signal
[0034] D_1 Direction
[0035] D_2 Decoding direction
[0036] D_aFirst direction
[0037] D_b Second direction
[0038] Img_1 First sensing image
[0039] Img_2 Second sensing image
[0040] SD_1 First side
[0041] SD_2 Second side
[0042] LR, LR_a, LR_b positioning area
[0043] PL_1, PL_2 parallel lines
[0044] SP_1 First spacing
[0045] SP_2 Second spacing
[0046] SR_11, SR_22, SR_31, SR_41, SR_52, SR_12, SR_21, SR_32, SR_42, SR_51, SR_a, SR_b subcode area
[0047] W Total
[0048] WD_1 first width
[0049] WD_2 Second width
[0050] WD_S Spacing DETAILED DESCRIPTION
[0051] The present invention will be described below with multiple embodiments. Please note that the "first", "second" and similar descriptions in the following description are only used to define different elements, parameters, data, signals or steps. They are not used to limit their order. For example, the first device and the second device can be different devices with the same structure.
[0052] Figure 1A FIG. 1 is a block diagram of an optical decoding device according to an embodiment of the present invention. Figure 1AAs shown, the optical decoding device 100 includes an image sensor 101, a processing circuit 103, and a decoding device 105. The image sensor 101 is used to sense a first sensing image Img_1 and a second sensing image Img_2. The processing circuit 103 is used to determine the relative movement between the optical decoding device 100 and the object according to the first sensing image Img_1. For example, in one embodiment, the optical decoding device 100 is applied to an optical mouse, and the object is a working surface where the optical decoding device 100 is located. For another example, in one embodiment, the optical decoding device 100 is applied to an optical touch device, and the object is a finger or a stylus on the optical decoding device 100. The decoding device 105 is used to decode the second sensing image Img_2 in a first mode to generate a decoding result, and not to decode the second sensing image Img_2 in a second mode. The decoding device 105 switches between the first mode and the second mode according to the relative movement.
[0053] In one embodiment, the first sensing image Img_1 and the second sensing image Img_2 are generated using the same parameters, that is, the first sensing image Img_1 and the second sensing image Img_2 are the same sensing image. In another embodiment, the first sensing image Img_1 and the second sensing image Img_2 are generated using different parameters. For example, the first sensing image Img_1 and the second sensing image Img_2 are generated by different brightness, different resolutions, or different numbers of pixel circuits of the image sensor 101.
[0054] Specifically, in one embodiment, the processing circuit 103 controls the optical decoding device 100 to switch between the third mode and the fourth mode according to the relative movement. The power consumption of the optical decoding device 100 in the fourth mode is lower than the power consumption of the optical decoding device 100 in the third mode. For example, the third mode is a normal mode and the fourth mode is a sleep mode. In this case, the processing circuit 103 generates the control signal CS according to which of the third mode and the fourth mode the optical decoding device 100 operates in, so as to control the decoding device 105 to enter the first mode or the second mode.
[0055] Figure 1B According to an embodiment of the present invention, Figure 1A Schematic diagram of the operation of the optical decoding device 100 in FIG. Figure 1B In the embodiment of the present invention, the optical decoding device 100 is applied to an optical mouse and includes a light source. In the normal mode, the optical mouse is in a moving state, the relative movement is greater than the moving threshold, and the light source has a high light emission frequency and high power consumption. If the relative movement is 0 or less than the moving threshold, the mode is switched to a sleep mode. In the sleep mode, the light source has a low light emission frequency, so the power consumption is low.
[0056] In addition to the above-mentioned optical mouse and touch device, the optical decoding device 100 can also be applied to other devices. Figure 2 To illustrate an embodiment of the present invention, the Figure 1A as well as Figure 1B Schematic diagram of an electronic cigarette lighter 200 of an optical decoding device 100 is shown. Figure 2 As shown, the electronic cigarette lighter 200 includes a heating device 201, a control circuit 203, and a heating body 205 forming a chamber 207. If the chamber 207 is empty (i.e., the optical decoding device 100 does not sense an object), the optical decoding device 100 does not sense the relative movement, and thus the decoding device 105 operates in the second mode (the fourth mode of the optical decoding device 100). In this state, the heating device 201 does not provide heat energy according to the code from the optical decoding device 100 (i.e., no heating is performed). In one embodiment, the heating device 201 is in a sleep mode in this state. In another embodiment, if the processing circuit 103 determines that the cigarette 209 is being removed from the chamber according to the relative movement, the decoding device 105 operates in the second mode.
[0057] If the processing circuit 103 determines that the cigarette 209 is inserted into the chamber 207 according to the relative movement, the decoding device 105 switches from the second mode to the first mode. In one embodiment, when the decoding device 105 operates in the first mode, the optical decoding device 100 operates in the third mode. In this state, the optical decoding device 100 decodes the code block 211 on the cigarette 209 to generate a decoding result (i.e., provide a code). In this state, the above-mentioned object is the surface of the cigarette 209. Then, the heating device 201 provides heat energy according to the decoding result. In one embodiment, the code block 211 includes a code representing the heating parameter of the heating device 201. Therefore, the heating device 201 can automatically heat the cigarette 209 according to the code included in the code block 211. The user does not need to manually set the electronic cigarette lighter 200. In another embodiment, the code block 211 represents at least one type of cigarette. In this embodiment, the heating device 201 can set the heating parameter corresponding to the cigarette type. In this case, different cigarette types can correspond to the same heating parameter or different heating parameters.
[0058] The control circuit 203 is used to control the operation of the electronic cigarette lighter 200. In one embodiment, the control circuit 203 is in a sleep mode when the decoding device 105 is in the second mode, and is in a normal mode when the decoding device 105 is in the first mode.
[0059] Figure 3A as well as Figure 3B FIG. 1 is a diagram showing a method of performing a multi-function circuit according to an embodiment of the present invention. Figure 1A Schematic diagram of a bar code decoded by the decoding device 105. Figure 3A and Figure 3B Four examples are included. Figure 3A and Figure 3B In the embodiment of , the second sensing image Img_2 includes an image of a barcode having at least one first code bar BR_1 and at least one second code bar BR_2, wherein the first code bar BR_1 and the second code bar BR_2 represent different code values. Figure 3A and Figure 3B In Examples 1, 2, 3, and 4 of FIG. 1 , the first code bar BR_1 is a black bar having a code value of 0. In addition, the second code bar BR_2 is a black bar having a code value of 1.
[0060] In Example 1, the barcode has a first spacing SP_1 between the first barcode BR_1 and the next barcode, and a second spacing SP_2 between the second barcode BR_2 and the next barcode. The sum of the first width WD_1 of the first barcode BR_1 and the first spacing SP_1 is the same as the sum of the second width WD_2 of the second barcode BR_2 and the second spacing SP_2. For example, in the right figure of Example 1, the barcode value is 0110, and the sum of the width of each barcode in the barcode 0110 and the corresponding spacing is W.
[0061] In Example 2, the barcode has a first spacing SP_1 between the first barcode BR_1 and the next barcode, and a second spacing SP_2 between the second barcode BR_2 and the next barcode. The first width WD_1 of the first barcode BR_1 and the second width WD_2 of the second barcode BR_2 are different. In addition, the width of the first spacing SP_1 and the second spacing SP_2 are the same. For example, in the right figure of Example 2, the code value of the barcode is 0110, and the width of each bar in the barcode 0110 is different, but the spacing is WD_S.
[0062] In Example 3, the barcode has a first spacing SP_1 between the first barcode BR_1 and the next barcode, and a second spacing SP_2 between the second barcode BR_2 and the next barcode. The first width WD_1 of the first barcode BR_1 and the second width WD_2 of the second barcode BR_2 are the same. In addition, the widths of the first spacing SP_1 and the second spacing SP_2 are different. For example, in the right figure of Example 3, the code value of the barcode is 0110. The width of each bar in the barcode 0110 is the same, but the widths of the corresponding spacings are different.
[0063] In Example 4, the barcode has a first spacing SP_1 between the first code bar BR_1 and the next code, and a second spacing SP_2 between the second code bar BR_2 and the next code. The first code bar BR_1 or the second code bar BR_2 includes a plurality of discontinuous subcode bars. As shown in Example 4, the first code bar BR_1 includes discontinuous subcode bars BR_11 and BR_12, and the second code bar BR_2 includes discontinuous subcode bars BR_21 and BR_22. The subcode bars are distributed along a direction perpendicular to the decoding direction of the barcode. For example, in the right figure of Example 4, the code value of the barcode is 0110, and each code bar of the barcode 0110 includes discontinuous subcode bars distributed in the D_1 direction, and the D_1 direction is perpendicular to the decoding direction D_2.
[0064] Figure 3A and Figure 3B The barcodes shown are not limited to Figure 1A The decoding device 105 shown is used for decoding. Figure 3A and Figure 3B The barcodes shown may be replaced by other codes.
[0065] Figure 4 is a method according to an embodiment of the present invention which can be Figure 1A The color code decoded by the decoding device 105 in . Figure 4 The embodiment disclosed herein includes a color code 400. Figure 4 The left figure in the middle represents the color code 400 that has not been encoded, that is, the color code 400 has no code value. The color code 400 includes a positioning area LR and a plurality of code areas CR_1...CR_5. Each of the code areas CR_1...CR_5 includes a first subcode area and a second subcode area. Specifically, the code areas CR_1...CR_5 include first subcode areas SR_11...SR_51 and second subcode areas SR_12...SR_52, respectively. Figure 4 Each of the code regions CR_1 ... CR_5 can represent one bit.
[0066] In one embodiment, code regions CR_1 ... CR_5 have different colors, and sub-code regions in the same code region have the same color. For example, code regions CR_1 ... CR_5 are pink, yellow, blue, red, and green, respectively. In this case, the first sub-code regions SR_11 ... SR_51 are pink, yellow, blue, red, and green, respectively, and the second sub-code regions SR_12 ... SR_52 are pink, yellow, blue, red, and green, respectively. Please note that the background of color code 400 includes blocks. However, the background of color code 400 may be empty.
[0067] The positioning area LR is used to locate the decoding direction of the color code 400. The "positioning" referred to here means to identify the existence of the color code 400. In one embodiment, the decoding direction of the color code 400 is from the positioning area LR to the code areas CR_1...CR_5. In one embodiment, the positions of the first sub-code area and the second sub-code area can be determined according to the position or shape of the positioning area LR, so that the decoding direction can be obtained.
[0068] In addition, in one embodiment, the positioning area LR and the code areas CR_1 ... CR_5 are distributed along the first side SD_1, and the first sub-code area and the second sub-code area in the single code area are distributed along the second side SD_2 perpendicular to the first side SD_1. For example, the first sub-code area SR_21 and the second sub-code area SR_22 in the code area CR_2 are along the second side SD_2. In one embodiment, the first side refers to the long side of the color mark 400, and the second side refers to the short side of the color mark 400, so the second side is shorter than the first side.
[0069] Figure 4 The right figure of FIG. 4 shows the encoded color code 400_1. That is, some sub-code areas are marked with specific colors to represent the code. Figure 4 As shown, the subcode regions SR_11, SR_22, SR_31, SR_41, and SR_52 are marked in black. On the contrary, the original colors of the subcode regions SR_12, SR_21, SR_32, SR_42, and SR_51 are retained. In one embodiment, if the left side of the subcode region is marked, the code value of the code region is 0, and if the right side of the subcode region is marked, the code value of the code region is 1.
[0070] The color of the positioning area LR and the color used to mark the subcode area can be the same, but can also be different. Therefore, the color code 400_1 can be expressed as:
[0071] A color code includes: a positioning area (e.g., positioning area LR) having a first color (e.g., black); code areas (e.g., code areas CR_1 ... CR_5), wherein each code area includes a first sub-code area and a second sub-code area. In each code area, at least one of the first sub-code area and the second sub-code area has a second color. In one embodiment, one of the first sub-code area and the second sub-code area has a second color (e.g., sub-code areas SR_11, SR_22, SR_31, SR_41, and SR_52 are black), and the other in the first sub-code area has a second color (e.g., sub-code areas SR_12, SR_21, SR_32, SR_42, and SR_51 are pink, yellow, blue, red, and green, respectively).
[0072] In addition, the code value of each code area is determined by which of its first sub-code area and second sub-code area has the second color. For example, if the sub-code area on the left is marked, the code value of the code area is 0. If the sub-code area on the right is marked, the code value of the code area is 1. The first color and the second color can be the same or different. In addition, the colors of the first sub-code area without the second color and the second sub-code area without the second color in different code areas are different. For example, sub-code areas SR_12, SR_21, SR_32, SR_42 and SR_51 are pink, yellow, blue, red and green, respectively. Figure 4 The color code shown can still be read correctly even when set on a curved surface.
[0073] exist Figure 5-Figure 8 In an embodiment of the present invention, an invisible code is provided. Figure 5 In the embodiment of the present invention, the code includes at least one positioning area for positioning the code area. The details of the positioning area will be described in more detail later. Code 501_1 is a more detailed code of code 501.
[0074] Furthermore, Figure 5 The code in includes a plurality of code regions, wherein each code region includes a subcode region representing a first code value, wherein the first code value of each code region is determined according to the position of at least one subcode region in the code region. For example, code 501 includes a code region CR_a having a subcode region SR_a, and code 503 includes a code region CR_b having a subcode region SR_b. Each code region represents one bit of the code. Figure 5 The decoding direction of the code in can be from the positioning area to the code area.
[0075] In one embodiment, if the subcode region of the first code region in the code region is located in the upper region of the first code region, the first code value of the first code region is the first value. For example, since the subcode region SR_a is located in the upper region of the code region CR_a, the code region CR_a has a code value of 0. In addition, if the subcode region of the second code region in the code region is located in the lower region of the second code region, the first code value of the second code region is the second value. For example, since the subcode region SR_b is located in the lower region of the code region CR_b, the code region CR_b has a code value of 1. This method can be called a "single positioning method". According to such a rule, the code regions CR_c, CR_d, and CR_e of code 501_1 have code values of 000, and the code regions CR_f, CR_g, and CR_h of code 501_1 have code values of 010. In this case, the positioning region can be set between the upper region and the lower region.
[0076] In another embodiment, a method named "difference positioning method" is used. In such an example, the first code value is determined by the positional relationship of the subcode regions of two adjacent code regions in the code region. In one embodiment, if the subcode region of the current code region and the subcode region of the next code region have the same position, the first code value of the current code region is 0. For example, since the positions of the subcode regions of code regions CR_c and CR_d are the same, the code value of code region CR_c is 0. On the contrary, if the positions of the subcode region of the current code region and the subcode region of the next code region are different, the first code value of the current code region is 1. For example, since the positions of the subcode regions of code regions CR_f and CR_g are different, the code value of code region CR_f is 1.
[0077] In one embodiment, the positioning area is used to represent a second code value, wherein the second code value is determined according to the shape or color of the positioning area. Figure 5 , codes 501 and 501_1 respectively include location regions LR_a having the same shape. Therefore, the second code values of codes 501 and 501_1 are 0. According to the same rule, codes 503 and 503_1 respectively include location regions LR_b having the same shape. Therefore, the second code values of codes 503 and 503_1 are 1. Code 503_1 is a more detailed code of code 503. In one embodiment, the second code value refers to the value of bit 0 of the code.
[0078] According to the above-described embodiment, even if the subcode areas have the same distribution, the codes may have different code values. Figure 6 In the embodiment of FIG. 6 , because the above-mentioned “single positioning method” is used, code 601 has a code value of 01100. However, because the above-mentioned “difference positioning method” is used, code 603 has a code value of 00100. Therefore, the subcode areas of codes 601 and 603 have the same distribution, but codes 601 and 603 have different code values.
[0079] exist Figure 5 and Figure 6 In the embodiment, only a single row of code area is provided in the code. The "single row" mentioned here may refer to an area formed by two parallel lines located at the top and bottom of the positioning area, but is not limited thereto. For example, Figure 7 The embodiments may represent Figure 5 and Figure 6 In the image of the code shown, a "single row" is a region formed by two parallel lines PL_1 and PL_2 located at the top and bottom of the code 700, respectively. A "single row" can also be defined by other methods. For example, a "single row" refers to a region formed by two parallel lines having a predetermined distance.
[0080] In another embodiment, multiple rows of code regions may be provided in the code. Figure 8In an embodiment, the code regions CR_a1, CR_a2, CR_a3 of the code 800 are located in the first row, and the code regions CR_b1, CR_b2, CR_b3 are located in the second row. In an embodiment, the code regions CR_b1, CR_b2, CR_b3 are located in the second row formed based on the positioning region CR_b. However, the code 800 may have only one positioning region instead of multiple positioning regions.
[0081] exist Figure 8 In the embodiment of Figure 5 and Figure 6 The image of the code depicted first locates the code according to the location area LR_a in the first row or the location area LR_b in the second row. Then the code areas CR_a1, CR_a2, CR_a3 in the first row and the code areas CR_b1, CR_b2, CR_b3 in the second row with the same order are combined into a single code area. Specifically, Figure 8 The code areas CR_a1, CR_a2, and CR_a3 in represent the code value 110. Figure 8 The code regions CR_b1, CR_b2, and CR_b3 in also represent the code value 110. However, during the decoding process of the code 800, only one set of code values 110 (i.e., the first code value mentioned above) is obtained. The code disclosed in the present invention may also include code regions located in more than two rows, such as Figure 8 shown.
[0082] In addition, Figure 8 In an embodiment, the code regions CR_a1, CR_a2, CR_a3, CR_b1, CR_b2, CR_b3 are distributed along a first direction D_a and a second direction D_b of the positioning region. The first direction D_a is opposite to the second direction D_b. In such an embodiment, during the decoding process of the code, the code is decoded along the first direction D_a and the second direction D_b.
[0083] As described above, code 800 includes a plurality of adjacent positioning regions, such as positioning regions LR_a and LR_b. In such an embodiment, the adjacent positioning regions form a pattern for positioning the code regions. Note that this can also be applied to the case of a single row of code regions, such as Figure 5 , Figure 6 and Figure 7 Examples, but not limited to Figure 8 The embodiment shown.
[0084] Figure 5-Figure 8 The area of the positioning area and the code area shown can be designed to be very small, so Figure 5-Figure 8 The code shown may be invisible. Figure 5-Figure 8The positioning area and the code area shown can also be printed in other invisible ways. For example, the positioning area and the code area can be printed by infrared painting (IR painting). In such an example, the light source included in the optical decoding device 100 can be an IR light source.
[0085] As mentioned above, the code or color code disclosed in the above embodiments can be provided as a code block 211 on the surface of the cigarette 209. Figure 2 In the embodiment, only one code block is provided on the surface of the cigarette 209. However, the code block can be provided on the surface of the cigarette 209 in other ways. Fig. 9 FIG. 1 is a schematic diagram of a cigarette having multiple code blocks according to an embodiment of the present invention. Fig. 9 As shown, the cigarette 209 includes a plurality of code blocks 211_1, 211_2, 211_3 and 211_4 repeatedly arranged on its surface. In this way, the decoding device 105 can more easily read the correct code.
[0086] According to the above embodiments, the electronic cigarette lighter can automatically heat the cigarette appropriately without manual setting. In addition, the present invention further discloses an optical decoding device with a decoding device and capable of saving power consumption, and also discloses an invisible code and a color code that can be set on a curved surface. Therefore, the problems of the prior art can be improved.
[0087] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An optical decoding device, characterized in that: include: An image sensor, configured to sense a first sensing image and a second sensing image; A processing circuit for determining a relative movement between the optical decoding device and the object according to the first sensing image; as well as A decoding device, for decoding the second sensing image in a first mode to generate a decoding result, and not decoding the second sensing image in a second mode; The decoding device switches between the first mode and the second mode according to the relative movement.
2. The optical decoding device according to claim 1, characterized in that: The processing circuit controls the optical decoding device to switch between a third mode and a fourth mode according to the relative movement, wherein the power consumption of the optical decoding device in the fourth mode is lower than the power consumption of the optical decoding device in the third mode; The processing circuit generates a control signal according to whether the optical decoding device operates in the third mode or the fourth mode, so as to control the decoding device to enter the first mode or the second mode.
3. The optical decoding device according to claim 1, characterized in that: The optical decoding device is applied to a cigarette lighter with a heating device, wherein the heating device does not provide heat energy in the second mode, and the heating device provides the heat energy according to the decoding result in the first mode.
4. The optical decoding device according to claim 1, characterized in that: wherein the second sensing image comprises an image of a barcode, the barcode comprises a first code bar and a second code bar, wherein the first code bar and the second code bar represent different code values; wherein the barcode has a first spacing between the first code bar and the next code of the first code bar; The barcode has a second spacing between the second code bar and the next code of the second code bar; The sum of the first width of the first code bar and the first spacing is equal to the sum of the second width of the second code bar and the second spacing.
5. The optical decoding device according to claim 1, characterized in that: wherein the second sensing image comprises an image of a barcode, the barcode comprises a first code bar and a second code bar, wherein the first code bar and the second code bar represent different code values; wherein the barcode has a first spacing between the first code bar and the next code of the first code bar; The barcode has a second spacing between the second code bar and the next code of the second code bar; wherein a first width of the first code bar is different from a second width of the second code bar; The first spacing has the same width as the second spacing.
6. The optical decoding device according to claim 1, characterized in that: wherein the second sensing image comprises an image of a code, the code comprises a first code bar and a second code bar, wherein the first code bar and the second code bar represent different code values; wherein the code has a first spacing between the first code bar and the next code of the first code bar; wherein the code has a second spacing between the second code bar and the next code of the second code bar; Wherein, the first width of the first code bar is the same as the second width of the second code bar; The first spacing and the second spacing have different widths.
7. The optical decoding device according to claim 1, characterized in that: wherein the second sensing image comprises an image of a code, the code comprises a first code bar and a second code bar, wherein the first code bar and the second code bar represent different code values; Wherein, the first code bar or the second code bar includes a plurality of discontinuous sub-code bars; The multiple subcode bars are distributed along a direction perpendicular to the decoding direction of the barcode.
8. An optical decoding device, characterized in that: include: An image sensor, used for sensing a first sensing image and a second sensing image, wherein the second sensing image includes an image of a color code; A processing circuit for determining a relative movement between the optical decoding device and the object according to the first sensing image; as well as A decoding device, for decoding the second sensing image in a first mode to generate a decoding result, and not decoding the second sensing image in a second mode; wherein the decoding device switches between the first mode and the second mode according to the relative movement; The color code includes: a positioning area having a first color; code regions, wherein each of the code regions comprises a first sub-code region and a second sub-code region; wherein, in each of the code regions, at least one of the first sub-code region and the second sub-code region has a second color; The code value of each code region is determined by which of the first sub-code region and the second sub-code region has the second color.
9. The optical decoding device according to claim 8, characterized in that: One of the first subcode region and the second subcode region has the second color, and the other of the first subcode region and the second subcode region has a color different from the second color.
10. The optical decoding device according to claim 9, characterized in that: The first subcode area not having the second color and the second subcode area not having the second color in the different code areas are different from each other. different.
11. The optical decoding device according to claim 8, characterized in that: in, The first subcode area and the second subcode area are determined according to the position or shape of the positioning area; wherein the positioning area and the code area are distributed along a first side, and the first subcode area and the second subcode area in a single code area are distributed along a second side perpendicular to the first side; and wherein the second side is shorter than the first side.
12. The optical decoding device according to claim 8, characterized in that: The first color and the second color are the same color.
13. The optical decoding device according to claim 8, characterized in that: The decoding direction of the color code is from the positioning area to the code area.
14. An optical decoding device, characterized in that: include: An image sensor for sensing a first sensing image and a second sensing image, wherein the second sensing image includes an image of a code; A processing circuit for determining a relative movement between the optical decoding device and the object according to the first sensing image; as well as A decoding device, for decoding the second sensing image in a first mode to generate a decoding result, and not decoding the second sensing image in a second mode; wherein the decoding device switches between the first mode and the second mode according to the relative movement; Among them, the code includes: a positioning area for locating the code; and The code regions each include a sub-code region representing a first code value, wherein the first code value of each code region is determined according to a position of the sub-code region in the code region.
15. The optical decoding device according to claim 14, characterized in that: The positioning area represents a second code value, and the second code value is determined according to the shape or color of the positioning area.
16. The optical decoding device according to claim 14, characterized in that: If the subcode region of a first code region in the code region is located in an upper region of the first code region, the first code value of the first code region is a first value, and if the subcode region of a second code region in the code region is located in a lower region of the second code region, the first code value of the second code region is a second value; Wherein, the positioning area is located between the upper area and the lower area.
17. The optical decoding device according to claim 14, characterized in that: The first code value consists of two It is determined by the positional relationship between the sub-code area and the adjacent code area.
18. The optical decoding device according to claim 14, characterized in that: in, The code includes the positioning area and the code area in the first row and the positioning area and the code area in the second row; In the decoding process of the code, the code area is first located according to the positioning area of the first row or the second row, and then the code area in the first row and the code area in the second row with the same order are merged into a single code area, and the first code value is determined by the single code area.
19. The optical decoding device according to claim 18, characterized in that: in, The code area is distributed along a first direction and a second direction of the positioning area, and the first direction is opposite to the second direction; In the decoding process of the code area, the code area is decoded along the first direction and the second direction.
20. The optical decoding device according to claim 14, characterized in that: The code area includes a plurality of positioning areas adjacent to each other, wherein the positioning areas adjacent to each other form a pattern for positioning the code area.