Method, device, equipment and storage medium for outputting information
By processing bus stop sign images to obtain bus route and operation information, it solves the existing complex problem of obtaining bus operation information and achieves real-time information acquisition and user experience improvement.
Patent Information
- Application Number
- CN202011313842.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-11-20
AI Technical Summary
The existing method of obtaining bus operation information is complicated. Users need to enter the route name and station in a map application or mini program, which is not intuitive and convenient enough to obtain information.
By obtaining the target image, process it to determine the relevant information of the bus line, obtain the bus operation information based on this information, and output real-time operation information.
Real-time acquisition of bus operation information is achieved, simplifying the user operation process and improving user experience.
Smart Images

Figure CN112434697B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to the field of intelligent transportation technology, and in particular to a method, device, equipment and storage medium for outputting information. Background Art
[0002] With the continuous development of urban economy, the city scale continues to expand, the population grows rapidly, the travel pressure of citizens continues to increase, and traffic problems become increasingly prominent. As a key support and priority development area, urban public transportation is an effective way to alleviate traffic load. By applying intelligent technology to urban public transportation, the level of public transportation service can be effectively improved, the government's regulatory capabilities can be enhanced, and the efficiency of public transportation operations can be improved.
[0003] Most of the existing bus operation information requires users to enter the route name and station of interest in a map application or mini-program to query the bus operation information, and the acquisition method is relatively complicated. Summary of the invention
[0004] Provided are a method, apparatus, device and storage medium for outputting information.
[0005] According to a first aspect, a method for outputting information is provided, comprising: acquiring a target image; processing the target image to determine relevant information of a target bus line; acquiring operation information of buses on the target bus line based on the relevant information; and outputting the operation information.
[0006] According to a second aspect, a device for outputting information is provided, comprising: an image acquisition unit, configured to acquire a target image; an information determination unit, configured to process the target image and determine relevant information of a target bus line; an information acquisition unit, configured to acquire operation information of buses on the target bus line based on the relevant information; and a first information output unit, configured to output the operation information.
[0007] According to a third aspect, an electronic device for outputting information is provided, 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 the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect.
[0008] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method as described in the first aspect.
[0009] The technology of the present application solves the problem of complex acquisition of existing bus operation information. Real-time bus operation information can be obtained by processing images without complicated operations, thereby improving user experience.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended 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
[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0012] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
[0013] Figure 2 is a flow chart of an embodiment of a method for outputting information according to the present application;
[0014] Figure 3 is a schematic diagram of an application scenario of the method for outputting information according to the present application;
[0015] Figure 4 is a flow chart of another embodiment of a method for outputting information according to the present application;
[0016] Figure 5 is a schematic structural diagram of an embodiment of a device for outputting information according to the present application;
[0017] Figure 6 It is a block diagram of an electronic device used to implement the method for outputting information in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0019] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0020] Figure 1An exemplary system architecture 100 is shown to which embodiments of the method for outputting information or the apparatus for outputting information of the present application can be applied.
[0021] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0022] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. For example, the user can use the camera on the terminal devices 101, 102, 103 to capture an image of a bus stop sign and send it to the server 105. The terminal devices 101, 102, 103 can be installed with various communication client applications, such as map applications, navigation applications, etc.
[0023] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices, including but not limited to smart phones, tablet computers, e-book readers, car computers, laptop computers, desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0024] The server 105 may be a server that provides various services, such as a background server that processes images sent by the terminal devices 101, 102, and 103. The background server may identify relevant information about bus routes in the image, obtain bus operation information based on the relevant information, and feed the operation information back to the terminal devices 101, 102, and 103.
[0025] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 105 is software, it can be implemented as multiple software or software modules (for example, for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0026] It should be noted that the method for outputting information provided in the embodiment of the present application can be executed by the terminal devices 101, 102, 103, or by the server 105. Accordingly, the device for outputting information can be set in the terminal devices 101, 102, 103, or in the server 105.
[0027] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0028] Continue to refer Figure 2 , shows a process 200 of an embodiment of a method for outputting information according to the present application. The method for outputting information in this embodiment includes the following steps:
[0029] Step 201, obtaining a target image.
[0030] In this embodiment, the execution subject of the method for outputting information (for example Figure 1 The terminal devices 101, 102, 103 or the server 105 shown in the figure can obtain the target image in various ways. For example, the execution subject can collect the target image through the camera installed on the mobile phone used by the user. Alternatively, the target image taken by the user is obtained through the network. Here, the target image may include information about the bus line, specifically, the bus line logo, station name, and travel direction. The bus line logo can be a number (for example, 101), a combination of numbers and Chinese characters (for example, Yun 23), a combination of letters and numbers (for example, K51), and so on. The station name can be the name of all the stations that the bus passes. The travel direction can be information that can indicate the direction of the bus (for example, heading to XX station, or XX station → XX station).
[0031] Step 202: Process the target image to determine relevant information of the target bus line.
[0032] After acquiring the target image, the execution subject may process the target image to obtain relevant information of the target bus line. The processing here may include but is not limited to: segmentation, text recognition, etc. The target bus line may be a bus line included in the target image, or a bus line selected by a user, etc. The relevant information may include relevant information of the bus, for example, it may include bus line logo, station name, driving direction, driving route, etc. Specifically, the execution subject may first identify the number in the target image and use it as the bus line logo. Then, optical text recognition is performed on the target image to obtain the station name or driving direction.
[0033] Step 203: Obtain the operation information of the buses on the target bus line according to the relevant information.
[0034] After determining the relevant information of the target bus line, the executing entity can obtain the operation information of the buses on the target bus line. Specifically, the executing entity can send the above relevant information to a third-party server, where the third-party server can be a server for managing relevant information of buses. The executing entity can query multiple buses corresponding to the target bus line from the third-party server and then obtain their operation information. Here, the operation information can include information such as the departure time, current location, and driving speed of the bus.
[0035] Step 204: output operation information.
[0036] After acquiring the above operation information, the execution subject may output the operation information. If the execution subject is a terminal device, the above operation information may be output to a connected display screen for the user to view. If the execution subject is a server, the above operation information may be output to the terminal used by the user.
[0037] Continue to see Figure 3 , which shows a schematic diagram of an application scenario of the method for outputting information according to the present application. Figure 3 In the application scenario, a user takes a photo of the bus stop sign 301 with a mobile phone at a bus stop. The mobile phone analyzes the image 301 and determines that the bus route is 924, the current stop is "Fuheyuan Community", and the driving direction is "Tuqiao Village → Nancai Bus Station". Then, the driving position and driving speed of each bus on Route 924 are obtained from the bus company's server. Finally, the driving position of each bus is displayed on the user's mobile phone (as shown in 302).
[0038] The method for outputting information provided by the above-mentioned embodiment of the present application can obtain real-time operation information of the bus by processing the image, without the need for cumbersome operations, thereby improving the user experience.
[0039] Continue to see Figure 4 , which shows a process 400 of another embodiment of the method for outputting information according to the present application. Figure 4 As shown, the method of this embodiment may include the following steps:
[0040] Step 401, acquiring a target image.
[0041] After acquiring the target image, the execution subject can use the existing text recognition algorithm to perform text recognition on the target image to determine the relevant information of the target bus route.
[0042] In this embodiment, the execution entity may determine the relevant information of the target bus line through step 402 .
[0043] Step 402: Perform text recognition on at least one preset area of the target image according to the target image and a preset template to obtain a recognition result.
[0044] The execution subject can obtain the template of the bus stop in advance, which marks the area where the bus line sign is located, the area where the current station is located, and the area where the travel direction is located. The execution subject compares the acquired target image with the template to determine which part of the target image is the area where the bus line sign is located, which part is the area where the current station is located, which part is the area where the travel direction is located, etc. Then, text recognition is performed on the above areas to obtain recognition results.
[0045] Step 403, in response to determining that one of the recognition results is an uncertain item, confirming the uncertain item according to the determined item in the relevant information and the pre-acquired bus route information set.
[0046] After obtaining the recognition result, the execution subject can determine whether there are uncertain items in the recognition result. If one of the items is determined to be an uncertain item, the uncertain item can be confirmed based on the determined items in the recognition result and the pre-acquired bus line information set. Here, the pre-acquired bus line information set may include various information about the bus line. For example, if the execution subject determines that the bus line logo is an uncertain item, and the current station and the direction of travel are both determined items, the bus line logo that matches the current station and the direction of travel can be queried in the pre-acquired bus line information set. Then, the queried bus line logo is compared with the bus line logo in the recognition result to determine the actual bus line logo.
[0047] In some optional implementations of this embodiment, the execution subject can Figure 4 The following steps not shown in the figure determine whether each item in the recognition result is an uncertain item: based on the target image and the preset template, text recognition is performed on at least one preset area of the target image to determine the confidence level corresponding to each item in the recognition result; in response to determining that the confidence level is less than a preset threshold, the item is determined to be an uncertain item.
[0048] In this implementation, the execution subject can determine the confidence level corresponding to each item in the recognition result when performing text recognition on each preset area of the target image. If the confidence level is greater than a preset threshold, the reliability of the item is considered to be high. If the confidence level is less than the preset threshold, the item is considered to be uncertain.
[0049] Step 404, determining relevant information based on the confirmed items.
[0050] The executing entity can determine the relevant information based on the confirmed items.
[0051] Step 405: in response to determining that the target image includes relevant information of at least two bus routes, output a route selection interface; in response to detecting a selection instruction from the user on the route selection interface, determine that the relevant information of the bus route indicated by the selection instruction is relevant information of the target bus route.
[0052] In this embodiment, after the execution subject completes processing of the target image, if it is determined that the target image includes relevant information of at least two bus routes, a route selection interface may be output. The route selection interface may include the identification of at least two bus routes identified by the execution subject. The user can select one of them as the target bus route by operating the route selection interface. For example, the user can send a selection instruction by clicking on one of the bus routes in the route selection interface, or send a selection instruction by staring at one of the bus routes in the route selection interface. After receiving the selection instruction, the relevant information of the bus route indicated by the selection instruction can be used as the relevant information of the target bus route.
[0053] Step 406, obtaining user location information.
[0054] In this embodiment, the execution subject may also obtain user location information. Here, the user location information may be location information when the target image is captured. The execution subject may determine the user location information by analyzing the target image.
[0055] Step 407, in response to determining that the user location information matches the relevant information, obtaining operation information from the third-party server according to the relevant information.
[0056] After obtaining the user's location information, the execution entity can determine whether it matches the relevant information of the target bus line. Here, matching means that the distance between the user's location information and the location information of the current station in the relevant information is less than a preset threshold. If it matches, the execution entity can obtain operation information from the third-party server based on the relevant information.
[0057] Step 408, in response to determining that the user location information does not match the relevant information, obtain a bus stop that matches the user location information; and output relevant information of the bus line of the bus stop obtained through matching.
[0058] If the execution subject determines that the user location information does not match the relevant information, the bus stop that matches the user location information can be obtained. Then, the bus route of the bus stop obtained through matching is determined, and the relevant information of these bus routes is output.
[0059] Step 409: Dynamically display the operation information.
[0060] After obtaining the operation information, the execution subject can dynamically display the operation information. The dynamic display here can be understood as real-time update of the bus's location, driving speed and other information, or can be understood as updating the prompt information output to the user based on the real-time location of the bus. For example, the dynamic display is "X minutes and X seconds to arrive at the station".
[0061] In some optional implementations of this embodiment, the above method may further include: Figure 4 The following steps not shown in the figure: obtaining traffic information around the driving route of the bus line; displaying the traffic information and the driving route on a map.
[0062] In this implementation, the execution entity can also obtain the traffic information around the driving route of the bus line. For example, the traffic information of each road section within 2km around the driving route is obtained. The traffic information can reflect the congestion of the road section. If it is unobstructed, it will be displayed in green. If it is congested, it will be displayed in red. If the congestion is serious, it will be displayed in dark red. Then, the above traffic information and driving route information are displayed on the map at the same time. This can help users to more intuitively judge whether the bus is congested, so as to make better use of waiting time.
[0063] In some specific applications, the driving route can be displayed on the upper layer of the traffic information, and the layer where the traffic information is located is displayed in a semi-transparent state, which can improve the user's viewing experience.
[0064] In some specific applications, the execution entity may also dynamically display the location of the bus on the above-mentioned driving route.
[0065] The method for outputting information provided by the above-mentioned embodiments of the present application can accurately identify relevant information of bus routes by comparing with templates; it can also confirm uncertain items through certain items in the identification results to improve accuracy; it can dynamically display operation information to improve the user's browsing experience; it can also display surrounding road conditions information to facilitate users to plan their time reasonably.
[0066] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a device for outputting information, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0067] like Figure 5 As shown, the device 500 for outputting information in this embodiment includes: an image acquiring unit 501 , an information determining unit 502 , an information acquiring unit 503 and a first information output unit 504 .
[0068] The image acquisition unit 501 is configured to acquire a target image.
[0069] The information determination unit 502 is configured to process the target image and determine relevant information of the target bus line.
[0070] The information acquisition unit 503 is configured to acquire the operation information of the buses on the target bus line according to the relevant information.
[0071] The first information output unit 504 is configured to output operation information.
[0072] In some optional implementations of this embodiment, the information determination unit 502 may be further configured to: perform text recognition on the target image to determine relevant information of the target bus line.
[0073] In some optional implementations of this embodiment, the information determination unit 502 may be further configured to: perform text recognition on at least one preset area of the target image according to the target image and a preset template to determine relevant information of the target bus line.
[0074] In some optional implementations of this embodiment, the information determination unit 502 can be further configured to: perform text recognition on at least one preset area of the target image based on the target image and a preset template to obtain a recognition result; in response to determining that one item in the recognition result is an uncertain item, confirm the uncertain item based on the determined items in the relevant information and a pre-acquired bus route information set; and determine the relevant information based on the confirmed items.
[0075] In some optional implementations of this embodiment, the information determination unit 502 can be further configured to: perform text recognition on at least one preset area of the target image based on the target image and a preset template, and determine the confidence corresponding to each item in the recognition result; in response to determining that the confidence is less than a preset threshold, determine that the item is an uncertain item.
[0076] In some optional implementations of this embodiment, the information acquisition unit 503 can be further configured to: in response to determining that the target image includes relevant information of at least two bus routes, output a route selection interface; in response to receiving a user's selection instruction for the route selection interface, determine that the relevant information of the bus route indicated by the selection instruction is the relevant information of the target bus route.
[0077] In some optional implementations of this embodiment, the information output unit 504 may be further configured to: dynamically display the operation information.
[0078] In some optional implementations of this embodiment, the apparatus 500 may further include: Figure 5 The information display unit not shown in the figure is configured to: obtain traffic information around the driving route of the bus line; and display the traffic information and the driving route on a map.
[0079] In some optional implementations of this embodiment, the information acquisition unit 503 may be further configured to: acquire user location information; in response to determining that the user location information matches the relevant information, acquire operation information from a third-party server based on the relevant information.
[0080] In some optional implementations of this embodiment, the apparatus 500 may further include: Figure 5 The second information output unit not shown in the figure is configured to: in response to determining that the user location information does not match the relevant information, obtain a bus stop that matches the user location information; and output relevant information about the bus line of the bus stop obtained through matching.
[0081] It should be understood that the units 501 to 504 described in the apparatus 500 for outputting information are respectively the same as those described in reference Figure 2 Therefore, the operations and features described above for the method for outputting information are also applicable to the device 500 and the units included therein, and will not be described in detail here.
[0082] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0083] like Figure 6 , is a block diagram of an electronic device for executing a method for outputting information according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0084] like Figure 6As shown, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.
[0085] The memory 602 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the method for outputting information provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the method for outputting information provided in the present application.
[0086] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method for outputting information in the embodiment of the present application (for example, the attached Figure 5 The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 602, that is, implements the method for outputting information in the above method embodiment.
[0087] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of an electronic device for outputting information, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the electronic device for outputting information via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0088] The electronic device executing the method for outputting information may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0089] The input device 603 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device for outputting information, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch screen.
[0090] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0091] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0092] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types 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, voice input, or tactile input).
[0093] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0094] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0095] According to the technical solution of the embodiment of the present application, real-time operation information of the bus can be obtained by processing the image without the need for cumbersome operations, thereby improving the user experience.
[0096] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0097] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art 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 application should be included in the protection scope of this application.
Claims
1. A method for outputting information, comprising: Get the target image; Processing the target image to determine relevant information of the target bus route; According to the relevant information, obtaining the operation information of the buses on the target bus line; Outputting the operation information; The step of processing the target image to determine relevant information of the target bus route includes: According to the target image and a preset template, text recognition is performed on at least one preset area of the target image to obtain a recognition result, wherein the template includes: an area where a bus line sign is located, an area where a current station is located, and an area where a travel direction is located; In response to determining that one of the recognition results is an uncertain item, confirming the uncertain item according to the determined item in the relevant information and the pre-acquired bus route information set, wherein the uncertain item is an item in the recognition result whose confidence is less than a preset threshold; Determine the relevant information according to the confirmed items, wherein the relevant information includes the driving route; Wherein, the method further comprises: The driving route is displayed on an upper layer of traffic information around the driving route, wherein the layer where the traffic information is located is displayed in a semi-transparent state.
2. The method according to claim 1, wherein: Also includes: Determining the confidence level corresponding to each item in the recognition result; In response to determining that the confidence level is less than a preset threshold, the item is determined to be an uncertain item.
3. The method according to claim 1, wherein: The processing of the target image to determine the relevant information of the target bus route includes: In response to determining that the target image includes relevant information of at least two bus routes, outputting a route selection interface; In response to receiving a selection instruction from a user for the route selection interface, the relevant information of the bus route indicated by the selection instruction is determined as the relevant information of the target bus route.
4. The method according to claim 1, wherein: The outputting the operation information includes: The operation information is dynamically displayed.
5. The method according to claim 1, wherein: The method further comprises: Obtaining traffic information around the travel route of the bus line; The traffic information and the driving route are displayed on a map.
6. The method according to claim 1, wherein: The step of obtaining the operation information of the bus on the target bus line according to the relevant information includes: Get user location information; In response to determining that the user location information matches the relevant information, the operation information is obtained from a third-party server based on the relevant information.
7. The method according to claim 6, wherein: The method further comprises: In response to determining that the user location information does not match the relevant information, obtaining a bus stop that matches the user location information; Output the relevant information of the bus routes of the matched bus stops.
8. A device for outputting information, comprising: An image acquisition unit, configured to acquire a target image; an information determination unit, configured to process the target image and determine relevant information of the target bus route; An information acquisition unit, configured to acquire operation information of buses on the target bus line according to the relevant information; A first information output unit, configured to output the operation information; Wherein, the information determination unit is further configured to: According to the target image and a preset template, text recognition is performed on at least one preset area of the target image to obtain a recognition result, wherein the template includes: an area where a bus line sign is located, an area where a current station is located, and an area where a travel direction is located; In response to determining that one of the recognition results is an uncertain item, confirming the uncertain item according to the determined item in the relevant information and the pre-acquired bus route information set, wherein the uncertain item is an item in the recognition result whose confidence is less than a preset threshold; Determine the relevant information according to the confirmed items, wherein the relevant information includes the driving route; Wherein, the device further comprises: The traffic condition display module is configured to display the driving route on an upper layer of traffic condition information around the driving route, wherein the layer where the traffic condition information is located is displayed in a semi-transparent state.
9. The device according to claim 8, wherein: The device also includes: A confidence determination unit, configured to determine the confidence corresponding to each item in the recognition result; The uncertain item determination unit is configured to determine that the item is an uncertain item in response to determining that the confidence level is less than a preset threshold.
10. The device according to claim 8, wherein: The information acquisition unit is further configured to: In response to determining that the target image includes relevant information of at least two bus routes, outputting a route selection interface; In response to receiving a selection instruction from a user for the route selection interface, the relevant information of the bus route indicated by the selection instruction is determined as the relevant information of the target bus route.
11. The device according to claim 8, wherein: The information output unit is further configured to: The operation information is dynamically displayed.
12. The device according to claim 8, wherein: The device further comprises an information display unit configured to: Obtaining traffic information around the travel route of the bus line; The traffic information and the driving route are displayed on a map.
13. The device according to claim 8, wherein: The information acquisition unit is further configured to: Get user location information; In response to determining that the user location information matches the relevant information, the operation information is obtained from a third-party server based on the relevant information.
14. The device according to claim 13, wherein: The device further includes a second information output unit configured to: In response to determining that the user location information does not match the relevant information, obtaining a bus stop that matches the user location information; Output the relevant information of the bus routes of the matched bus stops.
15. An electronic device for outputting information, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method of any one of claims 1 to 7.
Citation Information
Patent Citations
Bus information inquiring and feedback method, mobile terminal and server
CN104361024A
Bus information processing method and mobile terminal
CN108920572A
Method and a system for quickly obtaining the information of a merchant near a bus stop
CN109523312A
Systems and methods for route planning
US20190120639A1
Public bus route query method, device, and equipment
WO2015180453A1
