WO2023108443A1 - Image processing method, smart terminal and storage medium - Google Patents

Image processing method, smart terminal and storage medium Download PDF

Info

Publication number
WO2023108443A1
WO2023108443A1 PCT/CN2021/138110 CN2021138110W WO2023108443A1 WO 2023108443 A1 WO2023108443 A1 WO 2023108443A1 CN 2021138110 W CN2021138110 W CN 2021138110W WO 2023108443 A1 WO2023108443 A1 WO 2023108443A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter value
target
preset
shooting
spectrum
Prior art date
Application number
PCT/CN2021/138110
Other languages
French (fr)
Chinese (zh)
Inventor
孙文君
Original Assignee
深圳传音控股股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳传音控股股份有限公司 filed Critical 深圳传音控股股份有限公司
Priority to PCT/CN2021/138110 priority Critical patent/WO2023108443A1/en
Publication of WO2023108443A1 publication Critical patent/WO2023108443A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control

Abstract

Provided in the present application are an image processing method, a smart terminal and a storage medium. The method comprises the following steps: when preset processing is performed on a captured picture, since a collected preset parameter value of a photographic environment is an accurate preset parameter value, it being possible to accurately determine or generate, according to the accurate preset parameter value, a target parameter value corresponding to the photographic environment; and then performing, on the basis of the target parameter value, preset processing on the captured picture corresponding to the photographic environment, such that the processing effect can be effectively improved.

Description

图像处理方法、智能终端及存储介质Image processing method, intelligent terminal and storage medium 技术领域technical field
本申请涉及图像处理技术领域,具体涉及一种图像处理方法、智能终端及存储介质。The present application relates to the technical field of image processing, and in particular to an image processing method, an intelligent terminal and a storage medium.
背景技术Background technique
在拍摄过程中,对拍摄画面进行处理,可以使得拍摄画面的图像颜色可以更加接近拍摄画面的真实颜色。During the shooting process, processing the shooting picture can make the image color of the shooting picture closer to the real color of the shooting picture.
在构思及实现本申请过程中,发明人发现至少存在如下问题:在对拍摄画面进行处理时,如何有效地对拍摄画面进行处理,以提高处理效果是至关重要的。During the process of conceiving and implementing the present application, the inventors have found at least the following problems: when processing the photographed images, how to effectively process the photographed images to improve the processing effect is crucial.
前面的叙述在于提供一般的背景信息,并不一定构成现有技术。The foregoing description is provided to provide general background information and does not necessarily constitute prior art.
技术解决方案technical solution
针对上述技术问题,本申请提供一种图像处理方法、智能终端及存储介质,提高了拍摄画面的处理效果。In view of the above technical problems, the present application provides an image processing method, a smart terminal and a storage medium, which improve the processing effect of the photographed picture.
为解决上述技术问题,本申请提供一种图像处理方法,应用于智能终端,该图像处理方法可以包括:In order to solve the above technical problems, the present application provides an image processing method, which is applied to a smart terminal, and the image processing method may include:
S1:根据预设参数值,确定或生成拍摄环境对应的目标参数值。S1: Determine or generate target parameter values corresponding to the shooting environment according to preset parameter values.
S2:基于所述目标参数值,对所述拍摄环境对应的拍摄画面进行预设处理。S2: Based on the target parameter value, perform preset processing on the shooting picture corresponding to the shooting environment.
可选地,所述S1步骤包括:Optionally, the S1 step includes:
根据所述预设参数值,确定或生成所述拍摄环境对应的目标光谱。A target spectrum corresponding to the shooting environment is determined or generated according to the preset parameter value.
基于所述目标光谱,确定或生成所述目标参数值。Based on the target spectrum, the target parameter value is determined or generated.
可选地,所述基于所述目标光谱,确定或生成所述目标参数值,包括:Optionally, the determining or generating the target parameter value based on the target spectrum includes:
基于预设的光谱与参数值之间的映射关系,确定或生成所述目标光谱对应的至少一个参数值。Based on a preset mapping relationship between spectra and parameter values, at least one parameter value corresponding to the target spectrum is determined or generated.
从所述至少一个参数值中确定或生成所述目标参数值。The target parameter value is determined or generated from the at least one parameter value.
可选地,所述从所述至少一个参数值中确定或生成所述目标参数值,包括:Optionally, the determining or generating the target parameter value from the at least one parameter value includes:
获取目标拍摄亮度。Get the target shooting brightness.
根据所述目标拍摄亮度,从所述至少一个参数值中确定或生成所述目标参数值。The target parameter value is determined or generated from the at least one parameter value according to the target shooting brightness.
可选地,所述根据所述目标拍摄亮度,从所述至少一个参数值中确定或生成所述目标参数值,包括:Optionally, the determining or generating the target parameter value from the at least one parameter value according to the target shooting brightness includes:
基于预设的拍摄亮度与参数值之间的映射关系,从所述至少一个参数值中确定或生成所述目标拍摄亮度对应的参数值。Based on a preset mapping relationship between shooting brightness and parameter values, a parameter value corresponding to the target shooting brightness is determined or generated from the at least one parameter value.
将所述目标拍摄亮度对应的参数值,确定为所述目标参数值。The parameter value corresponding to the target shooting brightness is determined as the target parameter value.
可选地,所述根据所述预设参数值,确定或生成所述拍摄环境对应的目标光谱,包括:Optionally, the determining or generating the target spectrum corresponding to the shooting environment according to the preset parameter value includes:
基于预设的预设参数值与光谱之间的映射关系,确定或生成所述预设参数值对应的光谱;Determine or generate a spectrum corresponding to the preset parameter value based on the preset mapping relationship between the preset parameter value and the spectrum;
将所述预设参数值对应的光谱,确定为所述目标光谱。The spectrum corresponding to the preset parameter value is determined as the target spectrum.
可选地,所述方法还包括:Optionally, the method also includes:
采集全光谱场景下,各个光谱对应的目标参数值。Collect the target parameter values corresponding to each spectrum in the full-spectrum scenario.
根据所述各个光谱对应的目标参数值,确定或生成所述预设的光谱与参数值之间的映射关系。According to the target parameter values corresponding to the respective spectra, a mapping relationship between the preset spectra and parameter values is determined or generated.
本申请还提供了一种图像处理方法,该图像处理方法可以包括:The present application also provides an image processing method, which may include:
S10:获取拍摄画面的预设数据。S10: Acquiring preset data of a shooting picture.
S20:基于所述预设数据,确定或生成所述拍摄画面对应的拍摄环境对应的目标参数值。S20: Based on the preset data, determine or generate a target parameter value corresponding to the shooting environment corresponding to the shooting picture.
S30:基于所述目标参数值,对所述拍摄环境对应的拍摄画面进行预设处理。S30: Based on the target parameter value, perform preset processing on the shooting picture corresponding to the shooting environment.
可选地,所述S20包括:Optionally, the S20 includes:
基于所述预设数据,确定或生成所述拍摄环境的目标光谱。Based on the preset data, determine or generate the target spectrum of the shooting environment.
基于所述拍摄环境的目标光谱,确定或生成所述目标参数值。The target parameter value is determined or generated based on the target spectrum of the shooting environment.
可选地,所述预设数据,可以是原始数据,也可以是压缩图像等,本申请以预设数据为原始数据和压缩图像进行示例说明。Optionally, the preset data may be original data or a compressed image, etc. The present application uses the preset data as an example to describe the original data and the compressed image.
可选地,所述基于所述预设数据,确定或生成所述拍摄环境的目标光谱,包括:Optionally, the determining or generating the target spectrum of the shooting environment based on the preset data includes:
基于所述预设数据中的压缩图像中的灰色像素,确定或生成所述预设数据中的原始数据中目标灰色像素对应的预设参数值。Based on the gray pixels in the compressed image in the preset data, determine or generate the preset parameter value corresponding to the target gray pixel in the original data in the preset data.
基于所述目标灰色像素对应的预设参数值,确定或生成所述拍摄环境的目标光谱。Based on the preset parameter value corresponding to the target gray pixel, determine or generate the target spectrum of the shooting environment.
可选地,所述基于所述预设数据中的压缩图像中的灰色像素,确定或生成所述预设数据中的原始数据中目标灰色像素对应的预设参数值,包括:Optionally, the determining or generating the preset parameter value corresponding to the target gray pixel in the original data in the preset data based on the gray pixels in the compressed image in the preset data includes:
基于所述压缩图像中的灰色像素,确定或生成所述目标灰色像素在所述原始数据中的位置。Based on the gray pixels in the compressed image, the position of the target gray pixel in the original data is determined or generated.
基于所述目标灰色像素在所述原始数据中的位置,确定所述目标灰色像素对应的预设参数值。Based on the position of the target gray pixel in the original data, a preset parameter value corresponding to the target gray pixel is determined.
可选地,所述基于所述压缩图像中的灰色像素,确定或生成所述目标灰色像素在所述原始数据中的位置,包括:Optionally, the determining or generating the position of the target gray pixel in the original data based on the gray pixels in the compressed image includes:
根据所述原始数据的尺寸和所述压缩图像尺寸,确定所述原始数据和所述压缩图像之间的尺寸比例。A size ratio between the original data and the compressed image is determined according to the size of the original data and the size of the compressed image.
根据所述压缩图像中的灰色像素的位置和所述尺寸比例,确定或生成所述目标灰色像素在所述原始数据中的位置。Determine or generate the position of the target gray pixel in the original data according to the position of the gray pixel in the compressed image and the size ratio.
可选地,所述基于所述拍摄环境的目标光谱,确定或生成所述目标参数值,包括:Optionally, the determining or generating the target parameter value based on the target spectrum of the shooting environment includes:
基于预设的光谱与参数值之间的映射关系,确定或生成所述目标光谱对应的至少一个参数值。Based on a preset mapping relationship between spectra and parameter values, at least one parameter value corresponding to the target spectrum is determined or generated.
从所述至少一个参数值中确定或生成所述目标参数值。The target parameter value is determined or generated from the at least one parameter value.
可选地,所述根据所述目标拍摄亮度,从所述至少一个参数值中确定或生成所述目标参数值,包括:Optionally, the determining or generating the target parameter value from the at least one parameter value according to the target shooting brightness includes:
基于预设的拍摄亮度与参数值之间的映射关系,从所述至少一个参数值中确定或生成所述目标拍摄亮度对应的参数值。Based on a preset mapping relationship between shooting brightness and parameter values, a parameter value corresponding to the target shooting brightness is determined or generated from the at least one parameter value.
将所述目标拍摄亮度对应的参数值,确定为所述目标参数值。The parameter value corresponding to the target shooting brightness is determined as the target parameter value.
本申请还提供了一种图像处理装置,图像处理装置可以包括:The present application also provides an image processing device, and the image processing device may include:
确定单元,用于根据预设参数值,确定或生成拍摄环境对应的目标参数值。The determining unit is configured to determine or generate target parameter values corresponding to the shooting environment according to preset parameter values.
处理单元,用于基于所述目标参数值,对所述拍摄环境对应的拍摄画面进行预设处理。A processing unit, configured to perform preset processing on the shooting picture corresponding to the shooting environment based on the target parameter value.
可选地,所述确定单元包括第一确定模块和第二确定模块。Optionally, the determining unit includes a first determining module and a second determining module.
所述第一确定模块,用于根据所述预设参数值,确定或生成所述拍摄环境对应的目标光谱。The first determining module is configured to determine or generate a target spectrum corresponding to the shooting environment according to the preset parameter value.
所述第二确定模块,用于基于所述目标光谱,确定或生成所述目标参数值。The second determination module is configured to determine or generate the target parameter value based on the target spectrum.
可选地,所述第二确定模块,具体用于基于预设的光谱与参数值之间的映射关系,确定或生成所述目标光谱对应的至少一个参数值;从所述至少一个参数值中确定或生成所述目标参数值。Optionally, the second determination module is specifically configured to determine or generate at least one parameter value corresponding to the target spectrum based on a preset mapping relationship between the spectrum and the parameter value; from the at least one parameter value Determining or generating said target parameter value.
可选地,所述第二确定模块,具体用于获取目标拍摄亮度;根据所述目标拍摄亮度,从所述至少一个参数值中确定或生成所述目标参数值。Optionally, the second determining module is specifically configured to acquire target shooting brightness; determine or generate the target parameter value from the at least one parameter value according to the target shooting brightness.
可选地,所述第二确定模块,具体用于基于预设的拍摄亮度与参数值之间的映射关系,从所述至少一个参数值中确定或生成所述目标拍摄亮度对应的参数值;将所述目标拍摄亮度对应的参数值,确定为所述目标参数值。Optionally, the second determining module is specifically configured to determine or generate a parameter value corresponding to the target shooting brightness from the at least one parameter value based on a preset mapping relationship between shooting brightness and parameter values; The parameter value corresponding to the target shooting brightness is determined as the target parameter value.
可选地,所述第一确定模块,具体用于基于预设的预设参数值与光谱之间的映射关系,确定或生成所述预设参数值对应的光谱;将所述预设参数值对应的光谱,确定为所述目标光谱。Optionally, the first determining module is specifically configured to determine or generate a spectrum corresponding to the preset parameter value based on a preset mapping relationship between the preset parameter value and the spectrum; The corresponding spectrum is determined as the target spectrum.
可选地,所述装置还包括采集单元和生成单元。Optionally, the device further includes a collection unit and a generation unit.
所述采集单元,用于采集全光谱场景下,各个光谱对应的目标参数值。The collection unit is configured to collect target parameter values corresponding to each spectrum in a full-spectrum scenario.
所述生成单元,用于根据所述各个光谱对应的目标参数值,确定或生成所述预设的光谱与参数值之间的映射关系。The generating unit is configured to determine or generate a mapping relationship between the preset spectra and parameter values according to the target parameter values corresponding to the respective spectra.
本申请还提供了一种图像处理装置,该图像处理装置可以包括:The present application also provides an image processing device, which may include:
获取单元,用于获取拍摄画面的预设数据。The obtaining unit is used to obtain preset data of the shooting picture.
确定单元,用于基于所述预设数据,确定或生成所述拍摄画面对应的拍摄环境对应的目标参数值。The determining unit is configured to determine or generate a target parameter value corresponding to the shooting environment corresponding to the shooting picture based on the preset data.
处理单元,用于基于所述目标参数值,对所述拍摄环境对应的拍摄画面进行预设处理。A processing unit, configured to perform preset processing on the shooting picture corresponding to the shooting environment based on the target parameter value.
可选地,所述确定单元包括第一确定模块和第二确定模块;Optionally, the determining unit includes a first determining module and a second determining module;
所述第一确定模块,用于基于所述预设数据,确定或生成所述拍摄环境的目标光谱。The first determining module is configured to determine or generate the target spectrum of the shooting environment based on the preset data.
所述第二确定模块,用于基于所述拍摄环境的目标光谱,确定或生成所述目标参数值。The second determination module is configured to determine or generate the target parameter value based on the target spectrum of the shooting environment.
可选地,所述第一确定模块,具体用于基于所述预设数据中的压缩图像中的灰色像素,确定或生成所述预设数据中的原始数据中目标灰色像素对应的预设参数值;基于所述目标灰色像素对应的预设参数值,确定或生成所述拍摄环境的目标光谱。Optionally, the first determining module is specifically configured to determine or generate preset parameters corresponding to target gray pixels in the original data in the preset data based on the gray pixels in the compressed image in the preset data value; based on the preset parameter value corresponding to the target gray pixel, determine or generate the target spectrum of the shooting environment.
可选地,所述第一确定模块,具体用于基于所述压缩图像中的灰色像素,确定或生成所述目标灰色像素在所述原始数据中的位置;基于所述目标灰色像素在所述原始数据中的位置,确定所述目标灰色像素对应的预设参数值。Optionally, the first determination module is specifically configured to determine or generate the position of the target gray pixel in the original data based on the gray pixels in the compressed image; based on the position of the target gray pixel in the The position in the original data determines the preset parameter value corresponding to the target gray pixel.
可选地,所述第一确定模块,具体用于根据所述原始数据的尺寸和所述压缩图像尺寸,确定所述原始数据和所述压缩图像之间的尺寸比例;根据所述压缩图像中的灰色像素的位置和所述尺寸比例,确定或生成所述目标灰色像素在所述原始数据中的位置。Optionally, the first determination module is specifically configured to determine the size ratio between the original data and the compressed image according to the size of the original data and the size of the compressed image; The position of the gray pixel and the size ratio are used to determine or generate the position of the target gray pixel in the original data.
可选地,所述第二确定模块,具体用于基于预设的光谱与参数值之间的映射关系,确定或生成所述目标光谱对应的至少一个参数值;从所述至少一个参数值中确定或生成所述目标参数值。Optionally, the second determination module is specifically configured to determine or generate at least one parameter value corresponding to the target spectrum based on a preset mapping relationship between the spectrum and the parameter value; from the at least one parameter value Determining or generating said target parameter value.
可选地,所述第二确定模块,具体用于基于预设的拍摄亮度与参数值之间的映射关系,从所述至少一个参数值中确定或生成所述目标拍摄亮度对应的参数值;将所述目标拍摄亮度对应的参数值,确定为所述目标参数值。Optionally, the second determining module is specifically configured to determine or generate a parameter value corresponding to the target shooting brightness from the at least one parameter value based on a preset mapping relationship between shooting brightness and parameter values; The parameter value corresponding to the target shooting brightness is determined as the target parameter value.
本申请还提供一种智能终端,包括:存储器、处理器,可选地,所述存储器上存储有图像处理方法程序,所述图像处理方法程序被所述处理器执行时实现如上述图像处理方法的步骤。The present application also provides an intelligent terminal, including: a memory and a processor. Optionally, an image processing method program is stored in the memory, and when the image processing method program is executed by the processor, the above-mentioned image processing method is implemented. A step of.
本申请还提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述图像处理方法的步骤。The present application also provides a computer storage medium, where the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned image processing method are realized.
如上所述,本申请的图像处理方法,在对拍摄画面进行预设处理时,由于采集的拍摄环境的预设参数值为准确的预设参数值,因此,根据该准确的预设参数值,可以准确地确定或生成拍摄环境对应的目标参数值;再基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理,可以有效地提高处理效果。As mentioned above, in the image processing method of the present application, when performing preset processing on the shooting picture, since the preset parameter value of the collected shooting environment is an accurate preset parameter value, therefore, according to the accurate preset parameter value, The target parameter value corresponding to the shooting environment can be accurately determined or generated; and based on the target parameter value, preset processing is performed on the shooting picture corresponding to the shooting environment, which can effectively improve the processing effect.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。为了更清楚地说明本申请的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application. In order to illustrate the technical solution of the present application more clearly, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, the , and other drawings can also be obtained from these drawings.
图1为实现本申请各个实施例的一种智能终端的硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of an intelligent terminal implementing various embodiments of the present application;
图2为本申请提供的一种通信网络系统架构图;FIG. 2 is a system architecture diagram of a communication network provided by the present application;
图3为本申请提供的一种控制器的硬件结构示意图;FIG. 3 is a schematic diagram of a hardware structure of a controller provided by the present application;
图4为本申请提供的一种网络节点的硬件结构示意图;FIG. 4 is a schematic diagram of a hardware structure of a network node provided by the present application;
图5为本申请提供的一种网络节点的硬件结构示意图;FIG. 5 is a schematic diagram of a hardware structure of a network node provided by the present application;
图6为本申请提供的一种控制器的硬件结构示意图;FIG. 6 is a schematic diagram of a hardware structure of a controller provided by the present application;
图7为本申请提供的一种网络节点的硬件结构示意图;FIG. 7 is a schematic diagram of a hardware structure of a network node provided by the present application;
图8为本申请提供的一种图像处理方法的流程示意图;FIG. 8 is a schematic flowchart of an image processing method provided by the present application;
图9为本申请提供的另一种图像处理方法的流程示意图;FIG. 9 is a schematic flowchart of another image processing method provided by the present application;
图10为本申请提供的一种图像处理装置的结构示意图;FIG. 10 is a schematic structural diagram of an image processing device provided by the present application;
图11为本申请提供的另一种图像处理装置的结构示意图。FIG. 11 is a schematic structural diagram of another image processing device provided by the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
本申请的实施方式Embodiment of this application
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素,此外,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the statement "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or device that includes the element. In addition, different implementations of the present application Components, features, and elements with the same name in the example may have the same meaning, or may have different meanings, and the specific meaning shall be determined based on the explanation in the specific embodiment or further combined with the context in the specific embodiment.
应当理解,尽管在本文可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本文范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语"如果"可以被解释成为"在……时"或"当……时"或"响应于确定"。再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示。应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加。本申请使用的术语“或”、“和/或”、“包括以下至少一个”等 可被解释为包括性的,或意味着任一个或任何组合。例如,“包括以下至少一个:A、B、C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A和B和C”,再如,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A和B和C”。仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination". Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms "comprising", "comprising" indicate the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not exclude one or more other features, steps, operations, The existence, occurrence or addition of an element, component, item, species, and/or group. The terms "or", "and/or", "comprising at least one of the following", etc. used in this application can be interpreted as inclusive, or mean any one or any combination. For example, "including at least one of the following: A, B, C" means "any of the following: A; B; C; A and B; A and C; B and C; A and B and C", another example, " A, B or C" or "A, B and/or C" means "any of the following: A; B; C; A and B; A and C; B and C; A and B and C". Exceptions to this definition will only arise when combinations of elements, functions, steps or operations are inherently mutually exclusive in some way.
应该理解的是,虽然本申请中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow charts in the present application are displayed sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figure may include multiple sub-steps or multiple stages, these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution order is not necessarily sequential Instead, it may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if", "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrases "if determined" or "if detected (the stated condition or event)" could be interpreted as "when determined" or "in response to the determination" or "when detected (the stated condition or event) )" or "in response to detection of (a stated condition or event)".
需要说明的是,在本文中,采用了诸如S101、S102等步骤代号,其目的是为了更清楚简要地表述相应内容,不构成顺序上的实质性限制,本领域技术人员在具体实施时,可能会先执行S102后执行S101等,但这些均应在本申请的保护范围之内。It should be noted that, in this article, step codes such as S101 and S102 are used, the purpose of which is to express the corresponding content more clearly and concisely, and does not constitute a substantive limitation on the order. Those skilled in the art may, during specific implementation, S102 will be executed first, followed by S101, etc., but these should be within the protection scope of this application.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或者“单元”的后缀仅为了有利于本申请的说明,其本身没有特定的意义。因此,“模块”、“部件”或者“单元”可以混合地使用。In the following description, the use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating the description of the present application and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be mixedly used.
智能终端可以以各种形式来实施。例如,本申请中描述的智能终端可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、PDA(Personal Digital Assistant,个人数字助理)、PMP(Portable Media Player,便捷式媒体播放器)、导航装置、可穿戴设备、智能手环、计步器等智能终端,以及诸如数字TV、台式计算机等固定终端。Smart terminals can be implemented in various forms. For example, the intelligent terminal described in this application may include such as mobile phone, tablet computer, notebook computer, palmtop computer, PDA (Personal Digital Assistant, personal digital assistant), PMP (Portable Media Player, portable media player), navigation device, Smart terminals such as wearable devices, smart bracelets, and pedometers, as well as fixed terminals such as digital TVs and desktop computers.
后续描述中将以智能终端为例进行说明,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本申请的实施方式的构造也能够应用于固定类型的终端。In the subsequent description, a smart terminal will be taken as an example, and those skilled in the art will understand that, in addition to elements specially used for mobile purposes, the configurations according to the embodiments of the present application can also be applied to fixed-type terminals.
请参阅图1,其为实现本申请各个实施例的一种智能终端的硬件结构示意图,该智能终端100可以包括:RF(Radio Frequency,射频)单元101、WiFi模块102、音频输出单元103、A/V(音频/视频)输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图1中示出的智能终端结构并不构成对智能终端的限定,智能终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 1, which is a schematic diagram of the hardware structure of a smart terminal implementing various embodiments of the present application. The smart terminal 100 may include: an RF (Radio Frequency, radio frequency) unit 101, a WiFi module 102, an audio output unit 103, an /V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that the smart terminal structure shown in Figure 1 does not constitute a limitation on the smart terminal, and the smart terminal may include more or less components than shown in the figure, or combine certain components, or different components layout.
下面结合图1对智能终端的各个部件进行具体的介绍:The following is a specific introduction to each component of the smart terminal in conjunction with Figure 1:
射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将基站 的下行信息接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA2000(Code Division Multiple Access 2000,码分多址2000)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、TD-SCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、FDD-LTE(Frequency Division Duplexing-Long Term Evolution,频分双工长期演进)、TDD-LTE(Time Division Duplexing-Long Term Evolution,分时双工长期演进)和5G等。The radio frequency unit 101 can be used for sending and receiving information or receiving and sending signals during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 110; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communications), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 , Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long-term evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution, time-division duplex long-term evolution) and 5G, etc.
WiFi属于短距离无线传输技术,智能终端通过WiFi模块102可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块102,但是可以理解的是,其并不属于智能终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. Through the WiFi module 102, the smart terminal can help users send and receive emails, browse web pages, and access streaming media, etc., and it provides users with wireless broadband Internet access. Although Fig. 1 shows the WiFi module 102, it can be understood that it is not an essential component of the smart terminal, and can be completely omitted as required without changing the essence of the invention.
音频输出单元103可以在智能终端100处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将射频单元101或WiFi模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与智能终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103可以包括扬声器、蜂鸣器等等。The audio output unit 103 can store the information received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 when the smart terminal 100 is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, or the like. The audio data is converted into an audio signal and output as sound. Moreover, the audio output unit 103 may also provide audio output related to specific functions performed by the smart terminal 100 (for example, call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
A/V输入单元104用于接收音频或视频信号。A/V输入单元104可以包括GPU(Graphics Processing Unit,图形处理器)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的影像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或WiFi模块102进行发送。麦克风1042可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风1042接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。麦克风1042可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/V input unit 104 is used to receive audio or video signals. The A/V input unit 104 may include a GPU (Graphics Processing Unit, graphics processor) 1041 and a microphone 1042, and the graphics processor 1041 is used for still pictures obtained by an image capture device (such as a camera) in video capture mode or image capture mode The image data of the video is processed. The processed image frames may be displayed on the display unit 106 . The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage media) or sent via the radio frequency unit 101 or the WiFi module 102 . The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like operating modes, and can process such sound as audio data. The processed audio (voice) data can be converted into a format transmittable to a mobile communication base station via the radio frequency unit 101 for output in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the process of receiving and transmitting audio signals.
智能终端100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。可选地,光传感器包括环境光传感器及接近传感器,可选地,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在智能终端100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的指纹传感器、压力传感器、虹膜传感 器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The smart terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display when the smart terminal 100 moves to the ear. panel 1061 and/or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for mobile phones, fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, Other sensors such as thermometers and infrared sensors will not be described in detail here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode), and the like.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与智能终端的用户设置以及功能控制有关的键信号输入。可选地,用户输入单元107可包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作),并根据预先设定的程式驱动相应的连接装置。触控面板1071可包括触摸检测装置和触摸控制器两个部分。可选地,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,并能接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。可选地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种,具体此处不做限定。The user input unit 107 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the smart terminal. Optionally, the user input unit 107 may include a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 1071 or near the touch panel 1071). operation), and drive the corresponding connection device according to the preset program. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Optionally, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates , and then sent to the processor 110, and can receive the command sent by the processor 110 and execute it. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Optionally, other input devices 1072 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc., which are not specifically described here. limited.
可选地,触控面板1071可覆盖显示面板1061,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图1中,触控面板1071与显示面板1061是作为两个独立的部件来实现智能终端的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现智能终端的输入和输出功能,具体此处不做限定。Optionally, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits to the processor 110 to determine the type of the touch event, and then the processor 110 determines the touch event according to the touch event. The corresponding visual output is provided on the display panel 1061 . Although in FIG. 1, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the smart terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated. The implementation of the input and output functions of the smart terminal is not specifically limited here.
接口单元108用作至少一个外部装置与智能终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到智能终端100内的一个或多个元件或者可以用于在智能终端100和外部装置之间传输数据。The interface unit 108 is used as an interface through which at least one external device can be connected with the smart terminal 100 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,可选地,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 can be used to store software programs as well as various data. The memory 109 can mainly include a storage program area and a storage data area. Optionally, the storage program area can store an operating system, at least one function required application program (such as a sound playback function, an image playback function, etc.) etc.; the storage data area can be Store data (such as audio data, phone book, etc.) created according to the use of the mobile phone. In addition, the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器110是智能终端的控制中心,利用各种接口和线路连接整个智能终端的各个 部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行智能终端的各种功能和处理数据,从而对智能终端进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,可选地,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the smart terminal, and uses various interfaces and lines to connect various parts of the whole smart terminal, by running or executing software programs and/or modules stored in the memory 109, and calling data stored in the memory 109 , execute various functions of the smart terminal and process data, so as to monitor the smart terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly processes operating systems, user interfaces, and application programs, etc. The demodulation processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110 .
智能终端100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The smart terminal 100 can also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
尽管图1未示出,智能终端100还可以包括蓝牙模块等,在此不再赘述。Although not shown in FIG. 1 , the smart terminal 100 may also include a Bluetooth module, etc., which will not be repeated here.
为了便于理解本申请,下面对本申请的智能终端所基于的通信网络系统进行描述。In order to facilitate the understanding of the present application, the following describes the communication network system on which the smart terminal of the present application is based.
请参阅图2,图2为本申请提供的一种通信网络系统架构图,该通信网络系统为通用移动通信技术的LTE系统,该LTE系统包括依次通讯连接的UE(User Equipment,用户设备)201,E-UTRAN(Evolved UMTS Terrestrial Radio Access Network,演进式UMTS陆地无线接入网)202,EPC(Evolved Packet Core,演进式分组核心网)203和运营商的IP业务204。Please refer to Fig. 2, Fig. 2 is a kind of communication network system architecture diagram that the present application provides, and this communication network system is the LTE system of general mobile communication technology, and this LTE system comprises the UE (User Equipment, user equipment) 201 that communication connects sequentially , E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, Evolved UMTS Terrestrial Radio Access Network) 202, EPC (Evolved Packet Core, Evolved Packet Core Network) 203 and the operator's IP service 204.
可选地,UE201可以是上述终端100,此处不再赘述。Optionally, the UE 201 may be the above-mentioned terminal 100, which will not be repeated here.
E-UTRAN202包括eNodeB2021和其它eNodeB2022等。可选地,eNodeB2021可以通过回程(backhaul)(例如X2接口)与其它eNodeB2022连接,eNodeB2021连接到EPC203,eNodeB2021可以提供UE201到EPC203的接入。 E-UTRAN 202 includes eNodeB 2021 and other eNodeB 2022 and so on. Optionally, the eNodeB 2021 can be connected to other eNodeB 2022 through a backhaul (for example, X2 interface), the eNodeB 2021 is connected to the EPC 203 , and the eNodeB 2021 can provide access from the UE 201 to the EPC 203 .
EPC203可以包括MME(Mobility Management Entity,移动性管理实体)2031,HSS(Home Subscriber Server,归属用户服务器)2032,其它MME2033,SGW(Serving Gate Way,服务网关)2034,PGW(PDN Gate Way,分组数据网络网关)2035和PCRF(Policy and Charging Rules Function,政策和资费功能实体)2036等。可选地,MME2031是处理UE201和EPC203之间信令的控制节点,提供承载和连接管理。HSS2032用于提供一些寄存器来管理诸如归属位置寄存器(图中未示)之类的功能,并且保存有一些有关服务特征、数据速率等用户专用的信息。所有用户数据都可以通过SGW2034进行发送,PGW2035可以提供UE 201的IP地址分配以及其它功能,PCRF2036是业务数据流和IP承载资源的策略与计费控制策略决策点,它为策略与计费执行功能单元(图中未示)选择及提供可用的策略和计费控制决策。EPC203 may include MME (Mobility Management Entity, Mobility Management Entity) 2031, HSS (Home Subscriber Server, Home Subscriber Server) 2032, other MME2033, SGW (Serving Gate Way, Serving Gateway) 2034, PGW (PDN Gate Way, packet data Network Gateway) 2035 and PCRF (Policy and Charging Rules Function, Policy and Charging Functional Entity) 2036, etc. Optionally, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information about service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide UE 201 IP address allocation and other functions, PCRF2036 is the policy and charging control policy decision point of service data flow and IP bearer resources, it is the policy and charging execution function A unit (not shown) selects and provides available policy and charging control decisions.
IP业务204可以包括因特网、内联网、IMS(IP Multimedia Subsystem,IP多媒体子系统)或其它IP业务等。The IP service 204 may include Internet, Intranet, IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) or other IP services.
虽然上述以LTE系统为例进行了介绍,但本领域技术人员应当知晓,本申请不仅仅适用于LTE系统,也可以适用于其他无线通信系统,例如GSM、CDMA2000、WCDMA、TD-SCDMA以及未来新的网络系统(如5G)等,此处不做限定。Although the LTE system is used as an example above, those skilled in the art should know that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new wireless communication systems. The network system (such as 5G), etc., is not limited here.
图3为本申请提供的一种控制器140的硬件结构示意图。该控制器140包括:存储器1401和处理器1402,存储器1401用于存储程序指令,处理器1402用于调用存储器 1401中的程序指令执行上述方法实施例一中控制器所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 3 is a schematic diagram of a hardware structure of a controller 140 provided in the present application. The controller 140 includes: a memory 1401 and a processor 1402, the memory 1401 is used to store program instructions, and the processor 1402 is used to call the program instructions in the memory 1401 to execute the steps performed by the controller in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
可选地,上述控制器还包括通信接口1403,该通信接口1403可以通过总线1404与处理器1402连接。处理器1402可以控制通信接口1403来实现控制器140的接收和发送的功能。Optionally, the foregoing controller further includes a communication interface 1403 , and the communication interface 1403 may be connected to the processor 1402 through a bus 1404 . The processor 1402 can control the communication interface 1403 to implement the receiving and sending functions of the controller 140 .
图4为本申请提供的一种网络节点150的硬件结构示意图。该网络节点150包括:存储器1501和处理器1502,存储器1501用于存储程序指令,处理器1502用于调用存储器1501中的程序指令执行上述方法实施例一中首节点所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 4 is a schematic diagram of a hardware structure of a network node 150 provided in the present application. The network node 150 includes: a memory 1501 and a processor 1502, the memory 1501 is used to store program instructions, and the processor 1502 is used to call the program instructions in the memory 1501 to execute the steps performed by the first node in the first method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
可选地,上述控制器还包括通信接口1503,该通信接口1503可以通过总线1504与处理器1502连接。处理器1502可以控制通信接口1503来实现网络节点150的接收和发送的功能。Optionally, the foregoing controller further includes a communication interface 1503 , and the communication interface 1503 may be connected to the processor 1502 through a bus 1504 . The processor 1502 can control the communication interface 1503 to realize the functions of receiving and sending of the network node 150 .
图5为本申请提供的一种网络节点160的硬件结构示意图。该网络节点160包括:存储器1601和处理器1602,存储器1601用于存储程序指令,处理器1602用于调用存储器1601中的程序指令执行上述方法实施例一中中间节点和尾节点所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 5 is a schematic diagram of a hardware structure of a network node 160 provided in the present application. The network node 160 includes: a memory 1601 and a processor 1602, the memory 1601 is used to store program instructions, and the processor 1602 is used to call the program instructions in the memory 1601 to execute the steps performed by the intermediate node and the tail node in the first method embodiment above, The implementation principles and beneficial effects are similar, and will not be repeated here.
可选地,上述控制器还包括通信接口1603,该通信接口1603可以通过总线1604与处理器1602连接。处理器1602可以控制通信接口1603来实现网络节点160的接收和发送的功能。Optionally, the foregoing controller further includes a communication interface 1603 , and the communication interface 1603 may be connected to the processor 1602 through a bus 1604 . The processor 1602 can control the communication interface 1603 to realize the functions of receiving and sending of the network node 160 .
图6为本申请提供的一种控制器170的硬件结构示意图。该控制器170包括:存储器1701和处理器1702,存储器1701用于存储程序指令,处理器1702用于调用存储器1701中的程序指令执行上述方法实施例二中控制器所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 6 is a schematic diagram of a hardware structure of a controller 170 provided in the present application. The controller 170 includes: a memory 1701 and a processor 1702, the memory 1701 is used to store program instructions, and the processor 1702 is used to call the program instructions in the memory 1701 to execute the steps performed by the controller in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
图7为本申请提供的一种网络节点180的硬件结构示意图。该网络节点180包括:存储器1801和处理器1802,存储器1801用于存储程序指令,处理器1802用于调用存储器1801中的程序指令执行上述方法实施例二中首节点所执行的步骤,其实现原理以及有益效果类似,此处不再进行赘述。FIG. 7 is a schematic diagram of a hardware structure of a network node 180 provided in the present application. The network node 180 includes: a memory 1801 and a processor 1802, the memory 1801 is used to store program instructions, and the processor 1802 is used to invoke the program instructions in the memory 1801 to execute the steps performed by the head node in the second method embodiment above, and its implementation principle and beneficial effects are similar, and will not be repeated here.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例方法的部分步骤。The above-mentioned integrated modules implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (English: processor) to execute the methods of the various embodiments of the present application. partial steps.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个 网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the present application are generated in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line
(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘solid state disk,SSD)等。(DSL)) or wirelessly (such as infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk, SSD), etc.
基于上述智能终端硬件结构以及通信网络系统,提出本申请各个实施例。Based on the above hardware structure of the smart terminal and the communication network system, various embodiments of the present application are proposed.
本申请提供的图像处理方法可以应用于图像拍摄的场景中,例如计算摄像场景。以计算摄像场景为例,在通过计算摄像获取拍摄画面的图像时,为了使得拍摄画面的图像颜色更加接近拍摄画面的真实颜色,在图像拍摄过程中,需要对拍摄画面进行预设处理,使得拍摄的图像尽可能与拍摄画面的真实图像更加接近。The image processing method provided in the present application can be applied to the scene of image shooting, for example, the scene of computing and shooting. Taking the computing camera scene as an example, when the image of the shooting screen is obtained by computing the camera, in order to make the image color of the shooting screen closer to the real color of the shooting screen, during the image shooting process, it is necessary to perform preset processing on the shooting screen so that the shooting The image is as close as possible to the real image of the shooting screen.
在对拍摄画面进行预设处理时,发明人发现至少存在如下问题:在对拍摄画面进行处理时,如何有效地对拍摄画面进行处理,以提高处理效果是至关重要的。因此,为了解决该问题,本申请提供了一种图像处理方法,基于上述智能终端硬件结构以及通信网络系统,提出本申请各个实施例。下面,将通过具体的实施例对本申请提供的图像处理方法进行详细地说明。可以理解的是,下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。When performing preset processing on the shooting images, the inventors have found at least the following problems: when processing the shooting images, how to effectively process the shooting images to improve the processing effect is very important. Therefore, in order to solve this problem, the present application provides an image processing method, and proposes various embodiments of the present application based on the above-mentioned intelligent terminal hardware structure and communication network system. Next, the image processing method provided by the present application will be described in detail through specific embodiments. It can be understood that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
实施例一Embodiment one
图8为本申请提供的一种图像处理方法的流程示意图,该图像处理方法可以由软件和/或硬件装置执行,例如,该硬件装置可以为图像处理装置,该图像处理装置可以智能终端。可选地,请参见图8所示,该图像处理方法可以包括:FIG. 8 is a schematic flowchart of an image processing method provided by the present application. The image processing method may be executed by software and/or hardware devices. For example, the hardware device may be an image processing device, and the image processing device may be an intelligent terminal. Optionally, as shown in Figure 8, the image processing method may include:
S1:根据预设参数值,确定或生成拍摄环境对应的目标参数值。S1: Determine or generate target parameter values corresponding to the shooting environment according to preset parameter values.
可选地,预设参数值可以为采集的灰度像素下的拍摄环境的预设参数值。Optionally, the preset parameter value may be a preset parameter value of the shooting environment under the collected grayscale pixels.
可选地,采集灰度像素下的拍摄环境的预设参数值时,可以在摄像机的模组上附着均光片,由于均光片的作用,使得采集得到的预设参数值,为灰度像素,即中性色环境下的预设参数值。Optionally, when collecting the preset parameter values of the shooting environment under the grayscale pixels, an equalizing sheet can be attached to the camera module. Due to the function of the uniformizing sheet, the preset parameter values collected are grayscale Pixel, which is the preset parameter value in a neutral color environment.
可选地,摄像机可以包括一个模组,该模组上附着均光片,使得可以采集灰度像素下的拍摄环境的预设参数值,后续基于采集灰度像素下的拍摄环境的预设参数值,对拍摄环境的画面进行预设处理,并基于预设处理结果,确定或生成拍摄画面的目标图像;摄像机模组也可以包括两个模组,其中一个模组上附着均光片,另一个模组上未附着均光片,使得基于附着有均光片的模组采集灰度像素下的拍摄环境的预设参数值,后续基于采集灰度像素下的拍摄环境的预设参数值,对拍摄环境的画面进行预设处理;另一个未附着均光片的模组,也可以基于预设处理结果,确定或生成拍摄画面的目标图像,具体可以根据实际需要进行设置。Optionally, the camera may include a module on which a homogenizing sheet is attached, so that the preset parameter values of the shooting environment under the gray-scale pixels can be collected, and subsequent parameters based on the preset parameters of the shooting environment under the gray-scale pixels can be collected. value, carry out preset processing on the picture of the shooting environment, and determine or generate the target image of the shooting picture based on the preset processing result; the camera module can also include two modules, one of which is attached with a uniform light sheet, and the other There is no uniformity sheet attached to a module, so that the preset parameter value of the shooting environment under the grayscale pixel is collected based on the module with the uniformity sheet attached, and the preset parameter value of the shooting environment under the grayscale pixel is subsequently collected based on the preset parameter value of the grayscale pixel. Perform preset processing on the pictures in the shooting environment; another module that is not attached with a uniform film can also determine or generate the target image of the shooting picture based on the preset processing results, which can be set according to actual needs.
由于采集的灰度像素下的拍摄环境的预设参数值为准确的预设参数值,因此,根据该准确的预设参数值,可以准确地确定或生成拍摄环境对应的目标参数值。可选地,根据预设参数值,确定或生成拍摄环境对应的目标参数值时,可以先根据预设参数值,确 定或生成拍摄环境对应的目标光谱;再基于目标光谱,确定或生成目标参数值,从而获取到拍摄环境对应的目标参数值。Since the preset parameter value of the shooting environment under the collected grayscale pixels is an accurate preset parameter value, the target parameter value corresponding to the shooting environment can be accurately determined or generated according to the accurate preset parameter value. Optionally, when determining or generating the target parameter value corresponding to the shooting environment according to the preset parameter value, first determine or generate the target spectrum corresponding to the shooting environment according to the preset parameter value; then determine or generate the target parameter based on the target spectrum value, so as to obtain the target parameter value corresponding to the shooting environment.
可选地,在根据预设参数值,确定或生成拍摄环境对应的目标光谱时,可以先基于预设的预设参数值与光谱之间的映射关系,确定或生成预设参数值对应的光谱;并将预设参数值对应的光谱,确定为目标光谱。Optionally, when determining or generating the target spectrum corresponding to the shooting environment according to the preset parameter value, the spectrum corresponding to the preset parameter value can be determined or generated based on the mapping relationship between the preset preset parameter value and the spectrum ; and determine the spectrum corresponding to the preset parameter value as the target spectrum.
可选地,在获取预设的预设参数值与光谱之间的映射关系时,可以从其他电子设备接收预设的预设参数值与光谱之间的映射关系,也可以从本地存储查找获取预设的预设参数值与光谱之间的映射关系,也可以通过其他方式获取预设的预设参数值与光谱之间的映射关系,具体可以根据实际需要进行设置。Optionally, when acquiring the preset mapping relationship between the preset parameter value and the spectrum, the mapping relationship between the preset preset parameter value and the spectrum can be received from other electronic devices, or can be obtained from local storage The mapping relationship between the preset preset parameter value and the spectrum can also be obtained in other ways, and can be specifically set according to actual needs.
在确定出拍摄环境对应的目标光谱后,就可以基于目标光谱,确定或生成目标参数值。可选地,基于目标光谱,确定或生成目标参数值时,可以先基于预设的光谱与参数值之间的映射关系,确定或生成目标光谱对应的至少一个参数值;从至少一个参数值中确定或生成目标参数值。After the target spectrum corresponding to the shooting environment is determined, the target parameter value can be determined or generated based on the target spectrum. Optionally, when determining or generating the target parameter value based on the target spectrum, at least one parameter value corresponding to the target spectrum can be determined or generated based on the preset mapping relationship between the spectrum and the parameter value; from the at least one parameter value Determine or generate target parameter values.
可选地,在获取光谱与参数值之间的映射关系时,可以从其他电子设备接收预设的光谱与参数值之间的映射关系,也可以从本地存储查找获取预设的光谱与参数值之间的映射关系,也可以通过其他方式获取预设的光谱与参数值之间的映射关系,具体可以根据实际需要进行设置。Optionally, when obtaining the mapping relationship between the spectrum and the parameter value, the preset mapping relationship between the spectrum and the parameter value can be received from other electronic devices, or the preset spectrum and the parameter value can be retrieved from the local storage The mapping relationship between the spectrum and the parameter value can also be obtained in other ways, which can be set according to actual needs.
可选地,在确定或生成光谱与参数值之间的映射关系时,可以先采集全光谱场景下,各个光谱对应的目标参数值;这样在采集到各个光谱对应的目标参数值后,就可以根据各个光谱对应的目标参数值,确定或生成预设的光谱与参数值之间的映射关系。可选地,在采集各个光谱对应的目标参数值时,可以拍摄各个光谱下的灰阶图,并根据拍摄灰阶图时不同的拍摄亮度,且最终成像画面的中性色区域满足R/G=B/G,从而得到各个光谱对应的至少一个参数值,这样就可以基于各个光谱对应的至少一个参数值,确定或生成光谱与参数值之间的映射关系。Optionally, when determining or generating the mapping relationship between spectra and parameter values, you can first collect the target parameter values corresponding to each spectrum in a full-spectrum scenario; in this way, after collecting the target parameter values corresponding to each spectrum, you can According to the target parameter value corresponding to each spectrum, determine or generate the mapping relationship between the preset spectrum and the parameter value. Optionally, when collecting the target parameter values corresponding to each spectrum, the grayscale images under each spectrum can be taken, and according to the different shooting brightness when shooting the grayscale images, and the neutral color area of the final imaging picture satisfies R/G =B/G, so as to obtain at least one parameter value corresponding to each spectrum, so that the mapping relationship between the spectrum and the parameter value can be determined or generated based on the at least one parameter value corresponding to each spectrum.
结合上述描述,考虑到在确定或生成光谱与参数值之间的映射关系时,考虑到了拍摄亮度这个因素,可选地,从至少一个参数值中确定或生成目标参数值时,可以先获取目标拍摄亮度,该目标拍摄亮度可以理解为在拍摄图像时,期望的拍摄亮度,并根据目标拍摄亮度,从至少一个参数值中确定或生成目标参数值。In combination with the above description, considering that when determining or generating the mapping relationship between the spectrum and the parameter value, the factor of shooting brightness is taken into account, optionally, when determining or generating the target parameter value from at least one parameter value, the target parameter value can be obtained first. Shooting brightness, the target shooting brightness can be understood as an expected shooting brightness when shooting an image, and a target parameter value is determined or generated from at least one parameter value according to the target shooting brightness.
考虑到在采集过程中,灰阶图是基于不同的拍摄亮度拍摄的,不同的拍摄亮度对应的目标参数值不同,可选地,根据目标拍摄亮度,从至少一个参数值中确定或生成目标参数值时,可以先基于预设的拍摄亮度与参数值之间的映射关系,从至少一个参数值中确定或生成目标拍摄亮度对应的参数值;并将目标拍摄亮度对应的参数值,确定为目标参数值,从而获取到拍摄环境对应的目标参数值。此外,还可以根据拍摄环境对应的目标参数值,确定拍摄环境对应的色温值。Considering that during the acquisition process, the grayscale image is taken based on different shooting brightness, and different shooting brightness corresponds to different target parameter values, optionally, according to the target shooting brightness, determine or generate the target parameter from at least one parameter value value, the parameter value corresponding to the target shooting brightness can be determined or generated from at least one parameter value based on the preset mapping relationship between the shooting brightness and the parameter value; and the parameter value corresponding to the target shooting brightness can be determined as the target parameter value, so as to obtain the target parameter value corresponding to the shooting environment. In addition, the color temperature value corresponding to the shooting environment may also be determined according to the target parameter value corresponding to the shooting environment.
在获取到拍摄环境对应的目标参数值后,就可以基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理,即执行下述S3:After the target parameter value corresponding to the shooting environment is acquired, preset processing can be performed on the shooting picture corresponding to the shooting environment based on the target parameter value, that is, the following S3 is executed:
S2:基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理。S2: Based on the target parameter value, perform preset processing on the shooting picture corresponding to the shooting environment.
可以看出,本申请中,在对拍摄画面进行预设处理时,由于采集的拍摄环境的预设参数值为准确的预设参数值,因此,根据该准确的预设参数值,可以准确地确定或生成拍摄环境对应的目标参数值;再基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理,可以有效地提高处理效果。It can be seen that in this application, when the preset processing is performed on the shooting picture, since the preset parameter value of the collected shooting environment is an accurate preset parameter value, therefore, according to the accurate preset parameter value, it can be accurately The target parameter value corresponding to the shooting environment is determined or generated; and then based on the target parameter value, preset processing is performed on the shooting picture corresponding to the shooting environment, which can effectively improve the processing effect.
实施例二Embodiment two
图9为本申请提供的另一种图像处理方法的流程示意图,该图像处理方法同样可以由软件和/或硬件装置执行,例如,该硬件装置可以为图像处理装置,该图像处理装置可以智能终端。可选地,请参见图9所示,该图像处理方法可以包括:Fig. 9 is a schematic flow chart of another image processing method provided by the present application. The image processing method can also be executed by software and/or hardware devices. For example, the hardware device can be an image processing device, and the image processing device can be an intelligent terminal. . Optionally, as shown in Figure 9, the image processing method may include:
S10:获取拍摄画面的预设数据。S10: Acquiring preset data of a shooting picture.
可选地,拍摄画面可以为包括灰色像素的拍摄画面;预设数据可以是原始数据,也可以是压缩图像等,本申请以预设数据为原始数据和压缩图像进行示例说明。Optionally, the photographing picture may be a photographing picture including gray pixels; the preset data may be original data or compressed images, and the present application uses the preset data as examples for the original data and compressed images.
可选地,原始数据可以为raw数据,压缩图像可以为jpeg图像。Optionally, the original data may be raw data, and the compressed image may be a jpeg image.
可选地,在获取拍摄画面的预设数据时,可以从其他电子设备接收该拍摄画面的预设数据,也可以从本地存储查找获取该拍摄画面的预设数据,也可以通过其他方式获取该拍摄画面的预设数据,具体可以根据实际需要进行设置。Optionally, when obtaining the preset data of the shooting picture, the preset data of the shooting picture may be received from other electronic devices, or may be searched and obtained from the local storage, or the preset data of the shooting picture may be obtained in other ways The preset data of the shooting picture can be set according to actual needs.
可选地,包括灰色像素的拍摄画面可以为放置有色卡或者灰卡等表征灰色像素的标准物体的画面。通过设置灰色像素,其好处在于:可以使得拍摄画面中包括足够的中性色,这样后续在确定拍摄画面对应的拍摄环境对应的目标参数值时,可以准确地确定出拍摄环境对应的目标参数值,即执行下述S20:Optionally, the photographed picture including gray pixels may be a picture in which a standard object representing gray pixels such as a color card or a gray card is placed. By setting the gray pixels, the advantage is that the shooting picture can include enough neutral colors, so that when determining the target parameter value corresponding to the shooting environment corresponding to the shooting picture, the target parameter value corresponding to the shooting environment can be accurately determined , that is, execute the following S20:
S20:基于预设数据,确定或生成拍摄画面对应的拍摄环境对应的目标参数值。S20: Based on the preset data, determine or generate a target parameter value corresponding to the shooting environment corresponding to the shooting frame.
可选地,基于预设数据,确定或生成拍摄画面对应的拍摄环境对应的目标参数值时,可以先基于预设数据,确定或生成拍摄环境的目标光谱;再基于拍摄环境的目标光谱,确定或生成目标参数值。Optionally, when determining or generating the target parameter value corresponding to the shooting environment corresponding to the shooting screen based on the preset data, the target spectrum of the shooting environment can be determined or generated based on the preset data; and then determined based on the target spectrum of the shooting environment Or generate target parameter values.
可选地,基于预设数据,确定或生成拍摄画面对应的拍摄环境的目标光谱时,考虑到压缩图像中的灰色像素可以快速被定位,因此,可以先基于预设数据中的压缩图像中的灰色像素,确定或生成预设数据中的原始数据中目标灰色像素对应的预设参数值;再基于目标灰色像素对应的预设参数值,确定或生成拍摄环境的目标光谱。Optionally, when determining or generating the target spectrum of the shooting environment corresponding to the shooting picture based on the preset data, considering that the gray pixels in the compressed image can be quickly located, the gray pixels in the compressed image in the preset data can be firstly The gray pixels determine or generate preset parameter values corresponding to the target gray pixels in the raw data in the preset data; and then determine or generate the target spectrum of the shooting environment based on the preset parameter values corresponding to the target gray pixels.
可选地,基于压缩图像中的灰色像素,确定或生成原始数据中目标灰色像素对应的预设参数值时,可以先基于压缩图像中的灰色像素,确定或生成目标灰色像素在原始数据中的位置,再基于目标灰色像素在原始数据中的位置,确定目标灰色像素对应的预设参数值,从而获取到目标灰色像素对应的预设参数值。Optionally, when determining or generating the preset parameter value corresponding to the target gray pixel in the original data based on the gray pixels in the compressed image, first determine or generate the value of the target gray pixel in the original data based on the gray pixels in the compressed image position, and then based on the position of the target gray pixel in the original data, determine the preset parameter value corresponding to the target gray pixel, so as to obtain the preset parameter value corresponding to the target gray pixel.
可选地,基于压缩图像中的灰色像素,确定或生成目标灰色像素在原始数据中的位置时,可以先根据原始数据的尺寸和压缩图像尺寸,确定原始数据和压缩图像之间的尺寸比例;再根据压缩图像中的灰色像素的位置和尺寸比例,确定原始图像中的灰色像素的位置,为了区分压缩图像中的灰色像素,此处可将原始数据中的灰色像素记为目标灰色像素,从而确定或生成目标灰色像素在原始数据中的位置。Optionally, when determining or generating the position of the target gray pixel in the original data based on the gray pixels in the compressed image, the size ratio between the original data and the compressed image can be determined first according to the size of the original data and the size of the compressed image; Then, according to the position and size ratio of the gray pixels in the compressed image, the position of the gray pixels in the original image is determined. In order to distinguish the gray pixels in the compressed image, the gray pixels in the original data can be recorded here as the target gray pixels, so that Determine or generate the location of the gray pixel of interest in the raw data.
上述在基于原始数据和压缩图像,确定或生成拍摄环境的目标光谱后,就可以基于 拍摄环境的目标光谱,确定或生成目标参数值。可选地,基于拍摄环境的目标光谱,确定或生成目标参数值时,可以先基于预设的光谱与参数值之间的映射关系,确定或生成目标光谱对应的至少一个参数值;从至少一个参数值中确定或生成目标参数值。After the target spectrum of the shooting environment is determined or generated based on the raw data and the compressed image, the target parameter value can be determined or generated based on the target spectrum of the shooting environment. Optionally, when determining or generating the target parameter value based on the target spectrum of the shooting environment, at least one parameter value corresponding to the target spectrum can be determined or generated based on the preset mapping relationship between the spectrum and the parameter value; from at least one Determine or generate target parameter values from parameter values.
可选地,在获取光谱与参数值之间的映射关系时,可以从其他电子设备接收预设的光谱与参数值之间的映射关系,也可以从本地存储查找获取预设的光谱与参数值之间的映射关系,也可以通过其他方式获取预设的光谱与参数值之间的映射关系,具体可以根据实际需要进行设置。Optionally, when obtaining the mapping relationship between the spectrum and the parameter value, the preset mapping relationship between the spectrum and the parameter value can be received from other electronic devices, or the preset spectrum and the parameter value can be retrieved from the local storage The mapping relationship between the spectrum and the parameter value can also be obtained in other ways, which can be set according to actual needs.
可选地,在确定或生成光谱与参数值之间的映射关系时,可以先采集全光谱场景下,各个光谱对应的目标参数值;这样在采集到各个光谱对应的目标参数值后,就可以根据各个光谱对应的目标参数值,确定或生成预设的光谱与参数值之间的映射关系。可选地,在采集各个光谱对应的目标参数值时,可以拍摄各个光谱下的灰阶图,并根据拍摄灰阶图时不同的拍摄亮度,且最终成像画面的中性色区域满足R/G=B/G,从而得到各个光谱对应的至少一个参数值,这样就可以基于各个光谱对应的至少一个参数值,确定或生成光谱与参数值之间的映射关系。Optionally, when determining or generating the mapping relationship between spectra and parameter values, you can first collect the target parameter values corresponding to each spectrum in a full-spectrum scenario; in this way, after collecting the target parameter values corresponding to each spectrum, you can According to the target parameter value corresponding to each spectrum, determine or generate the mapping relationship between the preset spectrum and the parameter value. Optionally, when collecting the target parameter values corresponding to each spectrum, the grayscale images under each spectrum can be taken, and according to the different shooting brightness when shooting the grayscale images, and the neutral color area of the final imaging picture satisfies R/G =B/G, so as to obtain at least one parameter value corresponding to each spectrum, so that the mapping relationship between the spectrum and the parameter value can be determined or generated based on the at least one parameter value corresponding to each spectrum.
结合上述描述,考虑到在确定或生成光谱与参数值之间的映射关系时,考虑到了拍摄亮度这个因素,可选地,从至少一个参数值中确定或生成目标参数值时,可以先获取目标拍摄亮度,该目标拍摄亮度可以理解为在拍摄图像时,期望的拍摄亮度,并根据目标拍摄亮度,从至少一个参数值中确定或生成目标参数值。In combination with the above description, considering that when determining or generating the mapping relationship between the spectrum and the parameter value, the factor of shooting brightness is taken into account, optionally, when determining or generating the target parameter value from at least one parameter value, the target parameter value can be obtained first. Shooting brightness, the target shooting brightness can be understood as an expected shooting brightness when shooting an image, and a target parameter value is determined or generated from at least one parameter value according to the target shooting brightness.
考虑到在采集过程中,灰阶图是基于不同的拍摄亮度拍摄的,不同的拍摄亮度对应的目标参数值不同,可选地,根据目标拍摄亮度,从至少一个参数值中确定或生成目标参数值时,可以先基于预设的拍摄亮度与参数值之间的映射关系,从至少一个参数值中确定或生成目标拍摄亮度对应的参数值;并将目标拍摄亮度对应的参数值,确定为目标参数值,从而获取到拍摄环境对应的目标参数值。Considering that during the acquisition process, the grayscale image is taken based on different shooting brightness, and different shooting brightness corresponds to different target parameter values, optionally, according to the target shooting brightness, determine or generate the target parameter from at least one parameter value value, the parameter value corresponding to the target shooting brightness can be determined or generated from at least one parameter value based on the preset mapping relationship between the shooting brightness and the parameter value; and the parameter value corresponding to the target shooting brightness can be determined as the target parameter value, so as to obtain the target parameter value corresponding to the shooting environment.
在获取到拍摄环境对应的目标参数值后,就可以基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理,即执行下述S30:After the target parameter value corresponding to the shooting environment is acquired, preset processing can be performed on the shooting picture corresponding to the shooting environment based on the target parameter value, that is, the following S30 is executed:
S30:基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理。S30: Based on the target parameter value, perform preset processing on the shooting picture corresponding to the shooting environment.
可以看出,本申请中,在对拍摄画面进行预设处理时,获取拍摄画面的预设数据;由于预设数据包含了足够的中性色信息,因此,基于该拍摄画面的预设数据,可以准确地确定或生成拍摄画面对应的拍摄环境对应的目标参数值;再基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理,可以有效地提高处理效果。It can be seen that in this application, when the preset processing is performed on the shooting picture, the preset data of the shooting picture is obtained; since the preset data contains enough neutral color information, based on the preset data of the shooting picture, The target parameter value corresponding to the shooting environment corresponding to the shooting frame can be accurately determined or generated; and then based on the target parameter value, preset processing is performed on the shooting frame corresponding to the shooting environment, which can effectively improve the processing effect.
基于上述图8或图9所示的实施例,在基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理,得到预设处理结果之后,还可以基于该预设处理结果,确定或生成拍摄画面的图像。鉴于采用本申请的技术方案可以有效地提高处理效果,因此,基于该预设处理结果,确定或生成的拍摄画面的图像可以与拍摄画面的真实图像更加接近,从而提高了图像的准确度。Based on the above-mentioned embodiment shown in FIG. 8 or FIG. 9, based on the target parameter value, preset processing is performed on the shooting picture corresponding to the shooting environment, and after the preset processing result is obtained, based on the preset processing result, it is also possible to determine or generate Capture an image of the screen. Considering that the technical solution of the present application can effectively improve the processing effect, based on the preset processing result, the determined or generated image of the shooting frame can be closer to the real image of the shooting frame, thereby improving the accuracy of the image.
实施例三Embodiment three
图10为本申请提供的一种图像处理装置1000的结构示意图,可选地,请参见图10 所示,该图像处理装置1000可以包括:FIG. 10 is a schematic structural diagram of an image processing device 1000 provided in the present application. Optionally, as shown in FIG. 10 , the image processing device 1000 may include:
确定单元1001,用于根据预设参数值,确定或生成拍摄环境对应的目标参数值。The determining unit 1001 is configured to determine or generate target parameter values corresponding to the shooting environment according to preset parameter values.
处理单元1002,用于基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理。The processing unit 1002 is configured to perform preset processing on the shooting picture corresponding to the shooting environment based on the target parameter value.
可选地,确定单元1001包括第一确定模块和第二确定模块。Optionally, the determining unit 1001 includes a first determining module and a second determining module.
第一确定模块,用于根据预设参数值,确定或生成拍摄环境对应的目标光谱。The first determination module is configured to determine or generate a target spectrum corresponding to the shooting environment according to preset parameter values.
第二确定模块,用于基于目标光谱,确定或生成目标参数值。The second determining module is configured to determine or generate target parameter values based on the target spectrum.
可选地,第二确定模块,具体用于基于预设的光谱与参数值之间的映射关系,确定或生成目标光谱对应的至少一个参数值;从至少一个参数值中确定或生成目标参数值。Optionally, the second determination module is specifically configured to determine or generate at least one parameter value corresponding to the target spectrum based on the preset mapping relationship between the spectrum and the parameter value; determine or generate the target parameter value from at least one parameter value .
可选地,第二确定模块,具体用于获取目标拍摄亮度;根据目标拍摄亮度,从至少一个参数值中确定或生成目标参数值。Optionally, the second determining module is specifically configured to acquire target shooting brightness; determine or generate a target parameter value from at least one parameter value according to the target shooting brightness.
可选地,第二确定模块,具体用于基于预设的拍摄亮度与参数值之间的映射关系,从至少一个参数值中确定或生成目标拍摄亮度对应的参数值;将目标拍摄亮度对应的参数值,确定为目标参数值。Optionally, the second determination module is specifically configured to determine or generate a parameter value corresponding to the target shooting brightness from at least one parameter value based on a preset mapping relationship between the shooting brightness and the parameter value; The parameter value is determined as the target parameter value.
可选地,第一确定模块,具体用于基于预设的预设参数值与光谱之间的映射关系,确定或生成预设参数值对应的光谱;将预设参数值对应的光谱,确定为目标光谱。Optionally, the first determining module is specifically configured to determine or generate a spectrum corresponding to a preset parameter value based on a preset mapping relationship between a preset parameter value and a spectrum; determine the spectrum corresponding to a preset parameter value as target spectrum.
可选地,装置还包括采集单元和生成单元。Optionally, the device further includes a collection unit and a generation unit.
采集单元,用于采集全光谱场景下,各个光谱对应的目标参数值。The collection unit is used to collect target parameter values corresponding to each spectrum in a full-spectrum scenario.
生成单元,用于根据各个光谱对应的目标参数值,确定或生成预设的光谱与参数值之间的映射关系。The generating unit is configured to determine or generate a preset mapping relationship between spectra and parameter values according to target parameter values corresponding to each spectrum.
本申请所示的图像处理装置1000,可以执行上述实施例中图像处理方法的技术方案,其实现原理以及有益效果与图像处理方法的实现原理及有益效果类似,可参见图像处理方法的实现原理及有益效果,此处不再进行赘述。The image processing device 1000 shown in this application can execute the technical solution of the image processing method in the above-mentioned embodiments, and its realization principle and beneficial effect are similar to those of the image processing method. Please refer to the realization principle and beneficial effect of the image processing method. Beneficial effects are not repeated here.
实施例四Embodiment four
图11为本申请提供的另一种图像处理装置1100的结构示意图,可选地,请参见图11所示,该图像处理装置1100可以包括:FIG. 11 is a schematic structural diagram of another image processing device 1100 provided by the present application. Optionally, please refer to FIG. 11. The image processing device 1100 may include:
获取单元1101,用于获取拍摄画面的预设数据。The acquiring unit 1101 is configured to acquire preset data of a shooting picture.
确定单元1102,用于基于预设数据,确定或生成拍摄画面对应的拍摄环境对应的目标参数值。The determining unit 1102 is configured to determine or generate a target parameter value corresponding to a shooting environment corresponding to a shooting frame based on preset data.
处理单元1103,用于基于目标参数值,对拍摄环境对应的拍摄画面进行预设处理。The processing unit 1103 is configured to perform preset processing on the shooting picture corresponding to the shooting environment based on the target parameter value.
可选地,确定单元1102包括第一确定模块和第二确定模块;Optionally, the determining unit 1102 includes a first determining module and a second determining module;
第一确定模块,用于基于预设数据,确定或生成拍摄环境的目标光谱。The first determination module is configured to determine or generate the target spectrum of the shooting environment based on preset data.
第二确定模块,用于基于拍摄环境的目标光谱,确定或生成目标参数值。The second determining module is configured to determine or generate target parameter values based on the target spectrum of the shooting environment.
可选地,第一确定模块,具体用于基于预设数据中的压缩图像中的灰色像素,确定或生成预设数据中的原始数据中目标灰色像素对应的预设参数值;基于目标灰色像素对应的预设参数值,确定或生成拍摄环境的目标光谱。Optionally, the first determining module is specifically configured to determine or generate a preset parameter value corresponding to a target gray pixel in the original data in the preset data based on the gray pixels in the compressed image in the preset data; The target spectrum of the shooting environment is determined or generated corresponding to the preset parameter value.
可选地,第一确定模块,具体用于基于压缩图像中的灰色像素,确定或生成目标灰色像素在原始数据中的位置;基于目标灰色像素在原始数据中的位置,确定目标灰色像 素对应的预设参数值。Optionally, the first determination module is specifically configured to determine or generate the position of the target gray pixel in the original data based on the gray pixels in the compressed image; and determine the corresponding position of the target gray pixel based on the position of the target gray pixel in the original data Default parameter value.
可选地,第一确定模块,具体用于根据原始数据的尺寸和压缩图像尺寸,确定原始数据和压缩图像之间的尺寸比例;根据压缩图像中的灰色像素的位置和尺寸比例,确定或生成目标灰色像素在原始数据中的位置。Optionally, the first determination module is specifically configured to determine the size ratio between the original data and the compressed image according to the size of the original data and the size of the compressed image; determine or generate The location of the target gray pixel in the raw data.
可选地,第二确定模块,具体用于基于预设的光谱与参数值之间的映射关系,确定或生成目标光谱对应的至少一个参数值;从至少一个参数值中确定或生成目标参数值。Optionally, the second determination module is specifically configured to determine or generate at least one parameter value corresponding to the target spectrum based on the preset mapping relationship between the spectrum and the parameter value; determine or generate the target parameter value from at least one parameter value .
可选地,第二确定模块,具体用于基于预设的拍摄亮度与参数值之间的映射关系,从至少一个参数值中确定或生成目标拍摄亮度对应的参数值;将目标拍摄亮度对应的参数值,确定为目标参数值。Optionally, the second determination module is specifically configured to determine or generate a parameter value corresponding to the target shooting brightness from at least one parameter value based on a preset mapping relationship between the shooting brightness and the parameter value; The parameter value is determined as the target parameter value.
本申请所示的图像处理装置1100,可以执行上述实施例中图像处理方法的技术方案,其实现原理以及有益效果与图像处理方法的实现原理及有益效果类似,可参见图像处理方法的实现原理及有益效果,此处不再进行赘述。The image processing device 1100 shown in this application can execute the technical solution of the image processing method in the above-mentioned embodiment, and its realization principle and beneficial effect are similar to those of the image processing method. Please refer to the realization principle and beneficial effect of the image processing method. Beneficial effects are not repeated here.
本申请还提供一种智能终端,智能终端包括存储器、处理器,存储器上存储有图像处理方法程序,图像处理方法程序被处理器执行时实现上述任一实施例中的图像处理方法的步骤。The present application also provides an intelligent terminal. The intelligent terminal includes a memory and a processor. The image processing method program is stored in the memory. When the image processing method program is executed by the processor, the steps of the image processing method in any of the above embodiments are implemented.
本申请还提供一种计算机可读存储介质,计算机可读存储介质上存储有图像处理方法程序,图像处理方法程序被处理器执行时实现上述任一实施例中的图像处理方法的步骤。The present application also provides a computer-readable storage medium, on which an image processing method program is stored, and when the image processing method program is executed by a processor, the steps of the image processing method in any of the foregoing embodiments are implemented.
在本申请提供的智能终端和计算机可读存储介质的实施例中,可以包含任一上述图像处理方法实施例的全部技术特征,说明书拓展和解释内容与上述方法的各实施例基本相同,在此不再做赘述。The embodiments of the smart terminal and the computer-readable storage medium provided in this application may contain all the technical features of any of the above-mentioned image processing method embodiments. No more details.
本申请还提供一种计算机程序产品,计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上运行时,使得计算机执行如上各种可能的实施方式中的方法。The present application also provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the computer is made to execute the methods in the above various possible implementation manners.
本申请还提供一种芯片,包括存储器和处理器,存储器用于存储计算机程序,处理器用于从存储器中调用并运行计算机程序,使得安装有芯片的设备执行如上各种可能的实施方式中的方法。The present application also provides a chip, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the device installed with the chip executes the methods in the above various possible implementation modes .
可以理解,上述场景仅是作为示例,并不构成对于本申请提供的技术方案的应用场景的限定,本申请的技术方案还可应用于其他场景。例如,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请提供的技术方案对于类似的技术问题,同样适用。It can be understood that the above scenario is only an example, and does not constitute a limitation on the application scenario of the technical solution provided in this application, and the technical solution of this application can also be applied to other scenarios. For example, those skilled in the art know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.
上述本申请序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above application are for description only, and do not represent the advantages and disadvantages of the embodiments.
本申请方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the present application can be adjusted, combined and deleted according to actual needs.
本申请设备中的单元可以根据实际需要进行合并、划分和删减。Units in the device of the present application can be combined, divided and deleted according to actual needs.
在本申请中,对于相同或相似的术语概念、技术方案和/或应用场景描述,一般只在第一次出现时进行详细描述,后面再重复出现时,为了简洁,一般未再重复阐述,在理解本申请技术方案等内容时,对于在后未详细描述的相同或相似的术语概念、技术方案和/或应用场景描述等,可以参考其之前的相关详细描述。In this application, descriptions of the same or similar terms, concepts, technical solutions and/or application scenarios are generally only described in detail when they appear for the first time, and when they appear repeatedly later, for the sake of brevity, they are generally not repeated. When understanding the technical solutions and other contents of the present application, for the same or similar term concepts, technical solutions and/or application scenario descriptions that are not described in detail later, you can refer to the previous relevant detailed descriptions.
在本申请中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In this application, the description of each embodiment has its own emphasis. For the parts that are not detailed or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
本申请技术方案的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本申请记载的范围。The various technical features of the technical solution of the present application can be combined arbitrarily. For the sake of concise description, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It should be regarded as the scope described in this application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,被控终端,或者网络设备等)执行本申请每个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in one of the above storage media (such as ROM/RAM, magnetic CD, CD), including several instructions to make a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) execute the method of each embodiment of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或至少一个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络,或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或至少一个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、存储盘、磁带)、光介质(例如,DVD),或者半导体介质(例如固态存储盘Solid State Disk(SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. A computer program product comprises one or at least one computer instruction. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the present application are generated in whole or in part. The computer can be a general purpose computer, special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, computer instructions may be transmitted from a website site, computer, server or data center by wire (such as Coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or at least one available medium. Usable media may be magnetic media, (eg, floppy disk, memory disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.

Claims (16)

  1. 一种图像处理方法,其中,包括以下步骤:A kind of image processing method, wherein, comprise the following steps:
    S1:根据预设参数值,确定或生成拍摄环境对应的目标参数值;S1: Determine or generate target parameter values corresponding to the shooting environment according to preset parameter values;
    S2:基于所述目标参数值,对所述拍摄环境对应的拍摄画面进行预设处理。S2: Based on the target parameter value, perform preset processing on the shooting picture corresponding to the shooting environment.
  2. 根据权利要求1所述的方法,其中,所述S1步骤包括:The method according to claim 1, wherein the S1 step comprises:
    根据所述预设参数值,确定或生成所述拍摄环境对应的目标光谱;Determine or generate a target spectrum corresponding to the shooting environment according to the preset parameter value;
    基于所述目标光谱,确定或生成所述目标参数值。Based on the target spectrum, the target parameter value is determined or generated.
  3. 根据权利要求2所述的方法,其中,所述基于所述目标光谱,确定或生成所述目标参数值,包括:The method according to claim 2, wherein said determining or generating said target parameter value based on said target spectrum comprises:
    基于预设的光谱与参数值之间的映射关系,确定或生成所述目标光谱对应的至少一个参数值;Determine or generate at least one parameter value corresponding to the target spectrum based on a preset mapping relationship between the spectrum and the parameter value;
    从所述至少一个参数值中确定或生成所述目标参数值。The target parameter value is determined or generated from the at least one parameter value.
  4. 根据权利要求3所述的方法,其中,所述从所述至少一个参数值中确定或生成所述目标参数值,包括:The method of claim 3, wherein said determining or generating said target parameter value from said at least one parameter value comprises:
    获取目标拍摄亮度;Obtain the shooting brightness of the target;
    根据所述目标拍摄亮度,从所述至少一个参数值中确定或生成所述目标参数值。The target parameter value is determined or generated from the at least one parameter value according to the target shooting brightness.
  5. 根据权利要求4所述的方法,其中,所述根据所述目标拍摄亮度,从所述至少一个参数值中确定或生成所述目标参数值,包括:The method according to claim 4, wherein said determining or generating said target parameter value from said at least one parameter value according to said target shooting brightness comprises:
    基于预设的拍摄亮度与参数值之间的映射关系,从所述至少一个参数值中确定或生成所述目标拍摄亮度对应的参数值;Based on a preset mapping relationship between shooting brightness and parameter values, determine or generate a parameter value corresponding to the target shooting brightness from the at least one parameter value;
    将所述目标拍摄亮度对应的参数值,确定为所述目标参数值。The parameter value corresponding to the target shooting brightness is determined as the target parameter value.
  6. 根据权利要求2至5中任一项所述的方法,其中,所述根据所述预设参数值,确定或生成所述拍摄环境对应的目标光谱,包括:The method according to any one of claims 2 to 5, wherein the determining or generating the target spectrum corresponding to the shooting environment according to the preset parameter value includes:
    基于预设的预设参数值与光谱之间的映射关系,确定或生成所述预设参数值对应的光谱;Determine or generate a spectrum corresponding to the preset parameter value based on the preset mapping relationship between the preset parameter value and the spectrum;
    将所述预设参数值对应的光谱,确定为所述目标光谱。The spectrum corresponding to the preset parameter value is determined as the target spectrum.
  7. 根据权利要求3至5中任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 3 to 5, wherein the method further comprises:
    采集全光谱场景下,各个光谱对应的目标参数值;Collect the target parameter values corresponding to each spectrum in the full spectrum scene;
    根据所述各个光谱对应的目标参数值,确定或生成所述预设的光谱与参数值之间的映射关系。According to the target parameter values corresponding to the respective spectra, a mapping relationship between the preset spectra and parameter values is determined or generated.
  8. 一种图像处理方法,其中,包括:An image processing method, comprising:
    S10:获取拍摄画面的预设数据;S10: Acquiring preset data of the shooting picture;
    S20:基于所述预设数据,确定或生成所述拍摄画面对应的拍摄环境对应的目标参数值;S20: Based on the preset data, determine or generate a target parameter value corresponding to the shooting environment corresponding to the shooting picture;
    S30:基于所述目标参数值,对所述拍摄环境对应的拍摄画面进行预设处理。S30: Based on the target parameter value, perform preset processing on the shooting picture corresponding to the shooting environment.
  9. 根据权利要求8所述的方法,其中,所述S20包括:The method according to claim 8, wherein said S20 comprises:
    基于所述预设数据,确定或生成所述拍摄环境的目标光谱;Determine or generate a target spectrum of the shooting environment based on the preset data;
    基于所述拍摄环境的目标光谱,确定或生成所述目标参数值。The target parameter value is determined or generated based on the target spectrum of the shooting environment.
  10. 根据权利要求9所述的方法,其中,所述基于所述预设数据,确定或生成所述拍摄环境的目标光谱,包括:The method according to claim 9, wherein said determining or generating the target spectrum of said shooting environment based on said preset data comprises:
    基于所述预设数据中的压缩图像中的灰色像素,确定或生成所述预设数据中的原始数据中目标灰色像素对应的预设参数值;determining or generating a preset parameter value corresponding to a target gray pixel in the original data in the preset data based on the gray pixels in the compressed image in the preset data;
    基于所述目标灰色像素对应的预设参数值,确定或生成所述拍摄环境的目标光谱。Based on the preset parameter value corresponding to the target gray pixel, determine or generate the target spectrum of the shooting environment.
  11. 根据权利要求10所述的方法,其中,所述基于所述预设数据中的压缩图像中的灰色像素,确定或生成所述预设数据中的原始数据中目标灰色像素对应的预设参数值,包括:The method according to claim 10, wherein the preset parameter value corresponding to the target gray pixel in the original data in the preset data is determined or generated based on the gray pixels in the compressed image in the preset data ,include:
    基于所述压缩图像中的灰色像素,确定或生成所述目标灰色像素在所述原始数据中的位置;determining or generating the position of the target gray pixel in the original data based on the gray pixels in the compressed image;
    基于所述目标灰色像素在所述原始数据中的位置,确定所述目标灰色像素对应的预设参数值。Based on the position of the target gray pixel in the original data, a preset parameter value corresponding to the target gray pixel is determined.
  12. 根据权利要求11所述的方法,其中,所述基于所述压缩图像中的灰色像素,确定或生成所述目标灰色像素在所述原始数据中的位置,包括:The method according to claim 11, wherein the determining or generating the position of the target gray pixel in the original data based on the gray pixels in the compressed image comprises:
    根据所述原始数据的尺寸和所述压缩图像尺寸,确定所述原始数据和所述压缩图像之间的尺寸比例;determining a size ratio between the original data and the compressed image according to the size of the original data and the size of the compressed image;
    根据所述压缩图像中的灰色像素的位置和所述尺寸比例,确定或生成所述目标灰色像素在所述原始数据中的位置。Determine or generate the position of the target gray pixel in the original data according to the position of the gray pixel in the compressed image and the size ratio.
  13. 根据权利要求9至12中任一项所述的方法,其中,所述基于所述拍摄环境的目标光谱,确定或生成所述目标参数值,包括:The method according to any one of claims 9 to 12, wherein the determining or generating the target parameter value based on the target spectrum of the shooting environment includes:
    基于预设的光谱与参数值之间的映射关系,确定或生成所述目标光谱对应的至少一个参数值;Determine or generate at least one parameter value corresponding to the target spectrum based on a preset mapping relationship between the spectrum and the parameter value;
    从所述至少一个参数值中确定或生成所述目标参数值。The target parameter value is determined or generated from the at least one parameter value.
  14. 根据权利要求13所述的方法,其中,所述根据所述目标拍摄亮度,从所述至少一个参数值中确定或生成所述目标参数值,包括:The method according to claim 13, wherein said determining or generating said target parameter value from said at least one parameter value according to said target shooting brightness comprises:
    基于预设的拍摄亮度与参数值之间的映射关系,从所述至少一个参数值中确定或生成所述目标拍摄亮度对应的参数值;Determine or generate a parameter value corresponding to the target shooting brightness from the at least one parameter value based on a preset mapping relationship between shooting brightness and parameter values;
    将所述目标拍摄亮度对应的参数值,确定为所述目标参数值。The parameter value corresponding to the target shooting brightness is determined as the target parameter value.
  15. 一种智能终端,其中,所述智能终端包括:存储器、处理器,可选地,所述存储器上存储有图像处理方法程序,所述图像处理方法程序被所述处理器执行时实现如权利要求1所述的图像处理方法的步骤。An intelligent terminal, wherein, the intelligent terminal includes: a memory, a processor, optionally, an image processing method program is stored in the memory, and when the image processing method program is executed by the processor, the following claims are realized: 1. The steps of the image processing method.
  16. 一种计算机可读存储介质,其中,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1所述的图像处理方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of the image processing method according to claim 1 are implemented.
PCT/CN2021/138110 2021-12-14 2021-12-14 Image processing method, smart terminal and storage medium WO2023108443A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/138110 WO2023108443A1 (en) 2021-12-14 2021-12-14 Image processing method, smart terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/138110 WO2023108443A1 (en) 2021-12-14 2021-12-14 Image processing method, smart terminal and storage medium

Publications (1)

Publication Number Publication Date
WO2023108443A1 true WO2023108443A1 (en) 2023-06-22

Family

ID=86774948

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/138110 WO2023108443A1 (en) 2021-12-14 2021-12-14 Image processing method, smart terminal and storage medium

Country Status (1)

Country Link
WO (1) WO2023108443A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090102943A1 (en) * 2007-10-22 2009-04-23 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and image sensing apparatus
JP2017212640A (en) * 2016-05-26 2017-11-30 日本放送協会 Color adjustment device and color adjustment system
CN107846554A (en) * 2017-10-31 2018-03-27 努比亚技术有限公司 A kind of image processing method, terminal and computer-readable recording medium
CN110121064A (en) * 2019-05-15 2019-08-13 深圳市道通智能航空技术有限公司 A kind of image color adjusting method, device and unmanned plane
US20210281713A1 (en) * 2018-06-12 2021-09-09 Omron Corporation Image processing device, image processing method, image sensor, and non-transitory computer readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090102943A1 (en) * 2007-10-22 2009-04-23 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and image sensing apparatus
JP2017212640A (en) * 2016-05-26 2017-11-30 日本放送協会 Color adjustment device and color adjustment system
CN107846554A (en) * 2017-10-31 2018-03-27 努比亚技术有限公司 A kind of image processing method, terminal and computer-readable recording medium
US20210281713A1 (en) * 2018-06-12 2021-09-09 Omron Corporation Image processing device, image processing method, image sensor, and non-transitory computer readable recording medium
CN110121064A (en) * 2019-05-15 2019-08-13 深圳市道通智能航空技术有限公司 A kind of image color adjusting method, device and unmanned plane

Similar Documents

Publication Publication Date Title
WO2023005060A1 (en) Image capture method, mobile terminal and storage medium
CN113179369B (en) Shot picture display method, mobile terminal and storage medium
CN107239208B (en) Method, apparatus, and computer-readable storage medium for processing screenshot
WO2024001853A1 (en) Processing method, intelligent terminal and storage medium
WO2023108444A1 (en) Image processing method, intelligent terminal, and storage medium
WO2023284218A1 (en) Photographing control method, and mobile terminal and storage medium
WO2022262259A1 (en) Image processing method and apparatus, and device, medium and chip
CN112532786B (en) Image display method, terminal device, and storage medium
CN113325981B (en) Processing method, mobile terminal and storage medium
WO2022252158A1 (en) Photographing method, mobile terminal and readable storage medium
CN115914719A (en) Screen projection display method, intelligent terminal and storage medium
WO2023108443A1 (en) Image processing method, smart terminal and storage medium
CN108335301B (en) Photographing method and mobile terminal
CN107566745B (en) Shooting method, terminal and computer readable storage medium
WO2022133967A1 (en) Photographing method, and terminal and computer storage medium
CN112230825A (en) Sharing method, mobile terminal and storage medium
WO2023108442A1 (en) Image processing method, smart terminal, and storage medium
WO2023050413A1 (en) Image processing method, intelligent terminal, and storage medium
WO2023102934A1 (en) Data processing method, intelligent terminal and storage medium
CN114125151B (en) Image processing method, mobile terminal and storage medium
WO2024045145A1 (en) Icon display control method, mobile terminal and storage medium
CN110110138B (en) Preservation method, mobile terminal and computer readable storage medium
WO2022261897A1 (en) Processing method, and mobile terminal and storage medium
CN107479747B (en) Touch display method and device and computer storage medium
WO2024055333A1 (en) Image processing method, smart device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21967583

Country of ref document: EP

Kind code of ref document: A1