A method for determining chromaticity information, applied to an electronic device, wherein the electronic device comprises a multispectral sensor, an automatic white balance module, and an AI automatic white balance module, the automatic white balance module comprises a plurality of algorithms, and the method comprises: starting, by the electronic device, a camera application; determining, based on channel values obtained from the multispectral sensor, a type of a current shooting scene, wherein the channel values comprise one or more of the following: a visible light channel value, an NIR channel value, and a clear channel value; sending the type of the current shooting scene to the automatic white balance module; selecting, by the automatic white balance module, a target algorithm from the plurality of algorithms based on the type of the current shooting scene; and determining, by the electronic device based on the target algorithm, target chromaticity information comprising an RGB value of a white point of an image light source which the electronic device uses to white balance an image, wherein the method further comprises: obtaining, by the multispectral sensor, a first correlated color temperature; sending the first correlated color temperature to the AI automatic white balance module; determining, by the AI automatic white balance module, a difference between the first correlated color temperature and a second correlated color temperature, wherein the second correlated color temperature is a correlated color temperature value obtained by the AI automatic white balance module based on an image acquired by the camera; when the difference is greater than a preset threshold, adjusting a confidence level output by the AI automatic white balance module to a first confidence level; and determining, by the electronic device based on the first confidence level, the target chromaticity information. starting, by the electronic device, a camera application; determining, based on channel values obtained from the multispectral sensor, a type of a current shooting scene, wherein the channel values comprise one or more of the following: a visible light channel value, an NIR channel value, and a clear channel value; sending the type of the current shooting scene to the automatic white balance module; selecting, by the automatic white balance module, a target algorithm from the plurality of algorithms based on the type of the current shooting scene; and determining, by the electronic device based on the target algorithm, target chromaticity information comprising an RGB value of a white point of an image light source which the electronic device uses to white balance an image, wherein the method further comprises: obtaining, by the multispectral sensor, a first correlated color temperature; sending the first correlated color temperature to the AI automatic white balance module; determining, by the AI automatic white balance module, a difference between the first correlated color temperature and a second correlated color temperature, wherein the second correlated color temperature is a correlated color temperature value obtained by the AI automatic white balance module based on an image acquired by the camera; when the difference is greater than a preset threshold, adjusting a confidence level output by the AI automatic white balance module to a first confidence level; and determining, by the electronic device based on the first confidence level, the target chromaticity information. obtaining, by the multispectral sensor, a first correlated color temperature; sending the first correlated color temperature to the AI automatic white balance module; determining, by the AI automatic white balance module, a difference between the first correlated color temperature and a second correlated color temperature, wherein the second correlated color temperature is a correlated color temperature value obtained by the AI automatic white balance module based on an image acquired by the camera; when the difference is greater than a preset threshold, adjusting a confidence level output by the AI automatic white balance module to a first confidence level; and determining, by the electronic device based on the first confidence level, the target chromaticity information.