Light signal processing method, device and vehicle

By extracting the synchronization calibration sequence from the optical signal sequence, dynamically calculating the minimum pulse reference duration T and the width-narrow pulse duration ratio coefficient K, and using the relative width-narrow ratio standard to decode the optical signal, the problem of insufficient fault tolerance of traditional Morse optical communication in complex road scenarios is solved, and the decoding fault tolerance and robustness are improved.

CN122268487APending Publication Date: 2026-06-23GUANGZHOU AUTOMOBILE GROUP CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU AUTOMOBILE GROUP CO LTD
Filing Date
2026-03-17
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Traditional Morse optical communication methods lack fault tolerance in complex road scenarios, making it difficult to meet the requirements of high-reliability communication. In particular, the decoding accuracy drops significantly when faced with slight changes in transmission rate or environmental interference.

Method used

By extracting the synchronization calibration sequence from the optical signal sequence, the minimum pulse reference duration T and the pulse width-to-narrow duration ratio coefficient K are dynamically determined. The pulse width of the optical signal is determined by the relative width-to-narrow ratio standard, and the Morse code symbol is reconstructed, thus breaking the dependence on the absolute clock synchronization of the transmitting and receiving parties.

Benefits of technology

It significantly improves the decoding fault tolerance and robustness of contactless optical communication in dynamic road scenarios, can absorb the jitter and rate drift of light emission devices in complex environments, and solves the decoding garbled code problem caused by relative vehicle movement, ambient light disturbance or unstable frequency of human flicker.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122268487A_ABST
    Figure CN122268487A_ABST
Patent Text Reader

Abstract

The application discloses a kind of optical signal processing method, equipment and vehicle, for solving the problem of low fault tolerance in traditional Morse light communication method.Method part includes: the on-off state sequence of optical signal is acquired, and in the on-off state sequence of the optical signal, synchronization calibration sequence is identified;The duration of each on-off state in the synchronization calibration sequence is measured to dynamically determine minimum pulse reference duration T and wide and narrow pulse duration proportion coefficient K;Based on the minimum pulse reference duration T and the wide and narrow pulse duration proportion coefficient K, the on-off state sequence of the optical signal is carried out pulse width determination, and the physical state sequence of duration characteristics conforming to the duration standard determined by the T and the K is identified;Based on the combination relationship of different physical states in the physical state sequence, corresponding Morse code symbol is reconstructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of signal processing technology, and in particular to an optical signal processing method, device, and vehicle. Background Technology

[0002] With the development of technology, optical communication has become an effective means of information exchange. For example, by controlling the combination of on and off of vehicle lights (such as Morse code), vehicles can transmit specific semantic information to the outside world.

[0003] However, in existing Morse optical communication methods, the basic physical state of the signal is usually defined by a preset absolute duration (e.g., a preset fixed time threshold to distinguish between dots and dashes in Morse code).

[0004] This fixed-duration decoding method has obvious drawbacks in practical applications. The system can only recognize optical signals with extremely standard rates. Once it encounters non-standard signals with slight changes in transmission rate or environmental interference, the decoding accuracy will drop significantly. This makes the traditional Morse code optical communication method insufficient in terms of fault tolerance and difficult to meet the high reliability communication requirements in complex road scenarios. Summary of the Invention

[0005] This application discloses an optical signal processing method, apparatus, and vehicle, aiming to improve the technical problem of low fault tolerance in traditional Morse optical communication methods.

[0006] An optical signal processing method, comprising: Acquire the on / off state sequence of the optical signal, and identify the synchronization calibration sequence in the on / off state sequence of the optical signal; The duration of each on / off state in the synchronous calibration sequence is measured to dynamically determine the minimum pulse reference duration T and the wide / narrow pulse duration ratio coefficient K. Based on the minimum pulse reference duration T and the wide-narrow pulse duration ratio coefficient K, the pulse width of the on / off state sequence of the optical signal is determined, and physical state sequences whose duration characteristics conform to the duration standard determined by T and K are identified. Based on the combination relationship of different physical states in the physical state sequence, the corresponding Morse code symbol is reconstructed.

[0007] An optical signal processing method, comprising: Acquire the on / off state sequence of the target vehicle's light signal; The on / off state sequence of the optical signal is processed using the aforementioned optical signal processing method to obtain Morse code symbols, and target information is obtained by character mapping and semantic combination based on the Morse code symbols; The target information is sent to the backend linkage system to trigger a preset response process corresponding to the target information.

[0008] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, performs the steps of the method as described in any of the preceding claims.

[0009] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the preceding methods.

[0010] A vehicle that includes the computer equipment described above.

[0011] As can be seen, this scheme extracts a synchronization calibration sequence from the optical signal sequence and measures its duration to dynamically calculate the minimum pulse reference duration T and the width-to-narrow pulse duration ratio coefficient K. Then, it uses a relative width-to-narrow ratio standard to determine the width of subsequent pulses, and finally reconstructs the Morse code based on physical state combinations. This breaks the stringent dependence of traditional optical Morse code communication on absolute clock synchronization between the transmitter and receiver. By introducing a dynamic reference-based width-to-narrow relative encoding and adaptive synchronization mechanism, the duration of light illumination is cleverly transformed into a relative proportion feature similar to the width and narrow stripes of a one-dimensional barcode for decoding. This mechanism effectively absorbs the emission time jitter and rate drift of the light-emitting device in complex environments, significantly improving the decoding fault tolerance and robustness of contactless optical communication in dynamic road scenarios. Attached Figure Description

[0012] Figure 1 This is a schematic diagram of a processing procedure of an optical signal recognition and linkage system architecture provided in an embodiment of this application; Figure 2 This is a flowchart of an optical signal processing method provided in an embodiment of this application; Figure 3 This is a flowchart of an optical signal processing method provided in an embodiment of this application; Figure 4 This is a structural diagram of an optical signal processing device provided in an embodiment of this application; Figure 5 This is a structural diagram of a computer device provided in one embodiment of this application. Detailed Implementation

[0013] To make the technical problems, technical solutions, and beneficial effects solved by this application clearer, the following detailed description is provided in conjunction with embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0014] The sequence of on / off states of an optical signal: Taking a vehicle application scenario as an example, this refers to the data set of on and off states of the optical signal acquired from the target vehicle, arranged in chronological order. This is the initial input basis for the entire optical signal processing method.

[0015] Synchronization calibration sequence / synchronization header: A special sequence existing in the on / off state sequence, with a preset width-to-width ratio characteristic (i.e., synchronization header). By identifying it, the reference duration and ratio parameters required for subsequent decoding can be measured and calculated.

[0016] Minimum pulse reference duration T: The basic time unit that is dynamically determined by the duration of the pulse, and it is the minimum reference for calculating the duration of all pulses.

[0017] The pulse duration ratio coefficient K is used to define the relative multiple relationship between wide pulses (long signals) and narrow pulses (short signals).

[0018] Online correction: During the data segment determination process, the actual duration of the narrow bright or narrow extinguish pulse is extracted in real time, and the minimum pulse reference duration T is dynamically and in real time adjusted.

[0019] Pulse width determination / width classification threshold: The pulse width in the sequence is classified so that the physical state corresponding to the pulse can be accurately determined even in the presence of time jitter.

[0020] Physical state sequence: The set of identified states. Specifically, it includes four states: Narrow bright state S1 and narrow off state S3: The duration of both is equal to the minimum pulse reference duration T.

[0021] The duration of both the bright state S2 and the off state S4 is equal to the product of the scaling factor K and the reference duration T.

[0022] Morse code symbols: symbols reconstructed based on the combined relationships of the above physical states. Specific mapping relationships include: Point signal: A series of S1s followed by an S3.

[0023] The signal is a series of S2s followed by an S3.

[0024] Spacing at each level: a single S3 is the intra-character spacing, a single S4 is the inter-character spacing, and two consecutive S4s are the inter-word spacing.

[0025] Target information: The specific information finally obtained after processing and decoding the optical signal, including structured characters, numbers or preset instruction codes.

[0026] Preset response process: The corresponding action triggered by the background linkage system after receiving the target information. Examples include, but are not limited to, alarm response, route synchronization, or traffic management instruction triggering.

[0027] As explained in the background, traditional Morse code optical signal processing schemes rely on fixed-duration decoding, which has significant drawbacks in practical applications. Taking vehicle optical signals as an example, firstly, differences in manual operation habits among different drivers or variations in the control response of different vehicle hardware systems result in non-standard flashing speeds and rhythms of the actual emitted optical signals, making it difficult to strictly adhere to a fixed flashing speed. Secondly, in dynamic real-world road scenarios, clock drift exists between the transmitter and receiver, and fluctuations in camera sampling frame rates and instantaneous reflections of ambient light introduce time jitter into the signal. When the receiver continues to use a fixed absolute time to measure these on / off states with duration shifts, truncation errors or misjudgments are highly likely to occur (for example, due to the overall slowdown at the transmitter, a short on / off state may be incorrectly judged as a long on state by a fixed threshold).

[0028] The system can only recognize optical signals with extremely standard rates. Once it encounters non-standard signals with slight variations in transmission rate or environmental interference, the decoding accuracy will drop significantly. This makes the fault tolerance and versatility of the traditional Morse code optical communication method seriously insufficient, and it is especially difficult to meet the high reliability communication requirements in complex road scenarios.

[0029] To address this, this application provides an optical signal processing method that acquires a sequence of on / off states of an optical signal and identifies a synchronization calibration sequence within that sequence. The method measures the duration of each on / off state in the synchronization calibration sequence to dynamically determine the minimum pulse reference duration T and the pulse width-to-narrow duration ratio coefficient K. Based on the minimum pulse reference duration T and the pulse width-to-narrow duration ratio coefficient K, the method determines the pulse width of the optical signal's on / off state sequence, identifying physical state sequences whose duration characteristics conform to the duration standards determined by T and K. Finally, based on the combination relationships of different physical states in the physical state sequence, the method reconstructs the corresponding Morse code symbols.

[0030] As can be seen, this scheme extracts a synchronization calibration sequence from the optical signal sequence and measures its duration to dynamically calculate the minimum pulse reference duration T and the width-to-narrow pulse duration ratio coefficient K. Then, it uses a relative width-to-narrow ratio standard to determine the width of subsequent pulses, and finally reconstructs the Morse code based on physical state combinations. This breaks the stringent dependence of traditional optical Morse code communication on absolute clock synchronization between the transmitter and receiver. By introducing a dynamic reference-based width-to-narrow relative encoding and adaptive synchronization mechanism, the duration of light illumination is cleverly transformed into a relative proportion feature similar to the width-to-narrow stripes of a one-dimensional barcode for decoding. This mechanism effectively absorbs the jitter and rate drift of the light-emitting device in complex environments, completely solving the decoding garbled code problem caused by relative vehicle movement, ambient light disturbances, or unstable frequencies due to human flickering. This significantly improves the decoding fault tolerance and robustness of contactless optical communication in dynamic road scenarios.

[0031] The various solutions provided in the embodiments of this application will be described below through various examples.

[0032] Example 1 Combination Figure 1 as well as Figure 2 In one embodiment, an optical signal processing method is provided, implemented by an optical signal processing system, the method comprising the following steps: S101: Acquire the on / off state sequence of the optical signal and identify the synchronization calibration sequence in the on / off state sequence of the optical signal; S102: Measure the duration of each on / off state in the synchronous calibration sequence to dynamically determine the minimum pulse reference duration T and the wide / narrow pulse duration ratio coefficient K; S103: Based on the minimum pulse reference duration T and the pulse width-to-narrow pulse duration ratio coefficient K, the pulse width of the on / off state sequence of the optical signal is determined, and the physical state sequence whose duration characteristics conform to the duration standard determined by T and K is identified. S104: Reconstruct the corresponding Morse code symbols based on the combination relationship of different physical states in the physical state sequence.

[0033] In step S101 above, the on / off state sequence of the light signal is first acquired, and the synchronization calibration sequence is identified within this sequence. The on / off state sequence of the light signal refers to the binary representation of the light intensity of the light source changing over time, reflecting the continuous alternation of brightness and extinguishing of the target light source on the time axis. Taking vehicle application scenarios as an example, in actual intelligent transportation scenarios, this sequence is usually one-dimensional time-series data obtained by extracting brightness features and performing binarization determination for a specific vehicle light area from continuous video frames captured by roadside or vehicle front-facing cameras. The synchronization calibration sequence refers to a predefined pattern of guidance signal sent by the transmitting end before the formal transmission of Morse data segments. The physical significance of identifying this sequence lies in its role as a handshake and synchronization marker for communication, used to wake up the receiving end to detect the start of communication and providing a time calibration ruler for subsequent parsing of seemingly random communication data.

[0034] In step S102 above, the duration of each on / off state in the synchronization calibration sequence is measured to dynamically determine the minimum pulse reference duration T and the wide / narrow pulse duration ratio coefficient K. In complex environments such as real roads, the flashing speed of devices or drivers sending Morse signals often varies greatly and is inevitably accompanied by hardware clock drift. If traditional absolute duration is used for decoding, even a slight change in the transmission rate can easily lead to a complete decoding failure. This step innovatively introduces the concept of relative encoding. The minimum pulse reference duration T refers to the actual physical time width corresponding to maintaining a basic narrow unit in the current specific communication environment; the wide / narrow pulse duration ratio coefficient K refers to the relative multiple of the duration of the longer wide unit relative to the duration of the narrow unit. The system extracts the basic short on / off time as T by accurately measuring the actual duration of each high and low level in the identified synchronization calibration sequence, and dynamically estimates and calibrates the actual ratio coefficient K by calculating the time ratio of the longer pulse to the shorter pulse. This method of dynamically acquiring T and K based on real-time measurement gives the system the ability to automatically adapt to different senders or devices flashing speeds.

[0035] In step S103 above, based on the minimum pulse reference duration T and the pulse width-to-narrow duration ratio coefficient K, the pulse width of the light signal's on / off state sequence is determined, identifying physical state sequences whose duration characteristics conform to the duration standard determined by T and K. Pulse width determination refers to the process where the system no longer relies on a preset rigid absolute time scale, but instead compares and classifies the actual duration of each subsequently received on / off signal with the standard determined by the dynamically calculated reference T and relative multiple K. The system examines which relative width interval based on T and K the current pulse duration falls into, thus mapping it to discrete physical states. The physical state sequence is an ordered set composed of these abstractly classified state units. The essence of this process is to use the width-to-narrow ratio for threshold determination, which naturally tolerates a certain degree of time jitter that is unavoidable in the actual light emission process, achieving extremely strong fault tolerance at the physical signal level.

[0036] In step S104 above, the corresponding Morse code symbols are reconstructed based on the combination relationships of different physical states in the physical state sequence. Reconstructing Morse code symbols refers to the process of translating and converting the low-level abstract physical state sequence into high-level semantics. The system maintains preset symbol mapping rules to restore specific permutations and combinations of different brightness and darkness states to standard Morse elements. As an example, a specific timing combination of a short illumination state followed by a short extinguishing state is identified as a dot in Morse code; a combination of a longer illumination state followed by a short extinguishing state is identified as a dash. Through this rule mapping, the system can accurately segment and assemble continuous optical flows into complete sets of dots, dashes, and intervals, and then translate them into corresponding letters, numbers, or instruction codes by referring to the standard Morse code table.

[0037] As can be seen, in this embodiment, a synchronization calibration sequence is extracted from the optical signal sequence, and its duration is measured to dynamically calculate the minimum pulse reference duration T and the width-to-narrow pulse duration ratio coefficient K. Then, a relative width-to-narrow ratio standard is used to determine the width of subsequent pulses, and finally, the Morse code is reconstructed based on the combination of physical states. This scheme breaks the strict dependence of traditional optical Morse code communication on the absolute clock synchronization of the transmitting and receiving parties. By introducing a width-to-narrow relative encoding and adaptive synchronization mechanism based on a dynamic reference, the duration of light illumination is cleverly transformed into a relative proportion feature similar to the width-to-narrow stripes of a one-dimensional barcode for decoding. This mechanism effectively absorbs the jitter and rate drift of the light emission device in complex environments. Taking vehicle optical signal processing as an example, this method can completely solve the decoding garbled code problem caused by the relative movement of the vehicle, ambient light disturbances, or unstable frequency due to human flickering, significantly improving the decoding fault tolerance and robustness of non-contact optical communication in dynamic road scenarios.

[0038] In one embodiment, the physical state sequence includes a narrow bright state S1, a wide bright state S2, a narrow off state S3, and a wide off state S4; wherein the duration of the narrow bright state S1 and the narrow off state S3 both correspond to the minimum pulse reference duration T; and the duration of the wide bright state S2 and the wide off state S4 both correspond to the product of the wide and narrow pulse duration ratio coefficient K and the minimum pulse reference duration T.

[0039] In this embodiment, to standardize the complex and environmentally susceptible optical Morse code, the system defines four basic physical states at the underlying physical level. These physical states are discretized abstractions of the light-emitting behavior of the light-emitting device over a period of time. Specifically, the narrow bright state S1 refers to the target signal area being lit for a basic short time span; the narrow off state S3 refers to the target signal area being off for the same basic short time span. These two states represent the smallest high-to-low level transitions in the communication process. As an example, the duration of both narrow states is equal to the minimum pulse reference duration T. This reference duration T is not a hard-coded fixed absolute number of milliseconds, but rather the smallest basic time unit dynamically measured based on the current communication session.

[0040] Conversely, the wide-brightness state S2 refers to the target signal area being lit, but its duration is significantly longer than the narrow-brightness state; the wide-offness state S4 refers to the signal area being off, and its duration is relatively long. To ensure that these two wide states can be clearly distinguished from the narrow states during decoding, the durations of the wide-brightness state S2 and the wide-offness state S4 are defined as the product of the wide-narrow pulse duration ratio coefficient K and the minimum pulse reference duration T. Here, the ratio coefficient K is a parameter variable representing the amplification factor. For example, as an example, when K equals 2.0, the duration of the wide-brightness state is twice that of the narrow-brightness state. Through this product mathematical relationship, the system strictly constrains the width of all pulse signals to either T or K*T, two time scales with a clear relative proportion.

[0041] The reason for adopting this definition method based on four width and narrow states is that traditional Morse code optical communication often relies on a pre-agreed absolute duration between the sender and receiver (e.g., a fixed requirement of 500 milliseconds for illumination and 1500 milliseconds for extinguishing). This absolute time method is prone to serious misjudgments at the receiver when there is a drift in the hardware clock at the light-emitting end or when the flashing speed is not uniformly controlled manually. This scheme innovatively introduces a relative encoding mechanism based on the width-to-narrow ratio, the core idea of ​​which is similar to the width-to-narrow stripe recognition when scanning a one-dimensional barcode. In the actual processing, when the system layer receives continuous on / off pulses of varying lengths extracted from the front end, the determiner calculates the actual duration of the current pulse and compares it with a reference window determined by T or K*T, thereby forcibly transforming the continuous and fluctuating analog time variable into a discrete, standardized set of four physical states (S1, S2, S3, S4). This process provides a standardized and clean data foundation for the logical reorganization of the upper-layer Morse code.

[0042] As can be seen, in this embodiment, the physical state sequence is subdivided into narrow bright states S1 and narrow dim states S3, corresponding to the minimum pulse reference duration T, and wide bright states S2 and wide dim states S4, corresponding to the product of the scaling factor K and the reference duration T. This process specifically refines the use of relative time scaling relationships to replace the traditional absolute time scale, transforming the time-drifting optical signal into a stable discrete state variable at the underlying data abstraction stage. This physical signal hierarchical mechanism based on the width-to-narrow ratio fundamentally eliminates the stringent dependence of the communicating parties on absolute clock synchronization; the system can naturally absorb and tolerate a certain degree of time jitter and flicker frequency changes generated by the light-emitting end in complex environments, greatly improving the reliability and anti-interference capability of optical communication physical layer signal extraction in dynamic road scenarios.

[0043] In one approach, the physical state sequence includes a narrow bright state S1, a wide bright state S2, a narrow extinguished state S3, and a wide extinguished state S4; wherein the duration of the narrow bright state S1 and the narrow extinguished state S3 is equal to the minimum pulse reference duration T; and the duration of the wide bright state S2 and the wide extinguished state S4 is equal to the product of the wide and narrow pulse duration ratio coefficient K and the minimum pulse reference duration T.

[0044] This approach establishes an equal mapping relationship between physical on / off states and dynamically determined minimum pulse reference duration T and scaling factor K, constructing a standardized dynamic logical scale for blurred visual signals. This design not only completely eliminates the dependence on absolute timing, enabling the system to fully adapt to signal sources of different frequencies and motion states, but also significantly reduces the computational overhead of embedded hardware by establishing a simplified state machine model. Simultaneously, its duration constraint mechanism for both on / off states significantly enhances physical tolerance to ambient stray light and signal adhesion, providing a robust digital benchmark for achieving highly reliable, zero-latency decoding in complex traffic scenarios.

[0045] It should be noted that, in addition to the above-mentioned equal mapping method, in other embodiments, there are several other ways to limit S1-S4 based on the minimum pulse reference duration T and the ratio coefficient of wide and narrow pulse duration K.

[0046] For example, in reality, the duration of a light signal cannot be exactly equal to T due to air scattering or hardware delay. By setting a window centered at T and K×T, the recognition rate can be significantly improved: the durations of the narrow bright state S1 and the narrow off state S3 fall within a first duration interval centered at T; the durations of the wide bright state S2 and the wide off state S4 fall within a second duration interval centered at K×T. This method allows for a certain degree of signal jitter; as long as it doesn't deviate too far, it is considered a valid state.

[0047] For example, a judgment threshold V = {T + (K × T)} / 2 is constructed based on T and K; when the pulse duration is less than V, it is determined to be the narrow bright state S1 or the narrow off state S3; when the pulse duration is greater than V, it is determined to be the wide bright state S2 or the wide off state S4.

[0048] In one embodiment, step S103, namely determining the pulse width of the on / off state sequence of the optical signal based on the minimum pulse reference duration T and the pulse width-to-narrow duration ratio coefficient K, includes the following steps: S1031: Measure the actual width W of the pulse to be judged; S1032: Calculate the relative ratio R = W / T between the actual width W and the minimum pulse reference duration T; S1033: Based on the degree of closeness between the relative ratio R and the wide-narrow pulse duration ratio coefficient K, the pulse to be determined is determined to be a narrow pulse or a wide pulse.

[0049] In the above processing, the actual width W of the pulse to be judged is first measured. Here, the pulse to be judged refers to an independent process of emitting light (on) or extinguishing (off) in the optical signal time-series data stream. The actual width W refers to the actual duration of this single pulse on the physical time axis, usually measured in milliseconds (ms). In actual visual capture scenarios, this parameter is usually obtained by recording the difference in system timestamps between the first state reversal (e.g., from off to on) and the next state reversal (e.g., from on to off); or by accumulating the number of frames occupied by this stable state in the continuous video stream and combining it with the camera's sampling frame rate to calculate this true physical time parameter. In complex road environments where vehicles are moving, distances are constantly changing, or are affected by weather-scattered light, the standard time that the light source should maintain is often distorted due to hardware circuit delays or halo effects. The purpose of measuring the actual width W is to accurately capture this original time variable that carries the real physical environment disturbances and dynamic characteristics.

[0050] The system calculates the relative ratio R = W / T between the actual width W and the minimum pulse reference duration T. The relative ratio R is a dimensionless mathematical variable that intuitively represents how many times the currently captured pulse duration is greater than the base narrow cell time of the current communication session. In traditional signal determination mechanisms based on absolute time, the processing unit typically performs a rigid numerical comparison between the actual width W and a hard-coded absolute time threshold (e.g., 300 milliseconds). However, in the adaptive asynchronous communication scenario of this application, due to the drift of the hardware clocks at different vehicle light-emitting ends, or fluctuations in the manually controlled flashing rate, the absolute time coordinates often become severely misaligned and unreliable. Therefore, by dividing the actually acquired W by the reference duration T dynamically and adaptively measured by the system, the system cleverly transforms the physical time domain, which contains absolute errors, into a purely relative proportional domain. As an example, if the system currently measures the reference narrow cell duration T as 200 milliseconds, and the actual width W of the pulse to be determined is stretched to 240 milliseconds due to the light emission tail, then the calculated relative ratio R is 1.2. This ratio calculation mathematically eliminates the timescale inconsistency caused by differences in the basic flicker rate of different light-emitting devices.

[0051] Based on the closeness of the relative ratio R to the pulse duration ratio K, the pulse to be judged is determined to be either a narrow pulse or a wide pulse. The pulse duration ratio K represents the theoretical relative multiple of the standard wide unit to the basic narrow unit. Since, ideally, the relative ratio of a perfect narrow pulse should be strictly 1.0, and the relative ratio of a perfect wide pulse should be strictly K (e.g., K is 2.0 or 3.0), the system no longer needs to compare absolute time. Instead, it examines whether the actually calculated R value is closer to 1.0 or K on the number axis, thus determining its final logical classification. The specific closeness calculation or boundary division method is not limited. Preferably, the system can set a relative distance boundary line between 1.0 and K (e.g., when K=2.0, the boundary line is set to 1.5). If the relative ratio R is less than this boundary line, the pulse is determined to be a narrow pulse; if it is greater than this boundary line, it is determined to be a wide pulse. For example, the pulse with R=1.2 measured above is significantly closer to 1.0 on the number axis, and is thus robustly "attracted" and judged as a narrow pulse; if another pulse is calculated to have R=1.85, it will be directly judged as a wide pulse because it is closer to 2.0. This judgment logic based on relative distance approximation gives the system extremely strong flexibility.

[0052] As can be seen, this embodiment measures the actual width W of the pulse to be judged and calculates its relative ratio R with the dynamic reference duration T. Then, it classifies the pulse width based on the proximity of this ratio R to the proportionality coefficient K. This feature completely replaces the traditional absolute time threshold comparison scheme by utilizing relative proportional operations and distance approximation logic, constructing an elastic state absorption window based on a multiple at the underlying logic operation layer. The specific technical effect is that it greatly enhances the inherent tolerance of the judgment algorithm to random jitter in physical emission time and low-frequency drift in global transmission rate. Even in extreme conditions such as aging of the light-emitting device or unstable battery voltage causing severe random widening or shortening of the pulse, the system can still accurately and smoothly extract the true Morse width logic state from the distorted time-series stream, significantly improving the decoding robustness of dynamic non-contact optical communication and the recognition accuracy in harsh environments.

[0053] In one embodiment, step S104, namely reconstructing the corresponding Morse code symbol based on the combination relationship of different physical states in the physical state sequence, includes the following steps: S1041: Map a sequence of consecutive narrow bright states S1 followed by a narrow off state S3 into a point signal; S1042: Map a sequence of one consecutive wide bright state S2 followed by one narrow off state S3 as a swipe signal; map a single narrow off state S3, a single wide off state S4, and two consecutive wide off states S4 as intra-character spacing, inter-character spacing, and inter-word spacing, respectively. S1043: Using the dot signal, dash signal and at least one of the intervals at each level obtained by mapping, a Morse code symbol is generated by combining them.

[0054] In the above processing, after the system completes the discretization and classification of physical states, it needs to transform these purely physical level transitions of wide and narrow voltage levels into Morse code basic elements with logical semantics. First, the system performs the mapping between dot signals and dash signals. A dot signal represents a short burst of light in Morse code. The system maps it to a sequence of consecutive narrow bright states S1 followed by a narrow extinguishing state S3. This combination not only includes the brief light emission process representing the signal itself but also forcibly includes a brief extinguishing process for signal termination, thus forming a complete physical pulse closed loop. Similarly, a dash signal represents a longer burst of light. The system maps it to a sequence of consecutive wide bright states S2 followed by a narrow extinguishing state S3. In real-world optical communication scenarios, when a light-emitting device continuously transmits multiple dots or dashes, it is prone to visual haloing. By forcibly attaching a narrow extinguishing state at the end of the defined dot and dash signals, it can logically ensure that each valid light-emitting pulse is cleanly and decisively cut off, providing a clear signal boundary for the receiving end.

[0055] Next, the system performs mapping of interval signals at various levels. Interval signals are blank pauses in Morse code used to distinguish words, phrases, and instructions. The system maps a single narrow off state S3 to an intra-character interval, used to separate multiple dots or dashes within the same letter or number (e.g., a brief off state between three dots inside the letter "S"); maps a single wide off state S4 to an inter-character interval, providing a longer pause to distinguish different letters (e.g., an off state between "S" and "O"); and maps two consecutive wide off states S4 together to an inter-word interval, providing a more obvious visual pause to distinguish different groups of instructions or business statements. As an example, the specific logic for judging continuous states is not limited. Preferably, this multi-level interval mapping rule strictly transforms the physical characteristics of the pauses of the light-emitting device into semantic rests at different levels, enabling the system to accurately perceive the rhythm of signal transmission.

[0056] Using the dot signals, dash signals, and at least one of the intervals obtained from the mapping, a complete Morse code symbol is constructed. After completing the mapping and extraction of the basic elements, the system assembles these dots, dashes, and pauses in chronological order. As a specific application example, if the system parses three sequences of "S1 followed by S3", one standalone "S4" sequence, three sequences of "S2 followed by S3", one standalone "S4" sequence, and three sequences of "S1 followed by S3" from the data stream, the system will automatically assemble and recognize these scattered mapping results into a logical structure of "three dots, pause, three dashes, pause, three dots", and then, by referring to the built-in Morse dictionary, construct and output the complete string "SOS" representing an emergency distress signal.

[0057] As can be seen, in this embodiment, specific combinations of wide and narrow bright and off states in the physical state sequence are precisely mapped into dot signals, dash signals, and interval signals at different levels, and these basic mapping elements are used to assemble Morse code symbols. This mechanism establishes a logically rigorous fault-tolerant conversion protocol between the low-level physical transitions and the high-level semantic instructions. Its design of forcibly attaching a narrow off state after a dot or dash avoids excessive adhesion and confusion of continuous optical pulses during visual capture in principle, significantly enhancing the noise resistance and segmentation clarity of the link layer data parsing. This enables the system to accurately segment and restore continuous and easily distorted optical flicker into highly reliable standard Morse semantic symbols in dynamic traffic scenes with strong ambient light interference.

[0058] In one embodiment, dynamically determining the minimum pulse reference duration T further includes: During the process of determining the pulse width of the data segment of the light signal's on / off state sequence, the actual duration of the pulse identified as narrow bright state S1 or narrow off state S3 is extracted in real time. Based on the actual duration, the minimum pulse reference duration T is corrected online using a sliding window algorithm or a weighted average algorithm.

[0059] In the above processing, during the pulse width determination of the data segment of the optical signal's on / off state sequence, the actual duration of the pulses identified as narrow on state S1 or narrow off state S3 is extracted in real time. The data segment refers to the core communication segment in the optical signal sequence that actually carries the Morse code data load, following the relay guidance and synchronization signals. In long-term optical communication in real traffic scenarios, the emitting end is prone to dynamic drift in its emission frequency, such as hardware clock drift caused by fluctuations in vehicle battery voltage, or the flickering action gradually slowing down due to fatigue when manually controlling the lights. If the system relies solely on the static reference duration T measured at the beginning of communication for global determination, the determination window will become severely misaligned with the actual received pulse width over time. Therefore, the system initiates a self-monitoring mechanism when determining the continuous pulse of the data segment. Whenever the decision categorizes the current pulse into a narrow-brightness state S1 or a narrow-offness state S3 with high confidence, the system not only outputs the logical state but also captures and records the actual duration in milliseconds of the pulse in the physical world (for example, the actual duration of a narrow-brightness pulse is 210 milliseconds, not the initially calculated 200 milliseconds). Since both narrow-brightness and narrow-offness states theoretically correspond strictly to a minimum pulse reference duration T, extracting their actual duration is equivalent to continuously collecting time reference samples from the real environment during communication.

[0060] Based on the actual duration, the minimum pulse reference duration T is corrected online using a sliding window algorithm or a weighted average algorithm. After acquiring a continuous stream of actual duration samples, the system does not directly replace the current T value with the latest sample, because individual pulses may experience sudden distortion due to ambient light occlusion or camera frame drops. To balance tracking sensitivity and system stability, the system introduces a sliding window algorithm or a weighted average algorithm for smoothing. As an example, if the sliding window algorithm is used, the system maintains a fixed-length (e.g., containing the 5 most recent state samples) first-in-first-out queue in memory. Whenever a new narrow state actual duration is acquired, it is pushed into the queue and the oldest sample is pushed out. Then, the average of all samples in the current queue is calculated, and this average is reassigned to the decision maker as the new minimum pulse reference duration T. Preferably, if the weighted average algorithm is used, the system assigns a higher weight (e.g., 0.3) to the most recently acquired pulse duration and a lower weight to the historical reference duration T (e.g., 0.7), and calculates the new T value after smoothing through an iterative formula. The specific types of smoothing filtering algorithms and weight allocation ratios are not limited. The core physical meaning lies in constructing an error feedback closed loop with low-pass filtering characteristics, which filters out high-frequency noise while accurately tracking the low-frequency drift trend of the luminous clock.

[0061] As can be seen, this embodiment extracts the actual duration of narrow-state pulses in real time during data segment decoding and continuously corrects the minimum pulse reference duration T online using smoothing algorithms such as sliding windows or weighted averaging. This mechanism introduces a data-driven clock closed-loop tracking and dynamic compensation logic into the underlying decoding architecture. It not only effectively overcomes the cumulative time error caused by hardware clock drift of the light-emitting device or gradual changes in the flicker speed during long-term communication, avoiding misjudgment of the pulse width at the end of long sequences, but also effectively isolates pulse distortion interference caused by single environmental noise through smoothing algorithms, greatly improving the system's adaptive tracking capability and final decoding accuracy for ultra-long, non-uniform Morse code optical signal sequences under real-world road conditions.

[0062] In one embodiment, the synchronization calibration sequence is a synchronization header with a preset width-to-narrow ratio; step S102, namely dynamically determining the minimum pulse reference duration T and the width-to-narrow pulse duration ratio coefficient K, includes: S1021: Identify the synchronization header in the on / off state sequence of the optical signal; S1022: Measure the duration of the corresponding narrow unit in the synchronization head as the minimum pulse reference duration T; S1023: Determine the wide-narrow pulse duration ratio coefficient K based on the ratio of the duration of the wide unit to the duration of the narrow unit in the synchronization head.

[0063] In the above processing, the synchronization header in the on / off state sequence of the optical signal is first identified. As a specific implementation of the synchronization calibration sequence, the synchronization header is a predefined fixed pattern sequence sent by the transmitter at the beginning of the data frame. This sequence does not carry specific Morse code data (such as specific SOS character information), but is specifically used for the handshake and alignment of the underlying physical layers of the communicating parties. The synchronization header has a preset width-to-narrow ratio characteristic, which means that the transmitter will strictly follow a specific combination of wide and narrow units (for example, using a specific alternating pattern of "wide pulse-narrow pulse-narrow pulse-wide pulse") to send the initial optical signal. When the receiving system continuously monitors the extracted optical signal state sequence, it will search for this unique level transition pattern in real time using a pattern matching algorithm. Once the unique pattern is successfully matched in the ambient light sequence that may contain noise, it is determined that the synchronization header has been successfully identified, thereby waking up the receiver to confirm the formal start of communication and prepare to enter the parameter extraction state.

[0064] The duration of the corresponding narrow cell in the synchronization header is measured as the minimum pulse reference duration T. After successfully capturing and locating the synchronization header, since the system knows in advance the standard structural arrangement inside the synchronization header (i.e., the system knows exactly which physical pulses correspond to the basic narrow cells and which pulses correspond to the wide cells in this fixed sequence), the underlying layer directly uses a timer to extract the number of milliseconds that the level of the segment of the synchronization header that is explicitly defined as a narrow cell (e.g., a brief on or off) actually lasts in the physical world. As an example, if the receiver measures that the pulse of a specific narrow cell actually lasts for 210 milliseconds, the system directly establishes these 210 milliseconds as the minimum pulse reference duration T of the current communication session. The physical significance of this step is that the system no longer relies on any subjective experience or hard coding to guess the current flashing speed, but directly reads the most basic time scale from the reference ruler sent by the transmitter.

[0065] The system calibrates the width-to-narrow pulse duration ratio coefficient K based on the duration ratio of different states in the synchronization header. After obtaining the reference duration T representing the basic width, the system continues to measure the actual duration of the states defined as wide units in the synchronization header. In an ideal theoretical design, the width-to-narrow pulse ratio coefficient K might be preset to a perfect fixed constant (such as a strict 2.0 or 3.0 times). However, in the complex road optical communication environment, the circuit response delay of the light-emitting device, the spatial scattering of ambient light, and the halo effect often cause the wide pulses that are actually transmitted and captured to be nonlinearly stretched or compressed. Therefore, the system divides the actual measured wide unit duration (e.g., 450 milliseconds) by the previously measured narrow unit duration (e.g., 210 milliseconds) to calculate the actual duration ratio under the current physical environment (e.g., approximately 2.14 times). The system uses this actually calculated ratio to calibrate and dynamically replace the system's default theoretical width-to-narrow pulse duration ratio coefficient K. This calibration mechanism ensures that the subsequent decision boundary used to distinguish between dots and dashes is derived in real time based on the current real physical channel state.

[0066] As can be seen, in this embodiment, a fixed synchronization head with a preset width-to-narrow ratio is identified in the optical signal sequence, and the actual duration of the narrow unit is directly measured using internal prior knowledge as the reference duration T. Then, the width-to-narrow ratio coefficient K is dynamically calibrated based on the actual duration of the width-to-narrow state within the synchronization head. This mechanism cleverly utilizes a fixed pattern sequence actively broadcast by the transmitter as a calibration probe in the initial stage of communication link establishment, achieving complete self-adaptation of the underlying communication parameters. This allows the receiver to accurately determine the transmitter's current absolute emission rate and relative pulse width distortion at the moment communication begins, without any prior knowledge or external clock synchronization. This completely solves the fatal problem of the complete loss of the initial decoding time reference due to hardware differences and voltage fluctuations in different vehicles or different light-emitting devices, laying a solid and reliable dynamic parameter foundation for high-precision adaptive width determination of subsequent ultra-long Morse data segments.

[0067] Example 2 In one embodiment, such as Figure 3 As shown, an optical signal processing method is provided, including: First, the system initiates signal sampling at the receiving end.

[0068] The system continuously samples the captured optical images in the background and determines in real time whether a preamble is detected. The preamble serves as a wake-up identifier for the communication link. If it is not detected, the system will maintain the sampling and listening state and wait in a loop. Once the preamble is successfully detected, it indicates that valid communication has begun, and the system will immediately trigger the operation of capturing the synchronization header signal.

[0069] The system enters the adaptive parameter calibration phase, dynamically calculating the minimum pulse reference duration T and the pulse width-to-narrow duration ratio coefficient K. By extracting predefined physical transition characteristics from the captured synchronization header signal, the system directly measures and derives a basic short pulse time scale as the minimum pulse reference duration T, and a pulse width-to-narrow duration ratio coefficient K representing the relative multiple relationship between long and short pulses, under the current real physical channel environment. This step completely eliminates the dependence on an absolute clock, laying a dynamic reference for subsequent decoding.

[0070] The system enters a data reception loop and begins parsing the core business data segments one by one. In each loop, the system first measures the width W of the next pulse to obtain the actual duration of the light-emitting or extinguishing state in the physical world. Next, the system performs relativization processing, calculating the relative ratio R=W / T, converting the absolute physical time to a relative multiple dimension based on T.

[0071] Based on the calculated relative ratio R, the system performs the core pulse type determination. This determination includes three parallel logical branches: If the ratio characteristic R is close to 1, then the pulse is determined to be a narrow pulse; If the ratio characteristic is "R is close to K", then it is determined to be a wide pulse; If the ratio characteristic R is an intermediate value (i.e., in the fuzzy zone between the wide and narrow decision boundaries), it is marked as a fuzzy state to be corrected, in order to prevent hard decision from introducing fatal cascading errors.

[0072] After determining the width attribute, the system further combines the current physical behavior (i.e., state: bright) to perform attribute fusion. If the current state is emitting light, it is recorded as bright state; if the current state is off, it is recorded as off state.

[0073] After defining the state of a single pulse, the system pushes it into a buffer pool to assemble a state sequence. Subsequently, the system performs semantic mapping to determine if the current sequence matches the decoding table. If the current sequence matches S1-S3 (e.g., a narrow bright spot followed by a narrow extinguished spot), then it is precisely decoded as a dot. If the current sequence matches S2-S3 (e.g., a wide bright line followed by a narrow extinguished line), then it is precisely decoded as a dash; If the current sequence matches other interval patterns (such as a long, continuous wide extinction), the character / word segmentation logic is triggered, and the accumulated dot-stroke sequence is packaged and split into independent character or word entities.

[0074] After any of the above successful matching or segmentation operations are completed, the system will re-enter the data receiving loop to process subsequent pulses.

[0075] Furthermore, to address signal distortions that are highly susceptible to occur under dynamic road conditions, if the assembled state sequence is incomplete or mismatched (e.g., due to the introduction of the aforementioned ambiguous states or frame drops), the system enters an error handling branch, using FCS (Frame Check Sequence) or context for error correction. After attempting to restore or repair the error, the system returns and enters the data reception loop, ensuring the continuity and consistency of the entire communication link.

[0076] Through this processing flow, which includes preamble wake-up, dynamic reference calculation, three-state relative ratio determination, and closed-loop error correction mechanism, the system significantly improves the decoding robustness and fault tolerance of optical signals under complex spatiotemporal fluctuations.

[0077] Example 3 Combination Figure 1 As shown, this Figure 1 This demonstrates a computer vision-based optical signal recognition and linkage system architecture. The entire system comprises a signal perception layer, an intelligent processing layer, and an application response layer.

[0078] The signal sensing layer is responsible for acquiring raw data from the real physical world.

[0079] Typically, image acquisition devices (roadside / vehicle-mounted cameras) are used: The system uses cameras installed on the sides of the road or on vehicles as sensor sources. The system needs to cope with highly challenging interference factors in real-world environments, including: Multiple traffic flows: There are a large number of interfering vehicles in the footage.

[0080] Dynamic lighting: Ambient light changes over time or with the weather.

[0081] Various interfering light sources: interference from streetlights, neon lights, or other vehicle lights.

[0082] Output: The collected raw data forms a raw video stream, which is then sent to the next layer.

[0083] The intelligent processing layer, comprising the core algorithms and logic, is the brain of the system. It primarily implements the optical signal processing methods mentioned in the embodiments of this application, responsible for extracting and parsing useful information from the video stream. As one scenario, it includes the following implementation: Vehicle detection and tracking (target locking): Accurately identify and continuously track specific target vehicles in complex traffic environments.

[0084] Signal region extraction and timing reconstruction: Locate the specific region of the vehicle's luminous signal (such as headlights) and record the time sequence of its on and off.

[0085] Morse code timing decoding (dot-dash segmentation): A key step, which can be described in the embodiments of this application.

[0086] Output: The physical optical signal is converted into a digital decoding result.

[0087] The application response layer is used for business logic and service output. This layer is responsible for connecting the processed results to the actual business scenario.

[0088] Background linkage system: Receives decoded instructions and triggers corresponding social services.

[0089] Specific applications include, but are not limited to: Emergency medical platform: This may be used to receive emergency signals from ambulances and coordinate medical resources in advance.

[0090] Navigation synchronization: Feeds real-time traffic information or vehicle intentions back to surrounding navigation systems.

[0091] Traffic management platform: Connects with traffic management systems to achieve functions such as "green wave" control or violation warnings.

[0092] Combination Figure 1 In one embodiment, an optical signal processing method is provided for use in a vehicle, the method comprising the following steps: S201. Obtain the on / off state sequence of the light signal of the target vehicle; S202. The on / off state sequence of the optical signal is processed using the optical signal processing method of the aforementioned embodiment to obtain target information; S203. Send the target information to the backend linkage system to trigger the preset response process corresponding to the target information.

[0093] In the above processing, the first step is to acquire the on / off state sequence of the target vehicle's light signal. The target vehicle refers to a specific physical vehicle in a complex traffic scenario that intentionally transmits information to the outside world through the regular flashing of its headlights. The on / off state sequence of the light signal is a digital one-dimensional representation of the vehicle's headlight brightness changing over time. In actual physical deployment and operation scenarios, the system typically connects to real-time video streams acquired by roadside surveillance cameras or front-facing cameras on intelligent vehicles.

[0094] For example, to accurately extract target signals from a complex background containing multiple moving targets, oncoming headlights, streetlights, and building reflections, the system can use a deep learning-based target detection model (such as the YOLO series algorithms) to identify and define all vehicle entities in each frame of the image. Subsequently, for specific vehicles requiring continuous decoding, the system can employ a multi-target tracking algorithm (such as SORT or Deep SORT algorithms) for stable inter-frame spatial locking, ensuring that the vehicle's taillights or high-mounted brake lights, and other key signal emission areas, remain within the system's effective monitoring field of view. After locking the key areas, the system extracts the on / off states of each frame using adaptive brightness statistics and thresholding techniques, and concatenates them chronologically to generate a sequence of light signal on / off states. The physical significance of this acquisition step lies in using a cascaded computer vision processing framework to stably reduce the dimensionality of vehicle luminescence behavior in the dynamic, three-dimensional physical traffic world and extract it as a pure time-series binary signal.

[0095] Next, the optical signal processing method mentioned in Embodiment 1 is used to process the on / off state sequence of the optical signal to obtain the target information. This processing method is the dynamic time-based relative width decoding mechanism detailed in the previous embodiments. After receiving the extracted on / off state sequence, the synchronization calibration sequence is automatically identified, the minimum pulse reference duration T and the width-to-narrow pulse duration ratio coefficient K are dynamically calculated, and a width classification threshold is constructed accordingly to classify subsequent pulses. Finally, the Morse code symbol is reconstructed through a combination mapping of physical states. The target information refers to the high-level logic content restored after decoding by this complete algorithm and possibly passing frame check sequence verification. As an example, the target information could be the string "SOS" representing an emergency distress call, a short link representing a specific geographical location, or a dedicated traffic convoy instruction code composed of numbers and letters. This processing step utilizes the algorithm's strong fault tolerance, completely abandoning the inefficient mode of manual observation and realizing the automated translation of non-standardized optical signals into precise digital information.

[0096] Finally, the target information is sent to the backend linkage system to trigger a pre-defined response process corresponding to the target information. The backend linkage system refers to the data processing and business scheduling server deployed in the cloud, roadside edge computing nodes, or traffic management and control centers. After the system successfully parses the target information, it encapsulates it into a standard network data packet and sends it to the designated backend linkage system in real time through a communication interface (such as a RESTful API or middleware such as a message queue). The backend linkage system has pre-set business routing rules that can automatically match and trigger the corresponding handling process based on the specific instructions received. As an example, if the received target information is the emergency help code "SOS", the backend linkage system will automatically trigger the alarm response process, synchronously pushing the target vehicle's license plate, time, and current coordinates to the nearest traffic police command center or medical emergency platform; if the target information is navigation location data shared by the fleet, it will trigger the route synchronization process, enabling automatic navigation between following vehicles. The specific interface protocol and response process category are not limited. Preferably, this linkage mechanism can seamlessly connect to various smart city and vehicle-to-everything (V2X) management platforms.

[0097] As can be seen, in this embodiment, the target vehicle's light signal on / off state sequence is acquired, and a robust decoding using an adaptive Morse code optical signal processing method is employed to extract target information. This information is then sent to the backend linkage system to trigger a preset response process. This mechanism, for the first time at the system architecture level, constructs an end-to-end machine vision recognition closed loop from physical optical signal input and low-level algorithm decoding to top-level digital command output. Its advantages lie in the deep integration of cutting-edge visual tracking technology with highly fault-tolerant temporal domain decoding algorithms, achieving all-weather, long-distance, automated, and accurate identification of vehicle optical communication signals. This not only completely solves the pain points of low efficiency and susceptibility to oversight in traditional manual visual monitoring but also establishes a digital link from physical signals to intelligent system actions, realizing a shift from manual handling to automatic identification and triggering, greatly improving the event response speed and automated handling efficiency in intelligent transportation and public safety scenarios.

[0098] In one embodiment, the target information includes structured characters, numbers, or preset instruction codes; the preset response process includes alarm response, route synchronization, or traffic management instruction triggering.

[0099] In the above processing, to transform the underlying physical-level optical transition signals into high-level semantics with practical business value, the target information output by the system decoding is strictly limited to structured characters, numbers, or preset instruction codes. Here, target information refers to data entities that, after Morse logic reorganization, can be directly read, parsed, and executed by the computer application layer. Specifically, structured characters can be continuous English strings composed of standard ASCII codes, such as "SOS" representing emergency assistance; numbers can be sequences of latitude and longitude coordinates composed of pure numbers or unique vehicle identification codes; preset instruction codes refer to specific control messages predefined within the fleet or by traffic management departments, such as specific hexadecimal opcodes used for fleet formation control. Structured processing means that this data not only eliminates environmental noise during optical transmission but also follows a unified data encapsulation format (such as JSON messages), enabling it to be seamlessly received and consumed by heterogeneous back-end business systems.

[0100] When target information containing the aforementioned structured content is sent to the backend linkage system (such as a cloud-based vehicle networking platform, roadside edge computing node, or traffic management center console) via a communication interface, it will trigger a corresponding preset response process based on the built-in rule engine. The preset response process refers to a series of closed-loop business actions automatically executed by the backend linkage system after capturing specific semantic instructions, without manual intervention. For example, if the target information is decoded as an emergency help string, the backend linkage system will immediately trigger an alarm response process, automatically extracting the target vehicle's spatiotemporal location data in the image and simultaneously pushing it to the nearest medical emergency platform or traffic police command center, completing accident reporting with extremely low latency. If the target information is decoded as navigation digital information containing road conditions ahead or the destination, the backend linkage system will trigger a route synchronization process, sending the location information to the in-vehicle navigation terminals of following vehicles, achieving automatic destination setting and platoon route coordination at the fleet level. Furthermore, if the target information is a preset traffic management instruction code, the roadside intelligent infrastructure can trigger a traffic management instruction process upon receiving it, such as dynamically adjusting the timing phase of the traffic lights ahead or broadcasting an emergency avoidance safety warning to other intelligent vehicles in the vicinity.

[0101] As can be seen, this embodiment concretizes target information into structured characters, numbers, or preset instruction codes, and links them with preset response processes such as alarm response, route synchronization, or traffic management instruction triggering. This mechanism establishes a standardized optical communication semantic dictionary and service routing protocol at the application layer, enabling unstructured, non-contact flashing light signals extracted from the physical world to be seamlessly and directly converted into control commands in the digital world. It completely establishes a closed-loop data flow from front-end machine vision physical perception to back-end automated business processing, enabling vehicles to achieve highly efficient vehicle-to-vehicle (V2V) and vehicle-to-infrastructure (V2I) collaborative interaction based on visible light. Furthermore, it significantly shortens the detection and emergency response time for sudden traffic incidents, and significantly improves the overall linkage efficiency and automation level of the intelligent traffic management system.

[0102] To facilitate understanding, several application scenarios are given below, including: Application Scenario 1: Multi-semantic communication of vehicle driving status and intent based on optical signals.

[0103] During driving, vehicles communicate in real-time using light signals to convey richer dynamic semantics than traditional light signals (such as alerting the vehicle in front that its wheels are wobbling or a vehicle behind that is overtaking urgently). The receiving vehicle's (e.g., the vehicle in front) camera captures the on / off state sequence of the light signal from the sending vehicle (e.g., the vehicle behind). By identifying a synchronization calibration sequence within the sequence, the minimum pulse reference duration T and the pulse width / narrowness ratio coefficient K are dynamically determined to adapt to different headlight flashing frequencies. Based on the determined T and K, the pulse width of the on / off sequence is determined, the corresponding Morse code symbols are reconstructed, and finally, the target information (structured characters) representing specific semantics is decoded. This target information is sent to the vehicle's cockpit entertainment controller (back-end linkage system) to trigger a preset response process that converts it into a voice broadcast to remind the driver.

[0104] Application Scenario 2: Direct synchronization of fleet navigation information based on optical signals.

[0105] When a convoy travels together, the lead vehicle needs to safely and independently synchronize the updated navigation route (URL link) with the following vehicles. The front-facing cameras of the following vehicles continuously capture the on / off state sequence of the light signals emitted by the lead vehicle's taillights. Adaptive pulse width determination is performed using a dynamically determined base duration T and a scaling factor K to overcome time jitter even in long transmission sequences. Based on the combination of physical state sequences, Morse code symbols are reconstructed to accurately recreate the navigation link URL shared by the lead vehicle, thus obtaining the target information (structured characters / numbers). This URL link is then sent to the in-vehicle navigation system (backend linkage system), triggering a preset response process for route synchronization, automatically prompting the driver on the vehicle's screen and completing the route update.

[0106] Application Scenario 3: Automated emergency rescue based on optical signals for sudden medical emergencies.

[0107] When a driver suffers a sudden serious illness (such as a heart attack) and loses mobility while inside the vehicle, the vehicle's hazard warning lights (double flashers) are quickly triggered to emit a standardized "SOS" Morse code distress signal. A smart road monitoring camera equipped with image recognition algorithms or a rear-view dashcam captures the on / off sequence of the target vehicle's light signal. The system determines the pulse width based on adaptively determined T and K values, accurately identifying the physical state sequence of "three short, three long, three short". The extracted physical state is reconstructed into Morse code symbols, recognizing this as an emergency distress signal, thus acquiring the target information (preset command code SOS). The identified emergency target information, along with additional vehicle location data, is sent to a traffic management platform or cloud emergency medical services platform (back-end linkage system), directly triggering the preset alarm response process and linking with the medical system for rapid location and rescue.

[0108] The above scenarios are for illustrative purposes only and do not constitute a limitation.

[0109] Example 4 This application also provides an optical signal processing device 40, please refer to... Figure 4 ,include: The acquisition module 410 acquires the on / off state sequence of the optical signal and identifies the synchronization calibration sequence in the on / off state sequence of the optical signal. The determination module 420 is used to measure the duration of each on / off state in the synchronous calibration sequence in order to dynamically determine the minimum pulse reference duration T and the wide / narrow pulse duration ratio coefficient K. The determination module 430 is used to determine the pulse width of the on / off state sequence of the optical signal based on the minimum pulse reference duration T and the wide / narrow pulse duration ratio coefficient K, and to identify physical state sequences whose duration characteristics conform to the duration standard determined by T and K. The reconstruction module 440 is used to reconstruct the corresponding Morse code symbol based on the combination relationship of different physical states in the physical state sequence.

[0110] For more information about the optical signal processing device 40, please refer to the description of the aforementioned method embodiments, which will not be repeated here.

[0111] This application also provides an electronic device 50, please refer to... Figure 5 It includes a memory 510 and a processor 520, wherein the memory 510 is used to store computer programs; and the processor 520 is used to execute the programs stored in the memory 510 to implement the optical signal processing method described in any embodiment of this application.

[0112] This application also provides a vehicle that includes the computer equipment described above.

[0113] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the optical signal processing method described in any embodiment of this application.

[0114] In this application, "multiple" refers to two or more.

[0115] In this application, unless otherwise expressly defined, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0116] The terms “first,” “second,” “third,” “fourth,” etc., in this application (if present) are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0117] In this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, in this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0118] Unless otherwise specified, all steps in this application may be performed sequentially or randomly. For example, if the method includes steps A and B, it means that the method may include steps A and B performed sequentially, or it may include steps B and A performed sequentially. For example, if the method may also include step C, it means that step C may be added to the method in any order. For example, the method may include steps A, B, and C, or it may include steps A, C, and B, or it may include steps C, A, and B, etc.

[0119] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. An optical signal processing method, characterized in that, include: Acquire the on / off state sequence of the optical signal, and identify the synchronization calibration sequence in the on / off state sequence of the optical signal; The duration of each on / off state in the synchronous calibration sequence is measured to dynamically determine the minimum pulse reference duration T and the wide / narrow pulse duration ratio coefficient K. Based on the minimum pulse reference duration T and the wide-narrow pulse duration ratio coefficient K, the pulse width of the on / off state sequence of the optical signal is determined, and physical state sequences whose duration characteristics conform to the duration standard determined by T and K are identified. Based on the combination relationship of different physical states in the physical state sequence, the corresponding Morse code symbol is reconstructed.

2. The method according to claim 1, characterized in that, The physical state sequence includes narrow bright state S1, wide bright state S2, narrow off state S3, and wide off state S4. The durations of the narrow bright state S1 and the narrow dark state S3 both correspond to the minimum pulse reference duration T. The durations of the wide-brightness state S2 and the wide-offness state S4 both correspond to the product of the wide-narrow pulse duration ratio coefficient K and the minimum pulse reference duration T.

3. The method according to claim 2, characterized in that, The step of determining the pulse width of the on / off state sequence of the optical signal based on the minimum pulse reference duration T and the pulse width-to-narrow duration ratio coefficient K includes: Measure the actual width W of the pulse to be judged; Calculate the relative ratio R = W / T between the actual width W and the minimum pulse reference duration T; Based on the degree of closeness between the relative ratio R and the wide-narrow pulse duration ratio coefficient K, the pulse to be determined is identified as a narrow pulse or a wide pulse.

4. The method according to claim 2, characterized in that, The process of reconstructing the corresponding Morse code symbols based on the combination relationships of different physical states in the physical state sequence includes: The sequence of one consecutive narrow bright state S1 followed by one narrow dark state S3 is mapped to a point signal; The sequence of one consecutive bright state S2 followed by one narrow off state S3 is mapped to a swipe signal; A single narrow extinction state S3, a single wide extinction state S4, and two consecutive wide extinction states S4 are respectively mapped to intra-character spacing, inter-character spacing, and inter-word spacing. The Morse code symbol is generated by combining the dot signal obtained from the mapping, the dash signal, and at least one of the intervals at each level.

5. The method according to claim 2, characterized in that, The dynamic determination of the minimum pulse reference duration T also includes: During the process of determining the pulse width of the data segment of the light signal's on / off state sequence, the actual duration of the pulse identified as narrow bright state S1 or narrow off state S3 is extracted in real time. Based on the actual duration, the minimum pulse reference duration T is corrected online using a sliding window algorithm or a weighted average algorithm.

6. The method according to any one of claims 1-5, characterized in that, The synchronization calibration sequence is a synchronization header with a preset width-to-narrow ratio; the dynamic determination of the minimum pulse reference duration T and the width-to-narrow pulse duration ratio coefficient K includes: Identify the synchronization header in the on / off state sequence of the optical signal; The duration of the corresponding narrow unit in the synchronization head is measured as the minimum pulse reference duration T; The ratio coefficient K of the wide and narrow pulse durations is determined based on the ratio of the duration of the wide unit to the duration of the narrow unit in the synchronization header.

7. An optical signal processing method, characterized in that, include: Acquire the on / off state sequence of the target vehicle's light signal; The optical signal is processed using the optical signal processing method according to any one of claims 1 to 6 to obtain a Morse code symbol, and the target information is obtained by character mapping and semantic combination based on the Morse code symbol; The target information is sent to the backend linkage system to trigger a preset response process corresponding to the target information.

8. The method according to claim 7, characterized in that, The target information includes structured characters, numbers, or preset instruction codes; the preset response process includes alarm response, route synchronization, or traffic management instruction triggering.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of 1-8.

10. A vehicle, characterized in that, The vehicle includes the computer equipment as described in claim 9.