A calibration method for projection finger reading system based on IRCUT camera

Through the projection finger reading system based on the IRCUT camera, combined with hand recognition and OCR modules, the problem of interference of the projection interactive system by the screen size and environment in the existing technology is solved, and efficient and accurate finger reading recognition and text recognition are achieved, reducing the cost Reduce costs and improve anti-interference capabilities.

CN115082569BActive Publication Date: 2024-08-30CHONGQING TIANSHI PRECISION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210718114.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-23
Publication Date
2024-08-30
Estimated Expiration
2042-06-23

AI Technical Summary

Technical Problem

The existing projection interactive system feedbacks finger movements through the touch screen, which is limited by the screen size, has high cost, and the image is susceptible to interference from the external environment, resulting in poor finger reading recognition accuracy.

Method used

Using a projection finger reading system based on IRCUT camera, combined with hand recognition module and OCR module, through Zhang's calibration method and homography matrix calculation, accurate mapping between the projector and screen is achieved, using infrared fill light and CNN hand Key point detection improves the accuracy and anti-interference ability of finger reading recognition.

Benefits of technology

It reduces the cost of the finger-reading interactive system, improves the accuracy and anti-interference ability of fingertip positioning, meets the needs for efficient text and image recognition, and makes the hand recognition and hand key point detection models more robust.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115082569B
    Figure CN115082569B
Patent Text Reader

Abstract

The invention discloses a calibration method for a projection finger-reading system based on an IRCUT camera, comprising an IRCUT camera, a projector, an infrared fill light, a screen and a back-end processing device. The system obtains the two-dimensional coordinates of the fingertip of an index finger through a neural network model, and then converts the fingertip coordinates into screen coordinates by using the homography matrix obtained by calibration. Then, the image of the ROI above the fingertip of the index finger in the screen is extracted and transmitted to an OCR application interface. Finally, the OCR application returns the text recognition result of the position closest to the fingertip. The beneficial effects of the invention include: reducing the cost of the finger-reading interactive system, increasing the anti-interference ability of fingertip positioning, and meeting the demand for calibration of the system. The two neural network models of hand recognition + hand key point detection are used, and the recognition robustness is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of projection interaction technology, and in particular to a projection finger reading system calibration method based on an IRCUT camera. Background Art

[0002] Projector finger reading refers to the function of real-time recognition of text in the area near the fingertip in the projected image through fingertip positioning, OCR recognition and other technologies, thereby realizing projection interaction. The projection interaction systems in the prior art all use touch screens to feedback finger movements and selected areas, so the projection screen size is limited by the size of the touch screen. In addition, the cost of the touch screen is high. If a conventional projector is used, the cost will be lower, the screen size will be larger, and the display and interaction effects will be better. However, the image projected by the projector is easily affected by the external environment, and the accuracy of direct finger reading and recognition of the pointed area of ​​the image is poor. Summary of the invention

[0003] In view of the deficiencies in the above-mentioned prior art, the present invention provides a projection finger-reading system calibration method based on an IRCUT camera, which realizes the projector finger-reading interaction function, and can accurately identify the finger selected area and perform text and image recognition, with good interactive effect.

[0004] In order to achieve the above object, the present invention adopts the following technical solutions:

[0005] A method for calibrating a projection finger-reading system based on an IRCUT camera, characterized in that: the finger-reading system comprises a projector, a back-end processing device, and a screen, wherein the projector comprises a projector lens, an IRCUT camera, and an infrared fill light which are connected to each other through control,

[0006] The projector is connected to the back-end processing device for communication so as to transmit the image acquired by the IRCUT camera to the back-end processing device.

[0007] The backend processing device includes a hand recognition module, a hand key point detection module and an OCR module, which are used for hand key point recognition, ROI interception and OCR;

[0008] The backend processing device is connected to the screen for communication, so as to transmit the processed image data to the screen;

[0009] The screen is connected to the projector for communication, so as to transmit the image to the projector lens in real time, and the image is projected by the projector lens;

[0010] The calibration method of the finger reading system comprises the following steps:

[0011] S1.1, camera calibration, keep the infrared cutoff filter of the IRCUT camera as default and remove it, perform intrinsic calibration on the camera separately according to Zhang's calibration method, calculate the camera intrinsic parameter K, distortion coefficient D and reprojection error R;

[0012] S1.2, projection plane homography calibration, connect the projector to the screen and turn it on, project the dot target on the screen to the plane to be calibrated. The dot target is 18 solid black dots. The pixel coordinates of the centers of these dot targets on the screen are known to be Where i=1,2,3...18;

[0013] S1.3, use a camera to shoot the dot target projected on the plane, and use the internal distortion coefficient obtained by camera calibration in step S1.1 to perform distortion correction on the captured projection image, and calculate the pixel coordinates of the center of each dot target on the projection image after distortion correction through contour detection and centroid positioning algorithm ;

[0014] S1.4. Calculate the homography matrix H to obtain the mapping relationship between the projector and the corresponding pixels on the screen. According to the formula

[0015] (1)

[0016] Right now

[0017] (2)

[0018] After transformation

[0019] (3)

[0020] H is the 3×3 homography matrix to be solved,

[0021] Use all 18 pairs of matching points, remove the wrong matching points through the random sampling consensus algorithm, and then bring the remaining matching points into the above formula to form an overdetermined equation. The optimal solution is obtained through the least squares method. The objective function is:

[0022] (4);

[0023] S1.5. After the calibration is completed, the center coordinates of each projection target are i Substitute into formula (1) to get the pixel coordinates of the center of the circle mapped back to the screen , with the original center pixel coordinates on the screen As a reference value, calculate and The maximum Euclidean distance MaxDist, and set the distance threshold ThreDist,

[0024] (5)

[0025] If , the calibration fails; otherwise, the calibration is successful.

[0026] Furthermore, it also includes a finger reading recognition method, which specifically includes the following steps

[0027] S2.1. The projector works normally, the IRCUT camera moves in the infrared cut-off filter, and the infrared supplementary light is turned on;

[0028] S2.2. Hand key point positioning. The user presets the dominant hand in the backend processing device in advance, and obtains the pixel coordinates of a total of four key points, namely the fingertips and finger roots of the thumb and index finger of the dominant hand, from the image ;

[0029] S2.3. ROI interception. Substitute the detected four hand key point coordinates into formula (1) to obtain their pixel coordinates on the screen , and then obtain two straight lines and . The included angle between these two straight lines is α. Set the threshold degree t1. When the included angle α < t1, it means that when the ROI interception instruction is sent to the system, the system will capture the ROI image above the index fingertip on the screen and transmit it to the OCR application interface;

[0030] S2.4. ROI size setting. The size of the ROI has an initial value, and an interaction method for resetting the ROI size is defined. Set the threshold degree t2. When the positions of both hands are captured by the system and the included angle α of the non-dominant hand ≥ t2, the system will trigger the instruction to reset the ROI size. At this time, the screen coordinate of the index fingertip of the non-dominant hand will be used as the upper left corner coordinate of this area, and the screen coordinate

[0031] of the dominant hand will be used as the lower right corner coordinate of this area. When the included angle α of the non-dominant hand < t2, the ROI size setting is completed;

[0032] Further, the hand recognition module of the backend processing device uses the BlazePalm model, which is based on the SSD network architecture. It is necessary to prepare an infrared hand image dataset in advance and label the hand bounding boxes and anchor points. The hand key point detection module uses a hand 21 key point regression model based on CNN (Convolutional Neural Network). Similarly, it is necessary to prepare an infrared hand key point dataset and label the true coordinates of these key points. Its loss function is the MSE (Mean Square Error) between the true coordinates and the predicted coordinates of the key points. Finally, the two models are trained using the Adam optimization algorithm.

[0033] Further, in step S1.1, a threshold T is set for the reprojection error. When R≥T, it is regarded as a failure of camera calibration. When R<T, the camera calibration is successful, and the internal parameter K and the distortion coefficient D are saved in the system.

[0034] Further, the screen and the backend processing device are a PC computer.

[0035] Further, the FOV of the IRCUT camera is greater than the FOV of the projector.

[0036] The beneficial effects of the present invention include: reducing the cost of the finger reading interaction system, increasing the anti-interference ability of fingertip positioning, meeting the requirements for calibrating the system at the same time, and using two neural network models of hand recognition + hand key point detection, with higher recognition robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is the structural schematic diagram of the present invention;

[0038] Figure 2 is the schematic diagram of the calibration target image of the present invention;

[0039] Figure 3 is the schematic diagram of the corresponding relationship between the screen and the projection of the present invention;

[0040] Figure 4 is the schematic diagram of the included angle of the hand key point connection lines of the present invention;

[0041] Figure 5 is the schematic diagram of the interaction gesture of the recognition area size of the present invention;

[0042] Figure 6 is the calibration flow chart of the present invention;

[0043] Figure 7 is the recognition flow chart of the present invention;

[0044] Figure 8 is the ROI size setting flow chart of the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0045] The present invention will be further described in detail below in conjunction with specific embodiments and the accompanying drawings.

[0046] A calibration method for a projection finger reading system based on an IRCUT camera as shown in Figure 1-8 The hardware includes an IRCUT camera, a projector, an infrared fill light, and a screen and a backend processing device such as a PC computer. The camera FOV (field of view) needs to be greater than that of the projector to ensure that the projected image can be completely captured by the camera.

[0047] The specific steps are as follows, divided into two parts: calibration and finger reading recognition:

[0048] 1. Calibration

[0049] 1.1 Camera calibration. This step occurs before the projector is assembled and shipped from the factory. At this time, the infrared cut-off filter of the IRCUT camera remains default removed. The internal parameters of the camera are calibrated separately according to Zhang's calibration method, and the internal parameters K of the camera, the distortion coefficient D, and the reprojection error R are calculated. Usually, the camera calibration accuracy is measured by the reprojection error. A threshold T is set for this error. When R ≥ T, the camera calibration is considered failed. When R < T, the camera calibration is successful, and the internal parameters K and the distortion coefficient D are saved in the system.

[0050] 1.2 Homography calibration of the projection plane. After the projector is assembled and shipped from the factory, steps 1.2 - 1.5 need to be performed every time the projector is turned on. The projector is connected to the screen and turned on, and the dot target as shown in Figure 2 is projected onto the plane to be calibrated. To highlight the target projection, this plane should be light-colored. The target has a total of 18 solid black dots, and the pixel coordinates of the centers of these dots on the screen are known as where i = 1, 2, 3... 18.

[0051] 1.3 Remove the infrared cut-off filter of the IRCUT camera, and use the camera to take pictures of the dot target projected on the plane. To improve the calibration accuracy, it is necessary to perform distortion correction on the captured projected image using the internal parameters and distortion coefficients obtained from the camera calibration in step 1.1, and calculate the pixel coordinates of the centers of each circle on the distortion-corrected projected image through the contour detection and centroid localization algorithm .

[0052] 1.4 Calculate the homography matrix H to obtain the mapping relationship of corresponding pixels between the projection and the screen, as shown in Figure 3 . For each pair of screen-projection matching points, there is the following expression:

[0053] (1)

[0054] That is

[0055] (2)

[0056] After transformation:

[0057]

[0058] H is the 3×3 homography matrix to be solved.

[0059] The homography matrix has 8 degrees of freedom. Each pair of projection-screen matching points can form two sets of linear equations. Only four pairs of matching points are needed to get the solution. In order to prevent the occurrence of wrong matching points in step 1.3 and to reduce the center coordinate error caused by image noise, all 18 pairs of matching points are used here, and the random sampling consensus (RANSAC) algorithm is used to remove the wrong matching points. Then the remaining matching points are substituted into formula (3) to form an overdetermined equation. The optimal solution is obtained by the least squares method. The objective function is:

[0060] (4)

[0061] 1.5. After calibration, the center coordinates of each projection target are Substitute into formula (1) to get the pixel coordinates of the center of the circle mapped back to the screen , with the original center pixel coordinates on the screen As a reference value, calculate and The maximum Euclidean distance MaxDist is set for this distance. If it is greater than the threshold, it means that the calibration has failed. The discriminant is as follows:

[0062] (5)

[0063] .

[0064] 2. Finger reading recognition

[0065] 2.1. The projector works normally, the camera moves into the infrared cut-off filter, and the infrared fill light is turned on.

[0066] 2.2. Hand key point positioning. It includes a hand recognition module and a hand key point detection module. The user needs to set the dominant hand in the system in advance. For example, the dominant hand of a right-handed person is the right hand. The algorithm will obtain the pixel coordinates of four key points, namely the fingertips and bases of the thumb and index finger of the dominant hand. 。The hand recognition module uses the BlazePalm model (hand recognition model), which is based on the SSD network architecture (object detection structure). It is necessary to prepare an infrared hand image dataset in advance and label the hand bounding boxes and anchor points. The hand key point detection module uses a hand 21 key point regression model based on CNN. Similarly, it is necessary to prepare an infrared hand key point dataset and label the true coordinates of these key points. Its loss function is the MSE (mean square error) between the true coordinates and the predicted coordinates of the key points. Finally, the two models are trained using the Adam optimization algorithm.

[0067] 2.3. ROI (Region of Interest) Interception. Substitute the coordinates of the four detected hand key points into formula (1) to obtain their pixel coordinates on the screen. 。At this time, two straight lines can be obtained. and 。The included angle between these two straight lines is α, as shown in Figure 4 . Set the threshold degree t1. When the included angle α < t1, it represents sending an ROI interception instruction to the system. At this time, the system will capture the ROI image above the fingertip of the index finger on the screen and transmit it to the OCR (optical character recognition) application interface.

[0068] 2.4. ROI Size Setting. The size of the ROI has an initial value and can be reset through the positions of the fingertips of both hands. The following defines an interaction method for resetting the ROI size. Set the threshold degree t2. When the positions of both hands are captured by the system and the included angle α of the non-dominant hand is ≥ t2, the system will trigger an instruction to reset the ROI size. At this time, the screen coordinates of the fingertip of the non-dominant hand will be used as the upper left corner coordinates of this area, and the screen coordinates of the dominant hand will be used as the lower right corner coordinates of this area, as shown in Figure 5 . When the included angle α of the non-dominant hand is < t2, the ROI size setting is completed.

[0069] 2.5. OCR Text Recognition. After obtaining the ROI image through step 2.2, the OCR application will recognize the image and return the text image recognition result closest to the fingertip.

[0070] The above has introduced the technical solutions provided by the embodiments of the present invention in detail. Specific examples are used in this article to elaborate on the principles and implementation methods of the embodiments of the present invention. The descriptions of the above embodiments are only applicable to helping understand the principles of the embodiments of the present invention; at the same time, for those of ordinary skill in the art, according to the embodiments of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A method for calibrating a projection finger reading system based on an IRCUT camera, characterized in that: The finger-reading system includes a projector, a backend processing device, and a screen. The projector includes a projector lens, an IRCUT camera, and an infrared fill light that are connected and controlled with each other. The projector is connected and communicates with the backend processing device to transmit the image acquired by the IRCUT camera to the backend processing device. The backend processing device includes a hand recognition module, a hand key point detection module, and an OCR module, which are used for hand key point recognition, ROI extraction, and OCR. The backend processing device is connected and communicates with the screen to transmit the processed image data to the screen. The screen is connected and communicates with the projector to transmit the image to the projector lens in real time and project it by the projector lens. The calibration method of the finger-reading system includes the following steps. S1.

1. Camera calibration: Keep the infrared cut-off filter of the IRCUT camera removed by default, and perform internal parameter calibration on the camera alone according to the Zhang's calibration method to calculate the camera internal parameter K, the distortion coefficient D, and the reprojection error R. S1.2, projection plane homography calibration, connect the projector to the screen and turn it on, project the dot target on the screen to the plane to be calibrated. The dot target is 18 solid black dots. The pixel coordinates of the centers of these dot targets on the screen are known to be Where i=1,2,3...18; S1.3, use a camera to shoot the dot target projected on the plane, and use the internal distortion coefficient obtained by camera calibration in step S1.1 to perform distortion correction on the captured projection image, and calculate the pixel coordinates of the center of each dot target on the projection image after distortion correction through contour detection and centroid positioning algorithm ; S1.

4. Calculate the homography matrix H to obtain the mapping relationship of corresponding pixels between the projector and the screen. According to the formula (1) That is (2) After transformation (3) H is the 3×3 homography matrix to be solved. Use all 18 pairs of matching points, remove the mismatched points through the random sample consensus algorithm, and then substitute the remaining matching points into the above formula to form an overdetermined equation, and obtain the optimal solution through the least squares method. The objective function is: (4); S1.

5. After the calibration is completed, the center coordinates of each projection target are Substitute into formula (1) to get the pixel coordinates of the center of the circle mapped back to the screen , with the original center pixel coordinates on the screen As a reference value, calculate and The maximum Euclidean distance MaxDist, and set the distance threshold ThreDist, (5) if , the calibration fails, otherwise the calibration succeeds; It also includes a finger-reading recognition method, which specifically includes the following steps. S2.

1. The projector works normally, the IRCUT camera moves in the infrared cut-off filter, and the infrared fill light is turned on. S2.2, hand key point positioning, the user presets the dominant hand in the back-end processing device in advance, and obtains the pixel coordinates of the four key points of the thumb and index finger of the dominant hand from the image ; S2.

3. ROI Interception: Substitute the coordinates of the four detected hand key points into formula (1) to obtain their pixel coordinates on the screen , and then obtain two straight lines and . The included angle between these two straight lines is α. Set the threshold degree t1. When the included angle α < t1, it represents sending an ROI interception instruction to the system. The system will capture the ROI image above the fingertip of the index finger on the screen and transmit it to the OCR application interface; S2.

4. ROI size setting. There is an initial value for the size of the ROI, and an interaction method for resetting the ROI size is defined. A threshold angle t2 is set. When the positions of both hands are captured by the system and the angle α of the non-dominant hand is ≥ t2, the system will trigger an instruction to reset the ROI size. At this time, the screen coordinates of the fingertip of the index finger of the non-dominant hand will be used as the upper left corner coordinates of this area, and the screen coordinates of the dominant hand will be used as the lower right corner coordinates of this area. When the angle α of the non-dominant hand is < t2, the ROI size setting is completed; S2.

5. OCR text recognition: Through the ROI image obtained in step S2.3, the OCR application will recognize this image and return the text image recognition result closest to the fingertip.

2. The method for calibrating a projection finger reading system based on an IRCUT camera according to claim 1, characterized in that: The hand recognition module of the backend processing device uses the BlazePalm model, which is based on the SSD network architecture. It is necessary to prepare an infrared hand image dataset in advance and label the hand bounding box and anchor points. The hand key point detection module uses a hand 21 key point regression model based on CNN. Similarly, it is necessary to prepare an infrared hand key point dataset and label the true coordinates of these key points. Its loss function is the MSE between the true coordinates and the predicted coordinates of the key points. Finally, the two models are trained through the Adam optimization algorithm.

3. The method for calibrating a projection finger reading system based on an IRCUT camera according to claim 1, characterized in that: In step S1.1, set a threshold T for the reprojection error. When R≥T, it is regarded as a failure of camera calibration. When R<T, the camera calibration is successful, and the internal parameter K and the distortion coefficient D are saved in the system.

4. The method for calibrating a projection finger reading system based on an IRCUT camera according to claim 1, characterized in that: The screen and the backend processing device are PC computers.

5. The method for calibrating a projection finger reading system based on an IRCUT camera according to claim 1, characterized in that: The FOV of the IRCUT camera is greater than the FOV of the projector.

Citation Information

Patent Citations

  • Gesture recognition method

    CN107038424A

  • Gesture recognition method and device, storage medium and electronic device

    CN113158912A

  • Multi-view-angle-based panoramic reconstruction method in high-shielding multi-target environment

    CN114332758A

  • Calibration method for 3D structured light system, and electronic device and storage medium

    WO2022052313A1