Program, method for color display, and color display system
Patent Information
- Application Number
- JP2023037861
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-24
AI Technical Summary
【0007】 複数のデータ要素に共通属性がある場合の色の設定を支援する技術を提供できる。
Smart Images

Figure 2024128708000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a program, a color display method, and a color display system. [Background technology]
[0002] It is known that presenting data in a visualized form such as a graph increases its appeal. Even when there is a large amount of data, users can efficiently grasp the trends by presenting the data as a graph. The graph is displayed in a color that corresponds to each data element contained in the data, so users can understand which color in the graph corresponds to which data element (for example, the legend).
[0003] There is a known technology for automatically setting the color of a graph (see, for example, Patent Document 1). Patent Document 1 discloses a technology that allows the specification of the other display colors without variation in color shading by specifying the two colors at both ends of a color tone. Summary of the Invention [Problem to be solved by the invention]
[0004] However, in conventional technology, even if multiple data elements have a common attribute, the user needs to set an appropriate color for each data element. For example, the user wants to set the same color to data elements that have a common attribute. However, every time a data element is added, the user needs to set the colors that the user wants to overlap within the same range, which is a burden. Also, in order for the user to continue to use the colors set for the data elements consistently, the correspondence between the data elements and the colors needs to be recorded in a database or the like and referred to every time a new graph is generated.
[0005] In view of the above-mentioned problems, the present invention provides a technique for supporting color setting when multiple data elements have a common attribute. [Means for solving the problem]
[0006] In consideration of the above problems, the present invention provides a program for causing an information processing device to function as a data acquisition unit that acquires data including a plurality of data elements, a color determination unit that determines a color corresponding to identification information of the data elements in a color gamut corresponding to a common attribute of the data elements included in the data acquired by the data acquisition unit, and a display control unit that displays a graph colored in the color corresponding to the identification information of the data elements determined by the color determination unit, based on the data elements. Effect of the Invention
[0007] It is possible to provide a technique for assisting in setting colors when multiple data elements have a common attribute. [Brief description of the drawings]
[0008] [Figure 1] FIG. 10 is a diagram for explaining color coding by a terminal device. [Diagram 2] FIG. 1 is a diagram illustrating an example of the configuration of a color display system. [Diagram 3] FIG. 13 is a diagram showing an example of a terminal device according to another embodiment of the present invention in which the terminal device determines color parameters by itself; [Figure 4] FIG. 2 illustrates a hardware configuration diagram of an example of a terminal device and an information processing system. [Diagram 5] 2 is a functional block diagram of an example illustrating functions of a terminal device and an information processing system, the functions being divided into blocks. FIG. [Figure 6] FIG. 13 is a diagram showing an example of data to be graphed. [Figure 7] FIG. 13 is a diagram illustrating how common attributes and identifying information are extracted from data element descriptions. [Figure 8] FIG. 11 is a diagram illustrating an example of creating colors in a color gamut. [Figure 9] 11A and 11B are diagrams illustrating an example of creating colors in a plurality of color gamuts when there are a plurality of common attributes; [Figure 10] 11 is a sequence diagram illustrating an example of an overall process from when a terminal device acquires data to when the terminal device displays a graph. FIG. [Figure 11]11 is a diagram illustrating an example of a process flow in which a terminal device determines color parameters from descriptions of data elements. [Figure 12] FIG. 13 is a diagram showing an example of data display in which common attributes are distinguished by hatching and color when there are two levels. [Figure 13] FIG. 1 is an example of a diagram showing a graph of power generation and power consumption as an example of data. [Figure 14] 11 is a sequence diagram illustrating an example of an overall process until a graph generated by an information processing system is displayed by a terminal device. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An information processing system and a color display method performed by the information processing system will be described below with reference to the drawings as an example of an embodiment of the present invention.
[0010] <Color coding of multiple data elements with common attributes> The demand for application software (hereafter referred to as applications) for effectively handling data is increasing. For example, BI (Business Intelligence) tools are known as applications that analyze and visualize various data held by companies and make the data useful for management and operations.
[0011] In order for humans to understand large amounts of data, it is effective to format and display the data elements in a graph, and the graph display function is becoming increasingly important in applications aimed at data analysis.
[0012] There are cases where data to be graphed has common attributes. For example, if there is height data for students A and B in Kanagawa Prefecture, the common attributes and the identification information of the data elements having the common attributes are as follows:
[0013] → Common attributes: Students from Kanagawa Prefecture Identification information of data elements with common attributes: Mr. A, Mr. B Users can easily distinguish between data elements for Person A (e.g., blue) and Person B (e.g., red) because they are color-coded on the graph.
[0014] On the other hand, there are cases where a user wants to simultaneously distinguish common attributes and the identification information of data elements on a graph. In other words, there are cases where a user wants to distinguish, by color alone, which prefecture a certain data element belongs to and whose data element it is. There are several possible methods for this, but one example is a color-coding method in which the user sets a specific color gamut for common attributes, and sets the color of data elements that have common attributes from within that color gamut. Hereinafter, for convenience, this color-coding method will be referred to as the "color gamut method."
[0015] For example, if the color gamut is reddish and blueish, each data element is color-coded as follows: Kanagawa Prefecture students: Red Tokyo students: Blue Student A from Kanagawa Prefecture: Dark red Student B from Kanagawa Prefecture: Light red C, a student from Tokyo: Dark blue D, a student from Tokyo: Light blue However, in order for users to color-code data elements with common attributes using the color gamut method, they had to think about and set the colors for each data element each time it was added, which was a heavy workload.In addition, in order to consistently use the colors set for data elements, it was necessary to record the correspondence between data elements and colors in a database or similar and refer to it each time a new graph was created.
[0016] <Outline of the information processing system according to this embodiment> Therefore, in this embodiment, a terminal device or a user sets an arbitrary color gamut that is preset for the common attribute. The terminal device determines unique and random color parameters based on the data elements having the common attribute. The terminal device determines a color within the range of the color gamut using the color parameters. Therefore, once the user determines the color gamut of the common attribute and the parameter generation method, the color of the data elements having the common attribute can be automatically and uniquely determined within the color gamut.
[0017] Therefore, the terminal device of this embodiment can reduce the hassle of the user having to determine a color each time a data element having a common attribute is added, and the user having to record the correspondence between the data element and the color.
[0018] FIG. 1 is a diagram for explaining color classification by a terminal device 30. In FIG. 1, the explanation will be given using HSL as a color space. HSL expresses colors as a combination of hue, saturation, and lightness. In this case, the color gamut is expressed in the range of the lower limit [h,s,l]-upper limit [H,S,L]. In other words, the hue value is equal to or greater than h and less than H, the saturation value is equal to or greater than s and less than S, and the lightness value is equal to or greater than l and less than L.
[0019] The user sets the color gamut 321 of "students in Kanagawa prefecture" and the color gamut 322 of "students in Tokyo prefecture" in advance. The color gamut may be set by the user, or may be automatically selected by the terminal device 30 or the like from a color palette. As an example, the color gamut 321 of the common attributes of students in Kanagawa prefecture is [0, 60, 40] to [20, 100, 70]. The color gamut 322 of the common attributes of students in Tokyo prefecture is [200, 60, 40] to [250, 100, 70].
[0020] Then, the information processing system 10 generates random numbers for Mr. A and Mr. B, which are data elements having a common attribute, using a character string such as "Mr. A Hue" as a random number seed, and normalizes the numbers to fall within the color gamut, setting the minimum value to -10 and the maximum value to 20. The terminal device 30 may also perform similar processing on the saturation value and the lightness value.
[0021] In FIG. 1, the color ([3, 71, 56]) 324 of A and the color ([14, 88, 65]) 325 of B are automatically determined. The terminal device 30 performs similar processing for C and D, who are students in Tokyo, to determine the color ([212, 77, 62]) 326 of C and the color ([236, 91, 62]) 327 of D. The bar graphs in FIG. 1 are for A, B, C, and D, respectively, and the user can determine which bar graph is the data element of which student by the colors 324 to 326 and whether each student is a student in Tokyo or Kanagawa Prefecture by the color gamuts 321 and 322. In this embodiment, including other figures, differences in color are represented by differences in density or diagonal lines for convenience of drawing.
[0022] Therefore, the user can visually distinguish whether the data elements are students in Kanagawa Prefecture or students in Tokyo from the color gamuts 321 and 322, and at the same time, can distinguish between Mr. A, Mr. B, Mr. C, and Mr. D based on their different colors.
[0023] <Terminology> A data element is an element in the data that is compiled and graphed. In the case of a graph display, a data element is an element displayed in the graph (e.g., it corresponds to one bar in a bar graph). In this embodiment, a data element includes not only the numerical value that is converted into a graph, but also a description of the data element (also called a legend) and a data ID. Data is a compilation of multiple data elements.
[0024] A common attribute is an attribute that multiple data elements have in common. An attribute can be any information that indicates what kind of data it is, such as the name of a local government, prefecture, company, school, etc.
[0025] A color gamut is a specific range of colors that can be recognized by the human eye (visible range).
[0026] The identification information of a data element is information that identifies the data element, and indicates what or whose data the data element belongs to.
[0027] <Configuration example> Fig. 2 shows an example of the configuration of a color display system 100 of this embodiment. The color display system 100 of Fig. 2 determines unique and random color parameters from data elements having common attributes so as to fall within any color gamut using a Web application. A Web application is an application that runs through cooperation between a program written in a programming language (e.g. JavaScript (registered trademark)) that runs on a Web browser and a program on the Web server side. In contrast, an application that cannot be executed unless it is installed on the terminal device 30 is called a native application.
[0028] In Fig. 2, an information processing system 10, a data server 20, and a terminal device 30 are communicatively connected via a wide area network N1 such as the Internet. The terminal device 30 is connected to a network N2 installed in a facility such as a company or a home. The terminal device 30 may also be present outside the home. The network N2 may be a LAN, Wi-Fi (registered trademark), wide area Ethernet (registered trademark), a mobile phone network such as 4G, 5G, or 6G, or the like. The terminal device 30 does not need to be connected to the network N2 all the time.
[0029] The information processing system 10 is realized by one or more information processing devices. The creation of a graph and the determination of colors can be performed by either the terminal device 30 or the information processing system 10. First, a case where the information processing system 10 creates a graph and determines colors will be described.
[0030] The information processing system 10 creates a graph based on data transmitted from the terminal device 30 or acquired from the data server 20 on the network, and determines color parameters described in this embodiment. The information processing system 10 generates a screen (Web page) that displays a color-coded graph, and transmits this screen information to the terminal device 30. The screen information is a program written in HTML, XML, a scripting language, CSS (Cascading Style Sheet), etc., where the structure of the Web page is mainly specified by HTML, the operation of the Web page is defined by the scripting language, and the style of the Web page is specified by CSS. The terminal device 30 can display the color-coded graph based on the received screen information in a Web browser, etc.
[0031] The information processing system 10 may be realized by cloud computing or may be realized by a single information processing device. Cloud computing refers to a form in which resources on a network are used without being aware of specific hardware resources. The information processing system 10 may exist on the Internet or on-premise.
[0032] The data server 20 is one or more information processing devices that hold or collect any data. The data server 20 may hold or collect any data as long as the data can be made into a graph. The system from which the data is collected is known in advance to the data server 20, and the data server 20 can communicate with the system via an API (Application Programming Interface). There are various such systems, and the type of system and data is not important, for example, the amount of power generated by a solar power generation device installed in a public facility, a local government system that has citizen data, a customer management system for an EC site, a corporate system that has employee data, a student management system that has student data, etc.
[0033] The data server 20 may also have a function of performing web scraping. The data server 20 collects data specified by a user from a website and provides the data to the terminal device 30 or the information processing system 10.
[0034] The information processing system 10 and the data server 20 may be integrated. Also, a plurality of data servers 20 may exist.
[0035] A case will be described where the terminal device 30 creates a graph and determines a color. The terminal device 30 acquires a Web application from the information processing system 10. This Web application includes a program written in a script language. By executing the program, the terminal device 30 acquires data to be shaped into a graph from the data server 20 on the network or the information processing system 10, creates a graph based on the data, and determines color parameters described in this embodiment. The terminal device 30 displays the graph with the determined colors set.
[0036] The terminal device 30 is, for example, a desktop PC, a notebook PC, a smartphone, a tablet terminal, etc. A user operates the terminal device 30 to input operations for graphing data, or to analyze data by referring to the graph. Such processing is realized by a Web application executed by the terminal device 30 and the information processing system 10.
[0037] The terminal device 30 is not limited to a PC etc. as long as a web browser for executing a web application runs on it. The terminal device 30 may be, for example, a projector, an electronic whiteboard, a video conference terminal, etc.
[0038] The terminal device 30 may also execute a native application. In this case, the terminal device 30 communicates with the data server 20 and the information processing system 10 via the networks N1 and N2. Since the native application holds the screen configuration, the terminal device 30, for example, acquires data, creates content (in this embodiment, a color-coded graph, etc.), and displays it.
[0039] Also, as shown in FIG. 3, the terminal device 30 does not have to communicate with the information processing system 10 via a network. That is, the terminal device 30 can determine unique and random color parameters from data elements having a common attribute so that the color parameters fall within any color gamut by itself. FIG. 3 shows a terminal device 30 according to another embodiment of the present invention in which the terminal device 30 determines color parameters by itself. In the embodiment of FIG. 3, a native application is installed in the terminal device 30. This native application determines unique and random color parameters from data elements having a common attribute so that the color parameters fall within a color gamut corresponding to the common attribute.
[0040] 3 may obtain data for graphing from an external storage medium such as a CD-ROM 201 or a USB memory 202, or from a NAS or data server 20 on the network. Also, a native application installed in the terminal device 30 may be distributed from an external storage medium, or from a NAS or data server 20 on the network.
[0041] In the following, unless otherwise specified, the present embodiment will be described based on the configuration shown in FIG.
[0042] <Hardware configuration example> The hardware configuration of the terminal device 30 and the information processing system 10 according to the present embodiment will be described with reference to Fig. 4. Fig. 4 is a diagram showing an example of the hardware configuration of the terminal device 30 and the information processing system 10 according to the present embodiment. As shown in Fig. 4, the terminal device 30 and the information processing system 10 are constructed by a computer 500, and include a CPU 501, a ROM 502, a RAM 503, a HD (Hard Disk) 504, a HDD (Hard Disk Drive) controller 505, a display 506, an external device connection I / F (Interface) 508, a network I / F 509, a bus line 510, a keyboard 511, a pointing device 512, an optical drive 514, and a media I / F 516.
[0043] Among these, the CPU 501 controls the operation of the entire computer 500. The ROM 502 stores programs such as an IPL used to drive the CPU 501. The RAM 503 is used as a work area for the CPU 501. The HD 504 stores various data such as programs. The HDD controller 505 controls the reading or writing of various data from the HD 504 under the control of the CPU 501. The display 506 displays various information such as a cursor, a menu, a window, a character, or an image. The external device connection I / F 508 is an interface for connecting various external devices. In this case, the external device is, for example, a USB (Universal Serial Bus) memory or a printer. The network I / F 509 is an interface for data communication using the network N2. The bus line 510 is an address bus, a data bus, or the like for electrically connecting each component such as the CPU 501 shown in FIG. 4.
[0044] Moreover, the keyboard 511 is a type of input means having a plurality of keys used for inputting characters, numbers, various instructions, etc. The pointing device 512 is a type of input means for selecting and executing various instructions, selecting a processing target, moving a cursor, etc. The optical drive 514 controls reading and writing of various data from an optical storage medium 513, which is an example of a removable storage medium. The optical storage medium 513 may be a CD, a DVD, Blu-Ray (registered trademark), etc. The media I / F 516 controls reading and writing (storing) of data from a storage medium 515 such as a flash memory.
[0045] <About the function> FIG. 5 is a functional block diagram for explaining the functions of the terminal device 30 and the information processing system 10 by dividing them into blocks.
[0046] <<Information Processing System>> The information processing system 10 has a communication unit 11, an application generation unit 12, and a server communication unit 13. Each storage unit of the information processing system 10 is constructed in a RAM 503, a HD 504, etc. shown in Fig. 4. Each functional unit of the information processing system 10 is a function or means realized by a CPU 501 shown in Fig. 4 executing instructions included in one or more programs installed in the information processing system 10.
[0047] The communication unit 11 communicates with the terminal device 30 via the networks N1 and N2. The communication unit 11 receives a request for a Web application to display a graph from the terminal device 30, and transmits the Web application to the terminal device 30. Note that the communication unit 11 may obtain data requested by the terminal device 30 from the data server 20 and transmit the data to the terminal device 30.
[0048] The application generation unit 12 generates a Web application that uses the data to display a graph. This Web application includes screen information for displaying the graph and logic (programs) for determining colors.
[0049] The server communication unit 13 acquires the data specified by the user from the data server 20. In this embodiment, the terminal device 30 may acquire the data from the data server 20 directly.
[0050] <<Terminal Device>> The terminal device 30 has a communication unit 31, a data acquisition unit 32, an attribute extraction unit 33, an identification information extraction unit 34, a random number creation unit 35, a color gamut processing unit 36, a color determination unit 37, a graph creation unit 38, a display control unit 39, and an operation reception unit 40. Each of these functional units of the terminal device 30 is a function or means realized by the CPU 501 executing an instruction included in a Web application transmitted from the information processing system 10.
[0051] The communication unit 31 communicates with the information processing system 10 via the networks N1 and N2. The communication unit 31 receives a Web application from the information processing system 10. When the terminal device 30 executes the Web application, the communication unit 31 transmits a request for data specified by the user to the data server 20 and receives the data from the data server 20. Note that the communication unit 31 may receive data from the data server 20 via the information processing system 10.
[0052] The data acquisition unit 32 acquires data to be visualized in a graph from the data server 20 via the communication unit 31. The data to be acquired may be specified by the user or may be set in advance in the Web application.
[0053] The attribute extraction unit 33 extracts common attributes from the description of the data elements contained in the acquired data. The description of a data element is information (text data, table, etc.) that explains what attributes the data element has and who the data belongs to. For example, "Mr. A, a student in Kanagawa Prefecture" is a description of a data element. The attribute extraction unit 33 extracts "a student in Kanagawa Prefecture" from this description.
[0054] The identification information extraction unit 34 extracts identification information from the description of a data element contained in the acquired data. For example, if the description of a data element is "Mr. A, a student in Kanagawa Prefecture," the identification information extraction unit 34 extracts "Mr. A" from this description.
[0055] The random number generation unit 35 generates a seed for generating random numbers using identification information possessed by the data elements. A random number seed is a numerical value that is set as an initial state when generating pseudo-random numbers. If the random number seed is the same numerical value, the same pseudo-random number is generated every time. Conversely, if the random number seed is different, a different pseudo-random number is generated. The random number generation unit 35 generates random numbers using the random number seed.
[0056] The color gamut processing unit 36 automatically sets the color gamut corresponding to the common attribute or accepts it from the user. The color gamut is the maximum range of colors determined for the data elements of the identification information.
[0057] The color determination unit 37 generates color parameters (corresponding to colors) within the color gamut based on the random numbers generated by the random number seed. When the color space is HSL, the color determination unit 37 determines the values of H, S, and L. Details will be described later.
[0058] The graph creation unit 38 creates a color-coded graph by forming the data elements into graphs such as bar graphs, pie charts, radar charts, line graphs, band graphs, histograms, etc., and setting the colors determined by the color determination unit 37 to the data elements of the graph. The graph creation method is assumed to be an existing method.
[0059] The display control unit 39 causes the graph created by the graph creation unit 38 to be displayed on a display device such as the display 506 .
[0060] The operation reception unit 40 receives various operations by the user on the terminal device 30 and the Web application. For example, the operation reception unit 40 receives data instructions, graph creation operations, color gamut settings, and the like.
[0061] <Data to be graphed> Figure 6 is an example of data to be graphed. In Figure 6, as an example, the data has the following items: data ID, data element description, and height. One line in Figure 6 is called one record. One record is a series of data elements that are associated within the data.
[0062] The data ID is information that uniquely identifies a data element. The data ID is determined so that it is not duplicated. In this embodiment, either the data element description "Mr. A" or the data ID may be the identification information for random number generation.
[0063] The data element description includes a so-called legend, and has attributes of the data element (students in Kanagawa Prefecture, students in Tokyo) and identification information (Mr. A, Mr. B, Mr. C, Mr. D). The data element description may have a fixed format such as JSON. Details will be explained in Figure 7.
[0064] The height item is an example of a value that may be graphed. The value associated with a data element may be any number; height is just one example.
[0065] The terminal device 30 acquires data such as that shown in FIG. 6 from the data server 20 or the information processing system 10, and determines color parameters using the descriptions of the data elements (or in some cases using data IDs).
[0066] <Data element description> Fig. 7 is a diagram for explaining a method for extracting common attributes and identification information from the description of data elements. The description of data elements may be formatted in a fixed format such as JSON, XML, CSV (Comma Separated Values), or a table, or may be written in a natural language.
[0067] FIG. 7(a) is a description of a data element in the JSON format. In the JSON format, data is described in a set of a variable name and a value. "attribute" is the variable name 301, and "student in Kanagawa Prefecture" is the value 302. Similarly, "info" is the variable name 303, and "Mr. A" is the value 304. "attribute" represents an attribute, and "info" represents identification information. In the case of FIG. 7(a), the variable name 301 representing an attribute is set in advance in the attribute extraction unit 33. The attribute extraction unit 33 can extract the variable name 301 representing an attribute and the value of the set 302 (only the value needs to be extracted) from the description of the data element in the JSON format. Similarly, the variable name 303 representing identification information is set in advance in the identification information extraction unit 34. The identification information extraction unit 34 can extract the variable name 303 representing identification information and the value of the set 304 (only the value needs to be extracted) from the description of the data element in the JSON format.
[0068] FIG. 7(b) is a description of a data element in natural language. A format 305 is defined for the description of a data element in natural language. An example of the format 305 is "XX is △△". XX 306 is a common attribute, and △△ 307 is identification information. The attribute extraction unit 33 converts the description of the data element into words with parts of speech, for example, by morphological analysis. The attribute extraction unit 33 then detects "is" from the description of the data element broken down into words, and extracts the common attribute from before "is". Similarly, the identification information extraction unit 34 detects "is" from the description of the data element, and extracts the identification information from after "is".
[0069] The extraction method of FIG. 7(b) is merely an example, and the attribute extraction unit 33 and the identification information extraction unit 34 may extract attributes and identification information using machine learning. Machine learning is a technology for making a computer acquire a learning ability like a human, and refers to a technology in which a computer autonomously generates an algorithm required for judgment such as data identification from learning data previously acquired, and applies this to new data to make predictions. The learning method for machine learning may be any of supervised learning, unsupervised learning, semi-supervised learning, reinforcement learning, and deep learning, or may be a combination of these learning methods. Any learning method for machine learning may be used. Machine learning methods include perceptron, deep learning, support vector machine, logistic regression, naive Bayes, decision tree, random forest, etc., and are not limited to the methods described in this embodiment.
[0070] For example, deep learning is an algorithm that predicts XYZ based on input data ABC, and then adjusts the weights between neural networks using backpropagation to reduce the error with the training data.
[0071] In this embodiment, the learning device learns in advance the correspondence between inputting a natural language and outputting common attributes and identification information (teaching data). As a result, when a natural language is input to the attribute extraction unit 33 and the identification information extraction unit 34, the common attributes and identification information can be extracted.
[0072] <Creating colors in the color gamut> An example of creating colors in a color gamut will be described with reference to Figs. 8 and 9. Fig. 8(a) is an example of a color gamut. In Fig. 8(a), "students in Kanagawa Prefecture" is a common attribute. First, the color gamut processing unit 36 pre-sets a color gamut 310 for the common attribute "students in Kanagawa Prefecture" as shown in Fig. 8(a). This setting may be made by a user and accepted by the color gamut processing unit 36, or may be automatically selected by the color gamut processing unit 36 from a color palette or the like. In Fig. 8(a), the color gamut 310 for students in Kanagawa Prefecture is set to a range [0, 60, 40]-[20, 100, 70] that is easily recognized by humans as a reddish color.
[0073] Fig. 8(b) shows colors 311, 312 created within the color gamut 310 of Fig. 8(a). As shown in Fig. 8(b), for the identification information of person A and person B, the color determination unit 37 determines unique and random HSL parameters (which correspond to colors 311, 312) so that the colors fall within the color gamut 310.
[0074] As one specific method, to determine the hue value of, for example, person A, the random number generation unit 35 generates random numbers using the character string "Mr. A's Hue" as a random number seed, and normalizes the numbers so that they fall within the color gamut by setting the minimum value to -10 and the maximum value to 20. The random number generation unit 35 performs similar processing on the saturation value and lightness value.
[0075] The color gamut of Person A ([3, 71, 56]) and Person B ([14, 88, 65]) set in this way allows visual identification that they are students from Kanagawa Prefecture, and at the same time, the user can distinguish between individuals because Person A and Person B have different colors 311, 312.
[0076] Figure 9 shows the color gamut and the colors within the color gamut when multiple common attributes exist. In Figure 9(a), the common attribute is "students in Kanagawa prefecture," in Figure 9(b), and in Figure 9(c), the common attribute is "students in Tokyo prefecture," and "students in Saitama prefecture." Three color gamuts 321, 322, and 323 are set for these three common attributes. Although it is difficult to tell from the figure, the color gamuts 321, 322, and 323 are red, blue, and green, respectively.
[0077] Then, the colors of students who have common attributes are determined within each of the three color gamuts 321, 322, and 323. Therefore, different reddish colors 324 and 325 are determined for Mr. A and Mr. B, different blueish colors 326 and 327 are determined for Mr. C and Mr. D, and different greenish colors 328 and 329 are determined for Mr. E and Mr. F. The data elements for Mr. A to Mr. D are displayed on the graph in these colors.
[0078] <Process or Action> FIG. 10 is a sequence diagram for explaining the overall processing from when the terminal device 30 acquires data to when it displays a graph.
[0079] S1: When a user connects the terminal device 30 to the information processing system 10, the communication unit 31 of the terminal device 30 receives a Web application from the information processing system 10. This Web application is a Web application that graphs data, and includes a graph display function and a program that determines color parameters in the color gamut method.
[0080] S2: When the Web browser of the terminal device 30 executes the Web application and the display control unit 39 displays an initial screen, the user specifies the data to be graphed. The operation reception unit 40 receives the specification. The user can specify any data to be graphed. The data to be graphed may be set in the Web application in advance.
[0081] S3: The data acquisition unit 32 of the terminal device 30 requests the specified data from the data server 20 via the communication unit 31.
[0082] S4: The data server 20 returns the requested data to the terminal device 30, and the data acquisition unit 32 acquires the specified data via the communication unit 31.
[0083] S5: The terminal device 30 analyzes the data, determines color parameters for each color gamut corresponding to the common attribute, and displays a graph. The color gamut applied to the common attribute may be set by the color gamut processing unit 36 or received from the user, or may be initially set in the Web application in advance. The details of the process of step S5 will be described with reference to FIG. 11.
[0084] <Flow of determining color parameters> FIG. 11 is a diagram illustrating the flow of processing in which the terminal device 30 determines color parameters from the descriptions of data elements.
[0085] · S11 As described with reference to FIG. 7, first, the attribute extraction unit 33 extracts common attributes from the descriptions of the data elements.
[0086] · S12 Additionally, the identification information extraction unit 34 extracts identification information from the description of the data element.
[0087] · S13 The color gamut processing unit 36 may use the color gamut previously set in the Web application as is. The color gamut indicates the upper and lower limits that restrict color parameters in an arbitrary color space. Simply put, the color gamut is color tones such as reddish, blueish, yellowish, greenish, warm colors, and cool colors. Any color space such as HSL, HSV, RGB, and CMYK may be adopted as the color space. In FIG. 11, the description will be given using HSL as the color space. In the HSL color space, Hue takes a value of 0 to 360 degrees, Saturation takes a value of 0 to 100%, and Lightness takes a value of 0 to 100%.
[0088] Here, a method in which the color gamut processing unit 36 sets a color gamut from the color gamut pool will be described. A plurality of color gamuts are collectively called a color gamut pool (preset). A color gamut pool is set in advance in the Web application, and the color gamut processing unit 36 automatically selects a color gamut from the color gamut pool without overlapping. The color gamut processing unit 36 sets the same number of color gamuts as the number of common attributes displayed in the graph. In addition, the display control unit 39 can display representative colors of each color gamut in the color gamut pool, so the user may select a color gamut to correspond to a common attribute from the color gamut pool.
[0089] If a color gamut pool is not prepared, or even if one is prepared, the color gamut processing unit 36 may automatically generate a color gamut. For example, when the color space is HSL, the color gamut processing unit 36 sets the color gamut at equal intervals, for example, within a range of 30 degrees, so that at least the hues do not overlap. In this case, the color gamuts are Hue=0 to 29, 30 to 59, ..., 270 to 359. It is preferable that the color gamut processing unit 36 also determines the color gamut for saturation and lightness at equal intervals, for example. Since the hue only indicates the color system, there is a risk that colors that are difficult to distinguish may be created depending on the saturation and lightness. In this way, even if the color gamut has not been set (or even if the color gamut of the color gamut pool is insufficient), the color gamut processing unit 36 can set a color gamut corresponding to a common attribute.
[0090] Even when the color gamut processing unit 36 automatically generates a color gamut, random numbers may be used in the same way as in determining colors. For example, the random number generating unit 35 generates random numbers (normalized to 0 to 1) using the common attribute as a random number seed (common attribute + hue). The color gamut processing unit 36 distributes the values of 0 to 1 proportionally to 360 degrees, which is the possible values of hue, and assigns the value determined by the random number to the lower limit of hue. Note that distribution means equally dividing the range of 0 to 1 into the range of 0 to 360. Then, the color gamut processing unit 36 determines the range determined from the lower limit (for example, 30 degrees) as the color gamut of the common attribute. Note that when multiple color gamuts overlap, the color gamut processing unit 36 shifts the lower limits so that they do not overlap. Saturation and lightness can also be determined by random numbers in the same way.
[0091] · S14 Next, the random number generation unit 35 generates a random number seed based on the identification information. This random number seed may be at least one of a character string or a numerical value that is uniquely determined from the identification information. In other words, the random number seed may be linked to a data element and have individuality.
[0092] The maximum number of random number seeds generated is the number of color parameters in the color space, and the minimum is 1. In Figure 7, the random number seeds are "A's Hue, A's Saturation, A's Lightness", so they are created for each color parameter in the color space. There is no particular method for generating random number seeds, but as an example, the random number seeds are generated by adding a string indicating which HSL parameter they correspond to to the string of identification information.
[0093] If the random number generator 35 creates only one random number seed, the random number generated in the subsequent processing is also one. Therefore, the color parameters of the color selected from the color gamut have the same distance from the lower limit or upper limit of the color gamut. In the case of HSL, the hue, saturation, and brightness are correlated, and the brighter the hue, the more vivid the saturation and the more reddish the lightness.
[0094] If the random number generator 35 generates random number seeds for the number of color parameters in the color space, the random numbers generated in the subsequent processing will also be the same as the number of color parameters in the color space, and the color parameters selected from the color gamut will not have a correlation with each other. In other words, it will be easier for the user to distinguish data elements in the graph.
[0095] Also, if the random number generator 35 generates one or more random number seeds and the number of seeds is less than the number of color parameters of the color space, any of the color parameters will have a correlation. For example, in HSL, the brighter the color, the more vivid the color.
[0096] A case will be described where duplicate identification information exists within the data. Since identification information is extracted from the description of data elements such as names, duplicate identification information may exist. If the random number seed is the same, the color parameters will also be the same, so preferably, the random number creation unit 35 uses the data ID as the random number seed. In other words, the random number creation unit 35 may obtain the random number seed from something other than the description of the data elements. In this case, the random number seed will be "001Hue, 001Saturation, 001Lightness".
[0097] · S15 The random number generator 35 generates random numbers using a random number seed. This random number is a unique and random parameter. Hereinafter, a unique and random parameter is called a unique parameter. The upper and lower limits of the random number are not particularly defined, but here the minimum is set to 0 and the maximum to 1, taking into consideration ease of calculation during later normalization.
[0098] Any method may be used to generate random numbers from the random number seed. Programming languages provide functions and libraries for generating random numbers. The random number generator 35 uses the srand function in C language, or ramdom.seed in Python, to generate random numbers in the range of 0 to 1. In FIG. 11, the random numbers "0.2, 0.8, 0.1" are generated.
[0099] · S16 The color determination unit 37 determines color parameters corresponding to the data elements from the color gamut based on the unique parameters. The color determination unit 37 determines the values of color parameters from the color gamut as many as the number of color parameters that the color space has. Although there is no particular method for determining the values of color parameters based on the unique parameters, a method for apportioning the range from the lower limit to the upper limit of the color gamut by the unique parameters will be described. For example, the formula for determining the color parameters is as follows: Color parameter value = (Upper limit of color gamut - Lower limit of color gamut) x Unique parameter + Lower limit of color gamut This formula determines a plurality of color parameters by adding a value obtained by dividing the range of the upper and lower limits of the color gamut for each color parameter by a random number to the lower limit of the color gamut for each color parameter.
[0100] For example, if the color gamut is [-10, 60, 40]-[20, 100, 70] and the unique parameters are "0.2, 0.8, 0.1", the HSL color parameter values are "-4, 92, 43".
[0101] Through the above process, the terminal device 30 can determine colors that do not overlap within the color gamut set for the common attributes, and set these colors to the graphed data elements.
[0102] <When common attributes are two levels> The data element "Mr. A, a student in Kanagawa prefecture" explained as an example so far is at level 1 as its only common attribute is Kanagawa prefecture. In contrast to this, there may be cases where you want to display "Mr. A, a student in Kanagawa prefecture in the Kanto region" and "Mr. F, a student in Shiga prefecture in the Kinki region" in different colors. In this example of "Mr. A, a student in Kanagawa prefecture in the Kanto region," the description of the data element has the first common attribute of Kanto region and the second common attribute of Kanagawa prefecture. In the case of "Mr. F, a student in Shiga prefecture in the Kinki region," the description of the data element has the first common attribute of Kinki region and the second common attribute of Shiga prefecture.
[0103] When there are two levels of common attributes like this, one way for users to distinguish between common attributes and identifying information is to switch between the presence or absence of hatching depending on the difference in the first common attribute. Hatching is the drawing of multiple parallel lines. In other words, data elements whose first common attribute is in the Kanto region are not hatched, and data elements whose first common attribute is in the Kinki region are hatched. Users can easily distinguish the first common attribute on the graph by the presence or absence of hatching, can distinguish the second common attribute by the color gamut, and can distinguish the identifying information by the color.
[0104] Fig. 12 shows an example of data display distinguished by hatching and color when the common attribute has two levels. Fig. 12(a) shows color 343 for "Person A, a student in Kanagawa prefecture in the Kanto region" and color 344 for "Person B, a student in Kanagawa prefecture in the Kanto region." The color gamut 341 of the first common attribute, Kanto region, is red. There is no hatching for data elements in the Kanto region, so the colors 343, 344 in Fig. 12(a) are the same as when the common attribute has one level (Fig. 8).
[0105] Figure 12(b) shows color 345 of "Mr. G, a student from Shiga prefecture in the Kinki region" and color 346 of "Mr. H, a student from Shiga prefecture in the Kinki region." The color gamut 342 of the first common attribute, Kinki region, is blue. The colors 345 and 346 in Figure 12(b) are the same as when the common attribute is at level 1, but the colors 345 and 346 of students with the common attribute Kinki region are hatched.
[0106] In this way, the color display system 100 of this embodiment can make it possible to distinguish the difference between common attributes by hatching, even if the common attributes are divided into two stages.
[0107] In addition to hatching, differences in common attributes may be expressed by texture, dot size, or the like.
[0108] <Graph display example> Fig. 13 is an example of a diagram showing the amount of power generated and the amount of power consumed graphed as an example of data. In Fig. 13(a), the common attribute is the amount of power generated, and in Fig. 13(b), the common attribute is the amount of power consumed. Although it is difficult to see due to the drawing, the color gamut of the amount of power generated is yellowish, and the color gamut of the amount of power consumed is blueish. The horizontal axis of the graph in Fig. 13 is time, and the vertical axis is the amount of power generated or the amount of power consumed.
[0109] The identification information for the amount of power generation is each power generation facility. That is, the amount of power generation of power generation facilities A to K is displayed in a different color for each time period. These colors are determined within the color gamut by the color determination unit 37. The colors do not overlap, and the same color is always used for the same power generation facility. The identification information for the amount of power consumption is each consuming facility. That is, the amount of power consumption of consuming facilities A to G is displayed in a different color. These colors are determined within the color gamut by the color determination unit 37. The colors do not overlap, and the same color is always used for the same consuming facility.
[0110] The user can easily determine whether the amount of power generated or consumed is based on the color gamut, and can also distinguish between power generation facilities A to K and power consumption facilities A to G based on the difference in color.
[0111] <When an information processing system determines color parameters> A case where the information processing system 10 determines color parameters will be described. When the information processing system 10 determines color parameters, the information processing system 10 has an attribute extraction unit 33, an identification information extraction unit 34, a random number creation unit 35, a color gamut processing unit 36, a color determination unit 37, and a graph creation unit 38 shown in FIG.
[0112] FIG. 14 is a sequence diagram illustrating the overall process up to when the terminal device 30 displays a graph generated by the information processing system 10. As shown in FIG.
[0113] S21, S22: The processes in steps S21 and S22 may be similar to those in steps S1 and S2 in FIG.
[0114] S23: The data acquisition unit 32 of the terminal device 30 requests the specified data from the information processing system 10 via the communication unit 31.
[0115] S24: The communication unit 11 of the information processing system 10 receives the data request, and the server communication unit 13 requests the data server 20 for the data.
[0116] S25: The data server 20 returns the requested data to the information processing system 10.
[0117] S26: The server communication unit 13 of the information processing system 10 receives the data. As a result, the information processing system 10 analyzes the data, determines color parameters for each color gamut of the common attribute, and creates a graph. This process may be similar to that shown in FIG. 11. Note that the color gamut applied to the common attribute is either initially set in the Web application in advance, automatically selected from a color gamut pool, or automatically created using random numbers or the like. The user can also specify the color gamut in the subsequent process.
[0118] S27: The communication unit 11 of the information processing system 10 transmits the graph data to the terminal device 30. The communication unit 11 may transmit only the graph to the terminal device 30, or may transmit the graph data and screen information to the terminal device 30 so as to accompany a screen transition.
[0119] S28: The communication unit 31 of the terminal device 30 receives the graph data, and the display control unit 39 displays the graph on the screen of the Web application.
[0120] <Major Effects> The color display system 100 of this embodiment generates unique and random parameters from the identification information of the data elements, and uses them to determine a color from the color gamut. Since the determined color is within a specific color gamut, it can be visually distinguished from data elements with other attributes. At the same time, since the determined color is unique to the identification information of the data elements, even legends with the same common attribute will always have different colors when the identification information is different. Therefore, it is possible to reduce the work of the user selecting and recording a color from the color gamut every time a data element is added.
[0121] <Other application examples> The above describes the best mode for carrying out the present invention using examples, but the present invention is not limited to these examples in any way, and various modifications and substitutions can be made within the scope that does not deviate from the gist of the present invention.
[0122] For example, the color determined in this embodiment may be set to the color of the legend (character strings) in addition to being set to the data elements of the graph. Also, the color determined in this embodiment can be applied to things other than graph display. For example, this embodiment can be applied to legends and numerical values displayed in a table format.
[0123] In addition, when a user inputs an explanation of a data element into an electronic whiteboard, the electronic whiteboard may identify the data element using character recognition or the like, and automatically switch the legend and numerical values corresponding to the data element to the color determined in this embodiment.
[0124] Moreover, the configuration examples in Fig. 5 and the like are divided according to main functions in order to facilitate understanding of the processing by the terminal device 30 and the information processing system 10. The present invention is not limited by the manner in which the processing units are divided or the names of the processing units. The processing by the terminal device 30 and the information processing system 10 can be divided into even more processing units depending on the processing content. Also, it can be divided so that one processing unit includes even more processes.
[0125] Additionally, the devices described in the examples are merely illustrative of one of several computing environments for implementing the embodiments disclosed herein. In one embodiment, the information processing system 10 includes a plurality of computing devices, such as a server cluster, configured to communicate with each other via any type of communication link, including a network, shared memory, and the like, and to implement the processes disclosed herein.
[0126] Furthermore, the information processing system 10 can be configured to share the processing steps disclosed in the present embodiment, such as those shown in FIG. 10, in various combinations. For example, a process executed by a specific unit can be executed by multiple information processing devices included in the information processing system 10. Also, the information processing system 10 may be integrated into one server device, or may be divided into multiple devices.
[0127] Each function of the above-described embodiments can be realized by one or more processing circuits. Here, the term "processing circuit" in this specification includes a processor programmed to execute each function by software, such as a processor implemented by an electronic circuit, and a device such as an ASIC (Application Specific Integrated Circuit), a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), or a conventional circuit module designed to execute each function described above. [Explanation of symbols]
[0128] 10. Information Processing Systems 30 Terminal Equipment 100 Color Display System [Prior art documents] [Patent documents]
[0129] [Patent Document 1] Japanese Patent Application Publication No. 08-286605
Claims
1. An information processing device, A data acquisition unit that acquires data including a plurality of data elements; a color determination unit that determines a color corresponding to identification information of the data element within a color gamut corresponding to a common attribute of the data element included in the data acquired by the data acquisition unit; a display control unit that displays a graph colored with the color corresponding to the identification information of the data element determined by the color determination unit, based on the data element; A program to function as a
2. The information processing device, 2. The program according to claim 1, which functions as a color gamut processing section that selects a color gamut corresponding to a common attribute of the data elements from a plurality of color gamuts prepared in advance.
3. The information processing device, 2. The program according to claim 1, which functions as a color gamut processing section that accepts, from a plurality of pre-prepared color gamuts, a color gamut corresponding to a common attribute of the data elements, from a user.
4. The information processing device, 2. The program according to claim 1, which causes the program to function as a color gamut processing unit that sets color gamuts corresponding to the common attributes of the data elements so that they do not overlap.
5. The information processing device, a random number generating unit that generates a random number based on the identification information of the data element; The color determination unit, using the random number generated by the random number generation unit, determining color parameters of colors in a predetermined color space within the color gamut of the predetermined color space set by the color gamut processing unit; 5. The program according to claim 2, wherein the display control unit displays the value related to the data element in the color determined by the color parameter.
6. The information processing device, an identification information extractor for extracting the identification information from the description of the data element; 6. The program according to claim 5, wherein the random number generation unit generates the random numbers using the identification information extracted by the identification information extraction unit as a random number seed.
7. The color space of the gamut has a plurality of color parameters, the random number generation unit generates the random numbers for each of the color parameters by using the identification information extracted by the identification information extraction unit and the name of the color parameter as a random number seed; 7. The program according to claim 6, wherein the color determination unit determines each of the plurality of color parameters within a color gamut of a predetermined color space set by the color gamut processing unit, based on the random numbers.
8. The color gamut is determined for each of the color parameters, The random numbers are normalized to values between 0 and 1, 8. The program according to claim 7, wherein the color determination unit determines the plurality of color parameters by adding a value obtained by dividing the range of the lower limit and upper limit of the color gamut for each color parameter by a random number to the lower limit of the color gamut for each of the color parameters.
9. A color display method in which an information processing device displays a color, comprising: A process in which a data acquisition unit acquires data including a plurality of data elements; a process in which a color determination unit determines a color corresponding to identification information of the data element in a color gamut corresponding to a common attribute of the data element included in the data acquired by the data acquisition unit; a process of displaying a graph colored with the color corresponding to the identification information of the data element determined by the color determination unit based on the data element; Perform color display method.
10. A color display system in which a terminal device and an information processing system communicate with each other, A data acquisition unit that acquires data including a plurality of data elements; a color determination unit that determines a color corresponding to identification information of the data element within a color gamut corresponding to a common attribute of the data element included in the data acquired by the data acquisition unit; a display control unit that displays a graph colored with the color corresponding to the identification information of the data element determined by the color determination unit based on the data element; A color display system having the following characteristics:
Citation Information
Patent Citations
Color assignment system for light and dark colored graph (Map)
JP1996286605A
Cited By
Stress damage staging identification method and device based on multi-feature fusion
CN120154308A
