Binocular-vision-based method for tracking fruit space attitude and fruit space motion
11694343 · 2023-07-04
Assignee
Inventors
- Linyun Xu (Nanjing, CN)
- Hongping Zhou (Nanjing, CN)
- Guanhua Liu (Nanjing, CN)
- Jie Zhou (Nanjing, CN)
- Yan Xuan (Nanjing, CN)
- Xuesong Jiang (Nanjing, CN)
- Qing Chen (Nanjing, CN)
Cpc classification
G06T7/246
PHYSICS
International classification
G06T7/246
PHYSICS
Abstract
A binocular-vision-based method for tracking fruit space attitude and fruit space motion, the method comprising: establishing a connected base coordinate system by taking a junction of a fruit and a fruit stem as an origin; statically photographing a feature point on the surface of the fruit and a point of the connected base coordinate system established at the junction of the fruit and the fruit stem; storing a photographed image; acquiring an inherent relationship between the feature point and the connected base coordinate system; photographing dynamic motion of the fruit; acquiring absolute coordinates of the feature point on the surface of the fruit; calculating, according to the inherent relationship between the feature point and the connected base coordinate system, absolute coordinates of a point of the connected base coordinate system at each moment corresponding to each frame of image; and respectively calculating the displacement, instantaneous speed and instantaneous acceleration of the fruit, calculating swing angular displacement and swing angular acceleration of the fruit, and calculating a fruit torsion angular speed and a fruit torsion angular acceleration at the moment t. The study of a fruit motion state in the field of forest fruit harvest through vibration is performed, so that the motion of fruits can be better tracked.
Claims
1. A computer implemented method for tracking fruit space attitude and fruit space motion, wherein the computer is configured to carry out the steps comprising: (1) marking three feature points C.sub.1, C.sub.2, C.sub.3 on a surface of a fruit; (2) establishing a connected base coordinate system by taking a junction of the fruit and a fruit stem as an origin, a X axis, a Y axis, and a Z axis of the connected base coordinate system are marked as a X connected-axis, a Y connected-axis and a Z connected-axis, respectively, and the origin of the connected base coordinate system is marked as O.sub.1, an end point of the unit vector in a positive direction of the X connected-axis is marked as X.sub.1, an end point of the unit vector in a positive direction of the Y connected-axis is marked as Y.sub.1, an end point of the unit vector in a positive direction of the Z connected-axis is marked as Z.sub.1; (3) establishing a public reference base coordinate system; (4) statically photographing the three feature points on the surface of the fruit and connected base coordinate system points c established at the junction of the fruit and the fruit stem, using software to store the photographed images, and using software to process the feature points and connected base coordinate system points O.sub.1, X.sub.1, Y.sub.1, Z.sub.1 in the images, acquiring a absolute coordinate of the feature points C.sub.1, C.sub.2, C.sub.3 and the connected base coordinate system points O.sub.1, X.sub.1, Y.sub.1, Z.sub.1, and then acquiring an inherit relationship between the feature points and the connected base coordinate system; (5) photographing the fruit dynamic motion, using software to store each frame of the image in the photographed video, using software to process the feature points in the images to acquiring the absolute coordinate of the feature points on the fruit surface, according to an inherent relationship between the feature points and the connected base coordinate system, the absolute coordinate of each frame of image corresponding to the connected base coordinate system points O.sub.1, X.sub.1, Y.sub.1, Z.sub.1 at each moment being calculated by inverse rotation transformation, and calculating an angle between the vector {right arrow over (O.sub.1Z.sub.1)} at each moment and the Z axis in the public reference base coordinate system through the space vector angle formula, and the angle representing a swing posture of the fruit; (6) rotating the {right arrow over (O.sub.1Z.sub.1)} at each moment to a position that coincides with the Z axis in the public reference base coordinate system, and calculating an angle between the rotated {right arrow over (O.sub.1Z.sub.1)} and the X axis in the public reference base coordinate system, the angle representing a twisting posture of the fruit; and (7) setting moments corresponding to two adjacent frames to t+1 moment and t moment, and calculating a displacement of the point O.sub.1 along the X axis, Y axis and Z axis of the public reference base coordinate system at t+1 moment and t moment respectively, calculating an instantaneous speed along the X axis, an instantaneous speed along the Y axis, and an instantaneous speed along the Z axis of the fruit at t moment according to the displacement, calculating an instantaneous acceleration along the X axis, an instantaneous acceleration along the Y axis and an instantaneous acceleration along the Z axis of the fruit at t moment according to the instantaneous speed, calculating a swing angular displacement of the fruit in a time interval between the two adjacent frames of images, sequentially calculating a swing angular speed of the fruit at t moment and a swing angular acceleration of the fruit at t moment via the swing angular displacement, and calculating a torsion angular speed of the fruit at t moment and a torsion angular acceleration of the fruit at t moment according to the torsion angular degree from t moment to t+1 moment.
2. The method according to claim 1, wherein the step (2) includes: establishing the connected base coordinate system by taking a junction of the fruit and the fruit stem as the origin, and taking a line between the junction of the fruit and the fruit stem and a center point of the fruit as a center line, the center line being the Z axis of the connected base coordinate system, which being marked as the Z connected-axis, taking a direction from the central point pointing to the joining point as the positive direction of the Z connected-axis, establishing the X axis and Y axis of the connected base coordinate system on a plane perpendicular to the Z axis of the connected base coordinate system, and marking them as X connected-axis and Y connected-axis respectively; marking the origin of the connected base coordinate system as O.sub.1, marking the end point of the unit vector in the positive direction of the X connected-axis as X.sub.1, marking the end point of the unit vector in the positive direction of the Y.sub.1 connected-axis as Y.sub.1, and marking the end point of the unit vector in the positive direction of the Z connected-axis as Z1.
3. The method according to claim 2, wherein the absolute coordinates are spatial coordinates in the public reference base coordinate system, and the unit vectors of the coordinate axis of the public reference base coordinate system are:
X=(1 0 0).sup.T, Y=(0 1 0).sup.T, Z=(0 0 1).sup.T.
4. The method according to claim 3, wherein the step (4) includes: (a) under static conditions, using two high-speed cameras to statically photograph the three feature points on the surface of the fruit and the points O.sub.1, X.sub.1, Y.sub.1, Z.sub.1 of the connected base coordinate system established at the junction of the fruit and the fruit stem, using software to store the photographed images, and using software to process the feature points C.sub.1, C.sub.2, C.sub.3 and the connected base coordinate system points O.sub.1, X.sub.1, Y.sub.1, Z.sub.1 in the images, acquiring the absolute coordinate of the feature points C.sub.1, C.sub.2, C.sub.3 and the absolute coordinate of the connected base coordinate system points O.sub.1, X.sub.1, Y.sub.1, Z.sub.1; (b) creating vectors {right arrow over (C.sub.1C.sub.2)} and {right arrow over (C.sub.1C.sub.3)} via absolute coordinate, unitizing {right arrow over (C.sub.1C.sub.2)} and {right arrow over (C.sub.1C.sub.3)} creating vector {right arrow over (C.sub.1O.sub.1)}, vector {right arrow over (C.sub.1X.sub.1)}, vector {right arrow over (C.sub.1Y.sub.1)} and vector {right arrow over (C.sub.1Z.sub.1)}; (c) doing a vector product of unitized {right arrow over (C.sub.1C.sub.2)} and {right arrow over (C.sub.1C.sub.3)} to get: {right arrow over (Y)}={right arrow over (C.sub.1C.sub.2)}×{right arrow over (C.sub.1C.sub.3)}, doing a vector product of {right arrow over (X)}={right arrow over (C.sub.1C.sub.2)} and {right arrow over (Y)} to get: {right arrow over (Z)}={right arrow over (X)}×{right arrow over (Y)}, thus, establishing a coordinate system C.sub.xyz by taking feature point C.sub.1 as an origin, the coordinate axis vector of the coordinate system C.sub.xyz is: {right arrow over (X.sub.C.sub.
5. The method according to claim 4, wherein the step (5) includes: (a) using two high-speed cameras to photograph the fruit dynamic motion, using software to store each frame of image of the photographed video, using software to process the feature points in the images, and obtaining the absolute coordinate of the feature points on the surface of the fruit; (b) calculating angles α.sub.x.sub.
6. The method according to claim 5, wherein the step (6) includes: (a) using the axis rotation matrix to rotate {right arrow over (O.sub.1Z.sub.1)} at the moment corresponding to a certain frame of image to a position that coincides with the Z axis in the public reference base coordinate system, calculating the angle between the rotated {right arrow over (O.sub.1X.sub.1)} and the X axis in the public reference base coordinate system, the angle represents an twisting posture of the fruit at the moment corresponding to the frame image, detail as follows: the Z connected-axis direction vector of the frame of image is:
7. The method according to claim 6, wherein the step (7) includes: (a) setting moments corresponding to two adjacent frames of images to t+1 moment and t moment, based on the point O.sub.1 of the connected base coordinate system in adjacent two frames of images, and calculating the displacement of the point O.sub.1 along the X axis of the public reference base coordinate system at t+1 moment and t moment respectively:
S.sub.x=x.sub.O.sub.
S=√{square root over (S.sub.x.sup.2+S.sub.y.sup.2+S.sub.z.sup.2)} (13); (b) using the average speed of the point O.sub.1 moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous speed v.sub.x(t) of the fruit along the X axis at t moment:
v=√{square root over (v.sub.x(t).sup.2+v.sub.y(t).sup.2+v.sub.z(t).sup.2)} (15); (c) using the acceleration of the point O.sub.1 moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous acceleration a.sub.x(t) of the fruit along the X axis at the t moment:
a=√{square root over (a.sub.x(t).sup.2+a.sub.y(t).sup.2+a.sub.z(t).sup.2)} (17); (d) using the angle from the Z connected-axis at t moment to the Z connected-axis at t+1 moment to represent the swing angular displacement of the fruit in Δt:
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Various other features and attendant advantages of the present invention will be more fully appreciated from the following detailed description when considered in connection with the accompanying drawings in which like reference characters designate like or corresponding parts throughout the several views, and wherein:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION OF THE ILLUSTRATED EMBODIMENT
(11) The following further describes the specific implementation of the present invention based on
(12) This embodiment provides a binocular-vision-based method for tracking fruit space attitude and fruit space motion.
(13) Mark three feature points
C.sub.3 on the surface of the fruit.
(14) Establish a method for setting the fruit posture in space. The fruit is regarded as a rigid body, which does not deform in any state, and the fruit is regarded as a standard rotating body. establishing the connected base coordinate system by taking a junction of the fruit and the fruit stem as the origin, and taking a line between the junction of the fruit and the fruit stem and a center point of the fruit as a center line, the center line being the Z axis of the connected base coordinate system, which being marked as the Z connected-axis, taking a direction from the central point pointing to the joining point as the positive direction of the Z connected-axis, establishing the X-axis and Y-axis of the connected base coordinate system on a plane perpendicular to the Z-axis of the connected base coordinate system, and marking them as X connected-axis and Y connected-axis respectively; marking the origin of the connected base coordinate system as O.sub.1, marking the end point of the unit vector in the positive direction of the X connected-axis as X.sub.1, marking the end point of the unit vector in the positive direction of the Y connected-axis as Y.sub.1, and marking the end point of the unit vector in the positive direction of the Z connected-axis as Z.sub.1. Using this method, the movement of the fruit in space can be decomposed into translation, swinging around the junction of the fruit stem and the fruit, and twisting around the centerline. Using this method, the movement of the fruit in space can be decomposed into translation, swinging around the junction of the fruit stem and the fruit, and twisting around the centerline. Using this method, the movement of the fruit in space can be decomposed into translation, swinging around the junction of the fruit stem and the fruit, and torsion movement around the centerline.
(15) Establish a public reference base coordinate system, the unit vector of the coordinate axis of the public reference base coordinate system is:
(16)
Z=(0 0 1).sup.T.
(17) The absolute coordinates described in this article are all spatial coordinates in the public reference base coordinate system. The vectors described in this article are all vectors in the public reference base coordinate system.
(18) Since the feature points on the fruit surface tracked by the binocular camera cannot directly reflect the spatial posture of the fruit, this embodiment invented a method for creating a fixed relationship between the conjoined base and the feature points on the fruit surface. First, using two high-speed cameras 1-1 (M310, VEO 410) to statically photograph the three feature points on the surface of the fruit and the points
Z.sub.1 of the connected base coordinate system established at the junction of the fruit and the fruit stem, using Phantom software to store the photographed images, and using TEMA software to process the feature points and the connected base coordinate system points
Z.sub.1 in the images, export the spatial absolute coordinate of the feature points
C.sub.3 and the points
Z.sub.1 of the connected base coordinate system and then establish an inherent relationship between the feature points and the connected base coordinate system. Referring to
(19) (a) under static conditions, using two high-speed cameras (M310, VEO 410) to statically photograph the three feature points
C.sub.3 on the surface of the fruit and the points
Z.sub.1 of the connected base coordinate system established at the junction of the fruit and the fruit stem, using Phantom software to store the photographed images, and using TEMA software to process the feature points
C.sub.3 and the connected base coordinate system points
Z.sub.1 in the images, acquiring the absolute coordinate of the feature points
C.sub.3 and the absolute coordinate of the connected base coordinate system points
Z.sub.1; the absolute coordinate of feature point C.sub.2 is (
z.sub.C.sub.
z.sub.C.sub.
(20) absolute coordinate of feature point C.sub.3 is (
z.sub.C.sub.
(21) (b) creating vectors {right arrow over (C.sub.1C.sub.2)} and {right arrow over (C.sub.1C.sub.3)} via absolute coordinate, unitizing {right arrow over (C.sub.1C.sub.2)} and {right arrow over (C.sub.1C.sub.3)}, {right arrow over (C.sub.1C.sub.2)} and {right arrow over (C.sub.1C.sub.3)} are:
(22) {right arrow over (C.sub.1C.sub.2)}=(X.sub.C.sub. y.sub.C.sub.
z.sub.C.sub.
y.sub.C.sub.
z.sub.C.sub.
y.sub.O.sub.
z.sub.O.sub.
(23) is the coordinate of the point O.sub.1 of the connected base coordinate system in the public reference base coordinate system; and use the same method to create vector
vector {right arrow over (C.sub.1Y.sub.1)} and vector {right arrow over (C.sub.1Z.sub.1)};
(24) (c) doing a vector product of unitized {right arrow over (C.sub.1C.sub.2)} and {right arrow over (C.sub.1C.sub.3)} to get: {right arrow over (Y)}={right arrow over (C.sub.1C.sub.2)}× {right arrow over (C.sub.1C.sub.3)}, doing a vector product of {right arrow over (X)}={right arrow over (C.sub.1C.sub.2)} and {right arrow over (Y)} to get: {right arrow over (Z)}={right arrow over (X)}×{right arrow over (Y)}, thus, establishing a coordinate system C.sub.xyz by taking feature point C.sub.1 as an origin, the coordinate axis vector of the coordinate system C.sub.xyz is: X.sub.C.sub.=
=(
z.sub.C.sub.
γ.sub.x between the vector {right arrow over (X.sub.C.sub.
γ.sub.y between the vector Y.sub.C.sub.
γ.sub.z between the vector {right arrow over (Z.sub.C.sub.
(25)
(26) wherein
p.sub.2 respectively correspond to the X coordinate, Y coordinate, and Z coordinate of the space vector;
(27) the coordinate conversion matrix is:
(28)
(29) the coordinates of point O.sub.1 under the coordinate system C.sub.xyz are obtained by formula (2):
(30)
(31) wherein, {right arrow over (C.sub.1O.sub.1)}=(x.sub.O.sub.
(32) similarly,
(33)
wherein the coordinates corresponding to
(34)
are the coordinates of points X.sub.1, Z.sub.1 under the coordinate system C.sub.xyz; the vector {right arrow over (C.sub.1X.sub.1)}, the vector {right arrow over (C.sub.1Y.sub.1)}, and the vector {right arrow over (C.sub.1Z.sub.1)} are all obtained from the above-mentioned step (b); the coordinates corresponding to
(35)
are use coordinates of points
Z.sub.1 under the feature point coordinate system C.sub.xyz, that is, it represents the inherent relationship between the feature point and the connected base coordinate system. The inherent relationship in this embodiment is:
(36)
(37) The fruit space motion process is divided into translation, swing and torsion, and the motion process is shown in
Z.sub.1 at each moment being calculated by the inverse rotation transformation, and calculating an angle between the vector {right arrow over (O.sub.1Z.sub.1)} at each moment and the Z axis in the public reference base coordinate system through the space vector angle formula, and the angle representing the swing posture of the fruit. Rotate the {right arrow over (O.sub.1Z.sub.1)} at each moment to a position that coincides with the Z axis in the public reference base coordinate system, and calculating an angle between the rotated {right arrow over (O.sub.1X.sub.1)} and the X axis in the public reference base coordinate system, the angle representing the twisting posture of the fruit, details as follows:
(38) (a1) Use two high-speed cameras 1-1 to photograph fruit dynamic motion, use Phantom software to store each frame of image of the photographed video, use TEMA software to process the feature point in the image, and export the absolute coordinate of the feature point on the fruit surface frame by frame;
(39) (b1) Follow the above-mentioned steps (b) and (c) to establish a coordinate system C.sub.xyz by taking the feature point C.sub.1 in one frame of image corresponding to t moment as an origin;
(40)
are the coordinate axis vector of the coordinate system C.sub.xyz established by taking the feature point C.sub.1 in one frame of image corresponding to t moment as an origin;
(41) calculating angles
γ.sub.x.sub.
(42)
and the X axis, Y axis, and Z axis of the public reference base coordinate system at t moment through the calculation formula of the space vector angle, calculating angles
γ.sub.y.sub.
(43)
and the X axis, Y axis and Z axis of the public reference base coordinate system, calculating angles
γ.sub.z.sub.
(44)
and the X axis, Y axis and Z axis of the public reference base coordinate system, then the coordinate conversion matrix at t moment is:
(45)
(46) the coordinates of point O.sub.1 in the public reference base coordinate system, that is, the absolute coordinate is:
(47)
(48) wherein (
z.sub.O.sub.
Z.sub.O.sub.
(49)
are the coordinate of point O.sub.1 in the coordinate system C.sub.xyz; similarly, calculating the absolute coordinate of the points
Z.sub.1 under t moment;
(50) wherein, the vector corresponding to the absolute coordinate of point X.sub.1 at t moment is equal to the vector corresponding to the absolute coordinate of point C.sub.1 at t moment plus the vector of A.sub.t.sup.−1 multiplied by the coordinates of point X.sub.1 under the coordinate system C.sub.xyz; the absolute coordinate calculation method of point Y.sub.1 and point Z.sub.1 can be deduced by analogy;
(51) each frame of image is independent of each other, and corresponds to a moment respectively, and solves the absolute coordinates of the points
Z.sub.1 of the connected base coordinate system at each moment frame by frame; calculate the angle θ between the vector {right arrow over (O.sub.1Z.sub.1)} at each moment and the Z axis in the public reference base coordinate system through the space vector angle formula:
(52)
(53) wherein {right arrow over (O.sub.1Z.sub.1)}=(x.sub.z.sub. is the unit vector of the Z axis in the public reference base coordinate system, the angle θ between the vector {right arrow over (O.sub.1Z.sub.1)} and the Z axis in the public reference, base coordinate system represents a swing posture of the fruit.
(54) (c1) using the axis rotation matrix to rotate {right arrow over (O.sub.1Z.sub.1)} (that is, Z connected-axis) at the moment corresponding to a certain frame of image to a position that coincides with the Z axis in the public reference base coordinate system, calculating the angle between the rotated {right arrow over (O.sub.1X.sub.1)} and the X axis in the public reference base coordinate system, the angle represents a twisting posture of the fruit at the moment corresponding to the frame image, detail as follows:
(55) the Z connected-axis direction vector of the frame of image is: ={right arrow over (O.sub.1Z.sub.1)}=(x.sub.z.sub.
(56)
(57) calculating the angle ψ between the projection of {right arrow over (O.sub.1Z.sub.1)} (that is, Z connected-axis) in the X axis and Y axis of the public reference base coordinate system and the Y axis of the public reference base coordinate system:
(58)
(59) calculating the axis rotation matrix:
(60)
(61)
(62) the absolute coordinate of the rotated point X.sub.1 is consistent with the coordinate of the rotated vector {right arrow over (O.sub.1X.sub.1)}, and the rotated vector {right arrow over (O.sub.1X.sub.1)} is:
(63)
(64) wherein, is the vector {right arrow over (O.sub.1X.sub.1)} before the {right arrow over (O.sub.1Z.sub.1)} of the frame of image is rotated;
(65) the torsion angular degree is:
(66)
(67) the torsion angular degree is the angle between the rotated vector {right arrow over (O.sub.1X.sub.1)} and the X axis in the public reference base coordinate system, which represents the torsion posture of the fruit at the moment corresponding to the frame image, wherein is the unit vector of the X axis in the public reference base coordinate system.
(68) (d1) Similarly, in step (c1), calculating the twisting posture of the fruit at each moment corresponding to each frame image.
(69) A study method of fruit space motion, the space motion of fruit needs to use public reference base coordinates to express its absolute motion. Setting the moments corresponding to two adjacent frames of images to t+1 moment and t moment, based on the point O.sub.1 of the connected base coordinate system in adjacent two frames of images, and calculating the displacement of point O.sub.1 along the X axis, Y axis and Z axis of the public reference base coordinate system at t+1 moment and t moment respectively. calculating an instantaneous speed along the X axis, an instantaneous speed along the Y axis, and an instantaneous speed along the Z axis of the fruit at t moment according to the displacement, calculating an instantaneous acceleration along the X axis, an instantaneous acceleration along the Y axis and an instantaneous acceleration along the Z axis of the fruit at t moment according to the instantaneous speed, calculating a swing angular displacement of the fruit in the time interval between two adjacent frames of images, sequentially calculating a swing angular speed of the fruit at t moment and a swing angular acceleration of the fruit at t moment via the swing angular displacement, and calculating the torsion angular speed of the fruit at t moment and the torsion angular acceleration of the fruit at t moment according to the torsion angular degree from t moment to t+1 moment. The fruit space motion process is divided into translation, swing and torsion, and the motion process is shown in
(70) Wherein, the instantaneous speed moving along the X Y Z axis, the instantaneous acceleration moving along the X Y Z axis, the swing angular displacement, the swing angular speed, and the swing angular acceleration within the frame time interval, the torsion angular degree, the torsion angular speed, and the torsion angular acceleration within the frame time interval all indicate the tracked fruit space motion status. The specific calculation method is as follows:
(71) (a2) setting moments corresponding to two adjacent frames of images to t+1 moment and t moment, based on the point O.sub.1 of the connected base coordinate system in adjacent two frames of images, and calculating the displacement of the point O.sub.1 along the X axis of the public reference base coordinate system at t+1 moment and t moment respectively:
S.sub.x=x.sub.O.sub.
(72) wherein x.sub.O.sub.
S=√{square root over (S.sub.x.sup.2+S.sub.y.sup.2+S.sub.z.sup.2)} (13);
(73) (b2) using the average speed of the point O.sub.1 moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous speed v.sub.x(t) of the fruit along the X axis at t moment:
(74)
(75) wherein Δt is the interval time between two frames of images; similarly, the instantaneous speed v.sub.y (t) of the fruit along the Y axis of the public reference base coordinate system at t moment and the instantaneous speed v.sub.z (t) of the fruit along the Z axis at t moment can be obtained, then the combined speed of the fruit at t moment is:
v=√{square root over (v.sub.x(t).sup.2+v.sub.y(t).sup.2+v.sub.z(t).sup.2)} (15);
(76) (c2) using the acceleration of the point O.sub.1 moving along the X axis of the public reference base coordinate system from t moment to t+1 moment to express the instantaneous acceleration a.sub.x(t) of the fruit along the X axis at the t moment:
(77)
(78) wherein v.sub.x (t+1) is the instantaneous speed of the fruit along the X axis at t+1 moment, and v.sub.x(t) is the instantaneous speed of the fruit along the X axis at t moment; similarly, the instantaneous acceleration a.sub.y (t) of the fruit along the Y axis of the public reference base coordinate system at t moment and the instantaneous acceleration a.sub.z (t) of the fruit along the Z axis of the public reference base coordinate system at t moment can be obtained; then the combined acceleration of the fruit at t moment is:
a=√{square root over (a.sub.x(t).sup.2+a.sub.y(t).sup.2+a.sub.z(t).sup.2)} (17);
(79) (d2) since there are too many solving moments, this embodiment lists the positions of the connected base coordinate system of adjacent t+1 moment and t moment corresponding to two adjacent frames of images to indicate the swing and twist of the fruit. For convenience of representation, the origins of the conjoined base coordinates of two adjacent moments are overlapped, as shown in
(80)
(81) wherein
(82)
is the direction vector of Z connected-axis at t moment, that is t moment vector {right arrow over (O.sub.1Z.sub.1)};
(83)
is the direction vector of Z connected-axis at t+1 moment, that is t+1 moment vector {right arrow over (O.sub.1Z.sub.1)};
(84) (e2) using the average swing angular speed from t moment to t+1 moment to express the t swing angular speed ω.sub.θ.sub.
(85)
(86) (f2) using the amount of change of the swing angular speed from t moment to t+1 moment to express the swing angular acceleration a.sub.θ.sub.
(87)
(88) (g2)
(89) similarly, in formula (10) of step (c1), the vector {right arrow over (O.sub.1X.sub.1)} rotated at t moment is:
(90)
(91) wherein
(92)
is the vector {right arrow over (O.sub.1X.sub.1)} before the Z connected-axis rotation at t moment;
(93)
is the vector {right arrow over (O.sub.1X.sub.1)} after the Z connected-axis rotation at t moment; T.sub.2.sub.
(94) the torsion angular speed degree of the fruit from t moment to t+1 moment is:
(95)
(96) wherein
(97)
is the rotated vector {right arrow over (O.sub.1X.sub.1)} at t moment,
(98)
is the rotated vector {right arrow over (O.sub.1X.sub.1)} at t+1 moment;
(99) the torsion angular speed of the fruit at t moment is:
(100)
(101) the torsion angular acceleration of the fruit at t moment is:
(102)
(103) When the inertial force generated by the vibration of vibrating fruit picking exceeds the separation force between the fruit and the fruit stem, the fruit is separated from the fruit branch or the fruit stem at the weakest connection point to complete the picking. The effect of fruit separation ultimately depends on the maximum inertial force generated when the fruit vibrates. Inertial force comes from acceleration, so acceleration response is one of the most important characteristics in fruit tree dynamics. This method can construct the trajectory of the fruit in the vibration process through the relationship between the conjoined base at the junction of the fruit stem and the fruit, and then solve the displacement, speed and acceleration of fruit at each moment, which is beneficial to explore the law of fruit movement. The binocular-vision-based method for tracking fruit space attitude and fruit space motion, the system and analysis software for taking fruit vibration photography belong to the prior art, such as binocular cameras and spatial position synthesis software.
(104) The scope of protection of the present invention includes, but is not limited to, the above-mentioned embodiments. The scope of protection of the present invention is subject to the claims. Any substitutions, modifications, and improvements that can be easily conceived by those skilled in the art made to the present invention fall within the scope of protection of the present invention.