A computer-implemented method for controlling data collection, wherein the method is performed inside a vehicle, and wherein the vehicle is an automatic driving vehicle, the method comprising: acquiring environmental data of a current environment where the vehicle is located; in response to determining, according to the environmental data, that the current environment meets an environment collection requirement, controlling, according to a current production flow of the vehicle, one or more collection devices of the vehicle to perform data collection, wherein the one or more collection devices correspond to the current production flow, and wherein the current production flow is a production process that the vehicle needs to go through before being put into use; and controlling the data collection of the one or more collection devices based on a data collection situation of the one or more collection devices, wherein controlling the data collection of the one or more collection devices based on the data collection situation of the one or more collection devices comprises: in response to determining that the data collection situation of the one or more collection devices meets a condition, controlling the one or more collection devices to stop the data collection, wherein the condition comprises at least one of: a first sub condition: a first collection device in the one or more collection devices does not collect data, wherein the first collection device is any collection device in the one or more collection devices; or a second sub condition: data collected by a second collection device in the one or more collection devices does not match a data requirement of the second collection device in the current production flow, wherein the second collection device is any collection device in the one or more collection devices. acquiring environmental data of a current environment where the vehicle is located; in response to determining, according to the environmental data, that the current environment meets an environment collection requirement, controlling, according to a current production flow of the vehicle, one or more collection devices of the vehicle to perform data collection, wherein the one or more collection devices correspond to the current production flow, and wherein the current production flow is a production process that the vehicle needs to go through before being put into use; and controlling the data collection of the one or more collection devices based on a data collection situation of the one or more collection devices, wherein controlling the data collection of the one or more collection devices based on the data collection situation of the one or more collection devices comprises: in response to determining that the data collection situation of the one or more collection devices meets a condition, controlling the one or more collection devices to stop the data collection, wherein the condition comprises at least one of: a first sub condition: a first collection device in the one or more collection devices does not collect data, wherein the first collection device is any collection device in the one or more collection devices; or a second sub condition: data collected by a second collection device in the one or more collection devices does not match a data requirement of the second collection device in the current production flow, wherein the second collection device is any collection device in the one or more collection devices. a first sub condition: a first collection device in the one or more collection devices does not collect data, wherein the first collection device is any collection device in the one or more collection devices; or a second sub condition: data collected by a second collection device in the one or more collection devices does not match a data requirement of the second collection device in the current production flow, wherein the second collection device is any collection device in the one or more collection devices.