CN109472843B - Auxiliary line generation method - Google Patents
Auxiliary line generation method Download PDFInfo
- Publication number
- CN109472843B CN109472843B CN201811267302.XA CN201811267302A CN109472843B CN 109472843 B CN109472843 B CN 109472843B CN 201811267302 A CN201811267302 A CN 201811267302A CN 109472843 B CN109472843 B CN 109472843B
- Authority
- CN
- China
- Prior art keywords
- bytes
- pixels
- vehicle
- pixel
- display screen
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R1/00—Optical viewing arrangements; Real-time viewing arrangements for drivers or passengers using optical image capturing systems, e.g. cameras or video systems specially adapted for use in or on vehicles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
Abstract
The invention provides an auxiliary line generation method, which comprises the following steps: step a: obtaining RGBA files of rear tire track lines under different steering wheel corners, wherein the RGBA files are files for recording pixel information of auxiliary lines on a vehicle-mounted display screen; step b: converting the RGBA file into a custom file with a custom file format; step c: analyzing the user-defined file through an auxiliary line display program; and step d: and generating a dynamic auxiliary line graph on a vehicle-mounted display screen, wherein the user-defined file consists of a plurality of trunk blocks, and each trunk block is used for recording the information of auxiliary line pixel points of each line on the vehicle-mounted display screen. Due to the use of the new self-defined compressed file format, the processing efficiency can be improved, the system performance can be well improved, and the running stability of the vehicle-mounted entertainment system is improved, so that the stability and the safety in the parking and backing processes are effectively improved.
Description
Technical Field
The invention relates to an auxiliary line generation method.
Background
A rear view reverse image module (RVC) is currently used as a standard for each vehicle, and generates different dynamic assist maps according to different steering angles of a steering wheel to assist a driver to safely complete a reverse operation or a parking operation. The dynamic auxiliary lines used in the RVC module are calibrated according to different vehicle types. The traditional calibration method at present is to rotate counterclockwise and clockwise by different angles respectively, each rotation angle is obtained from the steering wheel corner returned by a CAN signal, then under different angles, marks for driving of left and right rear wheels are drawn, the rear wheel track line under the angle is obtained according to the wheel marks, then the track diagrams are arranged and subjected to later-stage art designing to form a dynamic auxiliary line picture for calling of a rearview reversing image RVC module to realize display of the dynamic auxiliary line. In order to obtain high-definition auxiliary lines, the capacity of some original high-resolution images RGBA files is large, for example, 1280 × 720 resolution is used, and the size of the RGBA file is 1280 × 720 × 4 — 3600KB, so that the system consumes a large amount of CPU and memory during displaying images, and even sometimes causes the problem of system crash during loading images, which seriously affects the driving safety. If the size of the picture is reduced, the resolution of the picture is reduced, and the definition of the auxiliary lines is affected.
Therefore, a new method for generating auxiliary lines is needed, which can well solve the performance problem of consuming a large amount of CPUs in the process of loading pictures without affecting the definition of the auxiliary lines, so as to achieve the purposes of improving the overall performance of the system and improving the stability and safety in the process of backing or parking.
Disclosure of Invention
The invention provides an auxiliary line generating method, which is used for compressing and converting an RGBA file format into a new self-defined file format without processing a large amount of pixel information outside an auxiliary line, greatly reducing the size of a file and greatly improving the system performance in the file execution process.
The invention discloses a novel auxiliary line generation method, which comprises the following steps:
step a: the method comprises the steps that RGBA files of rear tire track lines under different steering wheel corners are obtained, wherein the RGBA files are files for recording pixel information of auxiliary lines on a vehicle-mounted display screen;
step b: converting the RGBA file into a custom file with a custom file format;
step c: parsing the custom file through an auxiliary line display program, an
Step d: a dynamic assistance line graph is generated on the in-vehicle display screen,
the self-defined file is composed of a plurality of trunk blocks, each trunk block is used for recording information of auxiliary line pixel points of each line on the vehicle-mounted display screen, Y is used for representing an ordinate axis of the vehicle-mounted display screen, X is used for representing an abscissa axis of the vehicle-mounted display screen, and (X, Y) is used for representing coordinate values of each pixel point of the auxiliary line on the vehicle-mounted display screen, wherein (X1, Y1) represents coordinate values of a first pixel point at the upper left corner of the auxiliary line on the vehicle-mounted display screen, the information of each pixel is specified to occupy 2 bytes, one byte is used for representing the color of the pixel, the other byte is used for representing the transparency alpha value of the pixel, and the format of the nth trunk block is self-defined as follows:
[ value of ordinate Yn, 2 bytes ] [ all bytes counted from this point on to the next line Yn +1, value of 2 bytes ] [ abscissa X1, 2 bytes ] [ total number of bytes occupied by pixels consecutive along the abscissa axis starting with X1, information of each pixel in the pixels consecutive following starting with 2 bytes ] [ X1 column, value of 2 bytes ] [ pixel number ] [ X2, 2 bytes ] [ total number of bytes occupied by pixels consecutive following starting with X2 column, 2 bytes ] [ X2 column information of each pixel in the pixels consecutive following starting with 2 bytes ], value of 2 bytes ] [ pixel number ] [ X3 abscissa, total number of bytes occupied by pixels consecutive following with X3 column, information of each pixel in the pixels consecutive following starting with 2 bytes ] [ X3 column, value of 2 bytes ] [ pixel number of pixels consecutive X4, 2 bytes ] [ total number of bytes occupied by the next consecutive pixel starting with column X4 ], 2 bytes ] [ information of each of the next consecutive pixels starting with column X4, number of pixels 2 bytes ],
in the above format, the first item in the middle bracket [ ] is the content, and the 2 nd item is the number of bytes occupied by the first item content; wherein n is a positive integer greater than or equal to 1.
Preferably, the auxiliary lines include 2 dynamic auxiliary lines and 2 static auxiliary lines, and the dynamic auxiliary lines are divided into 1 each of the left and right rear wheels.
Preferably, the colors of the dynamic auxiliary lines include green, yellow, orange and red.
The invention has the following beneficial effects: because a new self-defined compressed file format is used, the processing efficiency can be improved, the system performance can be well improved, and the running stability of the vehicle-mounted entertainment system is improved, so that the stability and the safety in the parking and backing processes are effectively improved.
Drawings
Fig. 1 is a schematic diagram of an auxiliary line on a vehicle-mounted display screen.
Fig. 2 is a schematic diagram of the dynamic auxiliary line starting to be enlarged at the X1 coordinate in fig. 1.
Fig. 3 is a flowchart of an auxiliary line generation method of the present invention.
Detailed Description
The embodiments of the present invention will be described below with reference to the drawings attached to the specification. It should be noted that the embodiments mentioned in the present description are not exhaustive and do not represent the only embodiments of the present invention. The following examples are given for the purpose of clearly illustrating the inventive contents of the present patent application and are not intended to limit the embodiments thereof. It will be apparent to those skilled in the art that various changes and modifications can be made in the embodiments described above, and it is intended to cover all modifications and variations of the present invention which fall within the spirit and scope of the invention.
The invention discloses an auxiliary line generation method, which comprises the following steps:
step a: obtaining RGBA files of rear tire track lines under different steering wheel corners, wherein the RGBA files are files for recording pixel information of vehicle-mounted auxiliary lines; step b: converting the RGBA file into a custom file with a custom file format, wherein the custom file is called a rawdata file; step c: analyzing the user-defined file through an auxiliary line display program; and step d: and generating a dynamic auxiliary line graph on the vehicle-mounted display screen.
In the step a, RGBA files of the track lines of the rear tire at different steering wheel angles can be obtained by using the existing method.
In the step b, the custom file is composed of a plurality of trunk blocks, each trunk block is used for recording information of auxiliary line pixel points of each line on the vehicle-mounted display screen, Y represents an ordinate axis of the vehicle-mounted display screen, X represents an abscissa axis of the vehicle-mounted display screen, and (X, Y) represents coordinate values of each pixel point of the auxiliary line on the vehicle-mounted display screen, wherein (X1, Y1) represents coordinate values of a first pixel point at the upper left corner of the auxiliary line on the vehicle-mounted display screen, and it is specified that information of each pixel occupies 2 bytes, one byte is used for representing the color of the pixel, and the other byte is used for representing the transparency value of the pixel.
The format of the nth trunk block is customized as follows:
[ value of ordinate Yn, 2 bytes ] [ all bytes counted from this point on to the next line Yn +1, value of 2 bytes ] [ abscissa X1, 2 bytes ] [ total number of bytes occupied by pixels consecutive along the abscissa axis starting with X1, 2 bytes ] [ information of each of pixels consecutive along the abscissa axis starting with X1, value of 2 bytes ] [ quantity of pixels X2 for abscissa, 2 bytes ] [ total number of bytes occupied by pixels consecutive following with X2 column, 2 bytes ] [ information of each of pixels consecutive along the abscissa axis starting with X2, value of 2 bytes ] [ quantity of pixels X3 for abscissa, 2 bytes ] [ total number of bytes occupied by pixels consecutive following with X3 column, 2 bytes ] [ information of each of pixels consecutive along the abscissa axis starting with X3, number of pixels 2 bytes ] [ value of abscissa X4, 2 bytes ] [ total number of bytes occupied by the following consecutive pixels starting with X4 column, 2 bytes ] [ information of each of the pixels consecutive along the abscissa axis starting with X4, number of pixels 2 bytes ].
In the above format, the first item in the middle bracket [ ] is the content, and the 2 nd item is the number of bytes occupied by the first item of content. N in the format is a positive integer greater than or equal to 1. When n is equal to 1, namely, the 1 st trunk block represents the information of the auxiliary line pixel points in the 1 st row on the vehicle-mounted display screen. The value of the ordinate Yn, 2 bytes in the format indicates an ordinate value Y1 in which 2 bytes (16 bits) are used to record the first line. Considering that the resolution of the display screen of the vehicle-mounted entertainment system is 1280 × 720, the abscissa is defined as X, and the ordinate is defined as Y, so 2 bytes (0-65525) are required for representing the coordinate value of Y, and similarly, 2 bytes are also required for representing the coordinate value of X.
In the format, [ all the number of bytes from this point on until the next line Yn +1 is calculated, 2 bytes ] indicates all the number of bytes of the trunk block except for the 2 bytes described above for the value indicating the ordinate Yn.
In the format, [ value of abscissa X1, 2 bytes ] indicates that 2 bytes (16 bits) are used to record the abscissa value X1. [ total number of bytes occupied by pixels consecutive along the abscissa axis starting with X1, 2 bytes ] means that the total number of bytes occupied by pixels consecutive along the abscissa axis starting with X1 is recorded in 2 bytes (16 bits). For example, starting with X1, there are 5 consecutive pixels along the abscissa axis, and the total number of bytes is 5 × 2 — 10, and since the decimal number "10" is represented as a binary number "1010", and is recorded by 2 bytes, it is "0000000000001010" (16 bits).
In the format, [ information of each of pixels which are continuous along the abscissa axis starting with X1, 2 bytes × number of pixels ], [ ] the first item is specific information of each pixel including color and transparency, and the second item is the number of bytes occupied by these information of the first item. For example, starting with X1, 5 consecutive pixels are recorded, and 10 bytes are used to record the information of the 5 pixels.
In the format, X2, X3, X4 and X1 are defined identically. X1 to X4 represent four pixels of the auxiliary line from left to right in the Yn row, as shown in fig. 2. Specifically, the auxiliary lines in the RVC module are composed of two static auxiliary lines (one for each of the left and right rear wheels) and two dynamic auxiliary lines (one for each of the left and right rear wheels), and the dynamic auxiliary lines may change continuously according to the steering wheel angle, as shown in two curves in fig. 1, the dynamic auxiliary lines are shown, and the other two lines in fig. 1 are the static auxiliary lines. X1 to X4 of the Y1 line shown in fig. 1 indicate coordinate values of the first pixel point from the left of the Y1-th line of the four auxiliary lines. Fig. 2 is a schematic diagram of the dynamic auxiliary line starting to be enlarged at the X1 coordinate in fig. 1. As shown in fig. 2, X1 begins with 5 consecutive pixels along the abscissa axis.
The colors of the dynamic auxiliary lines include green, yellow, orange and red. The method of index can be used for obtaining.
In step b, the RGBA file can be converted into a custom file (rawdata file) of the present invention by known software.
In the computer, index of color:
the above { } is an array, representing different colors. If there are colors that are not inside, the required colors can be added by themselves.
The traditional RGBA file is used for describing all color space information on a picture, while the new rawdata file only records the pixel point format of each auxiliary line needing to be drawn through a new algorithm, and the color space information part except the auxiliary line is not processed. In terms of 1280 × 720 resolution, the original size of the RGBA file is 1280 × 720 × 4 — 3600KB, and the size of the file converted by the method is 36KB, which is greatly reduced by 2 orders of magnitude. And then analyzing the compressed new custom file (rawdata file) through an auxiliary line display program, and generating a required dynamic auxiliary line graph on a vehicle-mounted display screen. The invention greatly reduces the size of the file under the condition that the resolution of the original picture is still 1280 x 720, thereby greatly improving the system performance in the file execution process and not influencing the definition of the picture.
It will be apparent to those skilled in the art that the above embodiments are merely illustrative of the present invention and are not to be construed as limiting the present invention, and that changes and modifications to the above described embodiments may be made within the spirit and scope of the present invention as defined in the appended claims.
Claims (3)
1. An auxiliary line generation method, characterized by comprising the steps of:
step a: the method comprises the steps that RGBA files of rear tire track lines under different steering wheel corners are obtained, wherein the RGBA files are files for recording pixel information of auxiliary lines on a vehicle-mounted display screen;
step b: converting the RGBA file into a custom file with a custom file format;
step c: parsing the custom file through an auxiliary line display program, an
Step d: a dynamic assistance line graph is generated on the in-vehicle display screen,
the self-defined file is composed of a plurality of trunk blocks, each trunk block is used for recording information of auxiliary line pixel points of each line on the vehicle-mounted display screen, Y is used for representing an ordinate axis of the vehicle-mounted display screen, X is used for representing an abscissa axis of the vehicle-mounted display screen, and (X, Y) is used for representing coordinate values of each pixel point of the auxiliary line on the vehicle-mounted display screen, wherein (X1, Y1) represents coordinate values of a first pixel point at the upper left corner of the auxiliary line on the vehicle-mounted display screen, the information of each pixel is specified to occupy 2 bytes, one byte is used for representing the color of the pixel, the other byte is used for representing the transparency alpha value of the pixel, and the format of the nth trunk block is self-defined as follows:
[ value of ordinate Yn, 2 bytes ] [ all bytes counted from here to the next line Yn +1, value of 2 bytes ] [ abscissa X1, 2 bytes ] [ total number of bytes occupied by pixels consecutive with X1 along the abscissa axis, information of each pixel in the pixels consecutive with 2 bytes ] [ X1 column starting next, value of 2 bytes ] [ quantity of pixels ] [ X2 abscissa, value of 2 bytes ] [ total number of bytes occupied by pixels consecutive with X2 column, information of each pixel in the pixels consecutive with 2 bytes ] [ X2 column starting next, value of 2 bytes ] [ quantity of pixels X3, total number of bytes occupied by pixels consecutive with X3 column starting next, information of each pixel in the pixels consecutive with 2 bytes ] [ X3 column starting next, value of 2 bytes ] [ quantity of pixels X4), 2 bytes ] [ total number of bytes occupied by the following consecutive pixels starting with column X4, 2 bytes ] [ information of each of the following consecutive pixels starting with column X4, 2 bytes by number of pixels ],
in the above format, the first item in the middle bracket [ ] is the content, and the 2 nd item is the number of bytes occupied by the first item content; wherein n is a positive integer greater than or equal to 1.
2. An auxiliary line generation method according to claim 1, wherein the auxiliary lines include 2 dynamic auxiliary lines divided into 1 each of the left and right rear wheels and 2 static auxiliary lines.
3. An auxiliary line generation method as claimed in claim 2, wherein the colors of the dynamic auxiliary lines include green, yellow, orange and red.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811267302.XA CN109472843B (en) | 2018-10-29 | 2018-10-29 | Auxiliary line generation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811267302.XA CN109472843B (en) | 2018-10-29 | 2018-10-29 | Auxiliary line generation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109472843A CN109472843A (en) | 2019-03-15 |
CN109472843B true CN109472843B (en) | 2022-09-16 |
Family
ID=65666181
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811267302.XA Active CN109472843B (en) | 2018-10-29 | 2018-10-29 | Auxiliary line generation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109472843B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4736201A (en) * | 1985-02-08 | 1988-04-05 | Hitachi, Ltd. | High speed image drawing method and apparatus therefor |
US4847691A (en) * | 1986-09-19 | 1989-07-11 | Questech Limited | Processing of video image signals |
CN103786662A (en) * | 2012-10-31 | 2014-05-14 | 上海博泰悦臻电子设备制造有限公司 | Method and device for generating car backing assisting line |
CN107600008A (en) * | 2017-09-07 | 2018-01-19 | 沈阳中科创达软件有限公司 | Generation method, device, mobile unit and the storage medium for boost line of moving backward |
CN107878561A (en) * | 2017-09-26 | 2018-04-06 | 惠州市德赛西威汽车电子股份有限公司 | A kind of dynamic reverse trajectory discharge drawing method and its device |
CN108052908A (en) * | 2017-12-15 | 2018-05-18 | 郑州日产汽车有限公司 | Track keeping method |
CN108248688A (en) * | 2016-12-29 | 2018-07-06 | 长城汽车股份有限公司 | Auxiliary line setting method of moving backward and reversing aid system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10681326B2 (en) * | 2016-05-19 | 2020-06-09 | AVAGO TECHNOLOGlES INTERNATIONAL SALES PTE. LIMITED | 360 degree video system with coordinate compression |
-
2018
- 2018-10-29 CN CN201811267302.XA patent/CN109472843B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4736201A (en) * | 1985-02-08 | 1988-04-05 | Hitachi, Ltd. | High speed image drawing method and apparatus therefor |
US4847691A (en) * | 1986-09-19 | 1989-07-11 | Questech Limited | Processing of video image signals |
CN103786662A (en) * | 2012-10-31 | 2014-05-14 | 上海博泰悦臻电子设备制造有限公司 | Method and device for generating car backing assisting line |
CN108248688A (en) * | 2016-12-29 | 2018-07-06 | 长城汽车股份有限公司 | Auxiliary line setting method of moving backward and reversing aid system |
CN107600008A (en) * | 2017-09-07 | 2018-01-19 | 沈阳中科创达软件有限公司 | Generation method, device, mobile unit and the storage medium for boost line of moving backward |
CN107878561A (en) * | 2017-09-26 | 2018-04-06 | 惠州市德赛西威汽车电子股份有限公司 | A kind of dynamic reverse trajectory discharge drawing method and its device |
CN108052908A (en) * | 2017-12-15 | 2018-05-18 | 郑州日产汽车有限公司 | Track keeping method |
Non-Patent Citations (1)
Title |
---|
乘用车动态倒车辅助线设计;冉光伟 等;《汽车零部件》;20171128;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109472843A (en) | 2019-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5345554A (en) | Visual frame buffer architecture | |
JPH10105723A (en) | Memory constitution for texture mapping | |
US5867145A (en) | Graphical image recasting | |
KR102569371B1 (en) | Video application of delta color compression | |
WO2019205019A1 (en) | Method and system for displaying a vehicle data stream and a vehicle diagnosis device | |
US6342883B1 (en) | Image display method and image display apparatus | |
US5905661A (en) | Method for handling an overflow condition in a processor | |
US20090256852A1 (en) | Character display apparatus | |
CN113287145A (en) | Resident drawing descriptor | |
CN109472843B (en) | Auxiliary line generation method | |
US5740345A (en) | Method and apparatus for displaying computer graphics data stored in a compressed format with an efficient color indexing system | |
US5714975A (en) | Apparatus and method for generating halftoning or dither values | |
JP2000011190A (en) | Image processor | |
CN112581403B (en) | Fisheye image correction method, fisheye image correction system and fisheye image correction medium | |
US5920302A (en) | Display scrolling circuit | |
CN108765258B (en) | Vehicle-mounted image processing method and device, electronic equipment, medium and program product | |
US6515661B1 (en) | Anti-aliasing buffer | |
US6608940B1 (en) | Lossless image compression | |
US6801214B1 (en) | Three-dimensional graphics system reducing color data/bits in drawing operations for faster processing | |
IT201900006730A1 (en) | VISUALIZATION SYSTEM AND RELATED VEHICLE AND PROCEDURE | |
CN115797496B (en) | Dotted line drawing method and related device | |
CN101061703A (en) | Embedded device with image rotation | |
CN106569759A (en) | Method for displaying recorded information and method for generating the same | |
JPH0697393B2 (en) | Bitmap processor | |
JP2601169B2 (en) | Image data compression coding system |
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 |