Information board information encryption release security processing method and terminal
By identifying damaged areas of the intelligence board and dynamically adjusting the displayed content, the problem of poor information transmission when the intelligence board is damaged is solved, and key information communication and information security are improved in the event of damage are achieved.
Patent Information
- Application Number
- CN202411785607.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the intelligence board is damaged, it is difficult to identify and adjust the information release strategy in a timely manner, resulting in the information in the damaged area being difficult to identify or completely blocked, affecting the communication of information and the safety of the driver.
By controlling the intelligence acquisition device to collect information on the intelligence board, compare the standard images of the intelligence board and the collected images to determine the damaged area, dynamically adjust the font size and number of words of the displayed content, and realize customized display of information.
Ensure that critical intelligence can be conveyed effectively and clearly in the event of partially damaged intelligence boards, avoid traffic accidents, and improve information security through encrypted transmission.
Smart Images

Figure CN119653023A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to data processing technology, and in particular to a method and a terminal for securely processing information encryption and release of information on an information board. Background Art
[0002] In the intelligent traffic management system, information boards, as a key information release platform, are widely used in traffic networks such as highways and urban roads to display key information such as traffic conditions, accident warnings, and construction notices in real time, which is of great significance for improving road traffic efficiency and ensuring driving safety. However, after long-term operation and in harsh environments, some areas of information boards may be damaged, such as LED light failure, display screen scratches or obstructions. If these damages are not handled in a timely and proper manner, they will directly affect the accurate transmission of intelligence information and may even mislead drivers and increase the risk of traffic accidents.
[0003] Disadvantages of existing technology At present, the release and processing of information on information boards focuses more on content updates and transmission efficiency, while the monitoring of the physical status of information boards and the adjustment of information release strategies are relatively lagging behind. Specifically, when a damaged area appears on an information board, the existing information release system often fails to identify and make corresponding adjustments in a timely manner, and still releases information in the established format and font size, resulting in the information in the damaged area being difficult to identify or completely blocked, and important information cannot be effectively conveyed to the driver. In addition, even if some systems can identify damage, they often simply reduce the displayed content or issue maintenance prompts, lacking the ability to customize the displayed content according to the specific location and scope of the damaged area, such as adjusting the font size, re-layout the displayed content, etc., making it impossible to maximize the use of the remaining intact display area to ensure the integrity and readability of the information.
[0004] Therefore, in response to the above-mentioned deficiencies in the prior art, the present invention can dynamically adjust the font size and number of words of the displayed content according to the damaged area of the information board, thereby realizing customized display of information, and ensuring that even when the information board is partially damaged, key information can still be effectively and clearly conveyed to avoid the occurrence of traffic accidents. Summary of the invention
[0005] The present invention provides a method and terminal for securely processing information encryption and release of information boards, which can dynamically adjust the font size and number of words of the displayed content according to the damaged area of the information board, realize customized display of information, and ensure that when the information board is partially damaged, key information can still be effectively and clearly conveyed to avoid traffic accidents.
[0006] The first aspect of the present invention provides a method for securely processing information encryption and publishing of information boards, comprising: Controlling the information collection device to collect information from the information board to obtain an information collection image corresponding to the information board, and determining the damaged area by comparing the information standard image of the information board with the information collection image; Determine the effective area according to the damaged area and the display area in the intelligence collection image, obtain the customized display word count based on the effective area and the standard character area, and obtain the limited word count of the standard intelligence sentence in the intelligence standard image; Based on the numerical relationship between the customized display word count and the limited word count, the customized display strategy is called to customize the standard intelligence sentence to obtain a display intelligence sentence; The display information statement is updated to the information board and collected to obtain a customized display image, and the customized display image is encrypted and sent to the publishing end, and the publishing end decrypts and publishes the encrypted customized display image.
[0007] Optionally, in a possible implementation manner of the first aspect, the controlling the information collection device to collect information from the information board to obtain an information collection image corresponding to the information board, and determining the damaged area according to the information standard image of the information board and the information collection image, including: Controlling the information collection device to collect information from the information board to obtain an information collection image corresponding to the information board; Determine a real-time display image of a display area corresponding to the information board in the information collection image based on OpenCV; Retrieving the intelligence standard image of the display area corresponding to the intelligence board, performing coordinate processing on the real-time display image according to the center point of the real-time display image, and performing coordinate processing on the intelligence standard image based on the center point of the intelligence standard image; Obtaining the real-time pixel value of the corresponding pixel point of the real-time display image and the theoretical pixel value of the corresponding pixel point of the intelligence standard image at the same coordinates; When it is determined that the real-time pixel value and the theoretical pixel value under the same coordinate are different, the corresponding coordinate is used as a damaged coordinate, and adjacent damaged coordinates are counted to obtain a plurality of damaged sets; Determine a longitudinal damage area line according to a minimum abscissa value and a maximum abscissa value in the damage set; A plurality of damaged areas corresponding to the intelligence collection image are determined based on the longitudinal damaged area line.
[0008] Optionally, in a possible implementation manner of the first aspect, determining the valid area according to the damaged area and the display area in the intelligence collection image includes: Acquire the damaged area adjacent to the display area as an adjacent area, select the adjacent area on the left side as the first adjacent area, and select the adjacent area on the right side as the second adjacent area; The longitudinal damaged region line on the right side of the first adjacent region is used as a first spacing region line, and the longitudinal damaged region line on the left side of the second adjacent region is used as a second spacing region line; The display area is intercepted according to the first spacing area line and the second spacing area line to obtain a middle spacing area corresponding to the adjacent area; Selecting the damaged area closest to the longitudinal area line corresponding to the left side of the display area as the first boundary area, and selecting the damaged area closest to the longitudinal area line corresponding to the right side of the display area as the second boundary area; The longitudinal damaged area line on the left side of the first boundary area is used as the first boundary area line, and the longitudinal damaged area line on the right side of the second boundary area is used as the second boundary area line; Determine a left spacing area based on a longitudinal area line corresponding to the left side of the display area and the first boundary area line, and determine a right spacing area based on a longitudinal area line corresponding to the right side of the display area and the second boundary area line; Obtaining a spacing area according to the left spacing area, the right spacing area and the middle spacing area; Retrieving the standard character area corresponding to the standard character of the standard intelligence sentence, and when it is determined that the corresponding spacing area is smaller than the standard character area, treating the corresponding spacing area as an invalid area; The display area is deleted and updated according to the invalid area and the damaged area to obtain a valid area.
[0009] Optionally, in a possible implementation of the first aspect, obtaining the customized display word count based on the valid area and the standard character area, and obtaining the word count limit of the standard intelligence sentence in the intelligence standard image, includes: Acquire the area width of each of the valid areas as the effective width, and the area width of the standard character area as the character width; According to the ratio of the effective width to the character width, the number of regional words corresponding to the effective area is obtained, and the number of regional words is counted to obtain the number of customized display words; The key characters corresponding to the standard intelligence sentence in the intelligence standard image are obtained, and the number of the key characters is counted as the limited number of characters.
[0010] Optionally, in a possible implementation of the first aspect, based on the numerical relationship between the customized display word count and the limited word count, calling a customized display strategy to customize the standard intelligence sentence to obtain a displayed intelligence sentence includes: When it is determined that the number of customized display characters is greater than or equal to the limited number of characters, the standard intelligence sentence is reduced based on the character reduction strategy and the number of customized display characters to obtain a display intelligence sentence; When it is determined that the customized display word count is less than the limited word count, the standard intelligence sentence is customized according to the customized adjustment strategy and the limited word count to obtain a display intelligence sentence.
[0011] Optionally, in a possible implementation of the first aspect, when determining that the customized display word count is greater than or equal to the limited word count, reducing the standard intelligence sentence based on a character reduction strategy and the customized display word count to obtain a display intelligence sentence includes: When it is determined that the number of customized display characters is greater than or equal to the limited number of characters, the preset character priority corresponding to the standard intelligence sentence is retrieved, and the associated phrases in the standard intelligence sentence are obtained; Sort the characters in the standard intelligence sentence based on the preset character priority to obtain a character sequence corresponding to the standard intelligence sentence; The number of characters corresponding to the standard intelligence sentence is obtained as the standard number of characters, and the number of deleted characters is obtained according to the difference between the standard number of characters and the customized display number of characters; Selecting the first character in the character sequence as a deletion character, determining the associated phrase where the deletion character is located as a deletion phrase, and deleting and updating the character sequence based on the characters in the deletion phrase to obtain a current character sequence; Repeat the above step of obtaining the current character sequence until the number of characters in the current character sequence is less than or equal to the number of customized display characters and greater than or equal to the limited number of characters, and obtain the characters in the current character sequence as reserved characters; The standard intelligence sentence is shortened according to the reserved characters to obtain a display intelligence sentence.
[0012] Optionally, in a possible implementation manner of the first aspect, when determining that the customized display word count is less than the limited word count, customizing the standard intelligence sentence according to the customized adjustment strategy and the limited word count to obtain a display intelligence sentence includes: When it is determined that the number of words to be displayed is less than the number of words to be limited, retaining the key characters in the standard intelligence sentence to obtain a retained intelligence sentence; Counting the effective widths corresponding to the effective areas to obtain a total width, and obtaining a width ratio corresponding to each effective area according to a ratio of each effective width to the total width; Based on the product of the limited number of words and the width proportion, the number of allocated words corresponding to each of the valid areas is obtained; When it is determined that the allocated word numbers are all integers, a font width is obtained according to a ratio of the effective width to the corresponding allocated word number, and a font size is determined based on the font width; The font size of the reserved intelligence sentence is adjusted according to the font size to obtain a displayed intelligence sentence.
[0013] Optionally, in a possible implementation of the first aspect, updating the display information statement to the information board and collecting it to obtain a customized display image, encrypting the customized display image and sending it to a publishing end, and receiving a decryption and publishing of the encrypted customized display image by the publishing end, including: Updating the display information sentence to the information board and collecting it, obtaining a customized display image, acquiring the center point of the customized display image, and performing coordinate processing on the customized display image based on the center point to obtain pixel point coordinates corresponding to the customized display image; Based on the preset display pixel values, coordinates of pixel points in the customized display image are obtained as display coordinates, and adjacent display coordinates are counted to obtain multiple display coordinate sets; Hash-encrypting the display coordinate set to obtain an encrypted customized display image and sending it to the publishing end; The receiving publishing end decrypts the encrypted customized display image, obtains the publishing image and publishes it.
[0014] Optionally, in a possible implementation manner of the first aspect, the receiving publishing end decrypts the encrypted customized display image to obtain and publish the publishing image, including: Retrieving a publishing base image, wherein the size of the publishing base image is consistent with the size of the customized display image; The publishing base image is coordinate-processed based on the center point of the publishing base image, and the preset display pixel value is updated to the corresponding position of the publishing base image according to the display coordinates received by the publishing end to obtain the publishing image.
[0015] A second aspect of the present invention provides a terminal for securely processing information encryption and publishing of information boards, comprising: A collection module, used to control the information collection device to collect information from the information board, obtain an information collection image corresponding to the information board, and determine the damaged area by comparing the information standard image of the information board with the information collection image; A determination module, used to determine a valid area according to the damaged area and the display area in the intelligence collection image, obtain a customized display word count based on the valid area and the standard character area, and obtain a limited word count of a standard intelligence sentence in the intelligence standard image; A customization module, for obtaining a display intelligence sentence by retrieving a customized display strategy based on the numerical relationship between the customized display word count and the limited word count; The updating module is used to update the display information sentence to the information board and collect it, obtain the customized display image, encrypt the customized display image and send it to the publishing end, and receive the decryption and publishing of the encrypted customized display image by the publishing end.
[0016] According to a third aspect of the present invention, a storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the first aspect of the present invention and various methods that may be involved in the first aspect.
[0017] The beneficial effects of the present invention are as follows: 1. The present invention can dynamically adjust the font size and number of words of the displayed content according to the damaged area of the information board, and realize customized display of information, so as to ensure that when the information board is partially damaged, key information can still be effectively and clearly conveyed to avoid traffic accidents. First of all, the present invention can accurately identify the damaged area on the information board and determine the corresponding customized display word count and limited word count, so as to customize the standard information sentence, thereby obtaining the displayed information sentence and realizing intelligent sentence display, so that personnel can clearly understand the corresponding important information, solve the problem of inaccurate information transmission caused by damage to the information board, and can also encrypt and transmit the corresponding collected image information to prevent the information from being maliciously tampered with during the transmission process, thereby improving the accuracy of the published image information.
[0018] 2. The present invention can dynamically adjust the display content in a limited display space to display the most important and relevant intelligence information, achieving the effectiveness and reliability of information transmission. Among them, the present invention can ensure that important information is retained during the reduction process through priority sorting and associated phrase recognition, and dynamically adjust the display content according to different space restrictions to make information transmission more flexible. At the same time, the reduction process can be automated to reduce manual intervention and improve information processing and display efficiency. Secondly, the present invention can maximize the display of information in damaged conditions by determining the effective area and adjusting the number of displayed words, so that the driver can still obtain key information, adjust the number of words and layout, ensure that the information in the effective area is both complete and clear, and improve the readability of the information, that is, it can adjust the number of words and layout to ensure that the information in the effective area is both complete and clear, and improve the readability of the information.
[0019] 3. The present invention can improve the security of information during transmission through hash encryption, and prevent unauthorized access and information leakage. Among them, the image coordinate processing can be used to ensure the accurate positioning of the image display, and the corresponding pixel coordinates can be determined for hash encryption to improve the security of information transmission. At the same time, the present invention can also perform differential judgment. When the degree of difference is greater than the preset difference number, a corresponding warning prompt information will be generated to prevent the information from being distorted due to a large deviation between the published information and the information displayed on the actual information board, so that the publishing end can be prompted in time to confirm the published image information. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A flowchart of a method for securely processing information encryption and publishing of information boards provided by the present invention; Figure 2 A schematic diagram of an intermediate spacing area provided by the present invention; Figure 3 A schematic diagram of a left spacing area and a right spacing area provided by the present invention; Figure 4 The present invention provides a schematic diagram of the structure of a secure processing device for encrypting and publishing information on an information board. DETAILED DESCRIPTION
[0021] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0022] The present invention provides a method for securely processing information encryption and publishing of information boards, such as Figure 1 As shown, including: S1, controlling the information collection device to collect information from the information board, obtaining an information collection image corresponding to the information board, and determining the damaged area based on the comparison between the information standard image of the information board and the information collection image.
[0023] It should be noted that as the information boards on the road will be damaged over time, resulting in missing prompt information and inconvenience for people to view, in order to adaptively display the text on the information boards, it is necessary to prioritize the corresponding damaged areas so that the display statements can be adjusted based on the damaged areas later to ensure that people can normally grasp the prompt information and improve driving safety.
[0024] It can be understood that the control intelligence collection device is a collection device for collecting images of the information board, for example, a camera that can photograph the information board, the intelligence collection image is the text display image corresponding to the collected information board, the intelligence standard image is the image of the information board with standard text information, that is, an image without any regional damage causing missing text, and the damaged area is the area on the information board where damage occurs that affects the display of text information.
[0025] Through the above implementation, the present invention can determine the corresponding damaged area, so as to subsequently obtain the corresponding valid area, so as to display the adjusted text for easy viewing by people.
[0026] In some embodiments, the specific implementation steps of step S1 (the controlling the information collection device to collect information from the information board, obtaining an information collection image corresponding to the information board, and determining the damaged area by comparing the information standard image of the information board with the information collection image) include: S11, controlling the information collection device to collect information from the information board to obtain an information collection image corresponding to the information board.
[0027] It can be understood that by controlling the intelligence collection device (such as a camera) to collect information from the intelligence board, an intelligence collection image corresponding to the intelligence board is obtained. The intelligence collection image records the current text display of the intelligence board for subsequent comparison with the intelligence standard image to determine the corresponding damaged area.
[0028] S12, determining a real-time display image of a display area corresponding to the information board in the information collection image based on OpenCV.
[0029] It can be understood that the display area is the area of the intelligence board in the intelligence collection image corresponding to the display of text information, the real-time display image is the information image corresponding to the display area, and OpenCV is an existing image processing technology that can extract information from the collected image.
[0030] Through the above implementation, the present invention can determine the corresponding real-time display image, so that the corresponding display pixel points can be acquired later, thereby determining the corresponding damaged area.
[0031] S13, retrieve the information standard image corresponding to the display area of the information board, coordinate the real-time display image according to the center point of the real-time display image, and coordinate the information standard image based on the center point of the information standard image.
[0032] It is understandable that in order to accurately determine the corresponding damaged area, the center points of the real-time display image and the intelligence standard image can be obtained, and the two are coordinate processed so that each pixel can be accurately corresponded during image comparison.
[0033] S14, obtaining the real-time pixel values of the corresponding pixel points of the real-time display image at the same coordinates, and the theoretical pixel values of the corresponding pixel points of the intelligence standard image.
[0034] It can be understood that the real-time pixel value is the pixel value of the corresponding pixel point in the real-time display image. For example, the pixel value of the pixel point position corresponding to the displayed text is yellow, and the theoretical pixel value is the pixel value of the corresponding pixel point in the intelligence standard image.
[0035] It is not difficult to understand that by obtaining the real-time pixel value of the real-time display image and the theoretical pixel value of the intelligence standard image at the same coordinates, so as to subsequently compare the pixel values of the pixel points at the same coordinate position, the damaged area in the image can be identified.
[0036] S15, when it is determined that the real-time pixel value and the theoretical pixel value under the same coordinates are different, the corresponding coordinates are used as damage coordinates, and adjacent damage coordinates are counted to obtain multiple damage sets.
[0037] It can be understood that when the real-time pixel value is different from the theoretical pixel value under the same coordinates, it can be said that the place should be the pixel value corresponding to the displayed text, such as yellow. When the real-time pixel value is black, it can be said that the corresponding pixel position is damaged and the corresponding text information cannot be displayed normally. Therefore, the corresponding coordinates can be used as damaged coordinates, and the adjacent damaged coordinates can be counted to obtain multiple damaged sets. For example, the text in the extra position is not displayed.
[0038] The damaged coordinates are coordinates where the real-time pixel value is different from the theoretical pixel value, and the damaged set is a set of damaged coordinates.
[0039] S16, determining a longitudinal damage area line according to the minimum value and the maximum value of the horizontal coordinate in the damage set.
[0040] It can be understood that in order to determine the entire area in the corresponding display area that cannot display text information normally, the vertical damaged area line can be determined by the minimum and maximum values of the horizontal coordinates in the damage set to obtain the corresponding damaged area.
[0041] The longitudinal damage area line is a longitudinal line segment that determines the damage area.
[0042] S17, determining a plurality of damaged areas corresponding to the intelligence collection image based on the longitudinal damaged area line.
[0043] It can be understood that the longitudinal damaged area line and the horizontal line of the corresponding real area can enclose a corresponding plurality of closed areas, so that the damaged area can be determined, so that the valid area can be subsequently obtained, and the displayed text can be adjusted to facilitate personnel viewing.
[0044] It is not difficult to understand that the use of automated image processing technology can reduce the time and errors of manual inspection, improve the intelligence level of the system, and combine modern image processing technology and intelligent algorithms to provide effective technical support for the maintenance of traffic information boards and the accuracy of information.
[0045] S2, determining a valid area according to the damaged area and the display area in the intelligence collection image, obtaining a customized display word count based on the valid area and the standard character area, and obtaining a limited word count of a standard intelligence sentence in the intelligence standard image.
[0046] It can be understood that in order to determine the minimum number of words that can be displayed in the display area of the corresponding information board and at the same time enable it to fully convey the meaning of the corresponding sentence so that personnel can take timely measures to avoid traffic accidents, the previously identified damaged area can be combined with the display area in the intelligence collection image to determine the effective area that is not affected by the damage, that is, the part interfered by the damaged area is excluded to ensure that information is displayed only in the intact area, and the corresponding customized display word number can be calculated based on the arrangement and size of the standard character area, so as to be compared and judged with the restricted number of words later, so as to determine the display sentence.
[0047] Among them, the effective area is the area of the information board that can display font text normally, the standard character area is the area occupied by standard characters, the customized display number of words is the number of words that can be customized to be displayed in the effective area, and the standard information sentence is the standard sentence displayed on the information board under normal circumstances, for example, "Please note that there is an accident on the right side ahead", and the limited number of words is the minimum number of words that fully express the meaning of the information board, for example, it can be 4 words corresponding to "accident on the right side".
[0048] Through the above-mentioned implementation mode, the present invention can determine the corresponding customized display word count and the restricted word count, so that by determining the effective area and adjusting the display word count, the display of information can be maximized in the case of damage, so that the driver can still obtain key information, and the display content can be dynamically adjusted according to the damage situation, thereby improving the adaptability and flexibility of the information board.
[0049] In some embodiments, the specific implementation steps in step S2 (determining the valid area according to the damaged area and the display area in the intelligence collection image) include: S201, acquiring adjacent regions of the damaged region in the display region as adjacent regions, selecting an adjacent region on the left side as a first adjacent region, and selecting an adjacent region on the right side as a second adjacent region.
[0050] It is understandable that there may be multiple damaged areas in the information board. In order to determine the effective area where text can be stored normally, adjacent damaged areas can be used as adjacent areas, and the first adjacent area and the second adjacent area can be determined, so that the effective area corresponding to the normal display of text information can be accurately determined later.
[0051] The adjacent areas are adjacent damaged areas in the display area, the first adjacent area is the leftmost adjacent area, and the second adjacent area is the rightmost adjacent area.
[0052] S202: Using the longitudinal damaged region line on the right side of the first adjacent region as a first spacing region line, and using the longitudinal damaged region line on the left side of the second adjacent region as a second spacing region line.
[0053] It can be understood that in order to determine whether the area between adjacent damaged areas can display the labeled characters normally, the first spacing area line and the second spacing area line can be determined, so that the corresponding middle area size can be calculated later to determine the area that can display text information normally.
[0054] Among them, the first spacing area line is the left line segment that determines the middle spacing area, that is, the longitudinal damage area line on the right side of the first adjacent area, and the second spacing area line is the right line segment that determines the middle spacing area, that is, the longitudinal damage area line on the left side of the second adjacent area.
[0055] S203 , intercepting the display area according to the first spacing area line and the second spacing area line to obtain a middle spacing area corresponding to the adjacent area.
[0056] It can be understood that the intermediate interval area is the area between the adjacent areas, that is, Figure 2 As shown, the area after the display area is intercepted by the first spacing area line and the second spacing area line is used for subsequent judgment to determine the effective area and determine the number of customized display words.
[0057] S204 , selecting a damaged area closest to a longitudinal area line on the left side corresponding to the display area as a first boundary area, and selecting a damaged area closest to a longitudinal area line on the right side corresponding to the display area as a second boundary area.
[0058] It can be understood that the first boundary area is the damaged area located at the leftmost side in the display area, and the second boundary area is the damaged area located at the rightmost side in the display area.
[0059] Through the above implementation, the present invention can determine the first boundary area and the second boundary area, so as to subsequently obtain the corresponding boundary area for judgment, thereby obtaining the valid area.
[0060] S205: Using the longitudinal damaged area line on the left side of the first boundary area as a first boundary area line, and using the longitudinal damaged area line on the right side of the second boundary area as a second boundary area line.
[0061] It can be understood that the first boundary area line is the longitudinal damaged area line on the left side of the first boundary area, and the second boundary area line is the longitudinal damaged area line on the right side of the second boundary area.
[0062] Through the above implementation, the present invention can determine the first boundary area line and the second area boundary line, so as to subsequently determine the corresponding left and right spacing areas to determine the effective area.
[0063] S206: Determine a left spacing area according to the longitudinal area line corresponding to the left side of the display area and the first boundary area line, and determine a right spacing area based on the longitudinal area line corresponding to the right side of the display area and the second boundary area line.
[0064] It can be understood that the longitudinal area line is a line segment in the vertical direction of the display area, the left spacing area is the spacing area between the left longitudinal area line corresponding to the display area and the first boundary area line, and the right spacing area is the spacing area between the right longitudinal area line corresponding to the display area and the second boundary area line.
[0065] For example, Figure 3 As shown, the left spacing area can be obtained by the left longitudinal area line and the first boundary area line, and the right spacing area can be obtained by the right longitudinal area line and the second boundary area line.
[0066] S207: Obtain an interval area according to the left interval area, the right interval area, and the middle interval area.
[0067] It can be understood that the spacing area includes a left spacing area, a right spacing area and a middle spacing area, so that the spacing area can be judged as a valid area through the standard character area later.
[0068] S208, calling the standard character area of the standard character corresponding to the standard intelligence sentence, and when it is determined that the corresponding spacing area is smaller than the standard character area, treating the corresponding spacing area as an invalid area.
[0069] It should be noted that the text displayed on the information board has a uniform font size, and different font sizes have corresponding sizes. For example, the size width of font No. 1 displayed in the information board image is 1CM. Therefore, in order to determine whether the corresponding spacing area can display the corresponding text normally, the standard character area can be used to determine whether the spacing area is a valid area or an invalid area.
[0070] It can be understood that the standard character area is the area occupied by standard characters, for example, the character area corresponding to the standard intelligence sentence "Please note, there is an accident ahead on the right side". Therefore, when the spacing area is smaller than the standard character area, it can be explained that the corresponding text characters cannot be displayed normally in the corresponding spacing area, and the area is small, so it can be determined as an invalid area.
[0071] The invalid area is a spacing area smaller than the standard character area.
[0072] S209, deleting and updating the display area according to the invalid area and the damaged area to obtain a valid area.
[0073] It can be understood that the corresponding invalid areas and damaged areas in the display area are deleted, so that the remaining areas in the display area are valid areas, that is, text characters and areas can be displayed normally, and then the amount of text that can be displayed in the valid area can be determined subsequently, so that text can be displayed for people to view.
[0074] In some embodiments, the specific implementation steps of step S2 (obtaining the customized display word count based on the valid area and the standard character area, and obtaining the limited word count of the standard intelligence sentence in the intelligence standard image) include: S210, acquiring the area width of each of the effective areas as the effective width, and the area width of the standard character area as the character width.
[0075] It can be understood that the effective width is the area width of the effective area, so as to be compared and calculated with the character width later to determine the number of characters that can be displayed in the corresponding area, and the character width is the area width of the standard character area.
[0076] S211, obtaining the number of regional characters corresponding to the effective region according to the ratio of the effective width to the character width, and obtaining the number of customized display characters by counting the number of regional characters.
[0077] It can be understood that the regional word count is the number of characters that can be displayed in the valid area, that is, it is calculated by the ratio of the effective width and the character width. The customized display word count is the sum of all regional word counts, that is, the sum of the regional word counts of all valid areas in the display area.
[0078] Through the above implementation, the customized display word count can be obtained, so as to be compared with the restricted word count later, so as to adopt a suitable strategy for sentence display.
[0079] S212, obtaining key characters corresponding to the standard intelligence sentence in the intelligence standard image, and counting the number of the key characters as the restricted word count.
[0080] It can be understood that the key characters are important information words in the standard intelligence sentence. For example, in the standard intelligence sentence "Please note that there is an accident on the right side ahead", "accident on the right side" can remind the driver that there is an accident on the right side ahead and he needs to drive carefully. Therefore, the corresponding key characters are "accident on the right side", which can determine that the corresponding limit number of words is 4.
[0081] The limit is the number of key characters.
[0082] S3, based on the numerical relationship between the customized display word count and the limited word count, calling the customized display strategy to customize the standard intelligence sentence to obtain a display intelligence sentence.
[0083] It is understandable that since the limited number of words is the minimum number of words displayed after adjustment, it is necessary to determine the numerical relationship between the current customized display number of words and the limited number of words, and then adopt the corresponding customized display strategy according to the corresponding numerical relationship to customize the standard intelligence sentence, so as to obtain the displayed intelligence sentence for the driver to view, timely understand the road condition prompt information, and improve driving safety.
[0084] Among them, the displayed information sentence is a prompt sentence displayed after the sentence is adjusted according to the damage of the information board.
[0085] In some embodiments, the specific implementation steps of step S3 (the step of calling the customized display strategy to customize the standard intelligence sentence based on the numerical relationship between the customized display word count and the limited word count to obtain the displayed intelligence sentence) include: S31, when it is determined that the customized display word count is greater than or equal to the restricted word count, the standard intelligence sentence is reduced based on the character reduction strategy and the customized display word count to obtain a display intelligence sentence.
[0086] It can be understood that when the customized display word count is greater than or equal to the restricted word count, it can be said that the corresponding number of words that can be displayed is greater than the restricted minimum number, that is, the important semantics corresponding to the restricted number of words can be displayed, so that the number of words in the standard intelligence sentence can be reduced, and the deleted display intelligence sentence can be obtained.
[0087] For example, when the customized display word count of the valid area in the display area where text can be normally displayed is determined to be 6, and the restricted word count is 4, the corresponding standard information statement can be reduced in word count, so as to obtain the reduced display information statement for subsequent display and prompt on the information board.
[0088] In some embodiments, the specific implementation steps of step S31 (when it is determined that the customized display word count is greater than or equal to the restricted word count, the standard information statement is reduced based on the character reduction strategy and the customized display word count to obtain the display information statement) include: S311, when it is determined that the customized display word count is greater than or equal to the restricted word count, retrieve the preset character priority corresponding to the standard information statement, and obtain the associated phrases in the standard information statement.
[0089] It can be understood that among the multiple characters in the standard information statement, due to the different meanings of the characters, the importance of the meanings conveyed to the personnel information is also different. For example, in "Please note that there is an accident on the right ahead", the importance of the meanings conveyed by "Please", "note" and "right", "accident" is different, and the importance of "right" and "accident" is obviously the highest. Therefore, according to the semantic importance of the standard information statement, its corresponding preset character priority can be retrieved to determine which characters or phrases are more important and need to be preferentially retained.
[0090] Among them, the preset character priority is the priority set for different characters in advance, and the associated phrase is a phrase with related meanings between characters. For example, "note" and "meaning" are the corresponding "note" associated phrases.
[0091] It is not difficult to understand that by obtaining the preset character priority and the associated phrases, it is convenient to preferentially retain important information while keeping the statement complete during the subsequent reduction of the standard information statement.
[0092] S312, sort the characters in the standard information statement based on the preset character priority to obtain a character sequence corresponding to the standard information statement.
[0093] It can be understood that the character sequence is the priority arrangement sequence of the characters corresponding to the standard information statement, that is, the sequence obtained by arranging the characters in the standard information statement in order according to the preset character priority.
[0094] It is not difficult to understand that the present invention can determine the character sequence, which is convenient for subsequent deletion of characters in the standard information statement according to the character sequence.
[0095] S313, obtaining the number of characters corresponding to the standard intelligence sentence as the standard number of characters, and obtaining the number of deleted characters according to the difference between the standard number of characters and the customized display number of characters.
[0096] It can be understood that the standard number of characters is the number of corresponding characters in the standard intelligence sentence. For example, when the standard intelligence sentence is "Please note that there is an accident on the right side ahead", the corresponding standard number of characters is 10. The number of deleted characters is the number of characters deleted from the standard intelligence sentence, that is, the difference between the standard number of characters and the customized display number of characters.
[0097] S314, selecting the first character in the character sequence as the deletion character, determining the associated phrase where the deletion character is located as the deletion phrase, and deleting and updating the character sequence based on the characters in the deletion phrase to obtain the current character sequence.
[0098] It can be understood that the deleted character is the first character in the character sequence, that is, the character with the lowest priority and the least important meaning, the deleted phrase is the associated phrase in which the deleted character is located, and the current character sequence is the sequence after deleting the deleted phrase in the character sequence.
[0099] S315, repeat the above step of obtaining the current character sequence until the number of characters in the current character sequence is less than or equal to the customized display character number and greater than or equal to the restricted character number, and obtain the characters in the current character sequence as reserved characters.
[0100] It can be understood that in order to reduce the characters in the standard intelligence sentence to the number of words that can be displayed in the effective area of the current intelligence board, the number of characters in the current character sequence needs to be less than or equal to the customized display number of words and greater than or equal to the restricted number of words. This means that the remaining characters can be displayed directly while ensuring the correct transmission of meaning.
[0101] Among them, the reserved characters are the characters in the current character sequence. For example, when the current character sequence after deletion is (front, side, right, side, matter, cause), the number at this time is equal to the customized display number of characters 6, and at the same time is greater than the limited number of characters 4, then the reserved characters "front, side, right, side, matter, cause" can be obtained.
[0102] S316, shortening the standard intelligence sentence according to the reserved characters to obtain a display intelligence sentence.
[0103] It is understandable that the reserved characters in the standard intelligence sentence are retained and the remaining characters are deleted, so as to obtain a display intelligence sentence that can be displayed, so that it can express important information while displaying the sentence normally, so that the driver can grasp it intuitively and avoid accidents.
[0104] It is not difficult to understand that the automated reduction process reduces human intervention and improves the efficiency of information processing and display, so that it can still display the most important and relevant intelligence information in a limited display space, thereby achieving the effectiveness and reliability of information communication.
[0105] S32, when it is determined that the customized display word count is less than the limited word count, the standard intelligence sentence is customized according to the customized adjustment strategy and the limited word count to obtain a display intelligence sentence.
[0106] It can be understood that when the customized display word count is less than the restricted word count, it may indicate that the damaged area is larger, and the number of characters that can be displayed in the remaining effective area is less than the restricted word count. In this case, the size of the corresponding characters needs to be adjusted, so that the standard intelligence statement can be processed according to the customized adjustment strategy and the restricted word count, thereby obtaining a displayed intelligence statement for personnel to view and drive safely.
[0107] In some embodiments, the specific implementation steps of step S32 (when it is determined that the customized display word count is less than the limited word count, the standard intelligence sentence is customized according to the customized adjustment strategy and the limited word count to obtain a display intelligence sentence) include: S321, when it is determined that the number of customized display words is less than the limited number of words, the key characters in the standard intelligence sentence are retained to obtain a retained intelligence sentence.
[0108] It is understandable that the intelligence sentences are retained as information sentences composed of key characters in the standard intelligence sentences, such as "accident on the right side".
[0109] It is not difficult to understand that by determining the retained intelligence sentences, the corresponding reduction ratio can be determined later so that they can be displayed as large as possible.
[0110] S322, counting the effective widths corresponding to the effective areas to obtain a total width, and obtaining a width ratio corresponding to each effective area according to a ratio of each effective width to the total width.
[0111] It can be understood that the effective width is the width of the effective area. Since multiple invalid areas may appear in the display area, the complete area is divided to make multiple effective areas appear. Therefore, the effective widths corresponding to all effective areas can be summed up to subsequently calculate the adjustment ratio of the corresponding font.
[0112] The total width is the sum of the widths corresponding to all valid areas, and the width ratio is the ratio of the effective widths corresponding to the valid areas, that is, the ratio of the effective width to the total width.
[0113] S323: Obtain the number of allocated words corresponding to each of the valid areas based on the product of the restricted number of words and the width proportion.
[0114] It is understandable that, since different effective areas have different widths, the number of words that can be stored and displayed is also different, so the number of words allocated to each effective area can be calculated based on the limited number of words and the width ratio.
[0115] The allocated number of characters refers to the number of characters allocated to the effective area for display.
[0116] S324: When it is determined that the allocated word numbers are all integers, a font width is obtained according to a ratio of the effective width to the corresponding allocated word number, and a font size is determined based on the font width.
[0117] It can be understood that when the allocated number of words calculated by limiting the product of the number of words and the width ratio is an integer, for example, when there are two valid areas with widths of 0.5 cm and 1.5 cm respectively, it can be determined that the corresponding allocated numbers of words are 1 and 3 respectively, so that the font width can be calculated according to the effective width and the corresponding allocated number of words, and then the font size can be obtained, so that the font size of the retained intelligence sentences can be adjusted later, so that the sentences can be displayed normally and completely, which is convenient for people to view and understand.
[0118] Among them, the font width is the width of the display font, that is, the ratio of the effective width to the allocated number of characters, and the font size is the font size corresponding to the font width. For example, a width of 0.5 cm corresponds to a font size of 4.
[0119] S325, adjusting the font size of the reserved intelligence sentence according to the font size to obtain a displayed intelligence sentence.
[0120] It is understandable that the retained intelligence sentence is adjusted to the calculated font size to obtain the displayed intelligence sentence.
[0121] It is worth mentioning that when the font widths calculated in different valid areas are different, resulting in inconsistent font sizes, the smallest font size will be selected to adjust the font size of the retained intelligence sentences so that all fonts can be displayed in a unified font size, thereby improving the readability of the information.
[0122] In some embodiments, (when it is determined that the number of customized display characters is greater than or equal to the limited number of characters, the standard intelligence sentence is reduced based on the character reduction strategy and the number of customized display characters to obtain a display intelligence sentence), it also includes: A1, when it is determined that the customized display word count is greater than or equal to the limited word count, the standard intelligence sentence is segmented to obtain the tone paragraph and content paragraph corresponding to the standard intelligence sentence.
[0123] It can be understood that when the customized display word count is greater than or equal to the word limit, not only can sequential deletion be performed, but the standard intelligence sentences can also be divided, thereby automatically selecting important semantic characters to retain and automatically selecting characters to delete, so that the intelligence sentences displayed after adjustment can normally convey the corresponding important information, so that the driver can make timely adjustments.
[0124] Among them, the tone paragraph is a sentence paragraph composed of characters with tone meaning. For example, "Please note" has no actual important meaning information and can be used as a tone paragraph. The content paragraph is a sentence paragraph with important information content, such as "There is an accident on the right side ahead."
[0125] A2, obtains the number of mood characters in the mood paragraph, obtains the number of mood words, and obtains the number of characters corresponding to the standard intelligence sentence as the standard number of characters, and obtains the number of deleted words based on the difference between the standard number and the customized display number of words.
[0126] It can be understood that the number of tone words is the number of characters in the tone paragraph, the tone characters are the characters in the tone paragraph, the standard number of characters is the number of characters corresponding to the standard intelligence sentence, and the number of deleted words is the characters that can be deleted, that is, the difference between the standard number and the customized display number of words.
[0127] Through the above implementation, the present invention determines the corresponding number of deleted words so as to adjust the standard intelligence sentence later.
[0128] A3, retrieve the preset character priority of the character corresponding to the standard intelligence sentence, and obtain the associated phrase in the standard intelligence sentence.
[0129] It is understandable that the characters in the standard intelligence sentences have corresponding preset character priorities, and the associated phrases are phrases with associated meanings, such as "attention", "accident", etc.
[0130] A4, when it is determined that the number of deleted characters is less than or equal to the number of tone characters, the tone characters are sorted based on the preset character priority to obtain a tone sequence.
[0131] It can be understood that when the number of deleted characters is less than or equal to the number of mood characters, the mood characters can be sorted in ascending order according to the preset character priority, that is, the ones arranged closer can be deleted first, thereby obtaining a mood sequence, so that the characters can be deleted later according to the mood sequence.
[0132] The tone sequence is a character sequence after the tone characters are arranged.
[0133] A5. Select the first character in the tone sequence as the deletion character, and determine the associated phrase where the deletion character is located as the tone deletion phrase. Based on the characters in the tone deletion phrase, perform deletion and update on the tone sequence to obtain the current tone sequence.
[0134] It can be understood that by taking the first character in the tone sequence as the deletion character, when the deletion character has an associated phrase, the associated phrase corresponding to the deletion character can be used as the tone deletion phrase, so as to delete the tone deletion phrase at the same time and ensure the smoothness of the subsequent retained statements. For example, when the deletion character is "note", the corresponding tone deletion phrase can be determined as "attention", and then "attention" can be deleted in the tone sequence to facilitate the semantic smoothness of the subsequent displayed intelligence statement and facilitate viewing and reading by personnel.
[0135] A6. Repeat the above steps to obtain the current tone sequence, and count the number of characters in the tone deletion phrase as the actual deletion word count. Until the actual deletion word count is greater than or equal to the deletion word count, combine the characters and content paragraphs in the current tone sequence to obtain the displayed intelligence statement.
[0136] It can be understood that when the calculated deletion word count is 2, since the deletion character has an associated phrase, the characters corresponding to the associated phrase are deleted together, so the actual deletion word count may be different from the calculated deletion word count. Therefore, it is necessary to count the actual deletion word count in order to obtain the final displayed intelligence statement.
[0137] Wherein, the actual deletion word count is the number of words actually deleted.
[0138] A7. When it is determined that the deletion word count is greater than the tone word count, delete the tone paragraph, and obtain the remaining deletion word count according to the difference between the deletion word count and the tone word count.
[0139] It can be understood that when the deletion word count is greater than the tone word count, it means that simply deleting the unimportant tone words is not enough to fully display the remaining characters. Therefore, it is necessary to select and delete the characters in the content paragraph. Thus, the remaining deletion word count can be determined according to the difference between the deletion word count and the tone word count, so as to perform deletion and update on the characters in the content paragraph subsequently.
[0140] Wherein, the remaining deletion word count is the difference between the deletion word count and the tone word count.
[0141] For example, when the deletion word count is 4, but the number of words in the tone paragraph is 3, after deleting the tone paragraph, the remaining words in the standard intelligence statement still cannot be normally displayed. Therefore, it is necessary to calculate the remaining deletion word count to facilitate the selection and deletion of the characters in the content paragraph subsequently.
[0142] A8, determining the corresponding associated phrases in the content paragraph as static phrases based on the key characters, and taking the remaining associated phrases in the content paragraph as dynamic phrases.
[0143] It can be understood that static phrases are associated phrases corresponding to key characters in the content paragraph, for example, "right side" and "accident" are associated phrases corresponding to key characters, and dynamic phrases are associated phrases in the content paragraph excluding static phrases, such as "in front" and "there are".
[0144] Through the above implementation, the content paragraphs are divided into static phrases and dynamic phrases, so that characters in the dynamic phrases can be selected and deleted first, thereby improving the selection rate of the deleted characters.
[0145] A9, obtaining the number of dynamic characters in each of the dynamic phrases as the dynamic word count, and selecting the dynamic phrase with the dynamic word count closest to the remaining deleted word count as the selected phrase.
[0146] It can be understood that the dynamic word count is the number of dynamic characters in the dynamic phrase, the dynamic character is the text character in the dynamic phrase, and the selected phrase is the dynamic phrase with the dynamic word count closest to the remaining number of words to be deleted. For example, when the remaining number of words to be deleted is 1, the current dynamic phrase has "in front" and "have", then "have" can be selected as the selected phrase, so that when subsequent deletions are performed, the displayed word count can meet the requirements while ensuring the integrity of the semantics.
[0147] A10, determining the phrase priority of the selected phrase based on the preset character priorities of the characters in the selected phrase, and selecting the selected phrase corresponding to the smallest phrase priority as the content deletion phrase.
[0148] It can be understood that when the number of dynamic words in multiple dynamic phrases is the same as or close to the number of remaining words to be deleted, the phrase to be deleted can be determined by selecting the preset character priority corresponding to the characters in the phrase, that is, the selected phrase corresponding to the smallest phrase priority is used as the content deletion phrase, and the selected phrase corresponding to the low-priority characters is deleted as the content deletion phrase.
[0149] A11, obtaining the number of characters in the content deletion phrase as the actual deletion number, and obtaining the current remaining deletion number according to the difference between the remaining deletion number and the actual deletion number.
[0150] It can be understood that the actual number of deletions is the number of characters in the content deletion phrase, and the current number of remaining deletion characters is the difference between the remaining number of deletion characters and the actual number of deletions.
[0151] It is not difficult to understand that the current number of remaining characters to be deleted is determined so as to subsequently determine when to stop deleting characters, thereby determining the corresponding display intelligence sentence.
[0152] A12, repeat the above steps of obtaining the current number of remaining words to be deleted until the current number of remaining words to be deleted is less than or equal to 0, delete and update the content paragraph according to the content deletion phrase to obtain a display intelligence sentence.
[0153] It can be understood that if the current number of remaining deleted characters is less than or equal to 0, it can be said that the corresponding number of characters have been deleted, and the content deletion phrases in the content paragraph can be deleted and updated to obtain the retained display intelligence sentences with important semantics, which is convenient for personnel to view.
[0154] S4, updating the display information statement to the information board and collecting it, obtaining a customized display image, encrypting the customized display image and sending it to the publishing end, receiving the decryption and publishing of the encrypted customized display image by the publishing end.
[0155] It can be understood that the adjusted display intelligence statement is updated on the intelligence board, and the image of the information board is captured to obtain a customized display image, so that the customized display image can be subsequently encrypted and sent to the publishing end to prevent the information on the intelligence board from being tampered with during the transmission process, thereby affecting the authenticity of the information release. When the decryption information of the encrypted customized display image is received from the publishing end, the corresponding image can be published, thereby improving the security of information release.
[0156] Among them, the customized display image is the image collected by updating the display intelligence sentence on the information board, and the publishing end is the terminal that publishes the information of the information board to the outside.
[0157] It is worth mentioning that existing encryption technologies can be used to encrypt customized display images, such as dual-authority encryption, asymmetric encryption, symmetric encryption and other encryption methods to encrypt information to ensure the accuracy and security of information during transmission.
[0158] In some embodiments, the specific implementation steps of step S4 (the updating of the display information statement to the information board and collecting it, obtaining a customized display image, encrypting the customized display image and sending it to the publishing end, and receiving the decryption and publishing of the encrypted customized display image by the publishing end) include: S41, updating the display information statement to the information board and collecting it, obtaining a customized display image, acquiring the center point of the customized display image, and coordinate processing the customized display image based on the center point to obtain the pixel coordinates corresponding to the customized display image.
[0159] It is understandable that in addition to the traditional existing encryption methods, hash encryption can also be used to encrypt the text pixels in the customized display image. Even if the information is intercepted and decrypted, the real information cannot be known and the information cannot be tampered with, thereby improving the security of the information.
[0160] The customized display image is coordinate-processed by taking the center point of the customized display image as a reference point, so as to facilitate subsequent encryption processing.
[0161] S42, based on the preset display pixel values, obtaining pixel point coordinates in the customized display image as display coordinates, and counting adjacent display coordinates to obtain a plurality of display coordinate sets.
[0162] It can be understood that the preset display pixel value is a preset pixel value of the display text information to identify important pixel points in the customized display image.
[0163] The display coordinates are the coordinates of the pixel points with preset display pixel values in the customized display image, and the display coordinate set is a set of adjacent display coordinates.
[0164] Through the above implementation, the present invention determines the corresponding display coordinate set, so as to subsequently encrypt the display coordinate set to prevent early leakage and malicious tampering of information.
[0165] S43, performing hash encryption on the display coordinate set to obtain an encrypted customized display image and sending it to the publishing end.
[0166] It is understandable that the display coordinate set is hash-encrypted to obtain an encrypted customized display image and send it to the publishing end so that the publishing end can decrypt it and then publish the information.
[0167] S44, receiving the decryption of the encrypted customized display image by the publishing end, obtaining the publishing image and publishing it.
[0168] It can be understood that after receiving the decrypted information from the publishing end, the coordinate information can be restored, so that the corresponding preset display pixel value can be decrypted and updated to update the coordinates in the blank image template corresponding to the customized display image, so as to obtain the actual publishing image for publication and ensure the security of the information.
[0169] The published image is an image generated after information decryption.
[0170] In some embodiments, the specific implementation steps of step S44 (the receiving and publishing end decrypts the encrypted customized display image to obtain and publish the publishing image) include: S441, retrieve a publishing base image, the size of the publishing base image being consistent with the size of the customized display image.
[0171] It can be understood that the published base image is a blank image template corresponding to the customized display image, wherein the size of the published base image is consistent with the size of the customized display image, so that the decrypted coordinates can be subsequently updated to the corresponding position to display the corresponding display image information.
[0172] S442, coordinate processing is performed on the publishing base image based on the center point of the publishing base image, and the preset display pixel value is updated to the corresponding position of the publishing base image according to the display coordinates received by the publishing end to obtain the publishing image.
[0173] It can be understood that the center point of the publishing base image is obtained, the publishing base image is coordinate-processed, and the preset display pixel value is updated at the corresponding display coordinate position in the publishing base image, thereby generating a publishing image.
[0174] The display coordinates are the information coordinates in the decrypted customized display image.
[0175] In some embodiments, it also includes: B1, when it is determined that the allocated word counts are not all integers, the integer part of the allocated word count is counted to obtain a first allocated integer, and a first remainder is obtained according to the difference between the allocated word count and the first allocated integer.
[0176] It is understandable that when the word allocation calculation is performed based on the area width, the number of characters in the area may have a decimal part. For example, when there are two areas with corresponding area widths of 1.8cm and 2.2cm respectively and the limited number of characters is 4, when the number of characters in the corresponding areas is 1.8 and 2.2 during the calculation, the limited number of characters cannot be stored in the area for complete display, that is, the limited number of characters cannot be divided evenly in the corresponding area, so it is necessary to give priority to allocating characters for display in areas with larger decimal parts, so that the first allocated integer corresponding to the integer part of the allocated number of characters can be counted, and when the first allocated integer corresponding to the integer part is less than the allocated number of characters, the word allocation display can be performed subsequently by counting the numerical value of the decimal part.
[0177] Among them, the first allocated integer is the sum of the integer parts of the allocated word number. For example, when the allocated word number is 1.8 or 2.2, the first allocated integer is 3, and the first remainder is the remaining number of words to be allocated, that is, the difference between the allocated word number and the first allocated integer.
[0178] B2, obtaining a decimal part of the allocated word count, and sorting the allocated word count in descending order based on the decimal part to obtain an allocated sequence.
[0179] It can be understood that the allocation sequence is a numerical sequence of the decimal parts of the allocated word numbers arranged in descending order. For example, when the allocated word numbers are 1.8, 2.2, the corresponding decimal parts are 8, 2 respectively, so that the allocation sequence can be (1.8, 2.2).
[0180] It is not difficult to understand that after obtaining the allocation sequence, a suitable area can be selected for text display according to the allocation sequence.
[0181] B3, according to the first remaining number, sequentially select the number of allocated words in the allocation sequence as the selected number of words, and use the remaining number of allocated words as the unselected number of words, round up the selected number of words, and round down the unselected number of words to obtain the actual number of words in each of the valid areas.
[0182] It can be understood that the same number of allocated words as the first remaining number is selected in the allocation sequence to determine the number of words actually allocated in the corresponding area.
[0183] Among them, the selected number of words is the allocated number of words selected according to the first remaining number. For example, when the first remaining number is 1 and the allocation sequence is (1.8, 2.2), it can be determined that the selected number of words is 1.8, and the unselected number of words is the allocated number of words that is not selected, such as 2.2. Since the selected number of words is the area with a larger decimal part in the corresponding area, one more text can be displayed in the corresponding area. The selected number of words can be rounded up and the unselected number of words can be rounded down, and then the number of words actually allocated to each valid area can be obtained. For example, the selected number of words 1.8 is rounded up to 2, and the unselected number of words 2.2 is rounded down to 2, so that the actual number of words allocated to the first valid area is 2, and the actual number of words allocated to the second valid area is 2.
[0184] It is not difficult to understand that the actual number of words is the number of words actually allocated to display the effective area.
[0185] B4, obtaining a font width based on a ratio of the effective width to the corresponding actual number of characters, determining a font size based on the font width, and selecting the smallest font size as the adjusted font size.
[0186] It can be understood that the font width is the width of the font displayed in the effective area, that is, the ratio of the effective width to the actual number of characters, and the adjusted font size is the font size adjusted for the characters in the information board.
[0187] It is not difficult to understand that selecting the smallest font size as the adjusted font size can unify the font size of the displayed characters, avoiding the display of different font sizes and affecting the readability of people.
[0188] B5, adjusting the font size of the retained intelligence sentence according to the adjusted font size to obtain a displayed intelligence sentence.
[0189] It is understandable that the font size adjustment is used to adjust the font size of the retained intelligence sentences so that the font of the intelligence sentences displayed on the intelligence board is displayed as large as possible to facilitate personnel viewing.
[0190] It should be noted that when the information is being transmitted, the encrypted information is maliciously modified by a person. In order to allow the publisher to receive normal information, the corresponding image information can be compared to determine the information deviation, and an early warning can be issued in time to prevent the publisher from publishing wrong information. Therefore, it also includes: C1, acquiring in real time the image collected by the intelligence collection device as a real-time intelligence image, and performing coordinate processing on the real-time intelligence image according to the center point of the real-time intelligence image.
[0191] It can be understood that the real-time intelligence image is the information board image captured by the intelligence collection device.
[0192] It is not difficult to understand that coordinate processing of real-time intelligence images facilitates the subsequent determination of the real-time coordinates of the corresponding pixel points, and then information comparison can be performed to timely determine whether there is any deviation in the information, thereby providing information warnings.
[0193] C2, based on the preset display pixel value, obtaining the corresponding pixel point coordinates in the real-time intelligence image as real-time coordinates.
[0194] It is important to understand that the real-time coordinates are the coordinates of the pixel points corresponding to the preset display pixel values in the real-time intelligence image. For example, when the preset display pixel value is yellow, the coordinates of the pixel points corresponding to the yellow text are displayed in the real-time intelligence image.
[0195] C3, counting the real-time coordinates to obtain a total real-time coordinate set, and counting the display coordinates to obtain a total display coordinate set.
[0196] It can be understood that the total real-time coordinate set is a coordinate set corresponding to all real-time coordinates, and the total display coordinate set is a coordinate set corresponding to all display coordinates.
[0197] Through the above implementation, the present invention can determine the total real-time coordinate set and the total display coordinate set for subsequent comparison and calculation, thereby determining whether there are significant differences in image information, and facilitating timely early warning prompts.
[0198] C4, obtaining an overlapping intersection according to the intersection of the total real-time coordinate set and the total display coordinate set.
[0199] It can be understood that the overlapping intersection is the intersection of the total real-time coordinate set and the total display coordinate set, so as to subsequently determine the degree of difference between the corresponding displayed intelligence image information and the image information received by the publishing end.
[0200] C5. Obtain a first difference set based on the difference between the total display coordinate set and the overlap intersection set.
[0201] It can be understood that the first difference set is a difference set between the total display coordinate set and the overlap intersection set.
[0202] C6. Obtain a second difference set according to the difference set between the total real-time coordinate set and the overlapping intersection set.
[0203] It can be understood that the second difference set is a difference set between the total real-time coordinate set and the overlap intersection set.
[0204] It is not difficult to understand that by calculating the second difference set so as to jointly determine whether the image information has been tampered with with the first difference set, the security and reliability of the information can be ensured.
[0205] C7, counting the number of coordinates in the first difference set and the second difference set to obtain a total difference number, and when it is determined that the total difference number is greater than a preset difference interval, generating a security warning message and sending it to the publishing end.
[0206] It can be understood that the total number of differences is the number of coordinates in the first difference set and the second difference set. The larger the total number of differences, the greater the difference between the intelligence image displayed in real time and the intelligence information image accepted for display in the release form, which means that the information is abnormal. In order to ensure the accuracy of information release by the publisher, when the total number of differences is greater than the preset difference range, a security warning message can be generated and sent to the publisher so that the publisher can stop the information release or make changes in time.
[0207] The preset difference interval is a preset reference numerical range of allowable deviations, and the security warning information is a warning information for reminding the security of the published information. For example, it may be a prompt information that indicates that there is a risk of tampering with the published image and that the publication should be stopped.
[0208] like Figure 4 As shown, a terminal for secure processing of information encryption and release of information on information boards, characterized in that it includes: A collection module, used to control the information collection device to collect information from the information board, obtain an information collection image corresponding to the information board, and determine the damaged area by comparing the information standard image of the information board with the information collection image; A determination module, used to determine a valid area according to the damaged area and the display area in the intelligence collection image, and determine a customized display word count corresponding to the valid area based on a word count reduction strategy and the valid area; A customization module, for determining, when the number of words for the customized display is less than the limited number of words for the information board, a customized display font size corresponding to the effective area according to the limited number of words and the effective area; An updating module is used to customize the standard intelligence sentence in the intelligence standard image according to the customized display font size and the customized display word count, obtain a customized intelligence sentence, and update the customized intelligence sentence to the intelligence board for display.
[0209] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.
[0210] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0211] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.
[0212] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0213] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for securely processing information encryption and publishing of information boards, characterized in that: include: Controlling the information collection device to collect information from the information board to obtain an information collection image corresponding to the information board, and determining the damaged area by comparing the information standard image of the information board with the information collection image; Determine the effective area according to the damaged area and the display area in the intelligence collection image, obtain the customized display word count based on the effective area and the standard character area, and obtain the limited word count of the standard intelligence sentence in the intelligence standard image; Based on the numerical relationship between the customized display word count and the limited word count, the customized display strategy is called to customize the standard intelligence sentence to obtain a display intelligence sentence; The display information statement is updated to the information board and collected to obtain a customized display image, and the customized display image is encrypted and sent to the publishing end, and the publishing end decrypts and publishes the encrypted customized display image.
2. The method according to claim 1, characterized in that: The controlling information collection device collects information from the information board to obtain an information collection image corresponding to the information board, and determines the damaged area by comparing the information standard image of the information board with the information collection image, including: Controlling the information collection device to collect information from the information board to obtain an information collection image corresponding to the information board; Determine a real-time display image of a display area corresponding to the information board in the information collection image based on OpenCV; Retrieving the intelligence standard image of the display area corresponding to the intelligence board, performing coordinate processing on the real-time display image according to the center point of the real-time display image, and performing coordinate processing on the intelligence standard image based on the center point of the intelligence standard image; Obtaining the real-time pixel value of the corresponding pixel point of the real-time display image and the theoretical pixel value of the corresponding pixel point of the intelligence standard image at the same coordinates; When it is determined that the real-time pixel value and the theoretical pixel value under the same coordinate are different, the corresponding coordinate is used as a damaged coordinate, and adjacent damaged coordinates are counted to obtain a plurality of damaged sets; Determine a longitudinal damage area line according to a minimum abscissa value and a maximum abscissa value in the damage set; A plurality of damaged areas corresponding to the intelligence collection image are determined based on the longitudinal damaged area line.
3. The method according to claim 2, characterized in that The determining of the effective area according to the damaged area and the display area in the intelligence collection image comprises: Acquire the damaged area adjacent to the display area as an adjacent area, select the adjacent area on the left side as the first adjacent area, and select the adjacent area on the right side as the second adjacent area; The longitudinal damaged region line on the right side of the first adjacent region is used as a first spacing region line, and the longitudinal damaged region line on the left side of the second adjacent region is used as a second spacing region line; The display area is intercepted according to the first spacing area line and the second spacing area line to obtain a middle spacing area corresponding to the adjacent area; Selecting the damaged area closest to the longitudinal area line corresponding to the left side of the display area as the first boundary area, and selecting the damaged area closest to the longitudinal area line corresponding to the right side of the display area as the second boundary area; The longitudinal damaged area line on the left side of the first boundary area is used as the first boundary area line, and the longitudinal damaged area line on the right side of the second boundary area is used as the second boundary area line; Determine a left spacing area based on a longitudinal area line corresponding to the left side of the display area and the first boundary area line, and determine a right spacing area based on a longitudinal area line corresponding to the right side of the display area and the second boundary area line; Obtaining a spacing area according to the left spacing area, the right spacing area and the middle spacing area; Retrieving the standard character area corresponding to the standard character of the standard intelligence sentence, and when it is determined that the corresponding spacing area is smaller than the standard character area, treating the corresponding spacing area as an invalid area; The display area is deleted and updated according to the invalid area and the damaged area to obtain a valid area.
4. The method according to claim 3, characterized in that The step of obtaining the number of words to be displayed based on the valid area and the standard character area, and obtaining the number of words limited to the standard intelligence sentence in the intelligence standard image, includes: Acquire the area width of each of the valid areas as the effective width, and the area width of the standard character area as the character width; According to the ratio of the effective width to the character width, the number of regional words corresponding to the effective area is obtained, and the number of regional words is counted to obtain the number of customized display words; The key characters corresponding to the standard intelligence sentence in the intelligence standard image are obtained, and the number of the key characters is counted as the limited number of characters.
5. The method according to claim 4, characterized in that Based on the numerical relationship between the customized display word count and the limited word count, calling the customized display strategy to customize the standard intelligence sentence to obtain the displayed intelligence sentence includes: When it is determined that the number of customized display characters is greater than or equal to the limited number of characters, the standard intelligence sentence is reduced based on the character reduction strategy and the number of customized display characters to obtain a display intelligence sentence; When it is determined that the customized display word count is less than the limited word count, the standard intelligence sentence is customized according to the customized adjustment strategy and the limited word count to obtain a display intelligence sentence.
6. The method according to claim 5, characterized in that When it is determined that the number of customized display characters is greater than or equal to the limited number of characters, the standard intelligence sentence is reduced based on the character reduction strategy and the number of customized display characters to obtain a display intelligence sentence, including: When it is determined that the number of customized display characters is greater than or equal to the limited number of characters, the preset character priority corresponding to the standard intelligence sentence is retrieved, and the associated phrases in the standard intelligence sentence are obtained; Sort the characters in the standard intelligence sentence based on the preset character priority to obtain a character sequence corresponding to the standard intelligence sentence; The number of characters corresponding to the standard intelligence sentence is obtained as the standard number of characters, and the number of deleted characters is obtained according to the difference between the standard number of characters and the customized display number of characters; Selecting the first character in the character sequence as a deletion character, determining the associated phrase where the deletion character is located as a deletion phrase, and deleting and updating the character sequence based on the characters in the deletion phrase to obtain a current character sequence; Repeat the above step of obtaining the current character sequence until the number of characters in the current character sequence is less than or equal to the number of customized display characters and greater than or equal to the limited number of characters, and obtain the characters in the current character sequence as reserved characters; The standard intelligence sentence is shortened according to the reserved characters to obtain a display intelligence sentence.
7. The method according to claim 5, characterized in that When it is determined that the number of customized display words is less than the limited number of words, the standard intelligence sentence is customized according to the customized adjustment strategy and the limited number of words to obtain a display intelligence sentence, including: When it is determined that the number of words to be displayed is less than the number of words to be limited, retaining the key characters in the standard intelligence sentence to obtain a retained intelligence sentence; Counting the effective widths corresponding to the effective areas to obtain a total width, and obtaining a width ratio corresponding to each effective area according to a ratio of each effective width to the total width; Based on the product of the limited number of words and the width proportion, the number of allocated words corresponding to each of the valid areas is obtained; When it is determined that the allocated word numbers are all integers, a font width is obtained according to a ratio of the effective width to the corresponding allocated word number, and a font size is determined based on the font width; The font size of the reserved intelligence sentence is adjusted according to the font size to obtain a displayed intelligence sentence.
8. The method according to claim 7, characterized in that The updating of the display information sentence to the information board and collecting the information to obtain a customized display image, encrypting the customized display image and sending it to the publishing end, receiving the decryption and publishing of the encrypted customized display image by the publishing end, includes: Updating the display information sentence to the information board and collecting it, obtaining a customized display image, acquiring the center point of the customized display image, and performing coordinate processing on the customized display image based on the center point to obtain pixel point coordinates corresponding to the customized display image; Based on the preset display pixel values, coordinates of pixel points in the customized display image are obtained as display coordinates, and adjacent display coordinates are counted to obtain multiple display coordinate sets; Hash-encrypting the display coordinate set to obtain an encrypted customized display image and sending it to the publishing end; The receiving publishing end decrypts the encrypted customized display image, obtains the publishing image and publishes it.
9. The method according to claim 8, characterized in that The receiving and publishing end decrypts the encrypted customized display image to obtain and publish the publishing image, including: Retrieving a publishing base image, wherein the size of the publishing base image is consistent with the size of the customized display image; The publishing base image is coordinate-processed based on the center point of the publishing base image, and the preset display pixel value is updated to the corresponding position of the publishing base image according to the display coordinates received by the publishing end to obtain the publishing image.
10. A terminal for secure processing of information encryption and release of information on information boards, characterized in that: include: A collection module, used to control the information collection device to collect information from the information board, obtain an information collection image corresponding to the information board, and determine the damaged area by comparing the information standard image of the information board with the information collection image; A determination module, used to determine a valid area according to the damaged area and the display area in the intelligence collection image, obtain a customized display word count based on the valid area and the standard character area, and obtain a limited word count of a standard intelligence sentence in the intelligence standard image; A customization module, for obtaining a display intelligence sentence by retrieving a customized display strategy based on the numerical relationship between the customized display word count and the limited word count; The updating module is used to update the display information sentence to the information board and collect it, obtain the customized display image, encrypt the customized display image and send it to the publishing end, and receive the decryption and publishing of the encrypted customized display image by the publishing end.