Projection device calibration method, calibration system and projection device
Through the automated control of the projection equipment calibration system, the problem of side projection of the projection equipment and the complicated calibration process is solved, efficient and intelligent calibration of the projection equipment is realized, and the calibration efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202211700463.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-12-28
AI Technical Summary
Side projection may occur during use of the projection equipment, causing the projection surface and the projection light to be non-parallel, causing the projection area to be trapezoidal rather than rectangular, and the existing calibration process is complicated and inefficient.
Design a calibration system, including projection equipment, driving devices and control equipment. Through automatic control, the projection equipment is moved to the preset calibration position, the raster chart is projected to the calibration plate and the chart image data is collected, and the calibration parameters are calculated and sent to achieve Full-process intelligent calibration of projection equipment.
It significantly improves the efficiency and accuracy of projection equipment calibration, reduces manual intervention, provides reliable calibration parameters, and provides support for the correction of projection equipment.
Smart Images

Figure CN116095287B
Abstract
Description
Technical Field
[0001] The present application relates to the field of projection technology, and in particular to a projection device calibration method, a calibration system and a projection device. Background Art
[0002] Projection equipment is based on imaging technology, which projects media data onto projection media such as walls, curtains, and screens, so that the projection media presents the media data. When the user uses the projection equipment, the projection equipment may have a side projection phenomenon, that is, the projection surface is not parallel to the projection light, so that the projection area of the projection equipment is trapezoidal rather than rectangular, so the projection equipment needs to be automatically keystone corrected. Before performing automatic keystone correction, it is necessary to obtain the calibration parameters of the projection equipment, which can include the intrinsic parameters, extrinsic parameters, and distortion coefficients of the optical machine and camera. The calibration process of the projection equipment is relatively complicated and the calibration efficiency is low. Summary of the invention
[0003] The present application provides a projection device calibration method, a calibration system and a projection device, which realize the full-process intelligent control of the projection device calibration and improve the calibration efficiency.
[0004] In a first aspect, an embodiment of the present application provides a calibration system, including:
[0005] Calibration plate;
[0006] A projection device, comprising a lens, an optical machine and a camera;
[0007] A driving device connected to the projection device;
[0008] A control device, connected to the driving device and the projection device, for executing:
[0009] Controlling the driving device to move the projection device to a preset mark position;
[0010] Sending a shooting instruction to the projection device, wherein the shooting instruction is used to instruct the projection device to control the optical machine to project a grating card onto the calibration plate, and to control the camera to shoot a card image corresponding to the grating card;
[0011] Receiving the card image data uploaded by the projection device, and calculating the calibration parameters of the projection device according to the card image data;
[0012] The calibration parameters are sent to the projection device.
[0013] In some implementations, before controlling the driving device to move the projection device to a preset calibration position, the control device is also used to execute: sending a start calibration instruction to the projection device, wherein the start calibration instruction is used to instruct: the projection device to enlarge the projection image to adjust it to the maximum projection area, focus the camera according to the distance between the projection device and the calibration plate, and adjust the brightness of the light source of the optical machine to a preset brightness, so as to complete the initialization of the calibration environment of the projection device.
[0014] In some implementations, before controlling the driving device to move the projection device to a preset calibration position, the control device is further used to execute: receiving an initialization completion message sent by the projection device, and sending exposure parameter information to the projection device; the initialization completion message is sent by the projection device after completing the initialization of the calibration environment; the exposure parameter information includes exposure parameters corresponding to the grating image card, and the exposure parameter information is used to enable the projection device to set the exposure parameters of the camera after the optical machine projects the grating image card onto the calibration plate, so that the camera captures the image of the image card according to the exposure parameters.
[0015] In some implementations, the grating image card includes a stripe image card and a solid color image card, the stripe image card includes a plurality of horizontal stripe image cards and a plurality of vertical stripe image cards with different frequencies and phases, and the solid color image card includes a pure black image card and a pure white image card; the image card image data includes a sequence of image card images taken at at least one preset marking position, and the image card image sequence includes image card images taken sequentially in an image card projection order.
[0016] In some implementations, after sending a shooting instruction to the projection device, the control device is further used to execute: if a shooting success message sent by the projection device is received, sending a stop shooting instruction to the projection device; the shooting success message is sent by the projection device after shooting the complete image data of the picture card; the stop shooting instruction is used to instruct the projection device to shut down the camera; if a shooting failure message is received from the projection device, controlling the driving device to move the projection device back to the first preset calibration position, and sending a reshooting instruction to the projection device; the shooting failure message is sent by the projection device when it detects that the picture card image data is incomplete; the reshooting instruction is used to instruct the projection device to delete the incomplete picture card image data that has been shot, re-control the optical machine to project the grating picture card onto the calibration plate, and control the camera to reshoot the picture card image data.
[0017] In some implementations, before sending the calibration parameters to the projection device, the control device is also used to execute: calculating a first reprojection error between the optical machine and the camera; if the first reprojection error is greater than a first threshold, discarding the currently calculated calibration parameters and re-executing the calibration process; if the first reprojection error is not greater than the first threshold, sending the calibration parameters to the projection device.
[0018] In some implementations, the camera includes a first camera and a second camera. Before sending the calibration parameters to the projection device, the control device is further used to perform: calculating a second reprojection error between the first camera and the second camera; if the first reprojection error is greater than a first threshold, and / or the second reprojection error is greater than a second threshold, discarding the currently calculated calibration parameters and re-executing the calibration process; if the first reprojection error is not greater than the first threshold, and the second reprojection error is not greater than the second threshold, sending the calibration parameters to the projection device.
[0019] In some implementations, after sending the calibration parameters to the projection device, the control device is further used to execute: controlling the driving device to move the first projection device that has been calibrated to the device replacement position, so that the driving device removes the first projection device at the device replacement position and connects the next second projection device to be calibrated.
[0020] In a second aspect, an embodiment of the present application further provides a projection device calibration method, comprising:
[0021] The control device controls the driving device to move the projection device to a preset mark position; wherein the projection device includes a lens, an optical machine and a camera, and the projection device is connected to the driving device;
[0022] The control device sends a shooting instruction to the projection device,
[0023] The projection device controls the optical machine to project a grating card onto the calibration plate in response to the shooting instruction, and controls the camera to shoot a card image corresponding to the grating card;
[0024] The control device receives the card image data uploaded by the projection device, and calculates the calibration parameters of the projection device according to the card image data;
[0025] The control device sends the calibration parameters to the projection device;
[0026] The projection device receives and stores the calibration parameters.
[0027] In a third aspect, an embodiment of the present application further provides a projection device, including:
[0028] A connecting component, used for connecting with a driving device;
[0029] A communicator, used for connecting with a control device;
[0030] Lens;
[0031] An optical machine, used for projecting a grating chart onto a calibration plate;
[0032] A camera, for capturing images;
[0033] Controller, which performs:
[0034] After being moved to a preset mark position by the driving device, receiving a shooting instruction sent by the control device;
[0035] In response to the shooting instruction, controlling the optical machine to project a grating card onto the calibration plate, and controlling the camera to shoot a card image corresponding to the grating card;
[0036] Uploading the captured card image data to the control device, wherein the card image data is used to enable the control device to calculate the calibration parameters of the projection device;
[0037] Receive and store the calibration parameters sent by the control device.
[0038] The embodiment of the present application realizes automatic positioning and switching of preset calibration positions through communication between the control device, the projection device and the drive device in the calibration system, with the control device as the control subject and the drive device and the projection device as the controlled objects, intelligently controls the projection device to project the chart card onto the calibration board and collect the chart card image data, and calculates the calibration parameters according to the chart card image data, etc., thereby realizing intelligent control of the entire process of projection device calibration, significantly reducing manual intervention, improving the calibration efficiency of the projection device and the accuracy of the calibration parameters, and providing reliable calibration parameters for the correction of the projection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram of a projection scene of a projection device is exemplarily shown;
[0041] Figure 2 The schematic diagram of the optical path of the projection device is shown as an example;
[0042] Figure 3 The schematic diagram of the circuit architecture of the projection device is exemplarily shown;
[0043] Figure 4 The schematic diagram of the optical path of the projection device is shown as an example;
[0044] Figure 5 The schematic diagram of the system framework for realizing display control of a projection device is shown as an example;
[0045] Figure 6 A schematic diagram of the structure of a calibration system is shown as an example;
[0046] Figure 7 A schematic diagram of a calibration plate is exemplarily shown;
[0047] Figure 8 An interactive flow chart of a calibration system is exemplarily shown;
[0048] Fig. 9 A schematic diagram of the categories of raster image cards is shown as an example;
[0049] Fig.10 The schematic diagram of the control device display operation interface is exemplarily shown. DETAILED DESCRIPTION
[0050] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0051] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and common meanings.
[0052] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0053] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0054] Projection equipment is a device that can project media data onto a projection medium. Projection equipment can be connected to computers, broadcasting networks, the Internet, VCD (Video Compact Disc), DVD (Digital Versatile Disc Recordable), game consoles, DV and other devices through different interfaces to receive media data to be projected. Among them, media data includes but is not limited to images, videos, texts and other types, and projection media includes but is not limited to physical forms such as walls, curtains, and screens.
[0055] Figure 1 A schematic diagram of a projection scene of a projection device according to an embodiment of the present application is shown. Figure 2 A schematic diagram of the optical path of the projection device is shown.
[0056] In some embodiments, reference Figure 1 and Figure 2 , a projection device provided in the present application includes a projection medium 1 and a projection device 2. The projection medium 1 is fixed at a first position, and the projection device 2 is placed at a second position. By adjusting the relationship between the first position and the second position, the projection image of the projection device 2 is made to coincide with the projection surface of the projection medium 1. The projection device 2 includes a projection assembly, and the projection assembly includes a laser light source 210, an optical machine 220, and a lens 230. Among them, the laser light source 210 provides illumination for the optical machine 220, the optical machine 220 modulates the light source beam and outputs it to the lens 230, the lens 230 performs imaging and projects it to the projection medium 1, and the projection medium 1 presents the projection image.
[0057] In some embodiments, the laser light source 210 of the projection device 2 includes a laser assembly and an optical lens assembly, and the light beam emitted by the laser assembly can pass through the optical lens assembly to provide lighting for the optical machine 220. For example, the optical lens assembly requires a higher level of environmental cleanliness and airtight sealing; while the chamber in which the laser assembly is installed can be sealed with a lower level of dustproof sealing to reduce the sealing cost.
[0058] In some embodiments, the optical engine 220 of the projection device 2 may include a blue optical engine, a green optical engine, and a red optical engine, and may also include a heat dissipation system, a circuit control system, and the like.
[0059] In some embodiments, the light emitting component of the projection device may also be implemented by an LED light source.
[0060] Figure 3A schematic diagram of the circuit architecture of a projection device is shown. In some embodiments, the projection device 2 may include a display control circuit, a laser light source, at least one laser driving component, and at least one brightness sensor. The laser light source may include at least one laser corresponding to the at least one laser driving component. The at least one refers to one or more, and the multiple refers to two or more.
[0061] Based on the circuit architecture, the projection device can achieve adaptive adjustment. For example, by setting a brightness sensor in the light output path of the laser light source 210, the brightness sensor 260 can detect the first brightness value of the laser light source and send the first brightness value to the display control circuit. The display control circuit can obtain the second brightness value corresponding to the driving current of each laser, and when it is determined that the difference between the second brightness value of the laser and the first brightness value of the laser is greater than the difference threshold, it is determined that the laser has a COD (Catastrophic optical damage) failure, and the display control circuit can adjust the current control signal of the laser driving component corresponding to the laser until the aforementioned difference is less than or equal to the threshold, thereby eliminating the COD failure of the laser; the projection device can eliminate the COD failure of the laser in time, reduce the damage rate of the laser, and improve the image display effect of the projection device.
[0062] In some embodiments, reference Figure 4 The laser light source 210 in the projection device 2 may include independently arranged blue laser 211, red laser 212 and green laser 213. The projection device may also be called a three-color projection device. The blue laser 211, the red laser 212 and the green laser 213 are all module lightweight (Mirai Console Loader, MCL) packaged lasers with small size, which is conducive to the compact arrangement of the optical path.
[0063] In some embodiments, the projection device 2 includes a controller, which includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (Random Access Memory), a ROM (Read-Only Memory), a first interface to an nth interface for input / output, and a communication bus (Bus). The controller is connected to hardware related to the projection device, such as a display control circuit, a brightness sensor, a distance sensor, an image acquisition device, etc., to control the projection, focusing, correction, calibration, obstruction detection, and switch screen state adjustment of the projection device.
[0064] In some embodiments, several types of interfaces may be provided on the body of the projection device, such as a power interface, a USB interface, an HDMI (High Definition Multimedia Interface) interface, a network cable interface, a VGA (Video Graphics Array) interface, a DVI (Digital Visual Interface), etc., to connect a signal source for transmitting media.
[0065] In some embodiments, after the projection device is started, it can directly enter the display interface of the signal source selected last time, or the signal source selection interface, where the signal source is, for example, a preset video-on-demand program, or one of the signal sources such as an HDMI interface, a USB interface, a live TV interface, etc. After the user selects the target signal source, the projection device 2 can obtain media data from the target signal source and project the media data onto the projection medium 1 for display.
[0066] In some embodiments, the projection device 2 may be configured with an image acquisition device for cooperating with the projection device to achieve adjustment and control of the projection process. For example, the projection device may be configured with a 3D camera, a monocular or binocular camera; when the projection device is provided with a binocular camera, it specifically includes a left camera (first camera) and a right camera (second camera) according to the installation side position of the binocular camera on the first plane of the device. The first plane is a plane in the shell plane of the projection device 2 that is parallel to and opposite to the projection plane of the projection medium 1.
[0067] In some embodiments, Figure 5 An example of a system framework diagram for realizing display control of a projection device is shown, including an application service layer, a process communication framework, an operation layer, a framework layer, a correction service, a camera service, a flight time service, and hardware and its driver, etc. The projection device 2 has the characteristics of a telephoto micro-projector. The controller controls the overall system architecture and realizes the projection control of the projection device based on the underlying program logic, including but not limited to automatic trapezoidal correction of the projection screen, automatic screen entry, automatic obstacle avoidance, automatic focusing, anti-shooting eyes, obstruction detection, projection device calibration, and screen switch control.
[0068] In some embodiments, the projection device 2 is configured with a gyroscope sensor. During the movement of the projection device, the gyroscope sensor can sense the displacement of the projection device and actively collect position data; then the collected position data is sent to the application service layer through the framework layer to support the application data required during the user interface interaction and application interaction. The position data can also be used for data calls by the controller in the algorithm service implementation.
[0069] In some embodiments, the projection device 2 is also configured with a distance sensor for detecting distance. The distance sensor may be a time of flight (TOF) sensor. The time of flight sensor uses the flight time of a signal traveling back and forth between a transmitting end and a reflecting end to measure the distance between nodes. After the time of flight sensor collects the distance data, it sends the distance data to the time of flight service. After the time of flight service obtains the distance data, it sends the collected distance data to the application service layer through the process communication framework. The distance data will be used for interactive use such as controller data calls, user interfaces, and program applications.
[0070] In some embodiments, the projection device 2 may also be configured with an image acquisition device, which may be a binocular camera, a depth camera or a 3D camera, etc.; the image acquisition device sends the acquired image data to the camera service, and then the camera service sends the image data to the process communication framework and / or the correction service; the process communication framework sends the image data to the application service layer, and the image data will be used for interactive use such as the controller's data call, user interface, and program application.
[0071] In some embodiments, data is interacted with the application service through a process communication framework, and then the projection correction parameters are fed back to the correction service through the process communication framework; the correction service sends the projection correction parameters to the operating layer of the projection device, and the operating system generates a correction instruction based on the projection correction parameters, and sends the correction signal to the optical machine control drive module, so that the optical machine drive module adjusts the optical machine working conditions according to the projection correction parameters to complete the automatic correction of the projection picture.
[0072] In some embodiments, when a correction instruction is detected, the projection device can correct the projection image. The association relationship between the distance, the horizontal angle and the offset angle can be created in advance, and then the controller of the projection device obtains the current distance from the optical machine to the projection medium 1, and determines the target angle between the optical machine and the projection medium 1 at the current moment in combination with the associated relationship, so as to realize the projection image correction. Among them, the target angle is specifically implemented as the angle between the central axis of the optical machine and the projection surface of the projection medium 1.
[0073] In some embodiments, the projection device can be refocused after automatic calibration is completed, and the controller detects whether the automatic focusing function is turned on; if the automatic focusing function is not turned on, the controller will end the automatic focusing service; if the automatic focusing function is turned on, the controller performs focusing calculations based on the distance detection value of the time of flight sensor.
[0074] In some embodiments, the controller queries a preset mapping table based on the distance detection value of the time-of-flight sensor, and the preset mapping table records the mapping relationship between distance and focal length, so as to obtain the focal length of the projection device corresponding to the distance detection value; then the middleware sends the acquired focal length to the optical machine of the projection device; after the optical machine performs laser emission according to the above focal length, at least one camera captures the projection content image, and the controller performs clarity detection on the projection content image to determine whether the current lens focal length is appropriate. If the focal length is not appropriate, focusing processing is required. The projection device locates the focus position with the highest clarity by adjusting the lens position and shooting, and comparing the clarity changes of the projection content image before and after the adjustment.
[0075] If the judgment result meets the preset completion conditions, the control of the automatic focusing process ends; if the judgment result does not meet the preset completion conditions, the middleware will fine-tune the focal length parameters of the projection device optical machine, such as gradually fine-tuning the focal length according to the preset step length, and setting the adjusted focal length parameters to the optical machine again, through multiple photos, clarity evaluation and other steps, and finally through the clarity comparison of the projection picture, the optimal focal length is locked, thereby completing the automatic focusing.
[0076] In some embodiments, at least a lens, a distance sensor and an image acquisition device are arranged on the first plane of the projection device, and the image acquisition device may include one or more cameras. The first plane is a plane on the projection device 2 that is parallel to and opposite to the projection surface during projection.
[0077] In some embodiments, the projection device may be calibrated, and the so-called calibration refers to calculating the intrinsic parameters, extrinsic parameters, and distortion coefficients of the optical machine and camera included in the projection device (hereinafter referred to as calibration parameters), and saving the calibration parameters. In this way, the projection device 2 can call the calibration parameters when executing programs such as automatic keystone correction.
[0078] Figure 6 The schematic diagram of the structure of a calibration system is shown as an example. In some embodiments, in order to improve the calibration efficiency of the projection device, Figure 6 As shown, an embodiment of the present application provides a calibration system 100 , which includes a control device 101 , a driving device 102 , a projection device 103 and a calibration board 104 .
[0079] Among them, the control device 101 is respectively connected to the driving device 102 and the projection device 103 in communication, and the communication connection mode can be wired communication (for example: RS232 serial port) or wireless communication (for example: Wifi, Bluetooth, etc.). The control device 101 is a master control device, and can use a computer device with logical operation and control capabilities, including but not limited to: PLC (Programmable Logic Controller) equipment, host computer, PC, mobile terminal, etc. The driving device 102 and the projection device 103 are controlled objects controlled by the control device 101, and the projection device 103 can be mechanically connected to the driving device 102, so that the control device 101 can control the driving device 102 to move the projection device 103 to a preset mark position.
[0080] In some embodiments, the driving device 102 may be a motion mechanism such as a mechanical arm, a manipulator or a robot. The projection device 103 is detachably connected to the driving device 102 so as to disassemble and replace the projection device to be calibrated. The projection device 103 includes an optical machine and a camera. The optical machine is used to project a grating card onto the surface of the calibration plate 104. The camera is used to capture the card image presented by the calibration plate 104. The card image is used to enable the control device 101 to calculate the calibration parameters. The projection device 103 may be a projector, a micro-projector or the like.
[0081] The calibration plate 104 may be placed in a fixed position. Figure 7 A schematic diagram of a calibration plate is shown as an example. Figure 7 As shown, the calibration plate 104 can be a black plate, and the calibration plate 104 includes regularly distributed coding points 104a and feature points 104b. Among them, the coding point 104a is a key node on the "M"-shaped pattern on the calibration plate 104, Figure 7 There are 25 encoding points 104a in total in this example, and the remaining points are feature points.
[0082] In some embodiments, based on the calibration standard of the projection device and referring to the position where the calibration plate 104 is placed, the control device 101 can pre-plan at least one preset calibration position and store the position information of the preset calibration position. In this way, the control device 101 can send the position information of the preset calibration position to the driving device 102, so that the driving device 102 drives the projection device 103 to move to the preset calibration position. After the preset calibration position is in place, the projection device 103 controls the optical machine to project the grating card to the calibration plate 104, and controls the camera to capture the image of the card. After the current preset calibration position completes the image acquisition task, the control device 101 can send the position information of the next preset calibration position to the driving device 102, thereby switching the calibration position of the projection device 103.
[0083] Figure 8An interactive flow chart of a calibration system is shown as an example. Figure 8 As shown in the figure, the control logic of the calibration system includes:
[0084] Step S801: The control device establishes a communication connection with the projection device.
[0085] In some embodiments, the control device 101 and the projection device 103 can communicate via a serial port. The control device 101 can query whether there is an available port. If there is no available port, the control device 101 can prompt the projection device that the connection fails through a user interface or voice broadcast. If there is at least one available port, the control device 101 can set the working mode of the available port and establish a communication connection with the projection device 103 through the available port. The working mode of the port includes but is not limited to: baud rate, data bit, stop bit, checksum, etc.
[0086] Step S802: The control device sends a calibration start instruction to the projection device.
[0087] In some embodiments, the control device 101 may use a preset format to send instructions and messages to the projection device 103. The preset format may be defined as: start code + data length + command code + data code + check code + end code. In one example, the calibration instruction is configured as 0xDD, 0xFF, 0x00, 0x05, 0xF4, 0x03, 0x00, 0x00, 0xF1, 0xBB, 0xCC. Among them, 0xDD, 0xFF are fixed format start codes, indicating the start of an instruction message; 0x00, 0x05 are the data lengths of the command code, data code and check code; 0xF4, 0x03, 0x00, 0x00 are command codes, indicating that the control device 101 sends a start calibration instruction to the projection device 103; 0xF1 is a check code; 0xBB, 0xCC are fixed format end codes, indicating the end of an instruction message.
[0088] Step S803: the projection device performs calibration environment initialization in response to the calibration start instruction.
[0089] In some embodiments, the calibration environment initialization includes but is not limited to: calling the DLP (Digital Light Processing) projection coordinate control module to enlarge the projection screen until the maximum projection area is reached; calling the focus module according to the distance between the calibration plate 104 and the projection device 103, adjusting the focal length mapped to the distance to complete the camera focus and ensure the clarity of the projection screen; and calling the optical machine adjustment module to adjust the light source brightness of the optical machine to the preset brightness under the calibration environment. If the calibration environment initialization fails, the projection device 103 can send an initialization failure message to the control device 101, and the initialization failure message is used to indicate that the control device 101 prompts that the calibration function fails to start.
[0090] Step S804: the control device receives the initialization completion message sent by the projection device, and sends exposure parameter information to the projection device.
[0091] In some embodiments, the grating image card projected by the projection device 103 to the calibration plate 104 can present a sinusoidal grating characteristic. The grating image card can include M groups of horizontal stripe image cards and vertical stripe image cards of different frequencies. Each group of frequencies maps N phases (M frequencies and N phases). There are M*N grating image cards with horizontal stripes and M*N grating image cards with vertical stripes, for a total of 2M*N stripe image cards. Fig. 9 The schematic diagram of the category of raster image cards is shown as an example. Fig. 9 As shown in the view (a) in FIG. 1 , a horizontal stripe chart refers to a grating chart with multiple horizontal stripes distributed along the longitudinal direction; Fig. 9 As shown in the view (b) in FIG. 1 , the vertical stripe chart refers to a grating chart with multiple vertical stripes distributed in the horizontal direction. The grating chart also includes a black and white chart without stripes, such as Fig. 9 As shown in views (c) and (d) in FIG. 1 , the black and white card includes 1 pure black card and 1 pure white card. In this way, the horizontal and vertical striped cards and the black and white cards are combined, and the grating cards total 2M*N+2.
[0092] The projection device 103 stores 2M*N+2 grating image cards, and can also set the projection order of the 2M*N+2 grating image cards according to the image card type, frequency and phase, for example: projecting Vertical stripes card, pure white card, pure black card, Where i represents the frequency group number, 1≤i≤M, f i represents the frequency of the i-th group; j represents the phase category number, 1≤j≤N, represents the jth phase.
[0093] When the projection device 103 sequentially projects 2M*N+2 grating cards, each time a grating card is projected, the camera is controlled to capture the corresponding card image, so that a total of 2M*N+2 card images are captured at each preset mark position. When the projection device 103 collects the card image, the camera exposure parameters need to be configured. The exposure parameters include the exposure time, which refers to the time interval from the opening to the closing of the shutter in order to project light onto the photosensitive surface of the photographic photosensitive material. The longer the exposure time, the more light enters.
[0094] Since each grating card has different properties, including but not limited to frequency, phase, stripe direction, pure color, etc., in order to obtain a valid card image and accurately obtain the calibration parameters of the projection device 103, the control device 101 can set corresponding exposure parameters for each grating card.
[0095] In some embodiments, the control device 101 may include a display and a memory. Fig.10 The schematic diagram of the operation interface presented by the display of the control device 101 is shown as an example. Fig.10 As shown, the operation interface includes but is not limited to: an address input control 91, a connect device button 92, a start calibration button 93, a device return to zero button 94, a change device button 95 and an exposure time setting control 96.
[0096] The address input control 91 may be used to input the IP address of the projection device 103 so as to establish a communication connection between the control device 101 and the projection device 103 .
[0097] In response to the tester clicking the connect device button 92 , the control device 101 executes step S801 to establish a communication connection with the projection device 103 .
[0098] In response to the tester clicking the start calibration button 93 , the control device 101 executes step S802 to send a start calibration instruction to the projection device 103 .
[0099] In response to the tester clicking the device return to zero button 94 , the control device 101 can control the driving device 102 to drive the projection device 103 back to the first preset calibration position so as to restart the calibration process.
[0100] In response to the tester clicking the device change button 95 , the control device 101 can control the drive device 102 to move the projection device 103 to a designated device change position, so that the drive device 103 removes the calibrated projection device and connects the next projection device to be calibrated.
[0101] In some embodiments, Fig.10As shown, the exposure time setting control 96 includes but is not limited to: a first setting sub-control 961 and a second setting sub-control 962. The first setting sub-control 961 is used to set the exposure time of the horizontal and vertical stripes chart, and the second setting sub-control 962 is used to set the exposure time of the black and white chart. Fig.10 In the example, the stripe chart has the same exposure time 1, and the solid color chart has the same exposure time 2. The control device 101 can also make the exposure time setting control 96 include more sub-controls according to the stripe direction (horizontal stripes or vertical stripes) corresponding to the grating chart, the frequency and phase of the grating, for example: a third setting sub-control for setting the exposure time of the horizontal stripe chart, a fourth setting sub-control for setting the exposure time of the vertical stripe chart, a fifth setting sub-control for setting the exposure time of the stripe chart in different frequency groups, etc.
[0102] The control device 101 sets the exposure parameters corresponding to the 2M*N+2 raster image cards, and stores these exposure parameters in the memory. In this way, after receiving the initialization success message fed back by the projection device 103, the control device 101 executes step S804 to send exposure parameter information to the projection device, and the exposure parameter information includes the exposure parameters corresponding to the 2M*N+2 raster image cards. The exposure parameter information can also adopt the preset format of "start code + data length + command code + data code + check code + end code".
[0103] In an example, the exposure parameter information is configured as: 0xDD, 0xFF, 0x00, 0x20, 0xF4, 0x04, 0x00, 0x01, 0x1A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xCB, 0xBB, 0xCC.
[0104] Among them, 0xDD, 0xFF is the start code, indicating the start of the exposure parameter information; 0x00, 0x20 is the data length of the command code, data code and check code; 0xF4, 0x04, 0x00, 0x01 is the command code, indicating that the control device 101 instructs the projection device 103 to execute the photo sequence; 0x1A indicates the number of exposure parameters issued, which is generally equal to 2M*N+2; 0x01, 0x01, 0x01, 0 x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01 represents the exposure time corresponding to the 2M*N+2 grating image cards projected in the projection order, which can be calculated according to Fig.10 The example operation interface is set, in which M=3, N=4; 0xCB is the check code; 0xBB, 0xCC are the end codes, indicating the end of an exposure parameter information.
[0105] Step S805: the projection device receives and stores exposure parameter information.
[0106] After receiving the exposure parameter information, the projection device 103 parses the exposure parameter information, obtains and stores the exposure times corresponding to the 2M*N+2 grating image cards, and then returns a successful exposure parameter storage message to the control device 101 .
[0107] Step S806: The control device sends a first instruction to the driving device to control the driving device to move the projection device to a preset target position.
[0108] In some embodiments, the driving device 102 may be a motion mechanism such as a robot arm or a manipulator. Taking a six-axis robot arm as an example, the position information of the preset reference position may include the six-axis coordinates of the robot arm, for example: (-51.528, 18.833, -69.375, 6.314, 81.415, -186.857).
[0109] In some embodiments, the control device 101 can preset and store position information of Q preset calibration positions, where Q is greater than or equal to 1. The Q preset calibration positions can be distributed in a plane parallel to the calibration plate 104, that is, the distance between the Q preset calibration positions and the calibration plate 104 is the same, so as to avoid the projection device 103 from tediously adjusting the focus. The control device 101 can also sort the Q preset calibration positions to limit the calibration order and the moving path of the projection device 103. The control device 101 can read the position information of the first preset calibration position and generate a first instruction. After the drive device 102 drives the projection device 103 to move from the device change position to the first preset calibration position in response to the first instruction, it can send a positioning message to the control device 101 to notify the control device 101 that the projection device 103 is in position at the first preset calibration position.
[0110] Step S807: The control device receives the in-position message sent by the driving device and sends a shooting instruction to the projection device.
[0111] Step S808: The projection device responds to the shooting instruction, starts the camera, and projects the grating image cards onto the calibration plate in sequence.
[0112] Step S809: the projection device controls the camera to sequentially capture the image card images corresponding to the grating image card according to the exposure parameter information.
[0113] After receiving the shooting instruction from the control device 101, the projection device 103 can obtain the exposure parameters corresponding to the 2M*N+2 grating card images stored in the local computer. Each time a grating card is projected onto the calibration board 104, the exposure parameters corresponding to the current grating card are sent to the camera. After the camera sets the exposure parameters, it shoots the card image corresponding to the current grating card. After the shooting is completed, the next grating card is projected onto the calibration board 104. Similarly, the camera shoots a total of 2M*N+2 card images at the current preset calibration position to form a card image sequence.
[0114] In some embodiments, the camera configured in the projection device 103 may be a monocular camera or a binocular camera. If it is a binocular camera, that is, including a first camera and a second camera, any one of the first camera and the second camera may be used to capture the image of the image card. When the projection device 103 projects a pure black image card onto the calibration plate 104, the first camera and the second camera may be controlled to capture the image simultaneously.
[0115] After the projection device 103 projects 2M*N+2 grating image cards at the first preset mark position and takes pictures in sequence, it can send a shooting completion message to the control device 101. The control device 101 receives the shooting completion message and controls the driving device 102 to move the projection device 103 to the next preset mark position, and executes steps S806 and S809 in a loop, until Q preset mark positions are traversed, and a total of Q image card image sequences POS are obtained.k , where k represents the number of the preset position, POS k POS represents the image sequence corresponding to the k-th preset position, 1≤k≤Q. k There is a mapping relationship with the identifier of the preset location.
[0116] In some embodiments, if after traversing Q preset mark positions, the projection device 103 detects that the shooting fails, it can send a shooting failure message to the control device 101. The shooting failure situations include but are not limited to: the camera fails to start, the camera does not take pictures according to the exposure parameters sent by the control device 101, the grating card projection fails, the card image sequence POS k Less than Q, the image sequence POS k The number of card images contained in is less than 2M*N+2. When the control device 101 receives a shooting failure message, it can prompt the shooting failure on the operation interface. In response to the user clicking the device return to zero button 94, or when receiving a shooting failure message, the control device 101 automatically triggers the re-shooting procedure. The re-shooting procedure means: the projection device 103 deletes the incomplete card image data that has been shot, the control device 101 obtains the preset device return to zero position information, and generates a second instruction according to the device return to zero position information, and sends the second instruction to the drive device 102; the drive device 102 responds to the second instruction, drives the projection device 103 to return from the Qth preset mark position to the first preset mark position, and cyclically executes steps S806 and S809 to regain POS k .
[0117] In some embodiments, if after traversing Q preset positioning positions, the projection device 103 detects that the shooting is successful, the Q image card image sequences POS are stored in the specified file. k , and sends a shooting success message to the control device 101. After the control device 101 receives the shooting success message, it can execute step S810
[0118] Step S810: The control device receives a shooting success message sent by the projection device, and sends a stop shooting instruction to the projection device.
[0119] Step S811: the projection device responds to the stop shooting instruction and turns off the camera.
[0120] After the projection device 103 finishes shooting, in response to the stop shooting instruction, the camera is promptly controlled to shut down to avoid wrong shooting and camera power consumption, thereby ensuring the safety of the projection device 103.
[0121] Step S812: Control the device to obtain the image data of the picture card.
[0122] The control device 101 can obtain the card image data from the specified file in the projection device 103 based on the communication connection with the projection device 103, and the card image data includes Q card image sequences POS k .
[0123] In some embodiments, the Q picture card image sequences POS k There are at least (2M*N+2)*Q card images in total, and the amount of data is large. In order to improve the data transmission efficiency, the control device 101 can send an ADB (Andriod DebugBridge) connection request to the projection device 103. ADB is a bridge for the control device 101 to connect to the Android projection device. ADB can include both USB data cable connection and WIFI connection. The USB data cable connection is to use the USB data cable to connect the USB interface of the control device 101 and the projection device 103 to achieve a wired connection. The WIFI connection is a wireless connection method, so that the projection device 103 can transmit the card image data to the gateway device (for example: router), and then the gateway device sends the card image data to the control device 101 through the intranet. After successfully establishing an ADB connection with the projection device 103, the control device 101 can call the ADB pull command to upload the card image data stored in the projection device 103 to the specified storage location in the control device 101.
[0124] Step S813: The control device calculates calibration parameters of the projection device according to the card image data.
[0125] After the control device 101 acquires the card image data, it can detect whether the card image data is complete, for example, detecting whether the card image data includes Q card image sequences POS k , each POS k Whether the data of the image card contains no less than (2M*N+2)*Q image cards. If the image card data is incomplete, the control device 101 may prompt in the operation interface that the calibration of the projection device has failed, and may execute a recalibration procedure.
[0126] If the card image data is complete, the control device 101 may call an algorithm module, which is used to calculate the calibration parameters of the projection device 103 according to the card image data, and the calibration parameters include but are not limited to the intrinsic parameters, extrinsic parameters and distortion coefficients of the optical machine and the camera. The algorithm module may be configured with a calibration parameter operation model, and the control device 101 may train the calibration parameter operation model in advance, so that after obtaining the complete card image data, the card image data is input into the calibration parameter operation model, and the calibration parameter operation model outputs the calibration parameters after calculation.
[0127] In some embodiments, the algorithm module can perform code point recognition and feature point recognition on the image card, establish a matching relationship between the optical machine, camera and calibration plate feature points, and use a dual-target calibration algorithm to calculate the intrinsic parameters, extrinsic parameters and distortion coefficients of the optical machine and camera. This application mainly provides a calibration control process based on the calibration system 100, and does not limit the specific calculation method of the calibration parameters.
[0128] Step S814: the projection device receives and stores the calibration parameters sent by the control device.
[0129] The control device 101 may send the calculated calibration parameters to the projection device 103 based on the communication connection with the projection device 103. The projection device 103 stores the received calibration parameters so as to call the calibration parameters when performing keystone correction.
[0130] In some embodiments, after successfully establishing an ADB connection with the projection device 103, the control device 101 can call an ADB push command to synchronously push the calibration parameters to a specified file or directory of the projection device 103, and the projection device 103 can detect whether the calibration parameters are written into the specified file or directory.
[0131] If the calibration parameters are written into the designated file or directory of the projection device 103, a calibration success message is sent to the control device 101. After receiving the calibration success message, the control device 101 can prompt the projection device that the parameter calibration has been completed through the operation interface or voice broadcast.
[0132] If the calibration parameters are not written into the designated file or directory of the projection device 103, a calibration failure message is sent to the control device 101. After receiving the calibration failure message, the control device 101 can prompt the failure of writing the calibration parameters of the projection device 103 through the operation interface or voice broadcast, and the control device 101 can also call the ADB push command again to push the calibration parameters to the projection device 103 again until a calibration success message sent by the projection device 103 is received.
[0133] To improve the accuracy of the calibration parameters, the control device 101 may verify the calibration parameters before sending the calibration parameters to the projection device 103. In some embodiments, the control device 101 may calculate the reprojection error (hereinafter referred to as: the first reprojection error) between the optical machine and the camera of the projection device 103. If the first reprojection error is greater than the first threshold value (for example: the first threshold value is 1), it means that the calibration parameter error calculated by the control device 101 is large, then the control device 101 may discard the currently calculated calibration parameters and perform a recalibration process. If the first reprojection error is not greater than the first threshold value, the calibration parameter verification is successful, and the control device 101 may send the calibration parameters to the projection device 103.
[0134] In some embodiments, if the camera configured by the projection device 103 is a binocular camera, the control device may also calculate the reprojection error between the first camera and the second camera (hereinafter referred to as the second reprojection error). If the first reprojection error is greater than the first threshold, and / or the second reprojection error is greater than the second threshold (for example, the second threshold is 0.6), the control device 101 may discard the currently calculated calibration parameters and perform a recalibration process to obtain more accurate calibration parameters. If the first reprojection error is not greater than the first threshold, and the second reprojection error is not greater than the second threshold, the calibration parameter verification is successful, and the control device 101 may send the calibration parameters to the projection device 103.
[0135] In some embodiments, after the current projection device is calibrated successfully, the projection device can be replaced, and the above calibration process can be performed on the next projection device to be calibrated. The control device 101 obtains the preset device replacement position information, generates a third instruction based on the device replacement position information, and sends the third instruction to the drive device 102; the drive device 102 responds to the third instruction, drives the projection device 103 to move from the Qth preset calibration position to the device replacement position, removes the current projection device, and connects with the next projection device to be calibrated. After the replacement of the projection device to be calibrated is completed, the control device 101 can start a new round of calibration process.
[0136] In the embodiment of the present application, the position information of the calibration plate 104, Q preset calibration positions, the device zero return position and the device replacement position can be selected through experiments. Among them, the position information may include the control coordinates for the drive device 102 to drive the projection device 103 to move to the target position. For example, if the drive device 102 is a six-axis robot, the position information includes the coordinates of the six axes of the robot. For different types of drive devices 102, the expression form of the position information is different.
[0137] In some implementations, the embodiments of the present application also provide a projection device, which may include but is not limited to: a connecting component, a communicator, a lens, an optical machine, a camera, and a controller. Among them, the connecting component can be used to achieve a mechanical connection between the projection device and the driving device. For example, the connecting component can be in the form of a snap-on component, a fastener, etc., to ensure the stability of the connection between the devices, so as to ensure the reliability of the calibration parameters and the safety of the equipment. The communicator is used to enable the projection device to communicate with the control device. The communicator may include but is not limited to: a WIFI module, a Bluetooth module, a serial port, and other wired or wireless communication modules. The controller is used to execute the program steps that the projection device 103 in the calibration system 100 is configured to execute.
[0138] In some embodiments, the controller of the projection device may be configured and run with a calibration application and a camera service. The calibration application is mainly responsible for interacting with the control device 101, and is specifically used to: respond to the calibration start instruction of the control device 101, perform calibration environment initialization, receive and store exposure parameter information issued by the control device 101, respond to the shooting instruction of the control device 101, project grating cards to the calibration board in sequence, and send the exposure parameters corresponding to each grating card to the camera service.
[0139] The camera service is used to: respond to the shooting instruction of the control device 101, start the camera, set the camera exposure parameters every time the calibration application projects a grating card to the calibration board 104, and shoot the card image corresponding to the current grating card, and collect Q card image sequences POS k , obtain the card image data, and, in response to the stop shooting instruction of the control device 101, turn off the camera.
[0140] The calibration application is also used to store the card image data, upload the card image data to the control device 101, and receive and store the calibration parameters sent by the control device 101. The software and hardware configuration of the projection device is not limited to the embodiment of the present application.
[0141] In some implementations, the present application also provides a control device, which is used to execute the program steps that the control device 101 in the calibration system 100 is configured to execute. The control device may include a control module and an algorithm module, and the control module is used to send instructions and data to the driving device 102 and the projection device 103, and receive messages returned by the driving device 102 and the projection device 103. The algorithm module is used to calculate and verify calibration parameters according to the image data of the chart card uploaded by the projection device 103.
[0142] The embodiment of the present application realizes automatic positioning and switching of calibration positions through communication between the control device, the projection device and the drive device in the calibration system, with the control device as the control subject and the drive device and the projection device as the controlled objects, intelligently controls the projection device to project the chart card onto the calibration board and collect the chart card image data, and calculates the calibration parameters according to the chart card image data, etc., thereby realizing intelligent control of the entire process of projection device calibration, significantly reducing manual participation, improving the calibration efficiency of the projection device and the accuracy of the calibration parameters, and providing reliable calibration parameters for the correction of the projection device.
[0143] In some implementations, the embodiments of the present application further provide a computer storage medium, which can be configured in the relevant equipment of the calibration system (for example, the control equipment and the projection equipment), and the computer storage medium can store a program, which, when executed, can include the program steps involved in the projection equipment calibration method implemented on the relevant equipment side of the calibration system. The computer storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0145] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. According to the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are intended to better explain the content of this disclosure, so that those skilled in the art can better use the embodiments.
Claims
1. A calibration system, characterized in that: include: A calibration plate, the calibration plate comprising regularly distributed coding points and feature points; A projection device, comprising a lens, an optical machine and a camera; A driving device connected to the projection device; A control device, connected to the driving device and the projection device, for executing: Controlling the driving device to move the projection device to Q preset calibration positions in sequence; wherein the Q preset calibration positions are distributed in a plane parallel to the calibration plate; When the projection device is in position at any preset calibration position, a shooting instruction is sent to the projection device, wherein the shooting instruction is used to instruct the projection device to control the optical machine to project a grating card onto the calibration plate, and to control the camera to shoot a card image sequence corresponding to the grating card; wherein the grating card includes a horizontal stripe card, a vertical stripe card, a pure black card, and a pure white card distributed in a preset projection order, and the horizontal stripe card and the vertical stripe card correspond to M groups of frequencies respectively, and each group of frequencies corresponds to N phases; the card image sequence includes a total of (2M*N+2) card images shot in any preset calibration position in the preset projection order; After the projection device traverses Q preset mark positions, obtaining picture card image data, the picture card image data including the picture card image sequence photographed corresponding to the Q preset mark positions; Receive the card image data uploaded by the projection device, and identify the coding points and feature points of the card image according to the card image data, establish a matching relationship between the optical machine, the camera and the feature points, and calculate the calibration parameters of the projection device; The calibration parameters are sent to the projection device.
2. The calibration system according to claim 1, characterized in that: Before controlling the driving device to move the projection device to any preset mark position, the control device is further used to execute: A start calibration instruction is sent to the projection device, wherein the start calibration instruction is used to instruct: the projection device to adjust the projection image to the maximum projection area, focus the camera according to the distance between the projection device and the calibration plate, and adjust the brightness of the light source of the optical machine to a preset brightness, so as to complete the initialization of the calibration environment of the projection device.
3. The calibration system according to claim 2, characterized in that: Before controlling the driving device to move the projection device to any preset mark position, the control device is further used to execute: Receive an initialization completion message sent by the projection device, and send exposure parameter information to the projection device; the initialization completion message is sent by the projection device after completing the initialization of the calibration environment; the exposure parameter information includes exposure parameters corresponding to the grating image card, and the exposure parameter information is used to enable the projection device to set the exposure parameters of the camera after the optical machine projects the grating image card to the calibration plate, so that the camera captures the image of the image card according to the exposure parameters.
4. The calibration system according to claim 1, characterized in that: After sending the shooting instruction to the projection device, the control device is further used to execute: If a shooting success message sent by the projection device is received, a stop shooting instruction is sent to the projection device; the shooting success message is sent by the projection device after the complete image data of the picture card is shot; the stop shooting instruction is used to instruct the projection device to turn off the camera; If a shooting failure message is received from the projection device, the driving device is controlled to move the projection device back to the first preset calibration position, and a reshooting instruction is sent to the projection device; the shooting failure message is sent by the projection device when it detects that the image data of the picture card is incomplete; the reshooting instruction is used to instruct the projection device to delete the incomplete picture card image data that has been captured, re-control the optical machine to project the grating picture card onto the calibration plate, and control the camera to reshoot the picture card image data.
5. The calibration system according to claim 1, characterized in that: Before sending the calibration parameters to the projection device, the control device is further configured to execute: Calculating a first reprojection error between the optical machine and the camera; If the first reprojection error is greater than a first threshold, discarding the currently calculated calibration parameters and re-executing the calibration process; If the first re-projection error is not greater than a first threshold, the calibration parameters are sent to the projection device.
6. The calibration system according to claim 5, characterized in that: The camera includes a first camera and a second camera, and before sending the calibration parameters to the projection device, the control device is further used to execute: calculating a second reprojection error between the first camera and the second camera; If the first reprojection error is greater than a first threshold, and / or the second reprojection error is greater than a second threshold, discarding the currently calculated calibration parameters and re-executing the calibration process; If the first reprojection error is not greater than a first threshold, and the second reprojection error is not greater than a second threshold, the calibration parameters are sent to the projection device.
7. The calibration system according to claim 1, characterized in that: After sending the calibration parameters to the projection device, the control device is further configured to execute: The driving device is controlled to move the first projection device that has been calibrated to the device replacement position, so that the driving device removes the first projection device at the device replacement position and connects the next second projection device to be calibrated.
8. A method for calibrating a projection device, characterized in that: include: The control device controls the driving device to move the projection device to Q preset calibration positions in sequence; wherein the projection device includes a lens, an optical machine and a camera, and the projection device is connected to the driving device; the Q preset calibration positions are distributed in a plane parallel to the calibration plate, and the calibration plate includes regularly distributed coding points and feature points; When the projection device is in position at any preset mark position, the control device sends a shooting instruction to the projection device. The projection device controls the optical machine to project a grating card onto the calibration plate in response to the shooting instruction, and controls the camera to shoot a card image sequence corresponding to the grating card; wherein the grating card includes a horizontal stripe card, a vertical stripe card, a pure black card, and a pure white card distributed in a preset projection order, and the horizontal stripe card and the vertical stripe card correspond to M groups of frequencies respectively, and each group of frequencies corresponds to N phases; the card image sequence includes a total of (2M*N+2) card images shot at any preset calibration position in the preset projection order; After the projection device traverses Q preset mark positions, obtaining picture card image data, the picture card image data including the picture card image sequence photographed corresponding to the Q preset mark positions; The control device receives the card image data uploaded by the projection device, and identifies the coding points and feature points of the card image according to the card image data, establishes a matching relationship between the optical machine, the camera and the feature points, and calculates the calibration parameters of the projection device; The control device sends the calibration parameters to the projection device; The projection device receives and stores the calibration parameters.
9. A projection device, characterized in that: include: A connecting component, used for connecting with a driving device; A communicator, used for connecting with a control device; Lens; An optical machine is used to project a grating chart onto a calibration plate; wherein the calibration plate includes regularly distributed coding points and feature points, and the grating chart includes a horizontal stripe chart, a vertical stripe chart, a pure black chart, and a pure white chart distributed in a preset projection order, and the horizontal stripe chart and the vertical stripe chart correspond to M groups of frequencies respectively, and each group of frequencies corresponds to N phases; A camera, for capturing images; Controller, which performs: After being moved by the driving device to any one of the Q preset mark positions, receiving a shooting instruction sent by the control device; In response to the shooting instruction, the optical machine is controlled to project a grating card onto the calibration plate, and the camera is controlled to shoot a card image sequence corresponding to the grating card, wherein the card image sequence includes a total of (2M*N+2) card images shot at any preset calibration position according to the preset projection order; After traversing the Q preset mark positions, obtaining the picture card image data, the picture card image data comprising the picture card image sequence photographed corresponding to the Q preset mark positions; Uploading the card image data to the control device, the card image data is used to enable the control device to identify the coding points and feature points of the card image, establish a matching relationship between the optical machine, the camera and the feature points, and calculate the calibration parameters of the projection device; Receive and store the calibration parameters sent by the control device.
