Processing Method, Device and Vehicle for Automobile Starry Sky Ceiling Image

By creating a two-dimensional array and obtaining the starry sky lights of the starry sky roof, the starry sky roof is lit up according to the custom starry sky pictures, solving the problem that cannot meet users' personalized needs in the existing technology and improving the user experience.

CN114724493BActive Publication Date: 2025-06-17VOYAH AUTOMOBILE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210280023.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2025-06-17
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

In the prior art, the starry sky roof can only be lit according to the pre-set programs of the automobile manufacturer and cannot meet the personalized needs of users.

Method used

By obtaining the pixel data in the starry sky playback data, a two-dimensional array is created, and the color value of each pixel is stored in the array. Based on these data, the corresponding starlight lights are obtained from the light array in the starry sky ceiling and lit them, while controlling the remaining lights to be turned off.

Benefits of technology

It realizes the starry sky ceiling light up according to the starry sky pictures set by themselves, meeting the personalized needs of users and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114724493B_ABST
    Figure CN114724493B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for processing an image of a car starry sky ceiling. According to the pixel data in the obtained starry sky playback data, a two-dimensional array is established, and the color value corresponding to each pixel is stored in the storage address of each pixel array in the two-dimensional array; according to the color value stored in the storage address of the two-dimensional array, N two-dimensional data for starry sky projection are determined from the two-dimensional array; according to the N two-dimensional data, N starry sky lights corresponding to the N two-dimensional data are obtained from the starry sky light array in the starry sky ceiling; the N starry sky lights in the starry sky light array are lit, and the remaining starry sky lights are controlled to be in an extinguished state. The method, device and vehicle for processing an image of a car starry sky ceiling disclosed by the present invention can light the starry sky ceiling according to a self-set starry sky picture, meeting the personalized needs of users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicles, and particularly relates to a method and device for processing an image of a car starry sky ceiling and a vehicle. Background Art

[0002] With the rapid development of vehicle technology, the configuration of vehicles is getting higher and higher. Some existing vehicle models are already equipped with starry sky ceilings at the factory. Since the starry sky ceiling can achieve some meteor effects and constellation effects, the user experience is better.

[0003] In the prior art, since the starry sky ceiling can only be lit according to the programs or effects preset by automobile manufacturers, and in the application process, users want to set the lighting method by themselves, there is an urgent need for a starry sky ceiling that can meet the individualization of users. Summary of the Invention

[0004] Embodiments of the present invention provide a method and device for processing an image of a car starry sky ceiling and a vehicle, which can light the starry sky ceiling according to a self-set starry sky picture and meet the personalized needs of users.

[0005] In a first aspect of an embodiment of the present invention, a method for processing an image of a car starry sky ceiling is provided. The method includes:

[0006] According to the pixel data in the obtained starry sky playback data, establish a two-dimensional array, and store the color value corresponding to each pixel in the storage address of each pixel array in the two-dimensional array;

[0007] According to the color values stored in the storage addresses of the two-dimensional array, determine N two-dimensional data for starry sky projection from the two-dimensional array, where N is an integer greater than 1;

[0008] According to the N two-dimensional data, obtain N starry sky lights corresponding to the N two-dimensional data from the starry sky light array in the starry sky ceiling;

[0009] Light the N starry sky lights in the starry sky light array, and control the remaining starry sky lights to be in an extinguished state, where the remaining starry sky lights are the starry sky lights in the starry sky light array other than the N starry sky lights.

[0010] Optionally, the step of establishing a two-dimensional array according to the pixel data in the obtained starry sky playback data includes:

[0011] If the starry sky playback data is video data, extract the data at a set duration to obtain a data frame picture set; for the pixel data in each data frame picture in the data frame picture set, establish the two-dimensional array.

[0012] Optionally, establishing the two-dimensional array for the pixel data in each data frame picture in the data frame picture set includes:

[0013] For each data frame picture in the data frame picture set, establish a two-dimensional coordinate that matches the resolution of the data frame picture according to the resolution of the data frame picture; obtain the two-dimensional data of each pixel in the established two-dimensional coordinate according to the position of each pixel in the data frame picture; establish the two-dimensional array according to the two-dimensional data of each pixel.

[0014] Optionally, determining N two-dimensional data for starry sky projection from the two-dimensional array according to the color values stored at the storage address of the two-dimensional array includes:

[0015] According to the color values stored at the storage address of the two-dimensional array, compare the color values of every two adjacent pixels in the two-dimensional array to obtain N pixels whose color change value is greater than a set value;

[0016] Obtain the two-dimensional data corresponding to the N pixels from the two-dimensional array as the N two-dimensional data.

[0017] Optionally, after determining N two-dimensional data for starry sky projection from the two-dimensional array, the method further includes:

[0018] Determine the projection sketch boundary according to the N two-dimensional data.

[0019] Optionally, obtaining N star lights corresponding to the N two-dimensional data from the star light array in the starry sky ceiling according to the N two-dimensional data includes:

[0020] Establish a starry sky coordinate system for the star light array;

[0021] Map the projection sketch boundary to the starry sky coordinate system proportionally to obtain N star light coordinates mapped by the N two-dimensional data;

[0022] Obtain the N star lights corresponding to the N star light coordinates.

[0023] Optionally, lighting the N star lights in the star light array and controlling the remaining star lights to be in an extinguished state includes:

[0024] Light the N star lights according to the addresses of the N star lights;

[0025] Control the remaining star lights to be in the extinguished state according to the address of each star light in the remaining star lights.

[0026] In a second aspect of the embodiments of the present invention, there is also provided a processing device for automotive starry sky ceiling images, the device comprising:

[0027] An array creation unit, configured to establish a two-dimensional array according to the pixel data in the obtained starry sky playback data, and store the color value corresponding to the pixel in the storage address of each pixel array in the two-dimensional array;

[0028] A two-dimensional data acquisition unit, configured to determine N two-dimensional data for starry sky projection from the two-dimensional array according to the color values stored in the storage addresses of the two-dimensional array, where N is an integer greater than 1;

[0029] A starry sky lamp determination unit, configured to obtain N starry sky lamps corresponding to the N two-dimensional data from the starry sky lamp array in the starry sky ceiling according to the N two-dimensional data;

[0030] A starry sky lamp control unit, configured to turn on the N starry sky lamps in the starry sky lamp array, and control the remaining starry sky lamps to be in an off state, where the remaining starry sky lamps are the starry sky lamps in the starry sky lamp array other than the N starry sky lamps.

[0031] Optionally, the array creation unit is configured to, if the starry sky playback data is video data, extract the starry sky playback data according to a set duration to obtain a data frame picture set; and establish the two-dimensional array for the pixel data in each data frame picture in the data frame picture set.

[0032] In a third aspect of the embodiments of the present invention, there is also provided a vehicle, comprising a vehicle body, a starry sky ceiling, and a processing device for automotive starry sky ceiling images as provided in the second aspect provided in the vehicle body.

[0033] One or at least one of the above technical solutions in the embodiments of the present application has at least the following technical effects:

[0034] Based on the above technical solutions, a two-dimensional array is established according to the pixel data in the obtained starry sky playback data, and the color value corresponding to the pixel is stored in the storage address of each pixel array in the two-dimensional array; N two-dimensional data for starry sky projection are determined from the two-dimensional array according to the color values stored in the storage addresses of the two-dimensional array; N starry sky lamps corresponding to the N two-dimensional data are obtained from the starry sky lamp array in the starry sky ceiling according to the N two-dimensional data; the N starry sky lamps in the starry sky lamp array are turned on, and the remaining starry sky lamps are controlled to be in an off state; in this way, the obtained starry sky playback data can be used to turn on the N starry sky lamps in the starry sky lamp array in the starry sky ceiling, and control the remaining starry sky lamps to be in an off state, thereby realizing lighting the starry sky ceiling according to a self-set starry sky picture, meeting the personalized needs of users, and making the user experience better. Description of the Drawings

[0035] Figure 1 It is a schematic flowchart of a method for processing an automotive starry sky ceiling image provided by an embodiment of the present application;

[0036] Figure 2 It is a system framework diagram of an automotive starry sky ceiling image projection system provided by an embodiment of the present application;

[0037] Figure 3 It is a schematic flowchart of the lighting logic of an automotive starry sky ceiling image projection system provided in this specification;

[0038] Figure 4 It is a schematic structural diagram of a device for processing an automotive starry sky ceiling image provided by an embodiment of the present application. Detailed Embodiments

[0039] The following will elaborate in detail on the main implementation principles, specific implementation manners, and corresponding beneficial effects that can be achieved of the technical solutions of the embodiments of the present application with reference to the accompanying drawings.

[0040] Embodiment

[0041] Please refer to Figure 1 , an embodiment of the present application provides a method for processing an automotive starry sky ceiling image, and the method includes:

[0042] S101. According to the pixel data in the obtained starry sky playback data, establish a two-dimensional array, and store the color value corresponding to each pixel in the storage address of each pixel array in the two-dimensional array;

[0043] S102. Determine N two-dimensional data for starry sky projection from the two-dimensional array according to the color values stored in the storage addresses of the two-dimensional array, where N is an integer greater than 1;

[0044] S103. According to the N two-dimensional data, obtain N starry sky lights corresponding to the N two-dimensional data from the starry sky light array in the starry sky ceiling;

[0045] S104. Turn on the N starry sky lights in the starry sky light array, and control the remaining starry sky lights to be in an off state, where the remaining starry sky lights are the starry sky lights other than the N starry sky lights in the starry sky light array.

[0046] In the embodiments of this specification, the vehicle may include a fuel vehicle and an electric vehicle. The electric vehicle may be, for example, a pure electric vehicle, an extended-range electric vehicle, a hybrid vehicle, a fuel cell electric vehicle, and a hydrogen engine vehicle, etc.

[0047] Among them, in step S101, first obtain starry sky playback data. The starry sky playback data can be video data or picture data containing starry sky images. After obtaining the starry sky playback data, obtain the pixel data in the starry sky playback data, and then establish a two-dimensional array according to the pixel data in the starry sky playback data.

[0048] Specifically, when establishing a two-dimensional array according to the pixel data in the starry sky playback data, a two-dimensional array can be established to define the coordinates of each pixel according to the coordinates of each pixel in the pixel data, and a two-dimensional array can be obtained according to the established coordinates of each pixel; or a two-dimensional coordinate matching the resolution of the data frame picture can be established according to the resolution corresponding to the pixel data, and then the coordinates in the two-dimensional coordinate are corresponding to the coordinates of each pixel in the pixel data, thereby establishing a two-dimensional array.

[0049] Specifically, if the starry sky playback data is video data, extract the data according to a set duration to obtain a set of data frame pictures; for the pixel data in each data frame picture in the set of data frame pictures, establish a two-dimensional array, and for each data frame picture, execute steps S101 - S104. Among them, when establishing a two-dimensional array for the pixel data in each data frame picture in the set of data frame pictures, for each data frame picture in the set of data frame pictures, a two-dimensional coordinate matching the resolution of the data frame picture can be established according to the resolution of the data frame picture; then, according to the position of each pixel in the data frame picture, obtain the two-dimensional data of each pixel in the established two-dimensional coordinate; establish a two-dimensional data according to the two-dimensional data of each pixel.

[0050] In addition, when establishing a two-dimensional coordinate matching the resolution of the data frame picture for each data frame picture in the set of data frame pictures, any pixel in the data frame picture can be used as the origin to establish a two-dimensional coordinate matching the resolution of the data frame picture based on the origin; or an origin can be preset outside the data frame picture, and then a two-dimensional coordinate matching the resolution of the data frame picture can be established based on the origin. Preferably, the first pixel in the data frame picture can be used as the origin to establish a two-dimensional coordinate matching the resolution of the data frame picture.

[0051] In the embodiments of this specification, the set duration can be set according to actual needs, or can be set manually or by the device itself. The set duration can be, for example, 100 milliseconds (ms), 200 ms, 500 ms, 800 ms, etc.

[0052] Specifically, if the starry sky playback data is a starry sky image, a two-dimensional array is directly established according to the pixel data in the starry sky playback data. The establishment method specifically refers to the establishment method when the starry sky playback data is video data. For the sake of simplicity of the specification, it will not be elaborated here.

[0053] Moreover, after establishing the two-dimensional array, obtain the color value of each pixel in the playback data. For example, it can be an RGB value or a grayscale value. For each pixel, store the color value of the pixel at the storage address of the pixel in the two-dimensional array. For example, taking pixel A as an example, determine the storage address of A in the two-dimensional array as A1, and store the color value of A in A1.

[0054] In the actual application process, the starry sky playback data is usually stored in the vehicle's multimedia system. When obtaining the starry sky playback data, it needs to be selected from the multimedia system. After selecting the starry sky playback data, the multimedia system will execute steps S101 - S103, and then send N starry sky lights to the body controller; when executing step S104, at this time, the body controller will generate a control command according to the received N starry sky lights, and the body controller will transmit the control command to the starry sky ceiling electronic control unit (Electronic Control Unit, abbreviated as ECU), and then the starry sky ceiling ECU will execute step S104.

[0055] After establishing the two-dimensional array, execute step S102.

[0056] In step S102, the color values of every two adjacent pixels in the two-dimensional array can be compared according to the color values stored at the storage addresses of the two-dimensional array to obtain N pixels whose color change value is greater than the set value; obtain the two-dimensional data corresponding to the N pixels from the two-dimensional array as N two-dimensional data. Of course, the color values of every three or more adjacent pixels can also be compared to obtain N pixels whose color change value is greater than the set value; obtain the two-dimensional data corresponding to the N pixels from the two-dimensional array as N two-dimensional data.

[0057] In another embodiment, the two-dimensional array can also be divided into multiple small regions according to the color values stored at the storage addresses of the two-dimensional array. For each small region among the multiple small regions, obtain the pixels whose color value difference within the small region is greater than the set value, and use the two-dimensional data corresponding to all the pixels whose color change value within each small region is greater than the set value as N two-dimensional data. Among them, the set value can be set according to actual needs, or can be set manually or by the device itself, and this specification does not make specific limitations.

[0058] Since the color difference value between each pixel point corresponding to each of the N two-dimensional data obtained and its adjacent pixel points is greater than the set value, the N two-dimensional data can well reflect the starry sky contour in the starry sky playback data.

[0059] In another embodiment of this specification, after determining N two-dimensional data for starry sky projection from a two-dimensional array, a projection sketch boundary may also be determined according to the N two-dimensional data, where the projection sketch boundary is an image composed of the N two-dimensional data.

[0060] After determining the N two-dimensional data, step S103 is executed.

[0061] In step S103, first, obtain the starry sky lamp array in the starry sky ceiling, and then establish a starry sky coordinate system for the starry sky lamp array; after establishing the starry sky coordinate system, if the projection sketch boundary has not been obtained, directly project the N two-dimensional data into the starry sky coordinate system to obtain N starry sky lamp coordinates mapped by the N two-dimensional data; obtain the N starry sky lamps corresponding to the N starry sky lamp coordinates; if the projection sketch boundary has been obtained, map the projection sketch boundary into the starry sky coordinate system according to a ratio to obtain N starry sky lamp coordinates mapped by the N two-dimensional data; obtain the N starry sky lamps corresponding to the N starry sky lamp coordinates. The N starry sky lamps may be the addresses of the N starry sky lamps. When each starry sky lamp has an identifier, the N starry sky lamps may also be the addresses of the N starry sky lamps. This specification does not make specific limitations.

[0062] Since the N two-dimensional data can well reflect the starry sky contour in the starry sky playback data, thus, when applying current to the N starry sky lamps mapped by the N two-dimensional data and turning off the remaining starry sky lamps, the starry sky lamp array can also better reflect the starry sky contour in the starry sky playback data.

[0063] After obtaining the N starry sky lamps, step S104 is executed.

[0064] In step S104, after determining the N starry sky lamps, obtain the remaining starry sky lamps in the starry sky lamp array except the N starry sky lamps, then generate a control command to turn on the N starry sky lamps and turn off the remaining starry sky lamps, send the control command to the starry sky lamp array, and then turn on the N starry sky lamps in the starry sky lamp array and turn off each of the remaining starry sky lamps, thereby achieving turning on the N starry sky lamps and controlling the remaining starry sky lamps to be in an off state.

[0065] Specifically, when turning on the N starry sky lamps, the N starry sky lamps may be turned on according to the addresses of the N starry sky lamps; and the remaining starry sky lamps are controlled to be in an off state according to the addresses of each of the remaining starry sky lamps.

[0066] In the actual application process, after determining N star lights and the remaining star lights, the body controller will automatically generate a control command to turn on the N star lights and turn off the remaining star lights, and then send the control command to the star ceiling ECU. The star ceiling ECU obtains the addresses of the N star lights in the control command according to the control command and turns on the N star lights; and obtains the addresses of each of the remaining star lights in the control command to control the remaining star lights to be in the off state.

[0067] When the star playback data is star video data, since the video data consists of multiple frame data pictures, thus, the multiple frame data pictures can be processed in sequence, continuously controlling the lighting and extinguishing of the star lights in the star light array. After processing the last frame data picture, start processing from the first frame data picture, and so on in a loop, continuously sending the processed message data, then the dynamic lighting effect of the star ceiling according to the star video loaded by the vehicle user can be achieved.

[0068] In the actual application process, as Figure 2 shown, the method for processing the automotive star ceiling image provided in the embodiments of this specification is applied in an automotive star ceiling image projection system. The system includes a multimedia system 20, a body controller 30, a star ceiling ECU 40, and a star light array 50. Among them, the multimedia system 20 includes a multimedia display screen 201, a multimedia file library 202, and a star ceiling image processing application program 203. Of course, the star ceiling image processing application program 203 can also be deployed in the body controller 30, and this specification does not make specific limitations.

[0069] Among them, the projection system further includes four-door status acquisition micro switches 60 for triggering the lighting of each star light. The four-door status acquisition micro switches 60 are electrically connected to the body controller 30; and the star light array includes a lamp head 501 with an address of x0, y0; a lamp head 502 with an address of x1, y0; a lamp head 503 with an address of x2, y0; a lamp head 504 with an address of x0, y1; a lamp head 505 with an address of x1, y1; a lamp head 506 with an address of x2, y1.

[0070] Specifically speaking, first, after the vehicle uses and completes data loading, video or picture data is loaded in the star ceiling image processing application program 203. The star ceiling image processing application program 203 processes the picture through the following steps and feeds back to the operator whether the data entry is successful in a pop-up window manner, which specifically includes the following steps:

[0071] A1. If the loaded data is a video file, first extract the data at intervals of 500 ms (to reduce the memory consumption caused by the images extracted from the video). After obtaining the data frame images, store the extracted images according to the extraction time. If the loaded data is an image, store it directly.

[0072] A2. Establish coordinates: Based on the stored data, the resolution can be obtained. Starting from the first pixel of the image, create an empty two-dimensional array that matches the length of the resolution to define the coordinates of the image.

[0073] A3. Obtain color values: Obtain the RGB color values of each pixel in each image, and use the address of the two-dimensional array to store the RGB color values corresponding to the pixel coordinates.

[0074] A4. Outline the boundary: Use an algorithm to compare adjacent RGB color values to find the pixel points with large pixel mutations, and outline the sketch boundary of the image.

[0075] A5. Mapping projection: According to the arrangement of the lamp heads on the starry sky ceiling, first determine the two-dimensional coordinates of the lamp heads, and enter its resolution into the starry sky ceiling image processing application program. Map the outlined sketch boundary proportionally to the two-dimensional coordinates of the starry sky ceiling lamp heads. According to the mapping result, obtain a set of lamp head addresses that need to be lit on the starry sky ceiling, and the remaining are the lamp head addresses that are not lit.

[0076] A6. Output control: Next, the multimedia system 20 converts the lit and unlit lamp head addresses into automotive CAN bus messages and transmits them to the body controller 30 in multiple frames. The body controller 30 then converts the bus messages into LIN bus messages and sends them to the starry sky ceiling ECU 40. The starry sky ceiling ECU 40 performs multi-frame message parsing to obtain the complete lamp head addresses that need to be controlled to be lit and extinguished, and drives the lamp heads that need to be lit to complete the control.

[0077] In the actual application process, as long as the starry sky ceiling switch is not turned off, continuously process the stored images and continuously control the lighting of the starry sky ceiling. If the processed data is video data, the processing steps from A3 to A6 will be repeated. After processing each image in turn, return to the initial state to process the first photo, and so on in a loop. By continuously sending the processed message data, the effect of dynamically lighting the starry sky ceiling according to the video loaded by the vehicle user can be achieved.

[0078] Such as Figure 3As shown in the figure, this specification provides a schematic flowchart of the lighting logic of an automotive starry sky ceiling image projection system, including the following steps: B1. Load data; after loading the data, if it is video data, then execute steps B2 - B3; if it is a picture, directly execute step B3; where step B2. Extract pictures; then execute step B3. Store pictures; after storing the pictures, execute step B4. Establish coordinates; and after establishing coordinates, execute step B5. Obtain color values; and after obtaining color values, execute step B6. Outline the boundary; after outlining the boundary, execute step B7. Map the projection; after mapping the projection, execute step B8. Output; after executing step B8, execute step B9. Determine whether it is a video; if so, sequentially execute B5 - B9 for the next frame of picture; if not, execute step B10. Determine whether to turn off the starry sky ceiling, if not, return to execute B4 - B9.

[0079] One or at least one of the above technical solutions in the embodiments of the present application has at least the following technical effects:

[0080] Based on the above technical solution, according to the pixel data in the obtained starry sky playback data, a two-dimensional array is established, and the color value corresponding to each pixel is stored in the storage address of each pixel array in the two-dimensional array; according to the color values stored in the storage addresses of the two-dimensional array, N two-dimensional data for starry sky projection are determined from the two-dimensional array, where N is an integer greater than 1; according to the N two-dimensional data, N starry sky lights corresponding to the N two-dimensional data are obtained from the starry sky light array in the starry sky ceiling; the N starry sky lights in the starry sky light array are lit, and the remaining starry sky lights are controlled to be in the extinguished state; in this way, the obtained starry sky playback data can be used to light the N starry sky lights in the starry sky light array in the starry sky ceiling, and the remaining starry sky lights are controlled to be in the extinguished state, thereby realizing lighting the starry sky ceiling according to the self-set starry sky picture, meeting the personalized needs of users, and making the user experience better.

[0081] For the above embodiment, a method for processing an automotive starry sky ceiling image is provided. The embodiments of the present application also correspond to a device for processing an automotive starry sky ceiling image, as Figure 4 shown, the device includes:

[0082] An array creation unit 401, configured to establish a two-dimensional array according to the pixel data in the obtained starry sky playback data, and store the color value corresponding to each pixel in the storage address of each pixel array in the two-dimensional array;

[0083] A two-dimensional data acquisition unit 402, configured to determine N two-dimensional data for starry sky projection from the two-dimensional array according to the color values stored in the storage addresses of the two-dimensional array, where N is an integer greater than 1;

[0084] A starry sky light determination unit 403, configured to obtain N starry sky lights corresponding to the N two-dimensional data from a starry sky light array in the starry sky ceiling according to the N two-dimensional data;

[0085] A starry sky light control unit 404, configured to turn on the N starry sky lights in the starry sky light array and control the remaining starry sky lights to be in an off state, where the remaining starry sky lights are the starry sky lights other than the N starry sky lights in the starry sky light array.

[0086] In an optional implementation manner, an array creation unit 401 is configured to, if the starry sky playback data is video data, extract the starry sky playback data according to a set duration to obtain a data frame picture set; and establish the two-dimensional array for pixel data in each data frame picture in the data frame picture set.

[0087] In an optional implementation manner, an array creation unit 401 is configured to, for each data frame picture in the data frame picture set, establish a two-dimensional coordinate matching the resolution of the data frame picture according to the resolution of the data frame picture; obtain two-dimensional data of each pixel in the established two-dimensional coordinate according to the position of each pixel in the data frame picture; and establish the two-dimensional array according to the two-dimensional data of each pixel.

[0088] In an optional implementation manner, a two-dimensional data acquisition unit 402 is configured to compare the color values of every two adjacent pixels in the two-dimensional array according to the color values stored at the storage address of the two-dimensional array, obtain N pixels whose color change values are greater than a set value; and obtain the two-dimensional data corresponding to the N pixels from the two-dimensional array as the N two-dimensional data.

[0089] In an optional implementation manner, it further includes:

[0090] A sketch boundary acquisition unit, configured to determine a projection sketch boundary according to the N two-dimensional data after determining the N two-dimensional data for starry sky projection from the two-dimensional array.

[0091] In an optional implementation manner, a starry sky light determination unit 403 is configured to establish a starry sky coordinate system of the starry sky light array; map the projection sketch boundary to the starry sky coordinate system according to a proportion to obtain N starry sky light coordinates mapped by the N two-dimensional data; and obtain the N starry sky lights corresponding to the N starry sky light coordinates.

[0092] In an optional implementation manner, a starry sky light control unit 404 is configured to turn on the N starry sky lights according to the addresses of the N starry sky lights; and control the remaining starry sky lights to be in the off state according to the addresses of each of the remaining starry sky lights.

[0093] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0094] For the above embodiments, a processing method for an automotive starry sky ceiling image is provided. An embodiment of the present application also correspondingly provides a vehicle, including a vehicle body, a starry sky ceiling, and a processing device for the automotive starry sky ceiling image as described above disposed in the vehicle body.

[0095] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include known common general knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.

[0096] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

[0097] The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for processing an automotive starry sky ceiling image, characterized in that, The method includes: Based on the pixel data in the obtained starry sky playback data, establish a two-dimensional array, and store the color value corresponding to each pixel in the storage address of each pixel array in the two-dimensional array; Based on the color values stored in the storage addresses of the two-dimensional array, determine N two-dimensional data for starry sky projection from the two-dimensional array, where N is an integer greater than 1; Based on the N two-dimensional data, obtain N starry sky lights corresponding to the N two-dimensional data from the starry sky light array in the starry sky ceiling; Turn on the N starry sky lights in the starry sky light array, and control the remaining starry sky lights to be in the off state, where the remaining starry sky lights are the starry sky lights in the starry sky light array other than the N starry sky lights; The establishing a two-dimensional array based on the pixel data in the obtained starry sky playback data includes: If the starry sky playback data is video data, extract the data at a set duration from the starry sky playback data to obtain a set of data frame pictures; for the pixel data in each data frame picture in the set of data frame pictures, establish the two-dimensional array; The establishing the two-dimensional array for the pixel data in each data frame picture in the set of data frame pictures includes: For each data frame picture in the set of data frame pictures, establish a two-dimensional coordinate matching the resolution of the data frame picture according to the resolution of the data frame picture; obtain the two-dimensional data of each pixel in the established two-dimensional coordinate according to the position of each pixel in the data frame picture; establish the two-dimensional array according to the two-dimensional data of each pixel.

2. The method according to claim 1, characterized in that, The determining N two-dimensional data for starry sky projection from the two-dimensional array based on the color values stored in the storage addresses of the two-dimensional array includes: Based on the color values stored in the storage addresses of the two-dimensional array, compare the color values of every two adjacent pixels in the two-dimensional array to obtain N pixels whose color change values are greater than a set value; Obtain the two-dimensional data corresponding to the N pixels from the two-dimensional array as the N two-dimensional data.

3. The method according to claim 2, characterized in that, After determining N two-dimensional data for starry sky projection from the two-dimensional array, the method further includes: Determine the projection sketch boundary based on the N two-dimensional data.

4. The method according to claim 3, characterized in that, The obtaining N starry sky lights corresponding to the N two-dimensional data from the starry sky light array in the starry sky ceiling based on the N two-dimensional data includes: Establish a starry sky coordinate system for the starry sky light array; Map the projection sketch boundary to the starry sky coordinate system proportionally to obtain N starry sky light coordinates mapped by the N two-dimensional data; Obtain the N starry sky lights corresponding to the N starry sky light coordinates.

5. The method according to claim 4, characterized in that, The turning on the N starry sky lights in the starry sky light array and controlling the remaining starry sky lights to be in the off state includes: Turn on the N starry sky lights according to the addresses of the N starry sky lights; Control the remaining starry sky lights to be in the off state according to the addresses of each of the remaining starry sky lights.

6. An apparatus for processing an automotive starry sky ceiling image, characterized in that, The device includes: An array creation unit for creating a two-dimensional array according to the pixel data in the obtained starry sky playback data, and storing the color value corresponding to each pixel in the storage address of each pixel array in the two-dimensional array; the creating of the two-dimensional array according to the pixel data in the obtained starry sky playback data includes: If the starry sky playback data is video data, extracting the starry sky playback data according to a set duration to obtain a data frame picture set; creating the two-dimensional array for the pixel data in each data frame picture in the data frame picture set; The creating of the two-dimensional array for the pixel data in each data frame picture in the data frame picture set includes: For each data frame picture in the data frame picture set, creating a two-dimensional coordinate that matches the resolution of the data frame picture according to the resolution of the data frame picture; obtaining the two-dimensional data of each pixel in the created two-dimensional coordinate according to the position of each pixel in the data frame picture; creating the two-dimensional array according to the two-dimensional data of each pixel; A two-dimensional data acquisition unit for determining N two-dimensional data for starry sky projection from the two-dimensional array according to the color values stored in the storage addresses of the two-dimensional array, where N is an integer greater than 1; A starry sky lamp determination unit for obtaining N starry sky lamps corresponding to the N two-dimensional data from the starry sky lamp array in the starry sky ceiling according to the N two-dimensional data; A starry sky lamp control unit for lighting the N starry sky lamps in the starry sky lamp array and controlling the remaining starry sky lamps to be in an extinguished state, where the remaining starry sky lamps are the starry sky lamps in the starry sky lamp array other than the N starry sky lamps; 7. A vehicle, characterized in that, It includes a vehicle body, a starry sky ceiling, and a processing device for the automotive starry sky ceiling image as described in claim 6 provided in the vehicle body.

Citation Information

Patent Citations

  • Vehicle VR interior processing method, computing equipment and storage medium

    CN113870287A

  • Generation method of target element in virtual sky and related equipment

    CN113936084A