Control device and method for vehicle

By using a communicator and processor in the vehicle to receive and process image information from the camera device, determine the clarity of the label, and directly control the vehicle to move to the parking position, it solves the problem of frequent starts and stops of driverless automated vehicles and improves parking efficiency.

CN112016389BActive Publication Date: 2024-10-15SHENZHENSHI YUZHAN PRECISION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010676600.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-14
Publication Date
2024-10-15
Estimated Expiration
2040-07-14

AI Technical Summary

Technical Problem

Existing driverless automated vehicles require the vehicle to be completely stationary during the parking process to obtain clear images, resulting in frequent starts and stops and increased parking time.

Method used

By setting up a communicator and processor in the vehicle, the image information from the camera device is received, the label information is extracted for edge detection and normalization processing, and the clarity of the label is judged. If the preset threshold is reached, the vehicle can be controlled to move to the parking position, reducing Number of starts and stops.

Benefits of technology

It achieves real-time reception of image information without waiting for the vehicle to be completely stationary, reducing the number of starts and stops of the vehicle and shortening the parking time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112016389B_ABST
    Figure CN112016389B_ABST
Patent Text Reader

Abstract

The present application relates to a control device for a vehicle, comprising a communicator and a processor. The communicator receives first image information from a camera device. The processor, coupled to the communicator, is used to: extract label information from the first image information; perform edge detection on the label information to extract the total number of edges; normalize the total number of edges to form a first label clarity; determine that the first label clarity is greater than or equal to a preset threshold; based on the first label clarity being greater than or equal to the preset threshold, control the vehicle to move to a parking position according to the first image information. The present application also relates to a control method for a vehicle. The present application can effectively reduce the number of vehicle starts and stops and shorten the vehicle's parking time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated control, and in particular to a control device and method for a vehicle. Background Art

[0002] When transporting materials, existing unmanned automated vehicles need to calculate the position of the tag and the image acquisition device from the image captured by the image acquisition device, and then deduce the docking position. Usually, during the docking process, the vehicle needs to be completely still before a clear image can be acquired, and then positioning and movement can be performed. This method requires the vehicle to start and stop frequently, and at the same time, increases the docking time of the vehicle. Summary of the invention

[0003] In view of the above, it is necessary to propose a control device and method for a vehicle, which can effectively reduce the number of vehicle starts and stops and shorten the vehicle's parking time.

[0004] A first aspect of the present application provides a control device for a vehicle, comprising:

[0005] A communicator, configured to receive first image information from a camera device;

[0006] A processor, coupled to the communicator, configured to:

[0007] extracting label information from the first image information;

[0008] Performing edge detection on the label information to extract the total number of edges;

[0009] Normalizing the total number of edges to form a first label clarity;

[0010] Determining that the first label clarity is greater than or equal to a preset threshold;

[0011] Based on the first label clarity being greater than or equal to a preset threshold, the vehicle is controlled to move to a parking position according to the first image information.

[0012] Preferably, the first image information includes a first graphic and a second graphic, and the label information includes a first label corresponding to the first graphic and a second label corresponding to the second graphic;

[0013] The processor is further configured to:

[0014] Normalizing the total number of edges to form a first clarity corresponding to the first label;

[0015] Determining that the first definition is less than the preset threshold;

[0016] Based on the first definition being less than the preset threshold, acquiring a second definition corresponding to the second label;

[0017] Determining that the second definition is greater than or equal to the preset threshold;

[0018] Based on the second clarity being greater than or equal to the preset threshold, the second clarity is determined to be the first label clarity.

[0019] Preferably, the processor is further configured to:

[0020] Determining that the first label clarity is less than the preset threshold;

[0021] Based on the clarity of the first tag being less than the preset threshold, sending an acquisition instruction to the communicator;

[0022] The communicator is further used to receive second image information according to the acquisition instruction;

[0023] The processor is further configured to:

[0024] extracting second image tag information from the second image information;

[0025] Performing edge detection on the second image label information to extract the total number of edges of the second image label;

[0026] Normalizing the total number of edges of the second image label to form a second label clarity;

[0027] Determining that the second label clarity is greater than or equal to the preset threshold;

[0028] Based on the second label clarity being greater than or equal to the preset threshold, the vehicle is controlled to move to the parking position according to the second image information.

[0029] Preferably, the camera device is provided on the vehicle, and the physical tag corresponding to the tag information is provided on the parking position;

[0030] The processor is further configured to

[0031] Based on the clarity of the first label being greater than or equal to a preset threshold, forming a first offset between the imaging center position of the camera device and the spatial position of the physical label according to the label information;

[0032] forming a second offset according to the imaging center position and the installation position of the camera device;

[0033] forming a third offset according to the installation position and the center position of the wheel axle of the vehicle;

[0034] According to the first offset, the second offset and the third offset, a first target offset from the wheel connected to the axle to the parking position is formed;

[0035] The vehicle is controlled to move to the parking position according to the first target offset.

[0036] Preferably, the communicator is further used to receive shooting parameters from the camera device;

[0037] The processor is further configured to:

[0038] Extracting a label corner and an identifier of the label information based on that the first label clarity is greater than or equal to a preset threshold;

[0039] The first offset is formed according to the label angle, the identifier, the size of the physical label and the shooting parameters.

[0040] Preferably, the communicator is further used to receive size information of the material at the parking position;

[0041] The processor is further configured to:

[0042] According to the size information, a fourth offset between the spatial position and the center position of the material is formed;

[0043] According to the fourth offset, adjusting the first target offset to a second target offset;

[0044] The vehicle is controlled to move to the parking position according to the second target offset.

[0045] Preferably, the processor is further used for:

[0046] Planning a moving path according to the first target offset;

[0047] According to the moving path, the rotation speed difference of the wheels is adjusted, and the vehicle is controlled to move and stop at the parking position at a preset position and a preset angle.

[0048] A second aspect of the present application provides a control method for a vehicle, comprising:

[0049] Receiving first image information from a camera device;

[0050] extracting label information from the first image information;

[0051] Performing edge detection on the label information to extract the total number of edges;

[0052] Normalizing the total number of edges to form a first label clarity;

[0053] Determining that the first label clarity is greater than or equal to a preset threshold;

[0054] Based on the first label clarity being greater than or equal to a preset threshold, the vehicle is controlled to move to a parking position according to the first image information.

[0055] Preferably, the first image information includes a first graphic and a second graphic, and the label information includes a first label corresponding to the first graphic and a second label corresponding to the second graphic;

[0056] The step of forming the first label clarity comprises:

[0057] Normalizing the total number of edges to form a first clarity corresponding to the first label;

[0058] Determining that the first definition is less than the preset threshold;

[0059] Based on the first definition being less than the preset threshold, acquiring a second definition corresponding to the second label;

[0060] Determining that the second definition is greater than or equal to the preset threshold;

[0061] Based on the second clarity being greater than or equal to the preset threshold, the second clarity is determined to be the first label clarity.

[0062] Preferably, it further comprises:

[0063] Determining that the clarity is less than the preset threshold;

[0064] Based on the clarity being less than the preset threshold, sending an acquisition instruction;

[0065] Based on the acquisition instruction, receiving second image information;

[0066] extracting second image tag information from the second image information;

[0067] Performing edge detection on the second image label information to extract the total number of edges of the second image label;

[0068] Normalizing the total number of edges of the second image label to form a second label clarity;

[0069] Determining that the second label clarity is greater than or equal to the preset threshold;

[0070] Based on the second label clarity being greater than or equal to the preset threshold, the vehicle is controlled to move to the parking position according to the second image information.

[0071] Preferably, the camera device is arranged on the vehicle, and the physical tag corresponding to the tag information is arranged on the parking position;

[0072] The step of controlling the vehicle to move to a parking position comprises:

[0073] Based on the clarity of the first label being greater than or equal to a preset threshold, forming a first offset between the imaging center position of the camera device and the spatial position of the physical label according to the label information;

[0074] forming a second offset according to the imaging center position and the installation position of the camera device;

[0075] forming a third offset according to the installation position and the center position of the wheel axle of the vehicle;

[0076] According to the first offset, the second offset and the third offset, a first target offset from the wheel connected to the axle to the parking position is formed;

[0077] The vehicle is controlled to move to the parking position according to the first target offset.

[0078] Preferably, it further comprises:

[0079] Receiving shooting parameters from the camera device;

[0080] The step of forming a first offset between the imaging center position of the camera device and the spatial position of the physical tag comprises:

[0081] Extracting a label corner and an identifier of the label information based on that the first label clarity is greater than or equal to a preset threshold;

[0082] The first offset is formed according to the label angle, the identifier, the size of the physical label and the shooting parameters.

[0083] Preferably, it further comprises:

[0084] Receiving size information of the material at the parking position;

[0085] According to the size information, a fourth offset between the position of the physical label and the center position of the material is formed;

[0086] According to the fourth offset, adjusting the first target offset to a second target offset;

[0087] The vehicle is controlled to move to the parking position according to the second target offset.

[0088] Preferably, it further comprises:

[0089] Planning a moving path according to the first target offset;

[0090] According to the moving path, the rotation speed difference of the wheels is adjusted, and the vehicle is controlled to move and stop at the parking position at a preset position and a preset angle.

[0091] In the present application, the first image information can be received in real time without waiting for the vehicle to come to a complete stop before obtaining the first image information, thereby reducing the number of vehicle starts and stops. In addition, the clarity of the first label of the first image information can be determined in real time. Once it is determined that the clarity of the first label is greater than or equal to a preset threshold, the vehicle can be controlled to move to a parking position according to the first image information. Since there is no need to wait for the vehicle to come to a complete stop, the vehicle movement can be controlled as long as the first image information is clear enough, thereby shortening the parking time of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] Figure 1 This is an application environment diagram of a control method for a vehicle in one embodiment of the present application.

[0093] Figure 2 1 is a functional unit diagram of a control system for a vehicle in one embodiment of the present application.

[0094] Figure 3 FIG. 1 is a schematic diagram of the offset between the positions of multiple objects in one embodiment of the present application.

[0095] Figure 4 This is a schematic diagram of the docking of vehicle materials and workstations in one embodiment of the present application.

[0096] Figure 5 This is a schematic diagram of controlling the movement of a vehicle according to an offset in one embodiment of the present application.

[0097] Figure 6 This is a flow chart of a control method for a vehicle in one embodiment of the present application.

[0098] Main component symbols

[0099] Control device for vehicle 1 communicator 11 processor 12 Memory 13 Camera device 2 vehicle 3 Control systems for vehicles 10 Receiver Module 101 Extraction module 102 Processing Module 103 Determine the module 104 Control Module 105 Sending module 106 Computing Module 107 Adjustment module 108 Planning Module 109 step S61~S66

[0100] The following specific implementation methods will further illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0101] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0102] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The embodiments described are only a part of the embodiments of the present application, rather than 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 are within the scope of protection of the present application.

[0103] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0104] As used in this application, the term "communicator" may refer to any type of communication circuit or device. The communicator may be implemented as or may include several types of network elements, including base stations; router devices; switch devices; server devices; aggregator devices; bus architectures; combinations of the foregoing; or the like. One or more bus architectures may include industrial bus architectures, such as Ethernet-based industrial buses, controller area network (CAN) buses, Modbus, other types of field bus architectures, and the like.

[0105] The term "processor" as used in this application may refer to any type of processing circuit or device. The processor may be implemented as a combination of processing circuits or computing processing units (e.g., CPUs, GPUs, or a combination of both). Therefore, for descriptive purposes, a processor may refer to a single-core processor; a single processor with software multi-threaded execution capability; a multi-core processor; a multi-core processor with software multi-threaded execution capability; a multi-core processor with hardware multi-threading technology; a parallel processing (or computing) platform; and a parallel computing platform with distributed shared memory. In addition, or for another example, a processor may refer to an integrated circuit (IC), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic controller (PLC), a complex programmable logic device (CPLD), a discrete gate circuit or transistor logic, a discrete hardware component, or any combination thereof designed or configured (e.g., manufactured) to perform the functions described herein. In some embodiments, the processor may use a nanoscale architecture in order to optimize space usage or enhance the performance of a system, device, or other electronic device according to the present application. For example, a processor may include molecular transistors and / or quantum dot-based transistors, switches, and gates.

[0106] In addition, in this specification and drawings, terms such as "storage", "memory", "data storage", "data storage", "memory", "repository", and substantially any other information storage components related to the operation and functionality of the components of the present application refer to memory components, entities implemented in one or more memory devices, or components forming memory devices. It should be noted that the memory components or memory devices described in the present application implement or include non-transitory computer storage media that can be read or accessed by a computing device. Such media can be implemented in any method or technology for storing information, such as machine-accessible instructions (e.g., computer-readable instructions), information structures, program modules, or other information objects.

[0107] The memory member or memory device disclosed in the present application can be implemented as volatile memory or non-volatile memory, or can include both volatile and non-volatile memory. In addition, the memory component or memory device can be removable or non-removable, and / or inside or outside the computing device or component. Examples of various types of non-transient storage media can include hard disk drives, zip drives, CD-ROMs, digital versatile disks (DVDs) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices, flash memory cards or other types of memory cards, cassettes or any other non-transient media suitable for retaining required information and accessible by computing devices. For example, non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) used as external buffer memory. By way of illustration and not limitation, RAM has many forms, such as synchronous RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The disclosed memory devices or memories of the operating or computing environment described herein are intended to include one or more of these and / or any other suitable types of memory.

[0108] Unless otherwise specifically stated or understood in the context of use, conditional language such as "may," "can," "might," or "could" is generally intended to convey that certain implementations may include certain features, elements, and / or operations while other implementations do not. Thus, such conditional language is generally not intended to imply that features, elements, and / or operations are in any way required for one or more implementations, or that one or more implementations must include logic for deciding, with or without user input or prompting, whether such features, elements, and / or operations are included or will be performed in any particular implementation.

[0109] The flowcharts and block diagrams in the accompanying drawings illustrate possible implementations of the architecture, functions, and operations of examples of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each box in a flowchart or block diagram may represent a module, segment, or portion of an instruction that contains one or more machine or computer executable instructions for implementing a specified operation. Note that each box in the block diagram and / or flowchart illustration and combinations of boxes in the block diagram and / or flowchart illustration may be implemented by a dedicated hardware-based system that performs the specified function or operation or performs a combination of dedicated hardware and computer instructions.

[0110] The computer-readable program instructions of the present application can be downloaded from a computer-readable storage medium or an external computer or an external storage device to a corresponding computing / processing device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable non-transitory storage medium within the corresponding computing / processing device.

[0111] What has been described in this specification and the drawings includes examples of systems, devices, techniques and computer program products, which individually and in combination allow tracking and tracing of components of products manufactured in industrial equipment. Of course, it is impossible to describe every possible combination of components and / or methods for the purpose of describing the various elements of the present application, but it can be recognized that many other combinations and arrangements of the disclosed elements are possible. Therefore, it is obvious that various modifications can be made to the present application without departing from the scope or spirit of the present application. In addition, or as an alternative, other embodiments of the present application may be apparent by considering the specification and the drawings and the practice of the present application as presented in the present application. The examples presented in the specification and the drawings are considered to be illustrative and non-restrictive in all respects. Although specific terms are used here, they are only used in a general and descriptive sense, not for the purpose of limitation.

[0112] Please refer to Figure 1 , shown is an application environment diagram of a control method for a vehicle in one embodiment of the present application. The control method for a vehicle is applied in a control device 1 for a vehicle. In the present embodiment, the control device 1 for a vehicle shown can be a programmable logic controller PLC, an industrial control computer, a single-chip microcomputer and other devices. In the present embodiment, the control device 1 for a vehicle at least includes a communicator 11, a processor 12 and a memory 13. The control device 1 for a vehicle is communicatively connected to a camera device 2 and a vehicle 3 via the communicator 11. In one embodiment, the communicator 11 can be a wireless communication module. For example, the communicator 11 can be a WiFi module or a 4G / 5G communication module. The communicator 11 is used to receive information sent by the camera device 2. For example, the communicator 11 receives the first image information sent by the camera device 2.

[0113] The processor 12 is coupled to the communicator 11. In this embodiment, the processor 12 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. In another embodiment, the processor 12 may be a microprocessor or any conventional processor, etc. The processor 12 may also be the control center of the control device 1 for the vehicle, and various interfaces and lines are used to connect various parts of the entire control device 1 for the vehicle.

[0114] In this embodiment, the memory 13 is connected to the processor 12 and is used to store data and / or software codes. In this embodiment, the memory 13 can be an internal storage unit in the control device 1 for the vehicle, such as a hard disk or memory in the control device 1 for the vehicle. In another embodiment, the memory 13 can also be an external storage device in the control device 1 for the vehicle, such as a plug-in hard disk equipped on the control device 1 for the vehicle, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc.

[0115] Please refer to Figure 2 , which is a functional unit diagram of a control system 10 for a vehicle in one embodiment of the present application. In this embodiment, the control system 10 for a vehicle includes one or more modules, and one or more modules are run in a control device 1 for a vehicle. In this embodiment, the control system 10 for a vehicle includes a receiving module 101, an extraction module 102, a processing module 103, a determination module 104, a control module 105, a sending module 106, a calculation module 107, an adjustment module 108 and a planning module 109. In this embodiment, the receiving module 101, the extraction module 102, the processing module 103, the determination module 104, the control module 105, the sending module 106, the calculation module 107, the adjustment module 108 and the planning module 109 are stored in a memory 13 of the control device 1 for a vehicle, and are called and executed by a processor 12. The module referred to in this application refers to a series of computer program instruction segments that can perform specific functions, and is more suitable for describing the execution process of software in the control system 10 for a vehicle than a program. In other embodiments, the receiving module 101, the extraction module 102, the processing module 103, the determination module 104, the control module 105, the sending module 106, the calculation module 107, the adjustment module 108 and the planning module 109 are program segments or codes embedded or solidified in the processor 12 of the control device 1 for the vehicle.

[0116] The receiving module 101 receives the first image information from the camera device. The first image information is the image information obtained by the camera device shooting the physical tag in the environment where the vehicle is located. When the relative position of the camera device and the vehicle can be obtained, the camera device can be set in the environment where the vehicle is located. Alternatively, if the camera device can capture the physical tag, the camera device can be set on the vehicle. This application takes the camera device being set on the vehicle as an example. The physical tag of this application belongs to the multi-tag category, and the physical tag can be composed of a plurality of alternating patterns, such as a combination of 4 QR code tags and 5 black squares. Through the object tag, there can be more graphic information references, so that the position estimation result is more accurate. The types of physical tags may include but are not limited to QR codes, tag codes of the AprilTag visual standard library (AprilTag for short), a reference marking system supporting augmented reality (ARTag, Agaugment Reality Tag) and a binary square marker (ArUco marker).

[0117] The extraction module 102 extracts the label information in the first image information, wherein the label information is the image information corresponding to the physical label in the first image information, such as the label angle, identifier, and size of the physical label.

[0118] The extraction module 102 performs edge detection on the tag information and extracts the total number of edges. An edge detection algorithm may be used to perform edge detection on the tag information and extract the total number of edges. The edge detection algorithm may be a Sobel operator, a Laplacian operator, or a Canny operator.

[0119] The processing module 103 normalizes the total number of edges to form a first label clarity.

[0120] Usually, edge detection algorithms are used for autofocus, usually to determine edges based on the differences between adjacent pixels, but are not used as an indicator for evaluating image quality. In the embodiment of the present application, edge detection algorithms can be applied to detect whether an image is clear. The principle of obtaining clarity is based on how an image is already blurred, and if blurring is continued (such as Gaussian blur), the change in high-frequency components is small, but if it is a clear image, after a blurring process, the change in high-frequency components will be very large. Since the clearest image can be obtained in advance in the actual scene of the present application (shooting label information in an ideal state such as static and precise focusing), the total number of edges is extracted through the clearest image, and then the total number of edges is normalized, and a confidence interval is set, and the lower limit of the confidence interval is determined to be a preset threshold. For example, the total number of edges extracted from the clearest image is 10, which is 0.5 after normalization, and the confidence interval is ±0.2, then the preset threshold is 0.3. The captured image (such as the first image information) is similar, and after extracting the total number of edges, it is normalized to form the first label clarity.

[0121] Optionally, where the first image information includes a first graphic and a second graphic, and the label information includes a first label corresponding to the first graphic and a second label corresponding to the second graphic, the processing module 103 normalizes the total number of edges to form a first label clarity, specifically including: normalizing the total number of edges to form a first clarity corresponding to the first label; determining that the first clarity is less than a preset threshold; based on the first clarity being less than the preset threshold, obtaining a second clarity corresponding to the second label; determining that the second clarity is greater than or equal to the preset threshold; and based on the second clarity being greater than or equal to the preset threshold, determining that the second clarity is the first label clarity.

[0122] In this optional embodiment, a sequence formed by acquiring multiple images at one time can be stored. First, the first clarity of the first label corresponding to the first graphic is calculated. If the first clarity is less than a preset threshold, it indicates that the first graphic is not clear. The second clarity of the second label corresponding to the second graphic can be acquired. If the second clarity is greater than or equal to the preset threshold, it indicates that the second graphic is clear. The acquired second clarity can be understood as the second clarity formed by the next acquired graphic other than the first graphic, or it can be understood as the second clarity formed by calling a part of the entire edge of the first image information. As long as one graphic (such as the first graphic or the second graphic) in the first image information can be used, the first image information can be considered clear.

[0123] The determination module 104 determines that the first label clarity is greater than or equal to a preset threshold.

[0124] The preset threshold is a criterion for measuring whether the image is clear. How to obtain the preset threshold has been recorded in the previous text. If the clarity of the first label is greater than or equal to the preset threshold, it means that the first image information is clear. Conversely, if the clarity of the first label is less than the preset threshold, it means that the first image information is not clear. For example, if the clarity of the first label is 0.4 and the preset threshold is 0.3, it means that the first image is clear.

[0125] The control module 105 controls the vehicle to move to a parking position according to the first image information based on the first label clarity being greater than or equal to a preset threshold.

[0126] Among them, the camera device is arranged on the vehicle, and the physical tag corresponding to the tag information is arranged on the parking position; wherein the control module 105 controls the vehicle to move to the parking position, specifically including: based on the clarity of the first label being greater than or equal to a preset threshold, according to the tag information, forming a first offset between the imaging center position of the camera device and the spatial position of the physical tag; according to the imaging center position and the installation position of the camera device, forming a second offset; according to the installation position and the center position of the wheel axle of the vehicle, forming a third offset; according to the first offset, the second offset and the third offset, forming a first target offset from the wheel connected to the wheel axle to the parking position; according to the first target offset, controlling the vehicle to move to the parking position.

[0127] Among them, the first offset can be calculated according to the PNP algorithm of the tag, and the specific description is as follows. The second offset formed by the imaging center position of the camera device and the installation position of the camera device can be obtained by correcting the internal parameters of the camera device. The camera device is set on the vehicle and will move with the vehicle. There is a fixed distance between the position where the camera device is installed and the center position of the wheel axle, that is, the third offset, and the third offset is a known mechanical parameter. According to the first offset, the second offset and the third offset, the first target offset from the wheel connected to the axle to the parking position can be calculated, and the offset relationship between the wheel and the parking position is determined. Finally, the vehicle can be controlled to move to the parking position according to the first target offset.

[0128] Specifically, the relationship between the offsets of multiple objects can be found in Figure 3 , Figure 3 FIG. 1 is a schematic diagram of the offset between the positions of multiple objects in one embodiment of the present application.

[0129] Optionally, the receiving module 101 receives shooting parameters from the camera device; wherein the control module 105 forms a first offset between the imaging center position of the camera device and the spatial position of the physical label, specifically including: extracting the label angle and identifier of the label information based on the first label clarity being greater than or equal to a preset threshold; forming the first offset according to the label angle, identifier, size of the physical label and the shooting parameters.

[0130] In one embodiment of the present application, the label corners are the image coordinates (2D) of the four corners of the label, the identifier is the ID used to identify the identity of the label, the size of the physical label is the length of the square block, and the shooting parameters include shutter, aperture, ISO, EV value, whether to turn on the flash, and other functional parameters.

[0131] In this optional implementation, the 3D posture of the camera device can be calculated by the known size of the physical tag, the image coordinates (2D) of the four corners, the identifier and the shooting parameters. Specifically, the first offset can be calculated according to the PNP (Perspective-n-Point) algorithm of the tag. Among them, the PNP algorithm describes the relationship between the image 2D points and the spatial 3D points. Using multiple groups of 2D points / 3D points, the first offset between the imaging center position of the camera device and the spatial position of the physical tag can be calculated.

[0132] Optionally, the determination module 104 further determines that the clarity is less than a preset threshold;

[0133] The sending module 106 sends an acquisition instruction based on the clarity being less than a preset threshold; the receiving module 101 receives the second image information based on the acquisition instruction; the extraction module 102 extracts the second image label information in the second image information; the extraction module 102 performs edge detection on the second image label information and extracts the total number of edges of the second image label; the processing module 103 normalizes the total number of edges of the second image label to form a second label clarity; the determination module 104 determines that the second label clarity is greater than or equal to a preset threshold; the control module 105 controls the vehicle to move to a parking position according to the second image information based on the second label clarity being greater than or equal to the preset threshold.

[0134] This optional implementation is applicable to scenarios where only one image is acquired each time. If the clarity of the first label of the currently acquired first image information is less than the preset threshold, it indicates that the current first image information is not clear, and it is necessary to send an acquisition instruction to the communicator to continue receiving the second image information and calculate the second label clarity in the above manner. If the second label clarity is greater than or equal to the preset threshold, it indicates that the second image information is clear, and the vehicle can be controlled to move to the parking position based on the second image information. On the contrary, if the clarity of the second label is less than the preset threshold, it is necessary to continue sending acquisition instructions to the communicator to continue receiving the third image information...until it is determined that the clarity of a certain label is greater than or equal to the preset threshold.

[0135] Optionally, the receiving module 101 receives the size information of the material at the parking position; the calculating module 107 forms a fourth offset between the position of the physical tag and the center position of the material according to the size information; the adjusting module 108 adjusts the first target offset to the second target offset according to the fourth offset; the control module 105 controls the vehicle to move to the parking position according to the second target offset.

[0136] In this optional implementation, due to the different sizes of materials, the parking positions required for docking between the vehicle and the workstation will be different. For example, if the material on some drums is large, the parking position needs to be farther from the workstation, while if the material is small, the parking position needs to be closer to the workstation. Therefore, it is necessary to calculate the fourth offset between the position of the physical label and the center position of the material based on the material size information. Usually, after the material is determined, the fourth offset is determined, such as 2cm, and the first target offset is adjusted according to the fourth offset, so that the material docking can be better achieved. Please refer to Figure 4 , Figure 4 This is a schematic diagram of the docking of vehicle materials and workstations in one embodiment of the present application. The physical label is usually located on the workstation, and the offset between the center of the material and the physical label is adjusted according to the size of the material, that is, the position of the vehicle is adjusted, so as to better achieve the docking of the material on the vehicle to the workstation. Figure 5 The positions shown are merely exemplary and do not constitute limitations of the present application.

[0137] Optionally, the planning module 109 plans a moving path according to the first target offset; the adjustment module 108 further adjusts the wheel speed difference according to the moving path, and the control module 105 controls the vehicle to move and stop at a parking position at a preset position and a preset angle.

[0138] For details, please refer to Figure 5 , Figure 5 This is a schematic diagram of controlling the movement of a vehicle according to an offset in one embodiment of the present application.

[0139] like Figure 5 As shown, it can be calculated according to the following formula:

[0140] v = k ρ ρ

[0141] w=k α α+k β β

[0142]

[0143] Among them, k ρ , k α and k β are fixed parameters, α is the angle between the x-axis straight line of the vehicle position and the preset straight line, the preset straight line is the straight line between the vehicle position and the parking position, β is the angle between the x-axis straight line of the parking position and the preset straight line, ρ is the length of the line segment between the vehicle position and the parking position, v is the velocity of the control point, and w is the angular velocity of the control point.

[0144] Based on the v and w calculated above, according to the following formula,

[0145]

[0146] V can be calculated L and V R , where V L is the speed of the left wheel relative to the ground, V R is the speed of the right wheel relative to the ground.

[0147] In addition, you can actually measure v and w, and calculate the actual V based on the actual measured v and w. L and V R Finally, according to the theoretical calculation, V L and V R , and the actual V L and V R , to adjust the speed difference of the wheels, and finally, control the vehicle to move and stop at a preset position and a preset angle at a parking position, wherein the speed difference is the speed of the wheels relative to the ground in the final state of the wheels in the parking position, the preset position is the final position of the vehicle in the parking position, and the preset angle is the final angle of the vehicle in the parking position.

[0148] Please refer to Figure 6 , which is a flow chart of a control method for a vehicle in one embodiment of the present application. The method is applied in a control device 1 for a vehicle. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted or combined. The method includes the following steps.

[0149] S61. Receive first image information from a camera device.

[0150] The first image information is image information obtained by photographing a physical label in the environment where the vehicle is located by a camera device.

[0151] The camera device may be arranged in the environment where the vehicle is located, or the camera device may be arranged on the vehicle.

[0152] The physical tag of the present application belongs to the multi-tag category. The physical tag can be composed of multiple alternating patterns, such as 4 QR code tags and 5 black squares. Through the object tag, more graphic information can be referenced, so that the position estimation result is more accurate. The types of physical tags can include but are not limited to AprilTag, ARTag and ArUco marker.

[0153] S62: Extract label information from the first image information.

[0154] The label information is the image information corresponding to the physical label in the first image information, such as the label corner, identifier, and size of the physical label.

[0155] S63: Perform edge detection on the tag information and extract the total number of edges.

[0156] Among them, an edge detection algorithm can be used to perform edge detection on the label information and extract the total number of edges. Edge detection algorithms include Sobel operator, Laplacian operator, and Canny operator.

[0157] S64: Normalize the total number of edges to form a first label clarity.

[0158] Usually, edge detection algorithms are used for autofocus, usually to determine edges based on the differences between adjacent pixels, but are not used as an indicator for evaluating image quality. In the embodiment of the present application, edge detection algorithms can be applied to detect whether an image is clear. The principle of obtaining clarity is based on how an image is already blurred, and if blurring is continued (such as Gaussian blur), the change in high-frequency components is small, but if it is a clear image, after a blurring process, the change in high-frequency components will be very large. Since the clearest image can be obtained in advance in the actual scene of the present application (shooting label information in an ideal state such as static and precise focusing), the total number of edges is extracted through the clearest image, and then the total number of edges is normalized, and a confidence interval is set, and the lower limit of the confidence interval is determined to be a preset threshold. For example, the total number of edges extracted from the clearest image is 10, which is 0.5 after normalization, and the confidence interval is ±0.2, then the preset threshold is 0.3. The captured image (such as the first image information) is similar, and after extracting the total number of edges, it is normalized to form the first label clarity.

[0159] Optionally, wherein the first image information includes a first graphic and a second graphic, and the label information includes a first label corresponding to the first graphic and a second label corresponding to the second graphic, the step of forming the clarity of the first label includes: normalizing the total number of edges to form a first clarity corresponding to the first label; determining that the first clarity is less than a preset threshold; based on the first clarity being less than the preset threshold, obtaining a second clarity corresponding to the second label; determining that the second clarity is greater than or equal to the preset threshold; and based on the second clarity being greater than or equal to the preset threshold, determining that the second clarity is the clarity of the first label.

[0160] In this optional embodiment, a sequence formed by acquiring multiple images at one time can be stored. First, the first clarity of the first label corresponding to the first graphic is calculated. If the first clarity is less than a preset threshold, it indicates that the first graphic is not clear. The second clarity of the second label corresponding to the second graphic can be acquired. If the second clarity is greater than or equal to the preset threshold, it indicates that the second graphic is clear. The acquired second clarity can be understood as the second clarity formed by the next acquired graphic other than the first graphic, or it can be understood as the second clarity formed by calling a part of the entire edge of the first image information. As long as one graphic (such as the first graphic or the second graphic) in the first image information can be used, the first image information can be considered clear.

[0161] S65: Determine whether the clarity of the first label is greater than or equal to a preset threshold.

[0162] The preset threshold is the minimum critical value for measuring whether the image is clear. If the clarity of the first label is greater than or equal to the preset threshold, it means that the first image information is clear. Otherwise, if the clarity of the first label is less than the preset threshold, it means that the first image information is not clear.

[0163] S66: Based on the first label clarity being greater than or equal to a preset threshold, control the vehicle to move to a parking position according to the first image information.

[0164] Wherein, a camera device is arranged on the vehicle, and a physical tag corresponding to the tag information is arranged on the parking position; wherein, the step of controlling the vehicle to move to the parking position includes: based on the clarity of the first tag being greater than or equal to a preset threshold, forming a first offset between the imaging center position of the camera device and the spatial position of the physical tag according to the tag information; forming a second offset according to the imaging center position and the installation position of the camera device; forming a third offset according to the installation position and the center position of the wheel axle of the vehicle; forming a first target offset from the wheel connected to the wheel axle to the parking position according to the first offset, the second offset and the third offset; and controlling the vehicle to move to the parking position according to the first target offset.

[0165] Among them, the first offset can be calculated according to the PNP algorithm of the tag, and the specific description is as follows. The second offset formed by the imaging center position of the camera device and the installation position of the camera device can be obtained by correcting the internal parameters of the camera device. The camera device is set on the vehicle and will move with the vehicle, but has a fixed offset with the vehicle, that is, the third offset, and the third offset belongs to a known mechanical parameter. According to the first offset, the second offset and the third offset, the first target offset from the wheel connected to the axle to the parking position can be calculated, and the offset relationship between the wheel and the parking position is determined. Finally, the vehicle can be controlled to move to the parking position according to the first target offset.

[0166] Specifically, the relationship between the offsets of multiple objects can be found in Figure 3 , Figure 3 FIG. 1 is a schematic diagram of the offset between the positions of multiple objects in one embodiment of the present application.

[0167] Optionally, the method also includes: receiving shooting parameters from a camera device; wherein the step of forming a first offset between the imaging center position of the camera device and the spatial position of the physical label includes: extracting the label angle and identifier of the label information based on the first label clarity being greater than or equal to a preset threshold; forming the first offset according to the label angle, identifier, size of the physical label and shooting parameters.

[0168] Among them, the tag corners are the image coordinates (2D) of the four corners of the tag, the identifier is the ID used to identify the tag identity, the size of the physical tag is the length of the square block, and the shooting parameters include shutter speed, aperture, ISO, EV value, whether to turn on the flash, and other functional parameters.

[0169] In this optional implementation, the 4D posture of the camera device can be calculated by the known size of the physical tag, the image coordinates (2D) of the four corners, the identifier, and the shooting parameters. Specifically, the first offset can be calculated according to the PNP (Perspective-n-Point) algorithm of the tag. Among them, the PNP algorithm describes the relationship between the image 2D points and the spatial 4D points. Using multiple groups of 2D points / 4D points, the first offset between the imaging center position of the camera device and the spatial position of the physical tag can be calculated.

[0170] Optionally, the method also includes: determining that the clarity is less than a preset threshold; sending an acquisition instruction based on the clarity being less than the preset threshold; receiving second image information based on the acquisition instruction; extracting second image label information in the second image information; performing edge detection on the second image label information to extract the total number of edges of the second image label; normalizing the total number of edges of the second image label to form a second label clarity; determining that the second label clarity is greater than or equal to a preset threshold; and based on the second label clarity being greater than or equal to the preset threshold, controlling the vehicle to move to a parking position according to the second image information.

[0171] This optional implementation is applicable to scenarios where only one image is acquired each time. If the clarity of the first label of the currently acquired first image information is less than the preset threshold, it indicates that the current first image information is not clear, and it is necessary to send an acquisition instruction to the communicator to continue receiving the second image information and calculate the second label clarity in the above manner. If the second label clarity is greater than or equal to the preset threshold, it indicates that the second image information is clear, and the vehicle can be controlled to move to the parking position based on the second image information. On the contrary, if the clarity of the second label is less than the preset threshold, it is necessary to continue sending acquisition instructions to the communicator to continue receiving the third image information...until it is determined that the clarity of a certain label is greater than or equal to the preset threshold.

[0172] Optionally, the method also includes: receiving size information of the material at the parking position; forming a fourth offset between the position of the physical tag and the center position of the material based on the size information; adjusting the first target offset to the second target offset based on the fourth offset; and controlling the vehicle to move to the parking position based on the second target offset.

[0173] In this optional implementation, due to the different sizes of materials, the parking positions required for docking between the vehicle and the workstation will be different. For example, if the material on some drums is large, the parking position needs to be farther from the workstation, while if the material is small, the parking position needs to be closer to the workstation. Therefore, it is necessary to calculate the fourth offset between the position of the physical label and the center position of the material based on the material size information. Usually, after the material is determined, the fourth offset is determined, such as 2cm, and the first target offset is adjusted according to the fourth offset, so that the material docking can be better achieved. Please refer to Figure 4 , Figure 4 This is a schematic diagram of the docking of vehicle materials and workstations in one embodiment of the present application. The physical label is usually located on the workstation, and the offset between the center of the material and the physical label is adjusted according to the size of the material, that is, the position of the vehicle is adjusted, so as to better achieve the docking of the material on the vehicle to the workstation. Figure 5 The positions shown are merely exemplary and do not constitute limitations of the present application.

[0174] Optionally, the method further includes: planning a moving path according to the first target offset; adjusting the rotation speed difference of the wheels according to the moving path, controlling the movement of the vehicle and parking it at a parking position at a preset position and a preset angle.

[0175] In this optional implementation, the vehicle parking can be controlled by using the related principles of forward kinematics and inverse kinematics, wherein forward kinematics and inverse kinematics are two mutually inverse kinematics.

[0176] For details, please refer to Figure 5 , Figure 5 This is a schematic diagram of controlling the movement of a vehicle according to an offset in one embodiment of the present application.

[0177] like Figure 5 As shown, it can be calculated according to the following formula:

[0178] v = k ρ ρ

[0179] w=k α α+k β β

[0180]

[0181] Among them, k ρ , k α and k βare fixed parameters, α is the angle between the x-axis straight line of the vehicle position and the preset straight line, the preset straight line is the straight line between the vehicle position and the parking position, β is the angle between the x-axis straight line of the parking position and the preset straight line, ρ is the length of the line segment between the vehicle position and the parking position, v is the velocity of the control point, and w is the angular velocity of the control point.

[0182] Based on the v and w calculated above, according to the following formula,

[0183]

[0184] V can be calculated L and V R , where V L is the speed of the left wheel relative to the ground, V R is the speed of the right wheel relative to the ground.

[0185] In addition, you can actually measure v and w, and calculate the actual V based on the actual measured v and w. L and V R Finally, according to the theoretical calculation, V L and V R , and the actual V L and V R , to adjust the speed difference of the wheels, and finally, control the vehicle to move and stop at a preset position and a preset angle at a parking position, wherein the speed difference is the speed of the wheels relative to the ground in the final state of the wheels in the parking position, the preset position is the final position of the vehicle in the parking position, and the preset angle is the final angle of the vehicle in the parking position.

[0186] exist Figure 6 In the described method flow, the first image information can be received in real time without waiting for the vehicle to come to a complete stop before obtaining the first image information, thereby reducing the number of vehicle starts and stops. In addition, the clarity of the first label of the first image information can be determined in real time. Once it is determined that the clarity of the first label is greater than or equal to a preset threshold, the vehicle can be controlled to move to a parking position according to the first image information. Since there is no need to wait for the vehicle to come to a complete stop, the movement of the vehicle can be controlled only when the first image information is clear enough, thereby shortening the parking time of the vehicle.

[0187] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other modules or steps, and the singular does not exclude the plural. Multiple modules or electronic devices stated in the electronic device claim can also be implemented by the same module or electronic device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A control device for a vehicle, comprising: A communicator, configured to receive first image information from a camera device; A processor, coupled to the communicator, configured to: Extracting label information from the first image information, wherein: The first image information includes a first graphic and a second graphic, and the label information includes a first label corresponding to the first graphic and a second label corresponding to the second graphic; Performing edge detection on the label information to extract the total number of edges; Normalizing the total number of edges to form a first clarity corresponding to the first label; Determining that the first clarity is less than a preset threshold; Based on the first definition being less than the preset threshold, acquiring a second definition corresponding to the second label; Determining that the second definition is greater than or equal to the preset threshold; Based on the second definition being greater than or equal to the preset threshold, determining the second definition to be the first label definition; Determining that the first label clarity is greater than or equal to the preset threshold; Based on the first label clarity being greater than or equal to the preset threshold, the vehicle is controlled to move to a parking position according to the first image information.

2. The control device according to claim 1, wherein The processor is further configured to: Determining that the first label clarity is less than the preset threshold; Based on the clarity of the first tag being less than the preset threshold, sending an acquisition instruction to the communicator; The communicator is further used to receive second image information according to the acquisition instruction; The processor is further configured to: extracting second image tag information from the second image information; Performing edge detection on the second image label information to extract the total number of edges of the second image label; Normalizing the total number of edges of the second image label to form a second label clarity; Determining that the second label clarity is greater than or equal to the preset threshold; Based on the second label clarity being greater than or equal to the preset threshold, the vehicle is controlled to move to the parking position according to the second image information.

3. The control device according to claim 1, wherein the camera device is provided on the vehicle, and the physical tag corresponding to the tag information is provided on the parking position; The processor is further configured to: Based on the clarity of the first label being greater than or equal to a preset threshold, forming a first offset between the imaging center position of the camera device and the spatial position of the physical label according to the label information; forming a second offset according to the imaging center position and the installation position of the camera device; forming a third offset according to the installation position and the center position of the wheel axle of the vehicle; According to the first offset, the second offset and the third offset, a first target offset from the wheel connected to the axle to the parking position is formed; The vehicle is controlled to move to the parking position according to the first target offset.

4. The control device according to claim 3, wherein The communicator is further used to receive shooting parameters from the camera device; The processor is further configured to: Extracting a label corner and an identifier of the label information based on that the first label clarity is greater than or equal to a preset threshold; The first offset is formed according to the label angle, the identifier, the size of the physical label and the shooting parameters.

5. The control device according to claim 3, wherein The communicator is further used to receive size information of the material at the parking position; The processor is further configured to: According to the size information, a fourth offset between the spatial position and the center position of the material is formed; According to the fourth offset, adjusting the first target offset to a second target offset; The vehicle is controlled to move to the parking position according to the second target offset.

6. The control device according to claim 3, wherein The processor is further configured to: Planning a moving path according to the first target offset; According to the moving path, the rotation speed difference of the wheels is adjusted, and the vehicle is controlled to move and stop at the parking position at a preset position and a preset angle.

7. A control method for a vehicle, comprising: Receiving first image information from a camera device; Extracting label information from the first image information, wherein: The first image information includes a first graphic and a second graphic, and the label information includes a first label corresponding to the first graphic and a second label corresponding to the second graphic; Performing edge detection on the label information to extract the total number of edges; Normalizing the total number of edges to form a first clarity corresponding to the first label; Determining that the first clarity is less than a preset threshold; Based on the first definition being less than the preset threshold, acquiring a second definition corresponding to the second label; Determining that the second definition is greater than or equal to the preset threshold; Based on the second definition being greater than or equal to the preset threshold, determining the second definition to be the first label definition; Determining that the first label clarity is greater than or equal to the preset threshold; Based on the first label clarity being greater than or equal to the preset threshold, the vehicle is controlled to move to a parking position according to the first image information.

8. The control method according to claim 7, further comprising: Determining that the clarity is less than the preset threshold; Based on the clarity being less than the preset threshold, sending an acquisition instruction; Based on the acquisition instruction, receiving second image information; extracting second image tag information from the second image information; Performing edge detection on the second image label information to extract the total number of edges of the second image label; Normalizing the total number of edges of the second image label to form a second label clarity; Determining that the second label clarity is greater than or equal to the preset threshold; Based on the second label clarity being greater than or equal to the preset threshold, the vehicle is controlled to move to the parking position according to the second image information.

9. The control method according to claim 7, wherein a camera device is provided on the vehicle, and a physical tag corresponding to the tag information is provided on the parking position; The step of controlling the vehicle to move to a parking position comprises: Based on the clarity of the first label being greater than or equal to a preset threshold, forming a first offset between the imaging center position of the camera device and the spatial position of the physical label according to the label information; forming a second offset according to the imaging center position and the installation position of the camera device; forming a third offset according to the installation position and the center position of the wheel axle of the vehicle; According to the first offset, the second offset and the third offset, a first target offset from the wheel connected to the axle to the parking position is formed; The vehicle is controlled to move to the parking position according to the first target offset.

10. The control method according to claim 9, further comprising: Receiving shooting parameters from the camera device; The step of forming a first offset between the imaging center position of the camera device and the spatial position of the physical tag comprises: Extracting a label corner and an identifier of the label information based on that the first label clarity is greater than or equal to a preset threshold; The first offset is formed according to the label angle, the identifier, the size of the physical label and the shooting parameters.

11. The control method according to claim 9, further comprising: Receiving size information of the material at the parking position; According to the size information, a fourth offset between the position of the physical label and the center position of the material is formed; According to the fourth offset, adjusting the first target offset to a second target offset; The vehicle is controlled to move to the parking position according to the second target offset.

12. The control method according to claim 9, further comprising: Planning a moving path according to the first target offset; According to the moving path, the rotation speed difference of the wheels is adjusted, and the vehicle is controlled to move and stop at the parking position at a preset position and a preset angle.