Vehicle alarm icon processing method and device, vehicle and storage medium
By adjusting and verifying the background color of the alarm icon in the vehicle digital instrument panel, the problem of low alarm icon display accuracy is solved and the purpose of improving the alarm icon display accuracy is achieved.
Patent Information
- Application Number
- CN202411327951.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-01-21
AI Technical Summary
The display accuracy of the alarm icon in the vehicle digital instrument panel is low, and the electronic and electrical failure efficiency is high, making it difficult to ensure the accuracy of the alarm icon.
By responding to the received display signal, an alarm icon matching the signal is generated, and its background color is adjusted to obtain the adjusted icon. Perform verification based on the adjusted icon, generate a verification value, and compare it with the preset verification value to determine the correctness of the icon. The correct alarm icon is shown in the vehicle's display.
The display accuracy of the alarm icon is improved to ensure that the alarm icon displayed in the vehicle display screen is correct, and the problem of low accuracy of the alarm icon display is solved.
Smart Images

Figure CN119336205A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicles, and in particular to a method, a device, a vehicle and a storage medium for processing a vehicle alarm icon. Background Art
[0002] With the development of intelligent vehicles, more and more intelligent technologies are being applied to vehicles, and the vehicle digital instrument panel is one of the intelligent technologies. Compared with the pointer instrument panel, the vehicle digital instrument panel has greatly improved the visual effect and diversity, and can more clearly and accurately reflect the vehicle's alarm information and vehicle status.
[0003] However, there are certain safety risks in the vehicle digital instrument panel. Compared with the single warning light in the pointer instrument panel, the drawing and display of the warning icon in the vehicle digital instrument panel requires complex calculations by the infotainment host. The failure rate of electronic and electrical devices is relatively high, and it is difficult to ensure the accuracy of the warning icon in the vehicle digital instrument panel.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method, device, vehicle and storage medium for processing a vehicle alarm icon, so as to at least solve the technical problem of low accuracy in displaying the alarm icon.
[0006] According to one aspect of an embodiment of the present application, a method for processing a vehicle alarm icon is provided, including: in response to receiving a display signal for displaying a vehicle alarm icon, generating a first alarm icon that matches the display signal; adjusting the background color of the first alarm icon to obtain an adjusted first icon; verifying the first alarm icon based on the adjusted first icon to obtain a first verification result, wherein the first verification result is used to characterize whether the first alarm icon is correct; in response to the first verification result being that the first alarm icon is correct, displaying the first alarm icon on the vehicle's display screen.
[0007] Optionally, the background color of the first alarm icon is adjusted to obtain an adjusted first icon, including: identifying the color of the first alarm icon to determine the background color of the first alarm icon; generating a target mask based on position information of the background color in the first alarm icon; and fusing the target mask with the first alarm icon to obtain the adjusted first icon.
[0008] Optionally, adjusting the background color of the first alarm icon to obtain the adjusted first icon includes: removing the transparency of the first alarm icon to obtain the adjusted first icon.
[0009] Optionally, the first alarm icon is verified based on the adjusted first icon to obtain a first verification result, including: generating a target verification value of the first alarm icon based on the adjusted first icon; determining a target preset verification value of the first alarm icon from multiple preset verification values, wherein different preset verification values correspond to different alarm icons; and comparing the target verification value with the target preset verification value to obtain the first verification result.
[0010] Optionally, based on the adjusted first icon, a target verification value of the first alarm icon is generated, including: converting the format of the adjusted first icon to obtain a binary data stream corresponding to the adjusted first icon; and calculating the binary data stream using a verification algorithm to obtain a target verification value.
[0011] Optionally, the target verification value is compared with the target preset verification value to obtain a first verification result, including: calculating the difference between the target verification value and the target preset verification value; if the absolute value of the difference is less than or equal to a preset threshold, determining that the first verification result is that the first alarm icon is correct; if the absolute value of the difference is greater than the preset threshold, determining that the first verification result is that the first alarm icon is incorrect.
[0012] Optionally, generating a first alarm icon matching the display signal includes: determining a target image feature value corresponding to the display signal from a plurality of image feature values; and rendering the first alarm icon based on the target image feature value.
[0013] Optionally, in response to the first verification result being that the first alarm icon is correct, displaying the first alarm icon on a display screen of the vehicle includes: determining a screen buffer corresponding to the first alarm icon; and outputting data in the screen buffer to the display screen.
[0014] Optionally, in response to the first verification result being that the first alarm icon is incorrect, the method also includes: regenerating a second alarm icon that matches the alarm icon display signal; adjusting the background color of the second alarm icon to obtain an adjusted second icon; verifying the second alarm icon based on the adjusted second icon to obtain a second verification result, wherein the second verification result is used to characterize whether the second alarm icon is correct; in response to the second verification result being that the second alarm icon is correct, displaying the second alarm icon on the vehicle's display screen.
[0015] Optionally, the method further includes: testing the power system of the vehicle to obtain a test result; if the test result is that the power system of the vehicle has failed, generating a display signal for displaying a vehicle alarm icon.
[0016] According to another aspect of an embodiment of the present application, a device for processing a vehicle alarm icon is also provided, including: a generation module, for generating a first alarm icon matching the display signal in response to receiving a display signal for displaying the vehicle alarm icon; an adjustment module, for adjusting the background color of the first alarm icon to obtain an adjusted first icon; a verification module, for verifying the first alarm icon based on the adjusted first icon to obtain a first verification result, wherein the first verification result is used to characterize whether the first alarm icon is correct; and a display module, for displaying the first alarm icon on the display screen of the vehicle in response to the first verification result being that the first alarm icon is correct.
[0017] According to another aspect of an embodiment of the present application, a vehicle is further provided, comprising: a memory storing an executable program; and a processor for running the program, wherein the above-mentioned method for processing a vehicle alarm icon is executed when the program is running.
[0018] According to another aspect of an embodiment of the present application, a computer-readable storage medium is also provided, which includes a stored executable program, wherein when the executable program is running, the device where the storage medium is located is controlled to execute the above-mentioned vehicle alarm icon processing method.
[0019] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the computer program implements the above-mentioned method for processing a vehicle alarm icon.
[0020] In an embodiment of the present application, in response to receiving a display signal for displaying a vehicle alarm icon, a first alarm icon matching the display signal is generated; the background color of the first alarm icon is adjusted to obtain an adjusted first icon; the first alarm icon is verified based on the adjusted first icon to obtain a first verification result; in response to the first verification result being that the first alarm icon is correct, the first alarm icon is displayed on the display screen of the vehicle. It is easy to notice that by first adjusting the background color of the first alarm icon and then verifying based on the adjusted first icon, a relatively stable verification value can be obtained during the verification process, thereby improving the accuracy of the first verification result, ensuring that the first alarm icon displayed on the vehicle display screen is correct, achieving the purpose of improving the accuracy of the alarm icon display, and thus solving the technical problem of low accuracy of the alarm icon display. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0022] Figure 1is a flow chart of a method for processing a vehicle alarm icon according to an embodiment of the present application;
[0023] Figure 2 is a schematic diagram of an optional vehicle alarm icon processing system according to an embodiment of the present application;
[0024] Figure 3 It is a schematic diagram of a vehicle alarm icon processing device according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a system, product or device comprising a series of units is not necessarily limited to those units clearly listed, but may include other units that are not clearly listed or inherent to these products or devices.
[0027] According to an embodiment of the present application, an embodiment of a method for processing a vehicle alarm icon is provided. Figure 1 is a flow chart of a method for processing a vehicle alarm icon according to an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0028] Step S102 : in response to receiving a display signal for displaying a vehicle alarm icon, generating a first alarm icon matching the display signal.
[0029] The display signal in the above steps refers to the signal generated when a system or component in the vehicle fails. It is used to characterize the failure in the vehicle and requires the display of a vehicle alarm icon. Different types of vehicle failures correspond to different display signals and require different vehicle alarm icons to be displayed.
[0030] The first alarm icon mentioned above is a graphic symbol generated according to the display signal, which is used to remind the user of faults existing in the vehicle, such as power system failure, low fuel, engine overheating, seat belt not fastened, brake failure, etc.
[0031] In an optional embodiment, the processing component that generates the first alarm icon matching the display signal according to the display signal may be a SOC (System on Chip) or other forms of processors, such as an ASIC (Application-Specific Integrated Circuit), a DSP (Digital Signal Processor), etc. The following description is made by taking the SOC as an example.
[0032] After receiving the alarm information or specific message of power system failure, that is, the display signal, the SOC will determine the vehicle fault type corresponding to the display information based on the pre-defined communication signal on the vehicle CAN bus and the signal value of the display signal. The vehicle fault type may include but is not limited to vehicle brake system fault, vehicle power system fault, vehicle on-chip system fault, etc. Different vehicle fault types correspond to different alarm icons. After determining the vehicle fault type, the internal engine is called to depict the first alarm icon corresponding to the vehicle fault type, and a first alarm icon matching the display signal is generated.
[0033] Step S104, adjusting the background color of the first alarm icon to obtain an adjusted first icon.
[0034] The base color of the first alarm icon in the above steps is the background color of the first alarm icon, that is, the background color of the area where the first alarm icon is located.
[0035] The adjusted first icon in the above step may be a solid color icon or an icon with a fixed background color.
[0036] In an optional embodiment, the SOC may remove the background color of the first alarm icon to extract the pure color portion of the icon as the first icon. The SOC may also remove the transparency of the background color of the first alarm icon to make the background color of the obtained first icon become a fixed color.
[0037] The purpose of adjusting the background color of the first alarm icon is to obtain a stable CRC value when calculating the CRC (Cyclic Redundancy Check) value, that is, the check value, using the adjusted first icon. Whether the check process is performed on the first icon with the background color removed or the first icon with the transparency removed, the CRC value calculated each time can be made uniform, and a stable CRC value can be obtained, thereby improving the accuracy of the test.
[0038] Step S106: verify the first alarm icon based on the adjusted first icon to obtain a first verification result, wherein the first verification result is used to indicate whether the first alarm icon is correct.
[0039] In an optional embodiment, a cyclic redundancy algorithm can be used on the SOC to calculate the CRC value of the adjusted first icon. Then, according to the type of vehicle fault, a standard CRC value corresponding to the vehicle fault type is determined from multiple standard CRC values pre-stored by the MCU (Microcontroller), and the calculated CRC value is transmitted from the SOC to the MCU and compared with the standard CRC value. By comparing whether the calculated CRC value is consistent with the standard CRC value, it is determined whether the first alarm icon is correct, and a first verification result is obtained.
[0040] In another optional embodiment, the first icon on the SOC is transmitted to the MCU, and according to the type of vehicle fault, a standard icon corresponding to the type of vehicle fault is determined from a plurality of standard icons pre-stored in the MCU. The first icon and the standard icon are compared, and if the two are consistent, it is determined that the first alarm icon is correct, and if the two are inconsistent, it is determined that the first alarm icon is incorrect.
[0041] Step S108, in response to the first verification result being that the first alarm icon is correct, displaying the first alarm icon on a display screen of the vehicle.
[0042] The above-mentioned display screen may be a vehicle digital instrument panel, but is not limited thereto, and may also be a liquid crystal display screen, an interactive display screen, etc.
[0043] In an optional embodiment, the MCU returns the first verification result to the SOC. If the first verification result shows that the first warning icon is correct, the first warning icon in the SOC is output to the video stream to be provided to the display screen, and the first warning icon is displayed to the user through the display screen, so as to promptly remind the user that the vehicle is in potential danger.
[0044] In an embodiment of the present application, in response to receiving a display signal for displaying a vehicle alarm icon, a first alarm icon matching the display signal is generated; the background color of the first alarm icon is adjusted to obtain an adjusted first icon; the first alarm icon is verified based on the adjusted first icon to obtain a first verification result; in response to the first verification result being that the first alarm icon is correct, the first alarm icon is displayed on the display screen of the vehicle. It is easy to notice that by first adjusting the background color of the first alarm icon and then verifying based on the adjusted first icon, a relatively stable verification value can be obtained during the verification process, thereby improving the accuracy of the first verification result, ensuring that the first alarm icon displayed on the vehicle display screen is correct, achieving the purpose of improving the accuracy of the alarm icon display, and thus solving the technical problem of low accuracy of the alarm icon display.
[0045] Optionally, the background color of the first alarm icon is adjusted to obtain an adjusted first icon, including: identifying the color of the first alarm icon to determine the background color of the first alarm icon; generating a target mask based on position information of the background color in the first alarm icon; and fusing the target mask with the first alarm icon to obtain the adjusted first icon.
[0046] The background color in the above step is the color of the background part of the first alarm icon except the icon itself.
[0047] The position information in the above steps is used to characterize the position of the background color in the first alarm icon. The position information of the background color in the first alarm icon is determined to determine the area in the first alarm icon that needs to be made transparent so as to generate a target mask and remove the background color of the first alarm icon.
[0048] The target mask in the above steps refers to a binary image generated according to the position information of the background color, used to identify the background color area, and remove the background color of the first alarm icon. It is usually a black and white image, in which the background color area is black and other areas are white. In addition to the form of a black and white image, the target mask can also be in the form of a grayscale image, a shape mask, or a depth image, but is not limited thereto.
[0049] In an optional embodiment, color recognition technology can be used to identify the background color of the first alarm icon, and determine the position of the background color in the first alarm icon to obtain the position information of the background color in the first alarm icon. Use mask technology to generate a black and white image of the same size as the first alarm icon, set the position corresponding to the background color to black, and set other positions to white to obtain a target mask. Superimpose the target mask on the first alarm icon so that the target mask and the first alarm icon are aligned. After applying the target mask to the first alarm icon, the area corresponding to the black part of the target mask in the first alarm icon will be removed, that is, it will become transparent, and the area corresponding to the white part will be retained, so as to obtain the first icon after removing the background color.
[0050] The first alarm icon is subjected to background color removal processing, that is, after the background color removal processing, the pure color part of the first alarm icon is extracted to obtain the first icon, so that the verification value calculated based on the first icon each time tends to be unified, which is convenient for the MCU to proofread the verification value corresponding to the first alarm icon.
[0051] Optionally, adjusting the background color of the first alarm icon to obtain the adjusted first icon includes: removing the transparency of the first alarm icon to obtain the adjusted first icon.
[0052] In an optional embodiment, an interface of image processing software can be introduced, and the transparency of the first alarm icon can be removed by using the function of the image processing software to obtain a first icon of a single color. Compared with the first alarm icon, removing the transparency will change the background color of the first icon to a fixed color. By calculating the check value based on the first icon after removing the transparency, a stable check value can be obtained, which is convenient for the MCU to calibrate the check value corresponding to the first alarm icon.
[0053] Optionally, the first alarm icon is verified based on the adjusted first icon to obtain a first verification result, including: generating a target verification value of the first alarm icon based on the adjusted first icon; determining a target preset verification value of the first alarm icon from multiple preset verification values, wherein different preset verification values correspond to different alarm icons; and comparing the target verification value with the target preset verification value to obtain the first verification result.
[0054] The target check value in the above step is a value obtained by calculating the adjusted first icon using a check algorithm. The check algorithm can be CRC, parity check, or hash function, but is not limited thereto.
[0055] The preset check value in the above steps is a pre-set check value. Different vehicle fault types correspond to different standard icons, and different preset check values are values calculated based on the standard icons after the background color adjustment using the check algorithm, where different standard icons are correct icons corresponding to different vehicle fault types. The specific data of the preset check value can be preset according to the actual application situation, and the specific value of the preset check value is not limited here.
[0056] The target preset check value in the above steps is a preset check value corresponding to the first alarm icon, and can be determined according to the vehicle fault type corresponding to the first alarm icon.
[0057] In an optional embodiment, if the adjusted first icon is an icon with the background color removed, the multiple standard verification values pre-stored in the MCU are values obtained by verifying and calculating multiple standard icons with the background color removed using a verification algorithm. If the adjusted first icon is an icon with transparency removed, the multiple standard verification values pre-stored in the MCU are values obtained by verifying and calculating multiple standard icons with transparency removed using a verification algorithm.
[0058] The SOC uses a verification algorithm to process the adjusted first icon, generates a target verification value for the first alarm icon, and sends the target verification value for the first alarm icon to the MCU. When the display signal is generated, the MCU will also receive the display signal synchronously, and determine the standard icon according to the vehicle fault type corresponding to the display signal, and then determine the standard verification value corresponding to the vehicle fault type from multiple standard verification values according to the standard icon, that is, the target preset verification value.
[0059] The target verification value of the first alarm icon is compared with the target preset verification value. If the two are consistent, it is determined that the first alarm icon is correct; otherwise, it is determined that the first alarm icon is incorrect.
[0060] The image processing capability of MCU is limited, and it is not possible to directly convert multiple standard icons into numerical values and store them. Therefore, the standard icons are processed with background colors, and relatively stable verification values are calculated and stored to verify the first alarm icon generated in real time. At the same time, MCU is a component that meets functional safety requirements and can perform reliable and stable comparison processing on the target verification value and the target preset verification value. Therefore, SOC can be selected to generate the target preset verification value of the first alarm icon, and MCU can be selected to perform verification.
[0061] Optionally, based on the adjusted first icon, a target verification value of the first alarm icon is generated, including: converting the format of the adjusted first icon to obtain a binary data stream corresponding to the adjusted first icon; and calculating the binary data stream using a verification algorithm to obtain a target verification value.
[0062] The binary data stream in the above steps is a data sequence composed of binary bits, which can be used as an input of a verification algorithm to calculate a target verification value of the first alarm icon.
[0063] In an optional embodiment, the adjusted first icon can be saved as a binary file, and then the binary file is read and converted into a binary data stream through a format conversion command. A CRC algorithm can be selected as a verification algorithm, and the binary data stream is input into the CRC algorithm to generate a target verification value.
[0064] Optionally, the target verification value is compared with the target preset verification value to obtain a first verification result, including: calculating the difference between the target verification value and the target preset verification value; if the absolute value of the difference is less than or equal to a preset threshold, determining that the first verification result is that the first alarm icon is correct; if the absolute value of the difference is greater than the preset threshold, determining that the first verification result is that the first alarm icon is incorrect.
[0065] The preset threshold in the above steps is a preset threshold, which can be preset according to actual application conditions, and no restriction is imposed on the specific value of the preset threshold.
[0066] In an optional embodiment, the difference between the target check value and the target preset check value can be calculated, and the absolute value of the difference can be calculated. Exemplarily, the preset threshold can be set to 0.001, that is, if the difference between the target check value and the target preset check value appears after three decimal places, the first alarm icon is the correct icon; the preset threshold can also be set to 0.0001, that is, if the difference between the target check value and the target preset check value appears after five decimal places, the first alarm icon is the correct icon, but the above values are only examples, and the specific values of the preset thresholds that can be selected in actual applications are not limited to this. If the absolute value of the difference is less than or equal to the preset threshold, it is determined that the first check result is that the first alarm icon is correct; if the absolute value of the difference is greater than the preset threshold, it is determined that the first check result is that the first alarm icon is incorrect.
[0067] Optionally, generating a first alarm icon matching the display signal includes: determining a target image feature value corresponding to the display signal from a plurality of image feature values; and rendering the first alarm icon based on the target image feature value.
[0068] The image feature values in the above steps are values used to characterize the content or attributes of the image, including but not limited to color feature values describing the color distribution of each pixel in the image, texture feature values describing the distribution and characteristics of the texture in the image, shape feature values describing the shape and contour characteristics of the object in the image, size feature values describing the size and proportional relationship of the image, etc. The icon described by the image feature value can be rendered according to the image feature value.
[0069] The target image feature value in the above steps is the image feature value of the first alarm icon corresponding to the display signal.
[0070] In an optional embodiment, the vehicle accident type is determined according to the display signal, and then the target image feature value of the alarm icon corresponding to the vehicle accident type is determined from a plurality of pre-stored image feature values. Then, the service responsible for drawing the alarm icon on the SOC draws the icon according to the target image feature value to obtain the first alarm icon.
[0071] Optionally, in response to the first verification result being that the first alarm icon is correct, displaying the first alarm icon on a display screen of the vehicle includes: determining a screen buffer corresponding to the first alarm icon; and outputting data in the screen buffer to the display screen.
[0072] The screen buffer in the above steps is a memory area used to store graphics display content.
[0073] In an optional embodiment, when the first verification result is that the first alarm icon is correct, the first alarm icon needs to be displayed on the display screen. When drawing the first alarm icon, the first alarm icon has been drawn into the screen buffer, so when displaying the first alarm icon, it is necessary to determine the screen buffer corresponding to the first alarm icon, and then copy the data of the screen buffer to the display screen at a certain refresh frequency, so as to realize the display of the first alarm icon on the display screen. For example, the refresh frequency can be 60 times per second, but it is not limited thereto, and the refresh frequency can also be set to other values according to actual application conditions.
[0074] Optionally, in response to the first verification result being that the first alarm icon is incorrect, the method also includes: regenerating a second alarm icon that matches the alarm icon display signal; adjusting the background color of the second alarm icon to obtain an adjusted second icon; verifying the second alarm icon based on the adjusted second icon to obtain a second verification result, wherein the second verification result is used to characterize whether the second alarm icon is correct; in response to the second verification result being that the second alarm icon is correct, displaying the second alarm icon on the vehicle's display screen.
[0075] The second alarm icon in the above steps is an alarm icon that is regenerated based on the display signal corresponding to the first alarm icon when the first verification result shows that the first alarm icon is incorrect.
[0076] The above steps are to obtain the icon after adjusting the background color of the second alarm icon.
[0077] The second verification result in the above step is used to indicate whether the second alarm icon is correct, and is obtained by verifying the second alarm icon.
[0078] In an optional embodiment, when the verification result shows that the first alarm icon is incorrect, the display screen does not display the first alarm icon, but the SOC regenerates the alarm icon, that is, the second alarm icon, and the MCU verifies the accuracy of the second alarm icon again according to the vehicle alarm icon processing method. If the second verification result shows that the second alarm icon is correct, the second alarm icon is displayed on the vehicle display screen.
[0079] Optionally, the method further includes: testing the power system of the vehicle to obtain a test result; if the test result is that the power system of the vehicle has failed, generating a display signal for displaying a vehicle alarm icon.
[0080] The power system of the vehicle in the above steps is a system that directly or indirectly provides driving force for the vehicle, and can be a transmitter, a transmission, or a transmission system, but is not limited thereto.
[0081] In an optional embodiment, when the power system of the vehicle fails, the detection component detects an abnormality, determines the current abnormality type as a power system failure according to an abnormality handling code for handling the abnormal situation, generates a display signal corresponding to the power system failure, and transmits the display signal to the SOC.
[0082] A preferred embodiment is described below. Figure 2 is a schematic diagram of an optional vehicle alarm icon processing system according to an embodiment of the present application, such as Figure 2As shown, an optional vehicle alarm icon processing system includes: a system on chip, a microprocessor and a display screen, wherein the system on chip includes a rendering engine, a background color processing unit, a check value generating unit, and the microprocessor includes a memory. When a failure of the vehicle's power system is detected, an alarm icon display signal is generated. After the system on chip, i.e., SOC, receives the display signal, the rendering engine in the SOC draws the icon according to the alarm icon display signal, generates a first alarm icon, and then sends the first alarm icon to the background color processing unit. The background color processing unit removes the background color of the first alarm icon to obtain a single-color icon, and sends the single-color icon to the check value generating unit. The check value generating unit performs CRC calculation processing on the single-color icon to obtain a check value, and then sends the check value to the microprocessor. The microprocessor is also the MCU mentioned above. The microprocessor queries the target preset check value of the alarm icon stored in advance from the memory, compares the check value with the target preset check value, obtains the check result, and returns the check result to the system on chip. If the verification result is that the first alarm icon is correct, the display obtains the first alarm icon from the system on chip and displays it; if the verification result is that the first alarm icon is incorrect, the system on chip regenerates the alarm icon, that is, the second alarm icon, and re-verifies it by the microprocessor.
[0083] The above-mentioned vehicle alarm icon processing system can use the MCU to compare the CRC value of the first alarm icon, rather than using a separate OSD (On-Screen Display) chip for image verification. Since the OSD chip has certain requirements for the display resolution and display size of the display screen, and also has certain requirements for the style, background and color of the alarm icon, it has high limitations. Therefore, the use of the vehicle alarm icon processing system in the embodiment of the present application can achieve the purpose of improving the display accuracy of the alarm icon while avoiding the limitations caused by the OSD chip.
[0084] Example 2
[0085] According to an embodiment of the present invention, an embodiment of a vehicle alarm icon processing device is provided. The device can execute the vehicle alarm icon processing method provided in the above-mentioned embodiment 1. The specific implementation method and preferred application scenario are the same as those of the above-mentioned embodiment 1, and will not be repeated here.
[0086] Figure 3 is a schematic diagram of a vehicle alarm icon processing device according to an embodiment of the present application, such as Figure 3 As shown:
[0087] The generating module 30 is configured to generate a first alarm icon matching the display signal in response to receiving a display signal for displaying a vehicle alarm icon.
[0088] The adjustment module 32 is used to adjust the background color of the first alarm icon to obtain an adjusted first icon.
[0089] The verification module 34 is used to verify the first alarm icon based on the adjusted first icon to obtain a first verification result, wherein the first verification result is used to indicate whether the first alarm icon is correct.
[0090] The display module 36 is configured to display the first alarm icon on a display screen of the vehicle in response to the first verification result indicating that the first alarm icon is correct.
[0091] Optionally, the adjustment module includes: a first determination unit, used to identify the color of the first alarm icon and determine the background color of the first alarm icon; a first generation unit, used to generate a target mask based on the position information of the background color in the first alarm icon; and a fusion unit, used to fuse the target mask with the first alarm icon to obtain an adjusted first icon.
[0092] Optionally, the adjustment module further includes: a removal unit, configured to remove the transparency of the first alarm icon to obtain an adjusted first icon.
[0093] Optionally, the inspection module includes: a second generation unit, used to generate a target verification value of the first alarm icon based on the adjusted first icon; a second determination unit, used to determine the target preset verification value of the first alarm icon from multiple preset verification values, wherein different preset verification values correspond to different alarm icons; and a comparison unit, used to compare the target verification value with the target preset verification value to obtain a first verification result.
[0094] Optionally, the second generating unit is further used to perform format conversion on the adjusted first icon to obtain a binary data stream corresponding to the adjusted first icon; and use a verification algorithm to calculate the binary data stream to obtain a target verification value.
[0095] Optionally, the comparison unit is also used to calculate the difference between the target verification value and the target preset verification value; if the absolute value of the difference is less than or equal to the preset threshold, the first verification result is determined to be that the first alarm icon is correct; if the absolute value of the difference is greater than the preset threshold, the first verification result is determined to be that the first alarm icon is incorrect.
[0096] Optionally, the generating module includes: a third determining unit, used to determine a target image feature value corresponding to the display signal from a plurality of image feature values; and a rendering unit, used to render a first alarm icon based on the target image feature value.
[0097] Optionally, the display module includes: a fourth determining unit, used to determine a screen buffer corresponding to the first alarm icon; and an output unit, used to output data in the screen buffer to a display screen.
[0098] Optionally, the generation module is also used to regenerate a second alarm icon that matches the alarm icon display signal; the adjustment module is also used to adjust the background color of the second alarm icon to obtain an adjusted second icon; the verification module is also used to verify the second alarm icon based on the adjusted second icon to obtain a second verification result, wherein the second verification result is used to characterize whether the second alarm icon is correct; the display module is also used to display the second alarm icon on the vehicle's display screen in response to the second verification result being that the second alarm icon is correct.
[0099] Optionally, the generating module is also used to detect the power system of the vehicle and obtain a detection result; if the detection result is that the power system of the vehicle has failed, a display signal is generated to display a vehicle alarm icon.
[0100] Example 3
[0101] According to an embodiment of the present invention, an electronic device is also provided, including: a memory storing an executable program; and a processor for running the program, wherein the method for processing the vehicle alarm icon in embodiment 1 is executed when the program is running.
[0102] Example 4
[0103] An embodiment of the present application also provides a computer-readable storage medium, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the vehicle alarm icon processing method in each embodiment of the present invention.
[0104] Example 5
[0105] An embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the vehicle alarm icon processing method in each embodiment of the present invention.
[0106] Example 6
[0107] An embodiment of the present application also provides a computer program product, including a non-volatile computer-readable storage medium, the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, it implements the vehicle alarm icon processing method in each embodiment of the present invention.
[0108] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0109] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0110] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0112] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0113] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0114] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing a vehicle alarm icon, characterized in that: include: In response to receiving a display signal for displaying a vehicle alarm icon, generating a first alarm icon matching the display signal; Adjusting the background color of the first alarm icon to obtain an adjusted first icon; Verifying the first alarm icon based on the adjusted first icon to obtain a first verification result, wherein the first verification result is used to indicate whether the first alarm icon is correct; In response to the first verification result being that the first warning icon is correct, the first warning icon is displayed on a display screen of the vehicle.
2. The method for processing a vehicle alarm icon according to claim 1, characterized in that: Adjusting the background color of the first alarm icon to obtain an adjusted first icon includes: Identify the color of the first alarm icon and determine the background color of the first alarm icon; generating a target mask based on the position information of the background color in the first alarm icon; The target mask is merged with the first alarm icon to obtain the adjusted first icon.
3. The method for processing a vehicle alarm icon according to claim 1, characterized in that: Adjusting the background color of the first alarm icon to obtain an adjusted first icon includes: The transparency of the first alarm icon is removed to obtain the adjusted first icon.
4. The method for processing a vehicle alarm icon according to claim 1, characterized in that: Verifying the first alarm icon based on the adjusted first icon to obtain a first verification result includes: generating a target check value of the first alarm icon based on the adjusted first icon; Determining a target preset check value of the first alarm icon from a plurality of preset check values, wherein different preset check values correspond to different alarm icons; The target verification value is compared with the target preset verification value to obtain the first verification result.
5. The method for processing a vehicle alarm icon according to claim 4, characterized in that: Generating a target verification value of the first alarm icon based on the adjusted first icon includes: Performing format conversion on the adjusted first icon to obtain a binary data stream corresponding to the adjusted first icon; The binary data stream is calculated using a checksum algorithm to obtain the target checksum value.
6. The method for processing a vehicle alarm icon according to claim 4, characterized in that: Comparing the target verification value with the target preset verification value to obtain the first verification result includes: Calculating the difference between the target check value and the target preset check value; If the absolute value of the difference is less than or equal to a preset threshold, determining that the first verification result is that the first alarm icon is correct; If the absolute value of the difference is greater than a preset threshold, it is determined that the first verification result is that the first alarm icon is incorrect.
7. The method for processing a vehicle alarm icon according to claim 1, characterized in that: Generating a first alarm icon matching the display signal, comprising: Determining a target image feature value corresponding to the display signal from a plurality of image feature values; Based on the target image feature value, the first alarm icon is rendered.
8. The method for processing a vehicle alarm icon according to claim 1, characterized in that: In response to the first verification result being that the first warning icon is correct, displaying the first warning icon on a display screen of the vehicle includes: Determine a screen buffer area corresponding to the first alarm icon; The data in the screen buffer is output to a display screen.
9. The method for processing a vehicle alarm icon according to any one of claims 1 to 8, characterized in that: In response to the first verification result being that the first alarm icon is incorrect, the method further includes: regenerating a second alarm icon that matches the alarm icon display signal; Adjusting the background color of the second alarm icon to obtain an adjusted second icon; Verifying the second alarm icon based on the adjusted second icon to obtain a second verification result, wherein the second verification result is used to indicate whether the second alarm icon is correct; In response to the second verification result being that the second warning icon is correct, the second warning icon is displayed on a display screen of the vehicle.
10. The method for processing a vehicle alarm icon according to claim 1, characterized in that: The method further comprises: Testing the power system of the vehicle to obtain a test result; If the detection result is that the power system of the vehicle has failed, a display signal is generated to display a vehicle alarm icon.
11. A vehicle alarm icon processing device, characterized in that: include: A generating module, configured to generate a first alarm icon matching the display signal in response to receiving a display signal for displaying a vehicle alarm icon; An adjustment module, used for adjusting the background color of the first alarm icon to obtain an adjusted first icon; a verification module, configured to verify the first alarm icon based on the adjusted first icon to obtain a first verification result, wherein the first verification result is used to indicate whether the first alarm icon is correct; The display module is configured to display the first alarm icon on a display screen of the vehicle in response to the first verification result indicating that the first alarm icon is correct.
12. A vehicle, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein when the program is running, the method for processing a vehicle alarm icon as described in any one of claims 1 to 10 is executed.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the storage medium is located is controlled to execute the vehicle alarm icon processing method described in any one of claims 1 to 10.
14. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the method for processing a vehicle warning icon according to any one of claims 1 to 10.
Citation Information
Cited By
Display verification method, bridging chip, display device and electronic device
CN119919403A