Speed control method and device of production line and computer readable storage medium

By determining the relationship between the maximum moving speed of the production line and the vibration speed, the adaptive adjustment of the production line speed is achieved, solving the problems of poor camera photo quality and low output caused by manual adjustment, ensuring efficient image collection and increased output.

CN118859863APending Publication Date: 2024-10-29GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410880764.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the existing technology, manual adjustment of the production line speed is used, which leads to problems such as poor camera quality or low output.

Method used

By determining the correspondence between the maximum moving speed and vibration speed of the production line, image acquisition equipment is used to collect images of the production line, calculate the vibration speed corresponding to the quality of the target transportation object, and then adjust the production line speed to achieve adaptive adjustment to ensure image quality and output. balance.

Benefits of technology

It achieves precise adjustment of the moving speed of the production line, avoids blurred images caused by vibration caused by excessive speed, ensures quality monitoring of transported objects and increases output, and takes into account high line speed movement and output requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118859863A_ABST
    Figure CN118859863A_ABST
Patent Text Reader

Abstract

The invention provides a speed control method and device of a production line and a computer readable storage medium. The image acquisition equipment is used for acquiring production line images. The method comprises the following steps: determining the maximum moving speed of a production line; under the condition that the production line moves at the maximum moving speed, a plurality of production line image sets collected by image collection equipment are obtained, and different production line image sets correspond to different transportation object masses on the production line; according to the plurality of production line image sets, determining a corresponding relation between the transportation object quality and the vibration speed; according to the corresponding relation and the target transportation object mass, determining a vibration speed corresponding to the target transportation object mass to obtain a target vibration speed; and according to the maximum moving speed and the target vibration speed, determining a target speed and controlling the production line to move at the target speed. The problem that the photographing quality of a camera is poor or the yield is low due to the fact that the production line speed is manually adjusted is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of production line control technology, and in particular to a speed control method, device, computer-readable storage medium and electronic device for a production line. Background Art

[0002] In actual production, many devices use image processing-based methods to perform industrial production functions / operations such as quality inspection and mechanical assembly. However, if you want to implement image processing-based methods, the captured images need to clearly express the characteristics of the objects to be inspected / operated. Therefore, if you want to implement related visual functions, you must ensure that the camera takes clear images.

[0003] Currently, under the conditions of fixed camera hardware installation position and lighting scheme, the line speed is generally adjusted manually based on experience. There is no precise adjustment method. When the line speed is high, the camera photo quality is poor, and when the line speed is low, the overall production cycle will be extended, resulting in a decrease in total output within a certain period. Summary of the invention

[0004] The main purpose of the present application is to provide a production line speed control method, device, computer-readable storage medium and electronic device, so as to at least solve the problem in the prior art of manually adjusting the production line speed, resulting in poor camera quality or low output.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a speed control method for a production line is provided, wherein an image acquisition device is used to acquire images of the production line, and the method comprises: determining a maximum moving speed of the production line, wherein the maximum moving speed is the ratio of the maximum displacement of the transport object on the production line within the shooting time of a single frame image to the shooting time of the single frame image when the image of the transport object in the production line image meets the imaging quality requirements; acquiring a plurality of production line image sets acquired by the image acquisition device when the production line moves at the maximum moving speed, wherein different production line image sets correspond to different transport object masses on the production line; determining a corresponding relationship between the transport object mass and a vibration speed based on the plurality of production line image sets, wherein the vibration speed is the speed at which the production line vibrates along the moving direction; determining the vibration speed corresponding to the target transport object mass based on the corresponding relationship and the target transport object mass to obtain a target vibration speed; determining a target speed based on the maximum moving speed and the target vibration speed and controlling the production line to move at the target speed so that the production line transports the transport object with a total mass equal to the target transport object mass.

[0006] Optionally, when the production line moves at the maximum moving speed, a plurality of production line image sets captured by the image acquisition device are obtained, including: when the production line moves at the maximum moving speed and the mass of the transport object is 0, at least two frames of images including a calibration object captured by the image acquisition device are obtained to obtain one production line image set, wherein, when the image acquisition device is located on the production line, the calibration object is an object not located on the production line, and when the image acquisition device is not located on the production line, the calibration object is an object located on the production line; when the production line moves at the maximum moving speed and the mass of the transport object is not 0, at least two frames of images including the transport object captured by the image acquisition device are obtained to obtain a production line image set corresponding to each mass of the transport object.

[0007] Optionally, the correspondence between the mass of the transport object and the vibration speed is determined based on multiple production line image sets, including: performing feature extraction on the images in each of the production line image sets to obtain feature points of the target object corresponding to each image in the production line image set, the target object being one of the following: the calibration object, the transport object; determining the vibration displacement of the target object along the moving direction based on the offset of the feature points between any two frames of images in each of the production line image sets; determining the vibration speed corresponding to each of the production line image sets based on at least each vibration displacement and the corresponding shooting interval between any two frames of images, to obtain a target array including multiple transport object masses and corresponding multiple vibration speeds; performing curve fitting on the transport object mass and the vibration speed based on the target array to obtain a curve equation characterizing the correspondence.

[0008] Optionally, the vibration speed corresponding to each set of production line images is determined at least based on each vibration displacement and the corresponding shooting interval time between any two frames of images, including: when the production line is a linear production line, the vibration speed is determined as the quotient of the vibration displacement and the shooting interval time; when the production line is a curved production line, a predetermined angle is obtained, and the predetermined angle includes at least one of the following: the angle between the tangent of the production line and the moving direction, the angle between the moving direction and the plane where the lens of the image acquisition device is located; based on the quotient of the vibration displacement and the shooting interval time and the predetermined angle, the vibration speed is determined as the product of the quotient and the cosine value of the predetermined angle.

[0009] Optionally, according to the target array, curve fitting is performed on the mass of the transport object and the vibration speed, including one of the following: according to the target array, cubic spline interpolation method is used to perform curve fitting on the mass of the transport object and the vibration speed; according to the target array, maximum likelihood estimation method is used to perform curve fitting on the mass of the transport object and the vibration speed; according to the target array, least squares method is used to perform curve fitting on the mass of the transport object and the vibration speed.

[0010] Optionally, determining the target speed according to the maximum moving speed and the target vibration speed includes: determining the target speed as a difference between the absolute values ​​of the maximum moving speed and the target vibration speed according to the maximum moving speed and the target vibration speed.

[0011] Optionally, determining the maximum moving speed of the production line includes: acquiring the frame rate of the image acquisition device and the movable range of the transport object, the movable range being the displacement range of the transport object within a unit time when the image of the transport object satisfies the imaging quality; determining, based on the frame rate, the shooting duration of the single-frame image as the reciprocal of the frame rate; and determining, based on the movable range and the shooting duration of the single-frame image, the maximum moving speed as the quotient of the movable range and the shooting duration of the single-frame image.

[0012] According to another aspect of the present application, a speed control device for a production line is provided, wherein an image acquisition device is used to acquire images of the production line, and the device comprises: a first determining unit, used to determine a maximum moving speed of the production line, wherein the maximum moving speed is a ratio of a maximum displacement of a transport object on the production line within a single-frame image shooting time to the single-frame image shooting time when the transport object image in the production line image meets the imaging quality requirements; an acquiring unit, used to acquire a plurality of production line image sets acquired by the image acquisition device when the production line moves at the maximum moving speed, wherein different production line image sets correspond to different transport object masses on the production line; a second determining unit, used to determine a corresponding relationship between the transport object mass and a vibration speed based on a plurality of production line image sets, wherein the vibration speed is a speed at which the production line vibrates along a moving direction; a third determining unit, used to determine the vibration speed corresponding to the target transport object mass based on the corresponding relationship and the target transport object mass, and obtain a target vibration speed; and a fourth determining unit, used to determine a target speed based on the maximum moving speed and the target vibration speed, and to control the production line to move at the target speed, so that the production line transports the transport object having a total mass equal to the target transport object mass.

[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.

[0014] According to another aspect of the present application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.

[0015] By applying the technical solution of the present application, the maximum moving speed of the production line is first determined when the image of the transported object meets the imaging quality requirements. Then, when the production line moves at this speed, the correspondence between the quality of the transported object on the production line and the vibration speed of the production line is determined based on a plurality of production line image sets acquired by the image acquisition device. This allows the moving speed of the production line that is adapted to the current production demand and meets the image quality to be determined. This takes into account both the impact of the production line vibration on the image quality of the transported object and the actual production demand of the production line, and realizes adaptive adjustment of the moving speed of the production line, avoiding blurred images caused by vibrations caused by excessive moving speed, and ensuring effective monitoring of the quality of the transported object. At the same time, it allows the production line to move at a high line speed to the greatest extent possible, ensuring a high output of the production line. Therefore, the present application takes into account both the quality monitoring of the transported objects of the production line and the production demand. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 A hardware structure block diagram of a mobile terminal for executing a speed control method of a production line provided in an embodiment of the present application is shown;

[0018] Figure 2 A schematic flow chart of a speed control method for a production line provided according to an embodiment of the present application is shown;

[0019] Figure 3 A flow chart of speed control of a production line provided according to an embodiment of the present application is shown;

[0020] Figure 4 A structural block diagram of a speed control device for a production line provided according to an embodiment of the present application is shown.

[0021] The above drawings include the following reference numerals:

[0022] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION

[0023] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] As introduced in the background technology, the prior art uses manual adjustment of the production line speed, resulting in poor camera quality or low output. To solve the above technical problems, the embodiments of the present application provide a production line speed control method, device, computer-readable storage medium and electronic device.

[0027] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0028] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for controlling the speed of a production line according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the speed control method of the production line in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the method described is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The transmission device 106 is used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0030] In this embodiment, a speed control method for a production line running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0031] Figure 2: is a flow chart of a speed control method for a production line according to an embodiment of the present application, wherein an image acquisition device is provided on one side of the production line, the field of view of the image acquisition device faces the production line, and is used to acquire images of the production line for quality inspection, assembly identification, etc. The image acquisition device may be a video camera, a camera, or other equipment. Figure 2 As shown, the method comprises the following steps:

[0032] Step S201, determining the maximum moving speed of the production line, the maximum moving speed being the ratio of the maximum displacement of the transport object on the production line within the shooting time of a single frame image to the shooting time of the single frame image when the image of the transport object in the production line image meets the imaging quality requirements;

[0033] Specifically, the production line is used to transport a transport object located thereon. The single-frame image shooting duration is the duration of the image acquisition device shooting a single-frame image. In the case where the transport object exists on the production line, the production line image acquired by the image acquisition device includes the transport object image.

[0034] Step S202, when the production line moves at the maximum moving speed, a plurality of production line image sets acquired by the image acquisition device are acquired, and different production line image sets correspond to different qualities of transported objects on the production line;

[0035] Specifically, each of the production line image sets includes a plurality of production line images. The mass of the transported object is the sum of the masses of the transported objects on the production line.

[0036] Step S203, determining the corresponding relationship between the mass of the transport object and the vibration speed according to the plurality of production line image sets, wherein the vibration speed is the speed at which the production line vibrates along the moving direction;

[0037] Specifically, the production line will cause vibration due to its movement, and the greater the speed of movement, the greater the vibration amplitude and the greater the vibration speed. The vibration of the production line will drive the vibration of the transported objects on the production line, that is, the vibration speed is also the vibration speed of the transported objects. For the transported objects on the production line, affected by inertia, the mass of the transported objects is different, and the inertia of the transported objects is different, so the effect of the transported objects being affected by the vibration of the production line is also different.

[0038] Step S204, determining the vibration speed corresponding to the mass of the target transport object according to the corresponding relationship and the mass of the target transport object, and obtaining a target vibration speed;

[0039] Specifically, the target transport object mass is a preset mass value, which can be determined according to the expected output of the production line, that is, the target transport object mass = output * the monomer mass of the transport object.

[0040] Step S205, determining a target speed according to the maximum moving speed and the target vibration speed and controlling the production line to move at the target speed, so that the production line transports the transport object with a total mass equal to the target transport object mass.

[0041] Through the described embodiment, first, the maximum moving speed of the production line is determined when the image of the transport object in the production line image meets the imaging quality requirements; then, when the production line moves at the maximum moving speed, a set of production line images corresponding to different transport object masses acquired by the image acquisition device is acquired; thereafter, based on the acquired multiple production line image sets, the corresponding relationship between the transport object mass and the vibration speed is determined; based on the corresponding relationship, the vibration speed corresponding to the target transport object mass is determined to obtain the target vibration speed; finally, based on the maximum moving speed and the target vibration speed, the target speed is determined, and the production line is controlled to move at the target speed, so that the production line transports the transport object of the target transport object mass. Compared with the prior art that manually adjusts the production line speed, the problem of poor camera quality caused by too fast production line speed or low output caused by too slow production line speed, the present application first determines the maximum moving speed of the production line when the image of the transported object meets the imaging quality requirements, and then, when the production line moves at this speed, determines the correspondence between the quality of the transported object on the production line and the vibration speed of the production line according to a plurality of production line image sets captured by the image acquisition device, so as to determine the production line moving speed that adapts to the current production demand and meets the image quality. It takes into account the impact of the production line vibration on the image quality of the transported object and the actual production demand of the production line, realizes adaptive adjustment of the production line moving speed, avoids blurred images caused by vibration caused by excessive moving speed, ensures effective monitoring of the quality of the transported object, and enables the production line to move at a high line speed to the greatest extent, ensuring a high output of the production line. Therefore, the present application takes into account both the quality monitoring and production demand of the transported objects of the production line.

[0042] In actual application, when the production line moves too fast, in addition to the image acquisition device being blurred due to the speed, the speed is also likely to cause the production line to vibrate with a large amplitude, causing vibration of the transported object. The superposition of the moving speed and the vibration speed further exacerbates the blurriness of the image, leading to a decline in production quality, misdetection, or inability to assemble. The scheme of the present application uses image processing technology to calculate the vibration speed of the production line, and completes the adaptive adjustment of the moving speed of the production line based on the superposition and adaptation of the production line speed and the vibration speed, ensuring that a high line speed is used to the greatest extent possible without causing blurred images due to vibration, and solving the problem of unclear camera images due to the superposition of the production line vibration speed. In addition, the adaptive adjustment method does not need to rely on manual experience, has higher accuracy, and can maximize production.

[0043] Wherein, the corresponding relationship may include multiple transport object masses and corresponding vibration speed values. According to the corresponding relationship and the target transport object mass, the vibration speed corresponding to the target transport object mass is determined to obtain the target vibration speed. Specifically, it may be as follows: according to the target transport object mass, the vibration speed corresponding to the transport object mass that is the same as the target transport object mass is searched from the corresponding relationship as the target vibration speed. Alternatively, the corresponding relationship is a relationship formula that characterizes the transport object mass and the vibration speed. According to the corresponding relationship and the target transport object mass, the vibration speed corresponding to the target transport object mass is determined. The implementation method for obtaining the target vibration speed may also be as follows: substituting the target transport object mass into the corresponding relationship to calculate and obtain the target vibration speed corresponding to the target transport object mass.

[0044] Specifically, the image acquisition device can be installed on the production line or outside the production line.

[0045] In an optional solution, step S202: acquiring a plurality of production line image sets acquired by the image acquisition device when the production line moves at the maximum moving speed, comprises:

[0046] Step S2021: when the production line moves at the maximum moving speed and the mass of the transported object is 0, at least two frames of images including a calibration object acquired by the image acquisition device are acquired to obtain a set of images of the production line, wherein when the image acquisition device is located on the production line, the calibration object is an object that is not located on the production line, and when the image acquisition device is not located on the production line, the calibration object is an object that is located on the production line;

[0047] Specifically, the mass of the transported object is 0, which indicates that the production line is in an unloaded state. When the image acquisition device is located on the production line, the image acquisition device will be driven by the vibration of the production line to vibrate itself. At this time, the calibration object that is not located on the production line is selected to reflect the relative vibration of the production line; and when the image acquisition device is not located on the production line, the calibration object located on the production line is selected to characterize the vibration of the production line to show the relative vibration of the production line. Regardless of whether the selected calibration object is on the production line or not, it is required that the image of the calibration object is included in the production line image captured by the image acquisition device. The calibration object can specifically be selected from objects such as sensors and screws. At least two frames of images can be continuous frame images for the same calibration object, or discontinuous frame images for the same calibration object.

[0048] Step S2022: When the production line moves at the maximum moving speed and the mass of the transport object is not 0, obtain at least two frames of images including the transport object captured by the image acquisition device to obtain a set of production line images corresponding to the mass of each transport object.

[0049] Specifically, when the mass of the transport object is not zero and there are multiple transport objects, the number of transport objects on the corresponding production line is different. The at least two frames of images can be continuous frame images of the same transport object on the production line, or discontinuous frame images of the same transport object on the production line.

[0050] In the embodiment, by acquiring a set of production line images when the production line is empty and when transporting objects of different masses, it is convenient to perform image processing based on these production line image sets to obtain the production line vibration speed corresponding to different transport object masses.

[0051] Further, step S203: determining the corresponding relationship between the mass of the transported object and the vibration speed according to the plurality of production line image sets, including:

[0052] Step S2031: extracting features from the images in the production line image set to obtain feature points of a target object corresponding to each image in the production line image set, wherein the target object is one of the following: the calibration object, the transportation object;

[0053] Specifically, the feature points of the target object can be extracted from the image by edge detection, corner detection, principal component analysis, neural network analysis, etc. Wherein, when the image is the calibration object image, the extracted feature points are the feature points of the calibration object; when the image is the transport object, the extracted feature points are the feature points of the transport object.

[0054] Step S2032: determining the vibration displacement of the target object along the moving direction according to the offset of the feature points of any two frames of images in each of the production line image sets;

[0055] Specifically, the offset is the pixel offset of the feature point along the moving direction on the two frames of images. The vibration displacement is the vibration amplitude of the target object along the moving direction.

[0056] Step S2033: determining the vibration speed corresponding to each of the production line image sets at least according to each of the vibration displacements and the corresponding shooting interval between any two frames of images, and obtaining a target array including a plurality of transport object masses and a plurality of corresponding vibration speeds;

[0057] Specifically, the shooting interval duration is the duration required to generate the offset.

[0058] Step S2034: According to the target array, curve fitting is performed on the mass of the transported object and the vibration speed to obtain a curve equation representing the corresponding relationship.

[0059] In the described embodiment, at least two frames of images in a set of production line images corresponding to the mass of each transported object are processed by image processing technology to obtain the offset of the feature points of the target object, and then the vibration speed corresponding to the mass of each transported object can be obtained based on the offset and the shooting interval. By curve fitting, a curve equation characterizing the correspondence between the mass of the transported object and the vibration speed is obtained. By using existing tools, function fitting of the mass of the transported object and the vibration speed is achieved based on image processing technology, thereby establishing a data model between the two. In this way, according to the mathematical model, the vibration speed can be obtained through the current mass of the transported object, without having to invest new costs on the production line to obtain the vibration speed, thereby reducing the speed control cost of the production line.

[0060] Among them, the specific implementation method of determining the vibration displacement of the target object along the moving direction according to the offset of the feature points of any two frames of images in each of the production line image sets can be: calibrating the conversion relationship between the image pixels and the actual size of the image acquisition device; and determining the vibration displacement according to the offset and the conversion relationship.

[0061] When the position of the image acquisition device is fixed, an object such as a ruler / length measurable object is placed still in the field of view of the image acquisition device and a frame of image is captured. The pixel value of the object in the image and its actual size are then converted to obtain the actual size represented by one pixel, that is, the conversion relationship.

[0062] In order to further ensure that the obtained vibration speed is relatively accurate, according to some further exemplary embodiments of the present application, the vibration speed corresponding to each set of production line images is determined at least according to each vibration displacement and the corresponding shooting interval time between any two frames of images, including: when the production line is a linear production line, the vibration speed is determined as the quotient of the vibration displacement and the shooting interval time; when the production line is a curved production line, a predetermined angle is obtained, and the predetermined angle includes at least one of the following: the angle between the tangent of the production line and the moving direction, and the angle between the moving direction and the plane where the lens of the image acquisition device is located; according to the quotient of the vibration displacement and the shooting interval time and the predetermined angle, the vibration speed is determined as the product of the quotient and the cosine value of the predetermined angle. In this embodiment, the vibration speed of the target object along the moving direction is determined according to the line type of the production line, which further ensures that the obtained vibration speed is relatively accurate.

[0063] In the actual application process, those skilled in the art can flexibly select a curve fitting method according to the actual situation to fit the mass of the transported object and the vibration speed. In other embodiments of the present application, according to the target array, the mass of the transported object and the vibration speed are curve fitted, including one of the following: according to the target array, the mass of the transported object and the vibration speed are curve fitted by using a cubic spline interpolation method; according to the target array, the mass of the transported object and the vibration speed are curve fitted by using a maximum likelihood estimation method; according to the target array, the mass of the transported object and the vibration speed are curve fitted by using a least squares method. Through the fitting method, the data in the target array can be well fitted and a smooth curve can be generated between data points.

[0064] In order to further take into account the quality monitoring and production requirements of the transport objects of the production line, optionally, the target speed is determined according to the maximum moving speed and the target vibration speed, including: according to the maximum moving speed and the target vibration speed, the target speed is determined as the difference between the absolute value of the maximum moving speed and the target vibration speed. Because vibration is a back-and-forth movement, the vibration speed has positive and negative direction components. Therefore, by calculating the difference between the absolute value of the maximum moving speed and the target vibration speed as the moving speed of the production line, the vibration speed component consistent with the moving direction of the production line is further avoided from being superimposed on the production line speed, which exceeds the maximum speed that the camera can withstand, thereby causing the camera to take unclear images, further ensuring that the clarity of the image meets the requirements, and at the same time further ensuring that the production line can move at a high line speed to the greatest extent.

[0065] Specifically, determining the maximum moving speed of the production line includes: obtaining the frame rate of the image acquisition device and the movable range of the transport object, the movable range being the displacement range of the transport object within a unit time when the image of the transport object meets the imaging quality; determining, based on the frame rate, the shooting duration of the single-frame image as the reciprocal of the frame rate; and determining, based on the movable range and the shooting duration of the single-frame image, the maximum moving speed as the quotient of the movable range and the shooting duration of the single-frame image.

[0066] In general, when the transport object covers more than 3 / 4 of the entire field of view of the image acquisition device, it is considered that when the displacement of the transport object is less than 20 pixels, no imaging blur will be caused. That is, the movable range can be obtained by multiplying the pixel value by the actual size represented by one pixel. Of course, the pixel displacement value is not limited to the 20 pixels, which depends on the requirements for image quality. Those skilled in the art can flexibly set the pixel value according to the image quality requirements. For example, when the image quality requirements are high, the pixel value is set to less than 20, such as 15; for another example, when the image quality requirements are low, the pixel value is set to greater than 20, such as 30.

[0067] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the speed control method of the production line of the present application will be described in detail below in combination with specific embodiments.

[0068] This embodiment relates to a specific method for controlling the speed of a production line. Taking the image acquisition device as a camera and the production line as a linear production line as an example, the specific process of the method is described as follows: Figure 3 As shown, the method comprises the following steps:

[0069] Step S1: Calculate the maximum line speed that the camera hardware can tolerate:

[0070] S11: Calibrate the relationship between camera pixels and actual size: When the camera position is fixed, use a ruler / length to measure the object, place it still in the camera field of view and shoot a frame of image, and convert the pixel value occupied by the ruler to get how many millimeters 1 pixel is equal to. For example, 10 pixels = 1mm, which means that the actual size of one pixel represents 0.1mm.

[0071] S12: Calculate the movable range of the product for unblurred photography: Usually, when the product covers more than 3 / 4 of the entire camera field of view, it is considered that a product displacement of less than 20 pixels will not cause image blur. Substituting the relationship between 1 pixel and the actual size calculated in step S11, the movable range of the product for unblurred photography can be calculated, that is, movable range = 20*0.1mm = 2mm.

[0072] S13: Calculate the maximum production line speed that the camera can withstand based on the frame rate of the camera (with a suitable lens): For example, if the frame rate of a camera is 25 frames, it means that 25 frames of images can be captured in 1 second, and the interval time for capturing a single image is (1 / 25) = 0.04s. When capturing a single frame image, the product can be moved to ensure that the image is not blurred, so the production line speed ≤ (movable range / single frame image capture time) = 2mm / 0.04s = 50mm / s, that is, the maximum production line speed is 0.05m / s.

[0073] Step S2: Calculate the vibration speed in the moving direction of the production line:

[0074] S21: Set vibration speed calculation conditions and select vibration targets: control the production line to maintain the calculated maximum production line speed without load, select a calibration object in the field of view of the current camera station, the calibration object is selected by the user, and any object can be selected as long as the object has significant angular differences, such as screws, sensors, etc. At the same time, the program will perform feature (corner point) detection on the user's calibration frame, and prompt the user to reselect if the number of features is insufficient;

[0075] S22: Calculate vibration speed: program control continuously Figure 2 s, 50 frames are obtained. First, a rough target detection is performed on each frame to find the approximate field of view (pixel position) of the calibration object. Then, the feature points of the calibration object in the approximate field of view of the calibration object in each frame are found by using the feature extraction technology. 20 feature points that match the calibration object in each frame are randomly selected, and the average pixel offset of each feature point in the x direction (movement direction of the production line) between each adjacent frame is calculated. The vibration displacement a between each adjacent frame can be obtained by using the conversion relationship between pixels and actual sizes. i (i=1,2,3,4,...,49), where a i Indicates the vibration displacement between the i-th frame and the i+1-th frame. Use the formula: vibration speed = max(a i / interval time of a single picture) to calculate the vibration speed. Assuming that the maximum average pixel offset here is 4 pixels, the maximum inter-frame vibration displacement is 4*0.1=0.4mm (the conversion relationship calculated in step S11), and the vibration speed = 0.4mm / 0.04s=10mm / s=0.01m / s. Because vibration is a back-and-forth movement, the vibration speed has positive and negative direction components, that is, the unloaded vibration speed is plus or minus 0.01m / s.

[0076] Step S3: Fitting the curve equation of product mass and vibration speed (moving direction of production line):

[0077] Step S31: Affected by inertia, the quality of products on the production line is different. Different product inertia will result in different effects of vibration. The relationship between product quality and vibration speed is not a simple linear relationship, so a curve fitting method is used to fit the curve equation between product quality and vibration speed. The setting of vibration speed calculation conditions introduced in step S21 is an example of an unloaded production line. Here, multiple sets of data should be taken. While other conditions remain unchanged, the number of products on the production line is changed, that is, the total product quality is changed, and then the calculation is performed according to step S22. Assume that N sets of product quality data are taken to calculate N sets of vibration speed data, and the unloaded data obtained in steps S21 to S22 are added to form N+1 sets of corresponding values ​​between product quality x and vibration speed y, that is, (x 1 ,y 1 )、(x 2 ,y 2 ),……、(x N ,y N )、(x N+1 ,y N+1 ).

[0078] Step S32: The N+1 sets of mass x and vibration speed y value pairs are subjected to curve fitting using the cubic spline sampling method to calculate the relationship equation between product mass and vibration speed. Wherein, N can be any natural number greater than 3. The larger the N value, the more accurate the fitted curve equation.

[0079] Step S4: Adaptively adjust the production line speed according to the output:

[0080] S41: Calculate vibration speed based on output: Estimate total product mass based on expected output, total product mass = output * single product mass. Then substitute x = total product mass into the relationship equation calculated in step S32 to get the expected vibration speed. Assume that when the output is 3,000 units, the vibration speed is about 0.005m / s.

[0081] S42: Calculate the optimal production line speed based on the vibration speed, and control the production line to move at this speed.

[0082] According to the maximum production line speed calculated and measured in step S13, the vibration speed and the production line speed will be superimposed, resulting in the superposition of the speed component whose vibration direction is consistent with the production line movement direction, which exceeds the maximum speed that the camera can withstand, resulting in unclear images taken by the camera. Considering that the vibration speed has positive and negative direction components, considering the need to ensure clear images, the optimal production line speed = the maximum production line speed that the existing camera hardware can tolerate - | vibration speed | = (0.05-0.005) = 0.045m / s. According to the influencing factors of the vibration speed, the production line speed is adaptively adjusted based on image processing.

[0083] In addition, when the production line is a non-linear production line, such as a curved production line, when calculating the vibration speed, the basic coordinate direction should be selected and the cosine vector value of the tangent direction should be multiplied accordingly. In addition, the curve fitting used in step S32 is not limited to cubic spline fitting, and can also use, for example, maximum likelihood estimation method, least squares method, etc.

[0084] In view of the existing hardware limitations and the impact of production line vibration, this application proposes a production line speed adaptive adjustment method based on image processing. First, the maximum production line speed that the existing camera hardware can tolerate is calculated. Then, the vibration speed of multiple groups of production lines in the moving direction is calculated to fit the digital-to-analog relationship between product quality and vibration speed. The vibration impact is estimated through the ideal output, and the production line speed is adaptively adjusted to obtain the optimal production line speed, ensuring that the image will not be blurred due to vibration at high production line speed, thereby improving production efficiency.

[0085] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0086] The present application embodiment also provides a speed control device for a production line. It should be noted that the speed control device for the production line of the present application embodiment can be used to execute the speed control method for the production line provided by the present application embodiment. The device is used to implement the embodiments and preferred implementations, and the descriptions have been omitted. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and contemplated.

[0087] The speed control device of the production line provided in the embodiment of the present application is introduced below.

[0088] Figure 4 Schematic diagram of a speed control device for a production line according to an embodiment of the present application, wherein an image acquisition device is provided on one side of the production line, the field of view of the image acquisition device faces the production line, and is used to acquire images of the production line for quality inspection, assembly identification, etc. The image acquisition device may be a video camera, a camera, or other equipment. Figure 4 As shown, the device comprises:

[0089] A first determining unit 10 is used to determine the maximum moving speed of the production line, where the maximum moving speed is the ratio of the maximum displacement of the transport object on the production line within the shooting time of a single frame image to the shooting time of the single frame image when the image of the transport object in the production line image meets the imaging quality requirements;

[0090] Specifically, the production line is used to transport a transport object located thereon. The single-frame image shooting duration is the duration of the image acquisition device shooting a single-frame image. In the case where the transport object exists on the production line, the production line image acquired by the image acquisition device includes the transport object image.

[0091] An acquisition unit 20 is used to acquire a plurality of production line image sets acquired by the image acquisition device when the production line moves at the maximum moving speed, wherein different production line image sets correspond to different qualities of transported objects on the production line;

[0092] Specifically, each of the production line image sets includes a plurality of production line images. The mass of the transported object is the sum of the masses of the transported objects on the production line.

[0093] A second determination unit 30 is used to determine the correspondence between the mass of the transport object and the vibration speed according to the plurality of production line image sets, wherein the vibration speed is the speed at which the production line vibrates along the moving direction;

[0094] Specifically, the production line will cause vibration due to its movement, and the greater the speed of movement, the greater the vibration amplitude and the greater the vibration speed. The vibration of the production line will drive the vibration of the transported objects on the production line, that is, the vibration speed is also the vibration speed of the transported objects. For the transported objects on the production line, affected by inertia, the mass of the transported objects is different, and the inertia of the transported objects is different, so the effect of the transported objects being affected by the vibration of the production line is also different.

[0095] A third determining unit 40 is used to determine the vibration speed corresponding to the target transport object mass according to the corresponding relationship and the target transport object mass, so as to obtain a target vibration speed;

[0096] Specifically, the target transport object mass is a preset mass value, which can be determined according to the expected output of the production line, that is, the target transport object mass = output * the monomer mass of the transport object.

[0097] The fourth determining unit 50 is used to determine a target speed according to the maximum moving speed and the target vibration speed and control the production line to move at the target speed so that the production line transports the transport object with a total mass equal to the target transport object mass.

[0098] In the described embodiment, a first determination unit is used to determine the maximum moving speed of the production line when the image of the transport object in the production line image meets the imaging quality requirements; when the production line moves at the maximum moving speed, an acquisition unit is used to acquire a set of production line images corresponding to different transport object masses acquired by an image acquisition device; a second determination unit is used to determine the correspondence between the transport object mass and the vibration speed based on the acquired multiple production line image sets; a third determination unit is used to determine the vibration speed corresponding to the target transport object mass based on the correspondence to obtain the target vibration speed; a fourth determination unit is used to determine the target speed based on the maximum moving speed and the target vibration speed, and the production line is controlled to move at the target speed so that the production line transports the transport object of the target transport object mass. Compared with the prior art that manually adjusts the production line speed, the problem of poor camera quality caused by too fast production line speed or low output caused by too slow production line speed, the present application first determines the maximum moving speed of the production line when the image of the transported object meets the imaging quality requirements, and then, when the production line moves at this speed, determines the correspondence between the quality of the transported object on the production line and the vibration speed of the production line according to a plurality of production line image sets captured by the image acquisition device, so as to determine the production line moving speed that adapts to the current production demand and meets the image quality. It takes into account the impact of the production line vibration on the image quality of the transported object and the actual production demand of the production line, realizes adaptive adjustment of the production line moving speed, avoids blurred images caused by vibration caused by excessive moving speed, ensures effective monitoring of the quality of the transported object, and enables the production line to move at a high line speed to the greatest extent, ensuring a high output of the production line. Therefore, the present application takes into account both the quality monitoring and production demand of the transported objects of the production line.

[0099] In actual application, when the production line moves too fast, in addition to the image acquisition device being blurred due to the speed, the speed is also likely to cause the production line to vibrate with a large amplitude, causing vibration of the transported object. The superposition of the moving speed and the vibration speed further exacerbates the blurriness of the image, leading to a decline in production quality, misdetection, or inability to assemble. The scheme of the present application uses image processing technology to calculate the vibration speed of the production line, and completes the adaptive adjustment of the moving speed of the production line based on the superposition and adaptation of the production line speed and the vibration speed, ensuring that a high line speed is used to the greatest extent possible without causing blurred images due to vibration, and solving the problem of unclear camera images due to the superposition of the production line vibration speed. In addition, the adaptive adjustment method does not need to rely on manual experience, has higher accuracy, and can maximize production.

[0100] Wherein, the corresponding relationship may include multiple transport object masses and corresponding vibration speed values, and the third determination unit may specifically include: a search module, used to search from the corresponding relationship for the vibration speed corresponding to the transport object mass that is the same as the target transport object mass according to the target transport object mass as the target vibration speed. Alternatively, the corresponding relationship is a relationship formula that characterizes the transport object mass and the vibration speed, and the third determination unit may further include: a substitution module, used to substitute the target transport object mass into the corresponding relationship to calculate the target vibration speed corresponding to the target transport object mass.

[0101] Specifically, the image acquisition device can be installed on the production line or outside the production line.

[0102] In an optional solution, the acquisition unit includes:

[0103] a first acquisition module, configured to acquire, when the production line moves at the maximum moving speed and the mass of the transported object is 0, at least two frames of images acquired by the image acquisition device and including a calibration object, to obtain a set of images of the production line, wherein, when the image acquisition device is located on the production line, the calibration object is an object that is not located on the production line, and when the image acquisition device is not located on the production line, the calibration object is an object that is located on the production line;

[0104] Specifically, the mass of the transported object is 0, which indicates that the production line is in an unloaded state. When the image acquisition device is located on the production line, the image acquisition device will be driven by the vibration of the production line to vibrate itself. At this time, the calibration object that is not located on the production line is selected to reflect the relative vibration of the production line; and when the image acquisition device is not located on the production line, the calibration object located on the production line is selected to characterize the vibration of the production line to show the relative vibration of the production line. Regardless of whether the selected calibration object is on the production line or not, it is required that the image of the calibration object is included in the production line image captured by the image acquisition device. The calibration object can specifically be selected from objects such as sensors and screws. At least two frames of images can be continuous frame images for the same calibration object, or discontinuous frame images for the same calibration object.

[0105] The second acquisition module is used to acquire at least two frames of images including the transport object captured by the image acquisition device when the production line moves at the maximum moving speed and the mass of the transport object is not 0, so as to obtain the production line image set corresponding to the mass of each transport object.

[0106] Specifically, when the mass of the transport object is not zero and there are multiple transport objects, the number of transport objects on the corresponding production line is different. The at least two frames of images can be continuous frame images of the same transport object on the production line, or discontinuous frame images of the same transport object on the production line.

[0107] In the embodiment, by acquiring a set of production line images when the production line is empty and when transporting objects of different masses, it is convenient to perform image processing based on these production line image sets to obtain the production line vibration speed corresponding to different transport object masses.

[0108] Further, the second determining unit includes:

[0109] An extraction module, used for performing feature extraction on each image in the production line image set to obtain feature points of a target object corresponding to each image in the production line image set, wherein the target object is one of the following: the calibration object and the transportation object;

[0110] Specifically, the feature points of the target object can be extracted from the image by edge detection, corner detection, principal component analysis, neural network analysis, etc. Wherein, when the image is the calibration object image, the extracted feature points are the feature points of the calibration object; when the image is the transport object, the extracted feature points are the feature points of the transport object.

[0111] A first determination module, configured to determine the vibration displacement of the target object along the moving direction according to the offset of the feature points of any two frames of images in each of the production line image sets;

[0112] Specifically, the offset is the pixel offset of the feature point along the moving direction on the two frames of images. The vibration displacement is the vibration amplitude of the target object along the moving direction.

[0113] A second determination module is used to determine the vibration speed corresponding to each of the production line image sets at least according to each of the vibration displacements and the corresponding shooting interval between any two frames of images, and obtain a target array including a plurality of transport object masses and a plurality of corresponding vibration speeds;

[0114] Specifically, the shooting interval duration is the duration required to generate the offset.

[0115] A fitting module is used to perform curve fitting on the mass of the transport object and the vibration speed according to the target array to obtain a curve equation representing the corresponding relationship.

[0116] In the described embodiment, at least two frames of images in a set of production line images corresponding to the mass of each transported object are processed by image processing technology to obtain the offset of the feature points of the target object, and then the vibration speed corresponding to the mass of each transported object can be obtained based on the offset and the shooting interval. By curve fitting, a curve equation characterizing the correspondence between the mass of the transported object and the vibration speed is obtained. By using existing tools, function fitting of the mass of the transported object and the vibration speed is achieved based on image processing technology, thereby establishing a data model between the two. In this way, according to the mathematical model, the vibration speed can be obtained through the current mass of the transported object, without having to invest new costs on the production line to obtain the vibration speed, thereby reducing the speed control cost of the production line.

[0117] The first determination module may include: a calibration submodule for calibrating the conversion relationship between image pixels and actual size of the image acquisition device; and a first determination submodule for determining the vibration displacement according to the offset and the conversion relationship.

[0118] When the position of the image acquisition device is fixed, an object such as a ruler / length measurable object is placed still in the field of view of the image acquisition device and a frame of image is captured. The pixel value of the object in the image and its actual size are then converted to obtain the actual size represented by one pixel, that is, the conversion relationship.

[0119] In order to further ensure that the obtained vibration speed is relatively accurate, according to some further exemplary embodiments of the present application, the second determination module includes: a second determination submodule, which is used to determine the vibration speed as the quotient of the vibration displacement and the shooting interval time when the production line is a linear production line; an acquisition submodule, which is used to acquire a predetermined angle when the production line is a curved production line, and the predetermined angle includes at least one of the following: the angle between the tangent of the production line and the moving direction, and the angle between the moving direction and the plane where the lens of the image acquisition device is located; a third determination submodule, which is used to determine the vibration speed as the product of the quotient and the cosine value of the predetermined angle based on the quotient of the vibration displacement and the shooting interval time and the predetermined angle. In this embodiment, the vibration speed of the target object along the moving direction is determined according to the line type of the production line, which further ensures that the obtained vibration speed is relatively accurate.

[0120] In the actual application process, those skilled in the art can flexibly select a curve fitting method according to the actual situation to fit the mass of the transport object and the vibration speed. In other embodiments of the present application, the fitting module includes one of the following: a first fitting submodule, for fitting the mass of the transport object and the vibration speed according to the target array using a cubic spline interpolation method; a second fitting submodule, for fitting the mass of the transport object and the vibration speed according to the target array using a maximum likelihood estimation method; a third fitting submodule, for fitting the mass of the transport object and the vibration speed according to the target array using a least squares method. Through the fitting method, the data in the target array can be well fitted and a smooth curve can be generated between data points.

[0121] In order to further take into account the quality monitoring and production requirements of the transport objects of the production line, optionally, the fourth determination unit includes: a third determination module, which is used to determine the target speed as the difference between the absolute value of the maximum moving speed and the target vibration speed according to the maximum moving speed and the target vibration speed. Because vibration is a back-and-forth movement, the vibration speed has positive and negative direction components. Therefore, by calculating the difference between the absolute value of the maximum moving speed and the target vibration speed as the moving speed of the production line, it is further avoided that the vibration speed component consistent with the moving direction of the production line is superimposed on the production line speed, which exceeds the maximum speed that the camera can withstand, thereby causing the camera to take unclear images, further ensuring that the clarity of the image meets the requirements, and at the same time further ensuring that the production line can move at a high line speed to the greatest extent.

[0122] Specifically, the first determination unit includes: a third acquisition module, used to acquire the frame rate of the image acquisition device and the movable range of the transport object, the movable range being the displacement range of the transport object within a unit time when the image of the transport object meets the imaging quality; a fourth determination module, used to determine, according to the frame rate, that the shooting duration of the single-frame image is the inverse of the frame rate; and a fifth determination module, used to determine, according to the movable range and the shooting duration of the single-frame image, that the maximum moving speed is the quotient of the movable range and the shooting duration of the single-frame image.

[0123] In general, when the transport object covers more than 3 / 4 of the entire field of view of the image acquisition device, it is considered that when the displacement of the transport object is less than 20 pixels, no imaging blur will be caused. That is, the movable range can be obtained by multiplying the pixel value by the actual size represented by one pixel. Of course, the pixel displacement value is not limited to the 20 pixels, which depends on the requirements for image quality. Those skilled in the art can flexibly set the pixel value according to the image quality requirements. For example, when the image quality requirements are high, the pixel value is set to less than 20, such as 15; for another example, when the image quality requirements are low, the pixel value is set to greater than 20, such as 30.

[0124] The speed control device of the production line includes a processor and a memory, wherein the first determination unit, the acquisition unit, the second determination unit, the third determination unit, and the fourth determination unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.

[0125] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to at least solve the problem of poor camera quality or low output caused by manual adjustment of production line speed in the prior art.

[0126] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0127] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the speed control method of the production line.

[0128] Specifically, the speed control method of the production line includes:

[0129] Step S201, determining the maximum moving speed of the production line, the maximum moving speed being the ratio of the maximum displacement of the transport object on the production line within the shooting time of a single frame image to the shooting time of the single frame image when the image of the transport object in the production line image meets the imaging quality requirements;

[0130] Specifically, the production line is used to transport a transport object located thereon. The single-frame image shooting duration is the duration of the image acquisition device shooting a single-frame image. In the case where the transport object exists on the production line, the production line image acquired by the image acquisition device includes the transport object image.

[0131] Step S202, when the production line moves at the maximum moving speed, a plurality of production line image sets acquired by the image acquisition device are acquired, and different production line image sets correspond to different qualities of transported objects on the production line;

[0132] Specifically, each of the production line image sets includes a plurality of production line images. The mass of the transported object is the sum of the masses of the transported objects on the production line.

[0133] Step S203, determining the corresponding relationship between the mass of the transport object and the vibration speed according to the plurality of production line image sets, wherein the vibration speed is the speed at which the production line vibrates along the moving direction;

[0134] Specifically, the production line will cause vibration due to its movement, and the greater the speed of movement, the greater the vibration amplitude and the greater the vibration speed. The vibration of the production line will drive the vibration of the transported objects on the production line, that is, the vibration speed is also the vibration speed of the transported objects. For the transported objects on the production line, affected by inertia, the mass of the transported objects is different, and the inertia of the transported objects is different, so the effect of the transported objects being affected by the vibration of the production line is also different.

[0135] Step S204, determining the vibration speed corresponding to the mass of the target transport object according to the corresponding relationship and the mass of the target transport object, and obtaining a target vibration speed;

[0136] Specifically, the target transport object mass is a preset mass value, which can be determined according to the expected output of the production line, that is, the target transport object mass = output * the monomer mass of the transport object.

[0137] Step S205, determining a target speed according to the maximum moving speed and the target vibration speed and controlling the production line to move at the target speed, so that the production line transports the transport object with a total mass equal to the target transport object mass.

[0138] Optionally, when the production line moves at the maximum moving speed, a plurality of production line image sets captured by the image acquisition device are obtained, including: when the production line moves at the maximum moving speed and the mass of the transport object is 0, at least two frames of images including a calibration object captured by the image acquisition device are obtained to obtain one production line image set, wherein, when the image acquisition device is located on the production line, the calibration object is an object not located on the production line, and when the image acquisition device is not located on the production line, the calibration object is an object located on the production line; when the production line moves at the maximum moving speed and the mass of the transport object is not 0, at least two frames of images including the transport object captured by the image acquisition device are obtained to obtain a production line image set corresponding to each mass of the transport object.

[0139] Optionally, the correspondence between the mass of the transport object and the vibration speed is determined based on multiple production line image sets, including: performing feature extraction on the images in each of the production line image sets to obtain feature points of the target object corresponding to each image in the production line image set, the target object being one of the following: the calibration object, the transport object; determining the vibration displacement of the target object along the moving direction based on the offset of the feature points between any two frames of images in each of the production line image sets; determining the vibration speed corresponding to each of the production line image sets based on at least each vibration displacement and the corresponding shooting interval between any two frames of images, to obtain a target array including multiple transport object masses and corresponding multiple vibration speeds; performing curve fitting on the transport object mass and the vibration speed based on the target array to obtain a curve equation characterizing the correspondence.

[0140] Optionally, the vibration speed corresponding to each set of production line images is determined at least based on each vibration displacement and the corresponding shooting interval time between any two frames of images, including: when the production line is a linear production line, the vibration speed is determined as the quotient of the vibration displacement and the shooting interval time; when the production line is a curved production line, a predetermined angle is obtained, and the predetermined angle includes at least one of the following: the angle between the tangent of the production line and the moving direction, the angle between the moving direction and the plane where the lens of the image acquisition device is located; based on the quotient of the vibration displacement and the shooting interval time and the predetermined angle, the vibration speed is determined as the product of the quotient and the cosine value of the predetermined angle.

[0141] Optionally, according to the target array, curve fitting is performed on the mass of the transport object and the vibration speed, including one of the following: according to the target array, cubic spline interpolation method is used to perform curve fitting on the mass of the transport object and the vibration speed; according to the target array, maximum likelihood estimation method is used to perform curve fitting on the mass of the transport object and the vibration speed; according to the target array, least squares method is used to perform curve fitting on the mass of the transport object and the vibration speed.

[0142] Optionally, determining the target speed according to the maximum moving speed and the target vibration speed includes: determining the target speed as a difference between the absolute values ​​of the maximum moving speed and the target vibration speed according to the maximum moving speed and the target vibration speed.

[0143] Optionally, determining the maximum moving speed of the production line includes: acquiring the frame rate of the image acquisition device and the movable range of the transport object, the movable range being the displacement range of the transport object within a unit time when the image of the transport object satisfies the imaging quality; determining, based on the frame rate, the shooting duration of the single-frame image as the reciprocal of the frame rate; and determining, based on the movable range and the shooting duration of the single-frame image, the maximum moving speed as the quotient of the movable range and the shooting duration of the single-frame image.

[0144] An embodiment of the present invention provides a processor, which is used to run a program, wherein the speed control method of the production line is executed when the program is run.

[0145] Specifically, the speed control method of the production line includes:

[0146] Step S201, determining the maximum moving speed of the production line, the maximum moving speed being the ratio of the maximum displacement of the transport object on the production line within the shooting time of a single frame image to the shooting time of the single frame image when the image of the transport object in the production line image meets the imaging quality requirements;

[0147] Step S202, when the production line moves at the maximum moving speed, a plurality of production line image sets acquired by the image acquisition device are acquired, and different production line image sets correspond to different qualities of transported objects on the production line;

[0148] Step S203, determining the corresponding relationship between the mass of the transport object and the vibration speed according to the plurality of production line image sets, wherein the vibration speed is the speed at which the production line vibrates along the moving direction;

[0149] Step S204, determining the vibration speed corresponding to the mass of the target transport object according to the corresponding relationship and the mass of the target transport object, and obtaining a target vibration speed;

[0150] Step S205, determining a target speed according to the maximum moving speed and the target vibration speed and controlling the production line to move at the target speed, so that the production line transports the transport object with a total mass equal to the target transport object mass.

[0151] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0152] Step S201, determining the maximum moving speed of the production line, the maximum moving speed being the ratio of the maximum displacement of the transport object on the production line within the shooting time of a single frame image to the shooting time of the single frame image when the image of the transport object in the production line image meets the imaging quality requirements;

[0153] Step S202, when the production line moves at the maximum moving speed, a plurality of production line image sets acquired by the image acquisition device are acquired, and different production line image sets correspond to different qualities of transported objects on the production line;

[0154] Step S203, determining the corresponding relationship between the mass of the transport object and the vibration speed according to the plurality of production line image sets, wherein the vibration speed is the speed at which the production line vibrates along the moving direction;

[0155] Step S204, determining the vibration speed corresponding to the mass of the target transport object according to the corresponding relationship and the mass of the target transport object, and obtaining a target vibration speed;

[0156] Step S205, determining a target speed according to the maximum moving speed and the target vibration speed and controlling the production line to move at the target speed, so that the production line transports the transport object with a total mass equal to the target transport object mass.

[0157] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0158] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement at least the following method steps:

[0159] Step S201, determining the maximum moving speed of the production line, the maximum moving speed being the ratio of the maximum displacement of the transport object on the production line within the shooting time of a single frame image to the shooting time of the single frame image when the image of the transport object in the production line image meets the imaging quality requirements;

[0160] Step S202, when the production line moves at the maximum moving speed, a plurality of production line image sets acquired by the image acquisition device are acquired, and different production line image sets correspond to different qualities of transported objects on the production line;

[0161] Step S203, determining the corresponding relationship between the mass of the transport object and the vibration speed according to the plurality of production line image sets, wherein the vibration speed is the speed at which the production line vibrates along the moving direction;

[0162] Step S204, determining the vibration speed corresponding to the mass of the target transport object according to the corresponding relationship and the mass of the target transport object, and obtaining a target vibration speed;

[0163] Step S205, determining a target speed according to the maximum moving speed and the target vibration speed and controlling the production line to move at the target speed, so that the production line transports the transport object with a total mass equal to the target transport object mass.

[0164] Optionally, when the production line moves at the maximum moving speed, a plurality of production line image sets captured by the image acquisition device are obtained, including: when the production line moves at the maximum moving speed and the mass of the transport object is 0, at least two frames of images including a calibration object captured by the image acquisition device are obtained to obtain one production line image set, wherein, when the image acquisition device is located on the production line, the calibration object is an object not located on the production line, and when the image acquisition device is not located on the production line, the calibration object is an object located on the production line; when the production line moves at the maximum moving speed and the mass of the transport object is not 0, at least two frames of images including the transport object captured by the image acquisition device are obtained to obtain a production line image set corresponding to each mass of the transport object.

[0165] Optionally, the correspondence between the mass of the transport object and the vibration speed is determined based on multiple production line image sets, including: performing feature extraction on the images in each of the production line image sets to obtain feature points of the target object corresponding to each image in the production line image set, the target object being one of the following: the calibration object, the transport object; determining the vibration displacement of the target object along the moving direction based on the offset of the feature points between any two frames of images in each of the production line image sets; determining the vibration speed corresponding to each of the production line image sets based on at least each vibration displacement and the corresponding shooting interval between any two frames of images, to obtain a target array including multiple transport object masses and corresponding multiple vibration speeds; performing curve fitting on the transport object mass and the vibration speed based on the target array to obtain a curve equation characterizing the correspondence.

[0166] Optionally, the vibration speed corresponding to each set of production line images is determined at least based on each vibration displacement and the corresponding shooting interval time between any two frames of images, including: when the production line is a linear production line, the vibration speed is determined as the quotient of the vibration displacement and the shooting interval time; when the production line is a curved production line, a predetermined angle is obtained, and the predetermined angle includes at least one of the following: the angle between the tangent of the production line and the moving direction, the angle between the moving direction and the plane where the lens of the image acquisition device is located; based on the quotient of the vibration displacement and the shooting interval time and the predetermined angle, the vibration speed is determined as the product of the quotient and the cosine value of the predetermined angle.

[0167] Optionally, according to the target array, curve fitting is performed on the mass of the transport object and the vibration speed, including one of the following: according to the target array, cubic spline interpolation method is used to perform curve fitting on the mass of the transport object and the vibration speed; according to the target array, maximum likelihood estimation method is used to perform curve fitting on the mass of the transport object and the vibration speed; according to the target array, least squares method is used to perform curve fitting on the mass of the transport object and the vibration speed.

[0168] Optionally, determining the target speed according to the maximum moving speed and the target vibration speed includes: determining the target speed as a difference between the absolute values ​​of the maximum moving speed and the target vibration speed according to the maximum moving speed and the target vibration speed.

[0169] Optionally, determining the maximum moving speed of the production line includes: acquiring the frame rate of the image acquisition device and the movable range of the transport object, the movable range being the displacement range of the transport object within a unit time when the image of the transport object satisfies the imaging quality; determining, based on the frame rate, the shooting duration of the single-frame image as the reciprocal of the frame rate; and determining, based on the movable range and the shooting duration of the single-frame image, the maximum moving speed as the quotient of the movable range and the shooting duration of the single-frame image.

[0170] Obviously, those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0171] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0172] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0173] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0174] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0175] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0176] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0177] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0178] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0179] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A speed control method for a production line, characterized in that: The image acquisition device is used to acquire production line images, and the method comprises: Determine the maximum moving speed of the production line, the maximum moving speed being the ratio of the maximum displacement of the transport object on the production line within the shooting time of a single frame image to the shooting time of the single frame image when the image of the transport object in the production line image meets the imaging quality requirements; When the production line moves at the maximum moving speed, a plurality of production line image sets acquired by the image acquisition device are acquired, and different production line image sets correspond to different qualities of transported objects on the production line; Determining a corresponding relationship between the mass of the transport object and a vibration speed according to a plurality of the production line image sets, wherein the vibration speed is a speed at which the production line vibrates along a moving direction; According to the corresponding relationship and the mass of the target transport object, the vibration speed corresponding to the mass of the target transport object is determined to obtain a target vibration speed; According to the maximum moving speed and the target vibration speed, a target speed is determined and the production line is controlled to move at the target speed so that the production line transports the transport object with a total mass equal to the target transport object mass.

2. The method according to claim 1, characterized in that When the production line moves at the maximum moving speed, acquiring a plurality of production line image sets acquired by the image acquisition device comprises: When the production line moves at the maximum moving speed and the mass of the transported object is 0, at least two frames of images including the calibration object acquired by the image acquisition device are acquired to obtain a set of production line images, wherein when the image acquisition device is located on the production line, the calibration object is an object that is not located on the production line, and when the image acquisition device is not located on the production line, the calibration object is an object that is located on the production line; When the production line moves at the maximum moving speed and the mass of the transport object is not 0, at least two frames of images including the transport object captured by the image acquisition device are acquired to obtain a set of production line images corresponding to the masses of each transport object.

3. The method according to claim 2, characterized in that Determining the corresponding relationship between the mass of the transport object and the vibration speed according to the plurality of production line image sets includes: Performing feature extraction on each image in the production line image set to obtain feature points of a target object corresponding to each image in the production line image set, wherein the target object is one of the following: the calibration object and the transportation object; Determining the vibration displacement of the target object along the moving direction according to the offset of the feature points of any two frames of images in each of the production line image sets; Determine the vibration speed corresponding to each of the production line image sets at least according to each of the vibration displacements and the corresponding shooting interval between any two frames of images, and obtain a target array including a plurality of transport object masses and a plurality of corresponding vibration speeds; According to the target array, a curve fitting is performed on the mass of the transported object and the vibration speed to obtain a curve equation representing the corresponding relationship.

4. The method according to claim 3, characterized in that Determining the vibration speed corresponding to each of the production line image sets at least according to each of the vibration displacements and the corresponding shooting interval between any two frames of images, comprises: In the case where the production line is a linear production line, the vibration speed is determined as the quotient of the vibration displacement and the shooting interval time length; In the case where the production line is a curved production line, a predetermined angle is obtained, wherein the predetermined angle includes at least one of the following: an angle between a tangent line of the production line and the moving direction, and an angle between the moving direction and a plane where a lens of the image acquisition device is located; According to the quotient of the vibration displacement and the shooting interval time length and the predetermined angle, the vibration speed is determined as the product of the quotient and the cosine value of the predetermined angle.

5. The method according to claim 3, characterized in that: According to the target array, curve fitting is performed on the mass of the transport object and the vibration speed, including one of the following: According to the target array, a cubic spline interpolation method is used to perform curve fitting on the mass of the transport object and the vibration speed; According to the target array, a maximum likelihood estimation method is used to perform curve fitting on the mass of the transport object and the vibration speed; According to the target array, a least square method is used to perform curve fitting on the mass of the transport object and the vibration speed.

6. The method according to any one of claims 1 to 5, characterized in that Determining a target speed according to the maximum moving speed and the target vibration speed includes: According to the maximum moving speed and the target vibration speed, the target speed is determined as a difference between the absolute values ​​of the maximum moving speed and the target vibration speed.

7. The method according to any one of claims 1 to 5, characterized in that Determining the maximum moving speed of the production line, including: Acquire the frame rate of the image acquisition device and the movable range of the transport object, where the movable range is the displacement range of the transport object within a unit time when the image of the transport object meets the imaging quality; According to the frame rate, determining the shooting duration of the single frame image as the reciprocal of the frame rate; According to the movable range and the single-frame image shooting time, the maximum moving speed is determined as the quotient of the movable range and the single-frame image shooting time.

8. A speed control device for a production line, characterized in that: The image acquisition device is used to acquire images of the production line, and the device comprises: A first determining unit is used to determine a maximum moving speed of the production line, wherein the maximum moving speed is a ratio of a maximum displacement of a transport object on the production line within a single-frame image shooting time to the single-frame image shooting time when an image of the transport object in the production line image meets an imaging quality requirement; an acquisition unit, configured to acquire, when the production line moves at the maximum moving speed, a plurality of production line image sets acquired by the image acquisition device, wherein different production line image sets correspond to different qualities of transported objects on the production line; A second determining unit is used to determine the corresponding relationship between the mass of the transport object and the vibration speed according to the plurality of production line image sets, wherein the vibration speed is the speed at which the production line vibrates along the moving direction; A third determining unit is used to determine the vibration speed corresponding to the target transport object mass according to the corresponding relationship and the target transport object mass, so as to obtain a target vibration speed; The fourth determining unit is used to determine a target speed according to the maximum moving speed and the target vibration speed and control the production line to move at the target speed so that the production line transports the transport object with a total mass equal to the target transport object mass.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.