Electronic terminal device equipped with a UI development tool capable of automatically generating UI components through image analysis of UI design proposals and its operating method
The UI development tool automates UI component placement using image analysis, enhancing efficiency and accuracy by recognizing shapes and aligning components based on stored standard names, addressing inefficiencies in manual UI development processes.
Patent Information
- Application Number
- JP2023059961
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-05-18
- Filing Date
- 2023-04-03
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-04-03
AI Technical Summary
Developing UIs using existing UI development tools is inefficient due to the time-consuming process of manually selecting and placing UI components based on shapes in a design proposal, requiring confirmation of location and placement.
An electronic terminal device equipped with a UI development tool that utilizes image analysis to automatically generate UI components by recognizing shapes, inserting corresponding components, and aligning them accurately based on position information and standard names stored in a table.
This approach allows for more efficient and accurate development of UIs by automating the placement of UI components, reducing the time and effort required for manual selection and placement.
Smart Images

Figure 0007539096000005 
Figure 0007539096000006 
Figure 0007539096000004
Abstract
Description
[Technical field]
[0001] The present invention relates to an electronic terminal device equipped with a UI development tool capable of providing an automatic UI component generation function through image analysis of a UI design proposal, and an operating method thereof. [Background technology]
[0002] Generally, users who develop user interfaces (UIs) using UI development tools often refer to UI design plans created in presentation document creation programs or handwritten, and develop the UI by arranging UI components such as text input boxes and menu bars according to the functions to be implemented in the UI.
[0003] In such UI design plans, UI components such as text input boxes and menu bars included in the UI to be developed are often inserted in the form of specified shapes, and a user who wishes to develop a UI by referring to the UI design plan must look at the shapes inserted in the UI design plan and appropriately select and place the UI components that correspond to each shape.
[0004] However, when developing a UI by referring to a UI design plan in this way, the user must look at the shapes inserted in the UI design plan, select the corresponding UI component one by one, check the insertion position of each shape in the UI design plan, and also decide the placement position of the corresponding UI component, which results in a problem that UI development takes a lot of time and effort.
[0005] If a technology were introduced in a UI development tool where, when a user inputs an image of a UI design proposal with multiple shapes arranged thereon and an automatic UI component generation command is applied, a background area of the same size as the image is generated, the multiple shapes are recognized from the image, the positions at which each of the multiple shapes is inserted from the image are confirmed, and UI components corresponding to each of the shapes are automatically inserted from the background area at points corresponding to the insertion positions of each shape, users would be able to use the UI development tool to develop UIs more efficiently. Summary of the Invention [Problem to be solved by the invention]
[0006] The present invention provides an electronic terminal device equipped with a UI development tool capable of automatically generating UI components through image analysis of a UI (User Interface) design proposal, and an operating method thereof, thereby enabling users to more efficiently develop UIs using the UI development tool. [Means for solving the problem]
[0007] According to an embodiment of the present invention, an electronic terminal device having a UI development tool capable of providing an automatic UI component generation function through image analysis of a UI (User Interface) design proposal includes: a standard name table storage unit for storing and holding a standard name table in which two or more preset standard names corresponding to each of a plurality of UI components preset to be supported by the UI development tool are recorded; an automatic generation event generation unit for generating an automatic generation event for automatically generating UI components corresponding to each of the plurality of shapes when a first image of a UI design proposal in which a plurality of shapes are arranged by a first user, each of which has text for a name of a UI component corresponding to each of the plurality of shapes inserted therein, is inputted and a UI component automatic generation command instructing to automatically generate a UI component corresponding to each of the plurality of shapes is applied; and a UI component automatic generation command generation unit for generating an automatic generation event for automatically generating UI components corresponding to each of the plurality of shapes when the automatic generation event is generated, by checking a horizontal length and a vertical length of the first image and generating a UI component automatic generation command for automatically generating a UI component corresponding to each of the plurality of shapes. the background region generating unit generating a background region having the same horizontal and vertical lengths as an image; a shape recognition unit recognizing the plurality of shapes from the first image; a position information confirmation unit confirming, when the plurality of shapes are recognized, a position at which each of the plurality of shapes is inserted from the first image, thereby confirming position information for each of the plurality of shapes; a text recognition unit recognizing text inserted within each of the plurality of shapes based on a preset text recognition module; a UI component matching unit matching a UI component having a standard name that matches the text recognized for each of the plurality of shapes among the plurality of UI components, with reference to the standard name table, to match a UI component corresponding to each of the plurality of shapes; and a UI component insertion unit inserting a UI component matched to each of the plurality of shapes into the background region at a position corresponding to the position information for each of the plurality of shapes.
[0008] According to an embodiment of the present invention, a method for operating an electronic terminal device having a UI development tool capable of providing an automatic UI component generation function through image analysis of a UI design plan includes the steps of: storing and maintaining a standard name table in which two or more preset standard names corresponding to each of a plurality of UI components preset to be supported by the UI development tool are recorded; when a first user inputs a first image for a UI design plan in which a plurality of shapes are arranged, each of which has text for a name of a UI component corresponding to each of the shapes inserted therein, and a UI component automatic generation command is applied to automatically generate a UI component corresponding to each of the plurality of shapes, generating an automatic generation event for automatically generating a UI component corresponding to each of the plurality of shapes; and when the automatic generation event is generated, calculating the width and height of the first image and the UI component automatic generation command. generating a background region having the same horizontal and vertical lengths as the first image by checking the length of the first image; recognizing the plurality of shapes from the first image; when the plurality of shapes are recognized, checking position information for each of the plurality of shapes by checking the position at which each of the plurality of shapes is inserted in the first image; recognizing text inserted within each of the plurality of shapes based on a preset text recognition module; matching UI components corresponding to each of the plurality of shapes by matching a UI component having a standard name among the plurality of UI components that matches the text recognized for each shape with reference to the standard name table; and inserting a UI component matched to each of the plurality of shapes in the background region at a position according to the position information for each of the plurality of shapes. Effect of the Invention
[0009] The present invention provides an electronic terminal device equipped with a UI development tool capable of automatically generating UI components through image analysis of a UI (User Interface) design proposal, and an operating method thereof, thereby enabling a user to develop a UI more accurately and efficiently by utilizing the UI development tool. [Brief description of the drawings]
[0010] [Figure 1] 1 is a diagram illustrating a structure of an electronic terminal device equipped with a UI development tool capable of providing an automatic UI component generation function through image analysis of a UI (User Interface) design proposal according to an embodiment of the present invention. [Diagram 2] 1 is a diagram illustrating an operation of an electronic terminal device equipped with a UI development tool capable of providing an automatic UI component generation function through image analysis of a UI design proposal according to an embodiment of the present invention. [Diagram 3] 1 is a flowchart illustrating an operation method of an electronic terminal device having a UI development tool capable of automatically generating UI components through image analysis of a UI design proposal according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. Such description is not intended to limit the present invention to a specific embodiment, but should be understood to include all modifications, equivalents, or alternatives within the spirit and technical scope of the present invention. In describing each drawing, the same reference numerals are used for similar components, and unless otherwise defined, all terms used in this specification, including technical or scientific terms, have the same meaning as commonly understood by those having ordinary skill in the art to which the present invention belongs.
[0012] In this specification, when a part "includes" a certain component, this means that it may further include other components, rather than excluding other components, unless otherwise specified. Furthermore, in various embodiments of the present invention, each component, functional block, or means may be composed of one or more lower components, and the electrical, electronic, and mechanical functions performed by each component may be embodied by various known elements or mechanical elements, such as electronic circuits, integrated circuits, and ASICs (Application Specific Integrated Circuits), and each may be embodied separately, or two or more may be integrated into one.
[0013] Meanwhile, the blocks of the attached block diagrams and the steps of the flowcharts may be interpreted as computer program instructions that are loaded into a processor or memory of a device capable of data processing, such as a general-purpose computer, a special-purpose computer, a portable notebook computer, or a network computer, and perform a specified function. These computer program instructions may be stored in a memory or a computer-readable memory of a computer device, so that the functions described in the blocks of the block diagrams or the steps of the flowcharts may be produced as a product containing instruction means for performing the functions. Also, each block or step may represent a module, segment, or part of code including one or more executable instructions for performing a specific logical function. It should also be noted that in some alternative embodiments, the functions described in the blocks or steps may be performed in a different order than the specified order. For example, two blocks or steps shown in succession may be performed substantially simultaneously, may be performed in the reverse order, or may be performed with some blocks or steps omitted in some cases.
[0014] FIG. 1 is a diagram showing the structure of an electronic terminal device equipped with a UI (User Interface) development tool capable of automatically generating UI components through image analysis of a UI design proposal according to an embodiment of the present invention.
[0015] Referring to FIG. 1, an electronic terminal device 110 according to an embodiment of the present invention includes a standard name table storage unit 111, an automatically generated event generation unit 112, a background area generation unit 113, a graphic recognition unit 114, a position information confirmation unit 115, a text recognition unit 116, a UI component matching unit 117, and a UI component insertion unit 118.
[0016] The standard name table storage unit 111 stores and stores a standard name table in which two or more pre-defined standard names corresponding to a plurality of pre-defined UI components supported by the UI development tool are recorded.
[0017] Here, the UI components refer to components that can be created by a user through a UI development tool, such as a button, a text input box, a menu bar, and the like.
[0018] For example, if a plurality of UI components preset to be supported by the UI development tool are “UI component 1, UI component 2, UI component 3,” the standard name table storage unit 111 may save and store a standard name table in which two or more preset standard names corresponding to each of “UI component 1, UI component 2, UI component 3,” as shown in Table 1 below, are recorded.
[0019] [Table 1]
[0020] When a first user 130 inputs a first image of a UI design proposal in which a plurality of shapes are arranged and a UI component automatic generation command is applied instructing automatic generation of UI components corresponding to each of the plurality of shapes, the automatic generation event generating unit 112 generates an automatic generation event for automatically generating UI components corresponding to each of the plurality of shapes.
[0021] Here, the UI design plan may be a document prepared in the form of a predetermined electronic document, such as a slide document created by a presentation document creation program, or may be a document created by hand. In this case, when creating the UI design plan, the designer who creates the UI design plan can generate figures for expressing predetermined UI components, and then insert the names of the UI components corresponding to each figure into each figure and place them in the UI design guide. In this way, in the present invention, it is assumed that text for the names of the UI components corresponding to each figure is inserted into each of the multiple figures inserted in the UI design plan.
[0022] When the automatically generated event is generated by the automatically generated event generating unit 112, the background area generating unit 113 checks the width and height of the first image and generates a background area having the same width and height as the first image.
[0023] The graphic recognition unit 114 recognizes the plurality of graphics from the first image.
[0024] At this time, according to an embodiment of the present invention, the pattern recognition unit 114 may include a binary image generation unit 119 and a pattern recognition processing unit 120 as specific components for recognizing the plurality of patterns from the first image.
[0025] The binary image generating unit 119 generates a binary image by changing the pixel values of first pixels, among the plurality of pixels constituting the first image, having pixel values that belong to a pixel value range that is pre-specified as a color constituting a line of a graphic, to a pre-specified first pixel value, and changing the pixel values of second pixels remaining among the plurality of pixels, excluding the first pixels, to a pre-specified second pixel value.
[0026] The graphic recognition processing unit 120 recognizes the plurality of graphics constituted by the first pixels by separating and recognizing only the first pixels having the first pixel value from the binary image.
[0027] In the following, with reference to FIG. 2, the operations of the automatically generated event generating section 112, the background region generating section 113, and the graphic recognizing section 114 will be described in detail as an example.
[0028] First, it is assumed that “User 1 (130)” inputs “Image 1 (210)” for a UI design proposal in which multiple figures 201, 202, and 203 are arranged into the electronic terminal device 110, and then an automatic UI component generation command is applied to instruct the automatic generation of UI components corresponding to each of the multiple figures 201, 202, and 203.
[0029] At this time, the automatically-generated event generating unit 112 may generate an automatically-generated event for automatically generating UI components corresponding to each of the plurality of graphics 201 , 202 , and 203 .
[0030] Then, the background region generating unit 113 checks the horizontal and vertical lengths of "Image 1 (210)" and can generate a background region 220 having the same horizontal and vertical lengths as "Image 1 (210)".
[0031] In this case, it is assumed that the range of pixel values pre-specified as the color that makes up the lines of the figure is "greater than 150 and less than 255", the pre-specified first pixel value is "255", and the pre-specified second pixel value is "0".
[0032] Then, the binary image generation unit 119 can change the pixel value of each first pixel among the multiple pixels constituting “Image 1 (210)”, which has a pixel value that belongs to a pixel value range that has been pre-specified as the color that constitutes the lines of a figure, to the first pixel value of “255”, and can generate a binary image 230 by changing the pixel value of each remaining second pixel among the multiple pixels, excluding the first pixel, to the second pixel value of “0”.
[0033] Thereafter, the graphic recognition processing unit 120 separates and recognizes only the first pixel having the first pixel value "255" from the binary image 230, thereby recognizing multiple graphics 201, 202, and 203 made up of the first pixels.
[0034] When the plurality of figures are recognized by the figure recognition unit 114, the position information confirmation unit 115 confirms the position where each of the plurality of figures is inserted from the first image, thereby confirming position information for each of the plurality of figures.
[0035] In this case, according to one embodiment of the present invention, when the plurality of figures are recognized by the figure recognition unit 114, the position information confirmation unit 115 can confirm, from the first image, two-dimensional relative coordinates with respect to the center point of each of the plurality of figures based on a first vertex of any one of the four vertices constituting the first image, as position information for each of the plurality of figures.
[0036] The text recognition unit 116 recognizes the text inserted inside each of the plurality of graphics based on a preset text recognition module.
[0037] Here, the text recognition module refers to a pre-built text recognition module based on Optical Character Recognition (OCR) technology or deep learning technology that can recognize and acquire text from images or videos.
[0038] The UI component matching unit 117 refers to the standard name table and matches, for each of the plurality of figures, a UI component among the plurality of UI components that has a standard name that matches the text recognized for each figure, thereby matching UI components corresponding to each of the plurality of figures.
[0039] The UI component inserting unit 118 inserts, in the background region, a UI component that matches each of the plurality of graphics at a position according to the position information for each of the graphics.
[0040] At this time, according to one embodiment of the present invention, the UI component insertion unit 118 may insert a UI component corresponding to each of the figures at a position based on two-dimensional relative coordinates that constitute position information for each of the multiple figures, based on a vertex that corresponds to the first vertex of the four vertices that constitute the background region.
[0041] In the following, with reference to FIG. 2, the operations of the position information checking unit 115, the text recognizing unit 116, the UI component matching unit 117, and the UI component inserting unit 118 will be described in detail as an example.
[0042] First, it is assumed that a plurality of figures 201, 202, and 203 have been recognized by the figure recognition unit 114 based on the binary image 230, as in the above example.
[0043] Then, the position information confirmation unit 115 can confirm the two-dimensional relative coordinates of the center points of each of the multiple figures 201, 202, and 203 from "Image 1 (210)" based on the first vertex 213 of any one of the four vertices 211, 212, 213, and 214 that constitute "Image 1 (210)" as position information for each of the multiple figures 201, 202, and 203.
[0044] In this regard, the two-dimensional relative coordinates of the center points 204, 205, and 206 of the plurality of figures 201, 202, and 203, respectively, based on the first vertex 213 are expressed as "(x1, y1), (x 2、 y2), (x 3、 y3), the position information confirmation unit 115 determines the position information for each of the multiple figures 201, 202, and 203 as "(x 1、 y1), (x 2、 y2), (x 3、 y3)" can be confirmed.
[0045] Thereafter, the text recognition unit 116 can recognize the texts "Text 1, Text 2, Text 3" inserted inside the multiple figures 201, 202, and 203, respectively, based on a preset text recognition module.
[0046] Then, the UI component matching unit 117 refers to a standard name table such as Table 1, and matches each of the multiple figures 201, 202, and 203 with a UI component among the multiple UI components "UI component 1, UI component 2, UI component 3" that has a standard name that matches the text recognized for each figure, thereby matching UI components corresponding to each of the multiple figures 201, 202, and 203.
[0047] In this regard, assume that the standard name matched to "Text 1", the text recognized for figure 201, is "Standard Name 5", the standard name matched to "Text 2", the text recognized for figure 202, is "Standard Name 9", and the standard name matched to "Text 3", the text recognized for figure 203, is "Standard Name 2".
[0048] In this case, in a standard name table such as Table 1, the UI components having "standard name 5, standard name 9, standard name 2" as their standard names are "UI component 2, UI component 3, UI component 1," so the UI component matching unit 117 can match the UI components corresponding to each of the multiple figures 201, 202, 203 as "UI component 2, UI component 3, UI component 1."
[0049] Then, the UI component insertion unit 118 can insert UI components 225, 226, 227 corresponding to each of the figures 201, 202, 203 at positions based on two-dimensional relative coordinates that constitute the position information for each of the multiple figures 201, 202, 203 in the background area 220, based on vertex 223 that corresponds to the first vertex 213 out of the four vertices 221, 222, 223, 224 that constitute the background area 220.
[0050] In this regard, the two-dimensional relative coordinates constituting the position information for each of the multiple figures 201, 202, and 203 are expressed as "(x1, y 1) , (x 2、 y2), (x 3、 Therefore, the UI component insertion unit 118 inserts the UI component at a position according to (x1, y1) based on the vertex 223 as shown in the drawing with reference numeral 220. 、It is possible to insert a "UI component 2 (225)" which is a UI component corresponding to the figure 201, and it is possible to insert a "UI component 3 (226)" which is a UI component corresponding to the figure 202 at a position determined by "(x2, y2)" based on the vertex 223, and it is possible to insert a "UI component 4 (226)" which is a UI component corresponding to the figure 202 at a position determined by "(x 3、 y3)”, which is a UI component corresponding to the figure 203, can be inserted at the position indicated by the arrows.
[0051] According to an embodiment of the present invention, the electronic terminal device 110 may further include a configuration that allows only pre-designated paid users to use the UI automatic generation function from the UI development tool.
[0052] In this regard, the automatically-generated event generation unit 112 is configured to confirm whether or not the first user 130 is a paid user who is able to use the UI component automatic generation function before generating the automatically-generated event, and may include a hash function storage unit 121, an authentication event generation unit 122, a message display unit 123, an operation code generation unit 124, a hash function extraction unit 125, a confirmation request unit 126, and an event generation processing unit 127.
[0053] The hash function storage unit 121 stores p (p is an even number equal to or greater than 2) + 1 different hash functions (each of the p + 1 hash functions is assigned a different unique number consisting of an integer equal to or greater than 0 and equal to or less than p) that are previously shared with a preset user authentication server 140.
[0054] Here, the user authentication server 140 includes a user database in which the identification codes of a plurality of paid users who have been designated in advance as paid users who are able to use the UI component automatic generation function in the UI development tool are stored.
[0055] For example, the user authentication server 140 may include a user database such as that shown in Table 2 below.
[0056] [Table 2]
[0057] In this situation, when p is set to "6", the hash function storage unit 121 may store "7" different hash functions as shown in Table 3 below.
[0058] [Table 3]
[0059] When the first image is input by the first user 130 and the UI component automatic generation command is applied, the authentication event generating unit 122 generates an authentication event to confirm whether the first user 130 is a paid user who can use the UI component automatic generation function before generating the automatic generation event.
[0060] When the authentication event is generated by the authentication event generating unit 122, the message display unit 123 displays on the screen a message including a request for the first user 130 to input a previously issued identification code.
[0061] When a first identification code is input by the first user 130, the operation code generation unit 124 randomly generates a p-digit one-time authentication number, separates the one-time authentication number into a first partial number of p / 2 digits in the front row and a second partial number of p / 2 digits in the rear row based on the central axis, generates a p / 2-bit first partial code by performing a modulo-2 operation on each of the p / 2 digits that make up the first partial number, generates a p / 2-bit second partial code by performing a modulo-2 operation on each of the p / 2 digits that make up the second partial number, and then generates a p / 2-bit operation code by exclusive ORing the first partial code and the second partial code.
[0062] Here, modulo-2 arithmetic means an arithmetic operation for calculating the remainder when a predetermined dividend is divided by 2.
[0063] The hash function extraction unit 125 calculates the sum of Hamming weights for the first partial code and the second partial code, and then extracts from the hash function storage unit a first hash function to which the sum of the Hamming weights is assigned as a unique number from among the p+1 hash functions.
[0064] The confirmation request unit 126 applies the operation code as an input to the first hash function to generate a first hash value, encrypts the first identification code to the first hash value, and then transmits the encrypted first identification code and the one-time authentication number to the user authentication server 140, and transmits a confirmation request command requesting that the first user 130 be confirmed as a paid user who is able to use the UI component automatic generation function.
[0065] In the following, the operations of the authentication event generating unit 122, the message display unit 123, the operation code generating unit 124, the hash function extracting unit 125 and the confirmation requesting unit 126 will be described in detail as examples.
[0066] First, as in the above example, it is assumed that the first image 210 is input to the electronic terminal device 110 by the "user 1 (130)" and the UI component automatic generation command is applied.
[0067] At this time, before generating the automatic generation event, the authentication event generating unit 122 may generate an authentication event to confirm whether or not “User 1 (130)” is a paid user who can use the UI component automatic generation function.
[0068] Then, the message display unit 123 can display on the screen a message including a request for the "user 1 (130)" to input the identification code issued in advance.
[0069] At this time, if "User 1 (130)" checks the message and enters "Identification Code 1," which is an identification code issued in advance to "User 1 (130)," into the electronic terminal device 110, the operation code generation unit 124 can randomly generate a "6" digit one-time authentication number.
[0070] In this case, if the one-time authentication number is generated as “921230”, the operation code generation unit 124 can separate the one-time authentication number “921230” into the first three-digit first partial number “921” and the second three-digit second partial number “230” based on the central axis.
[0071] Thereafter, the operation code generation unit 124 can generate a 3-bit first partial code, such as "101", by performing a modulo-2 operation on each of the three digits constituting the first partial number "921", and can generate a 3-bit second partial code, such as "010", by performing a modulo-2 operation on each of the three digits constituting the second partial number "230".
[0072] Then, the operation code generation unit 124 can generate a 3-bit operation code such as "111" by performing an exclusive OR on the first partial code "101" and the second partial code "010".
[0073] Then, the hash function extraction unit 125 can calculate the sum of the Hamming weights for the first partial code "101" and the second partial code "010" to be "3", and can extract "hash function 4", which has a unique number of "3" assigned to it, from the hash function storage unit 121 as shown in Table 3, out of the "7" hash functions.
[0074] Thereafter, the confirmation request unit 126 applies the operation code “111” as an input to the “hash function 4” to generate a “hash value 1”, encrypts the “identification code 1” to the “hash value 1”, and then transmits the encrypted “identification code 1” and the one-time authentication number “921230” to the user authentication server 140, thereby transmitting a confirmation request command requesting that the user authentication server 140 confirm whether or not “user 1 (130)” is a paid user who can use the UI component automatic generation function.
[0075] In this case, according to one embodiment of the present invention, the user authentication server 140 stores the p+1 hash functions in a memory, and when the encrypted first identification code and the one-time authentication number are received from the electronic terminal device 110 along with the confirmation request command, the user authentication server 140 generates the first hash value based on the p+1 hash functions and the one-time authentication number, and restores the first identification code by decrypting the encrypted first identification code to the first hash value, and then checks whether the first identification code is stored in the user database. If it is confirmed that the first identification code is stored in the user database, the user authentication server 140 can generate a confirmation message indicating that the first user 130 has been confirmed to be a paid user who can use the UI component automatic generation function, and transmit the confirmation message to the electronic terminal device 110.
[0076] According to an embodiment of the present invention, the user authentication server 140 stores the p+1 hash functions in a memory. When the encrypted first identification code and the one-time authentication number are received from the electronic terminal device 110 and the verification request command is received, the user authentication server 140 separates the one-time authentication number into the first partial number of p / 2 digits in the front section and the second partial number of p / 2 digits in the rear section based on a central axis, and generates the first partial code by performing a modulo-2 operation on each of the p / 2 digits constituting the first partial number, and generates the first partial code by performing a modulo-2 operation on each of the p / 2 digits constituting the second partial number. a first partial code generated by performing an exclusive OR operation on the first partial code and the second partial code to generate the operational code; a sum of Hamming weights for the first partial code and the second partial code is calculated; the first hash function to which the sum of the Hamming weights is assigned as a unique number is extracted from the p+1 hash functions; the operational code is applied as an input to the first hash function to generate the first hash value; and the encrypted first identification code is decrypted to the first hash value, thereby restoring the first identification code.
[0077] In this way, when the user authentication server 140 confirms that the first user 130 is a paying user who can use the UI component automatic generation function, the event generation processing unit 127 generates the automatically generated event when the confirmation message is received from the user authentication server 140.
[0078] In the following, the operations of the user authentication server 140 and the event occurrence processing unit 127 will be described in detail as an example.
[0079] First, the user authentication server 140 may store seven hash functions as shown in Table 3 above in its memory.
[0080] In this situation, as in the example described above, it is assumed that the confirmation request unit 126 transfers to the user authentication server 140 the encrypted “identification code 1” and the one-time authentication number “921230”, as well as a confirmation request command requesting confirmation as to whether or not “User 1 (130)” is a paid user who can use the UI component automatic generation function, and thus the user authentication server 140 receives the encrypted “identification code 1” and the one-time authentication number “921230”, and the confirmation request command.
[0081] Then, the user authentication server 140 can separate the one-time authentication number "921230" into the first three-digit first partial number "921" and the last three-digit second partial number "230" based on the central axis.
[0082] Thereafter, the user authentication server 140 can generate the first partial code, such as "101", by performing a modulo-2 operation on each of the "3" digits that make up the first partial number, "921", and can generate the second partial code, such as "010", by performing a modulo-2 operation on each of the "3" digits that make up the second partial number, "230".
[0083] Thereafter, the user authentication server 140 can generate a 3-bit operation code such as "111" by performing an exclusive OR operation on the first partial code "101" and the second partial code "010", and can calculate the sum of the Hamming weights for the first partial code "101" and the second partial code "010" to be "3".
[0084] Thereafter, the user authentication server 140 can extract "hash function 4" which is assigned the unique number "3" from among the "7" hash functions stored in the memory.
[0085] Thereafter, the user authentication server 140 can apply the operation code "111" as an input to "hash function 4" to generate "hash value 1".
[0086] At this time, since the encrypted "identification code 1" is "identification code 1" encrypted to "hash value 1", the user authentication server 140 can properly restore "identification code 1" by decrypting the encrypted "identification code 1" to "hash value 1".
[0087] Thereafter, the user authentication server 140 checks whether "identification code 1" is stored in the user database such as Table 2, and can confirm that "identification code 1" is stored in the user database such as Table 2.
[0088] The user authentication server 140 can then generate a confirmation message indicating that “User 1 (130)” has been confirmed as a paying user who is entitled to use the UI component automatic generation function, and transfer the message to the electronic terminal device 110.
[0089] As a result, when the electronic terminal device 110 receives the confirmation message from the user authentication server 140, the event generation processing unit 127 can generate the automatically generated event.
[0090] The electronic terminal device 110 can then perform a process for automatically generating UI components corresponding to each of the plurality of graphics 201, 202, 203.
[0091] FIG. 3 is a flowchart illustrating an operation method of an electronic terminal device having a UI development tool capable of automatically generating UI components through image analysis of a UI design proposal according to an embodiment of the present invention.
[0092] In step S310, a standard name table is stored and maintained in which two or more preset standard names corresponding to each of a plurality of UI components supported by the UI development tool and preset are recorded.
[0093] In step S320, a first image of a UI design proposal in which a plurality of shapes (with text corresponding to the name of a UI component corresponding to each shape inserted inside each of the plurality of shapes) is input by a first user, and an automatic UI component generation command is applied to automatically generate a UI component corresponding to each of the plurality of shapes, and an automatic generation event is generated to automatically generate a UI component corresponding to each of the plurality of shapes.
[0094] In step S330, if the automatic generation event occurs, the horizontal and vertical lengths of the first image are confirmed, and a background region having the same horizontal and vertical lengths as the first image is generated.
[0095] In step S340, the plurality of shapes are recognized from the first image.
[0096] In step S350, when the plurality of figures are recognized, position information of each of the plurality of figures is confirmed by checking a position where each of the plurality of figures is inserted in the first image.
[0097] In step S360, the text inserted within each of the plurality of graphics is recognized based on a preset text recognition module.
[0098] In step S370, by referring to the standard name table, a UI component having a standard name that matches the text recognized for each of the plurality of figures among the plurality of UI components is matched to each of the plurality of figures, thereby matching UI components corresponding to each of the plurality of figures.
[0099] In step S380, a UI component matching each of the plurality of graphics is inserted in the background region at a position according to the position information for each of the plurality of graphics.
[0100] In this case, according to an embodiment of the present invention, step S340 may include a step of generating a binary image by changing a pixel value of each of first pixels having a pixel value within a pixel value range pre-specified as a color constituting a line of a figure among a plurality of pixels constituting the first image to a pre-specified first pixel value, and changing a pixel value of each of remaining second pixels, excluding the first pixel, among the plurality of pixels to a pre-specified second pixel value, and a step of recognizing the plurality of figures constituted by the first pixels by separating and recognizing only the first pixels having the first pixel value from the binary image.
[0101] Furthermore, according to an embodiment of the present invention, in step S350, when the plurality of figures are recognized, two-dimensional relative coordinates of the center points of each of the plurality of figures based on a first vertex of any one of four vertices constituting the first image in the first image can be confirmed as position information for each of the plurality of figures.
[0102] At this time, in step S380, a UI component corresponding to each of the figures can be inserted in the background area at a position according to two-dimensional relative coordinates constituting position information for each of the plurality of figures based on a vertex corresponding to the first vertex among the four vertices constituting the background area.
[0103] According to an embodiment of the present invention, in step S320, a hash function storage unit is stored with p (p is an even number equal to or greater than 2)+1 different hash functions (each of the p+1 hash functions is assigned a different unique number consisting of an integer equal to or greater than 0 and equal to or less than p) that are previously shared with a preset user authentication server (the user authentication server includes a user database in which identification codes of a plurality of paid users, each of which is previously designated as a paid user who can use the UI component automatic generation function in the UI development tool), the hash function storage unit being stored with p (p is an even number equal to or greater than 2)+1 different hash functions that are previously shared with a preset user authentication server (the user authentication server includes a user database in which identification codes of a plurality of paid users, each of which is previously designated as a paid user who can use the UI component automatic generation function in the UI development tool, are stored); when the first image is input by the first user and the UI component automatic generation command is applied, before generating the automatic generation event, generating an authentication event for confirming whether the first user is a paid user who can use the UI component automatic generation function, when the authentication event is generated, displaying on a screen a message including a content requesting the first user to input a previously issued identification code; When the input is received, a p-digit one-time authentication number is randomly generated, the one-time authentication number is separated into a first partial number of p / 2 digits in the front section and a second partial number of p / 2 digits in the rear section based on a central axis, a first partial code of p / 2 bits is generated by performing a modulo-2 operation on each of the p / 2 digits constituting the first partial number, a second partial code of p / 2 bits is generated by performing a modulo-2 operation on each of the p / 2 digits constituting the second partial number, and a p / 2 partial code is generated by performing an exclusive OR operation on the first partial code and the second partial code. a step of generating an operation code of 10 bits, a step of calculating a sum of Hamming weights for the first partial code and the second partial code, and then extracting a first hash function from the hash function storage unit, the first hash function having the sum of Hamming weights assigned as a unique number, applying the operation code as an input to the first hash function to generate a first hash value, encrypting the first identification code into the first hash value, and then transmitting the encrypted first identification code and the one-time authentication number to the user authentication server,The method may further include transmitting a confirmation request command to request confirmation as to whether the first user is a paid user who can use the UI component auto-generation function, and generating the auto-generation event when the user authentication server confirms that the first user is a paid user who can use the UI component auto-generation function and a confirmation message indicating that the first user is confirmed to be a paid user who can use the UI component auto-generation function is received from the user authentication server.
[0104] In this case, the user authentication server stores the p+1 hash functions in a memory, and when the encrypted first identification code and the one-time authentication number are received from the electronic terminal device along with the confirmation request command, the user authentication server generates the first hash value based on the p+1 hash functions and the one-time authentication number, and decrypts the encrypted first identification code into the first hash value to restore the first identification code, and then checks whether the first identification code is stored in the user database. If it is confirmed that the first identification code is stored in the user database, the user authentication server generates the confirmation message and transmits it to the electronic terminal device.
[0105] According to an embodiment of the present invention, the user authentication server stores the p+1 hash functions in a memory. When the encrypted first identification code and the one-time authentication number are received from the electronic terminal device and the verification request command is received, the user authentication server separates the one-time authentication number into the first partial number of p / 2 digits in the front section and the second partial number of p / 2 digits in the rear section based on a central axis, and generates the first partial code by performing a modulo-2 operation on each of the p / 2 digits constituting the first partial number, and generates the first partial code by performing a modulo-2 operation on each of the p / 2 digits constituting the second partial number. By performing the above steps, the second partial code is generated, and then the first partial code and the second partial code are exclusive-ORed to generate the operational code. After calculating the sum of the Hamming weights for each of the first partial code and the second partial code, the first hash function to which the sum of the Hamming weights is assigned as a unique number is extracted from the p+1 hash functions, the operational code is applied as an input to the first hash function to generate the first hash value, and the encrypted first identification code is decrypted to the first hash value, thereby restoring the first identification code.
[0106] Thus, a method for operating an electronic terminal device having a UI development tool capable of providing an automatic UI component generation function through image analysis of a UI design proposal according to an embodiment of the present invention has been described with reference to Fig. 3. Here, the method for operating an electronic terminal device according to an embodiment of the present invention may correspond to the configuration for the operation of the electronic terminal device 110 described with reference to Figs. 1 and 2, and therefore a detailed description thereof will be omitted.
[0107] A method for operating an electronic terminal device according to an embodiment of the present invention may be embodied as a computer program stored in a storage medium for execution via connection with a computer.
[0108] In addition, the method of operating an electronic terminal device according to an embodiment of the present invention may be embodied in the form of program instructions that can be executed by various computer means and recorded on a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, and the like, alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the present invention, or may be those known to those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specially configured to store and execute program instructions, such as ROMs, RAMs, and flash memories. Examples of program instructions include not only machine language codes such as those created by a compiler, but also high-level language codes that can be executed by a computer using an interpreter, etc.
[0109] As described above, the present invention has been described using specific details such as specific components and limited embodiments and drawings. However, this is provided to facilitate a more comprehensive understanding of the present invention, and the present invention is not limited to the above-described embodiments. Various modifications and variations are possible from such descriptions by those having ordinary knowledge in the field to which the present invention pertains.
[0110] Therefore, the spirit of the present invention should not be limited to the described embodiments, and all modifications equivalent to or equivalent to the scope of the claims, as well as the scope of the claims described below, can be said to fall within the scope of the idea of the present invention. [Explanation of symbols]
[0111] 110 An electronic terminal device having a UI development tool capable of automatically generating UI components through image analysis of a UI (User Interface) design proposal 111 Standard name table holder 112 Automatically generated event generation section 113...Background area generation unit 114: Graphic recognition section 115 Location information confirmation section 116 Text Recognition Unit 117 UI Component Matching Section 118...UI component inserter 119 Binary image generator 120 Graphic recognition processing section 121 Hash function storage section 122 Authentication event occurrence part 123 Message display section 124 Operation code generator 125 Hash function extraction part 126 Confirmation Request Section 127 Event occurrence processing unit 130 First User 140 User authentication server
Claims
1. An electronic terminal device equipped with a UI (User Interface) development tool capable of automatically generating UI components through image analysis of a UI design proposal, a standard name table storage unit for storing and storing a standard name table in which two or more preset standard names corresponding to each of a plurality of UI components supported by the UI development tool and preset therefor are recorded; an auto-generation event generating unit that generates an auto-generation event for automatically generating a UI component corresponding to each of the plurality of figures when a first image of a UI design proposal in which a plurality of figures are arranged, each of which has a text corresponding to a name of a UI component corresponding to the plurality of figures, is input by a first user and a UI component auto-generation command instructing to automatically generate a UI component corresponding to each of the plurality of figures is applied; a background region generating unit that, when the automatic generation event is generated, checks the width and height of the first image and generates a background region having the same width and height as the first image; a shape recognition unit for recognizing the plurality of shapes from the first image; a position information confirmation unit that, when the plurality of figures are recognized, confirms a position in the first image where each of the plurality of figures is inserted, thereby confirming position information for each of the plurality of figures; a text recognition unit for recognizing text inserted within each of the plurality of graphics based on a preset text recognition module; a UI component matching unit that matches, with respect to each of the plurality of figures, a UI component among the plurality of UI components having a standard name that matches the text recognized for each of the plurality of figures by referring to the standard name table; and a UI component inserting unit that inserts a UI component that matches each of the plurality of figures into a position in the background area according to position information for each of the plurality of figures; In a configuration including The graphic recognition unit includes: a binary image generating unit that generates a binary image by changing the pixel values of first pixels having pixel values that belong to a pixel value range that is pre-specified as a color that constitutes a line of a figure, among a plurality of pixels that constitute the first image, to a pre-specified first pixel value, and changing the pixel values of second pixels remaining among the plurality of pixels, excluding the first pixels, to a pre-specified second pixel value; and a pattern recognition processing unit that recognizes the plurality of patterns constituted by the first pixels by separating and recognizing only the first pixels having the first pixel value from the binary image; 2. An electronic terminal device comprising:
2. The position information confirmation unit is When the plurality of figures are recognized, in the first image, two-dimensional relative coordinates of a center point of each of the plurality of figures are confirmed as position information for each of the plurality of figures based on a first vertex of any one of four vertices constituting the first image; The UI component insertion unit includes:
2. The electronic terminal device according to claim 1, characterized in that, in the background area, a UI component corresponding to each of the plurality of figures is inserted at a position based on two-dimensional relative coordinates that constitute position information for each of the plurality of figures, based on a vertex that corresponds to the first vertex among four vertices that constitute the background area.
3. The automatically generated event generating unit a hash function storage unit storing p (p is an even number equal to or greater than 2)+1 different hash functions, each of which is assigned a different unique number consisting of an integer equal to or greater than 0 and equal to or less than p, which are shared in advance with a preset user authentication server, the user authentication server including a user database storing identification codes of a plurality of paying users who are designated in advance as paying users who can use the UI component automatic generation function from the UI development tool; an authentication event generating unit that generates an authentication event for confirming whether the first user is a paid user who can use the UI component automatic generation function before generating the automatic generation event when the first image is input by the first user and the UI component automatic generation command is applied; a message display unit that displays, when the authentication event occurs, a message including a request for the first user to input a previously issued identification code on a screen; an arithmetic code generating unit for randomly generating a p-digit one-time authentication number when a first identification code is input by the first user, separating the one-time authentication number into a first partial number of p / 2 digits in the front section and a second partial number of p / 2 digits in the rear section based on a central axis, generating a first partial code of p / 2 bits by performing a modulo-2 operation on each of the p / 2 digits constituting the first partial number, generating a second partial code of p / 2 bits by performing a modulo-2 operation on each of the p / 2 digits constituting the second partial number, and generating a p / 2-bit arithmetic code by performing an exclusive OR on the first partial code and the second partial code; a hash function extracting unit that calculates a sum of Hamming weights for the first partial code and the second partial code, and then extracts a first hash function from the hash function storage unit, the first hash function having the sum of the Hamming weights assigned as a unique number; a confirmation request unit that applies the operation code as an input to the operation code to generate a first hash value, encrypts the first identification code into the first hash value, and then transmits the encrypted first identification code and the one-time authentication number to the user authentication server and transmits a confirmation request command to request the user authentication server to confirm whether the first user is a paid user who can use the UI component automatic generation function; and an event generation processing unit that generates the automatically generated event when the user authentication server confirms that the first user is a paid user who can use the UI component automatic generation function and receives a confirmation message from the user authentication server indicating that the first user has been confirmed to be a paid user who can use the UI component automatic generation function; Including, The user authentication server, 2. The electronic terminal device of claim 1, further comprising: a memory that stores the p+1 hash functions; and when the encrypted first identification code and the one-time authentication number are received from the electronic terminal device and the confirmation request command is received, the first hash value is generated based on the p+1 hash functions and the one-time authentication number, and the encrypted first identification code is restored to the first identification code by decrypting the first hash value using the first hash value, and then the electronic terminal device checks whether the first identification code is stored in the user database, and if it is confirmed that the first identification code is stored in the user database, the electronic terminal device generates the confirmation message and transmits it to the electronic terminal device.
4. The user authentication server, a memory for storing the p+1 hash functions, and when the encrypted first identification code and the one-time authentication number are received from the electronic terminal device and the verification request command is received, the one-time authentication number is separated into the first partial number having p / 2 digits in the front section and the second partial number having p / 2 digits in the rear section based on a central axis, and the first partial code is generated by performing a modulo-2 operation on each of the p / 2 digits constituting the first partial number, and the second partial code is generated by performing a modulo-2 operation on each of the p / 2 digits constituting the second partial number, and 4. The electronic terminal device according to claim 3, further comprising: an exclusive OR of a first partial code and the second partial code to generate the operation code; a sum of Hamming weights for the first partial code and the second partial code is calculated; a first hash function to which the sum of the Hamming weights is assigned as a unique number is extracted from the p+1 hash functions; the operation code is applied as an input to the first hash function to generate the first hash value; and the encrypted first identification code is decrypted using the first hash value to restore the first identification code.
5. A method for operating an electronic terminal device having a UI (User Interface) development tool capable of automatically generating UI components through image analysis of a UI design proposal, storing and maintaining a standard name table in which two or more pre-defined standard names corresponding to each of a plurality of pre-defined UI components supported by the UI development tool are recorded; generating an auto-generation event for automatically generating a UI component corresponding to each of the plurality of figures when a first image of a UI design proposal in which a plurality of figures are arranged, each of the plurality of figures having a text corresponding to a name of a UI component corresponding to the respective figure, is input by a first user and a UI component auto-generation command for automatically generating a UI component corresponding to each of the plurality of figures is applied; when the automatic generation event occurs, determining a width and a height of the first image and generating a background region having the same width and height as the first image; recognizing the plurality of shapes from the first image; determining, when the plurality of figures are recognized, a position where each of the plurality of figures is inserted from the first image, thereby determining position information for each of the plurality of figures; recognizing text inserted within each of the plurality of graphics based on a predefined text recognition module; matching UI components corresponding to each of the plurality of shapes by referring to the standard name table and matching, for each of the plurality of shapes, UI components among the plurality of UI components having standard names that match the recognized text for each of the plurality of shapes; inserting, in the background region, a UI component that matches each of the plurality of graphics at a position according to position information for each of the plurality of graphics; In a configuration including The step of recognizing the plurality of shapes includes: generating a binary image by changing pixel values of first pixels having pixel values that belong to a pixel value range that is pre-specified as a color constituting a line of a graphic among a plurality of pixels constituting the first image to a pre-specified first pixel value, and changing pixel values of remaining second pixels, excluding the first pixels, among the plurality of pixels to a pre-specified second pixel value; and and recognizing the plurality of figures formed of the first pixels by isolating and recognizing only the first pixels having the first pixel value from the binary image. A method of operating an electronic terminal device, comprising:
6. The step of confirming includes: When the plurality of figures are recognized, in the first image, two-dimensional relative coordinates of a center point of each of the plurality of figures are confirmed as position information for each of the plurality of figures based on a first vertex of any one of four vertices constituting the first image; The inserting step includes:
6. The method for operating an electronic terminal device as described in claim 5, characterized in that, in the background area, a UI component corresponding to each of the figures is inserted at a position based on two-dimensional relative coordinates that constitute position information for each of the multiple figures, based on a vertex that corresponds to the first vertex among four vertices that constitute the background area.
7. The step of generating an automatically generated event comprises: maintaining a hash function storage unit in which p (p is an even number equal to or greater than 2)+1 different hash functions, each of which is assigned a different unique number consisting of an integer between 0 and p, that are previously shared with a preset user authentication server, the user authentication server including a user database in which identification codes of a plurality of paid users who are previously designated as paid users who can use the UI component automatic generation function from the UI development tool are stored; generating an authentication event for verifying whether the first user is a paid user who can use the UI component auto-generation function before generating the auto-generation event when the first image is input by the first user and the UI component auto-generation command is applied; displaying, on a screen, a message including a request for the first user to input a previously issued identification code when the authentication event occurs; randomly generating a p-digit one-time authentication number when a first identification code is input by the first user, separating the one-time authentication number into a first partial number of p / 2 digits in the front section and a second partial number of p / 2 digits in the rear section based on a central axis, generating a first partial code of p / 2 bits by performing a modulo-2 operation on each of the p / 2 digits constituting the first partial number, generating a second partial code of p / 2 bits by performing a modulo-2 operation on each of the p / 2 digits constituting the second partial number, and generating an operation code of p / 2 bits by performing an exclusive OR of the first partial code and the second partial code; calculating a sum of Hamming weights for the first partial code and the second partial code, and then extracting a first hash function from the p+1 hash functions, the first hash function having the sum of the Hamming weights assigned as a unique number; applying the operation code as an input to the first hash function to generate a first hash value, encrypting the first identification code into the first hash value, and then transmitting the encrypted first identification code and the one-time authentication number to the user authentication server, and transmitting a confirmation request command to the user authentication server to request the server to confirm whether the first user is a paid user who can use the UI component automatic generation function; and generating the automatic generation event when the user authentication server confirms that the first user is a paid user who can use the UI component automatic generation function and receives a confirmation message from the user authentication server indicating that the first user is a paid user who can use the UI component automatic generation function; Including, The user authentication server, 6. The method of claim 5, further comprising: storing the p+1 hash functions in a memory; and when the encrypted first identification code and the one-time authentication number are received from the electronic terminal device and the confirmation request command is received, generating a first hash value based on the p+1 hash functions and the one-time authentication number, and decrypting the encrypted first identification code using the first hash value to restore it to the first identification code, and then checking whether the first identification code is stored in the user database, and if it is confirmed that the first identification code is stored in the user database, generating the confirmation message and transmitting it to the electronic terminal device.
8. The user authentication server, the p+1 hash functions are stored in a memory, and when the encrypted first identification code and the one-time authentication number are received from the electronic terminal device and the confirmation request command is received, the one-time authentication number is separated into the first partial number having p / 2 digits in the front section and the second partial number having p / 2 digits in the rear section based on a central axis, the first partial code is generated by performing a modulo-2 operation on each of the p / 2 digits constituting the first partial number, the second partial code is generated by performing a modulo-2 operation on each of the p / 2 digits constituting the second partial number, and 8. The method of claim 7, further comprising the steps of: generating the operation code by exclusive-ORing a partial code and the second partial code; calculating a sum of Hamming weights for the first partial code and the second partial code; extracting the first hash function from the p+1 hash functions to which the sum of the Hamming weights is assigned as a unique number; applying the operation code as an input to the first hash function to generate the first hash value; and decrypting the encrypted first identification code using the first hash value to restore the first identification code.
9. A computer-readable recording medium having a computer program recorded thereon for executing the method according to any one of claims 5 to 8 when coupled with a computer.
10. A computer program stored on a storage medium for executing the method according to any one of claims 5 to 8 in combination with a computer.
Citation Information
Patent Citations
Method and device for screen generation
JP1996166865A
Responsive grid layouts for graphic design
US10606925B2
Method and system for specifying color of a fill area
US20100002002A1
Automatically generating labeled synthetic documents
US20210158093A1
Lock out / tag out control
US20220092842A1
