CN113400938B - Display method, vehicle-mounted terminal, vehicle and storage medium - Google Patents

Display method, vehicle-mounted terminal, vehicle and storage medium Download PDF

Info

Publication number
CN113400938B
CN113400938B CN202110870235.6A CN202110870235A CN113400938B CN 113400938 B CN113400938 B CN 113400938B CN 202110870235 A CN202110870235 A CN 202110870235A CN 113400938 B CN113400938 B CN 113400938B
Authority
CN
China
Prior art keywords
preset
boundary
battery
cutting
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110870235.6A
Other languages
Chinese (zh)
Other versions
CN113400938A (en
Inventor
陈高阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Motors Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xiaopeng Motors Technology Co Ltd filed Critical Guangzhou Xiaopeng Motors Technology Co Ltd
Priority to CN202110870235.6A priority Critical patent/CN113400938B/en
Publication of CN113400938A publication Critical patent/CN113400938A/en
Application granted granted Critical
Publication of CN113400938B publication Critical patent/CN113400938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K35/00Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K35/00Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
    • B60K35/20Output arrangements, i.e. from vehicle to user, associated with vehicle functions or specially adapted therefor
    • B60K35/21Output arrangements, i.e. from vehicle to user, associated with vehicle functions or specially adapted therefor using visual output, e.g. blinking lights or matrix displays
    • B60K35/22Display screens
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K35/00Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
    • B60K35/20Output arrangements, i.e. from vehicle to user, associated with vehicle functions or specially adapted therefor
    • B60K35/28Output arrangements, i.e. from vehicle to user, associated with vehicle functions or specially adapted therefor characterised by the type of the output information, e.g. video entertainment or vehicle dynamics information; characterised by the purpose of the output information, e.g. for attracting the attention of the driver
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K2360/00Indexing scheme associated with groups B60K35/00 or B60K37/00 relating to details of instruments or dashboards
    • B60K2360/16Type of output information
    • B60K2360/167Vehicle dynamics information

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

The invention discloses a display method, a vehicle-mounted terminal, a vehicle and a storage medium. The display method of the invention is used for vehicles. The vehicle includes a battery and a meter. The instrument can be based on the attribute information of tall and erect system display battery. The display method comprises the following steps: processing the preset picture for multiple times according to the attribute information to obtain a multi-frame target picture; and sequentially displaying the multiple frames of target pictures to be used as the attribute display animation of the battery. In the display method, the attribute display animation of the battery is displayed based on the android system, so that the display mode of the attribute information of the battery is enriched, and the user experience is favorably improved. In addition, compared with a linux system, the android system has stronger processing capability and can display more complicated attribute display animations.

Description

Display method, vehicle-mounted terminal, vehicle and storage medium
Technical Field
The present invention relates to the field of vehicle display technologies, and in particular, to a display method, a vehicle-mounted terminal, a vehicle, and a storage medium.
Background
With the rapid development of science and technology, various electric automobiles appear in the lives of people. In the related art, the instrument of the electric automobile adopts a scheme of operating the linux system on the single chip microcomputer, and the calculation force of the chip used by the single chip microcomputer is lower, so that the electric quantity information displayed on the instrument of the electric automobile is single, for example, only a single color block can be displayed, the electric quantity information cannot be flexibly displayed, and the improvement of user experience is not facilitated.
Disclosure of Invention
The invention provides a display method, a vehicle-mounted terminal, a vehicle and a storage medium.
The display method of the embodiment of the invention is used for a vehicle. The vehicle comprises a battery and an instrument, the instrument can display attribute information of the battery based on an android system, and the display method comprises the following steps: processing the preset picture for multiple times according to the attribute information to obtain multiple frames of target pictures; and sequentially displaying a plurality of frames of the target pictures to be used as the attribute display animation of the battery.
In the display method, the attribute display animation of the battery is displayed based on the android system, so that the display mode of the attribute information of the battery is enriched, and the user experience is favorably improved. In addition, compared with a linux system, the android system has stronger processing capability and can display more complicated attribute display animations.
In some embodiments, the attribute information includes an electric quantity state, the preset picture includes a full electric quantity map, and the processing the preset picture multiple times according to the attribute information to obtain multiple frames of target pictures includes: acquiring the current electric quantity of the battery; and cutting the full-capacity graph for multiple times according to the current electric quantity to obtain multiple frames of target pictures, wherein the electric quantity of the battery corresponding to the multiple frames of target pictures is sequentially increased from zero to the current electric quantity.
In some embodiments, the cropping the full power map multiple times according to the current power to obtain multiple frames of target pictures includes: determining a first playing time length of the attribute display animation corresponding to the current electric quantity, wherein the first playing time length comprises a plurality of preset moments; determining a cutting boundary corresponding to each preset moment; and cutting the full-capacity graph according to the plurality of cutting boundaries to obtain a plurality of frames of the target pictures.
In some embodiments, the determining a first playing time length of the attribute display animation corresponding to the current electric quantity includes: and determining the first playing time length of the attribute display animation corresponding to the current electric quantity according to the current electric quantity, the full electric quantity and the second playing time length of the attribute display animation corresponding to the full electric quantity.
In some embodiments, the determining the clipping boundaries corresponding to each of the preset times includes: determining a first rectangular strip corresponding to the cutting right boundary corresponding to the preset moment to serve as a preset rectangular strip; caching the preset rectangular strips to a preset storage space, and updating the cached rectangular strips in the preset storage space, wherein the cached rectangular strips are first rectangular strips corresponding to the cutting right boundary corresponding to each previous moment, and the previous moment is earlier than the preset moment; and determining the cutting boundary according to the updated cache rectangular strip and the preset rectangular strip in the preset storage space.
In some embodiments, the full charge map includes a first height and a second width, the full charge map includes a plurality of second rectangular bars, each of the second rectangular bars includes a third width, the first rectangular bar includes a clipping right boundary, a clipping left boundary, a clipping upper boundary, and a clipping lower boundary corresponding to the preset time, the height of the clipping right boundary corresponding to the preset time is a first preset value, and determining the first rectangular bar corresponding to the clipping right boundary corresponding to the preset time as the preset rectangular bar includes: determining a cutting right boundary corresponding to the preset moment according to the preset moment, the first playing time, the current electric quantity and the second width; determining the cutting left boundary according to the cutting right boundary corresponding to the preset moment and the third width; determining the cutting upper boundary according to the first height and a second preset value, wherein the second preset value is one half of the first preset value; and determining the cutting lower boundary according to the cutting upper boundary and the first preset value.
In some embodiments, the caching rectangular strips include a plurality of rectangular strips, each of the rectangular strips includes an upper caching boundary, a lower caching boundary and a left caching boundary, and the caching the preset rectangular strip into a preset storage space and updating the caching rectangular strip in the preset storage space includes: when the clipping left boundary is not equal to any one cache left boundary, caching the preset rectangular strip to the preset storage space; updating the upper cache boundary and the lower cache boundary of each cache rectangular strip according to the second preset value; deleting the cache rectangular bar with the difference value between the lower cache boundary and the upper cache boundary in the preset storage space being greater than or equal to the first height so as to complete updating.
In some embodiments, the determining the clipping boundary according to the updated cache rectangle bar and the updated preset rectangle bar in the preset storage space includes: determining the minimum value of the cache left boundary in the updated preset storage space; determining a first clipping boundary according to the minimum value of the cache left boundary and the second width; integrating the updated cache rectangular strips and the preset rectangular strips in the preset storage space to obtain a second cutting boundary; and determining the cutting boundary according to the first cutting boundary and the second cutting boundary.
In some embodiments, the attribute display animation includes a battery slot map, the battery slot map includes a slot right boundary, the attribute information includes a charging state, the preset picture includes a preset streamer map, the preset streamer map includes a first width and a moving right boundary, the target picture is a picture displayed when the preset streamer map moves in the battery slot map when the battery is charged, and the processing the preset picture multiple times according to the attribute information to obtain a multi-frame target picture includes: when the charging state is charging, selecting the larger value of the difference value between the moving right boundary and the first width and zero as the cutting left boundary of the preset streamer chart; selecting the smaller value of the moving right boundary and the groove right boundary as the cutting right boundary of the preset streamer chart; cutting the preset streamer chart according to the cutting left boundary and the cutting right boundary to obtain the target picture; and when the position of the moving right boundary changes, the step of selecting the larger value of the difference value between the moving right boundary and the first width and zero as the cutting left boundary of the preset streamer chart is carried out again.
In some embodiments, the attribute display animation includes a battery frame and a preset halo map, and the preset halo map is used for displaying around the battery frame when the battery is charged.
In some embodiments, the android system includes a rendering algorithm, the attribute display animation includes a battery border, and the sequentially displaying multiple frames of the target picture as the attribute display animation of the battery includes: and sequentially drawing each frame of the target picture in the battery frame by adopting the drawing algorithm to serve as the attribute display animation of the current electric quantity.
In some embodiments, the attribute display animation includes a current power map, the current power map is a first color when the current power of the battery is lower than a preset power, the current power map is a second color when the current power of the battery is higher than the preset power, and the first color is different from the second color.
In some embodiments, the display modes of the attribute display animation include a first display mode and a second display mode, and the display colors of the attribute display animation are different for different display modes.
In some embodiments, the vehicle further includes a central display screen that shares the android system with the meter.
The vehicle-mounted terminal is arranged on a vehicle, the vehicle comprises a battery and an instrument, the instrument can display attribute information of the battery based on an android system, and the vehicle-mounted terminal is used for: processing the preset picture for multiple times according to the attribute information to obtain multiple frames of target pictures; and sequentially displaying a plurality of frames of the target pictures to be used as the attribute display animation of the battery.
In the vehicle-mounted terminal, the attribute display animation of the battery is displayed based on the android system, so that the display mode of the attribute information of the battery is enriched, and the user experience is favorably improved. In addition, compared with a linux system, the android system has stronger processing capability and can display more complicated attribute display animations.
The vehicle of the embodiment of the invention comprises a body, a battery, a meter and the vehicle-mounted terminal of the embodiment, wherein the battery, the meter and the vehicle-mounted terminal are arranged on the body.
In the vehicle, attribute display animation of the battery is displayed based on the android system, the display mode of attribute information of the battery is enriched, and user experience is promoted. In addition, compared with a linux system, the android system has stronger processing capability and can display more complicated attribute display animations.
A computer-readable storage medium of an embodiment of the present invention, on which a computer program is stored, is characterized in that the steps of the display method described in the above embodiment are implemented when the program is executed by a processor.
In the computer-readable storage medium, the attribute display animation of the battery is displayed based on the android system, so that the display mode of the attribute information of the battery is enriched, and the user experience is favorably improved. In addition, compared with a linux system, the android system has stronger processing capability and can display more complicated attribute display animations.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart of a display method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a vehicle terminal according to an embodiment of the present invention;
FIG. 3 is a scene schematic diagram of a display method according to an embodiment of the invention;
FIG. 4 is a schematic view of a scene of a display method according to an embodiment of the invention;
FIG. 5 is a flow chart illustrating a display method according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating a display method according to an embodiment of the present invention;
FIG. 7 is a flow chart illustrating a display method according to an embodiment of the present invention;
FIG. 8 is a flow chart illustrating a display method according to an embodiment of the present invention;
FIG. 9 is a schematic flow chart diagram of a display method according to an embodiment of the present invention;
FIG. 10 is a scene schematic diagram of a display method according to an embodiment of the invention;
FIG. 11 is a flow chart illustrating a display method according to an embodiment of the present invention;
FIG. 12 is a flow chart illustrating a display method according to an embodiment of the present invention;
FIG. 13 is a schematic flow chart diagram of a display method according to an embodiment of the invention;
FIG. 14 is a scene schematic diagram of a display method according to an embodiment of the invention;
FIG. 15 is a schematic flow chart diagram of a display method according to an embodiment of the invention;
fig. 16 is a scene schematic diagram of a vehicle according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
Referring to fig. 1, a display method according to an embodiment of the present invention is applied to a vehicle. The vehicle comprises a battery and an instrument, the instrument can display attribute information of the battery based on an android system, and the display method comprises the following steps:
s10: processing the preset picture for multiple times according to the attribute information to obtain a multi-frame target picture;
s20: and sequentially displaying the multiple frames of target pictures to be used as the attribute display animation of the battery.
The display method of the embodiment of the invention can be realized by the vehicle-mounted terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is arranged on a vehicle, the vehicle comprises a battery and an instrument, the instrument can display attribute information of the battery based on an android system, and the vehicle-mounted terminal is used for processing preset pictures for multiple times according to the attribute information to obtain multi-frame target pictures and sequentially displaying the multi-frame target pictures to serve as attribute display animations of the battery. Referring to fig. 2, in some embodiments, the in-vehicle terminal 100 may include one or more processors 10 and a memory 20, where the memory 20 stores a computer program, and the computer program implements step S10 and step S20 when executed by the processor 10.
According to the display method and the vehicle-mounted terminal, the attribute display animation of the battery is displayed based on the android system, the display mode of the attribute information of the battery is enriched, and the user experience is improved. In addition, compared with a linux system, the android system has stronger processing capability and can display more complicated attribute display animations.
It can be understood that, in the related art, the charging animation based on the android system is generally applied to a single-screen terminal such as a mobile phone and a tablet; in the display method of the embodiment of the invention, the attribute display animation based on the android system can be specially used for the instrument of the vehicle, and the instrument and the central control display screen are realized based on the split screens of the display screens under the same android system.
Secondly, in the related art, the charging animation is only the water ripple oscillation of a certain electric quantity in the circular area; in the display method according to the embodiment of the present invention, the displayed attribute display animation may include a preset streamer graph or a set electric quantity animation, where the preset streamer graph can move from left to right in the attribute display animation displayed when the battery is charged, and the set electric quantity animation can show an effect that the electric quantity increases from 0 to the current electric quantity in a stepwise manner when the current electric quantity is triggered and displayed, that is, there may be an image increase corresponding to multiple electric quantities in the set electric quantity animation at the same time.
In addition, in the related art, the charging animation is implemented by presetting a graphic and then filling, and the animation effect displayed after the battery is fully charged is a frame animation; in the display method of the embodiment of the invention, all pictures displayed by the attribute display animation are cut by the algorithm and then drawn by using the attribute animation, and the difference between the overall realization mode and the display effect of the two pictures is large.
Specifically, vehicles include, but are not limited to, electric vehicles, hybrid electric vehicles, extended range electric vehicles, fuel vehicles, and the like. The battery may include a lead-acid battery, a lithium manganate battery, a lithium ternary battery, a lithium iron phosphate battery, a nickel hydride battery, a fuel cell, etc. The meter may display basic information of the vehicle such as attribute information of the battery, a vehicle speed, an oil level, a door state, a window state, and the like. The attribute information of the battery may include a state of charge and a state of charge. The state of charge may include charging, discharging, battery not in use, and the like. The charge state may include 0 charge, full charge, or any other charge between 0 and full charge. The meter is usually located in front of the steering wheel of the vehicle, so that a driver can conveniently and quickly know basic information of the vehicle through the meter when driving the vehicle.
In some embodiments, the vehicle further includes a central control display screen, which shares an android system with the meter. Therefore, the display of the central control display screen and the display of the instrument can be realized by adopting one chip (such as an 8155 chip), and the computing power of the chip can be utilized to a greater extent by sharing the same android system, so that richer functions can be realized on the instrument and the central control large screen.
It is understood that step S10 and step S20 are both implemented based on the android system. The preset picture may be understood as a picture preset for the purpose of enriching the attribute of the battery to display the animation. The target picture can be understood as a part or all of preset pictures which need to be displayed in the attribute display animation of the battery according to the actual attribute information. Further, the processing may include cropping, i.e., by cropping the preset picture, changing the shape and size of the preset picture, thereby obtaining the target picture.
The property display animation of the battery may include a target picture, a vehicle floor map, a battery side block diagram, and a battery slot map. The target picture is dynamically displayed in the attribute display animation of the battery, and the vehicle base map, the battery side block diagram and the battery tank map are statically displayed in the attribute display animation of the battery. Referring to fig. 3, in the example of fig. 3, a vehicle floor map, i.e., a top view of a vehicle model, and a background map of the attribute display animation of the vehicle floor map, i.e., a battery. The target picture, the battery side block diagram and the battery tank diagram are arranged at the roof part of the vehicle model in the vehicle bottom diagram. The battery frame diagram comprises a white battery frame, and the battery groove diagram is arranged inside the battery frame of the battery frame diagram. The battery slot map comprises a battery grid background, and the grid pattern is obviously different from the pattern of attribute display animation on other equipment such as a mobile phone and a flat panel, so that the particularity of the automobile battery is more highlighted.
Further, please refer to fig. 4, in the process of implementing the attribute display animation of the battery, an ondraw method may be adopted to pre-define a plurality of rectangular frames (Rect) in the attribute display animation of the battery, after the size of the attribute display animation of the battery is determined, left (left), top (top), right (right) and bottom (bottom) attributes are set for each rectangular frame in the attribute display animation according to the size of the attribute display animation of the battery and the placement positions of the plurality of rectangular frames, that is, positions of two upper left points and two lower right points of each rectangular frame are set, and then a corresponding target picture, a battery side block diagram and a battery slot diagram are drawn in each rectangular frame, so as to obtain the attribute display animation of the battery.
In some embodiments, the attribute display animation includes a battery frame and a preset halo map, and the preset halo map is used for displaying around the battery frame when the battery is charged. Therefore, the user can conveniently know the charging state of the battery, and can understand that the preset halo image is not displayed around the battery frame in the attribute display animation when the charging state of the battery is discharging or the battery is not used. The predetermined halo pattern may be a picture with a gradient color.
Referring to fig. 5, in some embodiments, the attribute display animation includes a battery slot map, the battery slot map includes a slot right boundary, the attribute information includes a charging status, the preset picture includes a preset streamer map, the preset streamer map includes a first width and a moving right boundary, the target picture is a picture displayed when the preset streamer map moves in the battery slot map when the battery is charged, and step S10 includes:
s11: when the charging state is charging, selecting the larger value of the difference value between the moving right boundary and the first width and zero as the cutting left boundary of the preset streamer chart;
s12: selecting the smaller value of the moving right boundary and the groove right boundary as a cutting right boundary of the preset streamer chart;
s13: cutting the preset streamer chart according to the cut left boundary and the cut right boundary to obtain a target picture;
s14: and when the position of the moving right boundary changes, the step of selecting the larger value of the difference value between the moving right boundary and the first width and zero as the cutting left boundary of the preset streamer chart is carried out again.
The display method of the above embodiment can be realized by the in-vehicle terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is used for selecting a larger value of a difference value between the moving right boundary and the first width and zero as a cutting left boundary of the preset streamer graph, selecting a smaller value of the moving right boundary and the groove right boundary as a cutting right boundary of the preset streamer graph, cutting the preset streamer graph according to the cutting left boundary and the cutting right boundary to obtain a target picture, and entering a cutting left boundary step of selecting a larger value of the difference value between the moving right boundary and the first width and zero as the preset streamer graph again when the position of the moving right boundary changes.
Therefore, when the battery is charged, the preset streamer graph is cut for multiple times to obtain the multi-frame target pictures, and when the multi-frame target pictures are sequentially displayed in the attribute display animation, the streamer effect in a certain direction (for example, from left to right) can be realized, so that the charging state can be visually embodied.
Specifically, the left and right slot boundaries of the battery slot map are fixed, and the right moving boundary of the preset streamer map is changed during the movement. The left boundary of the slot map is the left attribute of the rectangular frame mBatteryBgRec where the slot map is located, and the right boundary of the slot map is the right attribute of the rectangular frame mBatteryBgRec where the slot map is located. The right attribute of the moving right boundary of the preset streamer graph, namely the rectangular frame mBatteryChargingAnimRect where the streamer graph is located, is preset. In some embodiments, the height of the preset streamer pattern and the height of the target graphic are substantially the same as the height of the battery well graphic, and the width of the preset streamer pattern and the width of the target graphic are both smaller than the width of the battery well graphic. The preset photo-graph can be a picture with gradually changed colors. In some embodiments, upon determining that the charging port is connected to the charging gun, it may be determined that the battery is charging.
The preset streamer map in the attribute display animation moves in a preset direction (e.g., left to right) within the battery slot map while the battery is charging. Taking the upper left point of the battery slot map as the origin, the range of the movement right boundary R2 of the preset streamer map is (0, R1+ W1), where 0 is the slot left boundary of the battery slot map, R1 is the slot right boundary of the battery slot map, and W1 is the first width of the preset streamer map. When the moving right boundary of the preset streamer graph is 0, the preset streamer graph does not enter the battery jar graph. When the moving right boundary of the preset flowchart is R1+ W1, the preset flowchart has completely moved out of the battery slot diagram.
It is understood that, each time the moving right boundary R2 of the preset streamer map changes, the steps S11, S12 and S13 are executed again to determine the displayed target picture. When the preset streamer graph enters the battery jar graph, the part, on the left side of the left groove boundary, of the battery jar graph is not displayed, the part, on the right side of the left groove boundary, of the battery jar graph is displayed, because the width of the preset streamer graph is smaller than that of the battery jar graph, the moving right boundary R2 of the preset streamer graph does not reach the right groove boundary R1, the cutting right boundary of the preset streamer graph is selected to be the moving right boundary R2, the cutting left boundary of the preset streamer graph is 0, and the size of a target picture obtained after the preset streamer graph is cut is smaller than that of the preset streamer graph; when the preset streamer graph is moving out of the battery jar graph, the part of the preset streamer graph on the right side of the right border of the jar of the battery jar graph is not displayed, the part of the preset streamer graph on the left side of the right border of the jar of the battery jar graph is displayed, and because the moving right border of the preset streamer graph exceeds the right border of the jar, the cutting left border of the preset streamer graph is selected to be the right border R1 of the jar, the cutting left border of the preset streamer graph is R2-W1 (namely the moving left border of the preset streamer graph), and the size of a target picture obtained after cutting the preset streamer graph is smaller than that of the preset streamer graph; when the preset streamer graph fully enters the battery jar graph, the preset streamer graph can be completely displayed because the width of the preset streamer graph is smaller than that of the battery jar graph, so that the left cutting boundary of the preset streamer graph is selected to be R2-W1 (namely the left moving boundary of the preset streamer graph), the left cutting boundary of the streamer graph is selected to be the right moving boundary R2, and the size of a target picture obtained after the preset streamer graph is cut is equal to that of the preset streamer graph.
In some embodiments, the preset streamer graph moves at the inner side of the battery jar graph in an accelerating mode and then in a decelerating mode, and therefore the display effect is more vivid and flexible.
Referring to fig. 6, in some embodiments, the attribute information includes a power state, the preset picture includes a full power map, and step S10 includes:
s15: acquiring the current electric quantity of a battery;
s16: and cutting the full electric quantity graph for multiple times according to the current electric quantity to obtain multiple frames of target pictures, wherein the electric quantity of a battery corresponding to the multiple frames of target pictures is sequentially increased from zero to the current electric quantity.
The display method of the above embodiment can be realized by the in-vehicle terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is used for obtaining the current electric quantity of the battery and cutting the full electric quantity graph for multiple times according to the current electric quantity to obtain multiple frames of target pictures, and the electric quantity of the battery corresponding to the multiple frames of target pictures is sequentially increased from zero to the current electric quantity.
Therefore, when the attribute information of the electric quantity state is triggered, the electric quantity of the battery can be displayed, the electric quantity of the battery is sequentially increased to the current electric quantity from zero and then is static at the attribute display animation of the current electric quantity (namely, the electric quantity animation is set), and the display effect of the current electric quantity is enriched.
Specifically, in some embodiments, when the vehicle is connected to the charging gun, the meter is triggered to display an attribute display animation corresponding to the current electric quantity. In some embodiments, when a dashboard of the vehicle is powered on, the dashboard is triggered to display an attribute display animation corresponding to the current electric quantity. In some embodiments, when the display mode of the current power amount is switched (for example, the concise mode is switched to the intelligent mode), the instrument is triggered to display the attribute display animation corresponding to the current power amount. The full-charge map can be a preset picture which can represent that the battery is full of electricity. And cutting the full-electricity quantity graph according to the ratio of the current electric quantity to the full-electricity quantity, so as to obtain a picture representing that the electric quantity of the battery is the current electric quantity. Clipping can be achieved by the ondraw method of the android system.
Referring to fig. 7, in some embodiments, step S16 includes:
s162: determining a first playing time length of an attribute display animation corresponding to the current electric quantity, wherein the first playing time length comprises a plurality of preset moments;
s164: determining a cutting boundary corresponding to each preset moment;
s166: and cutting the full-capacity diagram according to the plurality of cutting boundaries to obtain a plurality of frames of target pictures.
The display method of the above embodiment can be realized by the in-vehicle terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is used for determining a first playing time length of the attribute display animation corresponding to the current electric quantity, wherein the first playing time length comprises a plurality of preset moments, determining a cutting boundary corresponding to each preset moment, and cutting the full-electric-quantity map according to the plurality of cutting boundaries to obtain the multi-frame target picture.
Therefore, the target pictures displayed by the attribute display animation at each preset moment in the first playing time length are different, and the display effect of the current electric quantity is enriched.
Specifically, after the current electric quantity is determined, a first playing time length of the attribute display animation corresponding to the current electric quantity may be determined. In some embodiments, every two adjacent preset time instants are separated by the same preset time duration. The preset duration may be set by the user or by system default. Therefore, after the multi-frame target picture is determined, the attribute display animation that the electric quantity of the battery is sequentially increased from zero to the current electric quantity and then is static at the current electric quantity can be displayed more stably.
In one example, the first playing time length may be 10S, the preset time length of each two adjacent preset time intervals may be 2S, and the multiple preset times respectively display the 0 st, the 2 nd, the 4 th, the 6 th, the 8 th and the 10 th of the animation for the playing attribute.
Referring to fig. 8, in some embodiments, step S162 includes:
s1622: and according to the current electric quantity, the full electric quantity and the second playing time length of the attribute display animation corresponding to the full electric quantity, determining the first playing time length of the attribute display animation corresponding to the current electric quantity.
The display method of the above embodiment can be realized by the in-vehicle terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is used for displaying the second playing time length of the animation according to the current electric quantity, the full electric quantity and the attribute corresponding to the full electric quantity, and determining the first playing time length of the attribute display animation corresponding to the current electric quantity.
Therefore, the first playing time length of the attribute display animation corresponding to the current electric quantity can be quickly determined.
Specifically, the second playing time length may be a time length preset by a user or a time length set by a default of the system. The second playing time is the attribute that the electric quantity of the battery is sequentially increased from zero to full electric quantity and then is static at the full electric quantity to display the animation. In some embodiments, the first playing time period t1 of the attribute display animation corresponding to the current power amount may be represented by the following formula: t1 is t2 × batttery level/fullbattery level, where t2 is the second playing time length of the attribute display animation corresponding to the full electric quantity, batttery level is the current electric quantity, and fullbattery level is the full electric quantity. In some embodiments, the full charge is set to 100, and the value of the current charge ranges from [0, 100 ].
In one example, the full battery capacity fullbatterly level is set to 100, the second playing time period t2 is 10S, and if the current battery capacity fullbatterly level is 70, the first playing time period t1 may be calculated to be 7S.
Referring to fig. 9, in some embodiments, the clipping boundary includes a clipping right boundary corresponding to a preset time, and the step S164 includes:
s1642: determining a first rectangular strip corresponding to the cutting right boundary corresponding to the preset moment as a preset rectangular strip;
s1644: caching the preset rectangular strips to a preset storage space, and updating the cached rectangular strips in the preset storage space, wherein the cached rectangular strips are first rectangular strips corresponding to the cutting right boundary corresponding to each previous moment, and the previous moment is earlier than the preset moment;
s1646: and determining a clipping boundary according to the updated cache rectangular strip and the preset rectangular strip in the preset storage space.
The display method of the above embodiment can be realized by the in-vehicle terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is used for determining a first rectangular strip corresponding to the cutting right boundary corresponding to the preset time as the preset rectangular strip, caching the preset rectangular strip to the preset storage space, updating the cache rectangular strips in the preset storage space, wherein the cache rectangular strip is the first rectangular strip corresponding to each cutting right boundary corresponding to the previous time, is earlier than the preset time at the previous time, and is used for determining the cutting boundary according to the cache rectangular strip and the preset rectangular strip in the preset storage space after updating.
Therefore, the cutting boundary corresponding to each preset time can be accurately determined.
Specifically, the preset time comprises a plurality of preset times, one preset time corresponds to one cutting boundary, and the cutting area defined by the cutting boundaries is gradually increased according to the time sequence, so that the area of a full-electric-quantity diagram cut according to the cutting boundaries is gradually increased along with the increase of the playing time length, and the visual effect of embodying the gradual increase of the electric quantity can be achieved. It should be noted that the gradual increase of the power is understood herein to mean that the power gradually increases from zero to the current power in the visual effect, rather than the power gradually increases due to the charging of the battery, that is, the current power is a predetermined fixed value.
The clipping right boundary is the boundary to the rightmost side of the clipping boundary. The first rectangular bar is the rectangular bar located at the rightmost side of the clipping boundary at the preset time. The right boundary of the first rectangular bar is the clipping right boundary. And the preset rectangular strip is the first rectangular strip corresponding to the cutting right boundary corresponding to the preset moment. The preset storage space comprises a preset rectangular strip at a preset moment and a cache rectangular strip at a previous moment. It can be understood that the preset rectangular bar stored in the preset storage space at the preset time becomes a cache rectangular bar at the later time, and the first rectangular bar determined according to the clipping right boundary at the later time is cached in the preset storage space as a new preset rectangular bar. Similarly, each cache rectangular strip in the preset storage space is the first rectangular strip at the previous moment. The previous time occurs before the preset time and the later time occurs after the preset time. Referring to fig. 10, in an example, when the time includes the 2 nd S, the 4 th S and the 6 th S of the playback attribute display animation, when the 2 nd S is a preset time, the 4 th S and the 6 th S are subsequent times, and the first rectangular bar determined by the 2 nd S is cached as a preset rectangular bar in a preset storage space; when the 4 st moment is a preset moment, the 2 nd moment is a previous moment, the 6 th moment is a subsequent moment, and when the first rectangular strip determined in the 4 th moment is taken as a preset rectangular strip and cached in a preset storage space, the preset rectangular strip determined in the 2 nd moment is a cached rectangular strip; and when the 6 th time is a preset time, the 2 nd time and the 4 th time are previous times, and when the first rectangular strip determined by the 6 th time is taken as a preset rectangular strip and cached to a preset storage space, the preset rectangular strip determined by the 2 nd time and the preset rectangular strip determined by the 4 th time are cache rectangular strips.
Updating the cache rectangular bar in the preset storage space can be understood as increasing the height of the cache rectangular bar. Therefore, the cutting area enclosed by the cutting boundary can be increased along with the increase of the duration, and the picture cut out according to the cutting boundary can embody the visual effect that the electric quantity gradually increases. Further, the outer contours of the cache rectangular bar and the first rectangular bar in the updated preset storage space can be used as clipping boundaries.
Referring to fig. 11, in some embodiments, the full-power map includes a first height and a second width, the full-power map includes a plurality of second rectangular bars, each of the second rectangular bars includes a third width, the first rectangular bar includes a clipping right boundary, a clipping left boundary, a clipping upper boundary, and a clipping lower boundary corresponding to a preset time, a height of the clipping right boundary corresponding to the preset time is a first preset value, and the step S1642 includes:
s16422: determining a cutting right boundary corresponding to the preset moment according to the preset moment, the first playing time length, the current electric quantity and the second width;
s16424: determining a cutting left boundary according to the cutting right boundary and the third width corresponding to the preset moment;
s16426: determining a cutting upper boundary according to the first height and a second preset value, wherein the second preset value is one half of the first preset value;
s16428: and determining a cutting lower boundary according to the cutting upper boundary and the first preset value.
The display method of the above embodiment can be realized by the in-vehicle terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is used for determining a cutting right boundary corresponding to the preset time according to the preset time, the first playing time, the current electric quantity and the second width, determining a cutting left boundary according to the cutting right boundary and the third width corresponding to the preset time, determining a cutting upper boundary according to the first height and a second preset value, wherein the second preset value is one half of the first preset value, and determining a cutting lower boundary according to the cutting upper boundary and the first preset value.
In this way, the clipping right boundary, the clipping left boundary, the clipping upper boundary, and the clipping lower boundary of the first rectangular bar can be determined quickly and accurately.
Specifically, a full-capacity map may be composed of a plurality of second rectangular bars arranged side by side, and the third width W3 of each second rectangular bar may be represented by the following formula: w3 ═ W2/S, where W2 is the second width of the full-charge map, S is the number of second rectangular bars in the full-charge map, and W2 and S may be preset values. For example, if the second width of the full charge map is set to be 100, the number of the second rectangular bars is 20, the third width is 5, and each second rectangular bar may represent 5% of the full charge.
In step S16422, the clipping right boundary R3 may be represented by the following formula: r3 ═ W2 (t/t1) — (battterylevel/fullbatterlevel), where t is a preset time, t1 is a first playing time length of the attribute display animation corresponding to the current electric quantity, battterylevel is the current electric quantity, and fullbatterlevel is the full electric quantity. In one example, the full charge is set to 100, and the value range of the current charge is [0, 100 ].
In step S16424, the left boundary is clipped from R3 to R3% W3, where% represents the remainder, and R3% W3 is the width of the first rectangular bar corresponding to the preset time.
In step S16426, the upper boundary is clipped to (first height — second preset value)/2. Since the horizontal right and vertical downward directions of the coordinate system are set as the attribute value growth directions, the value of the clipping lower boundary is larger than the value of the clipping upper boundary, and therefore, in step S16428, the clipping lower boundary is the clipping upper boundary + the first preset value.
In some embodiments, the first rectangular bar (thisColumRect) may be generated by a RectF function, setting a left attribute value of the RectF function to a clipping left boundary (thisColumLeft), setting an upper attribute value of the RectF function to a clipping upper boundary (thisColumTop), setting a right attribute value of the RectF function to a clipping right boundary (clipRight X), and setting a lower attribute value of the RectF function to a clipping lower boundary (thisColumBottom), such that the first rectangular bar (thisColumRect) may be represented as: thischemlegrect is new RectF (thischemlenleft, thischemlingrop, clipright x, thischemlinbottom).
In one example, the first height is 10, the height of the first rectangular bar is 2, and the second preset value is 1, then the cut upper boundary of the first rectangular bar is (10-1)/2 is 4.5, and the cut lower boundary of the first rectangular bar is 4.5+2 is 6.5.
Referring to fig. 12, in some embodiments, the plurality of rectangular cache stripes are included, each rectangular cache stripe includes an upper cache boundary, a lower cache boundary and a left cache boundary, and step S1644 includes:
s16442: when the clipping left boundary is not equal to any one left cache boundary, caching a preset rectangular strip to a preset storage space;
s16444: updating the upper buffer boundary and the lower buffer boundary of each buffer rectangular strip according to a second preset value;
s16446: and deleting the cache rectangular strip with the difference value between the lower boundary and the upper boundary of the cache in the preset storage space being greater than or equal to the first height to finish updating.
The display method of the above embodiment can be realized by the in-vehicle terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is used for caching the preset rectangular strips to the preset storage space when the cutting left boundary is not equal to any cache left boundary, updating the upper cache boundary and the lower cache boundary of each cache rectangular strip according to a second preset value, and deleting the cache rectangular strips of which the difference value between the lower cache boundary and the upper cache boundary in the preset storage space is greater than or equal to the first height so as to complete updating.
Therefore, the cache content of the preset storage space can be updated.
Specifically, each cache rectangular strip in the preset storage space corresponds to one cache left boundary, and when the cutting left boundary of the corresponding preset rectangular strip at the preset moment is different from any cache left boundary, the preset rectangular strip is cached to the preset storage space. In order to embody the effect of gradual increase of the electric quantity, the height of the cache rectangular bar in the preset storage space is increased at each preset moment, that is, the height of the cache rectangular bar in the preset storage space is increased by updating the upper cache boundary and the lower cache boundary of each cache rectangular bar.
Further, at each preset time, the increase value of the height of each cache rectangular bar in the storage space is preset to be a second preset value. Since the horizontal right and vertical downward directions of the coordinate system are set as positive attribute value growth directions, the numerical value of the lower boundary of the cache is larger than the numerical value of the upper boundary of the cache, and therefore, the height of the rectangular bar is increased, that is, the numerical value of the upper boundary of the cache is decreased and/or the numerical value of the lower boundary of the cache is increased. In one embodiment, at each preset time, subtracting one half of the second preset value from the upper buffer boundary of each buffer rectangular strip in the preset storage space to obtain an updated upper buffer boundary, and adding one half of the second preset value to the lower buffer boundary of each buffer rectangular strip in the preset storage space to obtain an updated lower buffer boundary. In an example, the second preset value is 1, the upper buffer boundary of a buffer rectangular bar in the preset storage space before updating is 4.5, and the upper buffer boundary is 6.5, that is, the height of the buffer rectangular bar before updating is 2, the upper buffer boundary of the buffer rectangular bar after updating is 4.5-1/2-4, and the upper buffer boundary of the buffer rectangular bar after updating is 6.5+ 1/2-7, so that the height of the buffer rectangular bar after updating is 3, and the height of the buffer rectangular bar is increased by 1 compared to that before updating.
Of course, considering that the maximum height of the clipping boundary should be less than or equal to the first height of the full power map, the height of the updated cache rectangular bar should be less than the first height, and therefore, after the height of the cache rectangular bar in the preset storage space is updated, the cache rectangular bar with the height greater than or equal to the first height is deleted, and the cache rectangular bar with the height less than the first height is reserved, so that the updating of the preset storage space at the current time is completed. In one example, the first height is 10, the upper buffer boundary of a buffer rectangular bar in the updated preset storage space is 0.5, and the upper buffer boundary is 10.5, and since the height of the buffer rectangular bar is equal to the first height, the buffer rectangular bar is deleted from the preset storage space.
Referring to fig. 13, in some embodiments, step S1646 includes:
s16462: determining the minimum value of a cache left boundary in the updated preset storage space;
s16464: determining a first clipping boundary according to the minimum value and the second width of the cache left boundary;
s16466: integrating the updated cache rectangular strips and the preset rectangular strips in the preset storage space to obtain a second cutting boundary;
s16468: and determining a clipping boundary according to the first clipping boundary and the second clipping boundary.
The display method of the above embodiment can be realized by the in-vehicle terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is used for determining the minimum value of the cache left boundary in the updated preset storage space, determining a first clipping boundary according to the minimum value of the cache left boundary and the second width, integrating the cache rectangular bar and the preset rectangular bar in the updated preset storage space to obtain a second clipping boundary, and determining the clipping boundary according to the first clipping boundary and the second clipping boundary.
In this way, a complete clipping boundary can be obtained. It is understood that the clipping boundary (ClipPath) may include two portions, a first clipping boundary and a second clipping boundary, wherein the first clipping boundary is substantially rectangular, the second clipping boundary is substantially monotonically decreasing in a step shape, and a right boundary of the first clipping boundary is a left boundary of the second clipping boundary.
Specifically, referring to fig. 14, the first cropping boundary may be understood as a rectangular frame obtained by adjusting the heights of all the buffered rectangular bars to the first height and arranging them side by side, while keeping the widths of the buffered rectangular bars with the height greater than or equal to the first height deleted from the preset storage space unchanged. The first clipping boundary (leftRect) may be generated by a RectF function, a left attribute value of the RectF function is set to 0, an upper attribute value of the RectF function is set to 0, a right attribute value of the RectF function is set to a second height (mFullPowerHeight), a lower attribute value of the RectF function is set to a minimum value of a cache boundary (leftcolumnreturn). left reset is new reset (0,0, left column reset. left, mFullPowerHeight). The second clipping boundary may be understood as a stepped border formed by all the cached rectangular bars in the updated preset storage space and the outer contours of the preset rectangular bars, which are arranged side by side and have different heights.
Referring to fig. 15, in some embodiments, the android system includes a rendering algorithm, the property display animation includes a battery border, and step S20 includes:
s22: and adopting a drawing algorithm to draw each frame of target picture inside the battery frame in sequence to serve as the attribute display animation of the current electric quantity.
The display method of the above embodiment can be realized by the in-vehicle terminal of the embodiment of the invention. Specifically, the vehicle-mounted terminal is used for drawing each frame of target picture inside the battery frame in sequence by adopting a drawing algorithm to serve as the attribute display animation of the current electric quantity.
Therefore, the attribute display animation can be generated and displayed, so that the user can see the corresponding attribute display animation, and the user experience is improved.
In particular, the rendering algorithm may include an ondraw method. When the target picture is a picture obtained by cutting a preset streamer picture, the attribute display animation is as shown in fig. 3(c), and the target picture moves from left to right in the battery frame along with the time. When the target picture is a picture obtained by cutting the full charge map, the attribute display animation is as shown in fig. 3(e), and the electric quantity of the display battery gradually increases from zero to the current electric quantity as time goes on.
In some embodiments, the attribute display animation includes a current power map, the current power map is a first color when the current power of the battery is lower than a preset power, the current power map is a second color when the current power of the battery is higher than the preset power, and the first color is different from the second color.
Thus, the user can more intuitively know the change of the current electric quantity of the battery through the change of the color. It can be understood that in the display method according to the embodiment of the present invention, different current electric quantities may correspond to different color picture states.
Specifically, the preset power amount, the first color and the second color may be set by the user or by default by the system. In one example, the preset power is set to 20% of the full power, the first color is set to red, and the second color is set to green, please refer to fig. 3(b), when the current power is higher than 20% of the full power, the current power map is green to prompt the user that the current power is sufficient; referring to fig. 3(d), when the current electric quantity is lower than 20% of the full electric quantity, the current electric quantity map is red to prompt the user that the current electric quantity is insufficient.
In some embodiments, the display modes of the property display animation include a first display mode and a second display mode, and different display modes correspond to different display colors of the property display animation.
Thus, the display effect of the attribute display animation can be enriched.
Specifically, in some embodiments, the attribute display animation includes a vehicle floor map, a battery side block diagram, a battery tank map, and a current power map, the first display mode is a day mode, the second display mode is a night mode, please refer to fig. 3(b), and in the day mode, the display colors of the vehicle floor map and the battery tank map in the attribute display animation are gray, so as to highlight the day display effect; referring to fig. 3(f), in the night mode, the display colors of the vehicle floor map and the battery jar map in the attribute display animation are black, so that the night display effect is highlighted.
It should be noted that the specific values mentioned above are only for illustrating the implementation of the invention in detail and should not be construed as limiting the invention. In other examples or embodiments or examples, other values may be selected in accordance with the present invention and are not specifically limited herein.
Referring to fig. 16, a vehicle 1000 according to an embodiment of the present invention includes a body 200, a battery (not shown), a meter (not shown), and the vehicle-mounted terminal 100 according to the above embodiment, and the battery, the meter, and the vehicle-mounted terminal 100 are disposed on the body 200.
In the vehicle 1000, the attribute display animation of the battery is displayed based on the android system, so that the display mode of the attribute information of the battery is enriched, and the user experience is favorably improved. In addition, compared with a linux system, the android system has stronger processing capability and can display more complicated attribute display animations.
It should be noted that the above explanation of the display method and the embodiment and advantageous effects of the in-vehicle terminal 100 is also applicable to the vehicle 1000 used in the embodiment of the present invention, and is not detailed herein to avoid redundancy.
The computer-readable storage medium of an embodiment of the present invention has a computer program stored thereon, which, when executed by a processor, implements the steps of the display method of any of the above-described embodiments.
For example, in the case where the program is executed by a processor, the steps of the following display method are implemented:
s10: processing the preset picture for multiple times according to the attribute information to obtain a multi-frame target picture;
s20: and sequentially displaying the multiple frames of target pictures to be used as the attribute display animation of the battery.
In the present invention, the computer program comprises computer program code. The computer program code may be in the form of source code, object code, an executable file or some intermediate form, etc. The memory may include high speed random access memory and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device. The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (16)

1. A display method for a vehicle, the vehicle comprising a battery and a meter, the meter being capable of displaying attribute information of the battery based on an android system, the display method comprising:
processing the preset picture for multiple times according to the attribute information to obtain multiple frames of target pictures;
sequentially displaying multiple frames of the target pictures to serve as attribute display animations of the battery;
the attribute information includes an electric quantity state, the preset picture includes a full electric quantity graph, and the processing of the preset picture for multiple times according to the attribute information to obtain a multi-frame target picture includes:
acquiring the current electric quantity of the battery;
and cutting the full-capacity graph for multiple times according to the current electric quantity to obtain multiple frames of target pictures, wherein the electric quantity of the battery corresponding to the multiple frames of target pictures is sequentially increased from zero to the current electric quantity.
2. The display method according to claim 1, wherein the cropping the full-power-level map for a plurality of times according to the current power level to obtain a multi-frame target picture comprises:
determining a first playing time length of the attribute display animation corresponding to the current electric quantity, wherein the first playing time length comprises a plurality of preset moments;
determining a cutting boundary corresponding to each preset moment;
and cutting the full-capacity graph according to the plurality of cutting boundaries to obtain a plurality of frames of the target pictures.
3. The method according to claim 2, wherein the determining a first playing time length of the attribute display animation corresponding to the current electric quantity comprises:
and determining the first playing time length of the attribute display animation corresponding to the current electric quantity according to the current electric quantity, the full electric quantity and the second playing time length of the attribute display animation corresponding to the full electric quantity.
4. The method according to claim 2, wherein the cropping boundary includes a cropping right boundary corresponding to the preset time, and the determining the cropping boundary corresponding to each preset time includes:
determining a first rectangular strip corresponding to the cutting right boundary corresponding to the preset moment to serve as a preset rectangular strip;
caching the preset rectangular strips to a preset storage space, and updating the cached rectangular strips in the preset storage space, wherein the cached rectangular strips are first rectangular strips corresponding to the cutting right boundary corresponding to each previous moment, and the previous moment is earlier than the preset moment;
and determining the cutting boundary according to the updated cache rectangular strip and the preset rectangular strip in the preset storage space.
5. The display method according to claim 4, wherein the full power map includes a first height and a second width, the full power map includes a plurality of second rectangular bars, each of the second rectangular bars includes a third width, the first rectangular bar includes a clipping right boundary, a clipping left boundary, a clipping upper boundary, and a clipping lower boundary corresponding to the preset time, the height of the clipping right boundary corresponding to the preset time is a first preset value, and the determining the first rectangular bar corresponding to the clipping right boundary corresponding to the preset time as the preset rectangular bar includes:
determining a cutting right boundary corresponding to the preset moment according to the preset moment, the first playing time, the current electric quantity and the second width;
determining the cutting left boundary according to the cutting right boundary corresponding to the preset moment and the third width;
determining the cutting upper boundary according to the first height and a second preset value, wherein the second preset value is one half of the first preset value;
and determining the cutting lower boundary according to the cutting upper boundary and the first preset value.
6. The display method according to claim 5, wherein the number of the cache rectangle strips is multiple, each of the cache rectangle strips includes an upper cache boundary, a lower cache boundary and a left cache boundary, and the caching the preset rectangle strip into a preset storage space and updating the cache rectangle strip in the preset storage space includes:
when the clipping left boundary is not equal to any one cache left boundary, caching the preset rectangular strip to the preset storage space;
updating the upper cache boundary and the lower cache boundary of each cache rectangular strip according to the second preset value;
deleting the cache rectangular bar with the difference value between the lower cache boundary and the upper cache boundary in the preset storage space being greater than or equal to the first height so as to complete updating.
7. The method according to claim 6, wherein the determining the clipping boundary according to the updated buffer rectangle bar and the updated preset rectangle bar in the preset storage space comprises:
determining the minimum value of the cache left boundary in the updated preset storage space;
determining a first clipping boundary according to the minimum value of the cache left boundary and the second width;
integrating the updated cache rectangular strips and the updated preset rectangular strips in the preset storage space to obtain a second cutting boundary;
and determining the cutting boundary according to the first cutting boundary and the second cutting boundary.
8. The display method according to claim 1, wherein the attribute display animation includes a battery slot map, the battery slot map includes a slot right boundary, the attribute information includes a charging state, the preset picture includes a preset histogram, the preset histogram includes a first width and a moving right boundary, the target picture is a picture displayed when the preset histogram moves within the battery slot map when the battery is charged, and the processing the preset picture multiple times according to the attribute information to obtain a multi-frame target picture includes:
when the charging state is charging, selecting the larger value of the difference value between the moving right boundary and the first width and zero as the cutting left boundary of the preset streamer chart;
selecting the smaller value of the moving right boundary and the groove right boundary as the cutting right boundary of the preset streamer chart;
cutting the preset streamer chart according to the cutting left boundary and the cutting right boundary to obtain the target picture;
and when the position of the moving right boundary changes, the step of selecting the larger value of the difference value between the moving right boundary and the first width and zero as the cutting left boundary of the preset streamer chart is carried out again.
9. The method of claim 1, wherein the attribute display animation comprises a battery frame and a preset halo map, and the preset halo map is used for displaying around the battery frame when the battery is charged.
10. The display method according to claim 1, wherein the android system includes a rendering algorithm, the attribute display animation includes a battery frame, and the sequentially displaying multiple frames of the target pictures as the attribute display animation of the battery includes:
and sequentially drawing each frame of the target picture in the battery frame by adopting the drawing algorithm to serve as the attribute display animation of the current electric quantity.
11. The display method according to claim 1, wherein the attribute display animation includes a current power map, the current power map is a first color when a current power of the battery is lower than a preset power, the current power map is a second color when the current power of the battery is higher than the preset power, and the first color is different from the second color.
12. The display method according to claim 1, wherein the display modes of the attribute display animation include a first display mode and a second display mode, and the display colors of the attribute display animation are different for different display modes.
13. The display method according to claim 1, wherein the vehicle further comprises a central control display screen, and the central control display screen and the meter share the android system.
14. The utility model provides a vehicle mounted terminal, its characterized in that, vehicle mounted terminal sets up in the vehicle, the vehicle includes battery and instrument, the instrument can be based on tall and erect system display the attribute information of battery, vehicle mounted terminal is used for:
processing the preset picture for multiple times according to the attribute information to obtain multiple frames of target pictures;
sequentially displaying a plurality of frames of the target pictures to be used as the attribute display animation of the battery;
the attribute information includes an electric quantity state, the preset picture includes a full electric quantity picture, and the vehicle-mounted terminal is further configured to:
acquiring the current electric quantity of the battery;
and cutting the full-capacity graph for multiple times according to the current electric quantity to obtain multiple frames of target pictures, wherein the electric quantity of the battery corresponding to the multiple frames of target pictures is sequentially increased from zero to the current electric quantity.
15. A vehicle characterized by comprising a body, a battery, a meter, and the in-vehicle terminal of claim 14, the battery, the meter, and the in-vehicle terminal being provided to the body.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the display method according to any one of claims 1 to 13.
CN202110870235.6A 2021-07-30 2021-07-30 Display method, vehicle-mounted terminal, vehicle and storage medium Active CN113400938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110870235.6A CN113400938B (en) 2021-07-30 2021-07-30 Display method, vehicle-mounted terminal, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110870235.6A CN113400938B (en) 2021-07-30 2021-07-30 Display method, vehicle-mounted terminal, vehicle and storage medium

Publications (2)

Publication Number Publication Date
CN113400938A CN113400938A (en) 2021-09-17
CN113400938B true CN113400938B (en) 2022-05-10

Family

ID=77688099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110870235.6A Active CN113400938B (en) 2021-07-30 2021-07-30 Display method, vehicle-mounted terminal, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN113400938B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7474309B2 (en) * 2003-12-16 2009-01-06 General Motors Corporation Hybrid vehicle display apparatus and method
CN102826048A (en) * 2012-09-06 2012-12-19 重庆长安汽车股份有限公司 Display system
GB2540387A (en) * 2015-07-15 2017-01-18 Ford Global Tech Llc Improvements in or relating to electric vehicles
CN205113028U (en) * 2015-11-11 2016-03-30 上海聚众力信息技术有限公司 Based on an zhuo and virtual dash board of CAN bus

Also Published As

Publication number Publication date
CN113400938A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN107797739B (en) Mobile terminal, display control method and device thereof, and computer-readable storage medium
CN104885448A (en) Driving assistance device and image processing program
US20140104082A1 (en) Information display device
CN110364123B (en) Backlight control method and device, electronic equipment and computer readable storage medium
CN113400938B (en) Display method, vehicle-mounted terminal, vehicle and storage medium
CN108351759A (en) Display control unit
CN107741871B (en) Terminal, display screen and method for controlling display of display screen
CN112446241A (en) Method and device for obtaining characteristic information of target object and electronic equipment
CA2519346A1 (en) Triangle rendering using direct evaluation
CN107678720B (en) Terminal, display screen and method for controlling display of display screen
CN106494242B (en) Intelligent visual charging pile system of electric automobile
CN105564316A (en) Vehicle blind area monitoring system and control method
CN116012805B (en) Target perception method, device, computer equipment and storage medium
CN105070255A (en) Time schedule controller of display device and operation method thereof
CN113352888B (en) Display method, vehicle-mounted terminal, vehicle and storage medium
CN107444272A (en) The method and device and equipment that a kind of intelligent back vision mirror is shown
CN111737376A (en) Visual information comparison method and device, electronic equipment and storage medium
CN112213652B (en) Method and system for estimating residual electric quantity
CN110517627B (en) LED display system, power supply control method and storage medium
US20140225913A1 (en) Display Method and Device
CN105786982A (en) Method for rapidly previewing multimedia files through automobile data recorder
JP2021092626A (en) Display device
CN114148171A (en) Electric automobile continuation mileage display method, system, vehicle and readable medium
CN113132624B (en) Angle adjustment control method and system of intelligent terminal
CN115731861B (en) Screen color adjustment method, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant