Automatic detection method, device and system for vehicle sunroof
By identifying vehicle markings to obtain benchmark information, activating the sunroof vision system to collect template images and record action and sound data, the system solves the problems of high cost and large variability in traditional manual inspection, realizing automated inspection of car sunroofs and improving inspection efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHERY AUTOMOBILE CO LTD
- Filing Date
- 2026-03-27
- Publication Date
- 2026-05-08
AI Technical Summary
In traditional vehicle off-line inspection, manual inspection methods are costly, require highly skilled and varied personnel, and are difficult to meet the automated inspection needs of vehicle off-line inspection.
By identifying vehicle markings to obtain detection benchmark information, the sunroof vision system is activated to collect template images, test commands are sent to the control module, action and sound data are recorded, and automated detection is performed using the detection benchmark information and template images to generate detection results.
It achieves automated testing with zero human intervention, avoids subjective differences among testing personnel, improves testing efficiency, and meets the automated testing requirements for vehicle assembly line production.
Smart Images

Figure CN121994512A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent automotive manufacturing technology, and in particular to an automated inspection method, device, and system for vehicle sunroofs. Background Technology
[0002] In the field of intelligent automotive manufacturing, sunroofs have evolved from simple lighting and ventilation components into highly mechatronic modules integrating multiple functions such as anti-pinch, rain sensing, position memory, sunshade linkage, and ambient lighting interaction. Therefore, this places higher demands on the final inspection of automobiles before they leave the production line.
[0003] Traditional vehicle off-line inspections mostly rely on manual inspection, which is not only costly in terms of labor but also requires highly skilled inspectors. Furthermore, different inspectors have varying degrees of variability in their fault detection judgments. Therefore, traditional vehicle off-line inspection methods are insufficient to meet the automated inspection needs of vehicle off-line production. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide an automated detection method, apparatus and system for vehicle sunroofs to alleviate the above-mentioned technical problems.
[0005] In a first aspect, embodiments of the present invention provide an automated detection method for a vehicle sunroof. The method includes: identifying a vehicle identifier of a vehicle to be detected; obtaining detection benchmark information of the vehicle to be detected based on the vehicle identifier; activating the sunroof vision system of the vehicle to be detected; acquiring a template image of the sunroof of the vehicle to be detected in a starting state through the sunroof vision system; sending a test command to the control module of the sunroof to control the sunroof to act according to the test command; and recording motion data and sound data generated by the sunroof during the action; and automatically detecting the motion data and sound data based on the detection benchmark information and the template image to generate a detection result for the sunroof.
[0006] In conjunction with the first aspect, the present invention provides a first possible implementation of the first aspect, wherein the step of sending a test command to the control module of the sunroof and controlling the sunroof to act according to the test command includes: sequentially sending the corresponding test command to the control module of the sunroof according to a pre-set detection process, so as to control the sunroof to perform actions sequentially according to the detection process; wherein the detection process includes at least one of the following: full-process motion test, anti-pinch safety function test, sunshade linkage test, and position memory function test.
[0007] In conjunction with the first possible implementation of the first aspect, this embodiment of the invention provides a second possible implementation of the first aspect, wherein the steps of recording the motion data and sound data generated by the sunroof during the operation include: recording the data generated by the sunroof when performing each of the detection processes, and collecting the sound data generated by the sunroof when performing each of the detection processes through a preset microphone.
[0008] In conjunction with the second possible implementation of the first aspect, this embodiment of the invention provides a third possible implementation of the first aspect, wherein the step of recording the data generated by the sunroof during each of the detection processes includes: if the sunroof performs the full-process motion test, then during the full-process motion of the sunroof, the image data of the sunroof is recorded and collected by the sunroof vision system at preset time intervals; if the sunroof performs the anti-pinch safety function test, then the response electrical signal of the sunroof when it detects an obstacle and the motion state data of the sunroof are collected; if the sunroof performs the sunshade linkage test, then the synchronization data between the sunshade and the sunroof are recorded; if the sunroof performs the position memory function test, then the error data when the sunroof reaches a preset designated position is recorded.
[0009] In conjunction with the third possible implementation of the first aspect, this embodiment of the invention provides a fourth possible implementation of the first aspect, wherein the above-mentioned step of automatically detecting the motion data and the sound data based on the detection benchmark information and the template image includes: if the motion data is the image data recorded when the sunroof performs the full motion test, then extracting the standard image corresponding to each time interval in the full motion test from the detection benchmark information; and automatically detecting the image data based on the standard image to detect the motion state of the sunroof during the full motion process.
[0010] In conjunction with the third possible implementation of the first aspect, this embodiment of the invention provides a fifth possible implementation of the first aspect, wherein the step of automatically detecting the motion data and the sound data based on the detection reference information and the template image further includes: if the motion data is the motion state data recorded when the sunroof performs the anti-pinch safety function test, then extracting an electrical signal threshold and a distance threshold from the detection reference information; detecting whether the response electrical signal reaches the electrical signal threshold, and whether the reaction distance of the sunroof after detecting the obstacle reaches the distance threshold; if so, determining that the anti-pinch safety function test has passed, otherwise failing.
[0011] In conjunction with the third possible implementation of the first aspect, this embodiment of the invention provides a sixth possible implementation of the first aspect, wherein the step of automatically detecting the motion data and the sound data based on the detection benchmark information and the template image further includes: if the motion data is the synchronization data recorded when the sunroof performs the sunshade linkage test, then extracting the synchronization threshold of the sunshade linkage test from the detection benchmark information; wherein the synchronization data is the time difference between the actions of the sunroof and the sunshade, the time difference being used to characterize whether the actions of the sunroof and the sunshade are synchronized; the synchronization threshold is a time difference threshold; determining whether the time difference is greater than the time difference threshold; if not, determining that the sunshade linkage test passes, otherwise failing.
[0012] In conjunction with the third possible implementation of the first aspect, this embodiment of the invention provides a seventh possible implementation of the first aspect, wherein the step of automatically detecting the motion data and the sound data based on the detection reference information and the template image further includes: if the motion data is error data recorded when the sunroof performs the position memory function test, then extracting the error threshold of the position memory function test from the detection reference information; wherein the error data is the difference between the actual position data collected by the sunroof vision system when the sunroof reaches a preset specified position and the standard position data of the preset specified position; determining whether the difference is greater than the error threshold; if not, determining that the position memory function test has passed, otherwise failing.
[0013] Secondly, embodiments of the present invention also provide an automated detection device for a vehicle sunroof. The device includes: an identification module for identifying the vehicle identifier of the vehicle to be detected and obtaining detection reference information of the vehicle to be detected based on the vehicle identifier; a data acquisition module for activating the sunroof vision system of the vehicle to be detected and acquiring a template image of the sunroof of the vehicle to be detected in a starting state through the sunroof vision system; a testing module for sending a test command to the control module of the sunroof and controlling the sunroof to act according to the test command; and recording the motion data and sound data generated by the sunroof during the action; and a detection module for automatically detecting the motion data and sound data based on the detection reference information and the template image, and generating a detection result for the sunroof.
[0014] Thirdly, embodiments of the present invention also provide an automated detection system for a vehicle sunroof, the system being used to communicate with the vehicle controller of the vehicle to be tested in order to execute the automated detection method for the vehicle sunroof of the first aspect.
[0015] The embodiments of the present invention bring the following beneficial effects: This invention provides an automated inspection method, apparatus, and system for vehicle sunroofs. The system identifies the vehicle identification mark of the vehicle to be inspected, obtains inspection benchmark information based on the mark, activates the sunroof vision system, acquires a template image of the sunroof in its initial state, sends test commands to the sunroof control module to control the sunroof to move according to the commands, and records motion and sound data generated during the sunroof's movement. Using the inspection benchmark information and template image as a basis, the system automatically inspects the motion and sound data to generate inspection results for the sunroof. The entire automated inspection process achieves zero human intervention, effectively avoiding subjective differences between different inspectors and improving inspection efficiency, thereby meeting the automated inspection requirements for vehicle assembly line production.
[0016] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0017] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0018] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0019] Figure 1 A flowchart illustrating an automated detection method for a vehicle sunroof provided in an embodiment of the present invention; Figure 2 A system block diagram of an automated detection system for vehicle sunroofs provided in an embodiment of the present invention; Figure 3 A schematic diagram of an automated detection device for vehicle sunroofs provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] Currently, with the continuous development of automotive intelligence, sunroofs have also integrated various functions. In the traditional vehicle off-line inspection process, the inspection of sunroofs mostly relies on manual methods such as pressing buttons and visual inspection, which has the following pain points: Cycle time bottleneck: Typically, the inspection time for a single vehicle is 5-8 minutes, and manual inspection methods are difficult to meet the time requirements for single-vehicle inspection; Standard dispersion: Different operators have large differences in their judgment of "abnormal noise" and "vibration"; Data black hole: Fault videos, current curves, etc. cannot be accurately linked to the Vehicle Identification Number (VIN), resulting in difficulties in traceability; High rework cost: The error rate of manual inspection is relatively high, which can easily lead to defects being released into the market, resulting in high after-sales claims for sunroof modules; Therefore, in the automotive assembly line operation, there is an urgent need for an automated and highly accurate sunroof inspection solution to meet the automated inspection requirements of the vehicle assembly line.
[0022] Based on this, the present invention provides an automated detection method, apparatus and system for vehicle sunroofs, which can alleviate the above-mentioned technical problems and meet the requirements for automated detection.
[0023] To facilitate understanding of this embodiment, a detailed description of an automated detection method for a vehicle sunroof disclosed in this embodiment of the invention will be provided first.
[0024] In one possible implementation, embodiments of the present invention provide an automated detection method for vehicle sunroofs, such as... Figure 1 The flowchart shown illustrates an automated detection method for a vehicle sunroof, which includes the following steps: Step S102: Identify the vehicle identifier of the vehicle to be inspected, and obtain the detection benchmark information of the vehicle to be inspected based on the vehicle identifier; In practical use, different vehicle models have different inspection items and standards for sunroofs. In step S102, the vehicle model to be inspected can be identified through the vehicle identification, thereby obtaining the inspection benchmark for the vehicle model. Specifically, before sunroof inspection, the inspector can use a scanning device to scan the vehicle identification, such as scanning the QR code on the windshield, to identify the vehicle identification. This vehicle identification serves as the vehicle's unique identification information. After identifying the vehicle identification, all configuration information of the sunroof corresponding to that model, as well as the corresponding inspection benchmark information, can be found from a pre-built central database. For example, whether it is a small sunroof or a panoramic sunroof of a regular vehicle, the inspection benchmark information can be obtained. Moreover, the inspection benchmark information includes the inspection standards for various sunroof inspections and the corresponding standard images or template images, etc. Since the inspection benchmark information is obtained based on the vehicle identification, it can ensure that the inspection benchmark information matches the actual configuration of the vehicle to be inspected during subsequent inspections. Therefore, it also allows for the production of different configuration models on the same production line.
[0025] Step S104: Start the sunroof vision system of the vehicle to be inspected and acquire a template image of the sunroof of the vehicle to be inspected in the starting state through the sunroof vision system. The starting state is usually when the sunroof is completely closed. In other embodiments, the starting state can be set to the sunroof being in other positions. The specific implementation depends on the actual situation, and this embodiment of the invention does not impose any restrictions on this.
[0026] Specifically, the sunroof vision system in this embodiment of the invention is a vision system composed of high-performance camera devices installed on the vehicle roof. Typically, multiple camera devices can be arranged on the roof; preferably, three 120° ultra-wide-angle high-definition industrial cameras are deployed, forming a distortion-free, full-area view of the sunroof glass, sunshade, sealing strips, etc., thus forming the sunroof vision system in this embodiment of the invention. Once the sunroof vision system is activated, it can acquire template images of the sunroof in its initial state, providing a comparison standard for subsequent inspection.
[0027] Typically, when the sunroof is fully closed, also known as the initial state, the vehicle's automated sunroof detection system can record key data such as the initial position of the motor and the initial compression state of the sealing strip. Simultaneously, the sunroof vision system can capture a template image of the sunroof in its fully closed state.
[0028] Step S106: Send a test command to the sunroof control module to control the sunroof to act according to the test command; and record the motion data and sound data generated by the sunroof during the action. Step S108: Using the detection reference information and template image as a reference, automatically detect the motion data and sound data to generate the detection result of the sunroof.
[0029] In practice, the automated detection system for vehicle sunroofs can send test commands to the vehicle to be tested. After receiving the test commands, the vehicle to be tested controls the movement of the sunroof, thereby obtaining the corresponding motion data and sound data.
[0030] This invention provides an automated inspection method for vehicle sunroofs. The method identifies the vehicle identification mark of the vehicle to be inspected, obtains the inspection benchmark information based on the mark, activates the sunroof vision system, acquires a template image of the sunroof in its initial state, sends test commands to the sunroof control module to control the sunroof to move according to the commands, and records motion and sound data generated during the sunroof's movement. Using the inspection benchmark information and template image as a basis, the method automatically inspects the motion and sound data to generate the sunroof inspection result. The entire automated inspection process achieves zero human intervention, effectively avoiding subjective differences between different inspectors and improving inspection efficiency, thereby meeting the automated inspection requirements for vehicle assembly line production.
[0031] In practical use, the automated testing method for vehicle sunroofs in this embodiment of the invention is used at the vehicle assembly line station to perform unmanned, traceable, and self-determining enhanced testing of the sunroof assembly's various functions and appearance quality. Furthermore, the automated testing process for vehicle sunroofs in this embodiment of the invention relies on an automated testing system for vehicle sunroofs. This system communicates with the vehicle controller of the vehicle under test, and then sends the aforementioned test commands to the sunroof through the vehicle controller.
[0032] For ease of understanding, Figure 2 A system block diagram of an automated detection system for vehicle sunroofs is shown, such as... Figure 2 As shown, the system includes a detection server 201, a vehicle controller 202, a sunroof vision system 203, a smart cockpit module 204, a data acquisition device 205, a MES system 206, and a sunroof module 207. Furthermore, Figure 2 The document also illustrates the connection methods between various structures, such as hardwired connections, CAN connections, wireless network connections, and Ethernet connections.
[0033] in, Figure 2The detection server in the invention can execute the automated detection method for the vehicle sunroof in this embodiment. The sunroof module includes the sunroof itself and structures such as a motor that controls its movement. The intelligent cockpit module includes a cockpit interface set in the driver's cabin, which can respond to various commands sent by the driver or inspection personnel through the cockpit interface and transmit them to the vehicle controller. The data acquisition device is used to record various data or messages generated during vehicle operation, such as whether the intelligent cockpit module has sent a command, whether the vehicle has responded to the command, and, for example, when sending a test command to the sunroof control module in step S106, the detection server first sends a test command to the vehicle controller, and the vehicle controller then transmits the test command to the sunroof module. The command transmission during this process, as well as whether the sunroof module has executed the command, can all be collected by the data acquisition device. The MES system (Manufacturing Execution System) can record the collected data to achieve data traceability. In addition, it can also record the motion data and sound data generated by the sunroof during its operation in step S106.
[0034] Furthermore, based on the above Figure 2 The system architecture shown in this embodiment of the invention enables comprehensive functional and aesthetic testing of the sunroof during automated testing. Specifically, in this embodiment, when controlling the sunroof to perform actions according to test instructions, corresponding test instructions can be sent sequentially to the sunroof control module according to a pre-set testing process to control the sunroof to execute actions sequentially according to the testing process; wherein, the sunroof control module can be the sunroof motor control module, included in the above... Figure 2 The sunroof module communicates with the vehicle controller, and the detection process in this embodiment of the invention includes at least one of the following: full-process motion test, anti-pinch safety function test, sunshade linkage test, and position memory function test.
[0035] Furthermore, based on the above detection process, when recording the motion data and sound data generated by the sunroof during its operation, the data generated by the sunroof during each detection process can be recorded, and the sound data generated by the sunroof during each detection process can be collected through a preset microphone. Specifically, this includes the following processes: (1) If the sunroof performs a full-process motion test, the sunroof vision system records and collects image data of the sunroof at preset time intervals during the full-process motion of the sunroof; and, when performing automated detection, if the motion data is the image data recorded when the sunroof performs the full-process motion test, the standard image corresponding to each time interval in the full-process motion test is extracted from the detection reference information; and the image data is automatically detected based on the standard image to detect the motion state of the sunroof during the full-process motion.
[0036] Specifically, during this process, the glass of the sunroof can, under the control of the motor, go through a complete stroke from fully closed → tilted backward → fully slid open → and finally closed again within a specified time, such as about 18 seconds. During this period, the camera device of the sunroof vision system, such as a high-speed camera, can continuously take pictures at a preset speed, such as 240 pictures per second, to capture every instant of the sunroof's operation. Then, the detection server can accurately determine whether there are jams, vibrations, or deviations during the movement of the sunroof by analyzing these consecutive images, such as comparing each image with the standard images pre-recorded in the detection reference information, and comparing the image in the fully closed state again with the template image. If there are deviations and the deviation exceeds the threshold, such as plus or minus 1 millimeter, an alarm will be triggered.
[0037] (2) If the sunroof performs an anti-pinch safety function test, collect the response electrical signal of the sunroof when detecting an obstacle and the motion state data of the sunroof; during this process, if the action data is the motion state data recorded when the sunroof performs the anti-pinch safety function test, extract the electrical signal threshold and the distance threshold from the detection reference information; detect whether the response electrical signal reaches the electrical signal threshold, and whether the reaction distance of the sunroof after detecting the obstacle reaches the distance threshold; if so, determine that the anti-pinch safety function test passes, otherwise it fails.
[0038] During this anti-pinch safety function test process, safety is of utmost importance. Usually, at the moment when the sunroof is about to close in place, a scenario of a human hand being pinched can be simulated, such as inserting a standard test rod through an automatic device. At this time, simultaneously monitor the current change of the sunroof's motor and detect the jump value of the current. This jump value of the current is a phenomenon of a sudden increase in current caused by the motor's emergency braking or reverse movement (indicating that the motor encounters resistance). If the current jump reaches the current threshold, it means that the motor has received an effective drive at this time, that is, the sunroof has made an effective reaction to the obstacle (test rod), and the motor has driven the sunroof to move in the reverse direction. If the reaction distance of the reverse movement reaches the distance threshold at this time, it is determined that this function test is qualified, and the safety of the occupants can be ensured during actual driving. If any one item fails, such as the electrical signal not reaching the electrical signal threshold, or the reaction distance of the sunroof not reaching the distance threshold, it means that this test fails.
[0039] (3) If the sunroof performs a sunshade linkage test, the synchronization data between the sunroof and the sunroof is recorded. In this process, if the action data is the synchronization data recorded when the sunroof performs the sunshade linkage test, the synchronization threshold of the sunshade linkage test is extracted from the detection reference information. The synchronization data is the time difference between the actions of the sunroof and the sunshade, which is used to characterize whether the actions between the sunroof and the sunshade are synchronized. The above synchronization threshold is the time difference threshold. It is determined whether the time difference is greater than the time difference threshold. If not, the sunshade linkage test is determined to be passed, that is, the actions between the sunroof and the sunshade are synchronized; otherwise, it is not passed.
[0040] Typically, for skylights equipped with sunshades, the sunshades must open or close synchronously and in coordination when the skylight moves. This detection process can calculate the time difference between the movement of the skylight glass and the sunshade, and pre-set a time difference threshold, such as not exceeding 300 milliseconds. Simultaneously, the skylight vision system can also check whether the surface of the unfolded sunshade fabric is flat, without obvious wrinkles or unevenness, etc., and determine whether the sunshade meets the minimum acceptable standard through image detection.
[0041] (4) If the sunroof performs a position memory function test, the error data when the sunroof reaches the preset designated position is recorded. In this detection process, if the motion data is the error data recorded when the sunroof performs a position memory function test, the error threshold of the position memory function test is extracted from the detection reference information; wherein, the error data is the difference between the actual position data collected by the sunroof vision system when the sunroof reaches the preset designated position and the standard position data of the preset designated position; it is determined whether the difference is greater than the error threshold; if not, the position memory function test is determined to be passed, otherwise it is not passed.
[0042] During actual testing, the location memory function can be tested by randomly setting several locations, such as three different sunroof opening positions (three designated positions), and instructing the sunroof control module to "remember" each designated position. When these designated positions are recalled again, the sunroof must be able to accurately return to the designated position from a fully closed state or any open state, and the error between the actual returned designated position and the designated position in the memory must not exceed an error threshold, such as 1 millimeter. If the test is passed, this testing process ensures a consistent user experience.
[0043] Furthermore, the sound data generated during the operation of the sunroof is typically collected continuously by dedicated microphones placed inside the vehicle compartment. The detection server can be equipped with a built-in intelligent audio analysis model, capable of sensitively capturing any abnormal friction sounds, impact sounds, or harsh noises, even if these abnormal sounds are very subtle.
[0044] Furthermore, the inspection server can also be used in conjunction with exterior inspection to detect gaps, such as whether the seam between the sunroof glass and the metal part of the roof is flat and uniform. These gaps directly affect the overall aesthetics and wind noise of the vehicle. Specifically, the inspection server can generate a 3D model of the seam between the sunroof and the roof through special light scanning, and automatically measure its height difference and gap width, etc., to ensure that it is within a strict tolerance range to guarantee the visual effect.
[0045] In practical applications, to improve inspection efficiency, the aforementioned inspection server is typically configured as a high-performance portable processor and placed near the vehicle assembly line. This allows for the rapid processing of the large amounts of video, image, and audio data generated during the inspection process, as well as internal vehicle communication signals. Furthermore, high-performance computing units can be configured based on inspection requirements to quickly analyze and process massive amounts of data and provide preliminary inspection results. Additionally, for any suspicious issues discovered during any of the aforementioned inspection processes, corresponding short video clips of defects can be automatically captured, providing intuitive evidence for subsequent judgments.
[0046] Furthermore, for vehicles initially identified as potentially problematic, the detection server can encrypt all relevant raw data, including high-definition video, audio recordings, and vehicle signal clips, before uploading them to a cloud server. Typically, the cloud server can deploy more advanced and complex AI analysis models, enabling a second, in-depth review of this data and a rapid final decision. This combined mechanism effectively improves the accuracy of the entire detection process; data shows an accuracy rate exceeding 99.2%, minimizing false positives and false negatives.
[0047] Furthermore, for vehicles confirmed to have problems, when guided to the repair area, repair personnel can wear specialized repair equipment, such as augmented reality glasses, to directly display the specific problem with the sunroof. This includes a clear short video of the defect, a detailed analysis of the cause of the fault, and standardized repair instructions, making the repair work extremely efficient and precise. After the vehicle is repaired, it still needs to undergo further verification through the aforementioned inspection processes to ensure that the problem has been completely resolved. This forms a complete "inspection-decision-repair-verification" quality closed loop, ensuring that every car delivered to the customer has a qualified sunroof system.
[0048] In summary, the automated inspection method for vehicle sunroofs provided in this embodiment of the invention can realize a fully automated closed-loop inspection process for sunroofs and be used in the vehicle assembly line workstation. It enables unmanned, traceable, and self-decision-making enhanced inspection of various functions and appearance quality of the sunroof assembly. The entire automated inspection process achieves zero human intervention, effectively avoids subjective differences between different inspectors, and helps improve inspection efficiency, thereby meeting the automated inspection requirements for vehicle assembly line workstations.
[0049] Furthermore, based on the above embodiments, this invention also provides an automated detection device for vehicle sunroofs, such as... Figure 3 The diagram shows the structure of an automated detection device for vehicle sunroofs. The device includes: The identification module 30 is used to identify the vehicle identifier of the vehicle to be detected and to obtain the detection reference information of the vehicle to be detected based on the vehicle identifier. The acquisition module 32 is used to activate the sunroof vision system of the vehicle under test and acquire a template image of the sunroof of the vehicle under test in the starting state through the sunroof vision system. The starting state is typically when the sunroof is completely closed. Test module 34 sends test commands to the control module of the sunroof, controls the sunroof to act according to the test commands; and records the motion data and sound data generated by the sunroof during the action. The detection module 36 is used to automatically detect the motion data and the sound data based on the detection reference information and the template image, and generate the detection result of the sunroof.
[0050] Furthermore, this embodiment of the invention also provides an automated detection system for vehicle sunroofs. This system communicates with the vehicle controller of the vehicle to be tested to execute the aforementioned automated detection method for vehicle sunroofs. The automated detection system for vehicle sunroofs can refer to the above-described... Figure 2 The system architecture shown will not be described in detail here.
[0051] The automated detection device and system for vehicle sunroofs provided in this embodiment of the invention have the same technical features as the automated detection method for vehicle sunroofs provided in the above embodiments, so they can also solve the same technical problems and achieve the same technical effects.
[0052] Furthermore, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above method.
[0053] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described method.
[0054] Furthermore, embodiments of the present invention also provide a schematic diagram of the structure of an electronic device, such as... Figure 4 The diagram shows the structure of the electronic device, which includes a processor 41 and a memory 40. The memory 40 stores computer-executable instructions that can be executed by the processor 41, and the processor 41 executes the computer-executable instructions to implement the above-described method.
[0055] exist Figure 4 In the illustrated embodiment, the electronic device further includes a bus 42 and a communication interface 43, wherein the processor 41, the communication interface 43, and the memory 40 are connected via the bus 42.
[0056] The memory 40 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 43 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc. The bus 42 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 42 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0057] Processor 41 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 41 or by software instructions. Processor 41 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this invention can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in the memory, and the processor 41 reads the information in the memory and uses its hardware to complete the aforementioned method.
[0058] The computer program product of the automated detection method, device and system for vehicle sunroof provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0059] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0060] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, 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 of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0061] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion 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 this 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.
[0062] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0063] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. An automated detection method for a vehicle sunroof, characterized in that, The method includes: Identify the vehicle identifier of the vehicle to be inspected, and obtain the inspection reference information of the vehicle to be inspected based on the vehicle identifier; The sunroof vision system of the vehicle under test is activated, and a template image of the sunroof of the vehicle under test in the starting state is acquired through the sunroof vision system. Send a test command to the control module of the sunroof to control the sunroof to act according to the test command; and record the motion data and sound data generated by the sunroof during the action. Based on the detection benchmark information and the template image, the motion data and the sound data are automatically detected to generate the detection result of the sunroof.
2. The method according to claim 1, characterized in that, The steps of sending a test command to the control module of the sunroof and controlling the sunroof to operate according to the test command include: According to the pre-set testing procedure, the corresponding test commands are sent to the control module of the sunroof in sequence to control the sunroof to perform actions in sequence according to the testing procedure; The testing process includes at least one of the following: full-process motion test, anti-pinch safety function test, sunshade linkage test, and position memory function test.
3. The method according to claim 2, characterized in that, The steps for recording the motion data and sound data generated by the sunroof during operation include: Record the data generated by the sunroof during each of the detection processes, and collect the sound data generated by the sunroof during each of the detection processes through a preset microphone.
4. The method according to claim 3, characterized in that, The steps for recording the data generated by the sunroof during each of the detection processes include: If the sunroof performs the full-process motion test, then during the full-process motion of the sunroof, the image data of the sunroof is recorded and collected by the sunroof vision system at preset time intervals; If the sunroof performs the anti-pinch safety function test, the response electrical signal of the sunroof when it detects an obstacle and the motion state data of the sunroof are collected. If the sunshade curtain linkage test is performed on the sunroof, the synchronization data between the sunshade curtain and the sunroof is recorded. If the sunroof performs the position memory function test, the error data when the sunroof reaches the preset specified position is recorded.
5. The method according to claim 4, characterized in that, The steps of automatically detecting the motion data and the sound data based on the detection benchmark information and the template image include: If the motion data is the image data recorded when the sunroof performs the full motion test, then the standard image corresponding to each time interval in the full motion test is extracted from the detection benchmark information; Using the standard image as a reference, the image data is automatically detected to detect the motion state of the sunroof throughout the entire movement process.
6. The method according to claim 4, characterized in that, The step of automatically detecting the motion data and the sound data based on the detection benchmark information and the template image further includes: If the motion data is the motion state data recorded when the sunroof performs the anti-pinch safety function test, then the electrical signal threshold and distance threshold are extracted from the detection reference information; The system detects whether the response electrical signal reaches the electrical signal threshold, and whether the reaction distance of the sunroof after detecting the obstacle reaches the distance threshold. If yes, the anti-pinch safety function test is passed; otherwise, it fails.
7. The method according to claim 4, characterized in that, The step of automatically detecting the motion data and the sound data based on the detection benchmark information and the template image further includes: If the action data is the synchronization data recorded when the sunroof performs the sunshade linkage test, then the synchronization threshold of the sunshade linkage test is extracted from the detection benchmark information; wherein, the synchronization data is the time difference between the actions of the sunroof and the sunshade, and the time difference is used to characterize whether the actions of the sunroof and the sunshade are synchronized; the synchronization threshold is the time difference threshold. Determine whether the time difference is greater than the time difference threshold; If not, the sunshade curtain linkage test is confirmed to be passed; otherwise, it fails.
8. The method according to claim 4, characterized in that, The step of automatically detecting the motion data and the sound data based on the detection benchmark information and the template image further includes: If the action data is error data recorded when the sunroof performs the position memory function test, then the error threshold of the position memory function test is extracted from the detection benchmark information; wherein, the error data is the difference between the actual position data collected by the sunroof vision system when the sunroof reaches the preset specified position and the standard position data of the preset specified position; Determine whether the difference is greater than the error threshold; If not, the location memory function test is considered passed; otherwise, it fails.
9. An automated detection device for vehicle sunroofs, characterized in that, The device includes: The identification module is used to identify the vehicle identifier of the vehicle to be detected and to obtain the detection reference information of the vehicle to be detected based on the vehicle identifier. The acquisition module is used to activate the sunroof vision system of the vehicle under test and acquire a template image of the sunroof of the vehicle under test in the starting state through the sunroof vision system. The testing module sends test commands to the control module of the sunroof, controls the sunroof to act according to the test commands, and records the motion data and sound data generated by the sunroof during the action. The detection module is used to automatically detect the motion data and the sound data based on the detection benchmark information and the template image, and generate the detection result of the sunroof.
10. An automated detection system for vehicle sunroofs, characterized in that, The system is used to communicate with the vehicle controller of the vehicle to be tested in order to perform the automated detection method for the vehicle sunroof as described in any one of claims 1 to 8.