Image data stream calibration method, system and device
By generating drive control signals and combining differential operations with a sharpness evaluation function to calibrate the image data stream, the problem of image instability caused by shaking during laparoscopic surgery is solved, achieving efficient and accurate image acquisition and diagnostic support.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HANGZHOU SHIKONGHOU MEDICAL INSTR
- Filing Date
- 2026-03-04
- Publication Date
- 2026-07-03
AI Technical Summary
In abdominal surgery, existing medical lighting equipment is easily affected by hand tremors, resulting in unstable and blurry images of lesions, increasing the complexity of surgical procedures and making it difficult to meet the requirements for image acquisition efficiency and accuracy.
By acquiring the camera equipment model and power adjustment range, a drive control signal is generated to control the operation of the camera system. Image data streams are acquired and differential operations are performed. The system is then calibrated by combining the sharpness evaluation function and image display format to optimize image sharpness and timing matching, thus adapting to different equipment and surgical scenarios.
It improves the stability and accuracy of image acquisition, reduces repetitive image acquisition steps, ensures real-time imaging quality during surgery, and supports doctors in accurately diagnosing lesions and performing efficient surgery.
Smart Images

Figure CN122340347A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image calibration technology, and in particular to an image data stream calibration method, system and device. Background Technology
[0002] During abdominal surgery, accurate observation and image acquisition of lesions rely on stable lighting. Existing medical lighting equipment uses a continuous output design, with adjustable light intensity and a color temperature range of 3000–6500K, providing continuous illumination for the surgical field. However, because surgeons must handhold the imaging device to extract images of lesions, the device is susceptible to hand tremors, leading to jitter, instability, and blurriness in the acquired images. To obtain clear images to support subsequent diagnosis and surgical procedures, surgeons often need to repeatedly extract images, which not only increases the complexity of the surgical procedure but may also affect the continuity of the surgical process, failing to meet the efficiency and accuracy requirements of abdominal surgery for image acquisition. Summary of the Invention
[0003] In order to overcome the shortcomings of the prior art, the present invention aims to provide an image data stream calibration method, system and device.
[0004] The first aspect of this invention provides an image data stream calibration method, applied to an image data stream calibration system, the image data stream calibration system including a camera system, the image data stream calibration method comprising: acquiring a device model, and generating a drive control signal based on the device model and a preset power adjustment range; controlling the camera system to operate according to the drive control signal to obtain camera system operating information; acquiring an image data stream from the camera system operating information; performing a differential operation on the image data stream according to a preset differential time constant to obtain a signal rate of change; analyzing the camera system operating information and the signal rate of change to obtain an image display standard; and calibrating the image data stream according to a preset sharpness evaluation function and the image display standard to obtain a calibrated image data stream.
[0005] Furthermore, the image data stream calibration system also includes a timer, and the camera system includes a camera module, an enable component, and a hardware substrate, with the camera module and the enable component both integrated on the hardware substrate. The step of controlling the camera system to operate according to a drive control signal to obtain camera system operating information includes: setting the enable component to a high level according to the drive control signal and starting the timer; in the timer-started state, acquiring timing parameters and illumination control parameters, and performing matching analysis on the timing parameters and illumination control parameters to obtain a control timing reference; generating a reference power according to a preset synchronization control logic and the control timing reference; controlling the camera module to operate according to the reference power; obtaining the current timer state according to a preset delay time; and if the current timer state is the end of the timed exposure time, obtaining camera system operating information.
[0006] Furthermore, the step of performing differential operation on the image data stream according to a preset differential time constant to obtain the signal change rate includes: parsing the image data stream according to a preset signal frequency and a preset pulse width to obtain a jitter-reduced frame signal; extracting features from the jitter-reduced frame signal to obtain a frame synchronization header signal; setting the enable component to a low level according to the jitter-reduced frame signal; and performing differential operation on the frame synchronization header signal according to the differential time constant in the low-level state to obtain the signal change rate.
[0007] Furthermore, the analysis of the camera system's operating information and signal change rate to obtain the image display format includes: obtaining the lighting current rise time and the camera trigger signal rise time from the camera system's operating information; calculating the deviation between the lighting current rise time and the camera trigger signal rise time to obtain the time deviation; and analyzing the time deviation and the signal change rate to obtain the image display format.
[0008] Further, the step of calibrating the image data stream according to a preset sharpness evaluation function and image display standard to obtain a calibrated image data stream includes: performing quality analysis on the image data stream according to the sharpness evaluation function to obtain image quality parameters; comparing the image quality parameters with preset quality parameter thresholds to obtain comparison results; obtaining the illumination duration and camera exposure duration from the camera system's working information; calculating the difference between the illumination duration and camera exposure duration to obtain a duration deviation value; and calibrating the image data stream according to the comparison results, the duration deviation value, and the image display standard to obtain a calibrated image data stream.
[0009] Furthermore, the step of calibrating the image data stream based on the comparison results, duration deviation value, and image display standard to obtain a calibrated image data stream includes: analyzing the frame synchronization header signal based on the control timing reference to obtain rising edge characteristics; and calibrating the image data stream based on the comparison results, image display standard, rising edge characteristics, and duration deviation value to obtain a calibrated image data stream.
[0010] Furthermore, the image data stream calibration system also includes a cold light source bulb. Following the step of calibrating the image data stream according to a preset sharpness evaluation function and image display standard to obtain a calibrated image data stream, the system further includes: obtaining the scene illumination intensity from the camera system's operating information; determining whether the scene illumination intensity is less than a preset illumination intensity threshold; if the scene illumination intensity is less than the illumination intensity threshold, calculating the difference between the scene illumination intensity and the illumination intensity threshold to obtain an illumination intensity gap value; obtaining the illumination drive PWM duty cycle of the cold light source bulb, and generating reference drive parameters based on the illumination drive PWM duty cycle, a preset camera device sensitivity correction coefficient, and the illumination intensity gap value; obtaining the operating parameters of the cold light source bulb to obtain illumination operating parameters; and optimizing the illumination operating parameters based on the anti-shake frame signal, a preset command format, a preset baud rate, and the reference drive parameters to obtain optimized illumination operating parameters.
[0011] Furthermore, an image data stream calibration system performs an image data stream calibration method as described above. The image data stream calibration system includes a control unit, a camera system, a timer, and a cold light source bulb electrically connected to the control unit.
[0012] Furthermore, the camera system includes a camera module, an enabling component, and a hardware substrate, wherein the camera module and the enabling component are both integrated on the hardware substrate; and the camera module and the enabling component are both electrically connected to the control unit.
[0013] Furthermore, an image data stream calibration device includes: a memory and at least one processor, wherein the memory stores instructions; the at least one processor invokes the instructions in the memory to cause the image data stream calibration device to perform the various steps of the image data stream calibration method described above.
[0014] In the technical solution of this invention, a drive control signal is generated by the device model and power adjustment range, effectively solving the problem of power incompatibility between different camera devices. The synchronously acquired camera system working information provides reliable raw support for display format recognition, improving the accuracy of subsequent data processing. By using differential operations adapted to the characteristics of the data stream, the abstract signal transition characteristics are quantified into a high-confidence signal change rate. Combined with the analysis of the camera system working information, the accuracy of image display format recognition is improved, providing a clear standard basis for subsequent calibration. Finally, calibration is carried out based on the sharpness evaluation function and the image display format, which not only optimizes image sharpness and corrects quality defects without repeatedly extracting images, but also ensures that the data stream timing is accurately matched with the format specification, outputting image data with qualified quality and stable timing, adapting to precise imaging scenarios such as surgery, providing reliable technical support for doctors to accurately judge lesions and perform surgery efficiently, and meeting the stringent requirements of medical scenarios for imaging accuracy and real-time performance. Attached Figure Description
[0015] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0016] Figure 1 This is a first flowchart of an image data stream calibration method provided in an embodiment of the present invention;
[0017] Figure 2 This is a second flowchart of an image data stream calibration method provided in an embodiment of the present invention;
[0018] Figure 3 This is a third flowchart of an image data stream calibration method provided in an embodiment of the present invention;
[0019] Figure 4 This is a fourth flowchart of an image data stream calibration method provided in an embodiment of the present invention;
[0020] Figure 5 The fifth flowchart of an image data stream calibration method provided in an embodiment of the present invention;
[0021] Figure 6 The sixth flowchart of an image data stream calibration method provided in an embodiment of the present invention;
[0022] Figure 7 The seventh flowchart of an image data stream calibration method provided in an embodiment of the present invention;
[0023] Figure 8 This is a schematic diagram of the structure of an image data stream calibration system provided in an embodiment of the present invention;
[0024] Figure 9This is a schematic diagram of the structure of an image data stream calibration device provided in an embodiment of the present invention.
[0025] In the attached diagram, 1-control unit; 2-camera system; 21-camera module; 22-enabling component; 23-hardware board; 3-timer; 4-cold light source bulb. Detailed Implementation
[0026] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] For ease of understanding, the specific process of the embodiments of the present invention is described below. An image data stream calibration method is provided in this embodiment and applied to an image data stream calibration system. The image data stream calibration system includes a camera system. Please refer to [link to relevant documentation]. Figure 1 One embodiment of an image data stream calibration method according to the present invention includes:
[0028] 101. Obtain the equipment model and generate a drive control signal based on the equipment model and the preset power adjustment range;
[0029] In this embodiment, the camera device model is first obtained, a preset "device model-power characteristic" mapping table is retrieved, and a preset power adjustment range (e.g., 5W~45W) is combined to calculate the driving parameters (e.g., voltage output logic, current threshold) that are compatible with the device. The driving control signal is then generated to achieve accurate matching between the driving control signal and the device model, solve the problem of incompatibility of power characteristics of different devices, and provide a basic control basis for the stable operation of the system.
[0030] 102. Control the camera system to operate according to the drive control signal to obtain camera system operating information;
[0031] In this embodiment, the driving control signal adapted to the device model is used as a basis to ensure the stable operation of the camera system. The synchronously collected camera system working information provides reliable original support for display format recognition, etc., and also helps the system to be compatible with multiple devices, improves the stability of operation and the accuracy of subsequent processing.
[0032] 103. Image data streams are collected from the camera system's operational information;
[0033] In this embodiment, by acquiring a complete image data stream, high-quality raw data is provided to support the system's accurate processing.
[0034] 104. Perform differential operations on the image data stream according to the preset differential time constant to obtain the signal rate of change;
[0035] In this embodiment, by presetting a differential time constant adapted to the characteristics of the image data stream, precise differential operations are performed on the data stream, quantifying the abstract signal transition characteristics into analyzable signal change rate parameters. The operation process effectively filters out noise interference, ensuring that the parameters truly reflect the inherent dynamic characteristics of the image data stream. This provides core data support for the accurate identification of subsequent image display formats and provides reliable feature basis for image data stream calibration, helping to improve the accuracy and effectiveness of the overall imaging processing of the system.
[0036] 105. Analyze the working information and signal change rate of the camera system to obtain the image display standard;
[0037] In this embodiment, by analyzing the working information and signal change rate of the camera system, and fully combining the system operating status and dynamic characteristics of the image data stream, the accuracy of image display standard recognition is improved. The recognition results provide a clear and standardized basis for subsequent image data stream calibration for the corresponding standard, ensuring that the calibration logic and display standard are accurately matched. At the same time, it enhances the system's compatibility with different display standards and helps to improve the adaptability and reliability of the overall imaging processing.
[0038] 106. The image data stream is calibrated according to the preset sharpness evaluation function and image display standard to obtain the calibrated image data stream;
[0039] In this embodiment, the image data stream is calibrated based on the sharpness evaluation function and the accurately identified image display standard. This not only optimizes image sharpness and corrects quality defects, but also adapts to the standard's exclusive synchronization specifications and frame rate requirements, ensuring that the calibrated data stream has accurate timing and meets quality standards. This provides reliable image support for precision imaging scenarios such as surgery, while also enhancing the system's adaptability to different display standards and improving the accuracy and reliability of the overall imaging processing.
[0040] In this embodiment, a drive control signal is generated based on the device model and power adjustment range, effectively solving the problem of power incompatibility between different camera devices. The synchronously acquired camera system operating information provides reliable raw support for display standard recognition, improving the accuracy of subsequent data processing. By using differential operations adapted to the characteristics of the data stream, the abstract signal transition features are quantified into a high-confidence signal change rate. Combined with the analysis of the camera system operating information, the accuracy of image display standard recognition is improved, providing a clear standard basis for subsequent calibration. Finally, calibration is carried out based on the sharpness evaluation function and the image display standard, which not only optimizes image sharpness and corrects quality defects without repeatedly extracting images, but also ensures that the data stream timing is accurately matched with the standard specifications, outputting image data with qualified quality and stable timing, adapting to precise imaging scenarios such as surgery, providing reliable technical support for doctors to accurately judge lesions and perform surgery efficiently, and meeting the stringent requirements of medical scenarios for imaging accuracy and real-time performance.
[0041] The image data stream calibration system also includes a timer, and the camera system includes a camera module, an enabling component, and a hardware substrate, with both the camera module and the enabling component integrated on the hardware substrate; please refer to [link to relevant documentation]. Figure 2 In a second embodiment of an image data stream calibration method according to the present invention, step 102 specifically includes:
[0042] 201. Set the enable component to high level according to the drive control signal and start the timer;
[0043] In this embodiment, the drive control signal is the trigger command for system operation. Upon receiving the signal, the enable component switches from low level to high level (activating the working permissions of subsequent timing analysis, power calculation, and other modules), and at the same time starts the timer (the timer reference is bound to the time window of camera exposure and lighting operation). The enable component switching response time is ≤10μs, ensuring the timeliness of process start-up and the accuracy of the time reference. The subsequent process is unlocked by switching the state of the enable component. The timer is used as the time anchor point to avoid the working sequence of each module being chaotic, laying the foundation for camera and lighting.
[0044] 202. In the timer start state, acquire timing parameters and lighting control parameters, and perform matching analysis on the timing parameters and lighting control parameters to obtain the control timing reference;
[0045] In this embodiment, after the timer is started, two types of parameters are collected in real time: ① timing parameters (exposure start and end times of the camera module, frame synchronization interval, and other camera timing); ② lighting control parameters (lighting equipment lighting time, extinguishing time, power output timing, and other lighting timing); and a control timing reference is generated through matching analysis (such as aligning the lighting lighting time with the camera exposure start time and covering the lighting working duration with the camera exposure duration).
[0046] 203. Generate reference power based on preset synchronization control logic and control timing reference;
[0047] In this embodiment, the synchronization control logic is a "timing-power" association rule (e.g., "within the camera exposure timing interval, the lighting power must be maintained at the reference value corresponding to the target illumination"). Combined with the control timing reference, a reference power is generated: on the one hand, it must meet the target scene illumination intensity (e.g., 500 lux), and on the other hand, it must be within the power adjustment range (5W~45W). At the same time, it matches the power output characteristics corresponding to the lighting equipment model (different lighting models have different "power-illuminance" conversion coefficients), adapts to the camera module parameters, and fits the camera timing.
[0048] 204. Control the camera module's operation based on the reference power;
[0049] 205. Obtain the current timer status based on the preset delay time;
[0050] 206. If the current timer status is the timed exposure time has ended, then obtain the camera system's working information;
[0051] In this embodiment, the reference power provides a suitable imaging environment for the camera module, and the system starts the camera module to work based on this state; the preset delay time is bound to the timed exposure time, and the timer status is detected after the delay ends. If it is "timed exposure time ended", the camera system working information is collected to provide data support for subsequent optimization.
[0052] In this embodiment, a timer is used for rapid startup to avoid module timing chaos, laying a precise timing foundation for camera-lighting. By collecting timing parameters and lighting parameters and matching them to generate a control timing reference, the timing of lighting activation and camera exposure is aligned, and the working duration covers the exposure period. The reference power generation takes into account 500 lux target illumination, a safe range of 5~45W, and the characteristics of different equipment models, meeting both the scene's lighting requirements and adapting to the output capabilities of the camera module. After exposure, system working information is collected. The solution is adaptable to different lighting models and camera modules, suitable for precise lighting scenarios such as surgery, effectively improving image clarity and stability, indirectly reducing operational risks, and contributing to improved work efficiency and safety.
[0053] Please see Figure 3 In a third embodiment of an image data stream calibration method according to the present invention, step 104 specifically includes:
[0054] 301. The image data stream is parsed according to the preset signal frequency and preset pulse width to obtain the anti-shake frame signal;
[0055] 302. In this embodiment, a preset signal frequency (adapted to commonly used medical imaging standards, such as PAL system: field frequency: 50Hz (used for analysis when each frame of image consists of two interleaved fields); frame frequency: 50Hz (used for analysis when 50 frames of complete images are displayed per second, so this frame rate is used to analyze the image data stream in step 301)) and pulse width (including line blanking pulse width: 12μs ± 0.3μs (scanning retrace time per line); line synchronization pulse width: 4.7μs ± 0.2μs (duration of line synchronization signal); field synchronization pulse width: approximately 160μs (synchronization interval between two fields, related to frame frequency)) are used as the analysis basis. Through digital filtering (removing high-frequency electromagnetic interference and pixel noise) and threshold judgment (setting signal level threshold to distinguish effective signals from noise), the anti-shake frame signal is accurately separated from the mixed image data stream. During the analysis process, the allowable range of signal frequency deviation is ≤ ±1Hz to ensure that no signal is missed or misjudged. The anti-shake frame signal provides accurate triggering for component state control.
[0056] 302. Extract features from the anti-jitter frame signal to obtain the frame synchronization header signal;
[0057] In this embodiment, (the inherent duration of the frame synchronization header signal, such as 1 / 20*20ms (1ms), is the time when the anti-shake frame signal controls the cold light source bulb to light up. Therefore, the power consumed by the anti-shake frame controlling the cold light source bulb is 1 / 20 of the power when the bulb is fully lit. The other tens of milliseconds are the image processing time (the cold light source bulb is not lit during image processing). Among them, 19 / 20*20ms is the time for the camera system to process the image and restore it on the display, while better eliminating the blurry image caused by shaking when the operator takes the picture). The frame synchronization header signal provides the target object for subsequent differential operations.
[0058] 303. Set the enable component to low level according to the anti-jitter frame signal;
[0059] In this embodiment, the anti-jitter frame signal has a fixed period (matching the frame rate of the image display standard, such as 50 frames / second refresh rate under PAL standard, and the time required to acquire each frame image is 20ms). After the system detects the anti-jitter frame signal, it triggers the enable component to switch from high level to low level, and the low level state is maintained for a duration that covers the duration of the frame synchronization header signal, ensuring that the component state is stable during the operation and avoiding operation misalignment caused by state switching delay.
[0060] 304. In the low-level state, perform a differential operation on the frame synchronization header signal according to the differential time constant to obtain the signal change rate;
[0061] In this embodiment, when the enable component is in a stable low-level state, a preset differential time constant (adapted to the transition characteristics of the frame synchronization header signal, such as 0.01ms) is used to perform differential operations on the frame synchronization header signal. By first extracting the amplitude change of the frame synchronization header signal, the calculation formula is "signal change rate = amplitude change of frame synchronization header signal / differential time constant". This operation can quantify the transition speed of the signal, directly reflect the dynamic characteristics of the frame synchronization header signal, and the signal change rate corresponding to different image display standards will fall within a specific range (such as 5-10V / ms under the PAL standard).
[0062] In this embodiment, based on signal frequency and pulse width, combined with digital filtering and threshold judgment, the frame synchronization header signal and the anti-jitter frame signal are accurately separated, effectively filtering high-frequency interference and noise. Signal identification is thorough and without misjudgment, laying a high-quality data foundation. The anti-jitter frame signal control enables the component to enter a stable low-level state, covering the frame synchronization header signal's lifespan, avoiding state fluctuations interfering with calculations. Differential operations under low-level conditions accurately quantify signal transition characteristics, ensuring reliable signal change rate calculations and clearly defining characteristic ranges for different standards. The entire process responds rapidly, meeting the real-time imaging requirements of surgery. Preset parameters support flexible adjustment, are compatible with multiple standards such as PAL and different camera devices, and are adaptable to various minimally invasive surgical scenarios. Simultaneously, the high-quality signal change rate provides crucial information for subsequent analysis, enhancing overall imaging stability and accuracy, and contributing to improved surgical efficiency and safety.
[0063] Please see Figure 4 In the fourth embodiment of the image data stream calibration method of the present invention, step 105 specifically includes:
[0064] 401. Obtain the rise time of the lighting current and the rise time of the camera trigger signal from the camera system's operating information;
[0065] In this embodiment, two key rise-edge time parameters are collected in real time from the camera system's operating information: ① Lighting current rise-edge time (the signal transition time from the start-up of the lighting system to the current stabilization, reflecting the lighting start-up sequence); ② Camera trigger signal rise-edge time (the signal transition time of the camera system at the start of exposure, reflecting the camera start-up sequence). The acquisition process uses a high-precision timing sampling module with a sampling frequency ≥10kHz and an acquisition accuracy ≤0.01ms to ensure that the signal timing data is distortion-free and delay-free, avoiding the impact of signal acquisition errors on subsequent analysis.
[0066] 402. Calculate the deviation between the rise time of the lighting current and the rise time of the camera trigger signal to obtain the time deviation;
[0067] In this embodiment, the time deviation quantifies the degree of timing misalignment between lighting activation and camera triggering. Different image display standards (such as PAL) have fixed frame rates (50 frames / second) and synchronization signal periods, and their corresponding timing deviations will fall within a specific range (such as the deviation under the PAL standard is usually ≤ ±0.1ms), providing a quantitative basis for standard identification.
[0068] 403. Analyze the time deviation and signal change rate to obtain the image display standard;
[0069] In this embodiment, time deviation (reflecting the timing adaptation characteristics of illumination and imaging, with different standards corresponding to fixed deviation ranges); signal change rate (obtained through differential operations, reflecting the signal jump speed of the image data stream, positively correlated with the standard frame rate, such as PAL standard frame rate of 50 frames / second, signal change rate corresponding to a specific interval); preset threshold ranges for time deviation and signal change rate for different standards (such as PAL), comparing the real-time calculated time deviation and signal change rate with their corresponding threshold ranges respectively, if both parameters fall within the interval corresponding to the PAL standard, it is determined to be the PAL image display standard, the analysis process response time is ≤10ms, ensuring that the real-time imaging requirements of the surgical scene are met; achieving rapid and accurate identification of the image display standard, providing an adaptation benchmark for subsequent calibration and illumination optimization;
[0070] In this embodiment, the degree of temporal misalignment between illumination and imaging is quantified by deviation calculation. Combined with the signal change rate obtained by differential operation, and based on the fixed parameter threshold range corresponding to different image display formats, the image display format can be quickly and accurately identified (such as PAL format). The identification result provides a core adaptation benchmark for subsequent image data stream calibration and illumination parameter optimization, effectively ensuring the real-time imaging requirements of abdominal surgery, further reducing the impact of hand tremors on imaging, improving image stability and clarity, and providing reliable technical support for doctors to accurately judge lesions and efficiently carry out surgery, meeting the stringent requirements of medical scenarios for imaging accuracy and real-time performance.
[0071] Please see Figure 5 The fifth embodiment of an image data stream calibration method according to the present invention, step 106 specifically includes:
[0072] 501. Perform quality analysis on the image data stream based on the sharpness evaluation function to obtain image quality parameters;
[0073] In this embodiment, a sharpness evaluation function adapted to medical imaging scenarios (such as the Brenner gradient function and entropy method) is used to analyze the image data stream frame by frame, extracting core quality parameters, including sharpness score (0-100 points), edge sharpness (pixel gray-level change rate), and contrast (gray-level difference between bright and dark areas), ensuring that the image quality of each frame is covered. The quality analysis principle of the sharpness evaluation function is as follows: based on the need for lesion detail recognition in medical imaging, the gray-level distribution and change characteristics of image pixels are quantified through algorithms. The Brenner gradient function focuses on the gray-level change rate of adjacent pixels; the more dramatic the change, the sharper the image edges and the clearer the details. The entropy method reflects the richness of the image's bright and dark levels by calculating the disorder of the gray-level distribution (moderate disorder results in good contrast). Finally, these features are transformed into quantifiable quality parameters such as sharpness score and edge sharpness, achieving frame-by-frame, objective image quality assessment.
[0074] 502. Compare and analyze the image quality parameters with the preset quality parameter thresholds to obtain the comparison results;
[0075] In this embodiment, the quality parameter thresholds are based on the standard calibration of lesion imaging in abdominal surgery (e.g., sharpness score ≥ 85 points, edge sharpness ≥ 0.8). The real-time acquired image quality parameters are compared with the quality parameter thresholds item by item. The comparison results are divided into three levels: "quality meets the standard", "minor defects" and "serious defects". The calibration priority is clearly defined. Serious defects (e.g., sharpness < 70 points) are processed first, while minor defects (e.g., slightly low contrast) are optimized in conjunction with time-series calibration. This avoids blind calibration, focuses on the core quality issues that affect surgical diagnosis, improves calibration efficiency, and ensures that resources are prioritized for the correction of key defects.
[0076] 503. Obtain the lighting duration and camera exposure duration from the camera system's operating information;
[0077] 504. Calculate the difference between the lighting duration and the camera exposure duration to obtain the duration deviation value;
[0078] In this embodiment, two types of key timing parameters are collected in real time from the camera system's working information: illumination duration (e.g., 1ms, matching the frame synchronization header duration) and camera exposure duration (e.g., 1.2ms). The duration deviation value (e.g., 0.2ms) is obtained by subtracting the difference, which quantifies the degree of timing misalignment between illumination supply and exposure acquisition, providing data support for targeted compensation.
[0079] 505. Based on the comparison results, duration deviation value and image display format, calibrate the image data stream to obtain the calibrated image data stream;
[0080] In this embodiment, the comparison results clearly identify the key points for quality optimization and address core defects such as image blurring in a targeted manner. The timing misalignment of "lighting-exposure" is compensated by combining the duration deviation value, adapting to image display formats, and being compatible with different camera devices, thus having strong versatility. After calibration, the image quality meets the standards, the timing is accurate, and there is no flickering or stuttering, providing doctors with clear and reliable lesion references, reducing surgical errors, and eliminating the need for repeated photography and manual adjustments, effectively improving surgical efficiency and diagnostic accuracy.
[0081] In this embodiment, algorithms such as the Brenner gradient function and entropy method, adapted to medical scenarios, are used to analyze the image data stream frame by frame. Abstract imaging quality is transformed into quantifiable parameters such as sharpness scores and edge sharpness, ensuring that the quality of each frame is accurately covered. By comparing and analyzing the image quality parameters with preset quality parameter thresholds, three quality levels are defined, and calibration priorities are clarified. Serious defects are addressed first, avoiding blind calibration and improving calibration efficiency. Simultaneously, the duration deviation between illumination and camera exposure is quantified in real time, specifically compensating for timing misalignments and resolving imaging blurring caused by synchronization imbalance. The calibration process is adapted to image display standards and compatible with different brands of camera equipment, demonstrating strong versatility. The final output image quality meets standards, providing doctors with clear and reliable references to lesion details, effectively reducing the risk of surgical errors, eliminating the need for repeated photography and manual adjustments, reducing the burden on doctors, shortening surgical time, and improving surgical efficiency and diagnostic accuracy.
[0082] Please see Figure 6 In the sixth embodiment of an image data stream calibration method of the present invention, step 505 specifically includes:
[0083] 601. Analyze the frame synchronization header signal based on the control timing reference to obtain the rising edge characteristics;
[0084] In this embodiment, the rising edge characteristics of the frame synchronization header signal are analyzed based on the control timing reference, including rising edge time (≤50μs), rising edge amplitude (conforming to the system signal level standard), and rising edge trigger time deviation.
[0085] 602. Based on the comparison results, image display format, rising edge characteristics, and duration deviation, calibrate the image data stream to obtain a calibrated image data stream;
[0086] In this embodiment, the comparison results clarify the priority of image calibration, prioritizing the resolution of core issues affecting image clarity. Then, timing correction is performed based on rising edge characteristics and duration deviation values. By utilizing the rising edge time and amplitude parameters of the frame synchronization header signal, the signal transmission timing is precisely corrected to compensate for the deviation between the illumination duration and the camera exposure duration, ensuring the timing consistency of the start marker of each frame image. This comprehensively covers timing deviations and quality defects, ultimately outputting a calibrated image data stream with accurate timing and meeting quality standards, adapting to the imaging requirements of laparoscopic surgery. The encoding format of the frame synchronization header signal of the image data stream (such as level logic and pulse sequence) is defined by the image display standard, and the parsing and adjustment of these signals during the calibration process must follow this "syntax rule".
[0087] In this embodiment, the solution uses signal frequency, image display standard, and pulse width to separate the frame synchronization header signal from the complex image data stream. The frame synchronization header signal is identified without omission or misjudgment, providing a reliable time reference for calibration. Rising edge feature analysis effectively filters interference, ensuring the calibration signal is authentic and effective. Multi-parameter calibration prioritizes solving image data quality issues. After calibration, the image timing is accurate and the clarity is significantly improved. It is compatible with mainstream display standards such as PAL and different camera devices, providing doctors with clear and reliable visual references for lesions, reducing surgical errors, and improving surgical efficiency and diagnostic accuracy.
[0088] Please see Figure 7 In the seventh embodiment of an image data stream calibration method according to the present invention, after step 106, the method further includes:
[0089] 701. Obtain the scene illumination intensity from the camera system's operating information;
[0090] In this embodiment, the light-sensing module built into the camera system is used to collect the scene light intensity of the abdominal surgery area in real time;
[0091] 702. Determine whether the scene light intensity is less than the preset light intensity threshold;
[0092] In this embodiment, the light intensity threshold is the "minimum light standard for clear imaging of lesions in abdominal surgery" (which needs to be combined with the type of surgery and the sensitivity calibration of the camera equipment), and the optimization process is triggered by logical judgment;
[0093] 703. When the scene light intensity is less than the light intensity threshold, the difference between the scene light intensity and the light intensity threshold is calculated to obtain the light intensity gap value.
[0094] 704. Obtain the duty cycle of the lighting drive PWM, and generate reference drive parameters based on the lighting drive PWM duty cycle, the preset camera device sensitivity correction coefficient, and the light intensity gap value;
[0095] In this embodiment, the duty cycle is positively correlated with the output power of the cold light source bulb (the higher the duty cycle, the greater the output energy per unit time). The system reads the current lighting drive PWM duty cycle through the current and voltage output power control module. Based on the light intensity gap value, the camera equipment sensitivity correction coefficient, and the calibrated "light gap corresponding duty cycle compensation coefficient", a target PWM duty cycle reference value is generated. Then, based on the linear correlation coefficient between the target PWM duty cycle reference value and the power, the corresponding reference output power is derived to form a reference drive parameter that takes into account the light supplementation requirements, equipment safety and stability, and medical imaging timing matching.
[0096] 705. Obtain the operating parameters of the cold light source bulb to obtain the lighting operating parameters;
[0097] 706. Optimize the lighting operating parameters based on the anti-jitter frame signal, the preset command format, the preset baud rate, and the reference drive parameters to obtain the optimized lighting operating parameters;
[0098] In this embodiment, the illumination time of the cold light source bulb is controlled by the anti-jitter frame signal. The power consumption of the cold light source bulb is controlled by the anti-jitter frame to be 1 / 20 of the power when the bulb is lit at full load. The illumination time of the cold light source bulb is 1ms. There is no jitter factor within 1ms. Therefore, the camera system needs to quickly complete the acquisition of each frame synchronization header signal within this 1ms instantaneous stable interval. First, the reference drive parameters (target duty cycle, power, timing, etc.) are encapsulated into standardized data frames according to the instruction format (including parameter type, target value, check bit). The data frames are then transmitted to the current source at a baud rate (adapted to the communication stability of medical equipment, such as 9600bps). The voltage output power controlled module receives the current lighting operating parameters (actual power, duty cycle, lighting sequence, etc.) in real time and calculates the deviation from the reference value. It then corrects the lighting operating parameters using a "small step adjustment" strategy, while simultaneously verifying whether the optimized parameters meet safety thresholds (duty cycle 5%-90%, power not exceeding 90% of rated power) and timing matching requirements (adapting to the camera frame synchronization head). If the deviation does not meet the standards, the adjustment is repeated, ultimately outputting stable, accurate, and optimized lighting operating parameters that meet the needs of surgical imaging, avoiding sudden parameter changes that could affect imaging and surgical safety. The module then controls the operation of the cold light source bulb based on the optimized lighting operating parameters.
[0099] In this embodiment, the scene's light intensity is acquired through the camera system's built-in light-sensing module, eliminating the need for additional sensors, simplifying the structure, and reducing costs and failure rates. The light intensity threshold is combined with the surgical type and camera equipment sensitivity calibration to adapt to multiple medical scenarios and different devices. When the light is insufficient, baseline driving parameters are generated based on the light gap value, camera equipment sensitivity correction coefficient, and duty cycle compensation coefficient. Then, the lighting parameters are optimized through standardized data transmission and small-step proportional adjustment strategies to ensure accurate light supplementation, avoiding both image blurring and repeated photography, as well as preventing strong light stimulation or tissue reflection. The optimization process strictly follows safety threshold and time sequence matching requirements to ensure equipment stability and surgical safety, while also being compatible with existing hardware modules, demonstrating strong versatility and scalability, and effectively improving surgical efficiency and diagnostic accuracy.
[0100] The above describes an image data stream calibration method according to an embodiment of the present invention. The following describes an image data stream calibration system according to an embodiment of the present invention. Please refer to [link / reference]. Figure 8 One embodiment of the image data stream calibration system of the present invention includes:
[0101] An image data stream calibration system performs an image data stream calibration method as described above. The image data stream calibration system includes a control unit 1, a camera system 2, a timer 3, and a cold light source bulb 4 electrically connected to the control unit 1. The camera system 2 includes a camera module 21, an enabling component 22, and a hardware substrate 23. The camera module 21 and the enabling component 22 are both integrated on the hardware substrate 23. The camera module 21 and the enabling component 22 are both electrically connected to the control unit 1. The image data stream calibration system also includes a focusing mechanism, a heat insulation mechanism, a dimming mechanism, an output interface, and a display.
[0102] Figure 9This is a schematic diagram of the structure of an image data stream calibration device 900 provided in an embodiment of the present invention. This image data stream calibration device 900 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 910 (e.g., one or more processors) and a memory 920, and one or more storage media 930 (e.g., one or more mass storage devices) storing application programs 933 or data 932. The memory 920 and storage media 930 can be temporary or persistent storage. The program stored in the storage media 930 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the image data stream calibration device 900. Furthermore, the processor 910 may be configured to communicate with the storage media 930 and execute a series of instruction operations in the storage media 930 on the image data stream calibration device 900 to implement the steps of the image data stream calibration method provided in the above-described method embodiments.
[0103] An image data stream calibration device 900 may further include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input / output interfaces 960, and / or one or more operating systems 931, such as Windows Server, MacOSX, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 9 The illustrated structure of an image data stream calibration device does not constitute a limitation on an image data stream calibration device. It may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0104] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0105] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0106] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method of image data stream calibration, characterized by, Applied to an image data stream calibration system, the image data stream calibration system including a camera system, the image data stream calibration method includes: Obtain the device model and generate a drive control signal based on the device model and the preset power adjustment range; The camera system is controlled according to the drive control signal to obtain the camera system's operating information; Image data streams are acquired from the camera system's operational information; The image data stream is differentiated according to a preset differential time constant to obtain the signal rate of change; The working information and signal change rate of the camera system are analyzed to determine the image display standard; The image data stream is calibrated according to a preset sharpness evaluation function and image display standard to obtain a calibrated image data stream.
2. The image data stream calibration method of claim 1, wherein, The image data stream calibration system further includes a timer; the camera system includes a camera module, an enabling component, and a hardware substrate, with both the camera module and the enabling component integrated on the hardware substrate; controlling the camera system to operate according to a drive control signal to obtain camera system operating information includes: The enable component is set to high level according to the drive control signal, and the timer is started; In the timer start state, timing parameters and lighting control parameters are acquired, and matching analysis is performed on the timing parameters and lighting control parameters to obtain the control timing reference; A reference power is generated based on the preset synchronous control logic and control timing reference; The camera module is controlled to operate based on a reference power. Obtain the current timer status based on the preset delay time; If the current timer status is the end of the timed exposure period, then obtain the camera system's working information.
3. The image data stream calibration method of claim 2, wherein, The step of performing differential operations on the image data stream according to a preset differential time constant to obtain the signal rate of change includes: The image data stream is analyzed according to the preset signal frequency and preset pulse width to obtain the anti-shake frame signal; Feature extraction is performed on the anti-jitter frame signal to obtain the frame synchronization header signal; The enable component is set to low level according to the anti-shake frame signal; In the low-level state, the frame synchronization header signal is differentiated according to the differential time constant to obtain the signal change rate.
4. The image data stream calibration method of claim 1, wherein, The analysis of the camera system's operating information and signal change rate to obtain the image display standard includes: The rise time of the lighting current and the rise time of the camera trigger signal are obtained from the camera system's operating information. The deviation between the rise time of the lighting current and the rise time of the camera trigger signal is calculated to obtain the time deviation; The time deviation and signal change rate are analyzed to obtain the image display standard.
5. The image data stream calibration method of claim 3, wherein, The step of calibrating the image data stream according to a preset sharpness evaluation function and image display standard to obtain a calibrated image data stream includes: The image data stream is analyzed based on the sharpness evaluation function to obtain image quality parameters; The image quality parameters and preset quality parameter thresholds are compared and analyzed to obtain the comparison results; The lighting duration and camera exposure duration are obtained from the camera system's operating information; The difference between the lighting duration and the camera exposure duration is calculated to obtain the duration deviation value; The image data stream is calibrated based on the comparison results, duration deviation value, and image display format to obtain a calibrated image data stream.
6. The image data stream calibration method as described in claim 5, characterized in that, The step of calibrating the image data stream based on the comparison results, duration deviation value, and image display format to obtain a calibrated image data stream includes: The frame synchronization header signal is analyzed based on the control timing reference to obtain the rising edge characteristics; The image data stream is calibrated based on the comparison results, image display format, rising edge characteristics, and duration deviation values to obtain a calibrated image data stream.
7. The image data stream calibration method as described in claim 3, characterized in that, The image data stream calibration system also includes a cold light source bulb. Following the step of calibrating the image data stream according to a preset sharpness evaluation function and image display standard to obtain a calibrated image data stream, the system further includes: The scene illumination intensity is obtained from the camera system's operating information; Determine whether the scene lighting intensity is less than a preset lighting intensity threshold; When the scene light intensity is less than the light intensity threshold, the difference between the scene light intensity and the light intensity threshold is calculated to obtain the light intensity gap value. Obtain the PWM duty cycle of the cold light source bulb, and generate reference drive parameters based on the PWM duty cycle, the preset camera device sensitivity correction coefficient, and the light intensity gap value; Obtain the operating parameters of the cold light source bulb to obtain the lighting operating parameters; The lighting operating parameters are optimized based on the anti-jitter frame signal, the preset command format, the preset baud rate, and the reference drive parameters to obtain the optimized lighting operating parameters.
8. An image data stream calibration system, characterized in that, An image data stream calibration method as described in any one of claims 1-7 is implemented, wherein the image data stream calibration system includes a control unit, a camera system, a timer, and a cold light source bulb electrically connected to the control unit.
9. The image data stream calibration system as described in claim 8, characterized in that, The camera system includes a camera module, an enabling component, and a hardware substrate. The camera module and the enabling component are both integrated on the hardware substrate. The camera module and the enabling component are both electrically connected to the control unit.
10. An image data stream calibration device, characterized in that, The image data stream calibration device includes: a memory and at least one processor, wherein the memory stores instructions; At least one of the processors invokes the instructions in the memory to cause the image data stream calibration device to perform the steps of the image data stream calibration method as claimed in any one of claims 1-7.