Date generation device, control method, and program
The date generation device and method address the inflexibility of existing date attachment methods by dynamically generating date strings based on regional, product, and company-specific rules, ensuring accurate and compliant date labeling.
Patent Information
- Application Number
- JP2019153750
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2019-08-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-08-26
AI Technical Summary
Existing date attachment methods are inflexible and do not account for variations in date formats and requirements based on region, product type, or company specifications.
A date generation device and method that acquires date information and generation rules to dynamically generate appropriate date strings for products, considering factors such as region, product type, and company requirements, using a combination of hardware and software components.
Enables flexible and accurate attachment of date strings that comply with specific regional, product, and company standards, enhancing compliance and reducing errors in date labeling.
Smart Images

Figure 0007540817000007 
Figure 0007540817000001 
Figure 0007540817000008
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for dating products. [Background technology]
[0002] Products are often marked with dates indicating the date of manufacture, expiration date, etc. Therefore, technology has been developed to mark products with dates indicating the date of manufacture, etc. For example, Patent Document 1 discloses a technology that calculates the expiration date of a product by adding the product's expiration date to the product's date of manufacture, and issues a label indicating the expiration date. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2011-011525 A Summary of the Invention [Problem to be solved by the invention]
[0004] The inventors have found that the type of date to be added to a product (the type and format of the date) may vary depending on the case. In this regard, in Patent Document 1, the method of determining the date to be added to the label is fixed.
[0005] The present invention has been made in view of the above-mentioned problems, and one of the objects thereof is to provide a technique for appropriately determining a date to be affixed to a product. [Means for solving the problem]
[0006] The date generation device of the present invention has 1) an acquisition unit that acquires date information regarding a target product and rule conditions that indicate conditions regarding generation rules that generate a generated string to be attached to the target product from the date information, and 2) a generation unit that generates a generated string for the target product from the acquired date information using a generation rule that corresponds to the acquired rule condition. The date information and generated character string indicate either the manufacturing date or the expiration date of the target product.
[0007] The control method of the present invention is executed by a computer and includes: 1) an acquisition step of acquiring date information related to a target product and a rule condition indicating a condition related to a generation rule for generating a generated string to be attached to the target product from the date information, and 2) a generation step of generating a generated string for the target product from the acquired date information using a generation rule corresponding to the acquired rule condition. The date information and generated character string indicate either the manufacturing date or the expiration date of the target product. Effect of the Invention
[0008] According to the present invention, a technique for appropriately determining a date to be affixed to an item is provided. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram for explaining an overview of a date generating device according to an embodiment of the present invention. [Diagram 2] 2 is a diagram illustrating an example of the functional configuration of a date generation device according to the first embodiment. [Diagram 3] FIG. 1 is a diagram illustrating a computer for realizing a date generating device. [Figure 4] 4 is a flowchart illustrating a process flow executed by the date generation device of the first embodiment. [Diagram 5] FIG. 1 is a diagram illustrating an example of a usage environment of a date generation device. [Figure 6] FIG. 11 is a diagram illustrating an example of a configuration of rule information in a table format. [Figure 7] FIG. 11 is a diagram illustrating an example of a configuration of rule information in a table format. [Figure 8] FIG. 11 is a diagram illustrating an example of a configuration of rule information in a table format. [Figure 9] FIG. 11 is a diagram illustrating an example of rule information. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the embodiments of the present invention will be described with reference to the drawings. In all drawings, the same components are denoted by the same reference numerals, and the description will be omitted as appropriate. In each block diagram, unless otherwise specified, each block represents a functional configuration, not a hardware configuration.
[0011] [Embodiment 1] <Summary> Fig. 1 is a diagram for explaining an overview of a date generating device 2000 according to this embodiment. Note that Fig. 1 is an example for making it easier to understand the date generating device 2000, and the functions of the date generating device 2000 are not limited to those shown in Fig. 1.
[0012] The date generating device 2000 is used in situations where dates related to a product, such as the date of manufacture or expiration date, are attached to the product. Various methods can be used to attach a date to the product, such as attaching a label with the date printed on it to the exterior of the product, or printing the date directly on the exterior of the product.
[0013] Here, there may be various variations in the date to be attached to a product. For example, assume that a product was manufactured at 13:00 on August 1, 2019. When attaching a manufacturing date to this product, various ways of expressing the manufacturing date may be adopted, such as "2019 / 08 / 01 13:00", "2019 / 08 / 01", or "08 / 301, 2019". Also, in addition to the manufacturing date, information indicating the product lifespan may be provided, and an expiration date calculated based on this may be attached to the product.
[0014] Therefore, the date generating device 2000 generates a character string representing the date to be attached to the product based on a predetermined rule. To this end, the date generating device 2000 first acquires date information 20 for the target product 10, which is the product to which a date is to be attached. The date information 20 is information representing a date related to the target product 10. For example, the date information 20 represents the manufacturing date or expiration date of the target product 10. Note that the expiration date represents the date by which the use or consumption of the target product 10 should be completed. Therefore, the concept of an expiration date also includes a use-by date, a best-before date, and the like.
[0015] The date generating device 2000 also acquires a generation rule 40. The generation rule 40 is a generation rule for generating a generated character string 30 from the date information 20. The generated character string 30 is a character string of a date to be added to the target product 10. For example, the generation rule 40 may be <yyyy mm dd>"The expiration date is calculated from the manufacturing date and product lifespan, and the expiration date is <yyyy mm>Here, YYYY is a four-letter year, MM is a two-letter month, and DD is a two-letter day. Further details on generation rule 40 will be given later.
[0016] In the example of Fig. 1, the date string attached to the target product 10 is changed. For example, when the target product 10 is exported, the date string attached to the target product 10 may be changed if the requirements for attaching a manufacturing date or the like to a product differ between the exporting country and the importing country.
[0017] To this end, the date generating device 2000 acquires the first date string 12 as date information 20, and generates a generated string 30 from the date information 20 using a generation rule 40. The generated string 30 generated by the date generating device 2000 is then attached to the target product 10 as a second date string 14.
[0018] The method of using the date generating device 2000 is not necessarily limited to changing the date character string attached to the target product 10. For example, the target product 10 may not have a date character string attached before using the date generating device 2000. Various methods of using the date generating device 2000 will be described later.
[0019] This embodiment will be described in further detail below.
[0020] <Example of functional configuration> 2 is a diagram illustrating an example of the functional configuration of a date generating device 2000 according to the first embodiment. The date generating device 2000 includes an acquisition unit 2020 and a generation unit 2040. The acquisition unit 2020 acquires date information 20 for a target product 10. The acquisition unit 2020 also acquires a generation rule 40 for converting the date information 20 into a generated character string 30. The generation unit 2040 generates the generated character string 30 from the date information 20 using the generation rule 40.
[0021] <Example of Hardware Configuration of Date Generation Device 2000> Each functional component of the date generation device 2000 may be realized by hardware that realizes each functional component (e.g., a hardwired electronic circuit, etc.), or may be realized by a combination of hardware and software (e.g., a combination of an electronic circuit and a program that controls it, etc.). Below, a further explanation will be given of the case where each functional component of the date generation device 2000 is realized by a combination of hardware and software.
[0022] 3 is a diagram illustrating a computer 1000 for realizing the date generation device 2000. The computer 1000 is any computer. For example, the computer 1000 is a portable computer such as a smartphone or a tablet terminal. Alternatively, the computer 1000 may be a stationary computer such as a PC (Personal Computer) or a server machine.
[0023] The computer 1000 may be a dedicated computer designed to realize the date generation device 2000, or may be a general-purpose computer. In the latter case, for example, the functions of the date generation device 2000 are realized in the computer 1000 by installing a specific application in the computer 1000. The application is an application configured by a program for realizing the functional components of the date generation device 2000.
[0024] The computer 1000 has a bus 1020, a processor 1040, a memory 1060, a storage device 1080, an input / output interface 1100, and a network interface 1120. The bus 1020 is a data transmission path for the processor 1040, the memory 1060, the storage device 1080, the input / output interface 1100, and the network interface 1120 to transmit and receive data to and from each other. However, the method of connecting the processor 1040 and the like to each other is not limited to bus connection.
[0025] The processor 1040 is one of various processors such as a central processing unit (CPU), a graphics processing unit (GPU), or a field-programmable gate array (FPGA). The memory 1060 is a main storage device realized using a random access memory (RAM) or the like. The storage device 1080 is an auxiliary storage device realized using a hard disk, a solid state drive (SSD), a memory card, or a read only memory (ROM) or the like.
[0026] The input / output interface 1100 is an interface for connecting the computer 1000 to an input / output device. For example, the input / output interface 1100 is connected to an input device such as a keyboard and an output device such as a display device.
[0027] The network interface 1120 is an interface for connecting the computer 1000 to a communication network. This communication network is, for example, a LAN (Local Area Network) or a WAN (Wide Area Network). For example, an analytical device and a user terminal are connected to each other via the network interface 1120 so that they can communicate with each other.
[0028] The storage device 1080 stores program modules (program modules that realize the above-mentioned applications) that realize the various functional components of the date generation device 2000. The processor 1040 reads these program modules into the memory 1060 and executes them to realize the functions corresponding to the program modules.
[0029] <Processing flow> 4 is a flowchart illustrating a process flow executed by the date generating device 2000 of the first embodiment. The acquiring unit 2020 acquires the generation rule 40 (S102). The acquiring unit 2020 acquires the date information 20 for the target product 10 (S104). The generating unit 2040 generates a generated character string 30 from the date information 20 using the generation rule 40 (S106). The generating unit 2040 outputs the generated generated character string 30 (S108).
[0030] The flow of the process performed by the date generation device 2000 is not limited to that shown in Fig. 4. For example, when the information to be acquired as the date information 20 can be specified without referring to the generation rule 40, the date information 20 may be acquired in parallel with the acquisition of the generation rule 40, or may be acquired before the acquisition of the generation rule 40.
[0031] <Example of Usage Environment of Date Generation Device 2000> For ease of understanding of the following description, a more specific example of the usage environment of the date generation device 2000 will be given. However, the usage environment of the date generation device 2000 is not limited to the one described here.
[0032] 5 is a diagram illustrating an example of a usage environment of the date generation device 2000. In this example, the date generation device 2000 is realized as a server device 110. A user uses the server device 110 (i.e., the date generation device 2000) by accessing the server device 110 using a user terminal 100. The user terminal 100 is any terminal used by a user, and is, for example, a mobile terminal such as a tablet terminal or a smartphone.
[0033] For example, the date generating device 2000 is used in the repacking of the target product 10. The repacking work here refers to a process in which a company that purchases the target product 10 attaches a label to the target product 10 or changes the exterior of the target product 10 for sale (retail or wholesale). Such a repacking work may include a process of changing the type or format of the date to be affixed to the target product 10.
[0034] For example, the type and format of dates that should be attached to products may differ depending on the region, such as a country or state. For example, in Country A, <yyyy mm dd>In Country B, the date of manufacture is required to be in the format<YYYY.MM> In Country C, the expiration date is required to be in the format<MM / DD, YYYY> For example, a country may require that the date be added in the format "a.k.a. ". Therefore, when exporting the target product 10, the date string added to the target product 10 must be changed in accordance with the requirements of the export destination country.
[0035] Therefore, for example, in each country into which the target product 10 is imported, a repacking operation is performed using the date generation device 2000 at an appropriate time (for example, before the target product 10 is handed over to a distributor in that country). For example, when the target product 10 is exported from country A to country B, a worker performing the repacking operation in country B changes the date character string attached to the target product 10 to "the date of manufacture" and <yyyy mm dd>From "expressing the date of manufacture in<YYYY.MM> The method is changed to the format "expressed as ". The following is a specific example of how to do this.
[0036] First, a worker captures an image of the first date character string 12 attached to the target product 10 with a camera provided in the user terminal 100. As a result, a captured image (hereinafter, a date image) including the first date character string 12 attached to the target product 10 is generated. The user terminal 100 transmits this date image to the server device 110. The server device 110 performs character recognition processing on the received date image. As a result, date information 20 about the target product 10 is obtained.
[0037] Furthermore, the user terminal 100 transmits information identifying the region called Country B (hereinafter, region identification information) to the server device 110. Here, in this example, the generation rule 40 is stored in a storage device in association with the region identification information. Hereinafter, the storage device in which the generation rule 40 is stored is referred to as a generation rule storage device 80. The server device 110 acquires the generation rule 40 stored in association with the received region identification information (i.e., the generation rule 40 for Country B), and generates a generated character string 30 from the date information 20 using the generation rule 40. The server device 110 transmits the generated character string 30 to the user terminal 100.
[0038] The worker views the generated string 30 received by the user terminal 100 using the display device of the user terminal 100. In this way, the worker can understand that the string (second date string 14) to be newly attached to the target product 10 is the string represented by the generated string 30. The worker then sets the generated string 30 in a printer for printing strings on labels, and prints the string on a label to be affixed to the target product 10. The worker then affixes the label to the target product 10. In this way, a date string (generated string 30) that meets the requirements in country B can be attached to the target product 10 as the second date string 14. Note that, as will be described later, the generated string 30 may be automatically set in the printer.
[0039] The date generating device 2000 may also be used in a confirmation task to check whether the second date character string 14 attached to the target product 10 is correct. In this case, a worker first identifies the second date character string 14 without using the date generating device 2000. For example, the worker visually checks the first date character string 12 attached to the target product 10, and identifies the second date character string 14 by referring to a method of converting the first date character string 12 to the second date character string 14 written in a work manual or the like.
[0040] The worker adds the first date character string 12 thus identified to the target product 10. After that, the worker uses the date generating device 2000 to check whether the second date character string 14 added to the target product 10 is correct.
[0041] First, the worker uses the user terminal 100 to generate a date image of the first date character string 12 that was attached to the target product 10 before the repacking work. The worker also uses the user terminal 100 to generate a date image of the second date character string 14 that is attached to the target product 10 after the repacking work. The user terminal 100 transmits these two date images to the date generation device 2000. As described above, the area identification information is also transmitted from the user terminal 100 to the date generation device 2000.
[0042] The date generation device 2000 acquires a generation rule 40 corresponding to the received area identification information. The date generation device 2000 performs character recognition processing on the date image of the first date string 12 to identify the first date string 12 (acquires date information 20). The date generation device 2000 uses the generation rule 40 to generate a generated string 30 from the first date string 12. The date generation device 2000 performs character recognition processing on the date image of the second date string 14 to identify the second date string 14 and judges whether the identified second date string 14 and the generated string 30 match. The date generation device 2000 transmits the judgment result to the user terminal 100. A worker can check whether the second date string 14 attached to the target product 10 is correct by referring to the judgment result using the user terminal 100.
[0043] For example, the confirmation process described here is performed on the first one of the target products 10 included in a lot. Then, once it is confirmed using the date generating device 2000 that the correct second date character string 14 has been added to the first one, the same second date character string 14 is added to the remaining target products 10. In this way, by performing the confirmation process on the first target product 10 and then adding the same second date character string 14 to the remaining target products 10, it is possible to prevent the occurrence of a problem in which an incorrect second date character string 14 is added to many target products 10.
[0044] As described above, the usage environment of the date generation device 2000 is not limited to that described here. For example, the date generation device 2000 may be realized as a user terminal 100, not as a server device 110. In this case, each process executed by the server device 110 in the above-mentioned example is realized by the user terminal 100.
[0045] <Getting generation rule 40: S102> The acquiring unit 2020 acquires the generation rule 40 (S102). For example, the generation rule 40 is stored in advance in a storage device (the above-mentioned generation rule storage device 80) accessible from the date generation device 2000. The acquiring unit 2020 acquires the generation rule 40 by accessing the generation rule storage device 80.
[0046] Here, there may be prepared a plurality of generation rules 40. In this case, the acquiring unit 2020 acquires one generation rule 40 to be acquired from the plurality of generation rules 40 stored in the generation rule storage device 80.
[0047] There are various methods for identifying the generation rule 40 to be acquired by the acquisition unit 2020. For example, the acquisition unit 2020 accepts a user operation that specifies the generation rule 40 to be acquired. In this case, the acquisition unit 2020 acquires the generation rule 40 specified by the user operation.
[0048] The method of identifying the generation rule 40 to be acquired is not limited to a method based on a user operation. For example, the acquisition unit 2020 acquires a condition (hereinafter, a rule condition) related to the generation rule 40 to be acquired before acquiring the generation rule 40. In this case, the acquisition unit 2020 acquires the generation rule 40 corresponding to the rule condition. That is, the generation rule 40 to be acquired is identified by the rule condition.
[0049] In this way, by generating the generated string 30 using the generation rule 40 corresponding to the acquired condition, it is possible to generate an appropriate generated string 30 according to the situation. In other words, it becomes possible to appropriately determine the date string to be attached to the target product 10 according to the situation, and to attach the appropriate date string to the target product 10.
[0050] Various rule conditions can be used. Examples of rule conditions are given below.
[0051] << Cases where region is a rule condition >> As described above, the way of expressing the date to be attached to a product may differ depending on the region, such as a country or a state. In such a case, each generation rule 40 is stored in the generation rule storage device 80 in association with region identification information that identifies the region in which the generation rule 40 should be used. For example, the region identification information indicates the name of the region (such as a country name, a region name, a state name, or a prefecture name) or an identification number assigned to the region. Furthermore, the region identification information is not limited to information that identifies an individual region, and may be information that identifies a group of regions (such as a group of multiple countries or states). In other words, a group of regions may be associated with a generation rule 40 for generating a generated character string 30 to be attached to the region of the group. Hereinafter, information that associates the generation rule 40 with the region identification information is referred to as rule information 50.
[0052] 6 is a diagram illustrating an example of the configuration of rule information 50 in table format. The rule information 50 has two columns: area identification information 52 and generation rule 54. The area identification information 52 indicates the area identification information described above. The generation rule 54 indicates the generation rule 40.
[0053] When the generation rule 40 is defined for each region, the acquisition unit 2020 first acquires region identification information as a rule condition. The region identification information to be acquired is, for example, identification information of the region where the target product 10 is sold, or the identification of the group to which the region belongs. The acquisition unit 2020 further acquires the generation rule 40 by searching the generation rule storage device 80 using the acquired region identification information. Specifically, the acquisition unit 2020 acquires the generation rule 40 indicated in the rule information 70 from a record in which the acquired region identification information is indicated in the region identification information 52. In this way, the acquisition unit 2020 acquires the generation rule 40 corresponding to the acquired region identification information (i.e., the generation rule 40 corresponding to the acquired rule condition).
[0054] There are various methods for the acquiring unit 2020 to acquire the area identification information. For example, the acquiring unit 2020 acquires the area identification information designated by a user operation. The user operation to designate the area identification information is performed on the user terminal 100 described above, for example.
[0055] Alternatively, for example, the area identification information may be associated with the user's identification information and stored in advance in a storage device. The area identification information associated with the user's identification information is, for example, the identification information of the area where the user works. The acquisition unit 2020 acquires the user's identification information and acquires the area identification information associated with the acquired user's identification information. However, the area identification information corresponding to the user's identification information may be acquired using the user terminal 100, and the acquired area identification information may be transmitted from the user terminal 100 to the server device 110. Note that various existing technologies can be used to acquire the user's identification information.
[0056] Alternatively, for example, the acquisition unit 2020 may acquire area identification information specified by location information such as GPS (Global Positioning System) coordinates. For example, this location information is location information obtained from a GPS sensor of the user terminal 100. Note that the process of converting location information such as GPS coordinates into area identification information may be performed by the date generation device 2000, or may be performed by a device other than the date generation device 2000. Also, existing technology can be used for the technology to identify a region such as a country or a state from GPS coordinates.
[0057] << Cases where products are rule conditions >> The way dates are indicated on products may vary from product to product. For example, for product A, <yyyy mm dd>For product B, the manufacturing date must be in the format<YYYY.MM> For product C, the expiration date must be in the format<MM.DD, YYYY> It can be assumed that the requirement is that the information be attached in the following format.
[0058] In such a case, each generation rule 40 is stored in the generation rule storage device 80 in association with product identification information that identifies the product for which that generation rule 40 should be used. For example, the product identification information indicates the name of the product or an identification number assigned to the product. Furthermore, the product identification information is not limited to information that identifies an individual product, and may be information that identifies a group of products (for example, milk, meat, or fish). In other words, a group of products may be associated with a generation rule 40 for generating a generation string 30 to be applied to products in that group. Hereinafter, information that associates the generation rules 40 with product identification information will be referred to as rule information 60.
[0059] 7 is a diagram illustrating an example of the configuration of rule information 60 in table format. The rule information 60 has two columns: product identification information 62 and generation rules 64. The product identification information 62 indicates the above-mentioned product identification information. The generation rules 64 indicate the generation rules 40.
[0060] When the generation rule 40 is defined for each product, the acquisition unit 2020 first acquires product identification information as a rule condition. The product identification information to be acquired is, for example, product identification information that identifies the target product 10, or product identification information that identifies a group of products to which the target product 10 belongs. The acquisition unit 2020 further acquires the generation rule 40 by searching the generation rule storage device 80 using the acquired product identification information. Specifically, the acquisition unit 2020 acquires the generation rule 40 indicated in the generation rule 64 from a record in which the acquired product identification information is indicated in the product identification information 62. In this way, the acquisition unit 2020 acquires the generation rule 40 corresponding to the acquired product identification information (i.e., the generation rule 40 corresponding to the acquired rule condition).
[0061] There are various methods for the acquisition unit 2020 to acquire the product identification information. For example, the acquisition unit 2020 acquires the product identification information designated by a user operation. The user operation to designate the product identification information is performed on the user terminal 100 described above, for example.
[0062] Alternatively, for example, the acquisition unit 2020 may acquire the product identification information of the target product 10 by a method similar to the method by which a POS (Point of Sales) terminal acquires product identification information. Specifically, the acquisition unit 2020 may acquire the product identification information of the target product 10 by reading a barcode or the like attached to the target product 10, or by analyzing an image obtained by capturing an image of the target product 10 with a camera and acquiring identification information of a product matching the target product 10 from a product database (a database in which various information related to products is stored), thereby acquiring the product identification information of the target product 10. Specific techniques for realizing these methods can be existing techniques. Note that the identification information of the group to which the target product 10 belongs can be acquired, for example, from the above-mentioned product database.
[0063] << Cases where companies are rule conditions >> The way in which dates are indicated on products may differ depending on the company that manufactured the product and the company that sells the product. For example, at the stage of manufacturing by company A, <yyyy mm dd>On the other hand, when the product is sold by Company B, the date string is added in the format of "Manufacture date".<YYYY.MM> "The expiration date must be in the form of a "date" when the product is sold by Company C.<MM / DD, YYYY> It can be assumed that the requirement is that the information be attached in the following format.
[0064] In such a case, each generation rule 40 is stored in the generation rule storage device 80 in association with company identification information that identifies the company that uses that generation rule 40. For example, the company identification information indicates the name of the company or an identification number assigned to the company. Furthermore, the company identification information is not limited to information that identifies an individual company, and may be information that identifies a group of companies. In other words, a group of companies may be associated with a generation rule 40 for generating a generated string 30 to be attached to a product manufactured or sold by a company belonging to that group. Hereinafter, information that associates the generation rule 40 with the company identification information will be referred to as rule information 70.
[0065] 8 is a diagram illustrating an example of the configuration of rule information 70 in table format. The rule information 70 has two columns: company identification information 72 and generation rule 74. The company identification information 72 indicates the company identification information described above. The generation rule 74 indicates the generation rule 40.
[0066] When the generation rule 40 is determined for each company, the acquisition unit 2020 first acquires company identification information as a rule condition. The company identification information to be acquired is, for example, company identification information identifying a company that manufactured the target product 10, company identification information identifying a company that sells the target product 10, or company identification information identifying a group to which these companies belong. Furthermore, the acquisition unit 2020 acquires the generation rule 40 by searching the generation rule storage device 80 using the acquired company identification information. Specifically, the acquisition unit 2020 acquires the generation rule 40 indicated in the generation rule 74 from a record in which the acquired company identification information is indicated in the company identification information 72. In this way, the acquisition unit 2020 acquires the generation rule 40 corresponding to the acquired company identification information (i.e., the generation rule 40 corresponding to the acquired rule condition).
[0067] There are various methods for the acquiring unit 2020 to acquire company identification information. For example, the acquiring unit 2020 acquires company identification information designated by a user operation. The user operation to designate the company identification information is performed on the user terminal 100 described above, for example.
[0068] Alternatively, for example, the company identification information may be associated with the user identification information and stored in advance in a storage device. The company identification information associated with the user identification information is, for example, the identification information of the company to which the user belongs. The method of acquiring the company identification information associated with the user identification information is the same as the method of acquiring the area identification information associated with the user identification information.
[0069] Alternatively, for example, the acquisition unit 2020 may identify a product corresponding to the target product 10 in the product database, and acquire company identification information associated with the product from the database. Methods for identifying a product corresponding to the target product 10 in the product database include a method of "searching the product database with product identification information of the target product 10 obtained by reading a barcode or the like attached to the target product 10" and a method of "analyzing an image obtained by capturing an image of the target product 10 with a camera, and identifying a product matching the target product 10 in the product database."
[0070] <<How to use multiple conditions>> The generation rule 40 may be associated with a combination of two or more of a plurality of conditions (such as the above-mentioned region identification information, product identification information, and company identification information). For example, the generation rule 40 is associated with a pair of region identification information and product identification information. In this way, the generation rule 40 can be set for each region and each product. For example, for product A sold in region X, <yyyy mm dd>For product A sold in region Y, use generation rule 40, which states that the manufacturing date should be <yyyy mm>For product B sold in region X, use generation rule 40, which states that the expiration date should be <yyyy mm dd>For product B sold in region Y, use generation rule 40, which states that the expiration date should be specified in the format<YYYY.MM> It is possible to use the generation rule 40, which states that "the name is added in the form of ".
[0071] 9 is a diagram illustrating an example of the rule information 120. The rule information 120 has three columns: area identification information 122, product identification information 124, and generation rule 126. With this configuration, the generation rule 126 is specified by a pair of the area identification information 122 and the product identification information 124.
[0072] When the generation rule 40 is associated with a plurality of conditions, the acquisition unit 2020 acquires a combination of the plurality of conditions as the rule condition. For example, when the generation rule 40 is associated with a pair of region identification information and product identification information, the acquisition unit 2020 acquires the pair of region identification information and product identification information as the rule condition, and acquires the generation rule 40 corresponding to the pair.
[0073] <Getting date information 20: S104> The acquisition unit 2020 acquires date information 20 for the target product 10 (S104). There are various methods for the acquisition unit 2020 to acquire the date information 20. For example, the acquisition unit 2020 recognizes a first date string 12, which is a date string already attached to the target product 10, by character recognition processing, and acquires the recognized date string as the date information 20. More specifically, the acquisition unit 2020 acquires a date image including the first date string 12, and performs character recognition processing on the date image. Then, the acquisition unit 2020 acquires the date string recognized by this character recognition processing as the date information 20.
[0074] The first date string 12 indicates the manufacturing date or expiration date of the target product 10. Methods for adding a date to the target product 10 include attaching a label with a date string printed on it to the target product 10, or printing the date string on the exterior of the target product 10. Therefore, the date image is an image obtained by capturing an image of the label or exterior with the date string printed on it with a camera.
[0075] Here, the character string included in the date image acquired by the acquisition unit 2020 may be only the first date string 12, or may include a character string other than the first date string 12. In the former case, the acquisition unit 2020 treats the character string recognized from the date image as the first date string 12. In the latter case, the acquisition unit 2020 identifies an image area representing the first date string 12 from within the date image.
[0076] Various techniques can be used to identify a portion of a captured image that represents a desired character string. For example, information defining a range on a date image in which the first date character string should be included is stored in advance in a storage device accessible from the acquisition unit 2020. In this case, the acquisition unit 2020 acquires the first date character string 12 by performing character recognition processing on only the range defined by the above information within the image area on the acquired date image.
[0077] Alternatively, for example, a mark whose positional relationship with the first date string 12 is known may be printed on the exterior or label of the target product 10 together with the first date string 12. Any mark, such as a character string or a figure, can be used as the mark. The acquisition unit 2020 detects the predetermined mark by performing image analysis on the acquired date image. Then, the acquisition unit 2020 acquires the first date string 12 by performing a character string recognition process on a character string that is in a predetermined positional relationship with the predetermined mark.
[0078] For example, the string "Manufacturing date: August 1, 2019" is printed immediately before the first date string 12. In this case, the acquisition unit 2020 performs character recognition processing on the date image to extract a series of character strings including the string "Manufacturing date:", and obtains the first date string 12 by removing the string "Manufacturing date:" from the extracted character strings. Note that the predetermined mark and information defining the positional relationship between the mark and the first date string 12 are stored in advance in a storage device accessible from the acquisition unit 2020.
[0079] The date image is generated, for example, by capturing an image of the first date character string 12 with a camera provided in the user terminal 100. However, the camera used to generate the date image is arbitrary and is not limited to the camera provided in the user terminal 100.
[0080] There are various methods for the acquisition unit 2020 to acquire a date image. For example, assume that the date generation device 2000 is realized as the server device 110 described above. In this case, the acquisition unit 2020 uses an image transmitted from the user terminal 100 to the server device 110 as a date image. For example, the server device 110 provides the user terminal 100 with an interface (such as a Web page) for transmitting the date image to the server device 110. The user terminal 100 transmits the date image to the server device 110 using this interface. The acquisition unit 2020 acquires the image received via this interface as a date image.
[0081] The interface for transmitting the date image to the server device 110 may be provided in advance in the user terminal 100. For example, a specific application for communicating with the server device 110 is installed in the user terminal 100 in advance. The interface for transmitting the date image to the server device 110 is included in this application. The acquisition unit 2020 acquires the image transmitted from the user terminal 100 to the server device 110 using this interface as the date image.
[0082] Also, it is assumed that the date generation device 2000 is realized as the user terminal 100. In this case, the acquisition unit 2020 accepts a user operation for specifying a date image. Then, the image specified by the user operation is used as the date image.
[0083] The first date string 12 may be attached not to the target product 10 but to a set (lot) of a plurality of target products 10 as a processing unit. Generally, products included in the same lot have a common manufacturing date and expiration date. Therefore, instead of attaching the first date string 12 to each target product 10, it is possible to attach the first date string 12 to the lot. Methods for attaching the first date string 12 to the lot include, for example, printing the first date string 12 on a label attached to the exterior of the lot, or printing the first date string 12 on the exterior of the lot. When the first date string 12 is attached to the lot, the acquisition unit 2020 recognizes the first date string 12 attached to the lot in a manner similar to the method for recognizing the first date string 12 attached to the target product 10.
[0084] The method of acquiring the date information 20 is not limited to the method of recognizing the first date character string 12 by image analysis. For example, the target product 10 may be provided with a code (such as a barcode or QR code (registered trademark)) in which the date information 20 is encoded. In this case, the acquisition unit 2020 acquires the date information 20 by reading the code. For example, the code is read by the user terminal 100. When the date generation device 2000 is realized as the server device 110, the user terminal 100 transmits the date information 20 acquired by reading the code provided on the target product 10 to the server device 110. Note that existing technology can be used as the technology for acquiring encoded information by reading the code.
[0085] The code described here may also be attached to a lot including the target product 10, rather than to the target product 10. The method of attaching the code to the lot is similar to the method of attaching the first date character string 12 to the lot. And the method of acquiring the date information 20 from the code attached to the lot is similar to the method of acquiring the date information 20 from the code attached to the target product 10.
[0086] The date information 20 may be extractable from identification information (lot identification information) assigned to a lot. As described above, products included in the same lot generally have the same manufacturing date and expiration date. Therefore, the lot identification information may include information indicating the manufacturing date, expiration date, etc. of the products included in the lot according to a predetermined rule. Therefore, the acquisition unit 2020 acquires the lot identification information of the lot including the target product 10, and extracts the date information 20 from the lot identification information.
[0087] For example, assume that the lot identification information "L20190809" is assigned to a lot produced on August 9, 2019. In this case, the acquisition unit 2020 can acquire date information 20 indicating the manufacturing date of the target product 10 included in the lot to which the lot identification information is assigned by excluding the first character L from the lot identification information. Note that the rules for extracting the date information 20 from the lot identification information are stored in advance in a storage device accessible from the acquisition unit 2020.
[0088] The method of obtaining the date information 20 using the lot identification information is not limited to the method of extracting the date information 20 from the lot identification information. For example, information associating the lot identification information with the date information 20 for the target product 10 contained in the lot identification information is stored in advance in a storage device accessible by the acquisition unit 2020. In this case, the acquisition unit 2020 acquires the date information 20 associated with the acquired lot identification information from the storage device.
[0089] <Generation of generated string 30: S106> The generating unit 2040 generates the generated character string 30 from the date information 20 using the generation rule 40. The specific method for generating the generated character string 30 from the date information 20 is determined by the generation rule 40.
[0090] The generation rule 40 is a rule for generating a generated character string 30 from the date information 20. Here, the date character string to be added to the target product 10 can be specified by a combination of the type of information represented by the date and the format of the character string. The type of information represented by the date is, for example, the manufacturing date or the expiration date. As the format of the character string, various formats such as "YYYY / MM / DD", "YYYY / MM", "YYYY MM / DD", "MM / DD, YYYY", "YYYY year MM month DD day", or "YYYY year MM month" can be adopted.
[0091] Below, we will first explain the case where date information 20 represents a date as a character string. In this case, it is assumed that the type of information represented by date information 20 is the same as the type of information represented by generated character string 30 (for example, both represent the date of manufacture). In this case, generation rule 40 is information that specifies an algorithm for converting the format of a date (hereinafter, format conversion algorithm). According to the format conversion algorithm, a generated character string 30 is generated that represents one or more pieces of information of the year, month, and day included in date information 20 in a specified format.
[0092] For example, the generation rule 40 indicates a format conversion algorithm itself (i.e., a program that embodies the format conversion algorithm). In addition, for example, the generation rule 40 indicates information that specifies a format conversion algorithm to be used from among a plurality of format conversion algorithms prepared in advance.
[0093] Here, the format conversion algorithm can be specified by a combination of the format of the date string indicated by date information 20 and the format of the generated string 30. For example, generation rule 40 indicates the format of the generated string 30. The generation unit 2040 specifies the format of the generated string 30 from the acquired generation rule 40. The generation unit 2040 also specifies the format of the date indicated by date information 20. Then, the generation unit 2040 converts the date string indicated by date information 20 into generated string 30 using a format conversion algorithm corresponding to the specified combination of formats.
[0094] There are various methods for the generation unit 2040 to identify the format of the date indicated by the date information 20. For example, information indicating the format of the date indicated by the date information 20 is included in the date information 20. Alternatively, for example, the format of the date indicated by the date information 20 may be stored in advance in a storage device accessible by the generation unit 2040.
[0095] Assume that the type of information represented by the date indicated by date information 20 is different from the type of information represented by generated character string 30 (for example, one represents the production date and the other represents the expiration date). In this case, generation unit 2040 calculates the date to be represented in generated character string 30 from the date represented by date information 20, and generates generated character string 30 that represents the calculated date in a predetermined format. In this case, generation rule 40 indicates a calculation algorithm for calculating the date to be represented in generated character string 30 from the date represented by date information 20, and the format of the date represented in generated character string 30.
[0096] For example, suppose date information 20 represents a production date, and generated character string 30 represents an expiration date. In this case, the calculation algorithm is an algorithm that "adds the product's lifespan to the date represented by date information 20." On the other hand, suppose date information 20 represents an expiration date, and generated character string 30 represents a production date. In this case, the calculation algorithm is an algorithm that "subtracts the product's lifespan from the date represented by date information 20."
[0097] The generation unit 2040 uses a calculation algorithm indicated by the generation rules 40 to calculate the date to be expressed in the generated character string 30 from the date indicated by the date information 20. Furthermore, the generation unit 2040 generates, as the generated character string 30, a character string that expresses the calculated date in a format indicated by the generation rules 40.
[0098] Date information 20 may represent date information as data other than a character string. For example, date information 20 represents date information as date type data. Generally, date type data can be converted into a character string by specifying a format. In this case, if the type of information represented by the date indicated by date information 20 is the same as the type of information represented by generated character string 30, generation rule 40 indicates the format of the date represented by generated character string 30. Generation unit 2040 generates generated character string 30 by converting the date type data indicated by date information 20 into a character string in the format indicated by generation rule 40.
[0099] Also, assume that date information 20 indicates date-type data, and the type of information represented by the date indicated by date information 20 differs from the type of information represented by generated character string 30. In this case, generation rule 40 indicates a calculation algorithm for calculating the date to be represented in generated character string 30 from the date represented by date information 20, and the format of the date represented in generated character string 30, just as in the case where date information 20 represents the date as a character string.
[0100] When the lifespan of the target product 10 is used to calculate the generated string 30, the acquisition unit 2020 further acquires information indicating the lifespan of the target product 10 (hereinafter, lifespan information). For example, the lifespan information is stored in a product database. In this case, the acquisition unit 2020 acquires the lifespan information corresponding to the target product 10 from the product database. The method of identifying a product corresponding to the target product 10 in the product database is as described above.
[0101] The method of acquiring the lifespan information is not limited to acquiring it from a product database, but may be input by a user, for example.
[0102] <Output of generated string 30: S108> The generating unit 2040 outputs the generated character string 30 (S108). Here, the output mode of the generated character string 30 differs depending on how the generated character string 30 is used. For example, as described above, the generated character string 30 is transmitted to a terminal (the above-mentioned user terminal 100) operated by a worker who performs the task of attaching the second date string 14 to the target product 10. The worker can grasp the character string to be attached to the target product 10 as the second date string 14 by operating the terminal and viewing the generated character string 30.
[0103] Alternatively, for example, as described above, the generated character string 30 may be set in a printer used to attach the generated character string 30 to the target product 10. Specifically, the generated character string 30 is set as a character string to be printed by the printer. Any method can be used to realize this setting. For example, the printer is set by transmitting the generated character string 30 from the date generating device 2000 to the printer. Alternatively, for example, the printer may be set by transmitting the generated character string 30 from the date generating device 2000 to the user terminal 100 and accessing the printer from the user terminal 100.
[0104] As another example, as described above, the generated character string 30 is used to check whether the second date string 14 attached to the target product 10 is correct. In this case, the generated character string 30 is used by a device that performs a comparison process between the second date string 14 and the generated character string 30.
[0105] Alternatively, for example, the generated character string 30 may be stored in a storage device so that it can be referenced at any time. In this way, for example, a supervisor who gives final approval for the repacking work described above can view the generated character string 30 on a terminal that he or she operates, visually determine whether the generated character string 30 is correct, and then perform approval work.
[0106] Although the embodiments of the present invention have been described above with reference to the drawings, these are merely examples of the present invention, and it is also possible to adopt combinations of the above-described embodiments or various configurations other than those described above.
[0107] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes. 1. An acquisition unit that acquires date information related to a target product and a rule condition indicating a condition related to a generation rule that generates a generated character string to be added to the target product from the date information; a generation unit that generates the generated character string for the target product from the acquired date information by using the generation rule corresponding to the acquired rule condition, A date generating device, wherein the date information and the generated character string represent either a manufacturing date or an expiration date of the target product. 2. Region identification information, which is identification information of a region, is associated with the generation rule for generating a character string of a date to be attached to a product sold in the region corresponding to the region identification information; 2. The date generation device according to claim 1, wherein the acquisition unit acquires, as the rule condition, the area identification information that identifies the area in which the target product is sold. 3. Product identification information, which is identification information of a product, is associated with the generation rule for generating a character string of a date to be attached to the product corresponding to the product identification information; The date generation device according to claim 1, wherein the acquisition unit acquires product identification information of the target product as the rule condition. 4. Company identification information, which is identification information of a company, is associated with the generation rule for generating a character string of a date to be attached to a product related to the company corresponding to the company identification information; The date generation device according to 1., wherein the acquisition unit acquires company identification information of a company related to the target product as the rule condition. 5. The acquisition unit acquires lot identification information of a lot including the target product, and acquires the date information corresponding to the lot identification information; The date information corresponding to the lot identification information is Extracted from the lot identification information according to a predetermined rule, or The date generating device according to any one of 1 to 4, wherein the date information is obtained from a storage device in which the date information is stored in association with the lot identification information. 6. The date information represents the date of manufacture of the product; The date generation device according to any one of 1 to 5, wherein the generation rules include a rule for converting the manufacturing date of the product represented by the date information into an expiration date of the product based on the lifespan of the product. 7. The date information includes one or more of a year, a month, and a day; A date generation device described in any one of 1. to 5., wherein the generation rule is a rule for generating the generated string that represents one or more pieces of information to be attached to the target product, including the year, month, and day contained in the date information, in a specified format. 8. A date generation device described in any one of 1 to 7, wherein the generated character string is output to a printer used to attach the generated character string to the target product. 9. A computer-implemented control method comprising: an acquisition step of acquiring date information related to the target product and a rule condition indicating a condition related to a generation rule for generating a generated character string to be added to the target product from the date information; a generating step of generating the generated character string for the target product from the acquired date information by using the generation rule corresponding to the acquired rule condition, The date information and the generated character string represent either a manufacturing date or an expiration date of the target product. 10. Region identification information, which is identification information of a region, is associated with the generation rule for generating a character string of a date to be attached to a product sold in the region corresponding to the region identification information; 10. The control method according to claim 9, wherein in the obtaining step, the area identification information that identifies an area in which the target product is sold is obtained as the rule condition. 11. Product identification information, which is identification information of a product, is associated with the generation rule for generating a character string of a date to be attached to the product corresponding to the product identification information; 10. The control method according to claim 9, wherein in the obtaining step, product identification information of the target product is obtained as the rule condition. 12. Company identification information, which is identification information of a company, is associated with the generation rule for generating a character string of a date to be attached to a product related to the company corresponding to the company identification information; 10. The control method according to claim 9, wherein in the obtaining step, company identification information of a company related to the target product is obtained as the rule condition. 13. In the acquisition step, lot identification information of a lot including the target product is acquired, and the date information corresponding to the lot identification information is acquired; The date information corresponding to the lot identification information is Extracted from the lot identification information according to a predetermined rule, or The control method according to any one of claims 9 to 12, wherein the date information is obtained from a storage device in which the date information is stored in association with the lot identification information. 14. The date information represents the date of manufacture of the product; The control method according to any one of claims 9 to 13, wherein the generation rule includes a rule for converting the manufacturing date of the product, represented by the date information, into an expiration date of the product based on the lifespan of the product. 15. The date information includes one or more of a year, a month, and a day; A control method described in any one of 9. to 13., wherein the generation rule is a rule for generating the generated string that represents one or more pieces of information to be attached to the target product, including the year, month, and day contained in the date information, in a specified format. 16. A control method according to any one of claims 9 to 15, wherein the generated character string is output to a printer used to apply the generated character string to the target product. 17. A program for causing a computer to execute each step of the control method described in any one of 9. to 16. [Explanation of symbols]
[0108] 10 Eligible Products 12 First Date String 14 Second Date String 20 Date Information 30 Generated string 40 Generation Rules 50 Rule Information 52 Regional Identification Information 54 Generation Rules 60 Rules Information 62 Product Identification Information 64 Generation Rules 70 Rules Information 72 Company Identification Information 74 Generation Rules 80 Production rule storage device 100 user terminals 110 Server device 120 Rule Information 122 Area Identification Information 124 Product Identification Information 126 Generation Rules 1000 calculator 1020 Bus 1040 Processor 1060 Memory 1080 Storage Device 1100 Input / Output Interface 1120 Network Interface 2000 Date Generator 2020 Acquisition Department 2040 Generation Department< / yyyy> < / yyyy> < / yyyy> < / yyyy> < / yyyy> < / yyyy> < / yyyy> < / yyyy> < / yyyy>
Claims
1. an acquisition unit that acquires date information related to the target product and a rule condition indicating a condition related to a generation rule that generates a generated character string to be added to the target product from the date information; a generation unit that generates the generated character string for the target product from the acquired date information by using the generation rule corresponding to the acquired rule condition, The date information and the generated character string represent either the manufacturing date or the expiration date of the target product, The acquisition unit acquires the date information related to the target product by performing character recognition processing on a captured image generated by an imaging unit provided in the user terminal; region identification information that is identification information of a region is associated with the generation rule for generating a character string of a date to be attached to a product sold in the region corresponding to the region identification information; The acquisition unit acquires, as the rule condition, the area identification information that identifies the area in which the target product is sold, using location information of the user terminal.
2. Product identification information, which is identification information of a product, is associated with the generation rule for generating a character string of a date to be attached to the product corresponding to the product identification information, The date generating device according to claim 1 , wherein the acquisition unit acquires product identification information of the target product as the rule condition.
3. Company identification information, which is identification information of a company, is associated with the generation rule for generating a character string of a date to be attached to a product related to the company corresponding to the company identification information, The date generating device according to claim 1 , wherein the acquisition unit acquires, as the rule condition, the company identification information of a company related to the target product.
4. The acquisition unit acquires lot identification information of a lot including the target product, and acquires the date information corresponding to the lot identification information; The date information corresponding to the lot identification information is Extracted from the lot identification information according to a predetermined rule, or The date generating device according to claim 1 , wherein the date information is obtained from a storage device in which the date information is stored in association with the lot identification information.
5. The date information represents a manufacturing date of the product, 5. The date generating device according to claim 1, wherein the generating rules include a rule for converting a manufacturing date of the product represented by the date information into an expiration date of the product based on a lifespan of the product.
6. The date information includes at least one of a year, a month, and a day; 5. A date generation device according to claim 1, wherein the generation rule is a rule for generating the generated string that represents, in a specified format, one or more pieces of information to be attached to the target product, including the year, month, and day contained in the date information.
7. The date generating device according to claim 1 , wherein the generated character string is output to a printer that is used to attach the generated character string to the target product.
8. 1. A computer-implemented control method comprising: an acquisition step of acquiring date information related to the target product and a rule condition indicating a condition related to a generation rule for generating a generated character string to be added to the target product from the date information; a generating step of generating the generated character string for the target product from the acquired date information by using the generation rule corresponding to the acquired rule condition, The date information and the generated character string represent either the manufacturing date or the expiration date of the target product, The date information on the target product is acquired by performing character recognition processing on a captured image generated by an imaging unit provided in a user terminal, region identification information that is identification information of a region is associated with the generation rule for generating a character string of a date to be attached to a product sold in the region corresponding to the region identification information; A control method, wherein the area identification information that identifies the area in which the target product is sold is obtained as the rule condition using location information of the user terminal.
9. A program for causing a computer to execute each step of the control method according to claim 8.
Citation Information
Patent Citations
Label printer
JP2011011525A
Method, system and apparatus for generation of lot codes and expiry dates
US20130254077A1
An industrial printer and method therein for printing print information on at least one information carrier
US20180196624A1
