CN112070142B - Grouping method and device for vehicle accessories, electronic equipment and storage medium - Google Patents

Grouping method and device for vehicle accessories, electronic equipment and storage medium Download PDF

Info

Publication number
CN112070142B
CN112070142B CN202010911998.6A CN202010911998A CN112070142B CN 112070142 B CN112070142 B CN 112070142B CN 202010911998 A CN202010911998 A CN 202010911998A CN 112070142 B CN112070142 B CN 112070142B
Authority
CN
China
Prior art keywords
accessory
vehicle
coordinate
grouping
cluster center
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010911998.6A
Other languages
Chinese (zh)
Other versions
CN112070142A (en
Inventor
朱志华
尹钏
王鸿
肖阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010911998.6A priority Critical patent/CN112070142B/en
Priority to PCT/CN2020/131919 priority patent/WO2021189896A1/en
Publication of CN112070142A publication Critical patent/CN112070142A/en
Application granted granted Critical
Publication of CN112070142B publication Critical patent/CN112070142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of image detection, and discloses a grouping method of vehicle accessories, which comprises the following steps: dividing a fitting picture total set according to a vehicle structure to obtain a plurality of fitting picture subsets, carrying out vector conversion on the fitting picture subsets to obtain fitting vector sets, mapping the fitting vector sets into a pre-constructed coordinate system to obtain vehicle fitting coordinate sets, initializing the coordinate system according to a grouping standard to obtain cluster center coordinate sets, sequentially calculating error values of the cluster center coordinate sets and the vehicle fitting coordinate sets, and updating the cluster center coordinate sets by utilizing the error values until the error values meet a preset error requirement, so as to obtain vehicle fitting grouping corresponding to the grouping standard. The invention also relates to blockchain technology, and the accessory picture collection can be stored in a blockchain node. In addition, the invention also discloses a grouping device of the vehicle accessory, electronic equipment and a storage medium. The invention can solve the problem of occupying excessive computing resources when the vehicle accessories are grouped.

Description

Grouping method and device for vehicle accessories, electronic equipment and storage medium
Technical Field
The present invention relates to the field of image detection, and in particular, to a method and apparatus for grouping vehicle accessories, an electronic device, and a computer readable storage medium.
Background
Currently, with the rapid development of the automobile field, new energy vehicles, intelligent driving vehicles and the like are not required, and accordingly, vehicle accessories emerge like a spring bamboo shoot after rain, so how to quickly group the vehicle accessories, and it is extremely important to arrange the work of the grouped automobile accessories.
At present, two methods of grouping vehicle accessories mainly comprise a text information-based method and a picture information-based method, wherein the text information-based method is used for inputting a vehicle accessory name by a user, calculating the similarity between the vehicle accessory name and the vehicle accessory noun in an original database by a machine learning method, and finishing the grouping of the vehicle accessories according to a similarity result, but because the user and the original database lack unified standards about naming license plate accessories, the phenomenon of grouping errors is extremely easy to occur; in the case of grouping of the picture information, since the amount of the picture information data is huge, when the grouping is directly identified by the deep learning or machine learning method, a large amount of computing resources are occupied, so that the grouping speed is slow, and the consumption of the memory and the like of the computer is serious.
Disclosure of Invention
The invention provides a grouping method and device of vehicle accessories, electronic equipment and a computer readable storage medium, and mainly aims to solve the problem that excessive computing resources are occupied when the vehicle accessories are grouped.
In order to achieve the above object, the present invention provides a grouping method of vehicle accessories, including:
Acquiring a fitting picture total set and a grouping standard of a vehicle, and dividing the fitting picture total set according to a vehicle structure to obtain a plurality of fitting picture subsets;
Vector conversion is carried out on the accessory picture subset to obtain an accessory vector set;
Mapping the fitting vector set to a pre-constructed coordinate system to obtain a vehicle fitting coordinate set;
according to the grouping standard, initializing operation is carried out in the coordinate system to obtain a cluster center coordinate set, and error values of the cluster center coordinate set and the vehicle accessory coordinate set are sequentially calculated;
And updating the cluster center coordinate set by using the error value, calculating the updated error value, and obtaining the vehicle accessory group corresponding to the grouping standard by using the vehicle accessory coordinate set until the error value meets the preset error requirement.
Optionally, the initializing operation is performed in the coordinate system according to the grouping standard to obtain a cluster center coordinate set, including:
And according to the grouping number in the grouping standard, randomly initializing the cluster center coordinates with the same number as the grouping number in the coordinate system to obtain the cluster center coordinate set.
Optionally, the calculating the error value of the cluster center coordinate set and the vehicle accessory coordinate set includes:
dividing the vehicle accessory coordinate sets according to the cluster center coordinate sets to obtain vehicle accessory coordinate subsets with the same number as the cluster center coordinate sets;
And calculating an error value of each cluster center coordinate in the cluster center coordinate set and each vehicle accessory coordinate in the corresponding vehicle accessory coordinate subset.
Optionally, the updating the cluster center coordinate set by using the error value, calculating the updated error value, and obtaining a vehicle accessory group corresponding to the grouping standard by using the vehicle accessory coordinate set until the error value meets a preset error requirement, including:
Summarizing error values of each cluster center coordinate and a corresponding vehicle accessory coordinate subset in the cluster center coordinate set to obtain an error value set, and updating the coordinate position of the cluster center coordinate set according to the error value set to obtain a cluster center updated coordinate set;
The vehicle accessory coordinate subset is adjusted by utilizing the cluster center updating coordinate set, and an adjusted vehicle accessory coordinate subset is obtained;
calculating an error value of each cluster center coordinate in the cluster center updating coordinate set and each vehicle accessory coordinate in the adjusted vehicle accessory coordinate subset;
Counting the number of errors with the error value larger than the preset error and the number of errors with the error value smaller than or equal to the preset error, and calculating the ratio of the number larger than the preset error to the number smaller than or equal to the preset error;
Judging the relation between the ratio and a preset ratio, and updating the coordinate position of the cluster center coordinate set when the ratio is larger than the preset ratio;
and when the ratio is smaller than or equal to the preset ratio, grouping the corresponding vehicle accessory coordinate subsets as the vehicle accessories corresponding to the grouping standard.
Optionally, the calculating an error value of each cluster center coordinate in the cluster center coordinate set and each vehicle accessory coordinate in the corresponding vehicle accessory coordinate subset includes:
Calculating an error value for the coordinates of each vehicle accessory using the formula:
Wherein, For the error value,/>For vehicle accessory coordinates within the subset of vehicle accessory coordinates,/>For the cluster center coordinate set,/>Representing the number of the cluster center coordinate sets,/>Representing the subset of vehicle accessory coordinates.
Optionally, the vector conversion of the accessory picture subset to obtain an accessory vector set includes:
extracting an accessory texture feature set in the accessory picture subset by utilizing convolution operation;
and performing dimension reduction operation on the fitting texture feature set and combining to obtain the fitting vector set.
Optionally, the convolution operation extracts an accessory texture feature set within the accessory picture subset, including:
extracting an accessory texture feature set in the accessory picture subset by adopting the following convolution calculation formula:
Wherein, For the accessory texture feature set,/>For pixel value coordinates of the accessory pictures within the accessory picture subset,/>As a convolution function,/>Is a convolution operator,/>For accessory picture brightness,/>Is the chromaticity of the accessory picture.
In order to solve the above-mentioned problems, the present invention also provides a grouping apparatus of vehicle accessories, the apparatus comprising:
the vector conversion module is used for obtaining an accessory picture total set and a grouping standard of the vehicle, dividing the accessory picture total set according to a vehicle structure to obtain a plurality of accessory picture subsets, and carrying out vector conversion on the accessory picture subsets to obtain an accessory vector set;
the coordinate mapping module is used for mapping the accessory vector set to a pre-constructed coordinate system to obtain a vehicle accessory coordinate set;
the error calculation module is used for executing initialization operation in the coordinate system according to the grouping standard to obtain a cluster center coordinate set, and sequentially calculating error values of the cluster center coordinate set and the vehicle accessory coordinate set;
and the accessory grouping module is used for updating the cluster center coordinate set by utilizing the error value, calculating the updated error value, and obtaining the vehicle accessory grouping corresponding to the grouping standard by utilizing the vehicle accessory coordinate set until the error value meets the preset error requirement.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including: at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of grouping vehicle accessories described above.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium including a storage data area storing created data and a storage program area storing a computer program; wherein the computer program, when executed by the processor, implements the method of grouping vehicle accessories described above.
According to the embodiment of the invention, the accessories are grouped based on the vehicle accessory pictures, the accessory pictures are firstly divided through the structure, the vector conversion and the coordinate mapping are sequentially carried out on the accessory pictures after the structure division, a vehicle accessory coordinate set is obtained, and the vehicle accessory is grouped by utilizing the vehicle accessory coordinate set. Because the vehicle accessory coordinate set is simpler than the image features of the accessory image set which is directly detected, compared with the method for directly detecting the feature information of the accessory image by using deep learning, the method and the device for grouping the vehicle accessories and the computer readable storage medium can obtain grouping results without excessive calculation by grouping the accessory coordinates, and can solve the problem of excessive calculation resources occupation when the vehicle accessories are grouped.
Drawings
FIG. 1 is a flow chart of a method for grouping vehicle accessories according to an embodiment of the invention;
FIG. 2 is a detailed flowchart of S2 in a method for grouping vehicle accessories according to an embodiment of the invention;
FIG. 3 is a detailed flowchart of S4 in a method for grouping vehicle accessories according to an embodiment of the invention;
FIG. 4 is a detailed flowchart of S5 in a method for grouping vehicle accessories according to an embodiment of the invention;
FIG. 5 is a schematic block diagram of a grouping apparatus for vehicle accessories according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an internal structure of an electronic device for implementing a grouping method of vehicle accessories according to an embodiment of the present invention;
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The execution subject of the grouping method of vehicle accessories provided by the embodiment of the application includes, but is not limited to, at least one of a server, a terminal, and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the grouping method of the vehicle accessories may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
The invention provides a grouping method of vehicle accessories. Referring to fig. 1, a flow chart of a grouping method of vehicle accessories according to an embodiment of the invention is shown. In this embodiment, the grouping method of the vehicle accessories includes:
s1, acquiring an accessory picture total set and a grouping standard, and dividing the accessory picture total set according to a vehicle structure to obtain a plurality of accessory picture subsets.
In the preferred embodiment of the invention, the accessory picture assembly comprises accessory pictures of an engine, a throttle body, a cylinder body, a tension wheel, a transmission accessory, a clutch, a transmission, a speed reducer, a magnetic material, a brake master cylinder, a brake slave cylinder, a brake assembly, a brake pedal assembly, a compressor, a brake disc, a brake drum and the like. Because vehicle accessories are complex and the layers of the vehicle accessories are endless to be new, a large number of license plate accessory pictures need to be efficiently grouped according to grouping standards set by users.
Further, the grouping criteria include a price of the vehicle parts, a purchase channel of the vehicle parts, etc., such as a parts picture collection including an engine, a throttle body, a cylinder block, a tensioner, a power train part, etc., wherein the grouping criteria may be to divide the parts into an expensive part, a more expensive part, a general part, and a cheap part according to a maintenance price when the parts are damaged.
In detail, the vehicle structure comprises an external structure and an internal structure of the vehicle, if different vehicle accessories have specific vehicle application scenes, the accessory A can only be applied to a three-compartment vehicle, the accessory B can only be applied to a two-compartment car, the accessory C can only be applied to a sports car, and the three-compartment car, the two-compartment car and the sports car are the external structures of the vehicle. The vehicle interior structure includes the number of people on a vehicle, the tire size, the engine displacement, etc., as compared to the vehicle exterior structure, for example, the fitting D can be applied only to a vehicle having an engine displacement of less than 1.0L, the fitting E can be applied only to a vehicle having an engine displacement of 1.6L to 2.5L, and the fitting F can be applied to a vehicle having an engine displacement of 4.0L or more. The aggregate set of accessory pictures can thus be divided into a plurality of accessory picture subsets.
S2, carrying out vector conversion on the accessory picture subset to obtain an accessory vector set.
Because the number of pixels in the picture is large and the characteristics are not obvious, if the picture is directly used for grouping the vehicle accessories, a large amount of calculation resources are consumed, and meanwhile, the grouping accuracy is not high, so that the picture is required to be converted into a vector.
In detail, referring to fig. 2, the S2 includes:
s21, extracting an accessory texture feature set in the accessory picture subset by utilizing convolution operation;
s22, performing dimension reduction operation on the fitting texture feature set and combining to obtain the fitting vector set.
In a preferred embodiment of the present invention, the following convolution calculation formula is adopted to extract the accessory texture feature set in the accessory picture subset:
Wherein, For the accessory texture feature set,/>For pixel value coordinates of the accessory pictures within the accessory picture subset,/>As a convolution function,/>Is a convolution operator,/>Representing three components of a picture, wherein/>For picture brightness,/>Is the chromaticity of the picture.
Since the fitting texture feature set after the convolution operation is still huge in data volume, the data volume of the fitting texture feature set needs to be further reduced through the dimension reduction operation.
Preferably, the dimension reduction operation includes sequentially sampling an average value of a specific step on the fitting texture features in the fitting texture feature set from left to right and from top to bottom by using a sliding window with a fixed matrix dimension, for example, when the matrix dimension is 2×2 and the specific step is 3, the feature dimension of the fitting texture feature set may be reduced to 1/4 of the original dimension, and sequentially combining the feature after dimension reduction to obtain the fitting vector set.
And S3, mapping the fitting vector set to a pre-constructed coordinate system to obtain a vehicle fitting coordinate set.
In a preferred embodiment of the present invention, if the coordinate system is a two-dimensional planar coordinate system, the accessory coordinates of the vehicle accessory coordinate set are availableRepresenting that when the coordinate system is a three-dimensional planar coordinate system, then the accessory coordinates of the vehicle accessory coordinate set are available/>And (3) representing.
Preferably, the mapping is more, such as fitting vector sets with respect to the throttle body vector beingFirst, according to the form that each row in the vector represents one coordinate dimension, the/>The corresponding numerical value is calculated to be 13 by using a mathematical formulaThe corresponding value is calculated to be 8 by utilizing a mathematical formula, and the vehicle accessory coordinate corresponding to the vector of the throttle body is/>
And S4, according to the grouping standard, initializing operation is carried out in the coordinate system to obtain a cluster center coordinate set, and error values of the cluster center coordinate set and the vehicle accessory coordinate set are sequentially calculated.
As can be seen from S1 to S3, the assembly picture aggregate is converted into the vehicle assembly coordinate set through structural division, vector conversion and mapping, and thus the vehicle assembly coordinate set is grouped, i.e. the assembly picture aggregate is grouped.
Further, referring to fig. 3, according to the grouping criteria, performing an initialization operation in the coordinate system to obtain a cluster center coordinate set includes:
S401, according to the grouping number in the grouping standard, randomly initializing to obtain cluster center coordinates with the same number as the grouping number in the coordinate system, and obtaining the cluster center coordinate set.
If the price of the vehicle accessory is taken as the grouping standard, the accessory is divided into 4 groups of expensive accessory, more expensive accessory, common accessory and cheap accessory, if the preset coordinate system is a three-dimensional coordinate system, 4 cluster center coordinates can be obtained by corresponding random initialization in the three-dimensional coordinate system、/>、/>、/>
After the cluster center coordinate set is obtained, the distance relation between the cluster center coordinate set and the vehicle accessory coordinate set can be calculated, and the purpose of grouping the vehicle accessory coordinate set can be achieved through the distance relation.
Further, the sequentially calculating error values of the cluster center coordinate set and the vehicle accessory coordinate set includes:
s402, dividing the vehicle accessory coordinate sets according to the cluster center coordinate sets to obtain vehicle accessory coordinate subsets, wherein the number of the vehicle accessory coordinate subsets is the same as that of the cluster center coordinate sets.
As described above, the vehicle accessory price is taken as the grouping standard, and the accessories are divided into 4 groups of expensive accessories, more expensive accessories, common accessories and cheap accessories, so that the cluster center coordinate set is also 4 cluster center coordinates, and the vehicle accessory coordinate set can be divided into 4 groups of vehicle accessory coordinate subsets by the 4 cluster center coordinates through a random division form, for exampleCorresponding to a first set of vehicle accessory coordinate subsets,/>Corresponding to a second set of vehicle accessory coordinate subsets,/>Corresponding to a third set of vehicle accessory coordinate subsets,/>Corresponds to a fourth set of vehicle accessory coordinate subsets.
S403, calculating an error value of each cluster center coordinate in the cluster center coordinate set and each vehicle accessory coordinate in the corresponding vehicle accessory coordinate subset.
In a preferred embodiment of the present invention, the following formula is used to calculate the error value between each cluster center coordinate in the cluster center coordinate set and each vehicle accessory coordinate in the corresponding vehicle accessory coordinate subset:
Wherein, For vehicle accessory coordinates within the subset of vehicle accessory coordinates,/>For the cluster center coordinates of the cluster center coordinate set,/>Representing the number of the cluster center coordinate sets,/>And representing the vehicle accessory coordinate subsets, and sequentially calculating the error value of the vehicle accessory coordinate in each cluster center coordinate and the corresponding vehicle accessory coordinate subset by the calculation method.
And S5, updating the cluster center coordinate set by using the error value, calculating the updated error value, and obtaining the vehicle accessory group corresponding to the grouping standard by using the vehicle accessory coordinate set until the error value meets the preset error requirement.
After calculating the error value of the coordinates of the vehicle accessory in each cluster center coordinate and the corresponding subset of coordinates of the vehicle accessory, the sets of coordinates of the vehicle accessory need to be grouped according to the error value, so in detail, referring to fig. 4, the S5 includes:
S51, summarizing error values of each cluster center coordinate and a corresponding vehicle accessory coordinate subset in the cluster center coordinate set to obtain an error value set, and updating the coordinate position of the cluster center coordinate set according to the error value set to obtain a cluster center updated coordinate set;
As described above Corresponding to a first set of vehicle accessory coordinate subsets,/>Corresponding to a second set of vehicle accessory coordinate subsets,/>Corresponding to a third set of vehicle accessory coordinate subsets,/>Corresponding to a fourth set of vehicle accessory coordinate subsets, by calculating/>And a set of error values calculated from a first set of vehicle accessory coordinate subsets, the adjustmentIs/>And analogically obtaining 4 groups of updated cluster center updated coordinate sets.
S52, utilizing the cluster center update coordinate set to adjust the vehicle accessory coordinate subset, and obtaining an adjusted vehicle accessory coordinate subset;
in a preferred embodiment of the present invention, the adjustment may be performed according to the error value set, and if the error between a part of the coordinates of the first set of coordinates of the vehicle accessory and the corresponding cluster center coordinates is too large, the part of coordinates of the vehicle accessory are divided into a second set of coordinates of the vehicle accessory, a third set of coordinates of the vehicle accessory and a fourth set of coordinates of the vehicle accessory, so as to obtain a new subset of coordinates of the vehicle accessory.
S53, calculating error values of each cluster center updating coordinate in the cluster center updating coordinate set and each vehicle accessory coordinate in the adjusted vehicle accessory coordinate subset;
in the embodiment of the present invention, the method for calculating the error value between each cluster center update coordinate in the cluster center update coordinate set and each vehicle accessory coordinate in the adjusted vehicle accessory coordinate subset is the same as the method for calculating the error value between each cluster center coordinate in the cluster center coordinate set and each vehicle accessory coordinate in the corresponding vehicle accessory coordinate subset in S403, and is not described in detail herein.
S54, counting the number of errors with the error value larger than the preset errors and the number of errors with the error value smaller than or equal to the preset errors, and calculating the ratio of the number larger than the preset errors to the number smaller than or equal to the preset errors;
S55, judging the size relation between the ratio and the preset ratio, and returning to S51 if the ratio is larger than the preset ratio;
S56, if the ratio is smaller than or equal to the preset ratio, the corresponding vehicle accessory coordinate subset is used as the vehicle accessory group corresponding to the grouping standard.
If the above steps of circulation, updating and the like are performed, the obtained 4 groups of cluster coordinates all meet the ratio less than or equal to the preset ratio, and the vehicle accessory coordinate subsets corresponding to the 4 groups of cluster coordinates respectively correspond to expensive accessory grouping, noble accessory grouping, common accessory grouping and cheap accessory grouping, so that the grouping of the accessory picture total set of the vehicle according to the grouping standard of the user is completed.
According to the embodiment of the invention, the accessories are grouped based on the vehicle accessory pictures, the accessory pictures are firstly divided through the structure, the vector conversion and the coordinate mapping are sequentially carried out on the accessory pictures after the structure division, a vehicle accessory coordinate set is obtained, and the vehicle accessory is grouped by utilizing the vehicle accessory coordinate set. Compared with the accessory picture set, the vehicle accessory coordinate set is simpler, the grouping can be completed without excessive calculation, and the problem that excessive calculation resources are occupied when the vehicle accessories are grouped can be solved.
Fig. 5 is a schematic block diagram of the grouping device of the vehicle accessory of the present invention.
The grouping apparatus 100 of vehicle accessories according to the present invention may be mounted in an electronic device. Depending on the functions implemented, the grouping apparatus 100 of the vehicle accessory may include a vector conversion module 101, a coordinate mapping module 102, an error calculation module 103, and an accessory grouping module 104. The module of the present invention may also be referred to as a unit, meaning a series of computer program segments capable of being executed by the processor of the electronic device and of performing fixed functions, stored in the memory of the electronic device.
In the present embodiment, the functions concerning the respective modules/units are as follows:
The vector conversion module 101 is configured to obtain a total assembly picture set and a grouping standard of a vehicle, divide the total assembly picture set according to a vehicle structure to obtain a plurality of assembly picture subsets, and perform vector conversion on the assembly picture subsets to obtain an assembly vector set;
The coordinate mapping module 102 is configured to map the accessory vector set to a pre-constructed coordinate system to obtain a vehicle accessory coordinate set;
The error calculation module 103 is configured to perform an initialization operation in the coordinate system according to the grouping standard to obtain a cluster center coordinate set, and sequentially calculate error values of the cluster center coordinate set and the vehicle accessory coordinate set;
The accessory grouping module 104 is configured to update the cluster center coordinate set with the error value, calculate an updated error value, and obtain a vehicle accessory group corresponding to the grouping standard by using the vehicle accessory coordinate set until the error value meets a preset error requirement.
The module in the device provided by the application can obtain the coordinate set of the vehicle accessory by carrying out structure division, vector conversion and mapping operation on the accessory picture total set based on the same grouping method of the vehicle accessory when in use, and the coordinate set of the vehicle accessory is utilized for grouping, so that the problem of occupying excessive computing resources when the vehicle accessory is grouped can be solved.
As shown in fig. 6, a schematic structural diagram of an electronic device implementing the grouping method of vehicle accessories according to the present invention is shown.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program stored in the memory 11 and executable on the processor 10, such as a grouping program 12 of vehicle accessories.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes of the grouping program 12 of the vehicle accessory, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects respective parts of the entire electronic device using various interfaces and lines, executes various functions of the electronic device 1 and processes data by running or executing programs or modules stored in the memory 11 (for example, executing a grouping program of vehicle accessories, etc.), and calling data stored in the memory 11.
The bus may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 6 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 6 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The grouping program 12 of vehicle accessories stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 10, can implement:
Acquiring a fitting picture total set and a grouping standard of a vehicle, and dividing the fitting picture total set according to a vehicle structure to obtain a plurality of fitting picture subsets;
Vector conversion is carried out on the accessory picture subset to obtain an accessory vector set;
Mapping the fitting vector set to a pre-constructed coordinate system to obtain a vehicle fitting coordinate set;
according to the grouping standard, initializing operation is carried out in the coordinate system to obtain a cluster center coordinate set, and error values of the cluster center coordinate set and the vehicle accessory coordinate set are sequentially calculated;
And updating the cluster center coordinate set by using the error value, calculating the updated error value, and obtaining the vehicle accessory group corresponding to the grouping standard by using the vehicle accessory coordinate set until the error value meets the preset error requirement.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
Further, the computer-usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any accompanying diagram representation in the claims should not be considered as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (8)

1. A method of grouping vehicle accessories, the method comprising:
Acquiring a fitting picture total set and a grouping standard of a vehicle, and dividing the fitting picture total set according to a vehicle structure to obtain a plurality of fitting picture subsets;
Vector conversion is carried out on the accessory picture subset to obtain an accessory vector set;
Mapping the fitting vector set to a pre-constructed coordinate system to obtain a vehicle fitting coordinate set;
according to the grouping standard, initializing operation is carried out in the coordinate system to obtain a cluster center coordinate set, and error values of the cluster center coordinate set and the vehicle accessory coordinate set are sequentially calculated;
Updating the cluster center coordinate set by using the error value, calculating the updated error value, and obtaining a vehicle accessory group corresponding to the grouping standard by using the vehicle accessory coordinate set until the error value meets the preset error requirement;
The vector conversion of the accessory picture subset to obtain an accessory vector set includes: extracting an accessory texture feature set in the accessory picture subset by utilizing convolution operation; performing dimension reduction operation on the fitting texture feature set and combining to obtain the fitting vector set;
the convolution operation extracts an accessory texture feature set within the accessory picture subset, comprising: extracting an accessory texture feature set in the accessory picture subset by adopting the following convolution calculation formula:
Wherein, For the accessory texture feature set,/>For pixel value coordinates of the accessory pictures within the accessory picture subset,/>As a convolution function,/>Is a convolution operator,/>For accessory picture brightness,/>Is the chromaticity of the accessory picture.
2. The grouping method of vehicle accessories according to claim 1, wherein the initializing operation is performed in the coordinate system according to the grouping criterion, resulting in a cluster center coordinate set, comprising:
And according to the grouping number in the grouping standard, randomly initializing the cluster center coordinates with the same number as the grouping number in the coordinate system to obtain the cluster center coordinate set.
3. The grouping method of vehicle accessories of claim 2, wherein the calculating error values of the cluster center coordinate set and the vehicle accessory coordinate set comprises:
dividing the vehicle accessory coordinate sets according to the cluster center coordinate sets to obtain vehicle accessory coordinate subsets with the same number as the cluster center coordinate sets;
And calculating an error value of each cluster center coordinate in the cluster center coordinate set and each vehicle accessory coordinate in the corresponding vehicle accessory coordinate subset.
4. The method for grouping vehicle accessories as claimed in claim 3, wherein the updating the cluster center coordinate set by using the error value, calculating the updated error value, and obtaining the vehicle accessory group corresponding to the grouping standard by using the vehicle accessory coordinate set until the error value meets a preset error requirement, includes:
Summarizing error values of each cluster center coordinate and a corresponding vehicle accessory coordinate subset in the cluster center coordinate set to obtain an error value set, and updating the coordinate position of the cluster center coordinate set according to the error value set to obtain a cluster center updated coordinate set;
The vehicle accessory coordinate subset is adjusted by utilizing the cluster center updating coordinate set, and an adjusted vehicle accessory coordinate subset is obtained;
calculating an error value of each cluster center coordinate in the cluster center updating coordinate set and each vehicle accessory coordinate in the adjusted vehicle accessory coordinate subset;
Counting the number of errors with the error value larger than the preset error and the number of errors with the error value smaller than or equal to the preset error, and calculating the ratio of the number larger than the preset error to the number smaller than or equal to the preset error;
Judging the relation between the ratio and a preset ratio, and updating the coordinate position of the cluster center coordinate set when the ratio is larger than the preset ratio;
and when the ratio is smaller than or equal to the preset ratio, grouping the corresponding vehicle accessory coordinate subsets as the vehicle accessories corresponding to the grouping standard.
5. A method of grouping vehicle accessories as defined in claim 3, wherein said calculating an error value for each cluster center coordinate in said cluster center coordinate set and each vehicle accessory coordinate in said corresponding subset of vehicle accessory coordinates comprises:
Calculating an error value for the coordinates of each vehicle accessory using the formula:
Wherein, For the error value,/>For vehicle accessory coordinates within the subset of vehicle accessory coordinates,/>For the cluster center coordinate set,/>Representing the number of the cluster center coordinate sets,/>Representing the subset of vehicle accessory coordinates.
6. A grouping apparatus of vehicle accessories for realizing the grouping method of vehicle accessories according to any one of claims 1 to 5, characterized in that the apparatus comprises:
the vector conversion module is used for obtaining an accessory picture total set and a grouping standard of the vehicle, dividing the accessory picture total set according to a vehicle structure to obtain a plurality of accessory picture subsets, and carrying out vector conversion on the accessory picture subsets to obtain an accessory vector set;
the coordinate mapping module is used for mapping the accessory vector set to a pre-constructed coordinate system to obtain a vehicle accessory coordinate set;
the error calculation module is used for executing initialization operation in the coordinate system according to the grouping standard to obtain a cluster center coordinate set, and sequentially calculating error values of the cluster center coordinate set and the vehicle accessory coordinate set;
and the accessory grouping module is used for updating the cluster center coordinate set by utilizing the error value, calculating the updated error value, and obtaining the vehicle accessory grouping corresponding to the grouping standard by utilizing the vehicle accessory coordinate set until the error value meets the preset error requirement.
7. An electronic device, the electronic device comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of grouping vehicle accessories of any one of claims 1 to 5.
8. A computer-readable storage medium comprising a storage data area and a storage program area, characterized in that the storage data area stores created data, the storage program area storing a computer program; wherein the computer program, when executed by a processor, implements a grouping method of vehicle accessories as claimed in any one of claims 1 to 5.
CN202010911998.6A 2020-09-02 2020-09-02 Grouping method and device for vehicle accessories, electronic equipment and storage medium Active CN112070142B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010911998.6A CN112070142B (en) 2020-09-02 2020-09-02 Grouping method and device for vehicle accessories, electronic equipment and storage medium
PCT/CN2020/131919 WO2021189896A1 (en) 2020-09-02 2020-11-26 Vehicle part grouping method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010911998.6A CN112070142B (en) 2020-09-02 2020-09-02 Grouping method and device for vehicle accessories, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112070142A CN112070142A (en) 2020-12-11
CN112070142B true CN112070142B (en) 2024-05-10

Family

ID=73666241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010911998.6A Active CN112070142B (en) 2020-09-02 2020-09-02 Grouping method and device for vehicle accessories, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112070142B (en)
WO (1) WO2021189896A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106845519A (en) * 2016-12-20 2017-06-13 南京信息工程大学 A kind of sparse Subspace clustering method of distributed implementation
CN108288076A (en) * 2018-02-12 2018-07-17 深圳开思时代科技有限公司 Auto parts machinery clustering method, device, electronic equipment and storage medium
WO2020125528A1 (en) * 2018-12-21 2020-06-25 广东美的白色家电技术创新中心有限公司 Anchor object detection method and apparatus, electronic device, and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7343209B2 (en) * 2005-11-08 2008-03-11 The Boeing Company Attribute-based item information grouping, such as for use in generating manufacturing instructions
US8352855B2 (en) * 2009-01-02 2013-01-08 Apple Inc. Selection of text in an unstructured document
US20200134496A1 (en) * 2018-10-29 2020-04-30 Hewlett Packard Enterprise Development Lp Classifying parts via machine learning
CN110555470B (en) * 2019-08-19 2021-10-01 一汽解放汽车有限公司 Oil sprayer grouping method
CN111475541A (en) * 2020-03-17 2020-07-31 中国平安人寿保险股份有限公司 Data decision method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106845519A (en) * 2016-12-20 2017-06-13 南京信息工程大学 A kind of sparse Subspace clustering method of distributed implementation
CN108288076A (en) * 2018-02-12 2018-07-17 深圳开思时代科技有限公司 Auto parts machinery clustering method, device, electronic equipment and storage medium
WO2020125528A1 (en) * 2018-12-21 2020-06-25 广东美的白色家电技术创新中心有限公司 Anchor object detection method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN112070142A (en) 2020-12-11
WO2021189896A1 (en) 2021-09-30

Similar Documents

Publication Publication Date Title
CN111932564B (en) Picture identification method and device, electronic equipment and computer readable storage medium
CN111476225B (en) In-vehicle human face identification method, device, equipment and medium based on artificial intelligence
CN111932534B (en) Medical image picture analysis method and device, electronic equipment and readable storage medium
CN111738212B (en) Traffic signal lamp identification method, device, equipment and medium based on artificial intelligence
CN111783982B (en) Method, device, equipment and medium for acquiring attack sample
CN112446544A (en) Traffic flow prediction model training method and device, electronic equipment and storage medium
CN111931729B (en) Pedestrian detection method, device, equipment and medium based on artificial intelligence
CN111309825A (en) Data clustering storage method and device and computer readable storage medium
CN111932562A (en) Image identification method and device based on CT sequence, electronic equipment and medium
CN111694844A (en) Enterprise operation data analysis method and device based on configuration algorithm and electronic equipment
CN112699142A (en) Cold and hot data processing method and device, electronic equipment and storage medium
CN112132812A (en) Certificate checking method and device, electronic equipment and medium
CN111985449A (en) Rescue scene image identification method, device, equipment and computer medium
CN114708461A (en) Multi-modal learning model-based classification method, device, equipment and storage medium
CN112541902A (en) Similar area searching method, similar area searching device, electronic equipment and medium
CN114913371A (en) Multitask learning model training method and device, electronic equipment and storage medium
CN113656690B (en) Product recommendation method and device, electronic equipment and readable storage medium
CN112070142B (en) Grouping method and device for vehicle accessories, electronic equipment and storage medium
CN113487621A (en) Medical image grading method and device, electronic equipment and readable storage medium
CN112990374A (en) Image classification method, device, electronic equipment and medium
CN113705686B (en) Image classification method, device, electronic equipment and readable storage medium
CN111651292A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN115239958A (en) Wheel hub damage detection method based on artificial intelligence and related equipment
CN112233194B (en) Medical picture optimization method, device, equipment and computer readable storage medium
CN113627394A (en) Face extraction method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant