Projection control method and device, electronic equipment and storage medium
By determining the transformation relationship and spatial transformation relationship after the position of the human body bearing object changes, the projection image is controlled in real time to project on the moving human body bearing object, which solves the problem that the projection image cannot be projected on the moving object in real time in the prior art, and improves projection Speed and accuracy simplify the projection process.
Patent Information
- Application Number
- CN202410939933.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-22
AI Technical Summary
The existing projection technology cannot realize real-time projection of projected images on moving human-bearing objects, and requires three-dimensional modeling and camera internal and external calibration, resulting in limited projection speed and accuracy.
By determining the transformation relationship after the position of the human body bearing object changes, combining the spatial transformation relationship between the camera and the projector, the projection image is projected onto the moving human body bearing object in real time, and the transformation relationship is represented by a homography matrix, which avoids three-dimensional modeling and The camera's internal and external parameters are calibrated to improve projection speed and accuracy.
Real-time projection of projected images on moving human body bearing objects is realized, which improves projection speed and accuracy, simplifies the projection process, and does not require three-dimensional modeling of human body bearing objects or calibration of internal and external parameters of cameras.
Smart Images

Figure CN119011791A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of projection control technology, and more specifically, to a projection control method, device, electronic device and computer-readable storage medium. Background Art
[0002] Currently, the projection can project the projection image onto a designated projection surface to display the projection image on the projection surface. However, through the existing projection means, it is impossible to realize the real-time projection of the projection image onto a moving human body carrying object. Summary of the invention
[0003] The present application proposes a projection control method, device, electronic device and storage medium to improve the above-mentioned defects.
[0004] In a first aspect, an embodiment of the present application provides a projection control method, the method comprising:
[0005] In response to determining that the position of the human-bearing object has changed according to the image captured by the camera of the human-bearing object, a first transformation relationship is determined according to the image captured by the camera of the human-bearing object after the position has changed and the image captured by the camera of the human-bearing object at the calibrated position; the first transformation relationship indicates the transformation relationship of the human-bearing object from the calibrated position to the position after the position has changed;
[0006] Determine a target transformation relationship according to the first transformation relationship, the second transformation relationship and the third transformation relationship; the second transformation relationship indicates the transformation relationship from the camera space of the camera to the projection space of the projector; the third transformation relationship indicates the transformation relationship from the content space where the projection image is located to the camera space;
[0007] According to the target transformation relationship, the projector is controlled to project the projection image.
[0008] In a second aspect, an embodiment of the present application further provides a projection control device, the device comprising:
[0009] A first determination module is used to determine, in response to determining that the position of the human body carrying object has changed according to the image captured by the camera of the human body carrying object, a first transformation relationship according to the image captured by the camera of the human body carrying object after the position has changed and the image captured by the camera of the human body carrying object at the calibrated position; the first transformation relationship indicates the transformation relationship of the human body carrying object from the calibrated position to the position after the position change;
[0010] A second determination module is used to determine a target transformation relationship according to the first transformation relationship, the second transformation relationship and the third transformation relationship; the second transformation relationship indicates the transformation relationship from the camera space of the camera to the projection space of the projector; the third transformation relationship indicates the transformation relationship from the content space where the projection image is located to the camera space;
[0011] The control module is used to control the projector to project the projection image according to the target transformation relationship.
[0012] In a third aspect, an embodiment of the present application further provides an electronic device, characterized in that it comprises: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by one or more processors, and the one or more programs are configured to execute the above method.
[0013] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.
[0014] The present application provides a projection control method, device, electronic device and storage medium. In the present application, in response to determining that the position of a human body-bearing object has changed according to an image captured by a camera of the human body-bearing object, a first transformation relationship is determined according to the image captured by the camera after the position of the human body-bearing object has changed and the image captured by the camera at the calibrated position; the first transformation relationship indicates the transformation relationship of the human body-bearing object from the calibrated position to the position after the position change; according to the first transformation relationship, the second transformation relationship and the third transformation relationship, a target transformation relationship is determined; the second transformation relationship indicates the transformation relationship from the camera space of the camera to the projection space of the projector; the third transformation relationship indicates the transformation relationship from the content space where the projection image is located to the camera space; according to the target transformation relationship, the projector is controlled to project the projection image, so that the projection image can be projected in real time onto the human body-bearing object whose position has changed, thereby realizing the real-time projection of the projection image onto the moving human body-bearing object. At the same time, there is no need to perform three-dimensional modeling on the human body-bearing object, nor is there any need to calibrate the internal and external parameters of the camera, thereby improving the projection speed.
[0015] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or can be understood by practicing the embodiments of the present application. The purposes and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1A flow chart of a projection control method proposed according to an embodiment of the present application is shown.
[0018] Figure 2 A schematic diagram showing the optical center of a projector and the optical center of a camera in an embodiment of the present application is shown.
[0019] Figure 3 A schematic diagram of a fourth captured image in an embodiment of the present application is shown.
[0020] Figure 4 A flow chart of a projection control method proposed according to another embodiment of the present application is shown.
[0021] Figure 5 A schematic diagram of a first calibration image and a first captured image in an embodiment of the present application is shown.
[0022] Figure 6 A schematic diagram of a second calibration image and a second captured image in an embodiment of the present application is shown.
[0023] Figure 7 Shown according to Figure 5 Schematic diagram of another first captured image obtained from the first calibrated image in .
[0024] Figure 8 Shows Figure 5 The first projection image in the diagram includes a schematic diagram of a first projection feature point.
[0025] Fig. 9 A schematic diagram of a calibration image, a projection area of a projector, and a shooting area of a camera in an embodiment of the present application is shown.
[0026] Fig.10 A schematic diagram showing the positions of each shooting feature point in a first shot image before and after flipping the positions of each shooting feature point according to relative directions in an embodiment of the present application is shown.
[0027] Fig.11 A flow chart of a projection control method proposed according to another embodiment of the present application is shown.
[0028] Fig.12 A schematic diagram of a target content display area in an embodiment of the present application is shown.
[0029] Fig.13 A flow chart of a projection control method proposed according to another embodiment of the present application is shown.
[0030] Fig.14 A structural block diagram of a projection control device proposed according to an embodiment of the present application is shown.
[0031] Fig.15 A schematic diagram of an electronic device provided in an embodiment of the present application is shown.
[0032] Fig.16 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0033] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. The components of the embodiment of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiment of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0034] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0035] See also Figure 1 , Figure 1 A flowchart of a projection control method proposed in one embodiment of the present application is shown, which is used in an electronic device. The method includes:
[0036] S101. In response to determining that a position of a human-bearing object has changed according to an image captured by a camera of the human-bearing object, determine a first transformation relationship according to an image captured by the camera of the human-bearing object after the position has changed and an image captured by the camera of the human-bearing object at a calibrated position.
[0037] The first transformation relationship indicates the transformation relationship of the human body carrying object from the calibrated position to the position after the position change. The position after the position change of the human body carrying object and the calibrated position of the human body carrying object are both within the shooting area of the camera.
[0038] The human body bearing object refers to an object used to receive and present the projected image in the projection technology. The object is the entire human body or a part of the human body, such as the face, palm, knee, etc. The position change of the human body bearing object can be the translation of the palm, etc. The calibration position of the human body bearing object is to place the human body bearing object in a relaxed position on the human body bearing object. The first transformation relationship can be represented in the form of a matrix. In order to realize the real-time and fast calculation of the first transformation relationship, the homography matrix (Homography Matrix, H matrix) can be used to represent the first transformation relationship.
[0039] Among them, the homography matrix is used to describe the projective transformation from one plane to another plane on a two-dimensional plane. Calculating the homography matrix usually requires at least four corresponding points (because four independent conditions are required to determine a transformation in two-dimensional space). Given a set of corresponding points in a pair of images (usually four or more), the homography matrix can be obtained by solving a system of linear equations or linear optimization methods.
[0040] Let the homogeneous coordinates of corresponding points in a pair of images be (x, y, 1) and (x1', y1', 1), the homography matrix According to the definition of the homography matrix, formula (1) is constructed as follows:
[0041]
[0042] For each set of corresponding points in a pair of images, an equation as shown in equation (1) is constructed to obtain a set of equations corresponding to the pair of images. Finally, the homography matrix H can be obtained by solving the set of equations.
[0043] In some embodiments, a camera may capture an image including an object carried by a human body at a preset frequency (eg, one frame), and by detecting the position of the object carried by the human body in the captured image, it is determined that the position of the object carried by the human body has changed.
[0044] Detecting the position of the human body object in the captured image may be detecting the position of a positioning key point on the human body object, and if the position of the positioning key point changes, it is determined that the position of the human body object changes. The positioning key points on the human body object are for example finger key points on the hand, human body bone key points, etc.
[0045] In other embodiments, the position of the object carried by the human body may be detected in real time by a detection device to determine whether the position of the object carried by the human body has changed.
[0046] In some embodiments, S101 may include: when the distance between the optical center of the projector and the optical center of the camera is less than a preset distance, in response to determining that the position of the human-bearing object has changed based on the image captured by the camera of the human-bearing object, determining a first transformation relationship based on the images captured by the camera before and after the position of the human-bearing object has changed.
[0047] Among them, there is no limitation on the positional relationship between the optical axis of the projector and the optical axis of the camera, which can be parallel or non-parallel. The optical axis of the projector can be perpendicular to the activity plane of the human body carrying object, or it can be non-perpendicular. When it is not perpendicular, the inclination angle should be kept not less than the preset angle.
[0048] like Figure 2 As shown, taking the case where the optical axis of the projector is parallel to the optical axis of the camera, O 1 is the optical center of the camera, O 2 is the optical center of the projector, Figure 2 The middle area 210 is the camera screen. Figure 2 The middle area 220 is the projector screen. The corresponding point of any point P in the camera screen in real space is on a ray at a depth of h. 1 and h 2 The positions correspond to points P ′ 1 and P ′ 2 , click P ′ 1 and P ′ 2 Corresponding points P in the projector screen 1 and P 2 .P 1 P 2 The length is the depth h of point P. 1 to h 2 When , the two-dimensional plane mapping offset value (i.e. error) from the camera to the projector. Combined with the figure, it can be seen through geometric calculation that when P is limited 1 P 2 In the case of 1 O 2 The smaller the h 1 h 2 That is, when the human body carrying the object moves within this depth range (i.e., depth h1 to h2), the error of the two-dimensional plane mapping meets the requirements for use, i.e., P 1 P 2 Less than the error threshold.
[0049] That is to say, while keeping the main optical axis of the camera and the main optical axis of the projector parallel, the smaller the distance between the optical center of the camera and the optical center of the projector, the smaller the XY direction offset caused by the change in the Z direction (depth) (that is, the smaller the error). As long as the error requirement is met, that is, the error is less than the error threshold, the purpose of replacing three-dimensional measurement with two-dimensional plane mapping can be achieved, that is, using two-dimensional coordinate calculation instead of three-dimensional coordinate calculation.
[0050] In summary, by inferring when the error is less than the error threshold, a preset distance between the optical center of the camera and the optical center of the projector can be obtained. As long as the distance between the optical center of the camera and the optical center of the projector is less than the preset distance, and the position of the object carried by the human body in the Z direction changes within the depth range corresponding to the preset distance, the purpose of replacing three-dimensional measurement with two-dimensional plane mapping can be achieved, and two-dimensional coordinate calculation can be used instead of three-dimensional coordinate calculation.
[0051] In some embodiments, determining the first transformation relationship based on images captured by the camera after the position of the human body-carrying object is changed and images captured by the camera at the calibrated position of the human body-carrying object can include: determining the first transformation relationship based on positions of key points of the human body in images captured by the camera after the position of the human body-carrying object is changed and positions of key points of the human body in images captured by the camera at the calibrated position.
[0052] Determine the first transformation relationship based on the positions of the key points of the human body in the image captured by the camera after the position of the human body-carrying object is changed and the positions of the key points of the human body in the image captured by the camera at the calibrated position, specifically including: obtaining the image captured by the camera at the calibrated position of the human body-carrying object as the fourth captured image; obtaining the image captured by the camera after the position of the human body-carrying object is changed as the fifth captured image; performing key point detection on the fourth captured image to obtain the first human body key point; performing key point detection on the fifth captured image to obtain the second human body key point; determine the first transformation relationship based on the positions of the first human body key point and the positions of the second human body key point.
[0053] Among them, performing key point detection on the fourth captured image to obtain the first human key point can be to detect the positioning key points on the human body carrying object in the fourth captured image to obtain the positioning key points on the human body carrying object in the fourth captured image, and then obtain the first human body key point based on the positioning key points on the human body carrying object in the fourth captured image. Similarly, the positioning key points on the human body carrying object in the fifth captured image can be detected to obtain the second human body key point. It should be noted that the first human body key point corresponds to the second human body key point one by one.
[0054] Figure 31 shows a schematic diagram of a fourth captured image when a palm is used as a human body carrying object. Detecting the positioning key points on the human body carrying object in the fourth captured image is to detect the finger key points in the fourth captured image, and then determine the palm key points according to the finger key points, wherein the finger key points are the positioning key points, such as Figure 3 As shown in the medium gray circle, the palm key point is the first human key point. Figure 3 Shown as black circle in the middle.
[0055] After obtaining the first human body key point and the second human body key point, the first homography matrix of the human body carrying object from the calibrated position to the position after the position change is calculated according to the coordinates of the first human body key point and the coordinates of the second human body key point as the first transformation relationship.
[0056] Still taking the palm as an example of a human body bearing object, Figure 3 It can be seen that there are 6 first human body key points and 6 second human body key points. Each first human body key point and the second human body key point corresponding to its position constitute a set of corresponding points. The equation shown in the above formula (1) is constructed to obtain an equation group consisting of 6 equations. The first homography matrix can be obtained by solving the equation group.
[0057] By limiting the distance between the optical center of the projector and the optical center of the camera to be less than a preset distance, two-dimensional plane mapping replaces three-dimensional measurement, reducing the calculation complexity, and using the homography matrix to represent the first transformation relationship, thereby improving the efficiency of the calculation of the first transformation relationship.
[0058] S102: Determine a target transformation relationship according to the first transformation relationship, the second transformation relationship, and the third transformation relationship.
[0059] Among them, the target transformation relationship indicates the transformation relationship from the content space where the projected image is located to the content position corresponding to the human body carrying object in the projection space after the position change; the second transformation relationship indicates the transformation relationship from the camera space of the camera to the projection space of the projector; the third transformation relationship indicates the transformation relationship from the content space where the projected image is located to the camera space. The first transformation relationship indicates the transformation relationship of the human body carrying object from the calibrated position to the position after the position change.
[0060] Similarly, the second transformation relationship and the third transformation relationship can also be expressed by the homography matrix.
[0061] The relative position between the camera and the projector remains unchanged. If the relative position changes, the second transformation relationship needs to be re-determined.
[0062] In some embodiments, before S102, as Figure 4 As shown, the process of determining the second transformation relationship includes S201-S203, which are specifically as follows:
[0063] S201: Obtain the relative direction between the camera and the projector.
[0064] The relative direction indicates the flipping situation between the captured image acquired by the camera and the image projected by the projector. The flipping situation can be no flipping, only vertical flipping, only horizontal flipping, and both vertical flipping and horizontal flipping. Usually, the relative direction between the camera and the projector remains unchanged.
[0065] Among them, horizontal flipping means that the image is rotated 180 degrees with the horizontal axis (X axis) as the axis. Specifically, it is to flip the image 180 degrees from left to right or from right to left, so that the content originally on the left appears on the right, and the content originally on the right appears on the left. Vertical flipping means that the image is rotated 180 degrees with the vertical axis (Y axis) as the axis. Specifically, it is to flip the image 180 degrees from top to bottom or from bottom to top.
[0066] In some embodiments, S201 includes A1-A3, which are as follows:
[0067] A1. When the projector projects the second calibration image, a second captured image corresponding to the second calibration image is acquired through a camera.
[0068] The second projection feature points in the second calibration image are symmetrically distributed about the first symmetry axis; the first symmetry axis is the vertical center axis of the second calibration image; the pixel values of the second projection feature points on both sides of the first symmetry axis are different. There are at least two second projection feature points. If there are two second projection feature points, the pixel values of the two second projection feature points are different. If there are four second projection feature points, the pixel values of the second projection feature points on both sides of the first symmetry axis are different. It is not limited whether the pixel values of the two second feature points on the same side are the same.
[0069] Take the second calibration image as a black and white chessboard image as an example, Figure 5 As shown, Figure 5 310 in is the first symmetry axis, Figure 5 (a) in the figure is the second calibration image. The gray points A and B in (a) are the second projection feature points. Figure 5 (b) in the figure is the second captured image obtained by taking the second calibration image by the camera. For the convenience of distinction, the captured feature points corresponding to the second projection feature points in the second captured image are called second captured feature points, that is, the gray points A' and B' in (b) are called first captured feature points, point A' is the second captured feature point corresponding to point A, and point B' is the second captured feature point corresponding to point B.
[0070] A2. When the projector projects the third calibration image, a third captured image corresponding to the third calibration image is acquired by the camera.
[0071] The third projection feature points in the third calibration image are symmetrically distributed about the second symmetry axis; the second symmetry axis is the horizontal center axis of the second calibration image; the pixel values of the third projection feature points on both sides of the second symmetry axis are different. There are at least two third projection feature points. If there are two third projection feature points, the pixel values of the two third projection feature points are different. If there are four third projection feature points, the pixel values of the third projection feature points on both sides of the second symmetry axis are different. It is not limited whether the pixel values of the two third feature points on the same side are the same.
[0072] Take the third calibration image as a black and white chessboard image as an example, Figure 6 As shown, Figure 6 410 in is the first straight line, Figure 6 420 in is the second straight line, Figure 6 (a) in (a) is the third calibration image, and the gray points C and D in (a) are the third projection feature points. Figure 6 (b) in the figure is the third captured image obtained by taking the third calibration image by the camera. For the convenience of distinction, the capturing feature points corresponding to the third projection feature points in the third captured image are called third capturing feature points, that is, the gray points C' and D' in (b) are called third capturing feature points, point C' is the third capturing feature point corresponding to point C, and point D' is the third capturing feature point corresponding to point D.
[0073] A3. Determine the relative direction between the camera and the projector according to the pixel values of each second projection feature point and the pixel values of each second shooting feature point corresponding to each second projection feature point in the second captured image, the pixel values of each third projection feature point and the pixel values of each third shooting feature point corresponding to each third projection feature point in the third captured image.
[0074] The relative direction indicates the flipping condition between the captured image acquired by the camera and the image projected by the projector. The relative direction includes a first relative direction and a second relative direction, the first relative direction indicates the horizontal flipping condition between the captured image acquired by the camera and the image projected by the projector, and the second relative direction indicates the vertical flipping condition between the captured image acquired by the camera and the image projected by the projector.
[0075] Wherein, whether there is a flip between the captured image acquired by the camera and the image projected by the projector and whether the flip is horizontal flip and / or vertical flip, it does not affect the positions of the second captured feature points corresponding to the second projection feature points in the second captured image and the positions of the third captured feature points corresponding to the third projection feature points in the third captured image. That is, Figure 5(b) is the second captured image obtained by the camera shooting (a) without flipping, point A' is the first captured feature point corresponding to the second projection feature point A, point B' is the first captured feature point corresponding to the second projection feature point B, Figure 7 It is the second captured image obtained by the camera shooting (a) with horizontal flipping, point A" is the first captured feature point corresponding to the second projection feature point A, and point B" is the first captured feature point corresponding to the second projection feature point B.
[0076] In some embodiments, S203 may include: determining the relative direction between the camera and the projector based on the comparison results of the pixel values of each second projection feature point and the relationship between the comparison results of the pixel values of each second shooting feature point corresponding to each second projection feature point in the second captured image, the comparison results of the pixel values of each third projection feature point and the relationship between the comparison results of the pixel values of each third shooting feature point in the third captured image corresponding to each third projection feature point in the third captured image.
[0077] Specifically, the first relative direction between the camera and the projector is determined according to the comparison result of the pixel values of each second projection feature point and the relationship between the comparison results of the pixel values of each second shooting feature point corresponding to each second projection feature point in the second shot image.
[0078] If the comparison result of the pixel values of each second projection feature point is the same as the comparison result of the pixel values of each second shooting feature point corresponding to each second projection feature point in the second captured image, the first relative direction indicates that there is no horizontal flip between the captured image acquired by the camera and the image projected by the projector; if the comparison result of the pixel values of each second projection feature point is different from the comparison result of the pixel values of each second shooting feature point corresponding to each second projection feature point in the second captured image, the first relative direction indicates that there is a horizontal flip between the captured image acquired by the camera and the image projected by the projector.
[0079] In some embodiments, a method for obtaining the pixel value of the second projection feature point and the pixel value of the first shooting feature point may include: calculating the coordinates of the second projection feature point and the coordinates of the first shooting feature point; obtaining the pixel value of the second projection feature point from the second calibration image according to the coordinates of the second projection feature point; and obtaining the pixel value of the first shooting feature point from the second shooting image according to the coordinates of the first shooting feature point.
[0080] For example, Figure 5 The second projected feature point A in (a), the area of point A is enlarged to obtain the local image of (a) as shown in Figure 8 As shown, the checkerboard image is decoded into corner points to obtain Figure 8When the coordinates of the white point are (a, b) and the chessboard step length is s, the coordinates of point A are (x–s / 2, y–s / 2). Similarly, the coordinates of points A', A", B, B', B", C, C', D and D' can be obtained.
[0081] The white point may be any point with known coordinates in the chessboard image, and may be selected according to the requirements.
[0082] like Figure 5 As shown, it is known Figure 5 The coordinates of midpoint A, point A', point B, and point B', and Figure 7 The coordinates of the midpoint A" and point B" can be used to obtain the pixel values of the corresponding points. Figure 5 In (a), the pixel value of point A is 0, and the pixel value of point B is 255. The comparison result of pixel values is v(A)>v(B). Figure 5 In (b), the pixel value of point A' is 0, the pixel value of point B' is 255, and the comparison result of the pixel values is v(A')>v(B'). Obviously, the comparison result of the pixel values of each second projection feature point is the same as the comparison result of the pixel values of each second shooting feature point. At this time, the first relative direction indicates that there is no horizontal flip between the captured image obtained by the camera and the image projected by the projector. Figure 7 The pixel value of point A" is 255, and the pixel value of point B" is 0. The comparison result of the pixel values is v(A")<v(B"). Obviously, the comparison result of the pixel values of each second projection feature point is different from the comparison result of the pixel values of each second shooting feature point. At this time, the first relative direction indicates that there is a horizontal flip between the captured image obtained by the camera and the image projected by the projector.
[0083] Specifically, the second relative direction between the camera and the projector is determined based on the comparison results of the pixel values of each third projection feature point and the relationship between the comparison results of the pixel values of each third shooting feature point in the third captured image and the corresponding third projection feature points in the third captured image.
[0084] If the comparison results of the pixel values of each third projection feature point and the comparison results of the pixel values of each third shooting feature point in the third captured image corresponding to each third projection feature point in the third captured image are the same, the second relative direction indicates that there is no vertical flip between the captured image acquired by the camera and the image projected by the projector; if the comparison results of the pixel values of each third projection feature point and the comparison results of the pixel values of each third shooting feature point in the third captured image corresponding to each third projection feature point in the third captured image are different, the second relative direction indicates that there is a vertical flip between the captured image acquired by the camera and the image projected by the projector.
[0085] Similarly, the method for obtaining the pixel value of the third projection feature point and the pixel value of the third shooting feature point can be the same as before, specifically including: calculating the coordinates of the third projection feature point and the coordinates of the third shooting feature point; obtaining the pixel value of the third projection feature point from the third calibration image according to the coordinates of the third projection feature point; obtaining the pixel value of the third shooting feature point from the fourth shooting image according to the coordinates of the third shooting feature point.
[0086] like Figure 6 As shown, it is known Figure 6 The coordinates of midpoint C, point C', point D, and point D', and Figure 7 The coordinates of the midpoint C" and point D" can be used to obtain the pixel values of the corresponding points. Figure 5 The pixel value of point C in (C) is 0, and the pixel value of point D is 255. The comparison result of the pixel values is v(C)<v(D). Figure 5 The pixel value of point C' in (D) is 0, and the pixel value of point D' is 255. The pixel value comparison result is that v(C') is less than v(D'). Obviously, the pixel value comparison result of each third projection feature point is the same as the pixel value comparison result of each third shooting feature point. At this time, the second relative direction indicates that there is no vertical flip between the captured image obtained by the camera and the image projected by the projector.
[0087] After the first relative direction and the second relative direction are acquired, the relative direction between the camera and the projector is further determined according to the first relative direction and the second relative direction.
[0088] In some embodiments, the second calibration image and the third calibration image may be the same calibration image as a fourth calibration image, which includes at least three fourth projection feature points, among which there is one fourth projection feature point that is symmetrical with the other two fourth projection feature points along the first symmetry axis and the second symmetry axis, and the pixel values of each fourth projection feature point are different.
[0089] The relative direction between the camera and the projector is automatically determined through A1-A3, avoiding the problem of inaccurate calibration of the transformation relationship from the camera space to the projection space of the projector caused by the flip between the camera and the projector.
[0090] S202: When the projector projects the first calibration image, a first captured image corresponding to the first calibration image is acquired by a camera.
[0091] The first calibration image includes the first projection feature point, and the first calibration image may be any one of the second calibration image and the third calibration image, and the first calibration image may also be the fourth calibration image.
[0092] There is no limitation on the calibration features in the first calibration image, and it can be, for example Fig. 9 The chessboard shown, Fig. 9 The area 510 in FIG. 5 is the shooting area of the camera, and the area 520 is the projection area of the projector. Both the projection area and the shooting area cover the display area of the first calibration image, and both the projection area and the shooting area cover the position before and after the position of the human body carrying object changes, that is, the activity area of the human body carrying object (such as Fig. 9 middle area 530).
[0093] S203 , determining a second transformation relationship according to the relative direction, the coordinates of each first projection feature point in the first calibration image, and the coordinates of each first shooting feature point corresponding to each first projection feature point in the first shooting image.
[0094] In some embodiments, S203 may include: flipping the positions of each first captured feature point corresponding to the positions of each first projection feature point in the first captured image according to the relative relationship, and determining the second transformation relationship according to the coordinates of the first projection feature point after the position flipping and the coordinates of the first projection feature point.
[0095] In some implementations, corner point decoding may be performed on the first calibration image and the first captured image to obtain the coordinates of the first projection feature point after position flipping and the coordinates of the first projection feature point.
[0096] Take the example that the relative direction indicates that there is only a horizontal flip between the image captured by the camera and the image projected by the projector, such as Figure 5 (a) and Figure 7 As shown, after the horizontal flipping occurs, point A is actually flipped to the position of point B'', and the coordinates of point A in the first captured image are the coordinates of point B''. That is to say, it is necessary to horizontally flip the positions of all first captured feature points, and obtain the coordinates of the first captured feature points after the position flipping as the coordinates corresponding to the actual first projection feature points in the third projection image, for example Fig.10 , Fig.10 Each letter in represents a first shot feature point, and there are 16 first shot feature points in total. Fig.10 The table on the left shows the positions of the 16 first projection feature points. Fig.10 The table on the right in the middle shows the positions of the 16 first shooting feature points after horizontal flipping. The coordinates of the first shooting feature points after horizontal flipping are the coordinates corresponding to the first projection feature points in the first shot image.
[0097] After obtaining the coordinates of the first projection feature point and the coordinates of the first shooting feature point, each first projection feature point and its corresponding first shooting feature point in the first shooting image constitute a group of corresponding points. For each group of corresponding points, an equation as shown in the above formula (1) is constructed to obtain an equation group consisting of 16 equations. The second homography matrix can be obtained by solving the equation group.
[0098] By using the homography matrix to represent the second transformation relationship, the efficiency of calculating the second transformation relationship is improved.
[0099] Through S201 - S203 , the transformation relationship from the camera space of the camera to the projection space of the projector is calibrated.
[0100] In some embodiments, before S102, as Fig.11 As shown, the process of determining the third transformation relationship includes S301-S302, which are specifically as follows:
[0101] S301. When a human-carrying object is within a shooting area of a camera and is at a calibrated position, a calibrated shooting image of the human-carrying object is acquired through a camera.
[0102] When shooting the calibration image, it is necessary to ensure that the camera can capture the complete human body object, or at least the positioning key points on the human body object. For example, taking the palm as the human body object, the left (right) palm is stretched and placed on the activity plane. The camera captures the palm. The positioning key points on the palm are as follows: Figure 3 shown.
[0103] S302 : Determine a third transformation relationship according to a position of an object indication area corresponding to a target content display area in the calibrated captured image and a position of the projection image in the content space.
[0104] Among them, the position of the target content display area on the human body carrying object is preset, and the area corresponding to the target content display area in the calibrated captured image is the object indication area. The position of the object indication area can be represented by the corner point coordinates of the target content display area, which are (l tx, lty), (rtx, rty), (lbx, l by) and (rbx, rby), respectively.
[0105] like Fig.12 As shown, Fig.12 The middle area 610 is the object indication area. The coordinates of the four corner points of the object indication area in the calibration image are obtained by reading the coordinate system as (350, 450), (450, 450), (350, 350) and (450, 450).
[0106] Among them, the position of the projected image in the content space can be determined by the resolution of the projected image. Assuming the resolution is (h, w), the projected image in the content space (that is, its own coordinate system) can be represented as (0, 0), (w, 0), (0, h) and (h, w) respectively.
[0107] After obtaining the position of the object indication area and the position of the projected image in the content space, each corner point of the object indication area and the corresponding corner point of the projected image in the content space constitute a set of corresponding points. For each set of corresponding points, an equation as shown in the above formula (1) is constructed to obtain a system of equations consisting of 4 equations. The third homography matrix can be obtained by solving the system of equations.
[0108] By using the homography matrix to represent the third transformation relationship, the efficiency of calculating the third transformation relationship is improved.
[0109] In some embodiments, before S302, the method further includes: detecting positions of human body key points of the human body carrying object in the calibrated captured image; and determining the position of the object indication area in the calibrated captured image corresponding to the target content display area in the calibrated captured image according to the positions of the human body key points in the calibrated captured image.
[0110] in, Fig.12 The black circle in the middle is the key point of the human body. As shown above, the key point detection can be performed on the human body bearing object to obtain the position of the key point of the human body. Fig.12 The medium grey circles indicate the key points for positioning.
[0111] After obtaining the positions of the key points of the human body in the calibration image, the position of the target content display area in the calibration image can be determined according to the projection conditions and the positions of the key points of the human body in the calibration image, that is, the object indication area can be determined.
[0112] In other embodiments, the user may also specify the object indication area in the calibration image.
[0113] The projection conditions are set according to the requirements. For example, the target content display area is located at the center, upper right, lower left, etc. of the area formed by the key points of the human body on the human body carrying object. Correspondingly, the object indication area in the calibration shot image should also be located at the corresponding position of the area formed by the key points of the human body in the calibration shot image. Fig.12 FIG. 2 shows the position of the object indication area in the calibration image when the target content display area is located in the center of the palm when the palm is used as the human body bearing object, that is, Fig.12 area 610 in the.
[0114] Through S301 - S302 , the transformation relationship from the content space where the projection image is located to the camera space is calibrated.
[0115] S103: Control the projector to project the projection image according to the target transformation relationship.
[0116] Among them, according to the target transformation relationship, the projection image can be quickly transformed from the content space to the projection space, and then projected by the projector, the projection image can be projected onto the human body carrying object.
[0117] At this time, the projection image is displayed in the target content display area on the human body carrying object. If the camera captures the image of the human body carrying object, the area corresponding to the target content display area on the captured image is the object indication area.
[0118] In this embodiment, in response to determining that the position of the human body carrying object has changed according to the image captured by the camera with respect to the human body carrying object, a first transformation relationship is determined according to the image captured by the camera with respect to the human body carrying object after the position has changed and the image captured by the camera with respect to the human body carrying object at the calibrated position; the first transformation relationship indicates the transformation relationship of the human body carrying object from the calibrated position to the position after the position has changed; according to the first transformation relationship, the second transformation relationship and the third transformation relationship, a target transformation relationship is determined; the second transformation relationship indicates the transformation relationship from the camera space of the camera to the projection space of the projector; the third transformation relationship indicates the transformation relationship from the content space where the projection image is located to the camera space; according to the target transformation relationship, the projector is controlled to project the projection image, so that the projection image can be projected in real time onto the human body carrying object whose position has changed, thereby realizing the real-time projection of the projection image onto the moving human body carrying object. At the same time, there is no need to perform three-dimensional modeling of the human body carrying object, nor is there any need to calibrate the internal and external parameters of the camera, thereby improving the projection speed.
[0119] During the whole process, since the object indication area is determined in the calibrated captured image after the position of the key points of the human body in the captured image is obtained, the object indication area actually obtained may not necessarily be in the target content display area in the calibrated captured image. If the object indication area that is not in the calibrated captured image is calculated and projected at this time, the actual content display area of the projected image on the human body carrying object will be inconsistent with the target content display area, that is, the display area is offset. For example, the target content display area is in the center of the palm, while the actual content display area is not in the center of the palm.
[0120] In one embodiment, a correction parameter may be set to correct the position deviation between the actual content display area and the target content display area of the projection image by using the correction parameter. The specific process is as follows: Fig.13 As shown, S103 may include:
[0121] S401: Determine a first content position corresponding to a projection image in a projection space according to a target transformation relationship.
[0122] The first content position is a position of the projection image in the projection space corresponding to the projection image when the projection image is quickly transformed from the content space to the projection space according to the target transformation relationship.
[0123] The first content position may be represented by corner point coordinates, such as (k, n), (k, s), (m, n), and (m, s).
[0124] In some implementations, controlling the projector to project the projection image according to the first content position may project the projection image into an actual content display area that is inconsistent with the target content display area.
[0125] S402: If there is a pre-calibrated correction parameter, adjust the first content position according to the correction parameter to obtain a target content position.
[0126] The target content position is the content position corresponding to the projection image when the projection image is projected to the target content display area.
[0127] In some implementations, adjusting the position of the first content according to the correction parameter is actually adjusting the coordinates representing the position of the first content by using the correction parameter.
[0128] For example, the correction parameters are (s, k), s is the horizontal correction parameter, k is the vertical correction parameter, and the corner point coordinates (m, n) representing the first content position are corrected to obtain the corner point coordinates (m+s, n+k) corresponding to the target content position.
[0129] In some embodiments, a calibration method for correction parameters includes: obtaining a fourth transformation relationship corresponding to a human-bearing object, the fourth transformation relationship indicating a transformation relationship of the human-bearing object from a calibrated position to a first position where the human-bearing object is located; the first position is determined based on a first historical image captured by a camera of the human-bearing object; determining an initial transformation relationship based on the fourth transformation relationship, the second transformation relationship, and the third transformation relationship; determining a second content position corresponding to the first projection image in the projection space based on the initial transformation relationship; controlling the projector to project the first projection image according to the second content position; wherein an actual content display area of the projected first projection image is inconsistent with a target content display area; adjusting the second content position of the projector so that the actual content display area of the first projection image is consistent with the target content display area; determining correction parameters based on the difference before and after the adjustment of the second content position.
[0130] Specifically, according to the initial transformation relationship, the first projection image is quickly transformed from the content space to the corresponding second content position in the projection space, and then the first projection image is projected onto the human body carrying object via the projector according to the second content position to obtain the actual content display area on the human body carrying object, and based on the position of the actual content display area on the human body carrying object and the target content display area, a correction instruction is sent to the projector, and the second content position is adjusted according to the correction instruction to make the actual content display area of the first projection image consistent with the target content display area, and the difference value before and after the adjustment of the second content position is saved as a correction parameter.
[0131] S403: Control the projector to project the projection image according to the target content position.
[0132] The projector is controlled to project a projection image according to the target content position, and the projection image is projected onto the human body carrying object, so that the actual content display area obtained is consistent with the target content display area.
[0133] It is understandable that before the projector is put into use, there may be no correction parameters. When the projector is put into use, the correction parameters can be determined according to the aforementioned process, and when the projector is used for the second time, the projection process is performed based on the determined correction parameters. If, after the correction parameters are corrected, the actual content display area of the projected image is inconsistent with the position of the target content display area, the correction parameter determination process is re-executed until the actual content display area of the projected image is consistent with the position of the target content display area after correction by a certain correction parameter determination. The correction parameters are determined for correction of subsequent projection processes, and the correction parameters are stored.
[0134] In this embodiment, the first content position corresponding to the projected image in the projection space is determined according to the target transformation relationship; if there is a pre-calibrated correction parameter, the first content position is corrected according to the correction parameter to obtain the target content position; the projector is controlled to project the projection image according to the target content position, thereby realizing the projection of the projection image to the target content display area on the human body carrying object, and solving the problem of the display area offset when the projection image is projected on a moving human body carrying object.
[0135] See attached Fig.14 , Fig.14 A structural block diagram of another projection control device proposed in an embodiment of the present application is shown, which is used in electronic equipment. The device 700 includes:
[0136] A first determination module 701 is used to determine, in response to determining that the position of the human body carrying object has changed according to the image captured by the camera of the human body carrying object, a first transformation relationship according to the image captured by the camera of the human body carrying object after the position has changed and the image captured by the camera of the human body carrying object at the calibrated position; the first transformation relationship indicates the transformation relationship of the human body carrying object from the calibrated position to the position after the position has changed;
[0137] A second determination module 702 is used to determine a target transformation relationship according to a first transformation relationship, a second transformation relationship and a third transformation relationship; the second transformation relationship indicates a transformation relationship from a camera space of a camera to a projection space of a projector; the third transformation relationship indicates a transformation relationship from a content space where a projection image is located to a camera space;
[0138] The control module 703 is used to control the projector to project the projection image according to the target transformation relationship.
[0139] Optionally, the control module 703 is also used to determine the first content position corresponding to the projection image in the projection space according to the target transformation relationship; if there is a pre-calibrated correction parameter, the first content position is corrected according to the correction parameter to obtain the target content position; and the projector is controlled to project the projection image according to the target content position.
[0140] Optionally, the control module 703 is also used to obtain a fourth transformation relationship corresponding to the human body-bearing object, the fourth transformation relationship indicating the transformation relationship of the human body-bearing object from a calibrated position to a first position where the human body-bearing object is located; the first position is determined based on a first historical image taken by the camera of the human body-bearing object; an initial transformation relationship is determined based on the fourth transformation relationship, the second transformation relationship and the third transformation relationship; based on the initial transformation relationship, a second content position corresponding to the first projection image in the projection space is determined; the projector is controlled to project the first projection image according to the second content position; wherein an actual content display area projected by the first projection image is inconsistent with a target content display area; the second content position of the projector is adjusted so that the actual content display area of the first projection image is consistent with the target content display area; and a correction parameter is determined based on the difference before and after the adjustment of the second content position.
[0141] Optionally, the first determination module 701 is also used to determine the first transformation relationship based on the image captured by the camera of the human body-bearing object after the position of the human body-bearing object is changed and the image captured by the camera of the human body-bearing object at the calibrated position, in response to the distance between the optical center of the projector and the optical center of the camera being less than a preset distance.
[0142] Optionally, the first determination module 701 is further used to determine the first transformation relationship according to the positions of the key points of the human body in the image captured by the camera after the position of the human body carrying object is changed and the positions of the key points of the human body in the image captured by the camera when the human body carrying object is at a calibrated position.
[0143] Optionally, the first determination module 701 is also used to obtain the relative direction between the camera and the projector; the relative direction indication is based on the flipping condition between the captured image acquired by the camera and the image projected by the projector; when the projector projects the first calibration image, the first captured image corresponding to the first calibration image is acquired through the camera; the first calibration image includes first projection feature points; the second transformation relationship is determined according to the relative direction, the coordinates of each first projection feature point in the first calibration image, and the coordinates of each first shooting feature point corresponding to each first projection feature point in the first captured image.
[0144] Optionally, the first determination module 701 is also used to obtain a second captured image corresponding to the second calibration image through a camera when the projector projects a second calibration image; the second projection feature points in the second calibration image are symmetrically distributed about a first axis of symmetry; the first axis of symmetry is the central axis in the vertical direction of the second calibration image; the pixel values of the second projection feature points on both sides of the first axis of symmetry are different; when the projector projects a third calibration image, obtain a third captured image corresponding to the third calibration image through a camera; the third projection feature points in the third calibration image are symmetrically distributed about a second axis of symmetry; the second axis of symmetry is the central axis in the horizontal direction of the third calibration image; the pixel values of the third projection feature points on both sides of the second axis of symmetry are different; determine the relative direction between the camera and the projector according to the pixel values of each second projection feature point and the pixel values of each second shooting feature point corresponding to each second projection feature point in the second shot image, the pixel values of each third projection feature point and the pixel values of each third shooting feature point corresponding to each third projection feature point in the third shot image.
[0145] Optionally, the first determination module 701 is also used to obtain a calibrated captured image for the human-bearing object through the camera when the human-bearing object is within the shooting area of the camera and is in a calibrated position; and determine the third transformation relationship according to the position of the object indication area corresponding to the target content display area in the calibrated captured image and the position of the projected image in the content space.
[0146] Optionally, the first determination module 701 is also used to detect the positions of the human body key points of the human body carrying object in the calibrated shot image; and determine the position of the object indication area in the calibrated shot image corresponding to the target content display area in the calibrated shot image according to the positions of the human body key points in the calibrated shot image.
[0147] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0148] In addition, each function in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of software function module.
[0149] Please refer to Fig.15 , Fig.15 The structural block diagram of an electronic device provided according to an embodiment of the present application is shown. The electronic device 800 may include one or more of the following components: a processor 810, a memory 820, and one or more application programs, wherein the one or more application programs may be stored in the memory 820 and configured to be executed by the one or more processors 810, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0150] The processor 810 may include one or more processing cores. The processor 810 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 820, and calling data stored in the memory 820. Optionally, the processor 810 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 810, but may be implemented separately through a communication chip.
[0151] The memory 820 may include a random access memory (RAM) or a read-only memory (ROM). The memory 820 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 820 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal 800 during use.
[0152] In addition, each function in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of software function module.
[0153] Please refer to Fig.16 , Fig.16 The structure block diagram of a computer-readable storage medium in an embodiment of the present application is shown. The computer-readable medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0154] The computer readable storage medium 900 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 900 includes a non-transient computer readable medium. The computer readable storage medium 900 has a storage space for program code 910 that performs any method step in the above method. These program codes can be read from one or more computer program products or written into one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.
[0155] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A projection control method, characterized in that: The method comprises: In response to determining that the position of the human-bearing object has changed according to the image captured by the camera of the human-bearing object, a first transformation relationship is determined according to the image captured by the camera of the human-bearing object after the position has changed and the image captured by the camera of the human-bearing object at the calibrated position; the first transformation relationship indicates the transformation relationship of the human-bearing object from the calibrated position to the position after the position has changed; Determine a target transformation relationship according to the first transformation relationship, the second transformation relationship and the third transformation relationship; the second transformation relationship indicates the transformation relationship from the camera space of the camera to the projection space of the projector; the third transformation relationship indicates the transformation relationship from the content space where the projection image is located to the camera space; According to the target transformation relationship, the projector is controlled to project a projection image.
2. The method according to claim 1, characterized in that: The step of controlling the projector to project the projection image according to the target transformation relationship includes: Determining a first content position corresponding to the projection image in the projection space according to the target transformation relationship; If there is a pre-calibrated correction parameter, the first content position is corrected according to the correction parameter to obtain a target content position; The projector is controlled to project the projection image according to the target content position.
3. The method according to claim 2, characterized in that The calibration method of the correction parameter includes: Acquire a fourth transformation relationship corresponding to the human body carrying object, wherein the fourth transformation relationship indicates a transformation relationship of the human body carrying object from the calibrated position to a first position where the human body carrying object is located; the first position is determined based on a first historical image captured by the camera of the human body carrying object; Determine an initial transformation relationship according to the fourth transformation relationship, the second transformation relationship and the third transformation relationship; Determining, according to the initial transformation relationship, a second content position corresponding to the first projection image in the projection space; Controlling the projector to project the first projection image according to the second content position; wherein an actual content display area where the first projection image is projected is inconsistent with the target content display area; adjusting a second content position of the projector so that an actual content display area of the first projection image is consistent with the target content display area; The correction parameter is determined according to the difference between the second content position before and after the adjustment.
4. The method according to claim 1, characterized in that In response to determining that the position of the human body carrying object has changed according to the image captured by the camera of the human body carrying object, determining a first transformation relationship according to the image captured by the camera of the human body carrying object after the position has changed and the image captured by the camera of the human body carrying object at the calibrated position, including: When the distance between the optical center of the projector and the optical center of the camera is less than a preset distance, in response to determining that the position of the human-bearing object has changed based on the image captured by the camera with respect to the human-bearing object, a first transformation relationship is determined based on the image captured by the camera with respect to the human-bearing object after the position has changed and the image captured by the camera with respect to the human-bearing object at the calibrated position.
5. The method according to any one of claims 1 to 4, characterized in that The determining of the first transformation relationship according to the image captured by the camera after the position of the human body carrying object is changed and the image captured by the camera at the calibrated position of the human body carrying object includes: A first transformation relationship is determined according to the positions of the key points of the human body in the image captured by the camera after the position of the human body carrying object is changed and the positions of the key points of the human body in the image captured by the camera at the calibrated position.
6. The method according to claim 1, characterized in that Before determining the target transformation relationship according to the first transformation relationship, the second transformation relationship and the third transformation relationship, the method further includes: Acquiring a relative direction between the camera and the projector; the relative direction indicates a flipping condition between an image captured by the camera and an image projected by the projector; When the projector projects a first calibration image, a first captured image corresponding to the first calibration image is acquired through the camera; the first calibration image includes a first projection feature point; The second transformation relationship is determined according to the relative direction, the coordinates of each first projection feature point in the first calibration image, and the coordinates of each first shooting feature point in the first shooting image corresponding to each first projection feature point.
7. The method according to claim 6, characterized in that The obtaining the relative direction between the camera and the projector comprises: In the case where the projector projects the second calibration image, a second captured image corresponding to the second calibration image is acquired through the camera; second projection feature points in the second calibration image are symmetrically distributed about a first symmetry axis; the first symmetry axis is a central axis in a vertical direction in the second calibration image; and pixel values of the second projection feature points on both sides of the first symmetry axis are different; When the projector projects the third calibration image, a third captured image corresponding to the third calibration image is acquired by the camera; the third projection feature points in the third calibration image are symmetrically distributed about a second symmetry axis; the second symmetry axis is a central axis in a horizontal direction in the third calibration image; and the pixel values of the third projection feature points on both sides of the second symmetry axis are different; The relative direction between the camera and the projector is determined according to the pixel values of each of the second projection feature points and the pixel values of each second shooting feature point corresponding to each of the second projection feature points in the second captured image, the pixel values of each of the third projection feature points and the pixel values of each third shooting feature point corresponding to each of the third projection feature points in the third captured image.
8. The method according to claim 1, characterized in that Before determining the target transformation relationship according to the first transformation relationship, the second transformation relationship and the third transformation relationship, the method further includes: When the human-carrying object is within the shooting area of the camera and at the calibrated position, obtaining a calibrated shot image for the human-carrying object through the camera; The third transformation relationship is determined according to a position of an object indication area corresponding to the target content display area in the calibration shot image and a position of the projection image in the content space.
9. The method according to claim 8, characterized in that Before determining the third transformation relationship according to the position of the object indication area corresponding to the target content display area in the calibrated captured image and the position of the projection image in the content space, the method further includes: Detecting positions of key points of the human body of the human body carrying object in the calibration captured image; According to the position of the human body key point in the calibrated shot image, the position of the object indication area corresponding to the target content display area in the calibrated shot image is determined.
10. A projection control device, characterized in that: The device comprises: A first determination module is configured to determine, in response to determining that a position of the human-bearing object has changed according to an image captured by a camera of the human-bearing object, a first transformation relationship according to an image captured by the camera of the human-bearing object after the position has changed and an image captured by the camera of the human-bearing object at a calibrated position; the first transformation relationship indicates a transformation relationship of the human-bearing object from the calibrated position to a position after the position has changed; A second determination module is used to determine a target transformation relationship according to the first transformation relationship, the second transformation relationship and the third transformation relationship; the second transformation relationship indicates the transformation relationship from the camera space of the camera to the projection space of the projector; the third transformation relationship indicates the transformation relationship from the content space where the projection image is located to the camera space; A control module is used to control the projector to project a projection image according to the target transformation relationship.
11. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 9.
