Beverage bottle body code scanning angle adjusting device and method

Through the cooperation of machine vision and bottle rotation mechanism, machine learning algorithm is used to optimize the rotation bottle compensation angle, which solves the problem of deviation of the scanning angle of beverage bottle QR code, achieves fast and accurate scanning of beverage bottles and improves production efficiency.

CN118690767APending Publication Date: 2024-09-24CHINESE ACAD OF AGRI MECHANIZATION SCI GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310302808.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, during the scanning process of the beverage bottle QR code, due to the deviation of the bottle QR code and the camera, the scan is missed and the recognition is unclear. The control accuracy is low, the production progress is delayed, and the equipment is damaged, making it difficult to optimize intelligent production.

Method used

The QR code scanning angle of the beverage bottle body is corrected through machine vision calculation. The bottle rotation mechanism and roller baffle are used to clamp the beverage bottle. The bottle rotation stepper motor and screw are used to drive the rotation of the bottle rotation base. Machine learning algorithms are combined to optimize the rotation. Bottle compensation angle, quickly adjust the bottle QR code scanning angle.

Benefits of technology

It realizes fast and accurate code scanning of beverage bottles, improves production efficiency, reduces equipment damage, and optimizes the intelligent production process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690767A
    Figure CN118690767A
Patent Text Reader

Abstract

A beverage bottle body code scanning angle adjusting device and method are used for correcting a beverage bottle body two-dimensional code scanning angle, and the beverage bottle body code scanning angle adjusting device comprises a chain plate conveying mechanism; the bottle separating mechanism is arranged at the front end of the chain plate conveying mechanism and is matched with the chain plate conveying mechanism to separate the beverage bottles; the fixing frame is arranged in the middle of the chain plate conveying mechanism; the bottle rotating mechanism is arranged on one side of the chain plate conveying belt and mounted on the fixing frame; a roller baffle plate is arranged on the opposite side of the bottle rotating mechanism; the detection mechanism comprises a front end, a rear end, a top end, a bottle rotating monitoring camera and a chain plate proximity sensor, and the front end camera and the rear end camera are installed on the two sides of the chain plate conveying belt correspondingly and located at the positions close to the bottle separating mechanism and the bottle rotating mechanism correspondingly; the top camera is installed on the top of the fixing frame and right faces the chain plate conveying belt. The rotary bottle monitoring camera is arranged on one side of the fixing frame; the chain plate proximity sensor is arranged on one side of the chain plate conveying belt and is close to the bottle separating mechanism. The invention further discloses a beverage bottle body code scanning angle adjusting method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to production detection technology, and in particular to a beverage bottle body code scanning angle adjustment device and method based on multiple pattern recognition. Background Art

[0002] In order to achieve the goals of beverage product traceability, product cross-product prevention and beverage production information recording; as well as the integration of QR codes on beverage product bottle caps and bottle bodies, under the premise of real-time monitoring during the production process, scan the code as quickly as possible and integrate the QR code information on the bottle cap and bottle body to generate beverage production traceability and shipment information.

[0003] Because the QR code on the bottle is offset from the camera when the beverage passes through some workstations, there will be missed scans and unclear recognition. The parameters and actual operations of the existing technology similar to this type of machine are that the system starts to rotate the regulated target and then scans it through a high-speed scanner. The control accuracy of this fuzzy control method is low and is not conducive to monitoring and scanning with alignment requirements. The method based on fuzzy control is applied to the production online monitoring system. There is no approximate rotation angle, which takes too long and greatly delays the production progress. Moreover, if the anti-slip friction rubber at the front end of the equipment ages, it will affect a certain control accuracy. For production lines with multi-station monitoring, it will greatly reduce production efficiency and it is more difficult to optimize intelligent production. Even if a high-precision controller is set for the control system, there is still the problem of uncertain rotation angle. Excessive rotation angle will accelerate the damage of the motor and transmission device, and also greatly delay the production progress; while insufficient rotation angle will lead to missed scans and wrong scans. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a device and method for adjusting the angle of a beverage bottle body code scanning based on multiple pattern recognition in view of the above-mentioned defects of the prior art.

[0005] In order to achieve the above-mentioned object, the present invention provides a device for adjusting the scanning angle of a beverage bottle body, wherein the scanning angle of a two-dimensional code on the body of the beverage bottle is calculated and corrected by machine vision, comprising:

[0006] The chain conveyor mechanism is used to convey beverage bottles, comprising a tripod and a chain conveyor belt mounted on the tripod, one end of the chain conveyor belt is connected to a conveying motor through a transmission box; the other end of the chain conveyor belt is provided with a chain tensioner; fixed side plates are provided on both sides of the chain conveyor belt;

[0007] A bottle separation mechanism, which is arranged at the front end of the chain plate conveying mechanism and cooperates with the chain plate conveying mechanism to achieve the beverage bottle separation;

[0008] A fixed frame, arranged in the middle of the chain plate conveying mechanism;

[0009] A bottle rotating mechanism is arranged on one side of the chain conveyor and mounted on the fixed frame; a roller blocking plate is arranged on the opposite side of the bottle rotating mechanism; when rotating the bottle, the roller blocking plate cooperates with the bottle rotating mechanism to clamp the beverage bottle; and

[0010] The detection mechanism includes a front-end camera, a rear-end camera, a top camera, a bottle rotation monitoring camera and a chain plate proximity sensor. The front-end camera and the rear-end camera are respectively installed on both sides of the chain plate conveyor belt and are respectively located close to the bottle separation mechanism and close to the bottle rotation mechanism, and are used to identify the QR code position of the beverage bottle; the top camera is installed on the top of the fixed frame and faces the chain plate conveyor belt; the bottle rotation monitoring camera is arranged on one side of the fixed frame corresponding to the beverage bottle transmission channel; the chain plate proximity sensor is arranged on one side of the chain plate conveyor belt and close to the bottle separation mechanism, and is used to receive the start and stop signals of the bottle separation mechanism.

[0011] The above-mentioned beverage bottle body scanning angle adjustment device, wherein the bottle rotating mechanism comprises:

[0012] A bottle rotating bottom plate is mounted on the fixed frame and is located below the chain conveyor belt;

[0013] A driving component, mounted on the bottom plate of the rotary bottle;

[0014] The bottle spinner base is connected to the driving component and driven by the driving component to move toward or away from the roller baffle plate;

[0015] The bottle spinning component is installed on the bottle spinning base through a bottle spinning support arm, moves along with the bottle spinning base, and cooperates with the roller blocking plate to clamp the beverage bottle.

[0016] The above-mentioned beverage bottle body scanning angle adjustment device, wherein the driving component includes:

[0017] A bottle-spinning stepping motor is mounted on the bottle-spinning bottom plate;

[0018] A bottle-spinning screw rod is mounted on the bottle-spinning bottom plate and connected to the bottle-spinning stepping motor, wherein the axis of the bottle-spinning screw rod is perpendicular to the conveying direction of the chain conveyor belt; and

[0019] A bottle-spinning guide rod is mounted on the bottle-spinning bottom plate and is arranged parallel to the bottle-spinning screw;

[0020] The rotary bottle base is respectively provided with a screw connection hole and a guide rod hole, the rotary bottle guide rod passes through the guide rod hole, the rotary bottle base is connected to the rotary bottle screw through the screw connection hole, and the rotary bottle stepping motor drives the rotary bottle base to move along the rotary bottle guide rod through the rotary bottle screw.

[0021] The above-mentioned beverage bottle body scanning angle adjustment device, wherein the bottle rotating component includes:

[0022] A bottle rotating stand, the rear end of which is connected to the top end of the bottle rotating arm; a pressure sensor is provided at the connection between the bottle rotating stand and the bottle rotating arm; a clamping shock-absorbing spring is provided between the bottle rotating stand and the bottle rotating arm; and

[0023] The bottle spinning driving member is installed on the bottle spinning frame. The bottle spinning driving member is connected to a rubber disk with a spiral groove. The rubber disk is located at the front end of the bottle spinning frame.

[0024] The above-mentioned beverage bottle body scanning angle adjustment device, wherein the roller blocking plate comprises:

[0025] A connecting seat is installed on a fixed side plate on one side of the chain conveyor belt;

[0026] A fixing plate, mounted on the connecting seat;

[0027] A plurality of rollers are mounted in parallel on the fixed plate; and

[0028] The anti-stuck guide plates are installed on the fixed plate and are respectively located at two ends of the plurality of rollers.

[0029] The above-mentioned beverage bottle body scanning angle adjustment device, wherein the bottle separation mechanism comprises:

[0030] A bottle separation bracket, arranged at the front end of the chain plate conveying mechanism;

[0031] A bottle separation bottom plate, mounted on the bottle separation bracket;

[0032] A bottle separation driving mechanism, mounted on the bottle separation bottom plate;

[0033] A bottle-separating chain belt, located on the bottle-separating bottom plate and connected to the bottle-separating driving mechanism, a track pulley is arranged on the top of the bottle-separating chain belt, baffles are evenly distributed on the bottle-separating chain belt, and the baffles are perpendicular to the movement plane of the bottle-separating chain belt;

[0034] The upper cover plate has a detachable guide rail cover plate installed on its outer edge, a closed guide rail is arranged at the bottom of the detachable guide rail cover plate, and the track pulley of the bottle separation chain plate belt is installed in the closed guide rail; the bottle separation driving mechanism drives the bottle separation chain plate belt to move along the closed guide rail.

[0035] The above-mentioned beverage bottle body scanning angle adjustment device, wherein the bottle separation driving mechanism comprises:

[0036] A bottle separation motor is installed at the bottom of the bottle separation bottom plate; and

[0037] Two groups of bottle separating disc gears are respectively arranged at both ends of the bottle separating bottom plate, and one group of the bottle separating disc gears is connected to the bottle separating motor; the bottle separating chain belt is tensioned on the two groups of the bottle separating disc gears, and the rotation of the bottle separating disc gears drives the bottle separating chain belt to move, and the upper cover plate is correspondingly provided with disc gear bearing holes, and the disc gear shafts of the two groups of the bottle separating disc gears are respectively connected to the disc gear bearing holes.

[0038] In order to better achieve the above-mentioned purpose, the present invention also provides a method for adjusting the scanning angle of a beverage bottle body, wherein the scanning angle of the two-dimensional code of the beverage bottle body is calculated and corrected by machine vision, and the scanning of the beverage production and the integration of the bottle cap and bottle body two-dimensional code information to generate beverage production traceability and shipment information include the following steps:

[0039] S100, establishing a bottle rotation compensation angle model, and determining the bottle rotation compensation angle by training a long short-term memory recurrent neural network algorithm;

[0040] S200, the bottle separation mechanism separates the beverage bottles after capping and labeling, and feeds the bottles individually;

[0041] S300, the beverage bottle is transported to the image acquisition area of ​​the bottle rotating mechanism by the chain plate conveyor belt;

[0042] S400, scanning the QR code of the beverage bottle and identifying the deviation of the QR code by the front-end and rear-end alignment cameras, obtaining the deviation angle of the QR code, and determining whether the bottle needs to be rotated; if so, sending a bottle rotation signal and calculating the bottle rotation compensation angle according to the bottle rotation compensation angle model; if not, entering the next production process;

[0043] S500, after receiving the bottle rotation signal, the top camera identifies and locates the position of the beverage bottle, and after reaching the clamping area, the bottle rotation mechanism and the roller blocking plate cooperate to clamp the beverage bottle; and

[0044] S600: Rotate the beverage bottle according to the bottle rotation compensation angle to correct a scanning angle of the two-dimensional code on the bottle body of the beverage bottle.

[0045] The above beverage bottle body scanning angle adjustment method, wherein step S500 further includes:

[0046] S501, the top camera collects intensity and depth images, and obtains three-dimensional coordinates P after computer correction. t (x, y, z), P t The x and y in the image correspond to the row and column positions in the matrix, and z corresponds to the corresponding value in the matrix, thus obtaining the intensity image matrix. Similarly, the gray value matrix obtained by the reflected light collection data is as well as

[0047] S502, by A t and B t Through frame aberration, pixel difference d pixel , Camera Shutter S c , image and actual size ratio k, frame number difference Δ p , calculate the moving speed of the beverage bottle:

[0048]

[0049] The above-mentioned beverage bottle body scanning angle adjustment method further includes:

[0050] S700, monitoring the bottle spinning action through a bottle spinning monitoring camera on the same side as the bottle spinning mechanism, collecting the QR code angle of the beverage bottle after spinning, and using it to optimize the angle calculation deviation value of the bottle spinning compensation angle model.

[0051] The technical effects of the present invention are:

[0052] The present invention calculates the angle of the beverage bottle body through machine vision and uses the friction of a rotating disk to correct the scanning angle of the bottle body QR code, which is convenient for scanning and recording of beverage production. In the production process, two alignment cameras are installed on the conveyor belt. The real-time image QR code collected by the camera can be used to scan the beverage bottle directly and quickly. For beverage bottles that cannot be directly scanned due to the deviation of the QR code position, the angle deviation is determined by recognizing the bottle body image, and a relatively accurate rotation amount is quickly given to the angle adjustment mechanism through calculation.

[0053] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments, but is not intended to limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A schematic diagram of the structure of a device according to an embodiment of the present invention;

[0055] Figure 2 A schematic diagram of a detection mechanism according to an embodiment of the present invention;

[0056] Figure 3 A schematic diagram of the structure of a fixing frame according to an embodiment of the present invention;

[0057] Figure 4 This is a schematic diagram of the structure of a bottle rotating mechanism according to an embodiment of the present invention;

[0058] Figure 5 A schematic diagram of the roller baffle structure of an embodiment of the present invention;

[0059] Figure 6 This is a schematic diagram of the structure of a bottle separation mechanism according to an embodiment of the present invention;

[0060] Figure 7 This is a working principle diagram of an embodiment of the present invention;

[0061] Figure 8 This is a schematic diagram of the bottle spinning step according to an embodiment of the present invention;

[0062] Fig. 9 This is a principle diagram of data processing for positioning, bottle rotation angle and clamping alignment according to an embodiment of the present invention;

[0063] Fig.10 This is a schematic diagram of the position of the rotating bottle according to an embodiment of the present invention;

[0064] Fig.11 A schematic diagram of coordinates obtained by a top camera according to an embodiment of the present invention.

[0065] Among them, the reference numerals

[0066] 1Chain conveyor mechanism

[0067] 11 Tripod

[0068] 12 chain conveyor belt

[0069] 13. Conveyor motor

[0070] 14 Transmission box

[0071] 15 gear lever

[0072] 16 Chain plate tensioner

[0073] 17Fixed side panels

[0074] 18 gear lever fixing parts

[0075] 2. Testing agency

[0076] 21Front camera

[0077] 22 rear camera

[0078] 23 Chain plate proximity sensor

[0079] 24 top cameras

[0080] 25 Rotating Bottle Monitoring Camera

[0081] 3Fixed bracket

[0082] 31 racks

[0083] 32 conveyor belt fixed end

[0084] 33 Camera Mount

[0085] 4. Bottle rotating mechanism

[0086] 41 rotating bottle bottom plate

[0087] 42 drive components

[0088] 421 Rotary Bottle Stepper Motor

[0089] 422 bottle screw

[0090] 423 Rotating Bottle Guide

[0091] 43 Rotating bottle base

[0092] 431 screw connection hole

[0093] 432 guide rod hole

[0094] 44 Rotating Bottle Support Arm

[0095] 45 bottle spinner parts

[0096] 451 bottle rack

[0097] 452 bottle spinner drive

[0098] 4521 Rotary Bottle Drive Motor

[0099] 4522 gear set

[0100] 453 rotating disk

[0101] 454 Clamping shock absorber spring

[0102] 455 Pressure Sensor

[0103] 46 Motor fixing block

[0104] 5-point bottle mechanism

[0105] 51 Upper cover

[0106] 511 removable rail cover

[0107] 512 Guide Rail

[0108] 513 disc gear bearing hole

[0109] 52 points bottle bottom plate

[0110] 53 bottle motor

[0111] 54 bottle disc gear

[0112] 541 disc gear shaft

[0113] 55 points bottle chain belt

[0114] 551 Track Pulley

[0115] 552 baffle

[0116] 56-point bottle stand

[0117] 6 roller baffle

[0118] 61 Connector

[0119] 62 fixed plate

[0120] 63 roller

[0121] 64 Anti-stuck guide plate

[0122] 7 Beverage bottles DETAILED DESCRIPTION

[0123] The structural principle and working principle of the present invention are described in detail below in conjunction with the accompanying drawings:

[0124] See also Figure 1 and Figure 2 , Figure 1 is a schematic diagram of the structure of a device according to an embodiment of the present invention, Figure 2This is a schematic diagram of the detection mechanism of an embodiment of the present invention. In order to give the beverage bottle more content, consumers can use the identity mark (QR code, SN code, etc.) on the beverage bottle to query the process and food safety parameters of the beverage from raw materials to products through the traceability system and mobile phone APP to achieve beverage traceability. Since the direction of the beverage bottle 7 is different after capping and labeling, in order to achieve the scanning of the code and the integration of the bottle cap and bottle code, the scanning angle of the QR code on the beverage bottle 7 needs to be adjusted. To this end, the present invention provides a beverage bottle body scanning angle adjustment device based on pattern recognition and self-correction machine learning, which can calculate and correct the bottle body QR code scanning angle of the beverage bottle 7 through machine vision, including: a chain plate conveyor mechanism 1, installed on the production line, used to convey the beverage bottle 7, and cooperate with the bottle separation mechanism 5 of the beverage production standard equipment bottle separation turntable to realize the bottle separation of the beverage bottle 7, the chain plate conveyor mechanism 1 includes a tripod 11 and a chain plate conveyor belt 12 installed on the tripod 11, one end of the chain plate conveyor belt 12 is connected to the transmission motor 13 through a transmission box 14; the other end of the chain plate conveyor belt 12 is provided with a chain plate tensioner 16, which is adjusted by adjusting the thread to loosen the chain plate conveyor belt 12; fixed side plates 17 are provided on both sides of the chain plate conveyor belt 12; the bottle separation mechanism 5 is arranged at the front end of the chain plate conveyor mechanism 1, and cooperates with the chain plate conveyor mechanism 1 to realize the bottle separation of the beverage bottle; the fixing frame 3 is arranged in the middle of the chain plate conveyor mechanism 1; the bottle rotating mechanism 4 is arranged on the chain plate conveyor belt 1 2 side, and is installed on the fixed frame 3; a roller baffle 6 is provided on the opposite side of the bottle rotating mechanism 4; when rotating the bottle, the roller baffle 6 cooperates with the bottle rotating mechanism 4 to clamp the beverage bottle 7; and a detection mechanism 2, including a front-end camera 21, a rear-end camera 22, a top camera 24, a bottle rotating monitoring camera 25 and a chain plate proximity sensor 23, the front-end camera 21 and the rear-end camera 22 are respectively installed on both sides of the chain plate conveyor 12, and are respectively located near the bottle dividing mechanism 5 and near the bottle rotating mechanism 4, that is, located at the front end of the bottle rotating mechanism 4, for identifying the QR code position of the beverage bottle 7; the top camera 24 is installed on the top of the fixed frame 3 and is facing the chain plate conveyor 12; the bottle rotating monitoring camera 25 is arranged on one side of the fixed frame 3 corresponding to the beverage bottle transmission channel; the chain plate proximity sensor 23 is arranged on one side of the chain plate conveyor 12 and near the bottle dividing mechanism 5, for receiving the start and stop signals of the bottle dividing mechanism 5.

[0125] Wherein, baffle bars 15 are respectively arranged on both sides of the chain plate conveyor belt 12, including a long baffle bar and a short baffle bar, which are respectively installed on the fixed side plate 17 through baffle bar fixing pieces 18, and the long baffle bar extends to the front end of the chain plate conveyor belt 12, and cooperates with the working section of the bottle separation mechanism 5 to ensure the smooth bottle separation and transportation of the beverage bottle 7; an opening is arranged at the position of the long baffle bar facing the bottle rotation mechanism 4, so that the bottle rotation mechanism 4 can smoothly cooperate with the roller baffle plate 6 to clamp the beverage bottle 7; and a detection mechanism 2, including a front-end camera 21, a rear-end camera 22, a top camera 24, a bottle rotation monitoring camera 25 and a chain plate proximity sensor 23, and the front-end camera 21 and the rear-end camera 22 are respectively installed on both sides of the chain plate conveyor belt 12, and are respectively They are respectively located near the bottle dividing mechanism 5 and near the bottle rotating mechanism 4, that is, at the front end of the bottle rotating mechanism 4, for identifying the QR code position of the beverage bottle 7; the top camera 24 is installed on the top of the fixing frame 3 and is directly opposite to the chain plate conveyor belt 12; the bottle rotating monitoring camera 25 is arranged on one side of the fixing frame 3 corresponding to the beverage bottle conveying channel; the chain plate proximity sensor 23 is arranged on one side of the chain plate conveyor belt 12 and close to the bottle dividing mechanism 5, and the front end of the short gear rod is arranged corresponding to the tail end of the bottle dividing mechanism 5, and the chain plate proximity sensor 23 is installed at the front end of the short gear rod, for receiving the start and stop signal of the bottle dividing mechanism 5, so as to control the start and stop of the bottle dividing mechanism 5 to realize the feeding of a single bottle of beverage.

[0126] See also Figure 3 , Figure 3 The figure is a schematic diagram of the structure of the fixing frame 3 according to an embodiment of the present invention. The fixing frame 3 includes a frame 31, a conveyor fixed end 32 and a camera mounting frame 33. The frame 31 is placed on the ground through four adjustable foot pads. The conveyor fixed end 32 is connected to the fixed side plates 17 on both sides of the conveyor through studs. The bottle rotating bottom plate 41 is installed on the fixing frame 3. The bottle rotating stepping motor 421 is installed on the bottle rotating bottom plate 41 through the motor fixing block 46. The bottle rotating base 43 is driven by a screw rod to drive the bottle rotating component 45 to slide on two smooth guide rods. The top camera 24 is installed on the camera mounting frame 33 located at the top of the fixing frame 3.

[0127] See also Figure 4 , Figure 4The structure diagram of the bottle rotating mechanism 4 of one embodiment of the present invention is shown in FIG. The bottle rotating mechanism 4 of this embodiment comprises: a bottle rotating bottom plate 41, which is mounted on the fixing frame 3 and is located below the chain plate conveyor 12; a driving component 42, which is mounted on the bottle rotating bottom plate 41; a bottle rotating base 43, which is connected to the driving component 42 and is driven by the driving component 42 to move toward or away from the roller baffle 6; a bottle rotating component 45, which is mounted on the bottle rotating base 43 through a bottle rotating support arm 44 and moves with the bottle rotating base 43, and cooperates with the roller baffle 6 to clamp the beverage bottle 7. Among them, the driving component 42 includes: a bottle-spinning stepping motor 421, which is installed on the bottle-spinning bottom plate 41; a bottle-spinning screw 422, which is installed on the bottle-spinning bottom plate 41 and connected to the bottle-spinning stepping motor 421, and the axis of the bottle-spinning screw 422 is perpendicular to the conveying direction of the chain conveyor 12; and a bottle-spinning guide rod 423, which is installed on the bottle-spinning bottom plate 41 and arranged parallel to the bottle-spinning screw 422; the bottle-spinning base 43 is respectively provided with a screw connecting hole 431 and a guide rod hole 432, the bottle-spinning guide rod 423 passes through the guide rod hole 432, the bottle-spinning base 43 is connected to the bottle-spinning screw 422 through the screw connecting hole 431, and the bottle-spinning stepping motor 421 drives the bottle-spinning base 43 to move along the bottle-spinning guide rod 423 through the bottle-spinning screw 422.

[0128] In this embodiment, the bottle spinning component 45 includes: a bottle spinning frame 451, the rear end of which is connected to the top of the bottle spinning arm 44; a pressure sensor 455 is provided at the connection between the bottle spinning frame 451 and the bottle spinning arm 44; a clamping shock-absorbing spring 454 is provided between the bottle spinning frame 451 and the bottle spinning arm 44; and a bottle spinning driver 452, which is installed on the bottle spinning frame 451, and the bottle spinning driver 452 is connected to a rotating disk 453. The rotating disk 453 is preferably made of a rubber material with a high friction degree, such as a rubber disk with a spiral groove, and the rubber disk is located at the front end of the bottle spinning frame 451. The bottle-spinning mechanism 4 is driven by a bottle-spinning stepper motor 421, which is clamped and released by the motor and the worm, and clamps the beverage bottle 7 in cooperation with the roller block plate 6; the bottle-spinning driving member 452 is preferably a bottle-spinning driving motor 4521 and a gear set 4522, and the bottle-spinning driving motor 4521 drives the gear set 4522 to rotate the rubber disk to drive the beverage bottle 7 to rotate, and the two rotating disks 453 rotate in the same direction, and the rotation direction when spinning the bottle is a spiral ascending direction, which reduces the friction between the bottom of the bottle and the chain plate during rotation. The front end of the bottle-spinning member 45 can move slightly, and the clamping force limit of the bottle-spinning mechanism 4 is determined by the expansion and contraction of the clamping shock-absorbing spring 454 and the pressure sensor 455 at one end of the spring.

[0129] See also Figure 5 , Figure 5The figure is a schematic diagram of the structure of the roller blocking plate 6 of an embodiment of the present invention. The roller blocking plate 6 of this embodiment is used to cooperate with the bottle spinning mechanism 4 to clamp the beverage bottle 7 when spinning the bottle, and includes: a connecting seat 61, which is fixedly installed on the fixed side plate 17 on one side of the chain plate conveyor 12 by a stud; a roller fixing plate 62, which is installed on the connecting seat 61; a plurality of rollers 63, which are installed in parallel on the roller fixing plate 62; and an anti-stuck guide plate 64, which is installed on the roller fixing plate 62 and is located at both ends of the plurality of rollers 63. The rubber disc cooperates with the roller 63 to clamp the beverage bottle 7, and an arc groove is provided at the position corresponding to the roller fixing plate 62 and the rubber disc, so as to facilitate the clamping of the beverage bottle 7 to fit more closely.

[0130] See also Figure 6 , Figure 6 It is a schematic diagram of the structure of the bottle separation mechanism 5 according to an embodiment of the present invention. In this embodiment, the bottle separation mechanism 5 cooperates with the bottle shifting wheel system to realize bottle separation, and cooperates with the chain plate proximity sensor 23 to start and stop the bottle separation chain plate belt 55. The bottle separation mechanism 5 includes: a bottle separation bracket 56, which is arranged at the front end of the chain plate conveying mechanism 1 and fixed to one side of the chain plate conveyor belt 12 by screws; a bottle separation bottom plate 52, which is fixedly mounted on the bottle separation bracket 56 by screws; a bottle separation driving mechanism, which is mounted on the bottle separation bottom plate 52; a bottle separation chain plate belt 55, which is located on the bottle separation bottom plate 52 and connected to the bottle separation driving mechanism, and a track pulley 551 is arranged at the top of the bottle separation chain plate belt 55, and baffles 552 are evenly distributed on the bottle separation chain plate belt 55, and the baffles 552 are perpendicular to the The movement plane of the bottle separation chain belt 55 is adjusted according to the needs of the baffle 552 spacing and the distance from the chain conveyor belt 12, and cooperates with the bottle shifting wheel system. The bottle separation chain belt 55 runs on its track to separate the beverage bottles 7; the upper cover plate 51 has a detachable guide rail cover plate 511 installed on the outer edge, and a closed guide rail 512 is provided at the bottom of the detachable guide rail cover plate 511. The track pulley 551 of the bottle separation chain belt 55 is installed in the closed guide rail 512; the bottle separation driving mechanism drives the bottle separation chain belt 55 to move along the closed guide rail 512.

[0131] The bottle separation drive mechanism includes: a bottle separation motor 53, which is installed at the bottom of the bottle separation bottom plate 52; and two groups of bottle separation disc gears 54, which are respectively arranged at both ends of the bottle separation bottom plate 52, wherein one group of the bottle separation disc gears 54 is connected to the bottle separation motor 53; the bottle separation chain plate belt 55 is tensioned on the two groups of the bottle separation disc gears 54, and the rotation of the bottle separation disc gears 54 drives the bottle separation chain plate belt 55 to move, and the upper cover plate 51 is correspondingly provided with disc gear bearing holes 513, and the disc gear shafts 541 of the two groups of the bottle separation disc gears 54 are respectively connected to the disc gear bearing holes 513. The bottle separation mechanism 5 cooperates with the chain plate proximity sensor 23 at the intersection of the bottle separation mechanism 5 and the chain plate conveyor belt 12 to start and stop the bottle separation motor 53 to realize the feeding of a single bottle of beverage.

[0132] During operation, the beverage bottle 7 reaches the scanning step after the previous step of closing the lid and labeling, and the chain plate assembly line is scanned in real time. After the beverage bottle 7 is identified, the position information is collected in real time. First, the beverage bottle 7 arrives at the bottle separation mechanism 5, and the bottle separation mechanism 5 separates the beverage bottle 7 through the baffle 552. The front-end camera 21 and the rear-end camera 22 before the bottle rotation detect whether the bottle rotation is required. Its detection logic is derived from the data in the bottle rotation model, and the computer is used to process the picture to identify the QR code position. If the QR code is detected to be offset, the model trained by the recurrent neural network algorithm of the long short-term memory (LSTM) determines the feeding bottle rotation angle required for the bottle rotation, and the chain plate conveyor 12 enters the next step of the bottle rotation step. The baffle 552 touches the chain plate proximity sensor 23, and the baffle 552 opens to realize the single bottle feeding. After passing the semicircular track at the end, the bottle separation motor 53 of the bottle separation mechanism 5 stops, and after completing the bottle rotation and scanning the code, it starts again to start the next bottle separation. When it reaches the correct position, i.e., the turntable position, the bottle spinning mechanism 4 advances toward the beverage bottle 7. During this process, the top camera 24 transmits a cosine modulated signal to the approaching beverage bottle 7, and obtains the coordinates through reflection from the beverage bottle body. When the beverage bottle 7 is transferred to the correct bottle spinning position, when the bottle spinning monitoring camera 25 facing the beverage bottle 7 recognizes that the current beverage bottle 7 needs to be spun, it is combined with the top camera 24 to identify whether the current beverage bottle 7 to be spun is aligned. When the bottle spinning position is reached, the bottle spinning mechanism 4 and the roller baffle 6 clamp the beverage bottle 7. Given a clamping distance limit, the top camera 24 detects the clamping position and the pressure sensor 455 detects the clamping force and evaluates the clamping effect, and trains the clamping and releasing speed and feed amount of the bottle spinning mechanism 4.

[0133] See also Figure 7 , Figure 7 The method for adjusting the scanning angle of the beverage bottle 7 of the present invention can calculate and correct the scanning angle of the two-dimensional code of the beverage bottle 7 through machine vision, and is used for scanning and integrating the two-dimensional code information of the bottle cap and the bottle body in beverage production to generate beverage production traceability and shipment information, including the following steps:

[0134] Step S100, establishing a bottle rotation compensation angle model, and determining the bottle rotation compensation angle by training a long short-term memory (LSTM) recurrent neural network algorithm; using the LSTM neural network supervised learning, using the true value and the predicted value to compare, using the true value to optimize the model, and continuously optimizing the model;

[0135] Step S200, the bottle separation mechanism 5 separates the beverage bottles 7 after capping and labeling, and feeds the bottles individually;

[0136] Step S300, the beverage bottle 7 is transported to the image acquisition area of ​​the bottle rotating mechanism 4 by the chain plate conveyor belt 12;

[0137] Step S400, scanning the QR code of the beverage bottle 7 and identifying the deviation of the QR code by the front-end and rear-end alignment cameras, obtaining the deviation angle of the QR code, and judging whether the bottle needs to be rotated; if so, sending a bottle rotation signal and calculating the bottle rotation compensation angle according to the bottle rotation compensation angle model; if not, entering the next production process;

[0138] Step S500, after receiving the bottle rotation signal, the top camera 24 identifies and locates the position of the beverage bottle 7, and after reaching the clamping area, the bottle rotation mechanism 4 and the roller blocking plate 6 cooperate to clamp the beverage bottle 7; and

[0139] Step S600: Rotate the beverage bottle 7 according to the bottle rotation compensation angle to correct the scanning angle of the QR code on the bottle body of the beverage bottle 7. After scanning, the bottle rotation mechanism 4 is released, and the top camera 24 recognizes whether it has retreated to its proper position, and then the next bottle rotation scanning step of the beverage bottle 7 is cycled.

[0140] This embodiment may also include:

[0141] Step S700, monitor the bottle spinning action through the bottle spinning monitoring camera 25 on the same side as the bottle spinning mechanism 4, collect the QR code angle of the beverage bottle 7 after spinning, and use it to optimize the angle calculation deviation value of the bottle spinning compensation angle model. It can be used to update the bottle spinning compensation angle model, which determines the clamping and bottle spinning parameters each time, and collects data in a fixed cycle to update the training model. The front-end camera 21 and the rear-end camera 22 obtain the QR code scanning and QR code deviation recognition on the side of the beverage bottle 7, and collect images to the bottle spinning compensation angle model for calculating the bottle spinning compensation angle. The bottle spinning monitoring camera 25 collects the QR code angle after spinning, and gives the angle calculation deviation value with the bottle spinning compensation angle model to optimize the given angle compensation value.

[0142] See also Figure 8 and Fig. 9 , Figure 8 This is a schematic diagram of the bottle spinning step according to an embodiment of the present invention. Fig. 9 This is a schematic diagram of the data processing principle of positioning, bottle rotation angle and clamping alignment according to an embodiment of the present invention. Step S500 further includes:

[0143] Step S501: The top camera 24 collects intensity and depth images, and obtains three-dimensional coordinates P after computer correction. t (x, y, z), P t The x and y in the image correspond to the row and column positions in the matrix, and z corresponds to the corresponding value in the matrix, thus obtaining the intensity image matrix. Similarly, the gray value matrix obtained by the reflected light collection data is as well as

[0144] Step S502: A t and B t Through frame aberration, pixel difference d pixel , Camera Shutter S c , image and actual size ratio k, frame number difference Δ p , calculate the moving speed of the beverage bottle 7:

[0145]

[0146] Among them, the body of the beverage bottle 7 entering the image acquisition area is photographed by the front camera 21 and the rear camera 22. When the camera cannot scan the QR code, the position of the QR code is identified by the following steps:

[0147] 1) Image grayscale processing;

[0148] 2) Divide the obtained grayscale image into regions based on the global threshold;

[0149] 3) Filter the obtained global threshold image to smooth out the noise;

[0150] 4) Calculate the gradient of the obtained image and take the bilateral threshold to obtain the edge;

[0151] 5) Obtain edge clusters, cluster edge points, connect cluster points, and use linear fitting to connect cluster points;

[0152] 6) Find a quadrilateral composed of closed straight lines, including a two-dimensional rectangle of the beverage bottle 7 label, a two-dimensional code rectangle, and a barcode rectangle;

[0153] 7) Distinguish barcodes from QR codes by the number of straight lines in the rectangle;

[0154] 8) Detect the QR code rectangle (the bilateral camera will definitely detect the QR code, but the QR code may be offset and cannot be scanned, so the bottle needs to be rotated), calculate the pixel distance d between the inner edge of the QR code rectangle and the center of the label rectangle pixel , through the actual size and the camera image pixel ratio value k, we get the radius r1 of the label on the beverage bottle 7, the angle θ1 occupied by the QR code on the bottle body, and the compensation arc length is obtained by the following formula:

[0155]

[0156] The radius of the rubber disc is r0, and the compensation angle of the rubber disc is calculated as:

[0157]

[0158] In step S100, the initial data of the training set is obtained by taking a picture of a beverage bottle with a deviation (the camera cannot directly scan the QR code), that is, the training data set is obtained by artificial deviation. The top camera 24 monitors the beverage bottle 7 to reach the specified position, and the bottle spinning mechanism 4 moves forward and clamps. The deviation angle of the QR code is obtained by the bottle spinning monitoring camera 25. The rubber disk rotation angle compensation calculation value θ0 (the rotation value of the bottle spinning stepper motor 421 is obtained through the gear set transmission ratio) is obtained by the above calculation. Each rotation angle is increased or decreased, that is, the calculated value is added with an angle α, and the scanning time is recorded as a standard for evaluating the bottle spinning effect, and the direction that is favorable for scanning, namely sgn(α), is selected.

[0159] The data of the subsequent training set is obtained from the actual usage data. The evaluation criteria are all based on the scanning time. In actual operation, this angle increases or decreases by |α| according to the scanning time. Due to the aging of the rubber disc material, the friction conditions will change. The angle adjustment value of each bottle rotation is the dynamic value correction of the angle α.

[0160] The image recognition training set continuously optimizes the rotation angle and rotation speed of the rubber turntable for rotating the bottle by collecting images from each bottle spinning, scanning time after the bottle spinning, and scanning effect evaluation. And by self-updating the training samples, even if the rotating mechanism is aged due to the aging of the rotating head material at the front end, it can correctly obtain an accurate rotation parameter. The trained clamping model is applied to the bottle spinning step. When the bottle spinning position is reached, the bottle spinning stepper motor 421 rotates to push the bottle spinning base 43 to drive the entire bottle spinning component 45 forward, and the front rubber disc and roller 63 cooperate to clamp the beverage bottle 7.

[0161] See also Fig.10 , Fig.10 FIG. 1 is a schematic diagram of the position of the rotating bottle according to an embodiment of the present invention. Fig.10 As shown, when the beverage is clamped and the bottle is rotated, the central axis of the bottle body is in a straight line with the center line of the bottle rotating mechanism 4, the top camera 24, and the center line of the bottle rotating monitoring camera 25; when clamped, the bottle body is in close contact with the rubber disk and the roller 63 of the roller blocking plate 6. The depth image and the intensity image of the top camera 24 are detected by the Canny edge detection algorithm to detect whether the center of the circle (the lid of the beverage bottle 7) is approximately coincident with the center line of the image, and the least squares ellipse fitting algorithm is used to detect whether one axis of the ellipse is approximately coincident with the center line of the picture taken by the bottle rotating monitoring camera 25.

[0162] The top camera 24 takes real-time photos and detects the approach of the beverage bottle 7 by continuous frame difference subtraction (the depth map of the next frame minus the depth map of the previous frame). When the approach of the beverage is detected, the following operations are performed:

[0163] See also Fig.11 , Fig.11The top camera 24 of one embodiment of the present invention obtains a coordinate schematic diagram. The top camera 24 obtains an intensity map (ordinary camera imaging map) and a depth map. The least squares ellipse fitting algorithm is used to assist in obtaining the position of the ellipse center (bottleneck top center) through the intensity map and find the position of the corresponding point of the depth map (point cloud). The pixel point value of the depth map is used as the x, y coordinate, and the depth value obtained is the distance d from the center of the bottle cap top to the top camera 24, that is, a coordinate (x, y, d). Each time the beverage bottle 7 is transported to the clamping and bottle spinning position through the chain plate conveyor 12, the top camera 24 will detect the distance of the beverage bottle 7 and the distance change data to obtain the average value of the minimum distance between the center of the top of the bottle cap of the beverage bottle 7 and the top camera 24. This distance is used as a reference h, and the d obtained by the top camera 24 is used to calculate the distance and speed of the beverage bottle 7 from the clamping position. The first clamping amount can be given by the feeding distance D and the feeding speed, and the feeding distance D is the distance between the central axis of the beverage bottle 7 and the center line of the bottle spinning mechanism 4. In actual use, due to the difference in size of beverage bottles, the clamping stroke is uncertain when the program is run for the first time, so it is necessary to manually measure a feed distance D and set a feed speed; based on this data, the subsequent system operation is based on learning according to the data measured by the sensors and cameras, and gradually adjusts to the optimal feed stroke and speed.

[0164] By rotating the bottle, two types of labels, namely, the rotating angle and the rotating effect, are obtained. The supervised learning method is used to determine the quality of the classification labels, as well as the rotation angle and the rotation effect. The rotating bottle monitoring camera 25 facing the bottle side can also obtain a corrected grayscale image at the same time. The rotating bottle monitoring camera 25 cooperates with the top camera 24 to monitor the position of the beverage bottle 7, detect whether the bottle is in place, and then slowly correct the clamping and feeding speed of the appropriate beverage position. The rotation speed of the rotating bottle rubber disc is gradually optimized by the pressure feedback value of the pressure sensor 455 and the rotating bottle time parameter. The rotating bottle angle can be measured by the actual calculated angle and the angle α value of the device in the self-optimization adjustment. If the value deviates too much or too little, the clamping force is first adjusted. The clamping force and the feeding time of the rotating bottle mechanism 4 are gradually optimized during the training process. In the subsequent use process, the rotation compensation angle value α may also change due to factors such as material aging. When the scanning time becomes longer, the clamping force and the compensation angle α are changed to reduce the scanning time.

[0165] The bottle spinning effect evaluation label can be generated based on the delay time of scanning the QR code on the bottle body (from the start of bottle spinning to the completion of scanning) as the evaluation standard to adjust the rotation speed of the bottle spinning rubber disk, that is, the speed and angle of the bottle spinning servo motor during the training process. At the same time, these labels use the scanning time instead of the two quantifiable quantities as digital quantities for training in clamping and bottle spinning position marking. The rotation speed of the bottle spinning rubber disk is gradually optimized through the pressure feedback value of the clamping pressure sensor 455 and the bottle spinning time parameter.

[0166] The present invention conveys the beverage bottles 7 to the beverage bottle 7 bottle separation mechanism 5 through the production line chain conveyor 12; the bottle separation mechanism 5 is powered by the bottle separation servo motor, and the bottles are separated by the baffle 552 on the bottle separation chain belt 55, and the bottle delivery of the bottle separation mechanism 5 is controlled by the back-end code scanning start and end instructions, the baffle 552 and the chain plate proximity sensor 23; the bottle delivery and bottle stopping are achieved through the joint movement of the chain conveyor 12 in contact with the bottom of the bottle. Image acquisition is divided into upper and lower parts. The top camera 24 of the upper part collects the intensity and depth images, and the three-dimensional coordinates P are obtained after computer correction. t (x, y, z), P t The x and y in the image correspond to the row and column positions in the matrix, and z corresponds to the corresponding value in the matrix, thus obtaining the intensity image matrix. Similarly, the gray value matrix obtained by the reflected light collection data is Among them, Z mn Meaning: m is the mth row; n is the nth column; the upper left pixel of the image is an element in the first row and first column of the matrix; Z mn is the pixel value of the corresponding position of the intensity image in the mth row and nth column; b mn Same reason.

[0167] There is a bottle-spinning monitoring camera 25 on the same side as the bottle-spinning mechanism 4, which is used to identify the clamping and bottle-spinning actions and evaluate the bottle-spinning effect; the trained model gives the bottle-spinning mechanism 4 a clamping instruction, and the bottle-spinning stepper motor 421 starts to rotate and clamp the beverage bottle 7. The bottle-spinning monitoring camera 25 scans the QR code on the bottle body in real time, monitors the rotation effect in real time, records the rotation amount and rotation effect of the stepper motor, and transmits it to the computer.

[0168] A t and B t The depth and intensity images are detected using the Canny double threshold edge detection method. The specific algorithm steps are as follows:

[0169] The image obtained by the top camera 24 is collected in real time, and A t and B t . t Use the Canny boundary algorithm and adaptive RANSAC method to find the boundaries of both sides of the chain plate, and remove the area outside the chain plate plane to obtain B′ t . B′ t and crop pixel size with A t Image region cropping A applied to the depth image after pixel alignment t Get the trimmed matrix A′ t . Depth matrix A′ t Find the plane and center C of the beverage bottle 7 cap, and the distance d between the center C of the top surface of the bottle cap identified by the depth image cap center and the camera. pixel, Camera Shutter S c , image and actual size ratio k, frame number difference Δ p , the moving speed is calculated by the formula:

[0170]

[0171] The bottle rotation monitoring camera 25 facing the bottle side combines the image collected after bottle separation, analyzes the QR code position, and grayscales the image. The grayscale image also uses the above-mentioned Canny boundary detection and adaptive RANSAC method to identify the QR code position and correspond to the image coordinate A t , at this time, it is only necessary to correspond to the coordinate position of the tangent direction of the side of the beverage bottle 7, and calculate the compensation angle with the center of the image obtained by the top camera 24 as the origin. The bottle rotating mechanism 4 rotates the beverage bottle 7 to the command angle after being driven by the motor, and collects data again through the detection mechanism 2 for machine learning, and continuously optimizes the rotation accuracy. The image acquisition and bottle rotating mechanism 4 act simultaneously. When rotating the bottle, the collected image is transmitted to the computer. The computer performs model training for graphic recognition based on the collected image, and the trained model is applied to the subsequent bottle rotating angle control to speed up the bottle rotating efficiency.

[0172] After rotation, evaluate the rotation effect and clamping effect, record the predicted rotation angle ω and the actual rotation deviation angle ω′, deviation Δ ω The bottle rotation monitoring camera 25 determines the distance between the QR code and the center of the beverage bottle 7 (the vertical center pixel difference of the camera pixel) and establishes a rotation angle compensation model, and feeds the data back to the computer for parameter correction.

[0173] The present invention can quickly rotate and align beverage bottles 7 that cannot be directly scanned, and the fuzzy control rotation alignment is not accurate, and the rotation angle is unified to reduce production waste. In view of the scanning requirements of beverage bottles 7 for beverage production monitoring, and the requirement of unifying the QR code of the bottle cap and the QR code of the bottle body, the QR code deviation angle is photographed by an alignment camera that determines the rotation angle, and the image is recognized after scanning. Then, a motor rotation angle is quickly given by a recurrent neural network algorithm based on long short-term memory (LSTM), and the beverage bottle 7 is quickly rotated to a position where the code can be scanned, and the position is continuously and automatically adjusted after machine learning.

[0174] The present invention belongs to the technical field of production detection. Through the calculation of the angle of the bottle body of the beverage bottle 7 by machine vision and the friction of the rotating disk 453, the scanning angle of the two-dimensional code of the bottle body is corrected, which is convenient for scanning and recording of beverage production. The bottle separation mechanism 5 and the chain plate proximity sensor 23, the beverage bottle 7 reaches the bottle separation mechanism 5 after the front-end production steps; it is transmitted through the bottle separation mechanism 5 through the chain plate conveyor 12; the front-end camera 21 and the rear-end camera 22 on both sides of the chain plate conveyor 12 identify the position of the two-dimensional code of the bottle body and calculate the feeding amount of the rotating disk; the top camera 24 is used for bottle body positioning detection, combining the two-dimensional code recognized by the front-end camera 21 and the rear-end camera 22 and the bottle cap two-dimensional code recognized by the top camera 24, to achieve two-code integration, for the deviation of the bottle body two-dimensional code, through the bottle rotation monitoring camera 25 and the calculated bottle rotation feeding amount, the bottle rotation mechanism 4 and the roller 63 cooperate to clamp the beverage bottle 7, rotate the beverage bottle 7 through the rotating disk 453 and scan the bottle body and bottle cap two-dimensional code. Each clamping and bottle spinning step uses cameras of the detection mechanism 2 to evaluate the clamping and bottle spinning effects, and the algorithm model is optimized through long short-term memory neural network supervised learning.

[0175] Of course, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.

Claims

1. A beverage bottle body scanning code angle adjustment device, characterized in that: Calculate and correct the scanning angle of the QR code on the beverage bottle through machine vision, including: The chain conveyor mechanism is used to convey beverage bottles, comprising a tripod and a chain conveyor belt mounted on the tripod, one end of the chain conveyor belt is connected to a conveying motor through a transmission box; the other end of the chain conveyor belt is provided with a chain tensioner; fixed side plates are provided on both sides of the chain conveyor belt; A bottle separation mechanism, which is arranged at the front end of the chain plate conveying mechanism and cooperates with the chain plate conveying mechanism to achieve the beverage bottle separation; A fixed frame, arranged in the middle of the chain plate conveying mechanism; A bottle rotating mechanism is arranged on one side of the chain conveyor and mounted on the fixed frame; a roller blocking plate is arranged on the opposite side of the bottle rotating mechanism; when rotating the bottle, the roller blocking plate cooperates with the bottle rotating mechanism to clamp the beverage bottle; and The detection mechanism includes a front-end camera, a rear-end camera, a top camera, a bottle rotation monitoring camera and a chain plate proximity sensor. The front-end camera and the rear-end camera are respectively installed on both sides of the chain plate conveyor belt and are respectively located close to the bottle separation mechanism and close to the bottle rotation mechanism, and are used to identify the QR code position of the beverage bottle; the top camera is installed on the top of the fixed frame and faces the chain plate conveyor belt; the bottle rotation monitoring camera is arranged on one side of the fixed frame corresponding to the beverage bottle transmission channel; the chain plate proximity sensor is arranged on one side of the chain plate conveyor belt and close to the bottle separation mechanism, and is used to receive the start and stop signals of the bottle separation mechanism.

2. The beverage bottle body scanning code angle adjustment device according to claim 1, characterized in that: The bottle rotating mechanism comprises: A bottle rotating bottom plate is mounted on the fixed frame and is located below the chain conveyor belt; A driving component, mounted on the bottom plate of the rotary bottle; The bottle spinner base is connected to the driving component and driven by the driving component to move toward or away from the roller baffle plate; The bottle spinning component is installed on the bottle spinning base through a bottle spinning support arm, moves along with the bottle spinning base, and cooperates with the roller blocking plate to clamp the beverage bottle.

3. The beverage bottle body scanning angle adjustment device according to claim 2, characterized in that: The driving component comprises: A bottle-spinning stepping motor is mounted on the bottle-spinning bottom plate; A bottle-spinning screw rod is mounted on the bottle-spinning bottom plate and connected to the bottle-spinning stepping motor, wherein the axis of the bottle-spinning screw rod is perpendicular to the conveying direction of the chain conveyor belt; and A bottle-spinning guide rod is mounted on the bottle-spinning bottom plate and is arranged parallel to the bottle-spinning screw; The rotary bottle base is respectively provided with a screw connection hole and a guide rod hole, the rotary bottle guide rod passes through the guide rod hole, the rotary bottle base is connected to the rotary bottle screw through the screw connection hole, and the rotary bottle stepping motor drives the rotary bottle base to move along the rotary bottle guide rod through the rotary bottle screw.

4. The beverage bottle body scanning angle adjustment device according to claim 3, characterized in that: The bottle rotating component comprises: A bottle rotating stand, the rear end of which is connected to the top end of the bottle rotating arm; a pressure sensor is provided at the connection between the bottle rotating stand and the bottle rotating arm; a clamping shock-absorbing spring is provided between the bottle rotating stand and the bottle rotating arm; and The bottle spinning driving member is installed on the bottle spinning frame. The bottle spinning driving member is connected to a rubber disk with a spiral groove. The rubber disk is located at the front end of the bottle spinning frame.

5. The beverage bottle body code scanning angle adjustment device according to any one of claims 1 to 4, characterized in that: The roller blocking plate comprises: A connecting seat is installed on a fixed side plate on one side of the chain conveyor belt; A fixing plate, mounted on the connecting seat; A plurality of rollers are mounted in parallel on the fixed plate; and The anti-stuck guide plates are installed on the fixed plate and are respectively located at two ends of the plurality of rollers.

6. The beverage bottle body scanning angle adjustment device according to claim 5, characterized in that: The bottle separation mechanism comprises: A bottle separation bracket, arranged at the front end of the chain plate conveying mechanism; A bottle-separating bottom plate, mounted on the bottle-separating bracket; A bottle separation driving mechanism, mounted on the bottle separation bottom plate; A bottle-separating chain belt, located on the bottle-separating bottom plate and connected to the bottle-separating driving mechanism, a track pulley is arranged on the top of the bottle-separating chain belt, baffles are evenly distributed on the bottle-separating chain belt, and the baffles are perpendicular to the movement plane of the bottle-separating chain belt; The upper cover plate has a detachable guide rail cover plate installed on its outer edge, a closed guide rail is arranged at the bottom of the detachable guide rail cover plate, and the track pulley of the bottle separation chain plate belt is installed in the closed guide rail; the bottle separation driving mechanism drives the bottle separation chain plate belt to move along the closed guide rail.

7. The beverage bottle body code scanning angle adjustment device according to claim 6, characterized in that: The bottle separation driving mechanism comprises: A bottle separation motor is installed at the bottom of the bottle separation bottom plate; and Two groups of bottle separating disc gears are respectively arranged at both ends of the bottle separating bottom plate, and one group of the bottle separating disc gears is connected to the bottle separating motor; the bottle separating chain belt is tensioned on the two groups of the bottle separating disc gears, and the rotation of the bottle separating disc gears drives the bottle separating chain belt to move, and the upper cover plate is correspondingly provided with disc gear bearing holes, and the disc gear shafts of the two groups of the bottle separating disc gears are respectively connected to the disc gear bearing holes.

8. A method for adjusting the angle of scanning a code on a beverage bottle, characterized in that: The scanning angle of the QR code on the beverage bottle is calculated and corrected through machine vision. The scanning is used for beverage production and the QR code information of the bottle cap and bottle is integrated to generate beverage production traceability and shipment information, including the following steps: S100, establishing a bottle rotation compensation angle model, and determining the bottle rotation compensation angle by training a long short-term memory recurrent neural network algorithm; S200, the bottle separation mechanism separates the beverage bottles after capping and labeling, and feeds the bottles individually; S300, the beverage bottle is transported to the image acquisition area of ​​the bottle rotating mechanism by the chain plate conveyor belt; S400, scanning the QR code of the beverage bottle and identifying the deviation of the QR code by the front-end and rear-end alignment cameras, obtaining the deviation angle of the QR code, and determining whether the bottle needs to be rotated; if so, sending a bottle rotation signal and calculating the bottle rotation compensation angle according to the bottle rotation compensation angle model; if not, entering the next production process; S500, after receiving the bottle rotation signal, the top camera identifies and locates the position of the beverage bottle, and after reaching the clamping area, the bottle rotation mechanism and the roller blocking plate cooperate to clamp the beverage bottle; as well as S600: Rotate the beverage bottle according to the bottle rotation compensation angle to correct a scanning angle of the two-dimensional code on the bottle body of the beverage bottle.

9. The beverage bottle body scanning angle adjustment method according to claim 8, characterized in that: Step S500 further includes: S501, the top camera collects intensity and depth images, and obtains three-dimensional coordinates P after computer correction. t (x, y, z), P t The x and y in the image correspond to the row and column positions in the matrix, and z corresponds to the corresponding value in the matrix, thus obtaining the intensity image matrix. Similarly, the gray value matrix obtained by the reflected light collection data is as well as S502, by A t and B t Through frame aberration, pixel difference d pixel , Camera Shutter S c , image and actual size ratio k, frame number difference Δ p , calculate the moving speed of the beverage bottle:

10. The beverage bottle body scanning angle adjustment method according to claim 8 or 9, characterized in that: Also includes: S700, monitoring the bottle spinning action through a bottle spinning monitoring camera on the same side as the bottle spinning mechanism, collecting the QR code angle of the beverage bottle after spinning, and using it to optimize the angle calculation deviation value of the bottle spinning compensation angle model.