本发明的实施方式Embodiments of the invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for purposes of illustration and description However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the application.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solutions described in the present application, the following description will be made by way of specific embodiments.
实施例一Embodiment 1
图1示出了本申请实施例一提供的图片匹配方法的实现流程,详述如下:FIG. 1 is a flowchart showing an implementation process of a picture matching method according to Embodiment 1 of the present application, which is described in detail as follows:
步骤S101,获取源图片中目标物体的外形特征信息和色调特征信息,生成表征所述目标物体的外形特征信息和色调特征信息的特征描述子;所述源图片为至少一幅图片。Step S101: Acquire shape characteristic information and tone feature information of the target object in the source image, and generate a feature descriptor that represents the shape feature information and the tone feature information of the target object; the source picture is at least one picture.
例如,所述源图片可以为某个文件夹中的一幅指定的图片,该指定的图片可以为所述目标物体的任一角度的图片,对此不作限定。其中,所述目标物体可以为任意物体、动物等,对此不作限制。例如,所述目标物体为桌椅等商品。For example, the source image may be a specified image in a certain folder, and the specified image may be a picture of any angle of the target object, which is not limited thereto. The target object may be any object, animal, etc., and is not limited thereto. For example, the target object is a product such as a table or chair.
参见图2,一个实施例中,步骤S101中所述的生成表征所述目标物体的外形特征信息和色调特征信息的特征描述子可以通过以下过程实现:Referring to FIG. 2, in one embodiment, generating a feature descriptor that represents the shape feature information and the tone feature information of the target object in step S101 can be implemented by the following process:
步骤S201,构建所述源图片中目标物体的外形特征信息和色调特征信息的尺度空间图像,并检测所述尺度空间图像中的特征点。Step S201, constructing a scale space image of the shape feature information and the hue feature information of the target object in the source picture, and detecting the feature points in the scale space image.
其中,可以通过sift(Scale-invariant
feature transform,尺度不变特征变换)算法采集所述源图片中目标物体的外形特征信息和色调特征信息,识别所述目标物体的外形特征和色调特征,从而对所述目标物体进行识别。Among them, you can pass sift (Scale-invariant
The feature transform (scale invariant feature transform) algorithm acquires the shape feature information and the hue feature information of the target object in the source image, and identifies the shape feature and the hue feature of the target object, thereby identifying the target object.
在构建所述源图片中目标物体的外形特征信息和色调特征信息的尺度空间图像之后,对所述尺度空间图像中的特征点进行检测。本实施例中,所述特征点可以为极值点,但并不以此为限。After constructing the shape feature information of the target object and the scale space image of the hue feature information in the source picture, the feature points in the scale space image are detected. In this embodiment, the feature points may be extreme points, but are not limited thereto.
本步骤中,可以通过将所述源图片与可变尺度的高斯函数进行卷积,从而生成所述尺度空间图像。然后,使用高斯差分函数与原始图像进行卷积,生成高斯差分图像序列。在高斯差分图像序列中,对比每个当前像素与邻域的当前尺度和相邻尺度等多个像素点的最大值和最小值,从而获得极值点。In this step, the scale space image may be generated by convolving the source picture with a variable-scale Gaussian function. Then, a Gaussian difference function is used to convolve with the original image to generate a Gaussian difference image sequence. In the Gaussian difference image sequence, the maximum and minimum values of a plurality of pixel points such as the current scale and the adjacent scale of each current pixel and the neighborhood are compared, thereby obtaining an extreme point.
步骤S202,对所述尺度空间中的各个特征点进行过滤和定位,获取满足预设条件的稳定特征点。Step S202: Filter and locate each feature point in the scale space, and obtain a stable feature point that satisfies a preset condition.
其中,可以设置过滤条件,对所述尺度空间中的各个特征点进行过滤和定位,从而去除在步骤S201中检测出的各个特征点中不符合预设条件的特征点,获得稳定特征点。The filtering condition may be set to filter and locate each feature point in the scale space, so that the feature points that do not meet the preset condition among the feature points detected in step S201 are removed, and the stable feature points are obtained.
具体的,可以对各个特征点进行定位,以检测该特征点是否为边缘点,若该特征点是边缘点,则将该特征点过滤掉,否则保留该特征点。Specifically, each feature point may be positioned to detect whether the feature point is an edge point. If the feature point is an edge point, the feature point is filtered out, otherwise the feature point is retained.
步骤S203,对各个所述稳定特征点设置方向,生成表征所述目标物体的外形特征信息和色调特征信息的特征描述子。Step S203, setting a direction for each of the stable feature points, and generating a feature descriptor that represents the shape feature information and the tone feature information of the target object.
具体的,可以利用稳定特征点邻域像素的梯度方向分布特性为每个稳定特征点设置方向,使所述稳定特征点具有旋转不变性。Specifically, a direction of each of the stable feature points may be set by using a gradient direction distribution characteristic of the neighboring pixels of the stable feature point, so that the stable feature point has rotation invariance.
其中,所述为各个所述稳定特征点设置方向,生成表征所述目标物体的外形特征信息和色调特征信息的特征描述子具体为:以各个所述稳定特征点为中心取预设大小的邻域作为采样窗口,将采样点与相应的所述稳定特征点的相对方向通过高斯加权后归入方向直方图,得到所述特征描述子。The method for setting a direction for each of the stable feature points, and generating a feature descriptor for characterizing the shape feature information and the tone feature information of the target object is specifically: taking a predetermined size adjacent to each of the stable feature points The domain is used as a sampling window, and the relative orientation of the sampling point and the corresponding stable feature point is Gaussian weighted and then classified into the direction histogram to obtain the feature descriptor.
例如,以各个所述稳定特征点为中心取16*16的邻域作为采样窗口,将采样点与相应的稳定特征点的相对方向通过高斯加权后归入8个bin的方向直方图,得到4*4*8的128维特征描述子。For example, a neighborhood of 16*16 is taken as a sampling window centering on each of the stable feature points, and the relative direction of the sampling point and the corresponding stable feature point is Gaussian weighted and then classified into a direction histogram of 8 bins to obtain 4 *4*8 128-dimensional feature descriptor.
步骤S102,根据所述特征描述子,将目标文件夹中所包含的各幅待处理图片与所述源图片进行匹配。Step S102: Match each of the to-be-processed pictures included in the target folder with the source picture according to the feature descriptor.
参见图3,一个实施例中,步骤S102具体可以通过以下过程实现:Referring to FIG. 3, in an embodiment, step S102 can be specifically implemented by the following process:
步骤S301,获取各幅所述待处理图片中待匹配物体的特征描述子。Step S301: Acquire feature descriptors of objects to be matched in each of the to-be-processed pictures.
本步骤中,获取各幅待处理图片中待匹配物体的特征描述子的具体过程如下:In this step, the specific process of obtaining the feature descriptors of the objects to be matched in each picture to be processed is as follows:
构建所述待处理图片中待匹配物体的外形特征信息和色调特征信息的尺度空间图像,并检测所述尺度空间图像中的特征点;Constructing a scale space image of the shape feature information and the tone feature information of the object to be matched in the to-be-processed image, and detecting feature points in the scale space image;
对所述尺度空间中的各个特征点进行过滤和定位,获取满足预设条件的稳定特征点;Filtering and locating each feature point in the scale space to obtain a stable feature point that satisfies a preset condition;
对各个所述稳定特征点设置方向,生成表征所述待匹配物体的外形特征信息和色调特征信息的特征描述子。A direction is set for each of the stable feature points, and a feature descriptor that represents the shape feature information and the tone feature information of the object to be matched is generated.
以上每个步骤的详细过程在此不再赘述,可以参考步骤S201至S203的过程。The detailed process of each step above is not described herein again, and the processes of steps S201 to S203 can be referred to.
步骤S302,获取所述待处理图片的各个特征描述子中与所述源图片的特征描述子的欧式距离最近的两个特征描述子。Step S302: Obtain two feature descriptors in the feature descriptors of the to-be-processed picture that are closest to the Euclidean distance of the feature descriptor of the source picture.
其中,所述待处理图片的各个特征描述子为所述待处理图片中待匹配物体的各个特征描述子。所述源图片的特征描述子为所述源图片中目标物体的特征描述子。对于一幅待处理图片的各个特征描述子,与源图片中目标物体的特征描述子之间的欧氏距离都可以根据特征描述子的方向和位置计算出来。通过计算出一幅待处理图片中待匹配物体的各个特征描述子到源图片中目标物体的特征描述子之间的欧氏距离,然后获取该待处理图片中与源图片的特征描述子之间的欧氏距离最小的两个特征描述子。Each feature descriptor of the to-be-processed picture is a feature descriptor of the object to be matched in the to-be-processed picture. The feature descriptor of the source picture is a feature descriptor of the target object in the source picture. For each feature descriptor of a picture to be processed, the Euclidean distance between the feature descriptors of the target object in the source picture can be calculated according to the direction and position of the feature descriptor. Calculating the Euclidean distance between each feature descriptor of the object to be matched in the image to be processed to the feature descriptor of the target object in the source image, and then obtaining the feature descriptor between the image to be processed and the source image The two feature descriptors with the smallest Euclidean distance.
步骤S303,根据所获取的所述待处理图片的两个特征描述子与所述源图片的特征描述子之间的欧式距离关系,确定各幅待处理图片中待匹配物体与所述源图片中目标物体之间的匹配关系。Step S303, determining, according to the acquired Euclidean distance relationship between the two feature descriptors of the to-be-processed picture and the feature descriptor of the source picture, determining the object to be matched and the source picture in each picture to be processed. The matching relationship between the target objects.
其中,所述待处理图片的两个特征描述子分别为第一特征描述子和第二特征描述子,且所述第一特征描述子到所述源图片的特征描述子之间的第一欧式距离大于所述第二特征描述子到所述源图片的特征描述子之间的第二欧式距离。指定特征描述子为所述源图片中目标物体的特征描述子。步骤S303具体可以为:在所述第二欧式距离与所述第一欧氏距离的比值小于预设值时,判定所述待处理图片与所述源图片相匹配。本实施例中,预设值可以为大于0.6小于0.9的数值。更具体的,该预设值可以为大于0.6小于0.7的数值。The two feature descriptors of the to-be-processed picture are a first feature descriptor and a second feature descriptor, respectively, and the first feature descriptor is first European between the feature descriptors of the source image. The distance is greater than a second Euclidean distance between the second feature descriptor and a feature descriptor of the source picture. The specified feature descriptor is a feature descriptor of the target object in the source picture. The step S303 may be specifically: when the ratio of the second Euclidean distance to the first Euclidean distance is less than a preset value, determining that the to-be-processed picture matches the source picture. In this embodiment, the preset value may be a value greater than 0.6 and less than 0.9. More specifically, the preset value may be a value greater than 0.6 and less than 0.7.
可以理解的,该预设值变小,匹配的特征点数会变小,但稳定性会变高。It can be understood that the preset value becomes smaller, and the number of matched feature points becomes smaller, but the stability becomes higher.
步骤S103,将匹配度大于阈值的待处理图片作为目标图片进行发布。Step S103: Publish the to-be-processed picture whose matching degree is greater than the threshold as the target picture.
具体的,可以将与源图片的匹配度大于阈值的待处理图片,放入目标图片集合中,并在将各个待处理图片均与所述源图片匹配完成后,将目标图片集合中的各个目标图片进行发布,生成目标物体的图片信息。其中,目标图片为与源图片的匹配度大于阈值的待处理图片。Specifically, the to-be-processed picture with the matching degree of the source picture that is greater than the threshold may be put into the target picture set, and after each picture to be processed is matched with the source picture, each target in the target picture set is obtained. The image is published to generate image information of the target object. The target picture is a to-be-processed picture whose matching degree with the source picture is greater than a threshold.
上述图片匹配方法,获取源图片中目标物体的外形特征信息和色调特征信息,并生成表征所述目标物体的外形特征信息和色调特征信息的特征描述子,根据所述特征描述子,将目标文件夹中所包含的各幅待处理图片与所述源图片进行匹配,最后将匹配度大于阈值的待处理图片作为目标图片进行发布,从而能够减少对目标物体的所有图片进行逐一点选需要的时间,同时能够减少用户的操作,提高用户的体验。The image matching method obtains the shape feature information and the tone feature information of the target object in the source image, and generates a feature descriptor that represents the shape feature information and the tone feature information of the target object, and according to the feature descriptor, the target file Each of the to-be-processed pictures included in the folder is matched with the source picture, and finally the to-be-processed picture whose matching degree is greater than the threshold is released as the target picture, thereby reducing the time required for selecting all the pictures of the target object one by one. At the same time, it can reduce the user's operation and improve the user's experience.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence of the steps in the above embodiments does not mean that the order of execution is performed. The order of execution of each process should be determined by its function and internal logic, and should not be construed as limiting the implementation process of the embodiments of the present application.
实施例二Embodiment 2
对应于上文实施例所述的图片匹配方法,图4示出了本申请实施例提供的图片匹配程序的运行环境示意图。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the picture matching method described in the foregoing embodiment, FIG. 4 is a schematic diagram showing an operating environment of the picture matching program provided by the embodiment of the present application. For the convenience of explanation, only the parts related to the present embodiment are shown.
在本实施例中,所述的图片匹配程序400安装并运行于电子设备40中。该电子设备40可以是移动终端、掌上电脑、服务器等。该电子设备40可包括,但不仅限于,存储器401和处理器402。图4仅示出了具有组件401-402的电子设备40,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In the embodiment, the picture matching program 400 is installed and runs in the electronic device 40. The electronic device 40 can be a mobile terminal, a palmtop computer, a server, or the like. The electronic device 40 can include, but is not limited to, a memory 401 and a processor 402. FIG. 4 shows only electronic device 40 having components 401-402, but it should be understood that not all illustrated components may be implemented and that more or fewer components may be implemented instead.
所述存储器401在一些实施例中可以是所述电子设备40的内部存储单元,例如该电子设备40的硬盘或内存。所述存储器401在另一些实施例中也可以是所述电子设备40的外部存储设备,例如所述电子设备40上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器401还可以既包括所述电子设备40的内部存储单元也包括外部存储设备。所述存储器401用于存储安装于所述电子设备40的应用软件及各类数据,例如所述图片匹配程序400的程序代码等。所述存储器401还可以用于暂时地存储已经输出或者将要输出的数据。The memory 401 may be an internal storage unit of the electronic device 40, such as a hard disk or memory of the electronic device 40, in some embodiments. The memory 401 may also be an external storage device of the electronic device 40 in other embodiments, such as a plug-in hard disk equipped on the electronic device 40, a smart memory card (SMC), and a secure digital device. (Secure Digital, SD) card, flash card, etc. Further, the memory 401 may also include both an internal storage unit of the electronic device 40 and an external storage device. The memory 401 is configured to store application software and various types of data installed in the electronic device 40, such as program codes of the picture matching program 400. The memory 401 can also be used to temporarily store data that has been output or is about to be output.
所述处理器402在一些实施例中可以是一中央处理器(Central
Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行所述存储器401中存储的程序代码或处理数据,例如执行所述图片匹配程序400等。The processor 402, in some embodiments, can be a central processor (Central)
A processing unit (CPU), a microprocessor or other data processing chip for running program code or processing data stored in the memory 401, such as executing the picture matching program 400 and the like.
该电子设备40还可包括显示器。所述显示器在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic
Light-Emitting Diode,有机发光二极管)触摸器等。所述显示器用于显示在所述电子设备40中处理的信息以及用于显示可视化的用户界面,例如应用菜单界面、应用图标界面等。所述电子设备40的部件401-402通过系统总线相互通信。The electronic device 40 can also include a display. The display may be an LED display, a liquid crystal display, a touch liquid crystal display, and an OLED (Organic) in some embodiments.
Light-Emitting Diode, organic light-emitting diodes, etc. The display is for displaying information processed in the electronic device 40 and a user interface for displaying visualizations, such as an application menu interface, an application icon interface, and the like. The components 401-42 of the electronic device 40 communicate with one another via a system bus.
请参阅图5,是本申请实施例提供的图片匹配程序400的功能模块图。在本实施例中,所述的图片匹配程序400可以被分割成一个或多个模块,所述一个或者多个模块被存储于所述存储器401中,并由一个或多个处理器(本实施例为所述处理器402)所执行,以完成本申请。例如,在图5中,所述的图片匹配程序400可以被分割成信息获取模块501、匹配模块502和处理模块503。本申请所称的模块是指能够完成特定功能的一系列计算机可读指令指令段,比程序更适合于描述所述图片匹配程序400在所述电子设备40中的执行过程。以下描述将具体介绍所述模块501-503的功能。Please refer to FIG. 5 , which is a functional block diagram of a picture matching program 400 provided by an embodiment of the present application. In this embodiment, the picture matching program 400 may be divided into one or more modules, and the one or more modules are stored in the memory 401 and executed by one or more processors (this implementation) For example, the processor 402) is executed to complete the application. For example, in FIG. 5, the picture matching program 400 can be divided into an information acquisition module 501, a matching module 502, and a processing module 503. A module as referred to herein refers to a series of computer readable instruction instructions that are capable of performing a particular function, and are more suitable than the program to describe the execution of the picture matching program 400 in the electronic device 40. The following description will specifically describe the functions of the modules 501-503.
其中,信息获取模块501,用于获取源图片的外形特征信息和色调特征信息,生成表征所述目标物体的外形特征信息和色调特征信息的特征描述子;所述源图片为至少一幅图片。匹配模块502,用于根据所述特征描述子,将目标文件夹中所包含的各幅待处理图片与所述源图片进行匹配。处理模块503,用于将匹配度大于阈值的待处理图片作为目标图片进行发布。The information acquiring module 501 is configured to acquire the shape feature information and the tone feature information of the source image, and generate a feature descriptor that represents the shape feature information and the tone feature information of the target object; the source image is at least one image. The matching module 502 is configured to match each of the to-be-processed pictures included in the target folder with the source picture according to the feature descriptor. The processing module 503 is configured to publish the to-be-processed picture whose matching degree is greater than the threshold as the target picture.
可选的,所述信息获取模块501可以被分割为构建单元601、处理单元602和特征描述子生成单元603。Optionally, the information acquiring module 501 may be divided into a building unit 601, a processing unit 602, and a feature descriptor generating unit 603.
其中,构建单元601,用于构建所述源图片的外形特征信息和色调特征信息的尺度空间图像,并检测所述尺度空间图像中的特征点。处理单元602,用于对所述尺度空间中的各个特征点进行过滤和定位,获取满足预设条件的稳定特征点。特征描述子生成单元603,用于对各个所述稳定特征点设置方向,生成表征外形特征信息和色调特征信息的特征描述子。The constructing unit 601 is configured to construct the scale feature image of the source image and the scale space image of the tone feature information, and detect feature points in the scale space image. The processing unit 602 is configured to filter and locate each feature point in the scale space, and obtain a stable feature point that meets a preset condition. The feature descriptor generation unit 603 is configured to set a direction for each of the stable feature points, and generate a feature descriptor that represents the shape feature information and the tone feature information.
作为一种可实施方式,特征描述子生成单元603具体用于:以各个所述稳定特征点为中心取预设大小的邻域作为采样窗口,将采样点与相应的所述稳定特征点的相对方向通过高斯加权后归入方向直方图,得到所述特征描述子。As an implementation manner, the feature description sub-generating unit 603 is specifically configured to: take a neighborhood of a preset size centering on each of the stable feature points as a sampling window, and compare the sampling point with the corresponding stable feature point. The direction is Gaussian weighted and then classified into the direction histogram to obtain the feature descriptor.
可选的,所述匹配模块502可以被分割为获取单元701和匹配确定单元702。Optionally, the matching module 502 can be divided into an obtaining unit 701 and a matching determining unit 702.
其中,获取单元701,用于获取各幅所述待处理图片中待匹配物体的特征描述子,以及获取所述待处理图片的各个特征描述子中与所述源图片的特征描述子距离最近的两个特征描述子。匹配确定单元702,用于根据所获取的所述待处理图片的两个特征描述子与所述源图片的特征描述子之间的欧式距离关系,确定各幅待处理图片与所述源图片之间的匹配关系。The obtaining unit 701 is configured to acquire a feature descriptor of the object to be matched in each of the to-be-processed images, and obtain a feature identifier of the image to be processed that is closest to the feature descriptor of the source image. Two feature descriptors. The matching determining unit 702 is configured to determine, according to the acquired Euclidean distance relationship between the two feature descriptors of the to-be-processed picture and the feature descriptor of the source picture, each picture to be processed and the source picture Matching relationship between.
作为一种可实施方式,所述待处理图片的两个特征描述子分别为第一特征描述子和第二特征描述子,且所述第一特征描述子到所述源图片的特征描述子之间的第一欧式距离大于所述第二特征描述子到所述源图片的特征描述子之间的第二欧式距离。As an implementation manner, the two feature descriptors of the to-be-processed picture are a first feature descriptor and a second feature descriptor, respectively, and the first feature descriptor is to a feature descriptor of the source image. The first Euclidean distance between the two is greater than the second Euclidean distance between the second feature descriptor and the feature descriptor of the source picture.
匹配确定单元702具体用于:在所述第二欧式距离与所述第一欧氏距离的比值小于预设值时,判定所述待处理图片与所述源图片相匹配。The matching determining unit 702 is specifically configured to: when the ratio of the second Euclidean distance to the first Euclidean distance is less than a preset value, determine that the to-be-processed picture matches the source picture.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be clearly understood by those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units according to needs. The module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware. Formal implementation can also be implemented in the form of software functional units. In addition, the specific names of the respective functional units and modules are only for the purpose of facilitating mutual differentiation, and are not intended to limit the scope of protection of the present application. For the specific working process of the unit and the module in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in the specific embodiments may be referred to the related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/电子设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/电子设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the device/electronic device embodiment described above is merely illustrative. For example, the division of the module or unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units. Or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only
Memory)、随机存取存储器(RAM,Random
Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by computer readable instructions, which may be stored in a computer readable storage medium. The computer readable instructions, when executed by a processor, may implement the steps of the various method embodiments described above. Wherein, the computer readable instructions comprise computer readable instruction code, which may be in the form of source code, an object code form, an executable file or some intermediate form or the like. The computer readable medium can include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only)
Memory), random access memory (RAM, Random)
Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.