A method, apparatus and electronic device for determining a traffic prompt distance

By obtaining and matching street scene images of different distances, calculating the area proportion of the target area and determining the traffic prompt distance, the problem that users cannot understand the prompt in map navigation is solved, and the effect of users understanding the prompt information in time is achieved.

CN114064745BActive Publication Date: 2025-07-22BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111371784.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2025-07-22
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

When the existing map navigation technology prompts the reference object, it cannot effectively solve the problem of understanding when the user cannot actually see the reference object, and the prompt information may have been missed when the user can see it.

Method used

By obtaining the initial street view image and the Nth street view image of different distances, the area proportion of the target area is calculated by matching, the traffic prompt distance is determined, and when the area proportion is not greater than the threshold, the distance is used as the traffic prompt distance to send a prompt message to the user.

Benefits of technology

Optimize the user experience of map navigation to ensure that users can understand traffic prompt information in a timely manner and avoid waste of resources and missed prompts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114064745B_ABST
    Figure CN114064745B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus and electronic device for determining a traffic prompt distance, relating to the field of intelligent transportation technology, and particularly to the field of map navigation technology. The specific implementation solution is as follows: obtaining an initial street view image collected when the distance from a reference object is a first preset distance; obtaining an Nth street view image including the reference object; matching the initial street view image with the Nth street view image to obtain a target area corresponding to the initial street view image in the Nth street view image; calculating the area ratio of the target area in the Nth street view image; when the current area ratio is greater than a preset area threshold, increasing the value of N by 1, and returning to execute the step of obtaining the Nth street view image including the reference object; when the current area ratio is not greater than the preset area threshold, taking the sum of the first preset distance and (N - 1) times the preset unit step length as the traffic prompt distance for the reference object, thereby realizing the determination of the traffic prompt distance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent transportation technology, in particular to the field of map navigation technology, and specifically relates to a method, apparatus, and electronic device for determining a traffic prompt distance. Background Art

[0002] With the development of map navigation technology, people's daily travel increasingly relies on it. Map navigation can guide the travel direction of users according to road conditions. Usually, when the user approaches a reference object such as a landmark or a turning point that requires the user's attention, traffic information prompts are sent to the user according to the actual distance between the user and the reference object. Summary of the Invention

[0003] The present disclosure provides a method, apparatus, and electronic device for determining a traffic prompt distance.

[0004] According to one aspect of the present disclosure, there is provided a method for determining a traffic prompt distance, including:

[0005] Obtaining an initial street view image collected when the distance from a reference object is a first preset distance, where the initial street view image includes the reference object;

[0006] Obtaining an Nth street view image including the reference object, where the distance between the Nth street view image and the reference object is the sum of the first preset distance and N times a preset unit step length, and N is a positive integer with an initial value of 1;

[0007] Matching the initial street view image with the Nth street view image to obtain a target area corresponding to the initial street view image in the Nth street view image;

[0008] Calculating the area ratio of the target area in the Nth street view image;

[0009] When the current area ratio is greater than a preset area threshold, increasing the value of N by 1, and returning to execute the step: obtaining the Nth street view image including the reference object;

[0010] When the current area ratio is not greater than the preset area threshold, taking the sum of the first preset distance and (N - 1) times the preset unit step length as the traffic prompt distance for the reference object.

[0011] According to another aspect of the present disclosure, there is provided a device for determining a traffic prompt distance, including:

[0012] A first image acquisition module, configured to obtain an initial street view image collected when the distance from a reference object is a first preset distance, where the initial street view image includes the reference object;

[0013] The second image acquisition module acquires the Nth street view image including the reference object, where the distance between the Nth street view image and the reference object is the sum of the first preset distance and N times the preset unit step length, and N is a positive integer with an initial value of 1;

[0014] The image matching module is used to match the initial street view image with the Nth street view image to obtain the target area corresponding to the initial street view image in the Nth street view image;

[0015] The area calculation module is used to calculate the area ratio of the target area in the Nth street view image;

[0016] The area judgment module is used to, when the current area ratio is greater than the preset area threshold, increase the value of N by 1 and return to execute the step of acquiring the Nth street view image including the reference object;

[0017] The distance determination module is used to, when the current area ratio is not greater than the preset area threshold, use the sum of the first preset distance and (N - 1) times the preset unit step length as the traffic prompt distance for the reference object.

[0018] The method for determining the traffic prompt distance provided by the present disclosure realizes the determination of the traffic prompt distance for the reference object by acquiring the initial street view image and the Nth street view image including the reference object, matching the two to obtain the target area corresponding to the initial street view image in the Nth street view image, calculating the area ratio of the target area in the Nth street view image, and using the sum of the first preset distance and (N - 1) times the preset unit step length as the traffic prompt distance for the reference object when the calculated area ratio is not greater than the preset area threshold.

[0019] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:

[0021] Figure 1 is a flowchart of the method for determining the traffic prompt distance provided by the embodiment of the present disclosure;

[0022] Figure 2a is a flowchart of a possible implementation manner of step S13 provided by the embodiment of the present disclosure;

[0023] FIG. 2b(1) is an example of an initial street view image provided by the present disclosure;

[0024] Figure 2b(2) is an example of the Nth street view image provided according to the present disclosure;

[0025] Figure 2b(3) is an example diagram of the matching effect between the Nth street view image and the initial street view image provided according to the present disclosure;

[0026] Figure 3 is a schematic structural diagram of a device for determining the traffic prompt distance provided according to an embodiment of the present disclosure;

[0027] Figure 4 is a block diagram of an electronic device for implementing the method for determining the traffic prompt distance provided according to an embodiment of the present disclosure. Detailed implementation manners

[0028] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted below.

[0029] Map navigation needs to prompt the user about the direction of travel. For example, turn left or right at the intersection ahead, or turn left or right at a certain landmark, etc. In the prior art, map navigation often takes the distance between the reference object to be prompted and the user as a prerequisite for sending traffic prompt information to the user. However, when the reference object is not prominent, or the user cannot actually see the reference object at the current distance, such a traffic prompt method will be relatively abstract for the user, so that the user cannot understand the traffic prompt information. And when the user is at a distance where they can actually see the reference object, they may forget the content of the traffic prompt information because the traffic prompt information has already been prompted, resulting in an inability to judge the direction.

[0030] To solve this problem, the present disclosure provides a method for determining the traffic prompt distance, including:

[0031] Obtain an initial street view image collected when the distance from the reference object is the first preset distance, where the initial street view image includes the reference object;

[0032] Obtain the Nth street view image including the reference object, where the distance between the Nth street view image and the reference object is the sum of the first preset distance and N times the preset unit step length, and N is a positive integer with an initial value of 1;

[0033] Match the initial street view image with the Nth street view image to obtain the target area corresponding to the initial street view image in the Nth street view image;

[0034] Calculate the area ratio of the target area in the Nth street view image;

[0035] When the current area ratio is greater than the preset area threshold, increment N by 1 and return to execute the step: Obtain the Nth street view image including the reference object;

[0036] When the current area ratio is not greater than the preset area threshold, use the sum of the first preset distance and (N - 1) times the preset unit step length as the traffic prompt distance for the reference object.

[0037] As can be seen from the above, the method for determining the traffic prompt distance provided by the present disclosure obtains the initial street view image and the Nth street view image collected at different distances from the reference object, and matches them to obtain the target area corresponding to the initial street view image in the Nth street view image. When the area ratio of the target area in the Nth street view image is not greater than the preset area threshold, it can be considered that the reference object is no longer visible at the distance of the Nth street view image. At this time, use the distance of the (N - 1)th street view image as the traffic prompt distance for the reference object, and send a traffic prompt message to the user according to this traffic prompt distance, so that the user can fully understand the content of the traffic prompt message, thereby optimizing the use experience of map navigation.

[0038] The following uses specific embodiments to detail the method for determining the traffic prompt distance provided by the present disclosure.

[0039] The method of the embodiment of the present disclosure is applied to a smart terminal and can be implemented by the smart terminal. In actual use, the smart terminal can be a computer, a smart phone, etc.

[0040] See Figure 1 , Figure 1 is a flowchart of a method for determining the traffic prompt distance according to an embodiment of the present disclosure, including:

[0041] Step S11: Obtain the initial street view image collected at a first preset distance from the reference object.

[0042] The initial street view image includes the reference object.

[0043] The above reference object is a prompt object for which traffic prompt information needs to be sent to the user in map navigation. For example, landmark buildings, intersections, turning points, etc.

[0044] The first preset distance is the distance between the position where the collection device is located and the position where the reference object is located when collecting the initial street view image. In one example, the first preset distance can be the closest distance at which a complete image of the reference object can be collected. For example, if the reference object is a turning point, the first preset distance can be 10 meters. The collection device can be a shooting device, such as a camera, a video camera, etc.

[0045] An image including a reference object collected at a first preset distance from the reference object is the initial street view image.

[0046] In an embodiment of the present disclosure, the above-mentioned first preset distance makes the area ratio of the reference object in the initial street view image greater than a preset ratio threshold. The preset ratio threshold is a preset ratio value, so that the irrelevant street view other than the reference object in the initial street view image is as small as possible, and the initial street view image can present the situation of the reference object as much as possible.

[0047] Step S12: Obtain the Nth street view image including the reference object.

[0048] Wherein, the distance between the Nth street view image and the reference object is the sum of the first preset distance and N times the preset unit step length, and N is a positive integer with an initial value of 1.

[0049] After obtaining the initial street view image including the reference object, the position where the acquisition device is located gradually moves away from the position where the reference object is located, and multiple new street view images including the reference object at different distances are collected. The newly collected street view images are called the Nth street view image.

[0050] In an embodiment of the present disclosure, after obtaining the initial street view image including the reference object, the position where the first new street view image is collected is one times the preset unit step length farther from the reference object than the position where the initial street view image is collected. Therefore, the distance between the first new street view image and the reference object is the sum of the first preset distance and one times the preset unit step length; the position where the Nth new street view image is collected is N times the preset unit step length farther from the reference object than the position where the initial street view image is collected. Therefore, the distance between the Nth new street view image and the reference object is the sum of the first preset distance and N times the preset unit step length.

[0051] The above-mentioned preset unit step length is a preset interval distance, which can have a certain correlation with the first preset distance. For example, when the first preset distance is 10 meters, the value of the preset unit step length can be any positive integer not greater than 10, such as 1, 5, 10, etc.

[0052] Step S13: Match the initial street view image with the Nth street view image to obtain the target area corresponding to the initial street view image in the Nth street view image.

[0053] As mentioned above, both the initial street view image and the Nth street view image include a reference object. Since the distance between the initial street view image and the reference object is different from the distance between the Nth street view image and the reference object, the proportion of the area of the reference object in the initial street view image and the Nth street view image is different. Moreover, the distance of the initial street view image is less than the distance of the Nth street view image. Therefore, the proportion of the area of the reference object in the initial street view image is not less than its proportion in the Nth street view image. Thus, it can also be understood that the Nth street view image includes the initial street view image.

[0054] Match the initial street view image with the Nth street view image to obtain the target area in the Nth street view image corresponding to the initial street view image.

[0055] Step S14: Calculate the proportion of the area of the target area in the Nth street view image.

[0056] Step S15: Determine whether the current proportion of the area is greater than a preset area threshold. If it is greater, increase the value of N by 1 and return to execute Step S12; if it is not greater, execute Step S16.

[0057] The above preset area threshold is a pre-set value. For example, it can be 5%. When the proportion of the area of the target area in the Nth street view image is greater than the preset area threshold, it can be considered that the reference object is visible for the position where the Nth street view image is captured. Therefore, increase the value of N by 1 to obtain a new value of N, and re-acquire the Nth street view image including the reference object, then obtain the target area in the Nth street view image, and calculate the proportion of the area of this target area in the Nth street view image until the proportion of the area is not greater than the preset area threshold. At this time, it can be considered that the reference object is no longer visible for the position where the Nth street view image is captured.

[0058] In an embodiment of the present disclosure, the difference between the angle of the reference object in the initial street view image and the angle of the reference object in the Nth street view image is less than a preset angle threshold.

[0059] The preset angle threshold is a pre-set angle value to avoid a large angle difference, which may cause a deviation in the direction between the initial image and the Nth street view image.

[0060] Step S16: Use the sum of the first preset distance and (N - 1) times the preset unit step length as the traffic reminder distance for the reference object.

[0061] After determining that the reference object is no longer visible at the position where the Nth street view image was captured, it can be considered that the distance between the (N - 1)th street view image and the reference object is the farthest visible distance of the reference object. Then, the distance between the (N - 1)th street view image and the reference object is used as the traffic prompt distance for the reference object, that is, the sum of the first preset distance and (N - 1) times the preset unit step length is used as the traffic prompt distance for the reference object.

[0062] As can be seen from the above, the method for determining the traffic prompt distance provided by the present disclosure obtains the initial street view image and the Nth street view image captured at different distances from the reference object, and matches them to obtain the target area corresponding to the initial street view image in the Nth street view image. When the area ratio of the target area in the Nth street view image is not greater than the preset area threshold, it can be considered that the reference object is no longer visible at the distance of the Nth street view image. At this time, the distance of the (N - 1)th street view image is used as the traffic prompt distance for the reference object, and a traffic prompt message is sent to the user according to this traffic prompt distance, so that the user can fully understand the traffic prompt message, thereby optimizing the use experience of the map navigation.

[0063] In a possible implementation, referring to Figure 2a , the above step S13 matches the initial street view image with the Nth street view image to obtain the target area corresponding to the initial street view image in the Nth street view image, including:

[0064] Step S21: Extract the feature points of the initial street view image to obtain the initial feature points.

[0065] The initial feature points are used to represent the local features of the initial street view image, and can represent the position, angle, etc. of the reference object in the actual three-dimensional space in the initial street view image. The feature points of the initial street view image can be extracted using a feature point extraction algorithm, for example, the SIFT algorithm (Scale-invariant feature transform), Shi-Tomasi (corner detection), SURF (Speeded-Up Robust Features), etc.

[0066] Step S22: Based on the initial feature points, match the initial street view image with the Nth street view image to obtain the target feature points corresponding to the initial feature points in the Nth street view image.

[0067] After obtaining the initial feature points, matching the initial street view image with the Nth street view image can be to match the initial feature points with the feature points in the Nth street view image, and find the target feature points corresponding to the initial feature points among the feature points in the Nth street view image. As Figure 2b(1), 2b(2) As shown in FIGS. 2b(1) and 2b(3), FIG. 2b(1) shows an initial street view image with a stone lion and a background building as reference objects, FIG. 2b(2) shows the Nth street view image including the reference objects of the stone lion and the background building, and FIG. 2b(3) shows the partial part including the reference objects in FIG. 2b(2) (i.e., the part marked by the rectangular frame in FIG. 2b(2)) after being enlarged. Then, the feature points in the Nth street view image are matched with the initial feature points in the initial street view image to obtain a matching effect diagram of the target feature points corresponding to the initial feature points in the Nth street view image.

[0068] Step S23: Use the convex hull formed by the target feature points as the target area corresponding to the initial street view image in the Nth street view image.

[0069] After obtaining the target feature points corresponding to the initial feature points in the Nth street view image, a convex hull can be formed based on the target feature points, and the convex hull can be used as the target area corresponding to the initial street view image in the Nth street view image. In one example, forming a convex hull based on the target feature points can be implemented by the Graham algorithm.

[0070] As can be seen from the above, the method for determining the traffic prompt distance provided by the present disclosure can improve the accuracy of the target area and avoid errors easily generated in the process of determining the target area by matching the initial street view image with the Nth street view image, determining the target feature points corresponding to the initial feature points, and then using the convex hull formed by the target feature points as the target area corresponding to the initial street view image in the Nth street view image.

[0071] In an embodiment of the present disclosure, the above method further includes:

[0072] When the traffic prompt distance for the reference object is greater than a second preset distance threshold, when the distance between the user and the reference object is a third preset distance, a traffic prompt message for the reference object is sent to the user, where the second preset distance threshold and the third preset distance are both greater than the first preset distance.

[0073] As mentioned above, the traffic prompt distance for the reference object is the farthest visible distance of the reference object. When the traffic prompt distance for the reference object is greater than the second preset distance threshold, it can be considered that the field of view of the road section where the reference object is located is good and the reference object is easily visible to the human eye. Therefore, only when the distance between the user and the reference object is the third preset distance, a traffic prompt message for the reference object is sent to the user.

[0074] The above-mentioned second preset distance threshold is a preset distance value, which can be obtained through big data calculation. The above-mentioned third preset distance can be a preset distance value of the map navigation. When the distance between the user and the reference object is the third preset distance, a traffic prompt message for the reference object is sent to the user. For example, the third preset distance can be 100 meters, 50 meters, etc.

[0075] As can be seen from the above, in the method for determining the traffic prompt distance provided by the present disclosure, when the traffic prompt distance for the reference object is greater than the second preset distance threshold, it can be considered that the road section where the reference object is located has good visibility. At this time, only when the distance between the user and the reference object is the third preset distance, a traffic prompt message for the reference object is sent to the user, so that the sent traffic prompt messages are all effective messages that the user can understand in time, and the waste of resources caused by the issuance of unnecessary traffic prompt messages is avoided.

[0076] In an embodiment of the present disclosure, the above method further includes:

[0077] When the traffic prompt distance for the reference object is not greater than the second preset distance threshold, when the distance between the user and the reference object is the traffic prompt distance, a traffic prompt message for the reference object is sent to the user.

[0078] As mentioned above, the traffic prompt distance for the reference object is the farthest visible distance of the reference object. When the traffic prompt distance for the reference object is not greater than the second preset distance threshold, it can be considered that the road section where the reference object is located has poor visibility, and the reference object is not easily visible to the human eye. Therefore, when the distance between the user and the reference object is the traffic prompt distance, a traffic prompt message for the reference object needs to be sent to the user.

[0079] In one example, during the map navigation process, regardless of whether the reference object is easily visible to the human eye, a traffic prompt message for the reference object needs to be sent to the user when the distance between the user and the reference object is the third preset distance. Then, if the traffic prompt distance for the reference object is not greater than the second preset distance threshold, that is, when the reference object is not easily visible to the human eye, in addition to sending a traffic prompt message for the reference object to the user when the distance between the user and the reference object is the third preset distance, a traffic prompt message for the reference object also needs to be sent to the user again when the distance between the user and the reference object is the traffic prompt distance.

[0080] As can be seen from the above, for the method for determining the traffic prompt distance provided by the present disclosure, when the traffic prompt distance for the reference object is not greater than the second preset distance threshold, it can be considered that the visibility of the road section where the reference object is located is poor. At this time, when the distance between the user and the reference object is the traffic prompt distance, a traffic prompt message for the reference object is sent to the user again, so that the sent traffic prompt messages are all effective messages that the user can understand in time, and the situation where the user misses the traffic prompt message for the reference object is avoided, optimizing the experience of map navigation.

[0081] On the other hand, referring to Figure 3 , Figure 3 which is a schematic structural diagram of a device for determining a traffic prompt distance provided by the present disclosure, including:

[0082] A first image acquisition module 301, configured to acquire an initial street view image collected when the distance from the reference object is a first preset distance, where the initial street view image includes the reference object;

[0083] A second image acquisition module 302, configured to acquire an Nth street view image including the reference object, where the distance between the Nth street view image and the reference object is the sum of the first preset distance and N times the preset unit step length, and N is a positive integer with an initial value of 1;

[0084] An image matching module 303, configured to match the initial street view image with the Nth street view image to obtain a target area corresponding to the initial street view image in the Nth street view image;

[0085] An area calculation module 304, configured to calculate the area ratio of the target area in the Nth street view image;

[0086] An area determination module 305, configured to, when the current area ratio is greater than the preset area threshold, increment the value of N by 1, and return to execute the step of acquiring the Nth street view image including the reference object;

[0087] A distance determination module 306, configured to, when the current area ratio is not greater than the preset area threshold, use the sum of the first preset distance and (N - 1) times the preset unit step length as the traffic prompt distance for the reference object.

[0088] As can be seen from the above, the device for determining the traffic prompt distance provided by the present disclosure obtains the initial street view image and the Nth street view image collected at different distances from the reference object, and matches them to obtain the target area corresponding to the initial street view image in the Nth street view image. When the area ratio of the target area in the Nth street view image is not greater than the preset area threshold, it can be considered that the reference object is no longer visible at the distance of the Nth street view image. At this time, the distance of the (N - 1)th street view image is used as the traffic prompt distance for the reference object, and a traffic prompt message is sent to the user according to this traffic prompt distance, so that the user can fully understand the traffic prompt message, thereby optimizing the usage experience of map navigation.

[0089] In one embodiment of the present disclosure, the image matching module 303 is specifically configured to:

[0090] Extract the feature points of the initial street view image to obtain the initial feature points;

[0091] Based on the initial feature points, match the initial street view image with the Nth street view image to obtain the target feature points corresponding to the initial feature points in the Nth street view image;

[0092] Take the convex hull formed by the target feature points as the target area corresponding to the initial street view image in the Nth street view image.

[0093] As can be seen from the above, the device for determining the traffic prompt distance provided by the present disclosure matches the initial street view image with the Nth street view image, determines the target feature points corresponding to the initial feature points, and then takes the convex hull formed by the target feature points as the target area corresponding to the initial street view image in the Nth street view image, which can improve the accuracy of the target area and avoid the errors that are prone to occur in the process of determining the target area.

[0094] In one embodiment of the present disclosure, the above device further includes:

[0095] The first prompt message sending module is configured to send a traffic prompt message for the reference object to the user when the distance between the user and the reference object is the third preset distance when the traffic prompt distance for the reference object is greater than the second preset distance threshold, where the second preset distance threshold and the third preset distance are both greater than the first preset distance.

[0096] As can be seen from the above, for the device for determining the traffic prompt distance provided by the present disclosure, when the traffic prompt distance for the reference object is greater than the second preset distance threshold, it can be considered that the road section where the reference object is located has good visibility. At this time, only when the distance between the user and the reference object is the third preset distance, a traffic prompt message for the reference object is sent to the user, so that the sent traffic prompt messages are all effective messages that the user can understand in time, and the waste of resources caused by the issuance of unnecessary traffic prompt messages is avoided.

[0097] In one embodiment of the present disclosure, the above device further includes:

[0098] A second prompt message sending module, configured to, when the traffic prompt distance for the reference object is not greater than the second preset distance threshold, send a traffic prompt message for the reference object to the user when the distance between the user and the reference object is the traffic prompt distance.…

[0099] As can be seen from the above, for the device for determining the traffic prompt distance provided by the present disclosure, when the traffic prompt distance for the reference object is not greater than the second preset distance threshold, it can be considered that the road section where the reference object is located has poor visibility. At this time, when the distance between the user and the reference object is the traffic prompt distance, a traffic prompt message for the reference object is sent to the user again, so that the sent traffic prompt messages are all effective messages that the user can understand in time, and the user is prevented from missing the traffic prompt message for the reference object, optimizing the experience of map navigation.

[0100] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information and other processes all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.

[0101] According to the embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0102] Figure 4 FIG. shows a schematic block diagram of an exemplary electronic device 400 that can be used to implement the embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, for example, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, for example, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely exemplary and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0103] Such as Figure 4As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of device 400 can also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0104] Multiple components in device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a magnetic disk, optical disc, etc.; and a communication unit 409, such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows device 400 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0105] The computing unit 401 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 executes the various methods and processes described above, such as the method for determining a traffic prompt distance. For example, in some embodiments, the method for determining a traffic prompt distance can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed onto device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method for determining a traffic prompt distance described above can be executed. Alternatively, in other embodiments, the computing unit 401 can be configured to execute the method for determining a traffic prompt distance by any other appropriate means (e.g., by means of firmware).

[0106] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.

[0107] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

[0108] In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0109] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).

[0110] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), and the Internet.

[0111] A computer system can include a client and a server. The client and the server are generally far from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, can also be a server of a distributed system, or a server incorporating a blockchain.

[0112] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this is not limited herein.

[0113] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the protection scope of this disclosure.

Claims

1. A method for determining a traffic prompt distance, comprising: Obtaining an initial street view image collected when the distance from a reference object is a first preset distance, wherein the initial street view image includes the reference object; Obtaining an Nth street view image including the reference object, wherein the distance of the Nth street view image from the reference object is the sum of the first preset distance and N times a preset unit step length, and N is a positive integer with an initial value of 1; Matching the initial street view image with the Nth street view image to obtain a target area corresponding to the initial street view image in the Nth street view image; Calculating the area ratio of the target area in the Nth street view image; When the current area ratio is greater than a preset area threshold, increasing the value of N by 1, and returning to execute the step: obtaining the Nth street view image including the reference object; When the current area ratio is not greater than the preset area threshold, taking the sum of the first preset distance and (N - 1) times the preset unit step length as the traffic prompt distance for the reference object.

2. The method according to claim 1, wherein The matching the initial street view image with the Nth street view image to obtain a target area corresponding to the initial street view image in the Nth street view image includes: Extracting feature points of the initial street view image to obtain initial feature points; Based on the initial feature points, matching the initial street view image with the Nth street view image to obtain target feature points corresponding to the initial feature points in the Nth street view image; Taking the convex hull formed by the target feature points as the target area corresponding to the initial street view image in the Nth street view image.

3. The method according to claim 1, wherein, The method further includes: When the traffic prompt distance for the reference object is greater than a second preset distance threshold, when the distance between the user and the reference object is a third preset distance, sending a traffic prompt message for the reference object to the user, wherein both the second preset distance threshold and the third preset distance are greater than the first preset distance.

4. The method according to claim 1, wherein The method further includes: When the traffic prompt distance for the reference object is not greater than the second preset distance threshold, when the distance between the user and the reference object is the traffic prompt distance, sending a traffic prompt message for the reference object to the user.

5. The method according to claim 1, wherein The method further includes: The first preset distance makes the area ratio of the reference object in the initial street view image greater than a preset ratio threshold.

6. The method according to claim 1, wherein, The method further includes: The difference between the angle of the reference object in the initial street view image and the angle of the reference object in the Nth street view image is less than a preset angle threshold.

7. A device for determining a traffic prompt distance, comprising: A first image acquisition module, configured to obtain an initial street view image collected when the distance from a reference object is a first preset distance, wherein the initial street view image includes the reference object; A second image acquisition module, configured to obtain an Nth street view image including the reference object, wherein the distance of the Nth street view image from the reference object is the sum of the first preset distance and N times a preset unit step length, and N is a positive integer with an initial value of 1; An image matching module, configured to match the initial street view image with the Nth street view image to obtain a target area corresponding to the initial street view image in the Nth street view image; An area calculation module, configured to calculate the area ratio of the target area in the Nth street view image; An area judgment module, configured to, when the current area ratio is greater than a preset area threshold, increment the value of N by 1, and return to execute the step of obtaining the Nth street view image including the reference object; A distance determination module, configured to, when the current area ratio is not greater than the preset area threshold, use the sum of the first preset distance and (N - 1) times the preset unit step length as the traffic reminder distance for the reference object.

8. The apparatus according to claim 7, wherein The image matching module is specifically configured to: Extract feature points of the initial street view image to obtain initial feature points; Based on the initial feature points, match the initial street view image with the Nth street view image to obtain target feature points corresponding to the initial feature points in the Nth street view image; Use the convex hull formed by the target feature points as the target area corresponding to the initial street view image in the Nth street view image.

9. The apparatus according to claim 7, wherein, The apparatus further includes: A first prompt information sending module, configured to, when the traffic reminder distance for the reference object is greater than a second preset distance threshold and the distance between the user and the reference object is a third preset distance, send traffic reminder information for the reference object to the user, where the second preset distance threshold and the third preset distance are both greater than the first preset distance.

10. The apparatus according to claim 7, wherein, The apparatus further includes: A second prompt information sending module, configured to, when the traffic reminder distance for the reference object is not greater than the second preset distance threshold and the distance between the user and the reference object is the traffic reminder distance, send traffic reminder information for the reference object to the user.

11. An electronic device, comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the method according to any one of claims 1 - 6.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to execute the method according to any one of claims 1 - 6.

13. A computer program product, comprising a computer program, where the computer program, when executed by a processor, implements the method according to any one of claims 1 - 6.

Citation Information

Patent Citations

  • Traffic sign detection method and apparatus

    CN106709412A

  • Navigation method and device, wearable electronic equipment and computer readable storage medium

    CN110686694A