Vehicle projection method and device based on projection lamp, equipment and medium
By using a rotary reflector and a light source component with a preset number of columns in the vehicle projection lamp, combining video frame rate splitting and pixel point group gray value mapping technology, the problem of high on-board projection cost is solved, and a low-cost and high-resolution vehicle projection effect is achieved.
Patent Information
- Application Number
- CN202510393864.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-06-10
AI Technical Summary
The existing high-pixel projection lights on vehicles are costly and it is difficult to achieve low-cost and high-quality vehicle projection.
The rotation of the rotary mirror and a light source component with a preset column number are controlled to achieve high resolution projection by splitting the video frame rate, calculating the grayscale value of the pixel point group and mapping it to the minimum imaging unit.
The single-piece cost of the projection lamp is reduced, and high-resolution vehicle projection is achieved through scanning projection while reducing the number of light source components.
Smart Images

Figure CN120128688A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle control, and particularly to a vehicle projection method, device, equipment and medium based on a projection lamp. Background Art
[0002] In the prior art, in-vehicle high-pixel projection lamps mainly adopt DLP (Digital Light Processing) technology, relying on precise lithography and miniaturization technology. The projected pattern pixels are one-to-one with the physical pixels. Therefore, the higher the pixel density, the higher the cost.
[0003] For example: If a DMD (Digital Micromirror Device) chip with a resolution of 1151×1151 is used for projection, the chip needs to be composed of 1151 rows and 1151 columns; if an HD (High Definition) module is used for projection, 320×80 microLEDs (Micro Light Emitting Diode Display) are used to generate a pattern of 25,600 pixels.
[0004] In view of the above problems, how to achieve high-quality vehicle projection at low cost has become an urgent problem to be solved. Summary of the Invention
[0005] In view of the above, it is necessary to provide a vehicle projection method, device, equipment and medium based on a projection lamp, aiming to solve the problem of high cost of vehicle projection.
[0006] A vehicle projection method based on a projection lamp is applied to a vehicle control system, which is used to control a projection lamp. The projection lamp includes a rotary mirror and a light source assembly with a preset number of columns. The vehicle projection method based on the projection lamp includes:
[0007] In response to a projection instruction for a video to be projected, obtain a target frame rate of the video obtained after projection configured, and split the video to be projected according to the target frame rate to obtain at least one timing picture;
[0008] Obtain the resolution of each timing picture, and obtain the number of each group of pixel points in the horizontal and vertical directions configured;
[0009] Determine the number of groups according to the resolution of each timing picture and the number of each group of pixel points in the horizontal and vertical directions;
[0010] Split each timing picture according to the number of groups to obtain a plurality of pixel point groups;
[0011] Calculate the grayscale values of each pixel in each pixel group, and map the grayscale values of each pixel to the minimum imaging unit of the projection lamp;
[0012] Control the rotary mirror to rotate continuously in the target direction and at the target rotation speed, so as to project the minimum imaging unit onto the target area.
[0013] According to a preferred embodiment of the present invention, the target frame rate is greater than or equal to 25 Hz;
[0014] The light source assembly includes a digital micromirror device or a micro light-emitting diode display.
[0015] According to a preferred embodiment of the present invention, the method further includes:
[0016] When the light source assembly is the digital micromirror device, image is formed by irradiating the pre-arranged light source onto the rotary mirror according to the digital micromirror device; or
[0017] When the light source assembly is the micro light-emitting diode display, the micro light-emitting diode display is used as a light source to irradiate the rotary mirror for imaging.
[0018] According to a preferred embodiment of the present invention, the method further includes:
[0019] Adjust the target rotation speed according to the preset number of columns;
[0020] Control the frame rate of the video obtained after the projection lamp projects to be equal to the target frame rate according to the target rotation speed.
[0021] According to a preferred embodiment of the present invention, the controlling the frame rate of the video obtained after the projection lamp projects to be equal to the target frame rate according to the target rotation speed includes:
[0022] Obtain the image width of the video obtained after the projection lamp projects;
[0023] Determine the number of sides of the rotary mirror according to the image width;
[0024] Calculate the quotient of the target rotation speed and the number of sides to obtain a target value;
[0025] Control the target value to be equal to the target frame rate;
[0026] Wherein, the target rotation speed is the number of turns of the rotary mirror rotating per unit time.
[0027] According to a preferred embodiment of the present invention, the mapping the grayscale values of each pixel to the minimum imaging unit of the projection lamp includes:
[0028] When the light source component is the digital micromirror device, after continuously adjusting the angle between the normal line of the digital micromirror device itself and the light source to form different gray levels of pixel points, map the gray level values of each pixel point to the minimum imaging unit; or
[0029] When the light source component is the micro - light - emitting diode display, after continuously adjusting the current of a single light - emitting diode in the micro - light - emitting diode display to form different gray levels of pixel points, map the gray level values of each pixel point to the minimum imaging unit.
[0030] According to a preferred embodiment of the present invention, before controlling the rotary mirror to rotate continuously in the target direction and at the target speed, the method further includes:
[0031] Configure the target direction according to the spatial structure information in the projection lamp;
[0032] Wherein, the rotary mirror is rotated in the same direction during one projection process.
[0033] A vehicle projection device based on a projection lamp, which runs in a vehicle control system. The vehicle control system is used to control the projection lamp, and the projection lamp includes a rotary mirror and a light source component with a preset number of columns; the vehicle projection device based on the projection lamp includes:
[0034] A splitting unit, configured to obtain the target frame rate of the projected video after configuration in response to a projection instruction for the video to be projected, and split the video to be projected according to the target frame rate to obtain at least one timing picture;
[0035] An acquisition unit, configured to acquire the resolution of each timing picture, and acquire the number of each group of pixel points in the horizontal and vertical directions configured;
[0036] A determination unit, configured to determine the number of groups according to the resolution of each timing picture and the number of each group of pixel points in the horizontal and vertical directions;
[0037] The splitting unit is further configured to split each timing picture according to the number of groups to obtain a plurality of pixel point groups;
[0038] A mapping unit, configured to calculate the gray level values of the pixel points in each pixel point group, and map the gray level values of the pixel points to the minimum imaging unit of the projection lamp;
[0039] A projection unit, configured to control the rotary mirror to rotate continuously in the target direction and at the target speed, so as to project the minimum imaging unit to the target area.
[0040] A computer device, the computer device includes:
[0041] A memory that stores at least one instruction; and
[0042] A processor that executes the instructions stored in the memory to implement the vehicle projection method based on a projection lamp.
[0043] A computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the vehicle projection method based on a projection lamp.
[0044] As can be seen from the above technical solutions, on the one hand, the projection lamp of the present invention uses a light source assembly with a preset number of columns, which can effectively control the number of light sources of the projection lamp, reduce the dependence on the number of light source assemblies during the projection process, and thus reduce the unit cost of the projection lamp; on the other hand, the present invention combines a rotary mirror to continuously rotate in a target direction and at a target speed to achieve vehicle projection, so as to still achieve high-resolution vehicle projection by means of scanning projection while reducing the number of light source assemblies. Description of the Drawings
[0045] Figure 1 is a flowchart of a preferred embodiment of the vehicle projection method based on a projection lamp of the present invention.
[0046] Figure 2 is a schematic optical path diagram when the present invention uses a digital micromirror device as a light source assembly for imaging.
[0047] Figure 3 is a schematic optical path diagram when the present invention uses a micro light-emitting diode display as a light source assembly for imaging.
[0048] Figure 4 is a functional module diagram of a preferred embodiment of the vehicle projection device based on a projection lamp of the present invention.
[0049] Figure 5 is a schematic structural diagram of a computer device of a preferred embodiment for implementing the vehicle projection method based on a projection lamp of the present invention. Detailed Description of the Invention
[0050] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0051] As Figure 1 shown, it is a flowchart of a preferred embodiment of the vehicle projection method based on a projection lamp of the present invention. According to different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.
[0052] The vehicle projection method based on projection lamps is applied to one or more computer devices, which are devices capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, microprocessors, application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.
[0053] The computer device can be any electronic product that can interact with users. For example, personal computers, tablets, smartphones, personal digital assistants (PDAs), game consoles, Internet Protocol Television (IPTV), smart wearable devices, etc.
[0054] The computer device may also include network devices and / or user devices. Among them, the network devices include, but are not limited to, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing.
[0055] The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), as well as big data and artificial intelligence platforms.
[0056] Among them, artificial intelligence (AI) is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results.
[0057] Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation / interaction systems, and mechatronics. Artificial intelligence software technologies mainly include several major directions such as computer vision technology, robotics, biometric technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0058] The network where the computer device is located includes, but is not limited to, the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.
[0059] In this embodiment, the vehicle projection method based on a projection lamp is applied to a vehicle control system, which is used to control the projection lamp. The projection lamp includes a rotary mirror and a light source assembly with a preset number of columns. The vehicle projection method based on the projection lamp includes:
[0060] S10. In response to a projection instruction for a video to be projected, obtain a target frame rate of the video obtained after projection configured, and split the video to be projected according to the target frame rate to obtain at least one sequential picture.
[0061] In this embodiment, the video to be projected can be a video of types such as brand promotion, safety warning, environmental atmosphere, interactive entertainment, etc.
[0062] For example: When the vehicle stops for rest, the vehicle owner can project video content on the wall or curtain outside the vehicle through the vehicle projection lamp to achieve the effect of watching movies outdoors. For example, some RV enthusiasts will project movies, music videos and other content during camping by using the vehicle projection lamp, thus enriching outdoor life.
[0063] In this embodiment, the projection instruction can be triggered by detecting whether a specified button on the vehicle display is selected, or can be triggered by an application program for controlling the vehicle. Of course, it can also be triggered by a voice instruction. The present invention does not limit the triggering method of the projection instruction.
[0064] In this embodiment, due to the visual persistence effect of the human eye, when the scanning frequency is not less than 25Hz, the projected video can be a complete continuous pattern or video. Therefore, the target frame rate can be configured to be greater than or equal to 25Hz.
[0065] In this embodiment, the splitting of the video to be projected according to the target frame rate to obtain at least one sequential picture includes:
[0066] Decompose the video to be projected into sequential pictures with the target frame rate.
[0067] For example: When the target frame rate is 25Hz, decompose the video to be projected into sequential pictures with 25 frames per second.
[0068] S11. Obtain the resolution of each sequential picture, and obtain the number of each group of pixel points in the horizontal and vertical directions configured.
[0069] In this embodiment, the number of pixel points in each group in the horizontal and vertical directions can be configured according to actual projection requirements.
[0070] For example: The number of pixel points in each group in the horizontal and vertical directions can be 80*2, indicating that the number of pixel points in the horizontal direction of each group of pixel points is 80, and the number of pixel points in the vertical direction is 2.
[0071] S12. Determine the number of groups according to the resolution of each timing picture and the number of pixel points in each group in the horizontal and vertical directions.
[0072] For example: When the resolution of each timing picture is 320*80 and the number of pixel points in each group in the horizontal and vertical directions is 80*2, calculate 320 / 2, and the number of groups can be obtained as 160.
[0073] S13. Split each timing picture according to the number of groups to obtain a plurality of pixel point groups.
[0074] For example: Continuing with the example of S12, each timing picture with a resolution of 320*80 can be disassembled into 160 pixel point groups with a resolution of 80*2.
[0075] S14. Calculate the gray values of each pixel point in each pixel point group, and map the gray values of each pixel point to the minimum imaging unit of the projection lamp.
[0076] In this embodiment, any of the following methods can be used to calculate the gray values of each pixel point in each pixel point group:
[0077] (1) Weighted average method.
[0078] For a color image, each pixel is usually represented by the values of three color channels: red (R), green (G), and blue (B). In the weighted average method, different weights are assigned to each channel according to the different sensitivities of the human eye to different colors. The formula used is: Gray = 0.299R + 0.587G + 0.114B. This formula determines the weights based on the characteristics that the human eye is most sensitive to green, less sensitive to red, and least sensitive to blue. Through this formula, a color pixel can be converted into a gray value, so that the converted gray image can retain the brightness information of the original image as much as possible.
[0079] (2) Maximum value method.
[0080] This method takes the maximum value among the RGB three channels as the grayscale value of the pixel, that is, Gray = max(R, G, B). This method will make the grayscale image overall brighter because each pixel takes the maximum value of the three color channels, which will highlight the brighter parts in the image, but may lose some detail information. It is applicable to some scenarios with higher requirements for brightness and relatively lower requirements for details.
[0081] (3) Average value method.
[0082] The average value method adds the values of the RGB three channels and then takes the average value as the grayscale value. The formula is Gray = (R + G + B) / 3. This method is simple and direct, and can quickly calculate the grayscale value, but it does not consider the sensitivity differences of the human eye to different colors, which may lead to a certain deviation between the visual effect of the grayscale image and the actual brightness perceived by the human eye. However, it can be used in some cases with low requirements for accuracy.
[0083] (4) Method based on brightness formula.
[0084] Use a more accurate brightness calculation formula to calculate the grayscale value, such as Gray = 0.2126R + 0.7152G + 0.0722B, which is applicable to some professional image processing scenarios and can more accurately reflect the human eye's brightness perception of different colors.
[0085] (5) Method based on specific algorithms.
[0086] In some specific image processing algorithms or applications, other complex methods can be adopted to calculate the grayscale value according to specific requirements. For example: in image recognition, in order to highlight certain features or improve the accuracy of the algorithm, the information such as the texture and edges of the image can be combined to calculate the grayscale value; in medical image processing, according to the absorption characteristics of different tissues to X-rays, etc., a special algorithm can be used to calculate the grayscale value to better display details such as lesion areas in the image.
[0087] This embodiment can select the corresponding grayscale value algorithm according to the specific usage scenario.
[0088] In this embodiment, the light source assembly may include a Digital Micromirror Device (DMD) or a Micro Light Emitting Diode Display (MicroLED).
[0089] In this embodiment, the method further includes:
[0090] (1) When the light source component is the digital micromirror device, the pre-arranged light source is irradiated onto the rotary mirror by the digital micromirror device for imaging.
[0091] For example: Please refer to Figure 2 , which is the optical path schematic diagram when the present invention uses a digital micromirror device as the light source component for imaging. In Figure 2 , the digital micromirror device combines with a common light source to form the final light source, and combines with the rotary mirror to perform imaging through rotational scanning from left to right. Figure 2 The dotted line in
[0092] (2) When the light source component is the micro-LED display, the micro-LED display is used as the light source to irradiate onto the rotary mirror for imaging.
[0093] For example: Please refer to Figure 3 , which is the optical path schematic diagram when the present invention uses a micro-LED display as the light source component for imaging. In Figure 3 , the micro-LED display itself serves as the light source, and combines with the rotary mirror to perform imaging through rotational scanning from left to right. Figure 3 The dotted line in
[0094] In the above embodiments, imaging can be performed in different ways for different types of light source components.
[0095] In this embodiment, mapping the gray value of each pixel point to the minimum imaging unit of the projection lamp includes:
[0096] When the light source component is the digital micromirror device, after continuously adjusting the angle between the normal line of the digital micromirror device itself and the light source to form different gray levels of pixel points, the gray value of each pixel point is mapped to the minimum imaging unit; or
[0097] When the light source component is the micro-LED display, after continuously adjusting the current of a single light-emitting diode in the micro-LED display to form different gray levels of pixel points, the gray value of each pixel point is mapped to the minimum imaging unit.
[0098] In the above embodiments, by adjusting the gray level, different pixel points can be displayed with different brightnesses, that is, the brightness of the original image to be projected is restored, so that the projected image can form a specific contour.
[0099] S15, control the rotary mirror to rotate continuously in the target direction and at the target speed, so as to project the minimum imaging unit onto the target area.
[0100] For example, it is possible to control the rotary mirror to continuously rotate in the left-to-right direction at a rotation speed of r, so as to project the minimum imaging unit onto the target area (such as a wall or the ground), and finally form a complete image.
[0101] In this embodiment, before controlling the rotary mirror to continuously rotate in the target direction and at the target rotation speed, the method further includes:
[0102] Configuring the target direction according to the spatial structure information inside the projection lamp;
[0103] Wherein, the rotary mirror is rotated in the same direction during one projection process.
[0104] That is to say, for different projection lamps, due to the different components used, the internal spatial information may also be different. Therefore, in this embodiment, the rotation direction of the rotary mirror is configured according to the specific spatial structure information inside the projection lamp to avoid obstruction during the rotation process. For example: the rotary mirror can be rotated from left to right for scanning projection, or it can also be rotated from top to bottom or from right to left, as long as it can rotate normally.
[0105] In this embodiment, the method further includes:
[0106] Adjusting the target rotation speed according to the preset number of columns;
[0107] Controlling the frame rate of the video obtained after the projection lamp projects to be equal to the target frame rate according to the target rotation speed.
[0108] Wherein, controlling the frame rate of the video obtained after the projection lamp projects to be equal to the target frame rate includes:
[0109] Obtaining the image width of the video obtained after the projection lamp projects;
[0110] Determining the number of sides of the rotary mirror according to the image width;
[0111] Calculating the quotient of the target rotation speed and the number of sides to obtain a target value;
[0112] Controlling the target value to be equal to the target frame rate;
[0113] Wherein, the target rotation speed is the number of turns of the rotary mirror rotating per unit time.
[0114] For example, the preset number of columns is generally configured as a relatively low value to significantly reduce the number of digital micromirror devices or the number of micro-LED displays, thereby reducing costs. For example, the preset number of columns can be configured as 1 column or two columns. When the preset number of columns decreases, the target rotation speed is correspondingly increased; when the preset number of columns increases, the target rotation speed is correspondingly decreased, so as to ensure that the frame rate of the video obtained after projection is equal to the configured target frame rate, that is, greater than or equal to 25 Hz.
[0115] It can be seen that in this embodiment, even if the number of digital micromirror devices or micro-LED displays is reduced, combined with the rotational scanning imaging of the rotary mirror, the frame rate of the finally projected video still meets the requirements, and a complete and continuous pattern or video is presented, enabling the realization of the same high-resolution projection pattern at low cost and improving the competitiveness of vehicle installation.
[0116] From the above technical solutions, on the one hand, the projection lamp of the present invention adopts a light source assembly with a preset number of columns, which can effectively control the number of light sources of the projection lamp, reduce the dependence on the number of light source assemblies during the projection process, and thus reduce the unit cost of the projection lamp; on the other hand, the present invention combines a rotary mirror to continuously rotate in the target direction and at the target rotation speed to achieve vehicle projection, so as to still be able to achieve high-resolution vehicle projection by means of scanning projection while reducing the number of light source assemblies.
[0117] As Figure 4 shown, it is a functional module diagram of a preferred embodiment of the vehicle projection device based on a projection lamp of the present invention. The vehicle projection device 11 based on a projection lamp includes a splitting unit 110, an acquisition unit 111, a determination unit 112, a mapping unit 113, and a projection unit 114. The module / unit referred to in the present invention means a series of computer program segments that can be executed by a processor and can complete fixed functions, and are stored in a memory. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0118] Among them, the vehicle projection device 11 based on a projection lamp runs on a vehicle control system, and the vehicle control system is used to control the projection lamp. The projection lamp includes a rotary mirror and a light source assembly with a preset number of columns; the vehicle projection device 11 based on a projection lamp includes:
[0119] The splitting unit 110 is configured to, in response to a projection instruction for a video to be projected, acquire the target frame rate of the video obtained after projection configured, and split the video to be projected according to the target frame rate to obtain at least one timing picture;
[0120] The obtaining unit 111 is configured to obtain the resolution of each sequential image and obtain the number of each group of pixel points in the horizontal and vertical directions configured;
[0121] The determining unit 112 is configured to determine the number of groups according to the resolution of each sequential image and the number of each group of pixel points in the horizontal and vertical directions;
[0122] The splitting unit 110 is further configured to split each sequential image according to the number of groups to obtain a plurality of pixel point groups;
[0123] The mapping unit 113 is configured to calculate the gray values of the pixel points in each pixel point group and map the gray values of the pixel points to the minimum imaging unit of the projection lamp;
[0124] The projection unit 114 is configured to control the rotary mirror to rotate continuously in a target direction and at a target rotation speed, so as to project the minimum imaging unit to a target area.
[0125] It can be seen from the above technical solutions that, on the one hand, the projection lamp of the present invention adopts a light source assembly with a preset number of columns, which can effectively control the number of light sources of the projection lamp, reduce the dependence on the number of light source assemblies during the projection process, and thus reduce the unit cost of the projection lamp; on the other hand, the present invention combines the continuous rotation of the rotary mirror in a target direction and at a target rotation speed to achieve vehicle projection, so as to still achieve high-resolution vehicle projection in a scanning projection manner while reducing the number of light source assemblies.
[0126] As Figure 5 shown, it is a schematic structural diagram of a computer device according to a preferred embodiment of the method for vehicle projection based on a projection lamp of the present invention.
[0127] The computer device 1 may include a memory 12, a processor 13 and a bus (the arrow in the figure is the bus), and may further include a computer program stored in the memory 12 and executable on the processor 13, such as a vehicle projection program based on a projection lamp.
[0128] Those skilled in the art can understand that the schematic diagram is only an example of the computer device 1, and does not constitute a limitation on the computer device 1. The computer device 1 may be a bus structure or a star structure, and the computer device 1 may further include more or fewer other hardware or software than shown in the figure, or different component arrangements. For example, the computer device 1 may further include input / output devices, network access devices, etc.
[0129] It should be noted that the computer device 1 is only an example. Other existing or future possible electronic products that can be adapted to the present invention should also be included within the protection scope of the present invention and are hereby incorporated by reference.
[0130] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, magnetic disk, optical disc, etc. In some embodiments, the memory 12 can be an internal storage unit of the computer device 1, such as the mobile hard disk of the computer device 1. In other embodiments, the memory 12 can also be an external storage device of the computer device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the computer device 1. Further, the memory 12 can also include both the internal storage unit and the external storage device of the computer device 1. The memory 12 can be used not only to store the application software installed on the computer device 1 and various types of data, such as the code of the vehicle projection program based on the projection lamp, etc., but also to temporarily store the data that has been output or will be output.
[0131] In some embodiments, the processor 13 can be composed of integrated circuits. For example, it can be composed of a single packaged integrated circuit, or can be composed of multiple integrated circuits with the same or different functions packaged, including the combination of one or more Central Processing Units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips, etc. The processor 13 is the control core (Control Unit) of the computer device 1, connecting all components of the entire computer device 1 through various interfaces and lines. By running or executing the programs or modules stored in the memory 12 (such as executing the vehicle projection program based on the projection lamp), and calling the data stored in the memory 12, it executes various functions of the computer device 1 and processes data.
[0132] The processor 13 executes the operating system of the computer device 1 and various installed application programs. The processor 13 executes the application programs to implement the steps in the above-mentioned various embodiments of the vehicle projection method based on the projection lamp, such as Figure 1 the steps shown.
[0133] Exemplarily, the computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the computer device 1. For example, the computer program may be divided into a splitting unit 110, an obtaining unit 111, a determining unit 112, a mapping unit 113, and a projecting unit 114.
[0134] The integrated units implemented in the form of software function modules as described above may be stored in a computer-readable storage medium. The above-mentioned software function modules stored in a storage medium include several instructions for causing a computer device (which may be a personal computer, a computer device, or a network device, etc.) or a processor to execute a part of the vehicle projection method based on a projection lamp according to each embodiment of the present invention.
[0135] If the modules / units integrated in the computer device 1 are implemented in the form of software function units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of the present invention, it may also be completed by a computer program instructing relevant hardware devices. The computer program may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of each of the above-mentioned method embodiments may be implemented.
[0136] Among them, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disc, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory, etc.
[0137] Further, the computer-readable storage medium mainly includes a program storage area and a data storage area. Among them, the program storage area may store an operating system, application programs required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0138] The blockchain referred to in the present invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. Blockchain, in essence, is a decentralized database, a series of data blocks generated by using cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity of the information (anti-counterfeiting) and generate the next block. The blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer, etc.
[0139] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, in Figure 5 it is only represented by a single straight line, but it does not mean that there is only one bus or one type of bus. The bus is arranged to realize the connection and communication between the memory 12 and at least one processor 13, etc.
[0140] Although not shown, the computer device 1 may further include a power supply (such as a battery) for powering each component. Preferably, the power supply can be logically connected to the at least one processor 13 through a power management device, so as to realize functions such as charging management, discharging management, and power consumption management through the power management device. The power supply may further include any components such as one or more DC or AC power supplies, a recharge device, a power failure detection circuit, a power converter or inverter, and a power status indicator. The computer device 1 may further include a variety of sensors, a Bluetooth module, a Wi-Fi module, etc., which will not be elaborated here.
[0141] Furthermore, the computer device 1 may further include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the computer device 1 and other computer devices.
[0142] Optionally, the computer device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch liquid crystal display, and an OLED (Organic Light-Emitting Diode) toucher, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display the information processed in the computer device 1 and to display a visual user interface.
[0143] It should be understood that the above embodiments are only for illustration purposes and are not limited by this structure in the scope of the patent application.
[0144] Those skilled in the art can understand that Figure 5 the structure shown does not constitute a limitation on the computer device 1, and it may include fewer or more components than shown in the figure, or combine some components, or have different component arrangements.
[0145] Combined with Figure 1 , the memory 12 in the computer device 1 stores multiple instructions to implement a vehicle projection method based on a projection lamp, and the processor 13 can execute the multiple instructions to implement:
[0146] In response to a projection instruction for a video to be projected, obtain the target frame rate of the video obtained after projection configured, and split the video to be projected according to the target frame rate to obtain at least one sequential picture;
[0147] Obtain the resolution of each sequential picture, and obtain the number of each group of pixel points in the horizontal and vertical directions configured;
[0148] Determine the number of groups according to the resolution of each sequential picture and the number of each group of pixel points in the horizontal and vertical directions;
[0149] Split each sequential picture according to the number of groups to obtain multiple groups of pixel points;
[0150] Calculate the gray value of each pixel point in each group of pixel points, and map the gray value of each pixel point to the minimum imaging unit of the projection lamp;
[0151] Control the rotary mirror to rotate continuously in the target direction and at the target rotation speed to project the minimum imaging unit to the target area.
[0152] Specifically, for the specific implementation method of the above instructions by the processor 13, reference can be made to Figure 1Descriptions of relevant steps in corresponding embodiments are not elaborated herein.
[0153] It should be noted that all data involved in this case are legally obtained. The non-company software tools or components appearing in the embodiments of this application are only introduced by way of example and do not represent actual use.
[0154] In several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there can be other division methods in actual implementation.
[0155] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0156] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] In addition, in each embodiment of the present invention, the functional modules can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a hardware plus software functional module.
[0158] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and without departing from the spirit or basic characteristics of the present invention, the present invention can be implemented in other specific forms.
[0159] Therefore, in any aspect, the embodiments should be regarded as exemplary and non-limiting. The scope of the present invention is defined by the appended claims rather than the above description. Thus, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be embraced by the present invention. Any reference signs in the claims should not be construed as limiting the claims concerned.
[0160] In addition, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of elements or devices described in the present invention can also be implemented by one element or device through software or hardware. The terms "first", "second", etc. are used to denote names and do not denote any particular order.
[0161] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A vehicle projection method based on a projection lamp, characterized in that: Applied to a vehicle control system, the vehicle control system is used to control a projection lamp, the projection lamp includes a rotating reflector and a light source assembly with a preset number of columns; the vehicle projection method based on the projection lamp includes: In response to a projection instruction for a video to be projected, obtaining a configured target frame rate of a video obtained after projection, and splitting the video to be projected according to the target frame rate to obtain at least one time-series picture; Get the resolution of each time-series image, and the number of pixels in each group in the horizontal and vertical directions; The number of groups is determined according to the resolution of each time-series image and the number of pixels in each group in the horizontal and vertical directions; Splitting each time-series image according to the number of groups to obtain multiple pixel groups; Calculating the grayscale value of each pixel in each pixel group, and mapping the grayscale value of each pixel to the minimum imaging unit of the projection lamp; The rotating reflector is controlled to rotate continuously according to a target direction and a target rotation speed so as to project the minimum imaging unit onto a target area.
2. The vehicle projection method based on a projection lamp as claimed in claim 1, characterized in that: The target frame rate is greater than or equal to 25 Hz; The light source assembly includes a digital micromirror device or a micro light emitting diode display.
3. The vehicle projection method based on a projection lamp as claimed in claim 2, characterized in that: The method further comprises: When the light source assembly is the digital micromirror device, the pre-arranged light source is irradiated onto the rotating reflector according to the digital micromirror device to perform imaging; or When the light source assembly is the micro light emitting diode display, the micro light emitting diode display is used as a light source to illuminate the rotating reflector for imaging.
4. The vehicle projection method based on a projection lamp as claimed in claim 1, characterized in that: The method further comprises: adjusting the target rotation speed according to the preset number of columns; The frame rate of the video obtained after the projection lamp is controlled according to the target rotation speed is equal to the target frame rate.
5. The vehicle projection method based on a projection lamp as claimed in claim 4, characterized in that: The step of controlling the frame rate of the video obtained after the projection lamp is projected according to the target rotation speed to be equal to the target frame rate comprises: Obtaining the image width of the video obtained after projection by the projection lamp; Determining the number of sides of the rotating reflector according to the image width; Calculating the quotient of the target rotation speed and the number of edges to obtain a target value; Controlling the target value to be equal to the target frame rate; The target rotation speed is the number of revolutions of the rotating reflector per unit time.
6. The vehicle projection method based on a projection lamp as claimed in claim 3, characterized in that: The method of mapping the grayscale value of each pixel to the minimum imaging unit of the projection lamp includes: When the light source assembly is the digital micromirror device, after continuously adjusting the angle between the normal of the digital micromirror device and the light source to form different grayscales of pixels, the grayscale value of each pixel is mapped to the minimum imaging unit; or When the light source assembly is the micro-LED display, after continuously adjusting the current of a single LED in the micro-LED display to form different grayscales of pixels, the grayscale value of each pixel is mapped to the minimum imaging unit.
7. The vehicle projection method based on a projection lamp as claimed in claim 1, characterized in that: Before controlling the rotatable reflector to rotate continuously in a target direction and at a target speed, the method further includes: configuring the target direction according to the spatial structure information within the projection lamp; Wherein, the rotating reflector is rotated in the same direction during one projection process.
8. A vehicle projection device based on a projection lamp, characterized in that: The vehicle projection device based on the projection lamp includes: A splitting unit, configured to respond to a projection instruction of a video to be projected, obtain a target frame rate of a configured video after projection, and split the video to be projected according to the target frame rate to obtain at least one time-series picture; An acquisition unit, used to acquire the resolution of each time-series image and the number of each group of pixels configured in the horizontal and vertical directions; A determination unit, used to determine the number of groups according to the resolution of each time-series picture and the number of pixels in each group in the horizontal and vertical directions; The splitting unit is further used to split each time-series picture according to the grouping number to obtain multiple pixel point groups; A mapping unit, used to calculate the gray value of each pixel in each pixel group, and map the gray value of each pixel to the minimum imaging unit of the projection lamp; The projection unit is used to control the rotating reflector to rotate continuously according to a target direction and a target rotation speed so as to project the minimum imaging unit onto a target area.
9. A computer device, characterized in that: The computer device comprises: a memory storing at least one instruction; and A processor executes the instructions stored in the memory to implement the vehicle projection method based on the projection lamp as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the vehicle projection method based on a projection lamp as claimed in any one of claims 1 to 7.