Poster Generation Method and System Based on Diversified Data
By creating check-in layers and adjusting element positions, the flexibility and interactivity of traditional physical poster check-in methods are solved, and a personalized and efficient digital check-in experience is achieved.
Patent Information
- Application Number
- CN202510173997.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2045-02-18
AI Technical Summary
Traditional physical poster check-in methods cannot flexibly adjust the check-in location and information content, lack interactivity, and it is difficult to meet digital and personalized needs.
By obtaining the check-in area and logo display area of the poster base map, creating a check-in layer, generating a check-in logo and responding to user scanning, obtaining check-in elements, adjusting element positions, generating element sub-images, and realizing poster updates.
提升了签到方式的交互性和个性化,提高了空间利用率和用户体验。
Smart Images

Figure CN119648865B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to data processing technologies, and in particular, to a method and system for generating posters based on diversified data. Background Art
[0002] In the current application field of event management and check-in technologies, traditional check-in methods still dominate, especially physical poster check-in. Although physical posters are widely used in various conferences, exhibitions, lectures, etc. due to their intuitiveness and ease of production, their inherent limitations are becoming increasingly prominent.
[0003] On the one hand, once a physical poster is made and posted, the check-in positions, information content, etc. on it cannot be flexibly adjusted; on the other hand, the physical poster check-in method lacks necessary interactivity, and participants can only passively mark at the designated positions and cannot enjoy the convenience and fun brought by technologies.
[0004] Currently, with the popularization of mobile Internet and intelligent terminal devices, people's demand for digital and personalized services is increasing day by day, and traditional physical poster check-in can no longer meet this trend. Therefore, exploring a new check-in method that can overcome the limitations of physical poster check-in and make full use of the advantages of electronic media, and developing a method and system that can make full use of diversified data to achieve efficient, intelligent, and personalized poster generation have become urgent problems to be solved. Summary of the Invention
[0005] Based on the above problems, the present invention is proposed to provide a method and system for generating posters based on diversified data that can overcome the above problems or at least partially solve the above problems.
[0006] According to one aspect of the present invention, there is provided a method for generating posters based on diversified data, including the following steps:
[0007] Obtain a poster base map uploaded by a management terminal, and determine a check-in area and an identification code display area located on the poster base map;
[0008] Create a check-in layer corresponding to the check-in area, wherein the check-in layer includes an element acquisition sub-layer and an element arrangement sub-layer;
[0009] Control an identification code generation terminal to generate a check-in identification code corresponding to the poster base map in the identification code display area, and in response to any user terminal scanning the check-in identification code, display the check-in layer to the user terminal;
[0010] In response to the interaction of the client to obtain a sub-layer for an element in the check-in layer, obtain a check-in element corresponding to the client, and generate an element sub-image corresponding to the check-in element in the element arrangement sub-layer;
[0011] In response to any element sub-image in the element arrangement sub-layer being in a scattered state, adjust the image position of the element sub-image based on a preset adjustment strategy to convert the element sub-image from a scattered state to a closed state;
[0012] Add the element arrangement sub-layer to the check-in area to update the poster base map, obtaining a poster check-in map.
[0013] Optionally, in the method according to the present invention, obtaining a poster base map uploaded by the management end, and determining a check-in area and an identification code display area located in the poster base map, includes:
[0014] Obtain the poster base map uploaded by the management end, and determine each publicity area corresponding to each publicity element in the poster base map;
[0015] Generate an identification code display area and a check-in area at a first preset position and a second preset position located in the poster base map respectively;
[0016] In response to a movement interaction of the management end on any one of the identification code display area or the check-in area, determine this area as a movement target area, and move the movement target area from the corresponding preset position along the interaction direction of the management end to an area update position, so as to complete the update operation of the movement target area based on the position dimension; and / or
[0017] In response to a drag interaction of the management end on any one of the area positioning corners included in any one of the identification code display area or the check-in area, determine this area as a drag target area, obtain a drag line segment corresponding to the drag interaction, and scale the size of the drag target area based on the drag line segment, so as to complete the update operation of the drag target area based on the size dimension;
[0018] Compare the target area obtained based on the update operation with each of the publicity areas respectively to obtain the coincidence degree of each area;
[0019] In response to the coincidence degree of any area being greater than the preset coincidence degree retrieved, delete the update operation corresponding to the target area.
[0020] Optionally, in the method according to the present invention, in response to any client scanning the check-in identification code, display the check-in layer to the client, including:
[0021] Retrieve the preset sign-in list for traversal, where each different device identification code and each terminal permission corresponding to each different device identification code exist in the preset sign-in list;
[0022] Based on each terminal permission located in the preset sign-in list, form respective permission areas corresponding to different terminal permissions in the element arrangement sub-layer located in the sign-in layer;
[0023] In response to any user terminal scanning the sign-in identification code, obtain the device identification code and terminal permission corresponding to the user terminal;
[0024] In response to the device identification code corresponding to the user terminal being located in the preset sign-in list, determine the permission area corresponding to the terminal permission of the user terminal as the target area in the element arrangement sub-layer;
[0025] In response to the device identification code corresponding to the user terminal not being located in the preset sign-in list, determine the terminal permission corresponding to this user terminal as the comparison permission, and determine the terminal permission with the maximum permission corresponding to each device identification code located in the preset sign-in list as the maximum permission;
[0026] Compare the comparison permission with the maximum permission. In response to the comparison permission being greater than the maximum permission, determine the permission area corresponding to the maximum permission as the target area in the element arrangement sub-layer;
[0027] Mask all other permission areas except the target area located in the element arrangement sub-layer, and send the sign-in layer after the masking process to the user terminal.
[0028] Optionally, in the method according to the present invention, in response to the user terminal interacting with the element acquisition sub-layer located in the sign-in layer, obtain the sign-in element corresponding to the user terminal, and generate an element sub-image corresponding to the sign-in element in the element arrangement sub-layer, including:
[0029] In response to the user terminal performing a writing interaction on the element acquisition sub-layer located in the sign-in layer, obtain the sign-in element corresponding to the user terminal, and generate an element sub-image corresponding to the sign-in element in any blank area in the target area;
[0030] In response to the user terminal performing a moving interaction on the element sub-image, move the element sub-image from the current position of the element along the interaction direction of the user terminal to the first updated position located in the target area;
[0031] In response to the user terminal staying and interacting with the first updated position for a preset time, fix the element sub-image to the first updated position, and determine the element sub-images corresponding to other user terminals located in the target area as other element groups;
[0032] In response to determining that the element sub-image overlaps with at least one element sub-image in the other element group, determine the collision distance and collision direction corresponding to the element sub-image based on the obtained overlapping part;
[0033] Move the element sub-image corresponding to the user terminal based on the collision direction by the collision distance to obtain the element sub-image at the second updated position.
[0034] Optionally, in the method according to the present invention, in response to the user terminal performing a writing interaction on the element acquisition sub-layer of the check-in layer, obtain the check-in element corresponding to the user terminal, and generate an element sub-image corresponding to the check-in element in any blank area in the target area, including:
[0035] In response to the user terminal performing a writing interaction on the element acquisition sub-layer of the check-in layer, obtain the check-in element formed on the element acquisition sub-image based on the writing interaction;
[0036] Perform pixelization processing on the element acquisition sub-layer to obtain each writing pixel point that makes up the check-in element;
[0037] Perform coordinate processing on the element acquisition sub-layer to obtain each writing coordinate point corresponding to each writing pixel point, and respectively determine the writing coordinate points corresponding to the maximum horizontal coordinate value, minimum horizontal coordinate value, maximum vertical coordinate value, and minimum vertical coordinate value as the maximum horizontal coordinate point, minimum horizontal coordinate point, maximum vertical coordinate point, and minimum vertical coordinate point;
[0038] Respectively use the maximum horizontal coordinate point and the minimum horizontal coordinate point as starting points to construct a first vertical line segment and a second vertical line segment extending in the vertical direction, and respectively use the maximum vertical coordinate point and the minimum vertical coordinate point as starting points to construct a first horizontal line segment and a second horizontal line segment extending in the horizontal direction;
[0039] Control the first vertical line segment, the second vertical line segment, the first horizontal line segment, and the second horizontal line segment to extend respectively to form an initial rectangular area, and obtain each corner position corresponding to the initial rectangular area;
[0040] Obtain the distances between each writing pixel point and each corner point respectively. In response to any of the point distances being greater than a preset point threshold, retrieve a preset region optimization strategy to perform region optimization on the initial rectangular region to obtain the current rectangular region;
[0041] Map the current rectangular region to any blank region within the target region to obtain an element sub-image corresponding to the check-in element.
[0042] Optionally, in the method according to the present invention, retrieving a preset region optimization strategy to perform region optimization on the initial rectangular region to obtain the current rectangular region includes:
[0043] Determine the rectangular center point corresponding to the initial rectangular region, and obtain the connecting lines between each corner point and the rectangular center point respectively;
[0044] Respectively take each corner point as the starting point, establish corner extension lines perpendicular to each connecting line, and move each corner extension line forward along the corresponding connecting line towards the rectangular center point;
[0045] In response to any corner extension line contacting any writing pixel point, control the corner extension line to move backward by a corresponding preset distance away from the rectangular center point;
[0046] In response to each corner extension line completing the backward movement respectively, control each corner extension line to extend to form the current rectangular region.
[0047] Optionally, in the method according to the present invention, determining the collision distance and collision direction corresponding to the element sub-image based on the obtained overlapping part includes:
[0048] Obtain each image frame line located at the edge of the element sub-image, and determine the extension direction of any image frame line as the first image direction, and determine the direction perpendicular to the first image direction as the second image direction;
[0049] Control the element sub-image to be translated along the first image direction and the second image direction in sequence until there is no overlapping part, and obtain the first translation distance corresponding to the first image direction and the second translation distance corresponding to the second image direction;
[0050] Sum the translation distance with the smallest corresponding distance among the first translation distance and the second translation distance and the retrieved preset spacing threshold, and determine the obtained summation value as the collision distance, and determine the image direction corresponding to the translation distance as the collision direction.
[0051] Optionally, in the method according to the present invention, in response to any element sub-image in the element arrangement sub-layer being in a dispersed state, the image position of the element sub-image is adjusted based on a preset adjustment strategy to convert the element sub-image from the dispersed state to a closed state, including;
[0052] Obtain the respective image center points corresponding to all element sub-images located in the element arrangement sub-layer, and connect the respective image center points point by point to obtain respective image connection lines;
[0053] Respectively determine the respective connection lengths corresponding to all the image connection lines corresponding to the same element sub-image, and compare the smallest connection length with a preset dispersion threshold;
[0054] In response to the connection length being greater than or equal to the preset dispersion threshold, determine that the element sub-image is in a dispersed state, and control the element sub-image to translate along the corresponding image connection line;
[0055] In response to the element sub-image colliding with any other element sub-image, control the element sub-image to stop translating, and determine that the element sub-image is converted from the dispersed state to a closed state.
[0056] Optionally, in the method according to the present invention, the method further includes:
[0057] Determine the respective sub-image areas corresponding to the respective element sub-images located in the element arrangement sub-layer, and perform a summation calculation based on the respective sub-image areas to obtain a sub-image total value;
[0058] Calculate the ratio of the sub-image total value to the layer area corresponding to the element arrangement sub-layer to obtain the element proportion corresponding to each element sub-image;
[0059] Retrieve a preset proportion threshold, and compare the element proportion with the preset proportion threshold;
[0060] In response to the comparison result being that the element proportion is greater than or equal to the preset proportion threshold, determine an element area that encloses all the element sub-images in the element arrangement sub-layer;
[0061] Obtain the element center point corresponding to the element area, and connect the element center point point by point with the layer center point corresponding to the element arrangement sub-layer to obtain a layer connection line;
[0062] Obtain the area intersection point between the layer connection line and the element area, and use the area intersection point as a reduction reference point to reduce the element area until the element proportion is less than the preset proportion threshold.
[0063] According to another aspect of the present invention, there is provided a poster generation system based on diversified data, including:
[0064] A determination module, configured to obtain a poster base map uploaded by a management end, and determine a check-in area and an identification code display area located on the poster base map;
[0065] A creation module, configured to create a check-in layer corresponding to the check-in area, wherein the check-in layer includes an element acquisition sub-layer and an element arrangement sub-layer;
[0066] A display module, configured to control an identification code generation end to generate a check-in identification code corresponding to the poster base map in the identification code display area, and in response to any user end scanning the check-in identification code, display the check-in layer to the user end;
[0067] An interaction module, configured to, in response to the user end interacting with the element acquisition sub-layer in the check-in layer, obtain a check-in element corresponding to the user end, and generate an element sub-image corresponding to the check-in element in the element arrangement sub-layer;
[0068] An adjustment module, configured to, in response to any element sub-image in the element arrangement sub-layer being in a dispersed state, adjust the image position of the element sub-image based on a preset adjustment strategy to convert the element sub-image from a dispersed state to a closed state;
[0069] An update module, configured to add the element arrangement sub-layer to the check-in area to update the poster base map to obtain a poster check-in map.
[0070] According to the solution of the present invention, the server can obtain the poster base map uploaded by the management end, determine the check-in area and the identification code display area located in the poster base map, and then create a check-in layer corresponding to the check-in area. The check-in layer includes an element acquisition sub-layer and an element arrangement sub-layer. Then, the server controls the identification code generation end to generate a check-in identification code corresponding to the poster base map in the identification code display area. Thus, when a user end scans the check-in identification code, the server will display the check-in layer to the user end. Next, when the user end interacts with the element acquisition sub-layer in the check-in layer, the server will obtain the check-in elements corresponding to the user end, and then generate element sub-images corresponding to the check-in elements in the element arrangement sub-layer. When any element sub-image in the element arrangement sub-layer is in a scattered state, it means that the distance between some element sub-images is too large. The server will adjust the image positions of the element sub-images based on a preset adjustment strategy to convert the element sub-images from the scattered state to the closed state, which can improve the space utilization rate to a certain extent. Finally, the server will add the check-in layer to the check-in area to update the poster base map, thereby obtaining the poster check-in map. The present invention can improve the user's interaction experience and has a certain feasibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 FIG. shows a flowchart of a poster generation method based on diversified data according to an embodiment of the present invention;
[0072] Figure 2 FIG. shows a schematic diagram of an initial rectangular area according to an embodiment of the present invention;
[0073] Figure 3 FIG. shows a schematic diagram of a corner extension line according to an embodiment of the present invention;
[0074] Figure 4 FIG. shows a structural block diagram of a poster generation method based on diversified data according to another embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0075] Hereinafter, exemplary embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully communicated to those skilled in the art.
[0076] In the current field of application of event management and check-in technologies, traditional check-in methods still dominate, especially physical poster check-in. Although physical posters are widely used in various conferences, exhibitions, lectures, etc. due to their intuitiveness and ease of production, their inherent limitations are becoming increasingly prominent.
[0077] On the one hand, once a physical poster is produced and posted, the check-in positions, information content, etc. on it cannot be flexibly adjusted; on the other hand, the physical poster check-in method lacks necessary interactivity, and participants can only passively mark at the designated positions, unable to enjoy the convenience and fun brought by technology.
[0078] Currently, with the popularization of mobile Internet and intelligent terminal devices, people's demand for digital and personalized services is increasing day by day, and traditional physical poster check-in can no longer meet this trend. Therefore, exploring a new check-in method that can overcome the limitations of physical poster check-in and make full use of the advantages of electronic media, and developing a method and system that can make full use of diversified data to achieve efficient, intelligent, and personalized poster generation have become urgent problems to be solved.
[0079] To solve the problems existing in the above-mentioned prior art, the inventor proposed the solution of the present invention. An embodiment of the present invention provides a method for generating a poster based on diversified data, which can be executed in a computing device.
[0080] Figure 1 The flowchart of the method for generating a poster based on diversified data according to an embodiment of the present invention is shown, and this method is suitable for execution in a computing device.
[0081] As Figure 1 shown, the method for generating a poster based on diversified data proposed in this embodiment starts from step S102, and in step S102, it includes the following content:
[0082] Obtain the poster base map uploaded by the management end, and determine the check-in area and the identification code display area located in the poster base map.
[0083] For example, in this embodiment, the server will first obtain the poster image uploaded by the management end, that is, obtain the poster base map, so as to determine the check-in area and the identification code display area located in this poster base map.
[0084] Furthermore, the above-mentioned "obtain the poster base map uploaded by the management end, and determine the check-in area and the identification code display area located in the poster base map" further includes the following steps:
[0085] Obtain the poster base map uploaded by the management end, and determine each publicity area corresponding to each publicity element located in the poster base map;
[0086] Generate an identification code display area and a check-in area at a first preset position and a second preset position of the poster base map, respectively;
[0087] In response to a mobile interaction performed by the management end on any one of the identification code display area or the check-in area, determine this area as a mobile target area, and move the mobile target area from the corresponding preset position along the interaction direction of the management end to an area update position, so as to complete an update operation on the mobile target area based on the position dimension; and / or
[0088] In response to a drag interaction performed by the management end on any one of the area positioning corners included in any one of the identification code display area or the check-in area, determine this area as a drag target area, obtain a drag line segment corresponding to the drag interaction, and scale the size of the drag target area based on the drag line segment, so as to complete an update operation on the drag target area based on the size dimension;
[0089] Perform area comparison between the target areas obtained based on the update operation and each of the publicity areas respectively to obtain the coincidence degree of each area;
[0090] In response to the coincidence degree of any area being greater than the preset coincidence degree retrieved, delete the update operation corresponding to the target area.
[0091] For example, in this embodiment, the server will obtain the poster base map uploaded by the management end, and thus determine each publicity area corresponding to each publicity element in the poster base map. For example, the publicity element may be the company's trademark, etc.
[0092] Then, the server will generate an identification code display area and a check-in area at a first preset position and a second preset position of the poster base map respectively. For example, the identification code display area is usually placed at a corner of the poster base map, so the first preset position can be at the lower right corner of the poster base map. For another example, the check-in area is usually set at a relatively central position, so the second preset position can be at the center position of the poster base map.
[0093] After the server generates an identification code display area and a check-in area at a first preset position and a second preset position of the poster base map respectively, the management end can also adjust the positions and sizes of the identification code display area and the check-in area according to actual needs through the following methods.
[0094] When the management terminal performs a mobile interaction with either the identification code display area or the check-in area, the server will determine the area as the mobile target area, and move the mobile target area from the corresponding preset position along the interaction direction of the management terminal to the area update position to complete the location-based update operation of the mobile target area.
[0095] When the management terminal drags and interacts with any area positioning angle included in the identification code display area or the check-in area, the server will determine the area as the drag target area. The area positioning angle can be understood as the area angle of the identification code display area or the check-in area.
[0096] Then, the server will obtain the drag line segment formed corresponding to the drag interaction of the management end, and scale the drag target area according to the drag line segment to complete the update operation of the drag target area based on the size dimension.
[0097] In order to avoid as much as possible that the updated target area blocks a large area of the promotional area in the poster base image, the server will compare the target area obtained by the update operation with each promotional area to obtain the overlap degree of each area.
[0098] When the overlap degree of any area is greater than the preset overlap degree, it means that there is a large overlap between the target area and the promotion area, so the server will delete the update operation corresponding to the target area.
[0099] In step S104, the following contents are included:
[0100] A sign-in layer corresponding to the sign-in area is created, wherein the sign-in layer includes an element acquisition sublayer and an element arrangement sublayer.
[0101] For example, in this embodiment, the server creates a sign-in layer corresponding to the sign-in area, and the sign-in layer includes an element acquisition sublayer and an element arrangement sublayer.
[0102] In step S106, the following contents are included:
[0103] The control identification code generating end generates a sign-in identification code corresponding to the poster base image in the identification code display area, and in response to any user end scanning the sign-in identification code, displays the sign-in layer to the user end.
[0104] For example, in this embodiment, the server will control the identification code generation end to generate a check-in identification code corresponding to the poster base image in the identification code display area, so that when any user end scans the check-in identification code, the server will display the check-in layer to the user end.
[0105] Further, the step of "responding to any client scanning the check-in identification code and displaying the check-in layer to the client" further includes the following steps:
[0106] Retrieve and traverse a preset check-in list, where there are different device identification codes and corresponding terminal permissions for each different device identification code in the preset check-in list;
[0107] Based on the terminal permissions in the preset check-in list, form respective permission areas corresponding to different terminal permissions in the element arrangement sub-layer located in the check-in layer;
[0108] Responding to any client scanning the check-in identification code, obtain the device identification code and terminal permission corresponding to the client;
[0109] Responding to the device identification code corresponding to the client being in the preset check-in list, determine the permission area corresponding to the terminal permission of the client as the target area in the element arrangement sub-layer;
[0110] Responding to the device identification code corresponding to the client not being in the preset check-in list, determine the terminal permission corresponding to the client as the comparison permission, and determine the terminal permission with the maximum permission corresponding to each device identification code in the preset check-in list as the maximum permission;
[0111] Compare the comparison permission with the maximum permission, and responding to the comparison permission being greater than the maximum permission, determine the permission area corresponding to the maximum permission as the target area in the element arrangement sub-layer;
[0112] Mask all other permission areas in the element arrangement sub-layer except the target area, and send the check-in layer after the masking process to the client.
[0113] For example, in this embodiment, usually the list of participants for each meeting can be determined in advance, so a preset check-in list is set in the server.
[0114] Since there may be participants at different levels in a meeting, there are various different device identification codes and corresponding terminal permissions for each different device identification code in the preset check-in list.
[0115] The server will retrieve and traverse the preset check-in list, and thus form respective permission areas corresponding to different terminal permissions in the element arrangement sub-layer of the check-in layer according to the terminal permissions in the preset check-in list.
[0116] When any client scans the check-in identification code, the server will obtain the device identification code and terminal permissions corresponding to the client. When the device identification code corresponding to the client is in the preset check-in list, the server will determine the permission area corresponding to the terminal permissions of the client as the target area in the element arrangement sub-layer.
[0117] When the device identification code corresponding to the client is not in the preset check-in list, the server will determine the terminal permissions corresponding to the client as the comparison permissions, and then determine the terminal permissions with the maximum permissions among the device identification codes in the preset check-in list as the maximum permissions, and then compare the comparison permissions with the maximum permissions.
[0118] When the comparison permissions are greater than the maximum permissions, it means that the terminal permissions of the client corresponding to the comparison permissions are too high, that is, even if the terminal permissions corresponding to the client are not in the preset check-in list, the client can still participate in the meeting and check in at any time. Therefore, the server will determine the permission area corresponding to the maximum permissions as the target area in the element arrangement sub-layer.
[0119] After the server determines the corresponding target area, it will mask all other permission areas in the element arrangement sub-layer except the target area, and send the check-in layer after the masking process to the client, so that the client can quickly identify the corresponding check-in area.
[0120] In step S108, it includes the following content:
[0121] In response to the interaction of the client with the element acquisition sub-layer in the check-in layer, obtain the check-in element corresponding to the client, and generate an element sub-image corresponding to the check-in element in the element arrangement sub-layer.
[0122] For example, in this embodiment, after the client interacts with the element acquisition sub-layer in the check-in layer, the server will obtain the signature generated by the client through the interaction with the element acquisition sub-layer, that is, obtain the check-in element corresponding to the client, and then generate an element sub-image corresponding to the check-in element in the element arrangement sub-layer.
[0123] Furthermore, the above "In response to the interaction of the client with the element acquisition sub-layer in the check-in layer, obtain the check-in element corresponding to the client, and generate an element sub-image corresponding to the check-in element in the element arrangement sub-layer" further includes the following steps:
[0124] In response to the user terminal performing a writing interaction on the element acquisition sub-layer located in the check-in layer, acquire a check-in element corresponding to the user terminal, and generate an element sub-image corresponding to the check-in element in any blank area in the target area;
[0125] In response to the user terminal performing a moving interaction on the element sub-image, move the element sub-image from the current position of the element along the interaction direction of the user terminal to a first updated position located in the target area;
[0126] In response to the user terminal staying at the first updated position for a preset time, fix the element sub-image to the first updated position, and determine each element sub-image corresponding to other user terminals located in the target area as other element groups;
[0127] In response to determining that the element sub-image overlaps with at least one element sub-image in the other element group, determine a collision distance and a collision direction corresponding to the element sub-image based on the acquired overlapping part;
[0128] Move the element sub-image corresponding to the user terminal based on the collision direction by the collision distance to obtain the element sub-image located at the second updated position.
[0129] For example, in this embodiment, after the user terminal performs a writing interaction on the element acquisition sub-layer located in the check-in layer, the server will acquire a check-in element corresponding to the user terminal, and thus generate an element sub-image corresponding to the check-in element in any blank area in the target area.
[0130] The user terminal can perform a moving interaction on the element sub-image according to requirements. At this time, the server will move the element sub-image from the current position of the element along the interaction direction of the user terminal to a first updated position located in the target area. When the user terminal stays at the first updated position for a preset time, the server will fix the element sub-image to the first updated position.
[0131] To avoid the situation where it is impossible to fully display each element sub-image due to overlap between each element sub-image, the server will determine each element sub-image corresponding to other user terminals located in the target area as other element groups, and determine whether the element sub-image overlaps with at least one element sub-image in the other element group.
[0132] When the server determines that an element sub-image overlaps with at least one element sub-image located in other element groups, it determines the collision distance and collision direction corresponding to the element sub-image based on the obtained overlapping part, and thus moves the element sub-image corresponding to the client in the collision direction by the corresponding collision distance to obtain the element sub-image located at the second update position.
[0133] Further, the above-mentioned "in response to the client's writing interaction with the element acquisition sub-layer located in the check-in layer, acquiring the check-in element corresponding to the client and generating an element sub-image corresponding to the check-in element in any blank area in the target area" further includes the following steps:
[0134] In response to the client's writing interaction with the element acquisition sub-layer located in the check-in layer, acquiring the check-in element formed on the element acquisition sub-image based on the writing interaction;
[0135] Performing pixelization processing on the element acquisition sub-layer to obtain each writing pixel point that makes up the check-in element;
[0136] Performing coordinate processing on the element acquisition sub-layer to obtain each writing coordinate point corresponding to each writing pixel point respectively, and respectively determining the writing coordinate points corresponding to the maximum horizontal coordinate value, minimum horizontal coordinate value, maximum vertical coordinate value, and minimum vertical coordinate value as the maximum horizontal coordinate point, minimum horizontal coordinate point, maximum vertical coordinate point, and minimum vertical coordinate point;
[0137] Respectively taking the maximum horizontal coordinate point and the minimum horizontal coordinate point as starting points, constructing a first vertical line segment and a second vertical line segment extending in the vertical direction, and respectively taking the maximum vertical coordinate point and the minimum vertical coordinate point as starting points, constructing a first horizontal line segment and a second horizontal line segment extending in the horizontal direction;
[0138] Controlling the first vertical line segment, the second vertical line segment, the first horizontal line segment, and the second horizontal line segment to extend respectively to form an initial rectangular area, and acquiring each corner point position corresponding to the initial rectangular area;
[0139] Respectively acquiring each point position distance between each writing pixel point and each corner point position, and in response to any point position distance being greater than the preset point position threshold, invoking a preset area optimization strategy to perform area optimization on the initial rectangular area to obtain the current rectangular area;
[0140] Mapping the current rectangular area to any blank area in the target area to obtain an element sub-image corresponding to the check-in element.
[0141] For example, in this embodiment, after the client performs a writing interaction on the sub-layer for obtaining elements located in the check-in layer, the server will obtain the check-in elements formed on the sub-image for obtaining elements based on the writing interaction, and then perform pixelization processing on the sub-layer for obtaining elements, so as to obtain each writing pixel point that makes up the check-in elements.
[0142] Then, the server will perform coordinate processing on the sub-layer for obtaining elements, so as to obtain each writing coordinate point corresponding to each writing pixel point respectively, and then respectively determine the writing coordinate points corresponding to the maximum horizontal coordinate value, the minimum horizontal coordinate value, the maximum vertical coordinate value, and the minimum vertical coordinate value as the maximum horizontal coordinate point, the minimum horizontal coordinate point, the maximum vertical coordinate point, and the minimum vertical coordinate point.
[0143] Since different writing habits may cause some check-in elements to be horizontal and some check-in elements to be inclined. In order to improve a certain space utilization rate, that is, to make there be no excessive blank parts in the element sub-image of each corresponding check-in element generated, the server will respectively construct a first vertical line segment and a second vertical line segment extending along the vertical direction with the maximum horizontal coordinate point and the minimum horizontal coordinate point as the starting points, and respectively construct a first horizontal line segment and a second horizontal line segment extending along the horizontal direction with the maximum vertical coordinate point and the minimum vertical coordinate point as the starting points.
[0144] Then, the server will control the first vertical line segment, the second vertical line segment, the first horizontal line segment, and the second horizontal line segment to extend respectively to form an initial rectangular area, as Figure 2 shown. And obtain each corner point position corresponding to the initial rectangular area, and then respectively obtain the position distances between each writing pixel point and each corner point position.
[0145] When any one of the position distances is greater than the preset position threshold, it means that the position distance between the writing pixel point corresponding to the position distance and the corner point position is too large. Therefore, the server will call the preset area optimization strategy to perform area optimization on the initial rectangular area, so as to obtain the current rectangular area.
[0146] Finally, the server will map the current rectangular area to any blank area located in the target area, so as to obtain the element sub-image corresponding to the check-in element.
[0147] Furthermore, the above "call the preset area optimization strategy to perform area optimization on the initial rectangular area to obtain the current rectangular area" further includes the following steps:
[0148] Determine the rectangular center point corresponding to the initial rectangular area, and obtain each position connection line between each corner point position and the rectangular center point;
[0149] Taking each of the corner points as a starting point, establish respective corner extension lines perpendicular to the connecting lines of the points, and move each corner extension line forward along the corresponding connecting line of the points towards the center point of the rectangle;
[0150] In response to any corner extension line contacting any writing pixel point, control the corner extension line to move backward by a corresponding preset distance away from the center point of the rectangle;
[0151] In response to each corner extension line completing the backward movement, control each corner extension line to extend to form the current rectangular area.
[0152] For example, in this embodiment, the server first determines the center point of the rectangle corresponding to the initial rectangular area, and then obtains each connecting line between each corner point and the center point of the rectangle. Thus, respective corner extension lines perpendicular to each connecting line are established with each corner point as a starting point, as Figure 3 shown.
[0153] Subsequently, the server moves each corner extension line forward along the corresponding connecting line of the points towards the center point of the rectangle. When any corner extension line contacts any writing pixel point, it indicates that the corner extension line has overlapped with the writing pixel points forming the check-in element. To ensure that the check-in element can be fully displayed subsequently, the server controls the corner extension line to move backward by a corresponding preset distance away from the center point of the rectangle.
[0154] When each corner extension line has completed the backward movement, the server controls each corner extension line to extend until the current rectangular area is formed.
[0155] Furthermore, the above "determining the collision distance and collision direction corresponding to the element sub-image based on the obtained overlapping part" further includes the following steps:
[0156] Obtain each image frame line located at the edge of the element sub-image, and determine the extension direction of any image frame line as the first image direction and the direction perpendicular to the first image direction as the second image direction;
[0157] Control the element sub-image to be translated successively along the first image direction and the second image direction until there is no such overlapping part, and obtain the first translation distance corresponding to the first image direction and the second translation distance corresponding to the second image direction;
[0158] Sum the translation distance with the smallest corresponding distance among the first translation distance and the second translation distance and the retrieved preset spacing threshold, and determine the obtained sum value as the collision distance and the image direction corresponding to the translation distance as the collision direction.
[0159] For example, in this embodiment, the server first obtains each image frame line located at the edge of the element sub-image, determines the extension direction of any one image frame line as the first image direction, and then determines the direction perpendicular to one image direction as the second image direction.
[0160] Then, the server controls the element sub-image to be translated along the first image direction and the second image direction in turn to an area without overlapping parts, and respectively obtains the first translation distance corresponding to the first image direction and the second translation distance corresponding to the second image direction.
[0161] Next, the server sums the translation distance with the smallest corresponding distance among the first translation distance and the second translation distance and the preset spacing threshold retrieved, thereby determining the obtained summation value as the collision distance, and determining the image direction corresponding to this translation distance as the collision direction.
[0162] This embodiment can determine the collision distance according to the translation distance with the smallest corresponding distance among the first translation distance and the second translation distance, so as to make the distance between the second updated position of the element sub-image after the collision and the first updated position before the collision as close as possible.
[0163] In step S110, the following content is included:
[0164] In response to any element sub-image in a dispersed state included in the element arrangement sub-layer, the image position of the element sub-image is adjusted based on a preset adjustment strategy to convert the element sub-image from a dispersed state to a closed state.
[0165] For example, in this embodiment, when there is any element sub-image in a dispersed state in the element arrangement sub-layer, it means that the distance between some element sub-images is too large, which may cause subsequent other element sub-images to have no suitable positions.
[0166] To leave sufficient placement positions for subsequent element sub-images and improve a certain aesthetic quality, the server adjusts the image position of the element sub-image based on a preset adjustment strategy to convert the element sub-image from a dispersed state to a closed state.
[0167] Further, the above "In response to any element sub-image in a dispersed state included in the element arrangement sub-layer, the image position of the element sub-image is adjusted based on a preset adjustment strategy to convert the element sub-image from a dispersed state to a closed state" further includes the following steps:
[0168] Obtain the respective image center points corresponding to all element sub-images located in the element arrangement sub-layer, and connect the positions of each image center point respectively to obtain each image connection line;
[0169] Respectively determine the respective connection lengths corresponding to all image connection lines corresponding to the same element sub-image, and compare the smallest connection length with a preset dispersion threshold;
[0170] In response to the connection length being greater than or equal to the preset dispersion threshold, determine that the element sub-image is in a dispersed state, and control the element sub-image to translate along the corresponding image connection line;
[0171] In response to the element sub-image colliding with any other element sub-image, control the element sub-image to stop translating, and determine that the element sub-image is converted from the dispersed state to the closed state.
[0172] For example, in this embodiment, the server will obtain the image center points of all element sub-images located in the element arrangement sub-layer, and connect the positions of each image center point respectively to obtain each image connection line.
[0173] Then, the server will respectively determine the respective connection lengths of all image connection lines corresponding to the same element sub-image, and then compare the smallest connection length with the preset dispersion threshold. When the connection length is greater than or equal to the preset dispersion threshold, it means that the distance between the element sub-image and other element sub-images is too far. Therefore, the server will determine that the element sub-image is in a dispersed state, and thus control the element sub-image to translate along the corresponding image connection line.
[0174] When an element sub-image collides with any other element sub-image, the server will control the element sub-image to stop translating, so as to convert the element sub-image from the dispersed state to the closed state.
[0175] Furthermore, the above method further includes the following steps:
[0176] Determine the respective sub-image areas corresponding to the respective element sub-images located in the element arrangement sub-layer, and perform a summation calculation based on the sub-image areas to obtain a sub-image total value;
[0177] Calculate the ratio of the sub-image total value to the layer area corresponding to the element arrangement sub-layer to obtain the element proportion corresponding to each element sub-image;
[0178] Retrieve a preset proportion threshold, and compare the element proportion with the preset proportion threshold;
[0179] In response to the comparison result that the element proportion is greater than or equal to the preset proportion threshold, determine, in the element arrangement sub-layer, an element area that encloses all element sub-images;
[0180] Obtain an element center point corresponding to the element area, and connect the element center point and the layer center point corresponding to the element arrangement sub-layer point by point to obtain a layer connection line;
[0181] Obtain an area intersection point between the layer connection line and the element area, and use the area intersection point as a reduction reference point to reduce the element area until the element proportion is less than the preset proportion threshold.
[0182] For example, in this embodiment, the server will determine the sub-image areas of each element sub-image in the element arrangement sub-layer, and then sum up the sub-image areas to obtain the total sub-image value.
[0183] Then, the server will calculate the ratio of the total sub-image value to the layer area of the corresponding element arrangement sub-layer to obtain the element proportion of each element sub-image, then retrieve the preset proportion, and compare the element proportion with the preset proportion threshold.
[0184] When the comparison result is that the element proportion is greater than or equal to the preset proportion threshold, it means that the element proportion of each element sub-image is too large. Therefore, the server will first determine, in the element arrangement sub-layer, an element area that can enclose all element sub-images, and then obtain the element center point of the element area.
[0185] Then, the server will connect the element center point and the layer center point of the element arrangement sub-layer point by point to obtain a layer connection line. Then, obtain the area intersection point between the layer connection line and the element area, and use the area intersection point as a reduction reference point to reduce the element area until the element proportion is less than the preset proportion threshold.
[0186] This embodiment can not only make the element proportion not too large after reducing the element area, but also make the element area approach the layer center point during the reduction process, so that each element sub-image located in the element area can be more prominent.
[0187] In step S112, the following contents are included:
[0188] Add the element arrangement sub-layer to the check-in area to update the poster base map to obtain a poster check-in map.
[0189] For example, in this embodiment, the server will add the element arrangement sub-layer to the check-in area to update the poster base map to obtain a poster check-in map.
[0190] According to the solution of the present invention, the server can obtain the poster base map uploaded by the management end, determine the check-in area and the identification code display area located in the poster base map, and then create a check-in layer corresponding to the check-in area. The check-in layer includes an element acquisition sub-layer and an element arrangement sub-layer. Then, the server controls the identification code generation end to generate a check-in identification code corresponding to the poster base map in the identification code display area. Thus, when a user end scans the check-in identification code, the server will display the check-in layer to the user end. Next, when the user end interacts with the element acquisition sub-layer in the check-in layer, the server will obtain the check-in element corresponding to the user end, and then generate an element sub-image corresponding to the check-in element in the element arrangement sub-layer. When any element sub-image in the element arrangement sub-layer is in a dispersed state, it means that the distance between some element sub-images is too large. The server will adjust the image position of the element sub-image based on a preset adjustment strategy to convert the element sub-image from a dispersed state to a closed state, which can improve a certain space utilization rate. Finally, the server will add the check-in layer to the check-in area to update the poster base map to obtain a poster check-in map. The present invention can improve the interaction experience of users and has a certain feasibility.
[0191] Another embodiment of the present invention provides a poster generation system based on diversified data. Figure 4 For its corresponding system block diagram, the system includes:
[0192] A determination module, configured to obtain the poster base map uploaded by the management end and determine the check-in area and the identification code display area located in the poster base map;
[0193] A creation module, configured to create a check-in layer corresponding to the check-in area, where the check-in layer includes an element acquisition sub-layer and an element arrangement sub-layer;
[0194] A display module, configured to control the identification code generation end to generate a check-in identification code corresponding to the poster base map in the identification code display area, and in response to any user end scanning the check-in identification code, display the check-in layer to the user end;
[0195] An interaction module, configured to, in response to the user end interacting with the element acquisition sub-layer in the check-in layer, obtain the check-in element corresponding to the user end and generate an element sub-image corresponding to the check-in element in the element arrangement sub-layer;
[0196] An adjustment module, configured to respond to any element sub - image in a dispersed state included in the element arrangement sub - layer, and adjust the image position of the element sub - image based on a preset adjustment strategy to convert the element sub - image from a dispersed state to a closed state;
[0197] An update module, configured to add the element arrangement sub - layer to the check - in area to update the poster base map, obtaining a poster check - in map.
[0198] For example, the system provided in this embodiment may further include the following contents:
[0199] Design template library:
[0200] - High degree of customization: The built - in design template library supports a high degree of customization, and users can select or customize templates according to their needs.
[0201] - Keyword or theme generation: The system can automatically generate poster design schemes that are closely related to the theme and have diverse styles according to the input keywords or themes.
[0202] Diversified activity templates:
[0203] - Add a template library specifically designed for event promotion, covering different types of events (such as concerts, exhibitions, promotional activities, etc.), and users can select appropriate templates according to the specific event requirements.
[0204] Dynamic content integration:
[0205] - Support integrating dynamic content of the event (such as event time, location, guest information, etc.) into the poster design, and users can easily update this information to ensure the timeliness and accuracy of the poster content.
[0206] Social media optimization:
[0207] - Provide optimized poster design schemes for the poster sizes and format requirements of different social media platforms (such as Weibo, WeChat, Instagram, etc.) to ensure the best display effect of the poster on each platform.
[0208] Interactive posters:
[0209] - Research and develop posters with interactive elements such as QR codes, link buttons, etc., to enhance the user's interaction experience with the poster and increase the effect of event promotion.
[0210] It should be noted that, in this embodiment, the system can make full use of diversified data resources to achieve automated and personalized design of posters. For example, by collecting and analyzing multi-dimensional information such as user behavior data, market trends, and visual element libraries, and applying advanced machine learning and artificial intelligence algorithms, it can intelligently match and integrate the most suitable design elements such as graphics, colors, and texts. Further, the system also has a corresponding design template library built-in to support highly customized settings. Users can select or customize templates according to their needs. At the same time, the system can also automatically generate poster design schemes that are closely related to the theme and have diverse styles based on the input keywords or themes. In addition, the system also has real-time rendering and preview functions, enabling users to immediately see the design effects and make adjustments, greatly improving the efficiency and personalization level of poster creation. This solution is not only applicable to scenarios such as commercial promotion and event promotion, but also can be extended to multiple fields such as personal creative expression and social media content creation.
[0211] In the specification provided herein, the algorithms and displays are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the examples of the present invention. The structure required to construct such systems will be apparent from the above description. In addition, the present invention is not directed to any particular programming language. It should be understood that the content of the present invention described herein can be implemented using various programming languages, and the description of the specific language above is for the purpose of disclosing the preferred embodiments of the present invention.
[0212] In the specification provided herein, a large number of specific details are set forth. However, it can be understood that the embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures, and technologies have not been shown in detail so as not to obscure the understanding of this specification.
[0213] Similarly, it should be understood that, in order to streamline this disclosure and assist in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof.
[0214] Those skilled in the art should understand that the modules, units, or components of the devices in the examples disclosed herein can be arranged in the devices as described in this embodiment, or alternatively can be located in one or more devices different from the devices in this example. The modules in the foregoing examples can be combined into one module or further divided into multiple sub-modules.
[0215] Those skilled in the art can understand that the modules in the devices in the embodiments can be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition, they can be divided into multiple sub-modules or sub-units or sub-components.
[0216] In addition, those skilled in the art can understand that although some of the embodiments described herein include certain features included in other embodiments rather than other features, the combination of features of different embodiments means that it is within the scope of the present invention and forms different embodiments.
[0217] In addition, some of the embodiments herein are described as a combination of methods or method elements that can be implemented by a processor of a computer system or by other devices performing the functions. Therefore, a processor having the necessary instructions for implementing the method or method element forms a device for implementing the method or method element. In addition, the elements described herein in the device embodiments are examples of such devices: the device is used to implement the functions performed by the elements for the purpose of implementing the present invention.
[0218] As used herein, unless otherwise specified, the use of ordinal numbers "first", "second", "third", etc. to describe ordinary objects only represents different instances of similar objects, and does not intend to imply that the objects so described must have a given order in terms of time, space, sorting, or in any other way.
[0219] Although the present invention is described in terms of a limited number of embodiments, those skilled in the art in this technical field will understand, based on the above description, that other embodiments can be envisioned within the scope of the present invention thus described. In addition, it should be noted that the language used in this specification is mainly selected for the purpose of readability and teaching, rather than for the purpose of explaining or limiting the subject matter of the present invention.
Claims
1. A poster generation method based on diversified data, characterized in that, Including: Obtain the poster base map uploaded by the management terminal, and determine the check-in area and the identification code display area located on the poster base map; Create a check-in layer corresponding to the check-in area, where the check-in layer includes an element acquisition sub-layer and an element arrangement sub-layer; Control the identification code generation terminal to generate a check-in identification code corresponding to the poster base map in the identification code display area, and in response to any user terminal scanning the check-in identification code, display the check-in layer to the user terminal; In response to the user terminal interacting with the element acquisition sub-layer located in the check-in layer, obtain the check-in elements corresponding to the user terminal, and generate element sub-images corresponding to the check-in elements in the element arrangement sub-layer; In response to any element sub-image in the element arrangement sub-layer being in a dispersed state, adjust the image position of the element sub-image based on a preset adjustment strategy to convert the element sub-image from a dispersed state to a closed state; Add the element arrangement sub-layer to the check-in area to update the poster for the poster base map, obtaining a poster check-in map; It also includes: Determine the respective sub-image areas corresponding to the respective element sub-images located in the element arrangement sub-layer, and perform a summation calculation based on the respective sub-image areas to obtain a sub-image total value; Calculate the ratio of the sub-image total value to the layer area of the corresponding element arrangement sub-layer to obtain the element proportion of the corresponding respective element sub-images; Retrieve a preset proportion threshold, and compare the element proportion with the preset proportion threshold; In response to the comparison result being that the element proportion is greater than or equal to the preset proportion threshold, determine an element area that encloses all the element sub-images in the element arrangement sub-layer; Obtain the element center point corresponding to the element area, and connect the element center point with the layer center point corresponding to the element arrangement sub-layer to obtain a layer connection line; Obtain the area intersection point between the layer connection line and the element area, and use the area intersection point as the reduction reference point to reduce the element area until the element proportion is less than the preset proportion threshold.
2. The poster generation method based on diversified data according to claim 1, wherein Obtaining the poster base map uploaded by the management terminal and determining the check-in area and the identification code display area located on the poster base map includes: Obtain the poster base map uploaded by the management terminal, and determine the respective promotion areas corresponding to the respective promotion elements in the poster base map; Generate an identification code display area and a check-in area at a first preset position and a second preset position respectively located on the poster base map; In response to the management terminal performing a movement interaction on any one of the identification code display area or the check-in area, determine the area as a movement target area, and move the movement target area from the corresponding preset position to the area update position along the interaction direction of the management terminal to complete the update operation of the movement target area based on the position dimension; and / or In response to a drag interaction performed by the management terminal on any one of the region positioning corners included in either the identification code display region or the check-in region, determine this region as the drag target region, obtain a drag line segment corresponding to the drag interaction, and perform size scaling on the drag target region based on the drag line segment to complete an update operation on the drag target region based on the size dimension; Perform a region comparison between the target region obtained based on the update operation and each of the promotion regions respectively to obtain the coincidence degree of each region; In response to the coincidence degree of any region being greater than a preset coincidence degree retrieved, delete the update operation corresponding to the target region.
3. The method for generating a poster based on diversified data according to claim 1, wherein In response to any user terminal scanning the check-in identification code, display the check-in layer to the user terminal, including: Retrieve and traverse a preset check-in list, where each different device identification code and each terminal permission corresponding to each different device identification code exist in the preset check-in list; Based on each terminal permission in the preset check-in list, form respective permission regions corresponding to different terminal permissions in the element arrangement sub-layer in the check-in layer; In response to any user terminal scanning the check-in identification code, obtain the device identification code and terminal permission corresponding to the user terminal; In response to the device identification code corresponding to the user terminal being in the preset check-in list, determine the permission region corresponding to the terminal permission of the user terminal as the target region in the element arrangement sub-layer; In response to the device identification code corresponding to the user terminal not being in the preset check-in list, determine the terminal permission corresponding to the user terminal as the comparison permission, and determine the terminal permission with the maximum permission corresponding to each device identification code in the preset check-in list as the maximum permission; Compare the comparison permission with the maximum permission, and in response to the comparison permission being greater than the maximum permission, determine the permission region corresponding to the maximum permission as the target region in the element arrangement sub-layer; Perform a masking process on all other permission regions in the element arrangement sub-layer except the target region, and send the check-in layer after the masking process to the user terminal.
4. The method for generating a poster based on diversified data according to claim 3, wherein In response to a user terminal interacting with the element acquisition sub-layer in the check-in layer, obtain a check-in element corresponding to the user terminal, and generate an element sub-image corresponding to the check-in element in the element arrangement sub-layer, including: In response to the user terminal performing a writing interaction on the element acquisition sub-layer in the check-in layer, obtain a check-in element corresponding to the user terminal, and generate an element sub-image corresponding to the check-in element in any blank area in the target region; In response to the user terminal performing a moving interaction on the element sub-image, move the element sub-image from the current position of the element along the interaction direction of the user terminal to a first updated position in the target region; In response to the user terminal performing a dwell interaction on the first updated position for a preset time, fix the element sub-image to the first updated position, and determine each element sub-image corresponding to other user terminals located in the target area as other element groups; In response to determining that the element sub-image overlaps with at least one element sub-image in the other element group, determine the collision distance and collision direction corresponding to the element sub-image based on the obtained overlapping part; Perform a collision movement of the element sub-image corresponding to the user terminal in the corresponding collision distance based on the collision direction to obtain the element sub-image located at the second updated position.
5. The method for generating a poster based on diversified data according to claim 4, wherein In response to the user terminal performing a writing interaction on the element acquisition sub-layer located on the check-in layer, obtain a check-in element corresponding to the user terminal, and generate an element sub-image corresponding to the check-in element in any blank area in the target area, including: In response to the user terminal performing a writing interaction on the element acquisition sub-layer located on the check-in layer, obtain the check-in element formed on the element acquisition sub-image based on the writing interaction; Perform pixelization processing on the element acquisition sub-layer to obtain each writing pixel point that makes up the check-in element; Perform coordinate processing on the element acquisition sub-layer to obtain each writing coordinate point corresponding to each writing pixel point respectively, and determine the writing coordinate points corresponding to the maximum horizontal coordinate value, minimum horizontal coordinate value, maximum vertical coordinate value, and minimum vertical coordinate value as the maximum horizontal coordinate point, minimum horizontal coordinate point, maximum vertical coordinate point, and minimum vertical coordinate point respectively; Construct a first vertical line segment and a second vertical line segment extending in the vertical direction with the maximum horizontal coordinate point and the minimum horizontal coordinate point as starting points respectively, and construct a first horizontal line segment and a second horizontal line segment extending in the horizontal direction with the maximum vertical coordinate point and the minimum vertical coordinate point as starting points respectively; Control the first vertical line segment, the second vertical line segment, the first horizontal line segment, and the second horizontal line segment to extend to form an initial rectangular area, and obtain each corner point position corresponding to the initial rectangular area; Obtain the distance between each writing pixel point and each corner point position respectively. In response to any point distance being greater than the preset point threshold, call the preset area optimization strategy to perform area optimization on the initial rectangular area to obtain the current rectangular area; Map the current rectangular area to any blank area in the target area to obtain an element sub-image corresponding to the check-in element.
6. The method for generating a poster based on diversified data according to claim 5, wherein Calling the preset area optimization strategy to perform area optimization on the initial rectangular area to obtain the current rectangular area, including: Determine the rectangular center point corresponding to the initial rectangular area, and obtain each point connection line between each corner point position and the rectangular center point; Taking each of the corner points as a starting point, establish extension lines of each corner perpendicular to the connection lines of each point, and move each extension line of the corner in the positive direction along the corresponding connection line of each point towards the center point of the rectangle; In response to any extension line of a corner contacting any writing pixel point, control the extension line of the corner to move in the reverse direction by a corresponding preset distance away from the center point of the rectangle; In response to each extension line of the corner completing the reverse movement, control each extension line of the corner to extend to form the current rectangular area.
7. The method for generating a poster based on diversified data according to claim 6, wherein, Determining the collision distance and collision direction corresponding to the element sub-image based on the obtained overlapping part, including: Obtain each image frame line located at the edge of the element sub-image, and determine the extension direction of any image frame line as the first image direction, and determine the direction perpendicular to the first image direction as the second image direction; Control the element sub-image to be translated successively along the first image direction and the second image direction until there is no such overlapping part, and obtain the first translation distance corresponding to the first image direction and the second translation distance corresponding to the second image direction; Sum and calculate the translation distance with the smallest corresponding distance from the first translation distance and the second translation distance and the preset spacing threshold retrieved, and determine the obtained sum value as the collision distance, and determine the image direction corresponding to the translation distance as the collision direction.
8. The method for generating a poster based on diversified data according to claim 1, wherein, In response to any element sub-image in a dispersed state being included in the element arrangement sub-layer, adjust the image position of the element sub-image based on a preset adjustment strategy to convert the element sub-image from a dispersed state to a closed state, including; Obtain the respective image center points corresponding to all element sub-images located in the element arrangement sub-layer, and connect the positions of each image center point to obtain each image connection line; Respectively determine the respective connection lengths corresponding to all image connection lines corresponding to the same element sub-image, and compare the smallest corresponding connection length with a preset dispersion threshold; In response to the connection length being greater than or equal to the preset dispersion threshold, determine that the element sub-image is in a dispersed state, and control the element sub-image to be translated along the corresponding image connection line; In response to the element sub-image conflicting with any other element sub-image, control the element sub-image to stop translating, and determine that the element sub-image is converted from the dispersed state to the closed state.
9. A poster generation system based on diversified data, characterized in that Including: A determination module, configured to obtain the poster base map uploaded by the management end, and determine the check-in area and the identification code display area located on the poster base map; A creation module, configured to create a check-in layer corresponding to the check-in area, wherein the check-in layer includes an element acquisition sub-layer and an element arrangement sub-layer; A display module, configured to control the identification code generation end to generate a check-in identification code corresponding to the poster base map in the identification code display area, and in response to any user end scanning the check-in identification code, display the check-in layer to the user end; An interaction module, configured to obtain a check-in element corresponding to the user side in response to the user side interacting with the sub-layer obtained from the element in the check-in layer, and generate an element sub-image corresponding to the check-in element in the element arrangement sub-layer; An adjustment module, configured to, in response to any element sub-image in the element arrangement sub-layer being in a dispersed state, adjust the image position of the element sub-image based on a preset adjustment strategy to convert the element sub-image from the dispersed state to a closed state; An update module, configured to add the element arrangement sub-layer to the check-in area to update the poster base map to obtain a poster check-in map; It further includes: Determine the sub-image areas corresponding to the respective element sub-images located in the element arrangement sub-layer, and perform a summation calculation based on the sub-image areas to obtain a total sub-image value; Calculate the ratio of the total sub-image value to the layer area of the corresponding element arrangement sub-layer to obtain the element proportion corresponding to each element sub-image; Retrieve a preset proportion threshold, and compare the element proportion with the preset proportion threshold; In response to the comparison result that the element proportion is greater than or equal to the preset proportion threshold, determine an element area that encloses all the element sub-images in the element arrangement sub-layer; Obtain an element center point corresponding to the element area, and connect the element center point with the layer center point corresponding to the element arrangement sub-layer to obtain a layer connection line; Obtain an area intersection point between the layer connection line and the element area, and use the area intersection point as a reduction reference point to reduce the element area until the element proportion is less than the preset proportion threshold.
Citation Information
Patent Citations
Attendance information display method and device
CN107315555A