Method, device, electronic device and medium for calculating vehicle transportation service completion degree
By obtaining vehicle trajectory and docking parameters, the completion degree of vehicle transportation business is automatically calculated, and the problem of time-consuming manual calculation is solved, and automated transportation trip statistics are realized, which saves the statistical cost of transportation companies.
Patent Information
- Application Number
- CN202111409881.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2041-11-25
AI Technical Summary
In the prior art, calculating the completion degree of vehicle transportation business requires manual calculation, resulting in a large time consumption.
By obtaining the vehicle trajectory to be detected, the docking parameters of each stop are determined, including the vehicle stop, the docking time and the stop interval, the transport points to be screened and the parking points to be screened are determined based on these parameters, and the vehicle business completion degree is automatically calculated based on the distance values between each stop and the transport point.
It has achieved the statistics of transportation trips without manpower, and the automatic calculation of the number of times the transportation vehicles complete transportation business, greatly saving the statistical cost of the platform.
Smart Images

Figure CN114219230B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data processing technology, and in particular to a method, device, electronic device and medium for calculating the completion degree of vehicle transportation business. Background Art
[0002] With the improvement of people's quality of life, various service industries have developed rapidly. Among them, the logistics industry has developed extremely rapidly, and more and more users choose to use logistics transportation to deliver goods.
[0003] Among them, current car factories generally have dedicated logistics management systems to monitor and manage the mileage and transportation time of transport vehicles from the car factory departure point to the corresponding stops and transfer stations. The entries are uploaded to the backend server, and relevant department personnel communicate with the backend server through the terminal app to obtain vehicle status.
[0004] However, in the related art, the method of determining and calculating the completion degree of vehicle transportation business is to rely on manual calculation by business personnel, which greatly consumes the platform's statistical time. Summary of the Invention
[0005] The present invention provides a method, device, electronic device, and medium for calculating the completion degree of a vehicle transportation service, which are used to solve the problem in the related art that the method for determining and calculating the completion degree of a vehicle transportation service is time-consuming and requires manual calculation by business personnel.
[0006] According to one aspect of an embodiment of the present application, a method for calculating the completion degree of a vehicle transportation service is provided, including:
[0007] Obtaining a trajectory of the vehicle to be detected, and determining the parking parameters corresponding to each stop point based on the trajectory of the vehicle to be detected, the parking parameters including the vehicle stop point, the stop duration, and the stop interval;
[0008] Determining a transportation point to be screened and a parking point for the vehicle to be inspected based on the parking parameters;
[0009] The vehicle service completion degree of the vehicle to be detected is determined according to the distance values between each stop point of the vehicle to be detected and the transportation point to be screened.
[0010] Optionally, in another embodiment of the above method of the present application, after obtaining the trajectory of the vehicle to be detected, the method further includes:
[0011] Get pre-stored map information;
[0012] Based on the map information, the coordinates of the gas stations, intersections and service areas passed by in the trajectory of the vehicle to be detected are cleared.
[0013] Optionally, in another embodiment of the above method of the present application, determining the to-be-screened transport point and parking point of the to-be-detected vehicle based on the parking parameters includes:
[0014] Determining a stop type at each stop based on the stop duration of the vehicle to be detected, wherein the stop type includes one of a long stop and a short stop;
[0015] The stop points whose stop types correspond to long stops are used as the transportation points to be screened, and the stop points whose stop types correspond to short stops are used as the parking points.
[0016] Optionally, in another embodiment of the above method of the present application, determining the vehicle service completion degree of the vehicle to be detected based on the distance between each stop point of the vehicle to be detected and the transport point to be screened includes:
[0017] Sorting the various stop points of the vehicle to be detected in chronological order;
[0018] Calculating a first distance value between a first stop and an adjacent transport point to be screened, and when it is determined that the first distance value is less than a preset threshold, using the transport point to be screened as a business transport starting point;
[0019] Based on the business transportation starting point, the vehicle business completion degree of the vehicle to be detected is determined.
[0020] Optionally, in another embodiment of the above method of the present application, determining the vehicle service completion degree of the vehicle to be detected based on the service transportation starting point includes:
[0021] Calculating a second distance value between the next stop and the adjacent transport point to be screened, and when it is determined that the second distance value is less than a preset threshold, using the transport point to be screened as the end point of the business transport;
[0022] The vehicle trajectory between the business transportation starting point and the business transportation ending point is regarded as a transportation business completed by the vehicle to be detected.
[0023] Optionally, in another embodiment of the above method of the present application, obtaining the trajectory of the vehicle to be detected includes:
[0024] Obtaining the coordinates of the stop start point and the stop end point in the trajectory of the vehicle to be detected;
[0025] Based on the coordinates of the stop start point and the coordinates of the stop end point, the coordinates of the stop center point of the vehicle to be detected are calculated;
[0026] The coordinates of the stop center point are used as the vehicle stop point corresponding to each stop point in the vehicle to be detected.
[0027] According to another aspect of the embodiments of the present application, a device for calculating the completion degree of a vehicle transportation service is provided, characterized in that it includes:
[0028] An acquisition module is configured to acquire a trajectory of a vehicle to be detected and determine parking parameters corresponding to each stop point based on the trajectory of the vehicle to be detected, wherein the parking parameters include a vehicle stop point, a stop duration, and a stop interval;
[0029] A first determining module is configured to determine a to-be-screened transport point and a parking point of the to-be-detected vehicle based on the parking parameters;
[0030] The second determining module is configured to determine the vehicle service completion degree of the vehicle to be detected based on the distance values between each stop point of the vehicle to be detected and the transportation point to be screened.
[0031] According to another aspect of the embodiments of the present application, an electronic device is provided, including:
[0032] a memory for storing executable instructions; and
[0033] The display is used to execute the executable instructions together with the memory to complete the operation of any of the above-mentioned methods for calculating the completion degree of vehicle transportation business.
[0034] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided for storing computer-readable instructions, which, when executed, perform the operations of any of the above-mentioned methods for calculating the completion degree of vehicle transportation business.
[0035] In this application, the trajectory of the vehicle to be detected can be obtained, and the docking parameters corresponding to each stop point can be determined based on the trajectory of the vehicle to be detected. The docking parameters include the vehicle stop point, the stop duration and the stop interval; based on the docking parameters, the transportation points to be screened and the parking points of the vehicle to be detected are determined; according to the distance values between each stop point of the vehicle to be detected and the transportation points to be screened, the vehicle business completion degree of the vehicle to be detected is determined. By applying the technical solution of this application, it is possible to automatically determine whether each stop point is a stop point generated to complete the transportation business in combination with the driving route and operating time of the transport vehicle, and thus automatically calculate the number of times the transport vehicle has completed the transportation business. This enables the transport enterprise to count the number of transport trips without manpower, thereby greatly saving the statistical costs of the platform.
[0036] The technical solution of the present application is further described in detail below through the accompanying drawings and examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the description, serve to explain the principles of the present application.
[0038] The present application can be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0039] Figure 1 A schematic diagram of a method for calculating the completion degree of vehicle transportation business proposed in this application;
[0040] Figure 2 A schematic diagram of a process for calculating the completion degree of vehicle transportation business proposed in this application;
[0041] Figure 3 This is a schematic diagram of the structure of an electronic device for calculating the completion degree of vehicle transportation business proposed in this application;
[0042] Figure 4 This is a structural diagram of an electronic device proposed in this application for calculating the completion degree of vehicle transportation business. DETAILED DESCRIPTION
[0043] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0044] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0045] The following description of at least one exemplary embodiment is merely illustrative in nature and is not intended to limit the present disclosure, its application, or uses.
[0046] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0047] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0048] In addition, the technical solutions between the various embodiments of the present application can be combined with each other, but it must be based on the fact that ordinary technicians in this field can implement it. When the combination of technical solutions is mutually contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0049] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0050] The following combination Figure 1-Figure 2 The following describes a method for calculating the completion degree of a vehicle transportation business according to an exemplary embodiment of the present application. It should be noted that the following application scenarios are merely provided to facilitate understanding of the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, the embodiments of the present application can be applied to any applicable scenario.
[0051] The present application also proposes a method, device, electronic device and medium for calculating the completion degree of vehicle transportation business.
[0052] Figure 1 The following schematically shows a flow chart of a method for calculating the completion degree of a vehicle transportation business according to an embodiment of the present application. Figure 1 As shown, the method includes:
[0053] S101: Obtain a trajectory of a vehicle to be detected, and determine the corresponding parking parameters of each stop based on the trajectory of the vehicle to be detected. The stop parameters include the vehicle stop point, stop duration, and stop interval.
[0054] S102: Determine the transportation point to be screened and the parking point of the vehicle to be inspected based on the parking parameters.
[0055] S103: Determine the vehicle service completion degree of the vehicle to be detected based on the distance values between each stop point of the vehicle to be detected and the transportation point to be screened.
[0056] The present application does not specifically limit the vehicle to be inspected, that is, it can be any transport vehicle, for example, a vehicle for transporting users, a vehicle for transporting goods, or a vehicle for transporting waste, etc.
[0057] In one embodiment, the present application uses an example of a vehicle to be inspected that is a vehicle for transporting slag, where the vehicle transporting slag is engaged in loading and unloading slag.
[0058] Among them, this application can first obtain vehicle trajectory information, and extract the vehicle's stop point coordinates, stop duration and stop interval (i.e. the driving distance between the current stop point and the previous stop point) based on the vehicle trajectory.
[0059] It should be noted that this application needs to obtain pre-stored map information, and based on the map information, clear the coordinates of gas stations, intersections, service areas, etc. passed by the vehicle trajectory to be detected, which may cause obstacles to the calculation of transportation services.
[0060] Furthermore, the present application can classify stops into long and short types based on the duration of each stop. For example, a stop duration greater than a time threshold is considered a long stop. A stop duration less than the time threshold is considered a short stop. The stop point coordinates are the coordinates of the center point between the stop start point coordinates and the stop end point coordinates.
[0061] Furthermore, the present application may use the stop points corresponding to long stops (or the top three stops therein) as transport points to be screened, and the stop points corresponding to short stops (or the top two stops therein) as parking points. It is understandable that the transport points to be screened are transport points where the muck trucks may complete loading and unloading of muck. The purpose of the parking points is to calculate the distance between each transport point to be screened and the parking point. If the distance between the two is too close (for example, less than the first value), the transport point to be screened is not the starting point or end point of the transport business.
[0062] Furthermore, this application needs to sort all the stop points of the vehicle to be detected by time axis, take the first stop point and calculate the distance with the transport point to be screened, if it is less than the preset threshold, mark the transport point to be screened as the starting point of a business transport, if it is not less than the preset threshold, then take the next stop point and calculate the distance with the transport point to be screened, if it is less than the preset threshold, mark it as the starting point of the business transport. Then take the next stop point and calculate the distance with the transport point to be screened, and judge whether it is less than the preset threshold. If so, record the point as the end point of the business transport. And record the vehicle trajectory between the business transport starting point and the business transport end point as a transport business completed by the vehicle to be detected. At the same time, mark the point as the new transport starting point,
[0063] Continue to take the next stop point to calculate all the stop points. In addition, when calculating the number of transport trips, if the distance between the stop point and the parking point is less than the specified value, the point will not be used as the starting point or the end point of the business transport. Instead, continue to take the next stop point and recalculate the new starting point until all the stop points are calculated. The starting point time, arrival time and travel distance of each transport are output.
[0064] Finally, this application can summarize all the transportation starting points and transportation ending points of the vehicle to be detected, so as to count the number of transportation trips completed by the vehicle within a certain time range.
[0065] In this application, the trajectory of the vehicle to be detected can be obtained, and the docking parameters corresponding to each stop point can be determined based on the trajectory of the vehicle to be detected. The docking parameters include the vehicle stop point, the stop duration and the stop interval; based on the docking parameters, the transportation points to be screened and the parking points of the vehicle to be detected are determined; according to the distance values between each stop point of the vehicle to be detected and the transportation points to be screened, the vehicle business completion degree of the vehicle to be detected is determined. By applying the technical solution of this application, it is possible to automatically determine whether each stop point is a stop point generated to complete the transportation business in combination with the driving route and operating time of the transport vehicle, and thus automatically calculate the number of times the transport vehicle has completed the transportation business. This enables the transport enterprise to count the number of transport trips without manpower, thereby greatly saving the statistical costs of the platform.
[0066] Optionally, in another embodiment of the above method of the present application, after obtaining the trajectory of the vehicle to be detected, the method further includes:
[0067] Get pre-stored map information;
[0068] Based on the map information, the coordinates of the gas stations, intersections and service areas passed by in the trajectory of the vehicle to be detected are cleared.
[0069] Optionally, in another embodiment of the above method of the present application, determining the to-be-screened transport point and parking point of the to-be-detected vehicle based on the parking parameters includes:
[0070] Determining a stop type at each stop based on the stop duration of the vehicle to be detected, wherein the stop type includes one of a long stop and a short stop;
[0071] The stop points whose stop types correspond to long stops are used as the transportation points to be screened, and the stop points whose stop types correspond to short stops are used as the parking points.
[0072] Optionally, in another embodiment of the above method of the present application, determining the vehicle service completion degree of the vehicle to be detected based on the distance between each stop point of the vehicle to be detected and the transport point to be screened includes:
[0073] Sorting the various stop points of the vehicle to be detected in chronological order;
[0074] Calculating a first distance value between a first stop and an adjacent transport point to be screened, and when it is determined that the first distance value is less than a preset threshold, using the transport point to be screened as a business transport starting point;
[0075] Based on the business transportation starting point, the vehicle business completion degree of the vehicle to be detected is determined.
[0076] Optionally, in another embodiment of the above method of the present application, determining the vehicle service completion degree of the vehicle to be detected based on the service transportation starting point includes:
[0077] Calculating a second distance value between the next stop and the adjacent transport point to be screened, and when it is determined that the second distance value is less than a preset threshold, using the transport point to be screened as the end point of the business transport;
[0078] The vehicle trajectory between the business transportation starting point and the business transportation ending point is regarded as a transportation business completed by the vehicle to be detected.
[0079] Optionally, in another embodiment of the above method of the present application, obtaining the trajectory of the vehicle to be detected includes:
[0080] Obtaining the coordinates of the stop start point and the stop end point in the trajectory of the vehicle to be detected;
[0081] Based on the coordinates of the stop start point and the coordinates of the stop end point, the coordinates of the stop center point of the vehicle to be detected are calculated;
[0082] The coordinates of the stop center point are used as the vehicle stop point corresponding to each stop point in the vehicle to be detected.
[0083] In one embodiment, the present application may include the following steps to obtain the corresponding stop parameters (vehicle stop point, stop duration, and stop interval) for each stop based on the trajectory of the vehicle to be detected:
[0084] Step 1: Obtain the driving trajectory of the vehicle to be detected within a historical period of time and select two consecutive stops with a speed less than v kilometers per hour and a duration less than or equal to t seconds. The first point is the starting point of the stop; or when the time difference between two consecutive points is greater than t seconds and the distance between the two points is less than s meters, and the speed of the first point is less than v kilometers per hour, the first point is the starting point of the stop.
[0085] Step 2: Filter two consecutive points with a speed greater than or equal to v km / h. If the time difference between the first point and the last point with a speed less than v km / h is less than t seconds and the distance is less than s meters, take the first point with a speed greater than or equal to v km / h as the stop end point; otherwise, take the point before the first point with a speed greater than or equal to v km / h as the stop end point.
[0086] Step 3: For all points between the current stop start point and the previous stop end point, the distance between the two points is calculated as the cumulative distance between the two points according to the spherical distance, and recorded as the driving distance between the current stop and the previous stop (i.e., the stop interval).
[0087] Step 4: Stop duration = Stop end time - Stop start time
[0088] Step 5: Calculate the center coordinates (i.e. the coordinates of the vehicle stop point) by using the stop start coordinates and the stop end coordinates. Mark the stop point coordinates, start coordinates A(x,y), end coordinates B(x1,y1), and center coordinates o((x+x1) / 2,(y+y1) / 2).
[0089] Step 6: Repeat steps 1 to 5 until all the stop points of the vehicle to be detected are calculated, and the coordinates, stop duration and stop interval of each stop point are output.
[0090] In another embodiment, the application can determine the business transport starting point and business transport ending point of the vehicle to be detected by the following methods:
[0091] Step 1: Obtain pre-stored map information, and based on the map information, clear the coordinates of gas stations, intersections, and service areas passed by the vehicle trajectory to be detected.
[0092] Step 2: Docks are divided into two types according to their duration: short docking and long docking. Docks shorter than a preset time threshold are defined as short docking, and docks longer than or equal to a preset time threshold are defined as long docking.
[0093] Step 3: You can also use the DBSCAN clustering algorithm with a radius of r meters to cluster long stops and short stops separately.
[0094] Step 4: Output long stops and short stops respectively, each cluster center point, the number of cluster points, the average stop duration, and the average distance traveled between the last stop.
[0095] Step 5: For long stops and short stops, first rank them in descending order by the number of cluster points, then rank them in ascending order by the average stop duration, and finally rank them in ascending order by the standard deviation of the distance from the previous stop; for short stops, the top three cluster points are taken, and the number of cluster points is greater than or equal to m, and they are defined as loading and unloading points (i.e., transportation points to be screened). If there are only the top two ranked, the top two are taken as loading and unloading points (i.e., transportation points to be screened); for long stops, the top two are taken, and the number of cluster points is greater than or equal to n, and they are defined as parking points. If one of them is met, one is taken as the parking point.
[0096] In another way, if Figure 2 As shown, in the process of determining the business transportation starting point and business transportation ending point of the vehicle to be detected, the following methods can be used:
[0097] Step 1: Sort all stops by timeline.
[0098] Step 2: Calculate the distance between the stop and the loading and unloading point.
[0099] Step 3: If the result of step 2 is less than the specified value, mark the point as the starting point for a transportation and loading and unloading of waste soil.
[0100] Step 4: If the result of step 2 is greater than or equal to the specified value, take the next stop and return to step 2 to recalculate.
[0101] Step 5: If step 3 is met, take the next point and calculate the distance between the stop point and the loading and unloading point.
[0102] Step 6: If the result of step 5 is less than the specified value, mark it as the end point of a transportation and loading and unloading of the soil, record a transportation trip, and record the start time and arrival time.
[0103] Step 7: If the result of step 5 is greater than or equal to the specified value, calculate the distance between the stop point and the parking point.
[0104] Step 8: If the result of step 7 is less than or equal to the specified value, mark the journey from the starting point of transporting and loading and unloading the muck to the parking point as not a single transport trip, select the next parking point, and recalculate from step 2.
[0105] Step 9: Mark the stop completed in step 6 as the starting point for a new transport and loading / unloading of soil. Repeat steps 2 to 9 until all stop points are calculated.
[0106] Step 10: Add up the number of transport trips and record it as the time period from t1 to t2 for the vehicle. The total number of transport trips is calculated based on the transport start time and arrival time.
[0107] By applying the technical solution of this application, it is possible to automatically determine whether each stop is a stop generated by completing a transport business, based on the transport vehicle's route and operating hours, and thus automatically calculate the number of transport business operations completed by the transport vehicle. This allows transport companies to eliminate the need for manual counting of transport trips, significantly reducing the platform's statistical costs.
[0108] Optionally, in another embodiment of the present application, Figure 3 As shown, the present application also provides a device for calculating the completion degree of vehicle transportation business. It includes:
[0109] The acquisition module 201 is configured to acquire a trajectory of a vehicle to be detected and determine the parking parameters corresponding to each stop point based on the trajectory of the vehicle to be detected, wherein the parking parameters include the vehicle stop point, the stop duration, and the stop interval;
[0110] A first determining module 202 is configured to determine a to-be-screened transport point and a parking point for the vehicle to be detected based on the parking parameters;
[0111] The second determining module 203 is configured to determine the vehicle service completion degree of the vehicle to be detected according to the distance values between each stop point of the vehicle to be detected and the transportation point to be screened.
[0112] In this application, the trajectory of the vehicle to be detected can be obtained, and the docking parameters corresponding to each stop point can be determined based on the trajectory of the vehicle to be detected. The docking parameters include the vehicle stop point, the stop duration and the stop interval; based on the docking parameters, the transportation points to be screened and the parking points of the vehicle to be detected are determined; according to the distance values between each stop point of the vehicle to be detected and the transportation points to be screened, the vehicle business completion degree of the vehicle to be detected is determined. By applying the technical solution of this application, it is possible to automatically determine whether each stop point is a stop point generated to complete the transportation business in combination with the driving route and operating time of the transport vehicle, and thus automatically calculate the number of times the transport vehicle has completed the transportation business. This enables the transport enterprise to count the number of transport trips without manpower, thereby greatly saving the statistical costs of the platform.
[0113] In another embodiment of the present application, the acquisition module 201 is configured to perform the following steps:
[0114] Get pre-stored map information;
[0115] Based on the map information, the coordinates of the gas stations, intersections and service areas passed by in the trajectory of the vehicle to be detected are cleared.
[0116] In another embodiment of the present application, the acquisition module 201 is configured to perform the following steps:
[0117] Determining a stop type at each stop based on the stop duration of the vehicle to be detected, wherein the stop type includes one of a long stop and a short stop;
[0118] The stop points whose stop types correspond to long stops are used as the transportation points to be screened, and the stop points whose stop types correspond to short stops are used as the parking points.
[0119] In another embodiment of the present application, the acquisition module 201 is configured to perform the following steps:
[0120] Sorting the various stop points of the vehicle to be detected in chronological order;
[0121] Calculating a first distance value between a first stop and an adjacent transport point to be screened, and when it is determined that the first distance value is less than a preset threshold, using the transport point to be screened as a business transport starting point;
[0122] Based on the business transportation starting point, the vehicle business completion degree of the vehicle to be detected is determined.
[0123] In another embodiment of the present application, the acquisition module 201 is configured to perform the following steps:
[0124] Calculating a second distance value between the next stop and the adjacent transport point to be screened, and when it is determined that the second distance value is less than a preset threshold, using the transport point to be screened as the end point of the business transport;
[0125] The vehicle trajectory between the business transportation starting point and the business transportation ending point is regarded as a transportation business completed by the vehicle to be detected.
[0126] In another embodiment of the present application, the acquisition module 201 is configured to perform the following steps:
[0127] Obtaining the coordinates of the stop start point and the stop end point in the trajectory of the vehicle to be detected;
[0128] Based on the coordinates of the stop start point and the coordinates of the stop end point, the coordinates of the stop center point of the vehicle to be detected are calculated;
[0129] The coordinates of the stop center point are used as the vehicle stop point corresponding to each stop point in the vehicle to be detected.
[0130] Figure 4 3 is a block diagram of a logical structure of an electronic device according to an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0131] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by an electronic device processor to complete the above method of calculating the completion degree of vehicle transportation business, the method comprising: obtaining the trajectory of the vehicle to be detected, and determining the stop parameters corresponding to each stop point based on the trajectory of the vehicle to be detected, the stop parameters including the vehicle stop point, the stop duration and the stop interval; based on the stop parameters, determining the transportation point to be screened and the parking point of the vehicle to be detected; determining the vehicle business completion degree of the vehicle to be detected according to the distance value between each stop point of the vehicle to be detected and the transportation point to be screened. Optionally, the above instructions can also be executed by the processor of the electronic device to complete the other steps involved in the above exemplary embodiment. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk and an optical data storage device, etc.
[0132] In an exemplary embodiment, an application / computer program product is also provided, comprising one or more instructions that can be executed by a processor of an electronic device to perform the above-mentioned method for calculating the completion degree of vehicle transportation services. The method comprises: obtaining a trajectory of a vehicle to be detected, and determining the corresponding stop parameters for each stop based on the trajectory of the vehicle to be detected, wherein the stop parameters include the vehicle stop point, stop duration, and stop interval; determining the to-be-screened transportation points and parking points of the vehicle to be detected based on the stop parameters; and determining the vehicle service completion degree of the vehicle to be detected based on the distance between each stop point of the vehicle to be detected and the to-be-screened transportation points. Optionally, the above-mentioned instructions can also be executed by a processor of an electronic device to perform the other steps involved in the above-mentioned exemplary embodiment.
[0133] Figure 4 This is an example diagram of a computer device 30. Those skilled in the art will appreciate that Figure 4 This is merely an example of the computer device 30 and does not constitute a limitation of the computer device 30 . The computer device 30 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 30 may also include input and output devices, network access devices, buses, etc.
[0134] The processor 302 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor 302 may be any conventional processor. The processor 302 is the control center of the computer device 30 and connects various components of the entire computer device 30 using various interfaces and lines.
[0135] The memory 301 can be used to store computer-readable instructions 303. The processor 302 implements various functions of the computer device 30 by running or executing the computer-readable instructions or modules stored in the memory 301 and accessing the data stored in the memory 301. The memory 301 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function or an image playback function); the data storage area may store data generated based on the use of the computer device 30. In addition, the memory 301 may include a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, a read-only memory (ROM), a random access memory (RAM), or other non-volatile / volatile storage devices.
[0136] If the modules integrated into computer device 30 are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention can also implement all or part of the processes in the above-mentioned method embodiments by instructing the relevant hardware through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium. When executed by a processor, the computer-readable instructions can implement the steps of each of the above-mentioned method embodiments.
[0137] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0138] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for calculating the completion degree of vehicle transportation business, characterized in that: include: Obtaining a trajectory of the vehicle to be detected, and determining the parking parameters corresponding to each stop point based on the trajectory of the vehicle to be detected, the parking parameters including the vehicle stop point, the stop duration, and the stop interval; Based on the stop parameters, determining a to-be-screened transport point and a parking point for the to-be-detected vehicle; the to-be-screened transport point is a parking point whose stop type corresponds to a long stop, and the parking point is a parking point whose stop type corresponds to a short stop; Determine the vehicle business completion degree of the vehicle to be detected based on the distance between each stop point of the vehicle to be detected and the transport point to be screened, where the vehicle business completion degree is the number of times the vehicle has completed transport business; Determining the vehicle service completion degree of the vehicle to be detected based on the distance between each stop point of the vehicle to be detected and the transportation point to be screened includes: Sorting the various stop points of the vehicle to be detected in chronological order; Calculating a first distance value between a first stop and an adjacent transport point to be screened, and when it is determined that the first distance value is less than a preset threshold, using the transport point to be screened as a business transport starting point; Calculating a second distance value between the next stop and the adjacent transport point to be screened, and when it is determined that the second distance value is less than a preset threshold, using the transport point to be screened as the end point of the business transport; The vehicle trajectory between the business transportation starting point and the business transportation ending point is regarded as a transportation business completed by the vehicle to be detected.
2. The method according to claim 1, wherein After obtaining the trajectory of the vehicle to be detected, the method further includes: Get pre-stored map information; Based on the map information, the coordinates of the gas stations, intersections and service areas passed by in the trajectory of the vehicle to be detected are cleared.
3. The method according to claim 1 or 2, wherein: The step of determining the to-be-screened transport point and the parking point of the to-be-detected vehicle based on the parking parameters includes: Determining a stop type at each stop based on the stop duration of the vehicle to be detected, wherein the stop type includes one of a long stop and a short stop; The stop points whose stop types correspond to long stops are used as the transportation points to be screened, and the stop points whose stop types correspond to short stops are used as the parking points.
4. The method according to claim 1, wherein The obtaining of the trajectory of the vehicle to be detected includes: Obtaining the coordinates of the stop start point and the stop end point in the trajectory of the vehicle to be detected; Based on the coordinates of the stop start point and the coordinates of the stop end point, the coordinates of the stop center point of the vehicle to be detected are calculated; The coordinates of the stop center point are used as the vehicle stop point corresponding to each stop point in the vehicle to be detected.
5. A device for calculating the completion degree of vehicle transportation business, characterized in that: include: An acquisition module is configured to acquire a trajectory of a vehicle to be detected and determine parking parameters corresponding to each stop point based on the trajectory of the vehicle to be detected, wherein the parking parameters include a vehicle stop point, a stop duration, and a stop interval; A first determining module is configured to determine a to-be-screened transport point and a parking point of the to-be-detected vehicle based on the parking parameters; The transport point to be screened is a stop point whose stop type corresponds to a long stop, and the parking point is a stop point whose stop type corresponds to a short stop; A second determining module is configured to determine the vehicle business completion degree of the vehicle to be detected based on the distance values between each stop point of the vehicle to be detected and the transportation point to be screened, where the vehicle business completion degree is the number of times the vehicle has completed transportation business; The vehicle business completion degree of the vehicle to be detected is determined based on the distance values between each stop point of the vehicle to be detected and the transport point to be screened, including: sorting the various stop points of the vehicle to be detected in chronological order; calculating a first distance value between a first stop point and an adjacent transport point to be screened, and when it is determined that the first distance value is less than a preset threshold, taking the transport point to be screened as a business transport starting point; calculating a second distance value between a next stop point and an adjacent transport point to be screened, and when it is determined that the second distance value is less than a preset threshold, taking the transport point to be screened as a business transport ending point; and taking the vehicle trajectory between the business transport starting point and the business transport ending point as a transport business completed by the vehicle to be detected.
6. An electronic device, characterized in that: include: a memory for storing executable instructions; as well as, A processor is used to execute the executable instructions together with the memory to complete the operation of the method for calculating the completion degree of vehicle transportation business as described in any one of claims 1-4.
7. A computer-readable storage medium for storing computer-readable instructions, characterized in that: When the instruction is executed, the operation of the method for calculating the completion degree of vehicle transportation business according to any one of claims 1-4 is performed.
Citation Information
Patent Citations
Transport distance calculation method and device based on statistical characteristics
CN108182558A
Vehicle OD prediction method, device and equipment and storage medium
CN111179589A
Vehicle loading and unloading state recognition method and device, storage medium and terminal
CN112613939A