A lighting switching method, device, equipment and medium
By obtaining the shooting plan and generating a virtual three-dimensional scene, mapping it to the target LED screen, the problem of low efficiency in storyboard re-set during film and television shooting is solved, and the shooting efficiency and effect are improved.
Patent Information
- Application Number
- CN202410337559.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-23
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-03-23
AI Technical Summary
The efficiency of re-setting of storyboards during film and television shooting is low, resulting in high shooting costs and delays in progress.
By obtaining the shooting plan, identifying the target scene and target lights, generating a virtual three-dimensional scene, and mapping it to the target LED screen, for efficient light switching.
It improves shooting efficiency and effect, reduces the adjustment and preparation work required in the actual scene, and realizes pre-planning and accurate simulation of the target scene and light.
Smart Images

Figure CN118192145B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of lighting control technology, and in particular to a lighting switching method, device, equipment and medium. Background Art
[0002] In film and television shooting, every time you switch between shooting clips, you need to carefully arrange the scene and adjust the lighting. This manual setting and lighting method is not only time-consuming and laborious, but also greatly affects the shooting efficiency. Every transition or change of storyboard requires a lot of manual operation, which undoubtedly increases the shooting cost and may delay the shooting progress. Summary of the invention
[0003] In order to solve the problem of low efficiency in changing storyboards and re-setting the scene in film and television shooting in the prior art, the present application provides a lighting switching method, device, equipment and medium.
[0004] In the first aspect, the present application provides a lighting switching method, which adopts the following technical solution:
[0005] A lighting switching method, comprising:
[0006] Get the shooting plan;
[0007] According to the shooting plan, determining the target scene and target light corresponding to the shooting plan;
[0008] Generating a virtual three-dimensional scene corresponding to the shooting plan according to the target scene and the target light;
[0009] The virtual three-dimensional scene is mapped to a target LED screen, and the LED screen is used as a shooting background to complete the shooting.
[0010] By adopting the above technical solution, a shooting plan is obtained, and the shooting plan includes shooting content, scenes and other information related to the shooting. According to the shooting plan, the target scene and target light corresponding to the shooting plan can be determined, so that the determined target light can meet the shooting plan and the target scene. According to the target scene and the target light, the virtual three-dimensional scene corresponding to the shooting plan can be determined, and the obtained virtual three-dimensional scene is mapped on the target LED screen. The target LED screen is used as the shooting background. Since the LED screen provides a background and lighting effects that match the target scene, the shooting task can be completed more efficiently, reducing the adjustments and preparations required in the actual scene, realizing the pre-planning and accurate simulation of the target scene and lighting, and improving the efficiency and effect of shooting.
[0011] In a preferred example, the present application may be further configured as follows: according to the shooting plan, determining the target scene and target light corresponding to the shooting plan includes:
[0012] Performing text analysis on the shooting plan to obtain analysis results, wherein the analysis results include scene types, emotional atmospheres, and shooting time periods corresponding to the shooting plan;
[0013] According to the scene type, determining a target scene from a preset scene library;
[0014] According to the scene type, emotional atmosphere and shooting period, the target lighting corresponding to the shooting plan is generated.
[0015] By adopting the above technical solution and performing text analysis on the shooting plan, it is possible to quickly and accurately identify and understand the key information in the shooting plan, thereby improving the efficiency of decision-making and preparation. Combined with the preset scene library, it is possible to quickly determine the target scene, reduce the time for searching and selecting, and generate target lighting based on multi-dimensional information, which can ensure that the lighting effect matches the shooting plan and the target scene, providing a better background and atmosphere for shooting, reducing errors and omissions caused by human factors, and improving the accuracy and quality of shooting work.
[0016] In a preferred example, the present application can be further configured as follows: the target light includes light type, light hue and light intensity,
[0017] Determining the target lighting corresponding to the shooting plan according to the scene type, emotional atmosphere and shooting period includes:
[0018] Determine whether the scene type is indoors or outdoors, and obtain a determination result;
[0019] Determine the light type according to the first determination result, the shooting time period and a preset corresponding relationship, wherein the preset corresponding relationship is a corresponding relationship between the determination result, the shooting time period and the light type;
[0020] The lighting tone and lighting intensity are determined according to the emotional atmosphere and the shooting period.
[0021] By adopting the above technical solution, by judging the scene type, the system can provide basic guidance for subsequent lighting selection. By using the preset correspondence, it can quickly and accurately determine the appropriate lighting type, improve decision-making efficiency, and determine the lighting tone and intensity according to the emotional atmosphere and shooting period, ensuring that the lighting effect matches the shooting needs and emotional expression, thereby improving the quality and effect of the shooting.
[0022] In a preferred example, the present application can be further configured as follows: the emotional atmosphere includes an emotional type and an emotional level,
[0023] Determine the lighting tone and lighting intensity according to the emotional atmosphere and the shooting period, including:
[0024] Determining the lighting tone according to the emotion type;
[0025] determining an initial light intensity according to the shooting period;
[0026] An adjustment coefficient corresponding to the emotion level is determined, and the initial light intensity is adjusted according to the adjustment coefficient to obtain the light intensity.
[0027] By adopting the above technical scheme, the lighting tone is determined according to the emotion type, ensuring the matching of the lighting tone with the emotional atmosphere and enhancing the expression of emotions. The initial lighting intensity is determined according to the shooting period, ensuring the matching with the shooting period and providing a basis for subsequent adjustments. The adjustment coefficient is determined according to the emotion level, and the lighting intensity can be accurately adjusted to match the emotional atmosphere, ensuring the accuracy and effect of the lighting, and improving the quality of shooting and the audience's experience.
[0028] In a preferred example, the present application may be further configured as follows: the preset scene library includes a plurality of preset scenes and scene information corresponding to each preset scene, wherein the scene information includes a scene type and a scene description.
[0029] According to the scene type, determining a target scene from a preset scene library includes:
[0030] Determining a plurality of preset scenes matching the scene type from the preset scene library;
[0031] Determining the number of the preset scenes;
[0032] If the number of the preset scenes is one, determining the preset scenes as the target scene;
[0033] If the number of the preset scenes is not one, the shooting plan is matched with the scene description corresponding to each of the preset scenes to obtain the matching degree corresponding to each of the preset scenes, and a preset scene with the highest matching degree is determined from the preset scenes as the target scene.
[0034] By adopting the above technical solution, by screening the preset scenes that match the scene type, it is ensured that the subsequently selected scenes are consistent with the requirements in the shooting plan. According to the number of preset scenes, different strategies are selected to determine the target scene, which can more accurately determine the target scene that best matches the shooting plan, thereby improving the accuracy and effect of the selection.
[0035] In a preferred example, the present application may be further configured to: map the virtual three-dimensional scene to a target LED screen, including:
[0036] Obtaining the display ratio of the target LED screen;
[0037] Rendering the virtual three-dimensional scene into a video stream according to the display ratio and a preset output resolution;
[0038] The video stream is sent to the target LED screen.
[0039] By adopting the above technical solution, the display ratio of the target LED screen is obtained to ensure the accurate display of the virtual three-dimensional scene on the target LED screen. The video stream is rendered according to the display ratio and the preset output resolution to ensure that the format and parameters of the video stream match the target LED screen, thereby improving the accuracy and effect of the display. The video stream is sent to the target LED screen to achieve seamless connection between the virtual scene and the actual display device, providing the audience with an immersive visual experience.
[0040] In a preferred example, the present application can be further configured to: send the video stream to the target LED screen, including:
[0041] Obtaining the display resolution of the target LED screen, and comparing the preset output resolution with the display resolution;
[0042] If the preset output resolution is smaller than the display resolution, obtaining the pixel value of each point in each frame of the video stream;
[0043] According to the display resolution and the pixel value of each point in each frame image in the video stream, pixel interpolation is performed on each frame image in the video stream to obtain a video stream with a resolution matching the target LED screen.
[0044] By adopting the above technical solution, by obtaining the original pixel values and interpolating them, a higher resolution video stream can be obtained to match the resolution of the target LED screen, ensuring the best display effect of the video stream on the LED screen and avoiding problems such as blur, distortion or stretching caused by resolution mismatch.
[0045] In a second aspect, the present application provides a light switching device, which adopts the following technical solution:
[0046] A lighting switching device, comprising:
[0047] An acquisition module is used to acquire a shooting plan;
[0048] A determination module, used to determine the target scene and target light corresponding to the shooting plan according to the shooting plan;
[0049] A generating module, used for generating a virtual three-dimensional scene corresponding to the shooting plan according to the target scene and the target light;
[0050] The mapping module is used to map the virtual three-dimensional scene to a target LED screen, and the LED screen is used as a shooting background to complete the shooting.
[0051] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
[0052] one or more processors;
[0053] Memory;
[0054] At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the light switching method as described in any one of the first aspects.
[0055] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:
[0056] A computer-readable storage medium stores a computer program, which, when executed in a computer, causes the computer to execute the lighting switching method as described in any one of the first aspects.
[0057] In summary, this application includes the following beneficial technical effects:
[0058] The present application obtains a shooting plan, which includes shooting content, scenes and other information related to the shooting. According to the shooting plan, the target scene and target lighting corresponding to the shooting plan can be determined, so that the determined target lighting can conform to the shooting plan and the target scene. According to the target scene and target lighting, the virtual three-dimensional scene corresponding to the shooting plan can be determined, and the obtained virtual three-dimensional scene is mapped on the target LED screen. The target LED screen is used as the shooting background. Since the LED screen provides a background and lighting effects that match the target scene, the shooting task can be completed more efficiently, reducing the adjustments and preparations required in the actual scene, realizing the pre-planning and accurate simulation of the target scene and lighting, and improving the efficiency and effect of shooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a flowchart of a lighting switching method provided in an embodiment of the present application;
[0060] Figure 2 It is a structural schematic diagram of a light switching device provided in an embodiment of the present application;
[0061] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] The following is combined with Figure 1-Attached Figure 3 This application is described in further detail.
[0063] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed, but such modifications are protected by the patent law as long as they are within the scope of the claims of the present application.
[0064] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0065] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0066] The present application embodiment provides a light switching method, such as Figure 1 As shown, the method provided in the embodiment of the present application is executed by an electronic device, which can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiment of the present application. The method includes steps S101 to S104, wherein:
[0067] S101: Obtain a shooting plan.
[0068] In this embodiment, the shooting plan may be a script corresponding to a storyboard, and the script may include information such as time, location, characters, and events. The shooting plan may be manually uploaded to the electronic device.
[0069] S102: According to the shooting plan, determine the target scene and target light corresponding to the shooting plan.
[0070] In this embodiment, the shooting plan can be subjected to text analysis, and the scene type (such as a coffee shop, classroom, street, etc.), emotional atmosphere (happy, sad, peaceful, etc.) and shooting time period (morning, noon, evening, night, etc.) corresponding to the shooting plan can be obtained. According to the results of the text analysis, the target scene and target light corresponding to the shooting plan can be determined. The target scene is a preset scene corresponding to the scene type of the shooting plan, and the target light is the light that meets the emotional atmosphere and shooting time period of the shooting plan, including the light type, light tone and light intensity. Among them, the light type can include point light source, spotlight, directional light, ambient light, etc., and the light tone can include cool tones and warm tones. Cool tones can create a warm and comfortable atmosphere, and cool tones can create a calm and fresh feeling.
[0071] S103: Generate a virtual three-dimensional scene corresponding to the shooting plan according to the target scene and the target light.
[0072] In this embodiment, a corresponding virtual three-dimensional scene can be constructed using three-dimensional modeling software, such as Blender and Maya, according to the scene type of the target scene, and the light type, light tone, and light intensity of the target light.
[0073] S104, mapping the virtual three-dimensional scene to the target LED screen, and using the LED screen as a shooting background to complete the shooting.
[0074] Specifically, a rendering engine, such as Unity or Unreal Engine, can be used to render the virtual three-dimensional scene into a video stream and send it to a target LED screen. The target LED screen is set at the real shooting scene to display the video stream and serve as a shooting background, providing a shooting scene corresponding to the shooting plan.
[0075] The embodiment of the present application obtains a shooting plan, which includes shooting content, scenes and other information related to the shooting. According to the shooting plan, the target scene and target lighting corresponding to the shooting plan can be determined, so that the determined target lighting can conform to the shooting plan and the target scene. According to the target scene and the target lighting, the virtual three-dimensional scene corresponding to the shooting plan can be determined, and the obtained virtual three-dimensional scene is mapped on the target LED screen. The target LED screen serves as the shooting background. Since the LED screen provides a background and lighting effects that match the target scene, the shooting task can be completed more efficiently, reducing the adjustments and preparations required in the actual scene, realizing pre-planning and accurate simulation of the target scene and lighting, and improving the efficiency and effect of shooting.
[0076] In a possible implementation of the embodiment of the present application, the target light includes light type, light hue and light intensity.
[0077] Determine the target lighting for your shooting plan based on the scene type, emotional atmosphere, and shooting time, including:
[0078] Determine whether the scene type is indoors or outdoors, and obtain a determination result;
[0079] Determine the light type according to the first determination result, the shooting time period and a preset corresponding relationship, where the preset corresponding relationship is a corresponding relationship between the determination result, the shooting time period and the light type;
[0080] Determine the light tone and intensity based on the emotional atmosphere and shooting time.
[0081] In this embodiment, natural language technology can be used to perform text analysis on the shooting plan. Specifically, the text in the shooting plan can be segmented first, and each word in the shooting plan can be separated separately; then part-of-speech tagging is performed, and each word after the segmentation is tagged with part-of-speech to determine its semantic type. For example, "cafe" can be tagged as a noun, and "happy" can be tagged as an adjective; then, keywords of scene type, emotional atmosphere and shooting time period can be extracted from the text after part-of-speech tagged by keyword extraction algorithms, such as TF-IDF (term frequency-inverse document frequency) or TextRank algorithm; further, classification algorithms, such as naive Bayes classifier, support vector machine, etc., can be used to classify the obtained keywords to obtain keywords corresponding to the scene type, emotional atmosphere and shooting time period.
[0082] Furthermore, after determining the scene type, emotional atmosphere and shooting time period corresponding to the shooting plan, the lighting type can be determined according to whether the location corresponding to the scene type is indoors or outdoors, and the shooting time period, and the lighting tone and lighting intensity can be determined according to the emotional atmosphere and shooting time period.
[0083] The embodiments of the present application can quickly and accurately identify and understand key information in the shooting plan by performing text analysis on the shooting plan, thereby improving the efficiency of decision-making and preparation. In combination with the preset scene library, the target scene can be quickly determined, reducing the time for searching and selecting. The target lighting is generated according to multi-dimensional information, which can ensure that the lighting effect matches the shooting plan and the target scene, providing a better background and atmosphere for shooting, reducing errors and omissions caused by human factors, and improving the accuracy and quality of shooting work.
[0084] In a possible implementation of the embodiment of the present application, the target light includes light type, light hue and light intensity.
[0085] Determine the target lighting for your shooting plan based on the scene type, emotional atmosphere, and shooting time, including:
[0086] Determine whether the scene type is indoors or outdoors, and obtain a determination result;
[0087] Determine the light type according to the first determination result, the shooting time period and a preset corresponding relationship, where the preset corresponding relationship is a corresponding relationship between the determination result, the shooting time period and the light type;
[0088] Determine the light tone and intensity based on the emotional atmosphere and shooting time.
[0089] In this embodiment, each scene type may be marked in advance, and the marked content may include indoor or outdoor. According to the marked content of the scene type corresponding to the shooting plan, a determination result may be obtained to determine whether the scene type is indoors or outdoors.
[0090] Further, a preset correspondence can be set. Optionally, a point light source or a spotlight can be used indoors and at noon. A point light source usually simulates the light emitted by a light bulb, and its light intensity decreases from the center to the surroundings. A spotlight is a light source with a clear light beam. The indoor light is strong during the noon period. The use of a point light source or a spotlight can simulate natural light and provide sufficient lighting for the scene. A yellow light can be used indoors and in the evening. The light emitted by a yellow light is yellowish in color and has a lower color temperature, giving people a warm feeling. In the evening, a yellow light can simulate the light of dusk. Directional light can be used outdoors and at noon. Directional light is a light source with a clear irradiation direction that can simulate the effect of sunlight and provide a strong lighting and shadow effect for the scene. The specific correspondence between the determination result, the shooting period, and the light type can be set according to actual experience, and this embodiment does not make specific limitations.
[0091] By judging the scene type, the embodiment of the present application can provide basic guidance for subsequent lighting selection. By using preset correspondences, the appropriate lighting type can be determined quickly and accurately, thereby improving decision-making efficiency. The lighting tone and intensity are determined according to the emotional atmosphere and shooting period, ensuring that the lighting effect matches the shooting requirements and emotional expression, thereby improving the quality and effect of the shooting.
[0092] In a possible implementation of the embodiment of the present application, the emotional atmosphere includes an emotional type and an emotional level.
[0093] Determine the lighting tone and intensity based on the emotional atmosphere and shooting time, including:
[0094] Determine the lighting tone according to the type of emotion;
[0095] Determine the initial light intensity based on the shooting period;
[0096] An adjustment coefficient corresponding to the emotion level is determined, and the initial light intensity is adjusted according to the adjustment coefficient to obtain the light intensity.
[0097] In this embodiment, emotion types may include happiness, sadness, and tension, and the correspondence between emotion types and light tones may be set based on actual experience. Optionally, the happy emotion type may be associated with warm-toned lights (such as red and orange), the sad emotion type may be associated with cool tones (such as blue and purple), and the nervous emotion type may be associated with neutral-toned lights (such as white). The correspondence between emotion types and light tones may be flexibly adjusted based on actual experience and needs, and this embodiment does not impose any specific limitations.
[0098] Furthermore, the initial light intensity corresponding to each shooting period can be determined based on the actual ambient light intensity. The actual ambient light intensity of each shooting period within a period of time can be collected, for example, the actual ambient light intensity corresponding to the morning, noon, afternoon and evening every day within a month, to obtain multiple actual ambient light intensities corresponding to each shooting period. The average light intensity of the multiple actual ambient light intensities corresponding to each shooting period can be calculated as the initial light intensity corresponding to the shooting period.
[0099] Furthermore, a corresponding adjustment coefficient may be determined for each emotion level, the emotion level includes the intensity of the emotion, the more intense the emotion, the higher the corresponding level, optionally, the emotion level may include level one, level two and level three, the adjustment coefficient corresponding to level one may be 80%, the adjustment coefficient corresponding to level two may be 100%, and the adjustment coefficient corresponding to level three may be 120%. The product of the initial light intensity and the adjustment coefficient may be used as the light intensity.
[0100] The embodiment of the present application determines the lighting tone according to the emotion type, ensuring the matching of the lighting tone with the emotional atmosphere and enhancing the expression of emotions. The initial lighting intensity is determined according to the shooting period to ensure the matching with the shooting period, providing a basis for subsequent adjustments. The adjustment coefficient is determined according to the emotion level, and the lighting intensity can be accurately adjusted to match the emotional atmosphere, ensuring the accuracy and effect of the lighting, and improving the quality of shooting and the audience experience.
[0101] In a possible implementation manner of the embodiment of the present application, the preset scene library includes multiple preset scenes and scene information corresponding to each preset scene, and the scene information includes a scene type and a scene description.
[0102] According to the scene type, determine the target scene from the preset scene library, including:
[0103] Determine a plurality of preset scenes matching the scene type from a preset scene library;
[0104] Determine the number of several preset scenarios;
[0105] If the number of the preset scenes is one, determining the preset scenes as the target scenes;
[0106] If the number of preset scenes is not one, the shooting plan is matched with the scene description corresponding to each preset scene in the preset scenes to obtain the matching degree corresponding to each preset scene in the preset scenes, and a preset scene with the highest matching degree is determined from the preset scenes as the target scene.
[0107] In this embodiment, the preset scene library contains one or more preset scenes corresponding to each scene type, each preset scene has a corresponding scene type and scene description, and by comparing the scene type corresponding to the shooting plan with the scene type in the preset scene library, a number of preset scenes matching the scene type can be determined. When the number of the preset scenes is not one, keywords can be identified and extracted from the shooting plan by natural language processing technology (such as NLP libraries such as spaCy or NLTK), the scene description of each preset scene in the preset scenes can be read, and keywords can be identified and extracted by natural language processing technology, and the keywords of the shooting plan and the keywords corresponding to each preset scene in the preset scenes can be matched to obtain a matching degree. The matching method can use a cosine similarity or a Jaccard similarity algorithm.
[0108] The embodiment of the present application ensures that the subsequently selected scenes are consistent with the requirements in the shooting plan by screening preset scenes that match the scene type. Different strategies are selected to determine the target scene based on the number of preset scenes, which can more accurately determine the target scene that best matches the shooting plan, thereby improving the accuracy and effect of the selection.
[0109] A possible implementation of the embodiment of the present application is to map the virtual three-dimensional scene to the target LED screen, including:
[0110] Get the display ratio of the target LED screen;
[0111] Render the virtual 3D scene into a video stream according to the display ratio and preset output resolution;
[0112] Send the video stream to the target LED screen.
[0113] In this embodiment, the display ratio of the target LED screen, such as 16:9 or 4:3, can be obtained through the communication interface of the target LED screen. The display ratio determines the aspect ratio of the virtual three-dimensional scene mapped to the target LED screen. The target LED screen can be composed of multiple LED screens, and the display resolution of the target LED screen is the sum of the resolutions of the multiple LED screens. The preset output resolution is the maximum output resolution that can be achieved for rendering the virtual three-dimensional scene. Sending the rendered video stream to the target LED screen can be achieved through a video transmission protocol (such as HDMI, VGA or DVI) to ensure that the video stream is not lost during the transmission process and can be mapped on the target LED screen in real time.
[0114] The embodiment of the present application ensures the accurate display of the virtual three-dimensional scene on the target LED screen by obtaining the display ratio of the target LED screen, renders the video stream according to the display ratio and the preset output resolution, ensures that the format and parameters of the video stream match the target LED screen, improves the accuracy and effect of the display, sends the video stream to the target LED screen, realizes the seamless connection between the virtual scene and the actual display device, and provides the audience with an immersive visual experience.
[0115] A possible implementation of the embodiment of the present application is to send a video stream to a target LED screen, including:
[0116] Get the display resolution of the target LED screen, and compare the preset output resolution with the display resolution;
[0117] If the preset output resolution is smaller than the display resolution, the pixel value of each point in each frame of the video stream is obtained;
[0118] According to the display resolution and the pixel value of each point in each frame of the video stream, pixel interpolation is performed on each frame of the video stream to obtain a video stream with a resolution matching the target LED screen.
[0119] In this embodiment, when the preset output resolution is equal to the display resolution of the target LED screen, the resolution of the video stream may not be adjusted, and the video stream may be directly output to the target LED screen. When the preset output resolution is greater than the display resolution of the target LED screen, it indicates that the preset output resolution exceeds the maximum supported resolution of the target LED screen, and the video stream may be scaled by the video processing software to adjust the resolution of the video stream to the resolution of the target LED screen. When the preset output resolution is less than the display resolution of the target LED screen, the resolution of the video stream is adjusted to be equal to the resolution of the target LED screen by pixel difference, and the optional pixel difference algorithms include bilinear interpolation, bicubic interpolation, nearest neighbor interpolation, etc.
[0120] The embodiment of the present application obtains the original pixel values and interpolates them to obtain a higher resolution video stream, so that it matches the resolution of the target LED screen, ensuring the best display effect of the video stream on the LED screen and avoiding problems such as blurring, distortion or stretching caused by resolution mismatch.
[0121] The above embodiment introduces a light switching method from the perspective of a method flow, and the following embodiment introduces a light switching device from the perspective of a virtual module or a virtual unit. Please refer to the following embodiment for details.
[0122] The present application embodiment provides a light switching device, such as Figure 2 As shown, the device may include:
[0123] An acquisition module 201 is used to acquire a shooting plan;
[0124] A determination module 202 is used to determine the target scene and target light corresponding to the shooting plan according to the shooting plan;
[0125] A generating module 203, for generating a virtual three-dimensional scene corresponding to the shooting plan according to the target scene and the target light;
[0126] The mapping module 204 is used to map the virtual three-dimensional scene to the target LED screen, and the LED screen is used as the shooting background to complete the shooting.
[0127] In a preferred example, the present application may be further configured as follows: when the determination module 202 determines the target scene and target light corresponding to the shooting plan according to the shooting plan, it is specifically used to:
[0128] Conduct text analysis on the shooting plan to obtain analysis results, including scene types, emotional atmosphere and shooting time periods corresponding to the shooting plan;
[0129] According to the scene type, determine the target scene from the preset scene library;
[0130] Generate target lighting for your shooting plan based on scene type, emotional atmosphere and shooting time.
[0131] In a preferred example, the present application may be further configured as follows: when the determination module 202 generates the target lighting corresponding to the shooting plan according to the scene type, emotional atmosphere and shooting period, it is specifically used to:
[0132] Determine whether the scene type is indoors or outdoors, and obtain a determination result;
[0133] Determine the light type according to the first determination result, the shooting time period and a preset corresponding relationship, where the preset corresponding relationship is a corresponding relationship between the determination result, the shooting time period and the light type;
[0134] Determine the light tone and intensity based on the emotional atmosphere and shooting time.
[0135] In a preferred example, the present application can be further configured as follows: when the determination module 202 determines the light tone and light intensity according to the emotional atmosphere and the shooting period, it is specifically used to:
[0136] Determine the lighting tone according to the type of emotion;
[0137] Determine the initial light intensity based on the shooting period;
[0138] An adjustment coefficient corresponding to the emotion level is determined, and the initial light intensity is adjusted according to the adjustment coefficient to obtain the light intensity.
[0139] In a preferred example, the present application may be further configured as follows: when the determination module 202 determines the target scene from the preset scene library according to the scene type, it is specifically used to:
[0140] Determine a plurality of preset scenes matching the scene type from a preset scene library;
[0141] Determine the number of several preset scenarios;
[0142] If the number of the preset scenes is one, determining the preset scenes as the target scenes;
[0143] If the number of preset scenes is not one, the shooting plan is matched with the scene description corresponding to each preset scene in the preset scenes to obtain the matching degree corresponding to each preset scene in the preset scenes, and a preset scene with the highest matching degree is determined from the preset scenes as the target scene.
[0144] In a preferred example, the present application can be further configured as follows: when the mapping module 204 executes mapping of the virtual three-dimensional scene to the target LED screen, it is specifically used to:
[0145] Get the display ratio of the target LED screen;
[0146] Render the virtual 3D scene into a video stream according to the display ratio and preset output resolution;
[0147] Send the video stream to the target LED screen.
[0148] In a preferred example, the present application can be further configured as follows: when the mapping module 204 sends the video stream to the target LED screen, it is specifically used to:
[0149] Get the display resolution of the target LED screen, and compare the preset output resolution with the display resolution;
[0150] If the preset output resolution is smaller than the display resolution, the pixel value of each point in each frame of the video stream is obtained;
[0151] According to the display resolution and the pixel value of each point in each frame of the video stream, pixel interpolation is performed on each frame of the video stream to obtain a video stream with a resolution matching the target LED screen.
[0152] A light switching device provided in an embodiment of the present application is applicable to the above method embodiment and will not be described in detail here.
[0153] An electronic device is provided in an embodiment of the present application, such as Figure 3 As shown, Figure 3 The electronic device 300 shown includes: a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, such as through a bus 302. Optionally, the electronic device 300 may also include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.
[0154] The processor 301 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0155] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but it does not mean that there is only one bus or only one type of bus.
[0156] The memory 303 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0157] The memory 303 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the contents shown in the above embodiment of the light switching method.
[0158] Figure 3 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0159] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding content in the aforementioned method embodiment.
[0160] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0161] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A lighting switching method, characterized in that: include: Get the shooting plan; According to the shooting plan, determining the target scene and target light corresponding to the shooting plan; Generating a virtual three-dimensional scene corresponding to the shooting plan according to the target scene and the target light; Mapping the virtual three-dimensional scene to a target LED screen, using the LED screen as a shooting background to complete shooting; According to the shooting plan, determining a target scene and a target light corresponding to the shooting plan includes: Performing text analysis on the shooting plan to obtain analysis results, wherein the analysis results include scene types, emotional atmospheres, and shooting time periods corresponding to the shooting plan; According to the scene type, determining a target scene from a preset scene library; Generate target lighting corresponding to the shooting plan according to the scene type, emotional atmosphere and shooting period; the target lighting includes lighting type, lighting tone and lighting intensity; Determining the target lighting corresponding to the shooting plan according to the scene type, emotional atmosphere and shooting period includes: Determine whether the scene type is indoors or outdoors, and obtain a determination result; Determine the light type according to the determination result, the shooting time period and a preset corresponding relationship, wherein the preset corresponding relationship is a corresponding relationship between the determination result, the shooting time period and the light type; Determining the light tone and light intensity according to the emotional atmosphere and the shooting period; the emotional atmosphere includes the emotional type and the emotional level; Determine the lighting tone and lighting intensity according to the emotional atmosphere and the shooting period, including: Determining the lighting tone according to the emotion type; determining an initial light intensity according to the shooting period; An adjustment coefficient corresponding to the emotion level is determined, and the initial light intensity is adjusted according to the adjustment coefficient to obtain the light intensity.
2. The lighting switching method according to claim 1, characterized in that: The preset scene library includes multiple preset scenes and scene information corresponding to each preset scene, wherein the scene information includes a scene type and a scene description. According to the scene type, determining a target scene from a preset scene library includes: Determining a plurality of preset scenes matching the scene type from the preset scene library; Determining the number of the plurality of preset scenarios; If the number of the preset scenes is one, determining the preset scenes as the target scene; If the number of the preset scenes is not one, the shooting plan is matched with the scene description corresponding to each of the preset scenes to obtain the matching degree corresponding to each of the preset scenes, and a preset scene with the highest matching degree is determined from the preset scenes as the target scene.
3. The lighting switching method according to claim 1, characterized in that: Mapping the virtual three-dimensional scene to a target LED screen includes: Obtaining the display ratio of the target LED screen; Rendering the virtual three-dimensional scene into a video stream according to the display ratio and a preset output resolution; The video stream is sent to the target LED screen.
4. The lighting switching method according to claim 3, characterized in that: Sending the video stream to the target LED screen includes: Obtaining the display resolution of the target LED screen, and comparing the preset output resolution with the display resolution; If the preset output resolution is smaller than the display resolution, obtaining the pixel value of each point in each frame of the video stream; According to the display resolution and the pixel value of each point in each frame image in the video stream, pixel interpolation is performed on each frame image in the video stream to obtain a video stream with a resolution matching the target LED screen.
5. A lighting switching device, characterized in that: include: An acquisition module is used to acquire a shooting plan; A determination module, used to determine the target scene and target light corresponding to the shooting plan according to the shooting plan; A generating module, used for generating a virtual three-dimensional scene corresponding to the shooting plan according to the target scene and the target light; A mapping module, used for mapping the virtual three-dimensional scene to a target LED screen, and the LED screen is used as a shooting background to complete the shooting; When the determination module determines the target scene and target light corresponding to the shooting plan according to the shooting plan, it is specifically used to: Performing text analysis on the shooting plan to obtain analysis results, wherein the analysis results include scene types, emotional atmospheres, and shooting time periods corresponding to the shooting plan; According to the scene type, determining a target scene from a preset scene library; Generating target lighting corresponding to the shooting plan according to the scene type, emotional atmosphere and shooting period; Target lighting includes lighting type, lighting tone, and lighting intensity; When the determination module determines the target light corresponding to the shooting plan according to the scene type, emotional atmosphere and shooting period, it is specifically used to: Determine whether the scene type is indoors or outdoors, and obtain a determination result; Determine the light type according to the determination result, the shooting time period and a preset corresponding relationship, wherein the preset corresponding relationship is a corresponding relationship between the determination result, the shooting time period and the light type; Determining the lighting tone and lighting intensity according to the emotional atmosphere and the shooting period; The emotional atmosphere includes emotional type and emotional level; When the determination module determines the light tone and light intensity according to the emotional atmosphere and the shooting period, it is specifically used to: Determining the lighting tone according to the emotion type; determining an initial light intensity according to the shooting period; An adjustment coefficient corresponding to the emotion level is determined, and the initial light intensity is adjusted according to the adjustment coefficient to obtain the light intensity.
6. An electronic device, characterized in that: include: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the light switching method according to any one of claims 1-4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed in a computer, the computer is caused to execute the lighting switching method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Light control method and device, camera, equipment and storage medium
CN115442941A
Parameter configuration method and apparatus, device, storage medium and product
WO2023217138A1