INFORMATION DETECTION METHOD AND MOBILE DEVICE

DE602017088603T2Active Publication Date: 2025-03-26HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE602017088603
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2017-12-21
Publication Date
2025-03-26
Estimated Expiration
2037-12-21

AI Technical Summary

Technical Problem

Existing self-driving systems use a general detection model for signal light status detection across all locations, leading to low accuracy and requiring manual recognition of signal light statuses in numerous pictures, which is inefficient and labor-intensive.

Method used

A method where a mobile device uses a detection model specifically trained for each intersection, with automatic recognition of signal light statuses and the server generating a detection model based on local data, improving accuracy and reducing manual input.

Benefits of technology

Enhances the correctness percentage of signal light status detection by using location-specific models, reducing manual labor and improving detection efficiency.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of terminal technologies, and in particular, to an information detection method, a mobile device and a server.BACKGROUND

[0002] In the field of vehicle self-driving, detection accuracy of a signal light status is of great significance to legality, regulation compliance, and safe driving of a vehicle. In an existing self-driving system in the industry, a machine learning method (for example, a deep learning method) is usually used to detect a signal light status. A process of detecting a signal light status by using a machine learning method is generally as follows: First, a device needs to collect a large quantity of signal light pictures, for example, collect 100 signal light pictures of an intersection 1, collect 100 signal light pictures of an intersection 2, and collect 100 signal light pictures of an intersection 3. In addition, signal light statuses in the 300 signal light pictures need to be input into the device, that is, colors and shapes of turned-on signal lights are input. The device performs training and learning by using the 300 signal light pictures and a signal light status in each signal light picture, to obtain a detection model. When a mobile device photographs a new signal light picture, the new signal light picture is input into the detection model, so that a signal light status in the signal light picture can be detected, that is, a color and a shape of a turned-on signal light in the signal light picture can be detected.

[0003] However, in the prior art, a same detection model is used for signal light detection in all places, resulting in a comparatively low correctness percentage in detection of a signal light status by a mobile device.

[0004] JOHN VIJAY ET AL: "Saliency Map Generation by the Convolutional Neural Network for Real-Time Traffic Light Detection Using Template Matching", IEEE TRANSACTIONS ON COMPUTATIONAL IMAGING, IEEE, vol. 1, no. 3, 1 September 2015 (2015-09-01), pages 159-173, relates to saliency map generation by the convolutional neural network for real-time traffic light detection using template matching.

[0005] US 2015 / 179088 A1 (RAMAN TIRUVILWAMALAI VENKATRAMAN [US] ET AL) 25 June 2015.

[0006] US 2014 / 185880 A1 (FAIRFIELD NATHANIEL [US] ET AL) 3 July 2014.SUMMARY

[0007] Implementations of the present disclosure disclose an information detection method, a mobile device and a server, to help improve a correctness percentage in detection of a signal light status by the mobile device.

[0008] The invention has been defined in the independent claims. Further specific technical features have been defined in the dependent claims.

[0009] In the prior art, a mobile device detects a signal light status in a picture by using a general model. The general model is obtained through training based on signal light pictures of a plurality of intersections. Therefore, the general model is not well targeted, and it is not very accurate to detect a signal light status of an intersection by using the general model. In the method described in the first aspect, the signal light status of the first intersection is detected by using the detection model corresponding to the first intersection. The detection model corresponding to the first intersection is obtained through training based on the plurality of signal light pictures of the first intersection, and is not obtained through training with reference to a signal light picture of another intersection. Therefore, the detection model corresponding to the first intersection can better fit a signal light feature of the first intersection, thereby improving a correctness percentage in detection of the signal light status of the first intersection.

[0010] In addition, in the prior art, when the general model is obtained through training based on signal light pictures, signal light statuses in the pictures are manually recognized, and the recognized signal light statuses are input into the device. Obtaining the general model through training requires a large quantity of pictures. Therefore, signal light statuses in the large quantity of pictures need to be manually recognized and input. This consumes a lot of manpower and is very unintelligent. In implementation of the method described in the first aspect, when the detection model corresponding to the first intersection is obtained through training based on the signal light pictures corresponding to the first intersection, the signal light statuses in the signal light pictures corresponding to the first intersection are automatically recognized by using the general model (that is, an existing model). Signal light statuses in a large quantity of pictures do not need to be manually recognized and input. The signal light statuses in the signal light pictures of the first intersection can be obtained more intelligently and conveniently. Therefore, the detection model corresponding to the first intersection can be obtained through training more quickly.

[0011] In an implementation, the mobile device automatically identifies the signal light statuses in the signal light pictures of the first intersection by using the general model (that is, the existing model). Therefore, signal light statuses in a large quantity of pictures do not need to be manually recognized and input, and the signal light statuses in the signal light pictures of the first intersection can be more intelligently and conveniently obtained. In addition, the mobile device can send the signal light pictures of the first intersection and the signal light statuses in the signal light pictures of the first intersection to the server, so that the server generates, based on the signal light pictures of the first intersection and the signal light statuses in the signal light pictures of the first intersection, the detection model corresponding to the first intersection.

[0012] The mobile device receives the first detection model from the server, to detect the signal light status of the first intersection by using the first detection model.

[0013] In an implementation, the mobile device uploads, to the server, a signal light picture photographed in the first direction of the first intersection and a corresponding detection result, so that the server can obtain, through training based on the received signal light picture and the corresponding detection result, the detection model corresponding to the first intersection and the first direction. The detection model corresponding to the first intersection and the first direction can better fit a feature of the signal light picture photographed in the first direction of the first intersection, thereby improving a correctness percentage in detection of a signal light status in the signal light picture photographed in the first direction of the first intersection.

[0014] In an implementation, the mobile device obtains the first detection model from the server, to detect, by using the first detection model, the signal light status in the signal light picture photographed in the first direction of the first intersection.

[0015] In an implementation, the mobile device uploads, to the server, the signal light picture photographed on the first lane in the first direction of the first intersection and a corresponding detection result, so that the server can obtain, through training based on the received signal light picture and the corresponding detection result, the detection model corresponding to the first intersection, the first direction, and the first lane. The detection model corresponding to the first intersection, the first direction, and the first lane can better fit a feature of the signal light picture photographed on the first lane in the first direction of the first intersection, thereby improving a correctness percentage in detection of a signal light status in the signal light picture photographed on the first lane in the first direction of the first intersection.

[0016] In an implementation, the mobile device obtains the first detection model from the server, to detect, by using the first detection model, the signal light status in the signal light picture photographed on the first lane in the first direction of the first intersection.

[0017] In an implementation, the server generates, based on only signal light pictures of the first intersection and signal light statuses in the signal light pictures of the first intersection, the detection model corresponding to the first intersection, instead of obtaining, through training by using a signal light picture of another intersection, the detection model corresponding to the first intersection. In this way, the generated detection model corresponding to the first intersection can better fit a signal light feature of the first intersection, thereby improving a correctness percentage in detection of the signal light status of the first intersection.

[0018] In an implementation, the server broadcasts the first detection model to the mobile device when the mobile device is within a preset range of the first intersection.

[0019] In an implementation, the server obtains, through training based on the received signal light picture and the corresponding detection result, the detection model corresponding to the first intersection and the first direction. The detection model corresponding to the first intersection and the first direction can better fit a feature of a signal light picture photographed in the first direction of the first intersection, thereby improving a correctness percentage in detection of the signal light status in the signal light picture photographed in the first direction of the first intersection.

[0020] In an implementation, the server obtains, through training based on the received signal light picture and the corresponding detection result, the detection model corresponding to the first intersection, the first direction, and the first lane. The detection model corresponding to the first intersection, the first direction, and the first lane can better fit a feature of a signal light picture photographed on the first lane in the first direction of the first intersection, thereby improving a correctness percentage in detection of the signal light status in the signal light picture photographed on the first lane in the first direction of the first intersection.BRIEF DESCRIPTION OF DRAWINGS

[0021] FIG. 1 is a schematic diagram of a communications system according to an implementation of the present disclosure; FIG. 2 is a schematic flowchart of an information detection method according to an implementation of the present disclosure; FIG. 3 is a schematic diagram of a deep learning network according to an implementation of the present disclosure; FIG. 4 is a schematic flowchart of an information detection method according to an implementation of the present disclosure; FIG. 5 is a schematic diagram of obtaining a detection model through training according to an implementation of the present disclosure; FIG. 6 is a schematic diagram of obtaining a detection model through training according to an implementation of the present disclosure; FIG. 7 is a schematic diagram of obtaining a detection model through training according to an implementation of the present disclosure; FIG. 8 is a schematic flowchart of an information detection method according to an implementation of the present disclosure; FIG. 9 is a schematic flowchart of an information detection method according to an implementation of the present disclosure; FIG. 10 is a schematic flowchart of an information detection method according to an implementation of the present disclosure; FIG. 11 is a schematic structural diagram of a mobile device according to an implementation of the present disclosure; FIG. 12 is a schematic structural diagram of a server according to an implementation of the present disclosure; FIG. 13 is a schematic structural diagram of a mobile device according to an implementation of the present disclosure; FIG. 14 is a schematic structural diagram of a server according to an implementation of the present disclosure. DESCRIPTION OF IMPLEMENTATIONS

[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the following further describes various implementations in detail with reference to the accompanying drawings. The implementations described below are not all claimed, they are included to help understanding the context of the invention. While the description refers to various implementations, the embodiments of the invention are those which comprise at least all the features of an independent claim. Any implementation which does not fall within the scope of the claims does not form part of the invention, but rather included as an illustrative example that is useful for understanding the invention.

[0023] The implementations of this application provide an information detection method, a mobile device and a server, to help improve a correctness percentage in detection of a signal light status by the mobile device.

[0024] For better understanding of the implementations of this application, the following describes a communications system to which the implementations of this application are applicable.

[0025] FIG. 1 is a schematic diagram of a communications system according to an implementation of this application. As shown in FIG. 1, the communications system includes a mobile device and a server. Wireless communication may be performed between the mobile device and the server.

[0026] The mobile device may be a device, such as an automobile (for example, a self-driving vehicle or a person-driving vehicle) or an in-vehicle device, that needs to identify a signal light status. The signal light is a traffic signal light.

[0027] The server is configured to generate a detection model corresponding to an intersection, and the detection model is used by the mobile device to detect a signal light status at the intersection.

[0028] The following describes details of the information detection method and the mobile device provided in this application.

[0029] FIG. 2 is a schematic flowchart of an information detection method according to an implementation of this application. As shown in FIG. 2, the information detection method includes the following 201 and 202.

[0030] 201. A mobile device photographs a first picture.

[0031] The first picture includes a signal light at a first intersection. The first intersection may be any intersection. The signal light is a traffic signal light.

[0032] Optionally, the first picture may be a picture directly photographed by the mobile device, or the first picture may be a frame picture in video data photographed by the mobile device.

[0033] Optionally, the mobile device may photograph the first picture when the mobile device is within a preset range of the first intersection.

[0034] Specifically, the mobile device photographs the first picture by using a photographing apparatus of the mobile device. The photographing apparatus may be a camera or the like.

[0035] 202. The mobile device detects a signal light status in the first picture by using a first detection model.

[0036] That the mobile device detects the signal light status in the first picture by using the first detection model may be: the mobile device detects a color and a shape of a turned-on signal light in the first picture by using the first detection model. The color of the turned-on signal light may be red, green, or yellow. The shape of the turned-on signal light may be a circle, an arrow pointing to the left, an arrow pointing to the right, an arrow pointing upwards, an arrow pointing downwards, or the like.

[0037] The first detection model is a detection model corresponding to the first intersection. The first detection model is obtained by the server through training based on signal light pictures corresponding to the first intersection and signal light statuses in the signal light pictures. The signal light statuses in the signal light pictures are obtained through detection by using a general model. The general model is obtained through training based on pictures in a first set and a signal light status in each picture in the first set. The first set includes signal light pictures of a plurality of intersections.

[0038] The signal light picture corresponding to the first intersection is a picture including a signal light at the first intersection. The first intersection may correspond to one or more signal light pictures. For example, the server may obtain the first detection model through training based on 100 signal light pictures corresponding to the first intersection and signal light statuses in the 100 signal light pictures. In other words, the server obtains the first detection model through training based on only the signal light pictures corresponding to the first intersection and the signal light statuses in the signal light pictures corresponding to the first intersection, instead of obtaining the first detection model through training based on a signal light picture of another intersection and a corresponding signal light status.

[0039] The first set includes signal light pictures of a plurality of intersections. For example, the first set includes 100 signal light pictures of the first intersection, 100 signal light pictures of a second intersection, and 100 signal light pictures of a third intersection. Therefore, the general model is obtained through training based on signal light pictures of a plurality of intersections and signal light statuses in the pictures.

[0040] Optionally, the server may obtain, through training by using a machine learning method (for example, a deep learning method) and based on the signal light pictures corresponding to the first intersection and the signal light statuses in the signal light pictures corresponding to the first intersection, the detection model corresponding to the first intersection. For example, as shown in FIG. 3, a deep learning network is set in the deep learning method. The deep learning network is divided into a plurality of layers, each layer performs nonlinear transformation such as convolution and pooling, and the layers are connected based on different weights. In FIG. 3, for example, there are three deep learning network layers. There may be less than three or more than three deep learning network layers. The server inputs the signal light pictures corresponding to the first intersection into the deep learning network for training. The server obtains input data of a next layer based on output data of a previous layer. The server compares a final output result of the deep learning network with the signal light status in the signal light picture, to adjust a weight of the deep learning network to form a model.

[0041] For example, 100 signal light pictures corresponding to the first intersection are respectively a picture 1 to a picture 100. The picture 1 to the picture 100 each include a signal light at the first intersection. The server inputs the picture 1 to the picture 100 into the deep learning network, and the server compares an output result of the deep learning network with signal light statuses in the picture 1 to the picture 100, to adjust a weight value of the deep learning network to finally obtain the first detection model. Therefore, after the first picture is input into the first detection model, the signal light status in the first picture may be recognized by using the first detection model.

[0042] The signal light statuses of the picture 1 to the picture 100 are detected by using the general model. The general model is obtained through training based on signal light pictures of a plurality of intersections and signal light statuses in the pictures. In other words, the general model is a model used to detect a signal light at any intersection, or a general detection algorithm used for a signal light at any intersection. A parameter in the general model is not adjusted for a specific intersection, and may be obtained by using a model or an algorithm in the prior art.

[0043] In the prior art, when the general model is obtained through training based on signal light pictures, signal light statuses in the pictures are manually recognized, and the recognized signal light statuses are input into the device. Obtaining the general model through training requires a large quantity of pictures. Therefore, signal light statuses in the large quantity of pictures need to be manually recognized and input. This consumes a lot of manpower and is very unintelligent. According to the method described in FIG. 2, when the detection model corresponding to the first intersection is trained based on the signal light pictures corresponding to the first intersection, the signal light statuses in the signal light pictures corresponding to the first intersection are automatically recognized by using the general model (that is, an existing model). The signal light statuses in the large quantity of pictures do not need to be manually recognized and input. The signal light statuses in the signal light pictures of the first intersection can be obtained more intelligently and conveniently. Therefore, the detection model corresponding to the first intersection can be obtained through training more quickly.

[0044] In the prior art, a mobile device detects a signal light status in a picture by using a general model. The general model is obtained through training based on signal light pictures of a plurality of intersections. Therefore, the general model is not well targeted, and it is not very accurate to detect a signal light status of an intersection by using the general model. In the method described in FIG. 2, the signal light status of the first intersection is detected by using the detection model corresponding to the first intersection. The detection model corresponding to the first intersection is obtained through training based on the plurality of signal light pictures of the first intersection, and is not obtained through training by using a signal light picture of another intersection. Therefore, the detection model corresponding to the first intersection can better fit a signal light feature of the first intersection, thereby improving a correctness percentage in detection of a signal light status of the first intersection.

[0045] FIG. 4 is a schematic flowchart of an information detection method according to an implementation of this application. As shown in FIG. 4, the information detection method includes the following 401 to 407.

[0046] 401. A mobile device photographs a second picture.

[0047] The second picture includes a signal light at a first intersection.

[0048] Optionally, the second picture may be a picture directly photographed by the mobile device, or the second picture may be a frame picture in video data photographed by the mobile device.

[0049] Optionally, the mobile device may photograph the second picture when the mobile device is within a preset range of the first intersection.

[0050] Specifically, the mobile device photographs the second picture by using a photographing apparatus of the mobile device.

[0051] 402. The mobile device detects a signal light status in the second picture by using a general model, to obtain a detection result.

[0052] For related descriptions of the general model, refer to corresponding descriptions in the implementation described in FIG. 2. Details are not described herein.

[0053] 403. The mobile device sends first information to a server.

[0054] The first information includes the second picture and the detection result, the first information further includes first geographical location information of the mobile device or an identifier of the first intersection, and the first geographical location information is used by the server to determine the identifier of the first intersection. There is a correspondence among the second picture, the detection result, and the identifier of the first intersection.

[0055] The first information is used by the server to store the correspondence among the second picture, the detection result, and the identifier of the first intersection. Pictures and detection results that correspond to the identifier of the first intersection and that are stored in the server are used to obtain, through training, a detection model corresponding to the first intersection.

[0056] Optionally, if the first information includes the identifier of the first intersection, the mobile device may obtain, by using a map application, an intersection identifier corresponding to current location information. This implementation has not been claimed as such.

[0057] 404. The server stores the correspondence among the second picture, the detection result, and the identifier of the first intersection.

[0058] If the first information includes the second picture, the detection result, and the identifier of the first intersection, after receiving the first information, the server stores the correspondence among the second picture, the detection result, and the identifier of the first intersection.

[0059] If the first information includes the second picture, the detection result, and the first geographical location information, after receiving the first information, the server first determines the first intersection from the map application based on the first geographical location information, and then stores the correspondence among the second picture, the detection result, and the identifier of the first intersection. This implementation has not been claimed as such.

[0060] 405. The server obtains, through training based on pictures and detection results that correspond to the identifier of the first intersection and that are stored, the detection model corresponding to the first intersection.

[0061] After obtaining, through training, the detection model corresponding to the first intersection, the server stores the detection model corresponding to the first intersection.

[0062] For example, the correspondence that is among a picture, a detection result, and the identifier of the first intersection and that is stored by the server may be shown in the following Table 1. The server obtains, through training based on a picture 1 to a picture 7 and a detection result 1 to a detection result 7, the detection model corresponding to the first intersection. Certainly, the pictures and the detection results in Table 1 may be sent by different terminal devices. For example, the picture 1 to the picture 3 are sent by a terminal device 1, and the picture 4 to the picture 7 are sent by a terminal device 2. Table 1 Sequence numberIdentifier of the first intersectionPictureDetection result11Picture 1Detection result 121Picture 2Detection result 231Picture 3Detection result 341Picture 4Detection result 451Picture 5Detection result 561Picture 6Detection result 671Picture 7Detection result 7

[0063] Certainly, the server may further store a picture and a detection result corresponding to another intersection, to obtain, through training, a detection model corresponding to the another intersection. For example, the server may further store a correspondence among a picture, a detection result, and an identifier of a second intersection, and the server may further store a correspondence among a picture, a detection result, and an identifier of a third intersection.

[0064] The server may obtain, through training by using a machine learning method (for example, a deep learning method) and based on the pictures and the detection results that correspond to the identifier of the first intersection and that are stored, the detection model corresponding to the first intersection.

[0065] Optionally, the server may obtain the detection model through training in any one of the following three manners.

[0066] Manner 1: For example, the server obtains, through training, the detection model corresponding to the first intersection and a detection model corresponding to the second intersection. As shown in FIG. 5, the server reads, based on the stored correspondence, a plurality of pictures corresponding to the first intersection, and inputs the plurality of pictures corresponding to the first intersection into a deep learning network corresponding to the first intersection. The server adjusts, based on an output result of the deep learning network corresponding to the first intersection and a detection result corresponding to the pictures, a weight in the deep learning network corresponding to the first intersection, to generate the detection model corresponding to the first intersection, and stores the model in the server. Then, the server reads, based on the stored correspondence, a plurality of pictures corresponding to the second intersection, and inputs the plurality of pictures corresponding to the second intersection into a deep learning network corresponding to the second intersection. The server compares an output result of the deep learning network corresponding to the second intersection with a detection result corresponding to the pictures, adjusts a weight in the deep learning network corresponding to the second intersection, to generate the detection model corresponding to the second intersection, and stores the model in the server.

[0067] Manner 2: As shown in FIG. 6, the server reads, based on the stored correspondence, a plurality of pictures corresponding to the first intersection, and inputs the plurality of pictures corresponding to the first intersection into a deep learning network corresponding to the first intersection. The server adjusts, based on an output result of the deep learning network corresponding to the first intersection and a detection result corresponding to the pictures, a weight in the deep learning network corresponding to the first intersection, to generate the detection model corresponding to the first intersection, and stores the model in the server. The server reads, based on the stored correspondence, a plurality of pictures corresponding to the second intersection, inputs the plurality of pictures corresponding to the second intersection into a deep learning network corresponding to the second intersection, and simultaneously inputs the plurality of pictures corresponding to the second intersection into the detection model that corresponds to the first intersection and that is obtained through training. An output of an L th< layer obtained through training of the detection model corresponding to the first intersection is used as an additional input of an (L+1) th< layer of the deep learning network corresponding to the second intersection, where L≥0 and L≤M-1, and M is a total quantity of layers of the deep learning network corresponding to the second intersection. For example, as shown in FIG. 6, when obtaining, through training, the detection model corresponding to the second intersection, the server obtains, based on an output of a first layer of the deep learning network corresponding to the second intersection, an input of a second layer of the deep learning network corresponding to the second intersection, and obtains, based on an output of a first layer of the detection model corresponding to the first intersection, an additional input of the second layer of the deep learning network corresponding to the second intersection. The server compares an output result of the deep learning network corresponding to the second intersection with the detection result corresponding to the pictures, adjusts a weight in the deep learning network corresponding to the second intersection, to obtain the detection model corresponding to the second intersection, and stores the model in the server.

[0068] Manner 3: The first K layers of a deep learning network are a general deep learning network, the general deep learning network is shared by data of all intersections, and the last (M-K) layers are separately used by specific intersections, and are deep learning networks corresponding to the intersections. A traffic light recognition model is generated for each intersection. As shown in FIG. 7, for example, K is equal to 3. The server first reads, based on the stored correspondence, a plurality of pictures corresponding to the first intersection, and inputs the plurality of pictures corresponding to the first intersection into the general deep learning network. The server obtains, based on an output of a third layer, an input of a deep learning network corresponding to the first intersection, and the server adjusts, based on an output result of the deep learning network corresponding to the first intersection and a detection result corresponding to the pictures, a weight in the deep learning network corresponding to the first intersection, to generate the detection model corresponding to the first intersection, and stores the model in the server. Similarly, the server reads, based on the stored correspondence, a plurality of pictures corresponding to the second intersection, and inputs the plurality of pictures corresponding to the second intersection into the general deep learning network. The server obtains, based on the output of the third layer, an input of the deep learning network corresponding to the second intersection, and the server adjusts, based on an output result of the deep learning network corresponding to the second intersection and a detection result corresponding to the pictures, a weight in the deep learning network corresponding to the second intersection, to generate the detection model corresponding to the second intersection, and stores the model in the server.

[0069] 406. The mobile device photographs a first picture.

[0070] The first picture includes a signal light at the first intersection.

[0071] 407. The mobile device detects a signal light status in the first picture by using a first detection model.

[0072] The first detection model is the detection model corresponding to the first intersection.

[0073] For specific implementations of 406 and 407, refer to descriptions corresponding to 202 and 201 in FIG. 2. Details are not described herein.

[0074] As can be learned, by performing 401 to 405, the mobile device can automatically recognize the signal light status in the signal light picture of the first intersection by using the general model (that is, an existing model). Therefore, signal light statuses in a large quantity of pictures do not need to be manually recognized and input, and the signal light status in the signal light picture of the first intersection can be more intelligently and conveniently obtained. In addition, the mobile device can send the signal light pictures of the first intersection and the signal light statuses in the signal light pictures of the first intersection to the server, so that the server generates, based on the signal light pictures of the first intersection and the signal light statuses in the signal light picture of the first intersection, the detection model corresponding to the first intersection. The server generates, based on only the signal light pictures of the first intersection and the signal light statuses in the signal light pictures of the first intersection, the detection model corresponding to the first intersection, instead of obtaining, through training by using a signal light picture of another intersection, the detection model corresponding to the first intersection. Therefore, the generated detection model corresponding to the first intersection can better fit a signal light feature of the first intersection, and a correctness percentage in detection of a signal light status at the first intersection can be improved.

[0075] Optionally, as shown in FIG. 8, before the mobile device detects the signal light status in the first picture by using the first detection model, the mobile device and the server may further perform the following 807 to 809. 806 and 807 may be simultaneously performed, 806 may be performed before 807, or 806 may be performed after 807 to 809.

[0076] 807. The mobile device sends, to the server, an obtaining request used to obtain the first detection model, where the obtaining request carries second geographical location information of the mobile device or the identifier of the first intersection, and the second geographical location information is used by the server to determine the identifier of the first intersection.

[0077] Optionally, when the mobile device is within the preset range of the first intersection, if the first detection model does not exist in the mobile device, the mobile device may send, to the server, the obtaining request used to obtain the first detection model.

[0078] 808. The server determines the first detection model based on the identifier of the first intersection.

[0079] If the obtaining request carries the second geographical location information of the mobile device, after receiving the obtaining request from the mobile device, the server determines the identifier of the first intersection from the map application based on the second geographical location information, and then determines, from the stored detection model based on the identifier of the first intersection, the first detection model corresponding to the identifier of the first intersection. This implementation has not been claimed as such.

[0080] If the obtaining request carries the identifier of the first intersection, after receiving the obtaining request from the mobile device, the server determines, from the stored detection model based on the identifier of the first intersection, the first detection model corresponding to the identifier of the first intersection.

[0081] 809. The server returns the first detection model to the mobile device.

[0082] After the server returns the first detection model to the mobile device, the mobile device receives the first detection model sent by the server.

[0083] The mobile device may obtain the first detection model from the server by performing 807 to 809, to detect the signal light status of the first intersection by using the first detection model.

[0084] Optionally, the server broadcasts the first detection model to the mobile device located within the preset range of the first intersection. Correspondingly, when the mobile device is within the preset range of the first intersection, the mobile device may further receive the first detection model broadcast by the server.

[0085] In this implementation, the server includes a model pushing apparatus and a model generation apparatus, and the model pushing apparatus and the model generation apparatus are deployed in different places. The model generation apparatus is configured to generate a detection model corresponding to each intersection. The model pushing apparatus is deployed at each intersection. The model pushing apparatus is configured to broadcast a detection model to a mobile device located within a preset range of an intersection. For example, a model pushing apparatus 1 is deployed at the first intersection, a model pushing apparatus 2 is deployed at the second intersection, and a model pushing apparatus 3 is deployed at the third intersection. The model generation apparatus sends the detection model corresponding to the first intersection to the model pushing apparatus 1, sends the detection model corresponding to the second intersection to the model pushing apparatus 2, and sends the detection model corresponding to the third intersection to the model pushing apparatus 3. The model pushing apparatus 1 is configured to broadcast, to the mobile device located within the preset range of the first intersection, the detection model corresponding to the first intersection. The model pushing apparatus 2 is configured to broadcast, to a mobile device located within a preset range of the second intersection, the detection model corresponding to the second intersection. The model pushing apparatus 3 is configured to broadcast, to a mobile device located within a preset range of the third intersection, the detection model corresponding to the third intersection.

[0086] In this implementation, the mobile device may obtain the first detection model from the server, to detect the signal light status of the first intersection by using the first detection model.

[0087] Optionally, before detecting the signal light status in the first picture by using the first detection model, the mobile device obtains the first detection model from the map application of the mobile device. This implementation has not been claimed as such. Optionally, when the mobile device detects, by using the map application, that the mobile device is within the preset range of the first intersection, the mobile device obtains the first detection model from the map application of the mobile device. In other words, in this implementation, after obtaining the first detection model through training, the server may integrate the first detection model into the map application. In this way, the server may not need to push the detection model to the mobile device, thereby helping save a transmission resource. This implementation has not been claimed as such.

[0088] FIG. 9 is a schematic flowchart of an information detection method according to an implementation of this application. As shown in FIG. 9, the information detection method includes the following 901 to 907.

[0089] 901. A mobile device photographs a second picture in a first direction of a first intersection.

[0090] The second picture includes a signal light at the first intersection.

[0091] The first direction may be any direction of east, west, south, and north.

[0092] 902. The mobile device detects a signal light status in the second picture by using a general model, to obtain a detection result.

[0093] For related descriptions of the general model, refer to corresponding descriptions in the implementation described in FIG. 1. Details are not described herein.

[0094] 903. The mobile device sends first information to a server.

[0095] The first information includes the second picture and the detection result, the first information further includes first geographical location information of the mobile device or the first information further includes an identifier of the first intersection and the first direction, and the first geographical location information is used by the server to determine the identifier of the first intersection and the first direction. There is a correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction.

[0096] The first information is used by the server to store the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction. Pictures and detection results that correspond to the identifier of the first intersection and the first direction and that are stored in the server are used to obtain, through training, a detection model corresponding to the first intersection and the first direction.

[0097] Optionally, if the first information includes the identifier of the first intersection and the first direction, the mobile device may obtain current location information by using the map application, and then determine, based on the current location information, the identifier and the first direction that correspond to the first intersection. This implementation has not been claimed as such.

[0098] 904. The server stores the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction.

[0099] After receiving the first information, the server stores the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction.

[0100] If the first information includes the second picture, the detection result, the identifier of the first intersection, and the first direction, after receiving the first information, the server stores the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction.

[0101] If the first information includes the second picture, the detection result, and the first geographical location information, after receiving the first information, the server first determines the identifier of the first intersection and the first direction from the map application based on the first geographical location information, and then stores the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction. This implementation has not been claimed as such.

[0102] 905. The server obtains, through training based on the pictures and the detection results that correspond to the identifier of the first intersection and the first direction and that are stored, the detection model corresponding to the first intersection and the first direction.

[0103] After obtaining, through training, the detection model corresponding to the first intersection and the first direction, the server stores the detection model corresponding to the first intersection.

[0104] For example, the correspondence that is among a picture, a detection result, the identifier of the first intersection, and the first direction and that is stored by the server may be shown in the following Table 2. The server obtains, through training based on a picture 1 to a picture 7 and a detection result 1 to a detection result 7, the detection model corresponding to the first intersection and the first direction. Certainly, the pictures and the detection results in Table 2 may be sent by different terminal devices. For example, the picture 1 to the picture 3 are sent by a terminal device 1, and the picture 4 to the picture 7 are sent by a terminal device 2. Table 2 Sequence numberIdentifier of the first intersectionFirst directionPictureDetection result11EastPicture 1Detection result 121EastPicture 2Detection result 231EastPicture 3Detection result 341EastPicture 4Detection result 451EastPicture 5Detection result 561EastPicture 6Detection result 671EastPicture 7Detection result 7

[0105] Certainly, the server may further store a correspondence among a picture, a detection result, the first intersection, and another direction, to obtain, through training, a detection model corresponding to the first intersection and the another direction. For example, the server may further store a correspondence among a picture, a detection result, the identifier of the first intersection, and a second direction, and the server may further store a correspondence among a picture, a detection result, the identifier of the first intersection, and a third direction. Certainly, the server may further store a correspondence among a picture, a detection result, another intersection, and another direction.

[0106] The server may obtain, through training by using a machine learning method (for example, a deep learning method) and based on the pictures and the detection results that correspond to the identifier of the first intersection and the first direction and that are stored, the detection model corresponding to the first intersection and the first direction. Optionally, a training principle of the detection model corresponding to the first intersection and the first direction is similar to those in FIG. 5, FIG. 6, and FIG. 7. Refer to the training principles corresponding to FIG. 5, FIG. 6, and FIG. 7. Details are not described herein.

[0107] 906. The mobile device photographs a first picture in the first direction of the first intersection.

[0108] The first picture includes a signal light at the first intersection.

[0109] The first direction may be any direction of east, west, south, and north.

[0110] 907. The mobile device detects a signal light status in the first picture by using a first detection model.

[0111] The first detection model is the detection model corresponding to the first intersection and the first direction.

[0112] In implementation of the method shown in FIG. 9, the mobile device may upload, to the server, a signal light picture photographed in the first direction of the first intersection and a corresponding detection result, so that the server can obtain, through training based on the received signal light picture and the corresponding detection result, the detection model corresponding to the first intersection and the first direction. The detection model corresponding to the first intersection and the first direction can better fit a feature of the signal light picture photographed in the first direction of the first intersection, thereby improving a correctness percentage in detection of a signal light status in the signal light picture photographed in the first direction of the first intersection.

[0113] Optionally, before detecting the signal light status in the first picture by using the first detection model, the mobile device may send, to the server, an obtaining request used to obtain the first detection model, where the obtaining request carries second geographical location information of the mobile device or carries the identifier of the first intersection and the first direction, and the second geographical location information is used by the server to determine the identifier of the first intersection and the first direction. After receiving the obtaining request from the mobile device, the server determines the first detection model based on the identifier of the first intersection and the first direction. The server returns the first detection model to the mobile device, and the mobile device receives the first detection model sent by the server.

[0114] Specifically, if the obtaining request carries the second geographical location information, after receiving the obtaining request, the server obtains, from the map application based on the second geographical location information, the identifier of the first intersection and the first direction corresponding to the second geographical location information, and then determines the first detection model based on the identifier of the first intersection and the first direction. This implementation has not been claimed as such.

[0115] In this implementation, the mobile device may obtain the first detection model from the server, to detect, by using the first detection model, the signal light status in the signal light picture photographed in the first direction of the first intersection.

[0116] Optionally, when detecting, by using the map application, that the mobile device is within a preset range of the first intersection, and detecting, by using the map application, that the mobile device is in the first direction of the first intersection, the mobile device obtains the first detection model from the map application of the mobile device. In other words, in this implementation, after obtaining the first detection model through training, the server may integrate the first detection model into the map application. In this way, the server may not need to push the detection model to the mobile device, thereby helping save a transmission resource. This implementation has not been claimed as such.

[0117] FIG. 10 is a schematic flowchart of an information detection method according to an implementation of this application. As shown in FIG. 10, the information detection method includes the following 1001 to 1007.

[0118] 1001. A mobile device photographs a second picture on a first lane of a first direction of a first intersection.

[0119] The second picture includes a signal light at the first intersection.

[0120] The first direction may be any direction of east, west, south, and north. Generally, one direction of an intersection has one or more lanes, and the first lane is any lane in the first direction.

[0121] 1002. The mobile device detects a signal light status in the second picture by using a general model, to obtain a detection result.

[0122] For related descriptions of the general model, refer to corresponding descriptions in the implementation described in FIG. 1. Details are not described herein.

[0123] 1003. The mobile device sends first information to a server.

[0124] The first information includes the second picture and the detection result. The first information further includes first geographical location information of the mobile device or the first information further includes an identifier of the first intersection, the first direction, and an identifier of the first lane. The first geographical location information is used by the server to determine the identifier of the first intersection, the first direction, and the identifier of the first lane. There is a correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane.

[0125] The first information is used by the server to store the correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane. Pictures and detection results that correspond to the identifier of the first intersection, the first direction, and the identifier of the first lane and that are stored in the server are used to obtain, through training, the detection model corresponding to the first intersection and the first direction.

[0126] Optionally, if the first information includes the identifier of the first intersection, the first direction, and the identifier of the first lane, the mobile device may obtain current location information by using a map application, and then determine, based on the current location information, the identifier, the first direction, and the identifier of the first lane that correspond to the first intersection.

[0127] 1004. The server stores the correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane.

[0128] After receiving the first information, the server stores the correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane.

[0129] If the first information includes the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane, after receiving the first information, the server stores the correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane.

[0130] If the first information includes the second picture, the detection result, and the first geographical location information, after receiving the first information, the server first determines the identifier of the first intersection, the first direction, and the identifier of the first lane from the map application based on the first geographical location information, and then stores the correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane. This implementation has not been claimed as such.

[0131] 1005. The server obtains, through training based on the pictures and the detection results that correspond to the identifier of the first intersection, the first direction, and the identifier of the first lane and that are stored, a detection model corresponding to the first intersection, the first direction, and the first lane.

[0132] After obtaining, through training, the detection model corresponding to the first intersection, the first direction, and the first lane, the server stores the detection model corresponding to the first intersection, the first direction, and the first lane.

[0133] For example, the correspondence that is among a picture, a detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane and that is stored by the server may be shown in the following Table 3. The server obtains, through training based on a picture 1 to a picture 7 and a detection result 1 to a detection result 7, the detection model corresponding to the first intersection, the first direction, and the first lane. Certainly, the pictures and the detection results in Table 3 may be sent by different terminal devices. For example, the picture 1 to the picture 3 are sent by a terminal device 1, and the picture 4 to the picture 7 are sent by a terminal device 2. Table 3 Sequence numberIdentifier of the first intersectionFirst directionIdentifier of the first lanePhotoDetection result11East1Picture 1Detection result 121East1Picture 2Detection result 231East1Picture 3Detection result 341East1Picture 4Detection result 451East1Picture 5Detection result 561East1Picture 6Detection result 671East1Picture 7Detection result 7

[0134] Certainly, the server may further store a correspondence among a picture, a detection result, the first intersection, the first direction, and an identifier of another lane, to obtain, through training, a detection model corresponding to the first intersection, the first direction, and the another lane.

[0135] The server may obtain, through training by using a machine learning method (for example, a deep learning method) and based on the pictures and detection results that correspond to the identifier of the first intersection, the first direction, and the identifier of the first lane and that are stored, the detection model corresponding to the first intersection, the first direction, and the first lane. Optionally, a training principle of the detection model corresponding to the first intersection, the first direction, and the first lane is similar to those in FIG. 5, FIG. 6, and FIG. 7. Refer to the training principles corresponding to FIG. 5, FIG. 6, and FIG. 7. Details are not described herein.

[0136] 1006. The mobile device photographs a first picture on the first lane in the first direction of the first intersection.

[0137] The first picture includes a signal light at the first intersection.

[0138] The first direction may be any direction of east, west, south, and north. The first lane is any lane in the first direction.

[0139] 1007. The mobile device detects a signal light status in the first picture by using a first detection model.

[0140] The first detection model is the detection model corresponding to the first intersection, the first direction, and the first lane.

[0141] In implementation of the method shown in FIG. 10, the mobile device may upload, to the server, a signal light picture photographed on the first lane in the first direction of the first intersection and a corresponding detection result, so that the server can obtain, through training based on the received signal light picture and the corresponding detection result, the detection model corresponding to the first intersection, the first direction, and the first lane. The detection model corresponding to the first intersection, the first direction, and the first lane can better fit a feature of a signal light picture photographed on the first lane in the first direction of the first intersection, thereby improving a correctness percentage in detection of a signal light status in the signal light picture photographed on the first lane in the first direction of the first intersection.

[0142] Optionally, before detecting the signal light status in the first picture by using the first detection model, the mobile device may send, to the server, an obtaining request used to obtain the first detection model, where the obtaining request carries second geographical location information of the mobile device or carries the identifier of the first intersection, the first direction, and the identifier of the first lane. The second geographical location information is used by the server to determine the identifier of the first intersection, the first direction, and the identifier of the first lane. After receiving the obtaining request from the mobile device, the server determines the first detection model based on the identifier of the first intersection, the first direction, and the identifier of the first lane. The server returns the first detection model to the mobile device, and the mobile device receives the first detection model sent by the server.

[0143] Specifically, if the obtaining request carries the second geographical location information, after receiving the obtaining request, the server obtains, from the map application based on the second geographical location information, the identifier of the first intersection, the first direction, and the identifier of the first lane that correspond to the second geographical location information, and then determines the first detection model based on the identifier of the first intersection, the first direction, and the identifier of the first lane. This implementation has not been claimed as such.

[0144] In this implementation, the mobile device may obtain the first detection model from the server, to detect, by using the first detection model, the signal light status in the signal light picture photographed on the first lane in the first direction of the first intersection.

[0145] Optionally, when detecting, by using the map application, that the mobile device is within the preset range of the first intersection, and detecting, by using the map application, that the mobile device is on the first lane in the first direction of the first intersection, the mobile device obtains the first detection model from the map application of the mobile device. In other words, in this implementation, after obtaining the first detection model through training, the server may integrate the first detection model into the map application. In this way, the server may not need to push the detection model to the mobile device, thereby helping save a transmission resource. This implementation has not been claimed as such.

[0146] In the implementations of the present disclosure, division into functional modules may be performed on the device based on the foregoing method examples. For example, division into each functional module may be performed for each function, or two or more functions may be integrated into one module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module. It should be noted that, in the implementations of the present disclosure, division into the modules is an example, is merely logical function division, and may be other division in an actual implementation.

[0147] FIG. 11 shows a mobile device according to an implementation of the present disclosure. The mobile device includes a photographing module 1101 and a processing module 1102.

[0148] The photographing module 1101 is configured to photograph a first picture. The first picture includes a signal light at a first intersection.

[0149] The processing module 1102 is configured to detect a signal light status in the first picture by using a first detection model. The first detection model is a detection model corresponding to the first intersection, the first detection model is obtained by a server through training based on signal light pictures corresponding to the first intersection and signal light statuses in the signal light pictures, the signal light statuses in the signal light pictures are obtained through detection by using a general model, the general model is obtained through training based on pictures in a first set and a signal light status in each picture in the first set, and the first set includes signal light pictures of a plurality of intersections.

[0150] Optionally, the mobile device further includes a communications module. The photographing module 1101 is further configured to photograph a second picture. The second picture includes a signal light at the first intersection. The processing module 1102 is further configured to detect a signal light status in the second picture by using the general model, to obtain a detection result. The communications module is configured to send first information to the server. The first information includes the second picture and the detection result, the first information further includes first geographical location information of the mobile device or an identifier of the first intersection, and the first geographical location information is used by the server to determine the identifier of the first intersection. There is a correspondence among the second picture, the detection result, and the identifier of the first intersection. The first information is used by the server to store the correspondence among the second picture, the detection result, and the identifier of the first intersection. The pictures and detection results that correspond to the identifier of the first intersection and that are stored in the server are used to obtain, through training, the detection model corresponding to the first intersection.

[0151] Optionally, the mobile device further includes a communications module. The communications module is configured to send, to the server, an obtaining request used to obtain the first detection model. The obtaining request carries second geographical location information of the mobile device or the identifier of the first intersection, and the second geographical location information is used by the server to determine the identifier of the first intersection. The communications module is further configured to receive the first detection model sent by the server.

[0152] Optionally, the mobile device further includes a communications module. The communications module is configured to: when the mobile device is within a preset range of the first intersection, receive the first detection model broadcast by the server.

[0153] Optionally, the processing module 1102 is further configured to obtain the first detection model from a map application of the mobile device. This implementation has not been claimed as such.

[0154] Optionally, the first detection model is a detection model corresponding to both the first intersection and a first direction. A manner in which the photographing module 1101 photographs the first picture is specifically: photographing, by the photographing module 1101, the first picture in the first direction of the first intersection. A manner in which the photographing module 1101 photographs the second picture is specifically: photographing, by the photographing module 1101, the second picture in the first direction of the first intersection. If the first information includes the first geographical location information, the first geographical location information is further used by the server to determine the first direction. If the first information includes the identifier of the first intersection, the first information further includes the first direction. There is a correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction. The first information is used by the server to store the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction. Pictures and detection results that correspond to the identifier of the first intersection and the first direction and that are stored in the server are used to obtain, through training, the detection model corresponding to the first intersection and the first direction.

[0155] Optionally, the first detection model is a detection model corresponding to all of the first intersection, the first direction, and a first lane. A manner in which the photographing module 1101 photographs the first picture is specifically: photographing, by the photographing module 1101, the first picture on the first lane in the first direction of the first intersection. A manner in which the photographing module 1101 photographs the second picture is specifically: photographing, by the photographing module 1101, the second picture on the first lane in the first direction of the first intersection. If the first information includes the first geographical location information, the first geographical location information is further used by the server to determine the first direction and an identifier of the first lane. If the first information includes the identifier of the first intersection, the first information further includes the first direction and the identifier of the first lane. There is a correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane. The first information is used by the server to store the correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane. Pictures and detection results that correspond to the identifier of the first intersection, the first direction, and the identifier of the first lane and that are stored in the server are used to obtain, through training, the detection model corresponding to all of the first intersection, the first direction, and the first lane.

[0156] FIG. 12 shows a server according to an implementation of the present disclosure. The server includes a communications module 1201 and a processing module 1202.

[0157] The communications module 1201 is configured to receive first information from a mobile device. The first information includes a second picture and a detection result, the second picture includes a signal light at a first intersection, the detection result is obtained by the mobile device through detection of a signal light status in the second picture by using a general model, the general model is obtained through training based on pictures in a first set and a signal light status in each picture in the first set, the first set includes signal light pictures of a plurality of intersections, the first information further includes first geographical location information of the mobile device or an identifier of the first intersection, the first geographical location information is used by the server to determine the identifier of the first intersection, and there is a correspondence among the second picture, the detection result, and the identifier of the first intersection.

[0158] The processing module 1202 is configured to store the correspondence among the second picture, the detection result, and the identifier of the first intersection.

[0159] The processing module 1202 is further configured to obtain, through training based on pictures and detection results that correspond to the identifier of the first intersection and that are stored, a detection model corresponding to the first intersection.

[0160] Optionally, the communications module 1201 is further configured to receive, from the mobile device, an obtaining request used to obtain a first detection model. The first detection model is the detection model corresponding to the first intersection, the obtaining request carries second geographical location information of the mobile device or the identifier of the first intersection, and the second geographical location information is used by the server to determine the identifier of the first intersection. The processing module 1202 is further configured to determine the first detection model based on the identifier of the first intersection. The communications module 1201 is further configured to return the first detection model to the mobile device.

[0161] Optionally, the communications module 1201 is further configured to broadcast the first detection model to the mobile device located within a preset range of the first intersection. The first detection model is the detection model corresponding to the first intersection.

[0162] Optionally, the second picture is a picture photographed by the mobile device in a first direction of the first intersection. If the first information includes the first geographical location information, the first geographical location information is further used by the server to determine the first direction. If the first information includes the identifier of the first intersection, the first information further includes the first direction. There is a correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction. A manner in which the processing module 1202 stores the correspondence among the second picture, the detection result, and the identifier of the first intersection is specifically: storing, by the processing module 1202, the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction. A manner in which the processing module 1202 obtains, through training based on the pictures and the detection results that correspond to the identifier of the first intersection and that are stored, the detection model corresponding to the first intersection is specifically: obtaining, by the processing module 1202 through training based on pictures and detection results that correspond to the identifier of the first intersection, the first direction, and the identifier of the first lane and that are stored, the detection model corresponding to the first intersection and the first direction.

[0163] Optionally, the second picture is a picture photographed by the mobile device on a first lane in the first direction of the first intersection. If the first information includes the first geographical location information, the first geographical location information is further used by the server to determine the first direction and an identifier of the first lane. If the first information includes the identifier of the first intersection, the first information further includes the first direction and the identifier of the first lane. There is a correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane. A manner in which the processing module 1202 stores the correspondence among the second picture, the detection result, and the identifier of the first intersection is specifically: storing, by the processing module 1202, the correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane. A manner in which the processing module 1202 obtains, through training based on the pictures and the detection results that correspond to the identifier of the first intersection and that are stored, the detection model corresponding to the first intersection is specifically: obtaining, by the processing module 1202 based on to the pictures and the detection results that correspond to the identifier of the first intersection, the first direction, and the identifier of the first lane and that are stored, the detection model corresponding to the first intersection, the first direction, and the first lane.

[0164] FIG. 13 is a schematic structural diagram of a mobile device according to an implementation of this application. As shown in FIG. 13, the mobile device 1300 includes a processor 1301, a memory 1302, a photographing apparatus 1303, and a communications interface 1304. The processor 1301, the memory 1302, the photographing apparatus 1303, and the communications interface 1304 are connected.

[0165] The processor 1301 may be a central processing unit (central processing unit, CPU), a general-purpose processor, a coprocessor, a digital signal processor (digital signal processor, DSP), an application-specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Alternatively, the processor 1301 may be a combination implementing a computing function, for example, a combination including one or more microprocessors, or a combination of a DSP and a microprocessor.

[0166] The photographing apparatus 1303 is configured to photograph a picture. The photographing apparatus may be a camera or the like.

[0167] The communications interface 1304 is configured to implement communication with another device (for example, a server).

[0168] The processor 1301 invokes program code stored in the memory 1302, to perform the steps performed by the mobile device in the foregoing method implementations.

[0169] FIG. 14 is a schematic structural diagram of a mobile device according to an implementation of this application. As shown in FIG. 14, the mobile device 1400 includes a processor 1401, a memory 1402, and a communications interface 1403. The processor 1401, the memory 1402, and the communications interface 1403 are connected.

[0170] The processor 1401 may be a central processing unit (central processing unit, CPU), a general-purpose processor, a coprocessor, a digital signal processor (digital signal processor, DSP), an application-specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The processor 1401 may alternatively be a combination implementing a computing function, for example, a combination of one or more microprocessors or a combination of a DSP and a microprocessor.

[0171] The communications interface 1403 is configured to implement communication with another device (for example, a server).

[0172] The processor 1401 invokes program code stored in the memory 1402, to perform the steps performed by the mobile device in the foregoing method implementations.

[0173] Based on a same inventive concept, problem-resolving principles of the devices provided in the implementations of this application are similar to those of the method implementations of this application. Therefore, for implementation of the devices, refer to implementation of the methods. For brevity, details are not described herein again.

[0174] In the foregoing implementations, the description of each implementation has respective focuses. For a part that is not described in detail in an implementation, refer to related descriptions in other implementations.

[0175] The scope of protection shall be defined by the appended claims.

Claims

1. An information detection method, wherein the method comprises: photographing (201), by a mobile device, a first picture, wherein the first picture comprises a signal light at a first intersection, wherein the mobile device is an automobile or an in-vehicle device; and detecting (202), by the mobile device, a signal light status in the first picture by using a first detection model, wherein the first detection model is received from a server and wherein the first detection model is obtained through training using only signal light pictures corresponding to the first intersection and signal light statuses in the signal light pictures, the signal light statuses in the signal light pictures are obtained through detection by using a general model, the general model is obtained through training based on pictures in a first set and a signal light status in each picture in the first set, and the first set comprises signal light pictures of a plurality of intersections.

2. The method according to claim 1, wherein before the photographing, by a mobile device, a first picture, the method further comprises: photographing, by the mobile device, a second picture, wherein the second picture comprises a signal light at the first intersection; detecting, by the mobile device, a signal light status in the second picture by using the general model, to obtain a detection result; and sending, by the mobile device, first information to the server, wherein the first information comprises the second picture and the detection result, the first information further comprises first geographical location information of the mobile device or an identifier of the first intersection, the first geographical location information is used by the server to determine the identifier of the first intersection, there is a correspondence among the second picture, the detection result, and the identifier of the first intersection, the first information is used by the server to store the correspondence among the second picture, the detection result, and the identifier of the first intersection, and the pictures and detection results that correspond to the identifier of the first intersection and that are stored in the server are used to obtain, through training, the detection model corresponding to the first intersection.

3. The method according to claim 1 or 2, wherein before the detecting, by the mobile device, a signal light status in the first picture by using a first detection model, the method further comprises: sending, by the mobile device to the server, an obtaining request used to obtain the first detection model, wherein the obtaining request carries second geographical location information of the mobile device or the identifier of the first intersection, and the second geographical location information is used by the server to determine the identifier of the first intersection; and receiving, by the mobile device, the first detection model sent by the server.

4. The method according to claim 2, wherein the first detection model is a detection model corresponding to both the first intersection and a first direction; the photographing, by a mobile device, a first picture comprises: photographing, by the mobile device, the first picture in the first direction of the first intersection; and the photographing, by the mobile device, a second picture comprises: photographing, by the mobile device, the second picture in the first direction of the first intersection, wherein if the first information comprises the first geographical location information, the first geographical location information is further used by the server to determine the first direction; if the first information comprises the identifier of the first intersection, the first information further comprises the first direction; there is a correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction; the first information is used by the server to store the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction; and pictures and detection results that correspond to the identifier of the first intersection and the first direction and that are stored in the server are used to obtain, through training, the detection model corresponding to the first intersection and the first direction.

5. The method according to claim 2, wherein the first detection model is a detection model corresponding to all of the first intersection, the first direction, and a first lane; the photographing, by a mobile device, a first picture comprises: photographing, by the mobile device, the first picture on the first lane in the first direction of the first intersection; and the photographing, by the mobile device, a second picture comprises: photographing, by the mobile device, the second picture on the first lane in the first direction of the first intersection, wherein if the first information comprises the first geographical location information, the first geographical location information is further used by the server to determine the first direction and an identifier of the first lane; if the first information comprises the identifier of the first intersection, the first information further comprises the first direction and the identifier of the first lane; there is a correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane; the first information is used by the server to store the correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane; and pictures and detection results that correspond to the identifier of the first intersection, the first direction, and the identifier of the first lane and that are stored in the server are used to obtain, through training, the detection model corresponding to all of the first intersection, the first direction, and the first lane.

6. A model generation method, wherein the method comprises: receiving (403), by a server, first information from a mobile device, wherein the mobile device is an automobile or an in-vehicle device, and wherein the first information comprises a second picture and a detection result, the second picture comprises a signal light at a first intersection, the detection result is obtained by the mobile device through detection of a signal light status in the second picture by using a general model, the general model is obtained through training based on pictures in a first set and a signal light status in each picture in the first set, the first set comprises signal light pictures of a plurality of intersections, the first information further comprises first geographical location information of the mobile device or an identifier of the first intersection, wherein when the first information comprises first geographical location information of the mobile device, the first geographical location information is used by the server to determine the identifier of the first intersection, and there is a correspondence among the second picture, the detection result, and the identifier of the first intersection, wherein the second picture and corresponding detection result correspond to the identifier of the first intersection; storing (404), by the server, the second picture along with the detection result, and the identifier of the first intersection; obtaining (405), by the server through training by using a machine learning method and using only multiple second pictures and corresponding detection results that correspond to the identifier of the first intersection and that are stored, a detection model corresponding to the first intersection.

7. The method according to claim 6, wherein the method further comprises: receiving, by the server from the mobile device, an obtaining request used to obtain a first detection model, wherein the first detection model is the detection model corresponding to the first intersection, the obtaining request carries second geographical location information of the mobile device or the identifier of the first intersection, and the second geographical location information is used by the server to determine the identifier of the first intersection; determining, by the server, the first detection model based on the identifier of the first intersection; and returning, by the server, the first detection model to the mobile device.

8. The method according to claim 6, wherein the method further comprises: broadcasting, by the server, the first detection model to the mobile device located within a preset range of the first intersection, wherein the first detection model is the detection model corresponding to the first intersection.

9. The method according to any one of claims 6 to 8, wherein the second picture is a picture photographed by the mobile device in a first direction of the first intersection; if the first information comprises the first geographical location information, the first geographical location information is further used by the server to determine the first direction; if the first information comprises the identifier of the first intersection, the first information further comprises the first direction; and there is a correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction; the storing, by the server, the correspondence among the second picture, the detection result, and the identifier of the first intersection comprises: storing, by the server, the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction; and the obtaining, by the server through training based on pictures and detection results that correspond to the identifier of the first intersection and that are stored, a detection model corresponding to the first intersection comprises: obtaining, by the server through training based on pictures and detection results that correspond to the identifier of the first intersection and the first direction and that are stored, the detection model corresponding to the first intersection and the first direction.

10. A mobile device, wherein the mobile device is an automobile or an in-vehicle device and wherein the mobile device comprises: a photographing module (1101), configured to photograph a first picture, wherein the first picture comprises a signal light at a first intersection; and a processing module (1102), configured to detect a signal light status in the first picture by using a first detection model, wherein the first detection model is received from a server and wherein the first detection model is obtained through training using only signal light pictures corresponding to the first intersection and signal light statuses in the signal light pictures, the signal light statuses in the signal light pictures are obtained through detection by using a general model, the general model is obtained through training based on pictures in a first set and a signal light status in each picture in the first set, and the first set comprises signal light pictures of a plurality of intersections.

11. The mobile device according to claim 10, wherein the mobile device further comprises a communications module; the photographing module is further configured to photograph a second picture, wherein the second picture comprises a signal light at the first intersection; the processing module is further configured to detect a signal light status in the second picture by using the general model, to obtain a detection result; and the communications module is configured to send first information to the server, wherein the first information comprises the second picture and the detection result, the first information further comprises first geographical location information of the mobile device or an identifier of the first intersection, the first geographical location information is used by the server to determine the identifier of the first intersection, there is a correspondence among the second picture, the detection result, and the identifier of the first intersection, the first information is used by the server to store the correspondence among the second picture, the detection result, and the identifier of the first intersection, and pictures and detection results that correspond to the identifier of the first intersection and that are stored in the server are used to obtain, through training, the detection model corresponding to the first intersection.

12. The mobile device according to claim 10 or 11, wherein the mobile device further comprises a communications module; the communications module is configured to send, to the server, an obtaining request used to obtain the first detection model, wherein the obtaining request carries second geographical location information of the mobile device or the identifier of the first intersection, and the second geographical location information is used by the server to determine the identifier of the first intersection; and the communications module is further configured to receive the first detection model sent by the server.

13. The mobile device according to claim 11, wherein the first detection model is a detection model corresponding to both the first intersection and a first direction; a manner in which the photographing module photographs the first picture is specifically: photographing, by the photographing module, the first picture in the first direction of the first intersection; and a manner in which the photographing module photographs the second picture is specifically: photographing, by the photographing module, the second picture in the first direction of the first intersection, wherein if the first information comprises the first geographical location information, the first geographical location information is further used by the server to determine the first direction; if the first information comprises the identifier of the first intersection, the first information further comprises the first direction; there is a correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction; the first information is used by the server to store the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction; and pictures and detection results that correspond to the identifier of the first intersection and the first direction and that are stored in the server are used to obtain, through training, the detection model corresponding to the first intersection and the first direction.

14. The mobile device according to claim 11, wherein the first detection model is a detection model corresponding to all of the first intersection, the first direction, and a first lane; a manner in which the photographing module photographs the first picture is specifically: photographing, by the mobile device, the first picture on the first lane in the first direction of the first intersection; and a manner in which the photographing module photographs the second picture is specifically: photographing, by the mobile device, the second picture on the first lane in the first direction of the first intersection, wherein if the first information comprises the first geographical location information, the first geographical location information is further used by the server to determine the first direction and an identifier of the first lane; if the first information comprises the identifier of the first intersection, the first information further comprises the first direction and the identifier of the first lane; there is a correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane; the first information is used by the server to store the correspondence among the second picture, the detection result, the identifier of the first intersection, the first direction, and the identifier of the first lane; and pictures and detection results that correspond to the identifier of the first intersection, the first direction, and the identifier of the first lane and that are stored in the server are used to obtain, through training, the detection model corresponding to all of the first intersection, the first direction, and the first lane.

15. A server, wherein the mobile device is an automobile or an in-vehicle device and wherein the server comprises: a communications module (1201), configured to receive first information from a mobile device, wherein the first information comprises a second picture and a detection result, the second picture comprises a signal light at a first intersection, the detection result is obtained by the mobile device through detection of a signal light status in the second picture by using a general model, the general model is obtained through training based on pictures in a first set and a signal light status in each picture in the first set, the first set comprises signal light pictures of a plurality of intersections, the first information further comprises first geographical location information of the mobile device or an identifier of the first intersection, wherein when the first information comprises first geographical location information of the mobile device, the first geographical location information is used by the server to determine the identifier of the first intersection, and there is a correspondence among the second picture, the detection result, and the identifier of the first intersection, wherein the second picture and corresponding detection result correspond to the identifier of the first intersection; and a processing module (1202), configured to store the second picture along with the detection result, and the identifier of the first intersection, wherein the processing module is further configured to obtain, through training by using a machine learning method and using only multiple second pictures and corresponding detection results that correspond to the identifier of the first intersection and that are stored, a detection model corresponding to the first intersection.

16. The server according to claim 15, wherein the communications module is further configured to receive, from the mobile device, an obtaining request used to obtain a first detection model, wherein the first detection model is the detection model corresponding to the first intersection, the obtaining request carries second geographical location information of the mobile device or the identifier of the first intersection, and the second geographical location information is used by the server to determine the identifier of the first intersection; the processing module is further configured to determine the first detection model based on the identifier of the first intersection; and the communications module is further configured to return the first detection model to the mobile device.

17. The server according to claim 15, wherein the communications module is further configured to broadcast the first detection model to the mobile device located within a preset range of the first intersection, wherein the first detection model is the detection model corresponding to the first intersection.

18. The server according to any one of claims 15 to 17, wherein the second picture is a picture photographed by the mobile device in a first direction of the first intersection; if the first information comprises the first geographical location information, the first geographical location information is further used by the server to determine the first direction; if the first information comprises the identifier of the first intersection, the first information further comprises the first direction; and there is a correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction; a manner in which the processing module stores the correspondence among the second picture, the detection result, and the identifier of the first intersection is specifically: storing, by the processing module, the correspondence among the second picture, the detection result, the identifier of the first intersection, and the first direction; and a manner in which the processing module obtains, through training based on the pictures and the detection results that correspond to the identifier of the first intersection and that are stored, the detection model corresponding to the first intersection is specifically: obtaining, by the processing module through training based on pictures and detection results that correspond to the identifier of the first intersection and the first direction and that are stored, the detection model corresponding to the first intersection and the first direction.

19. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program comprises a program instruction, and when the program instruction is executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 9.