CN105335940A - Method and apparatus for realizing image filter effect and server - Google Patents
Method and apparatus for realizing image filter effect and server Download PDFInfo
- Publication number
- CN105335940A CN105335940A CN201410404749.2A CN201410404749A CN105335940A CN 105335940 A CN105335940 A CN 105335940A CN 201410404749 A CN201410404749 A CN 201410404749A CN 105335940 A CN105335940 A CN 105335940A
- Authority
- CN
- China
- Prior art keywords
- algorithm
- basic algorithm
- filtering effects
- execution sequence
- image
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
本发明的实施例公开一种实现图像的滤镜效果的方法、装置及服务器,能够提高滤镜效果的开发效率。所述方法包括:根据所述用户选择的滤镜效果,按照实现所述选择的滤镜效果的基础算法以及所述基础算法的执行顺序,执行所述基础算法对要处理的图像进行处理,从而生成具有所述用户选择的滤镜效果的图像。本发明适用于图像处理。
The embodiment of the invention discloses a method, device and server for realizing the filter effect of an image, which can improve the development efficiency of the filter effect. The method includes: according to the filter effect selected by the user, according to the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm, executing the basic algorithm to process the image to be processed, thereby An image having the filter effect selected by the user is generated. The invention is suitable for image processing.
Description
技术领域technical field
本发明涉及图像处理技术领域,尤其涉及一种实现图像的滤镜效果的方法、装置及服务器。The present invention relates to the technical field of image processing, in particular to a method, device and server for realizing image filter effects.
背景技术Background technique
目前在计算机和移动终端领域,有各种各样的图像处理应用,在大部分图像处理应用中,都提供为图片添加滤镜,即滤镜效果的功能。At present, there are various image processing applications in the fields of computers and mobile terminals, and most of the image processing applications provide a function of adding a filter to a picture, that is, a filter effect.
由于各种滤镜效果有各自的实现方法,因此,在功能开发时,实现不同的滤镜效果往往需要重写不同的代码,开发人员将会耗费很多的精力来一一实现各种滤镜;每种实现出来的滤镜算法无法再和其他的滤镜算法结合起来使用,这样,当有新的滤镜效果产生时,开发人员需要对该新的滤镜效果进行独立的开发与实现,使得开发效率较低。Since various filter effects have their own implementation methods, it is often necessary to rewrite different codes to achieve different filter effects during function development, and developers will spend a lot of energy to implement various filters one by one; Each implemented filter algorithm can no longer be used in combination with other filter algorithms. In this way, when a new filter effect is generated, the developer needs to independently develop and implement the new filter effect, so that Development efficiency is low.
发明内容Contents of the invention
本发明提供一种实现图像的滤镜效果的方法、装置及服务器,能够提高滤镜效果的开发效率。The invention provides a method, device and server for realizing the filter effect of an image, which can improve the development efficiency of the filter effect.
一方面,本发明提供了一种实现图像的滤镜效果的方法,包括:On the one hand, the present invention provides a kind of method for realizing the filter effect of image, comprising:
接收用户选择一种滤镜效果的指令;Receive an instruction from the user to select a filter effect;
根据所述用户选择的滤镜效果,按照实现所述选择的滤镜效果的基础算法以及所述基础算法的执行顺序,执行所述基础算法对要处理的图像进行处理,从而生成具有所述用户选择的滤镜效果的图像。According to the filter effect selected by the user, according to the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm, execute the basic algorithm to process the image to be processed, thereby generating a Image with selected filter effects.
可选地,所述根据所述用户选择的滤镜效果,按照实现所述选择的滤镜效果的基础算法以及所述基础算法的执行顺序,执行所述基础算法对要处理的图像进行处理包括:根据所述用户选择的滤镜效果,确定实现所述选择的滤镜效果的基础算法及所述基础算法的执行顺序;按照所述确定的基础算法的执行顺序执行所述确定的基础算法从而对要处理的图像进行处理。Optionally, according to the filter effect selected by the user, executing the basic algorithm to process the image to be processed according to the basic algorithm for realizing the selected filter effect and the execution sequence of the basic algorithm includes : According to the filter effect selected by the user, determine the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm; execute the determined basic algorithm according to the execution order of the determined basic algorithm, thereby Do the processing on the image to be processed.
可选地,所述根据所述用户选择的滤镜效果,确定实现所述选择的滤镜效果的基础算法及所述基础算法的执行顺序,包括:根据所述用户选择的滤镜效果,从预先设置的本地数据库中查找实现所述滤镜效果的基础算法及所述基础算法的执行顺序;所述按照所述确定的基础算法的执行顺序执行所述确定的基础算法从而对要处理的图像进行处理包括:根据所述查找到的基础算法及所述基础算法的执行顺序,按照所述查找到的基础算法的执行顺序执行所述查找的基础算法从而对要处理的图像进行处理。Optionally, the determining the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm according to the filter effect selected by the user includes: according to the filter effect selected by the user, from Find the basic algorithm for realizing the filter effect and the execution order of the basic algorithm in the preset local database; the determined basic algorithm is executed according to the execution order of the determined basic algorithm so as to process the image Performing processing includes: according to the found basic algorithm and the execution order of the basic algorithm, executing the found basic algorithm according to the found basic algorithm's execution order to process the image to be processed.
可选地,所述根据所述用户选择的滤镜效果,确定实现所述选择的滤镜效果的基础算法及所述基础算法的执行顺序,包括:根据所述用户选择滤镜效果,向服务器发送滤镜效果实现请求;所述滤镜效果实现请求中携带有所述用户选择的滤镜效果的标识;接收所述服务器返回的响应信息,所述响应信息中携带有所述服务器根据所述用户选择的滤镜效果的标识查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序;对所述响应信息进行解析,从而获得实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序。Optionally, the determining the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm according to the filter effect selected by the user includes: sending the server to the server according to the filter effect selected by the user Sending a filter effect realization request; the filter effect realization request carries the identifier of the filter effect selected by the user; receives the response information returned by the server, and the response information carries the The identification of the filter effect selected by the user finds the basic algorithm required to realize the filter effect selected by the user and the execution order of the basic algorithm; the response information is analyzed to obtain the user-selected The basic algorithm required by the filter effect and the execution sequence of the basic algorithm.
可选地,所述实现图像的滤镜效果的方法,其特征在于,还包括:所述响应消息被设置为文本文件的形式,所述文本文件中记录有实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序。Optionally, the method for realizing the filter effect of an image is characterized in that it further includes: the response message is set in the form of a text file, and the text file records the filter effect of the user selection The required basic algorithms and the execution order of the basic algorithms.
可选地,所述实现图像的滤镜效果的方法,还包括:将所述获得的实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序在本地进行保存。Optionally, the method for realizing the filter effect of an image further includes: saving the obtained basic algorithm required for realizing the filter effect selected by the user and the execution order of the basic algorithm locally.
可选地,所述实现图像的滤镜效果的方法,还包括:接收服务器发送的滤镜效果更新消息;对本地保存的实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。Optionally, the method for realizing the filter effect of an image further includes: receiving a filter effect update message sent by the server; executing the locally saved basic algorithm required to realize the filter effect and/or the basic algorithm update in sequence.
可选地,所述按照所述确定的基础算法的执行顺序执行所述确定的基础算法从而对要处理的图像进行处理包括:根据所述确定的基础算法,从本地预先存储的基础算法库中获取所述确定的基础算法,并按照所述确定的基础算法的执行顺序执行所述获取的基础算法从而对要处理的图像进行处理。Optionally, executing the determined basic algorithm according to the execution order of the determined basic algorithm so as to process the image to be processed includes: according to the determined basic algorithm, from a locally pre-stored basic algorithm library The determined basic algorithm is acquired, and the acquired basic algorithm is executed according to the execution sequence of the determined basic algorithm so as to process the image to be processed.
可选地,所述基础算法包括以下算法中的至少一种:饱和度算法、色调算法、叠加算法、线性减淡算法、颜色减淡算法、正片叠底算法、柔光算法、强光算法、色调曲线算法。Optionally, the basic algorithm includes at least one of the following algorithms: a saturation algorithm, a hue algorithm, an overlay algorithm, a linear lightening algorithm, a color lightening algorithm, a multiplying algorithm, a soft light algorithm, a strong light algorithm, Tone curve algorithm.
本发明实施例的实现图像的滤镜效果的方法,将实现用户选择的滤镜效果的基础算法按照该基础算法的执行顺序对要处理的图像进行处理,以生成具有相应滤镜效果的图像,这样,当有新的滤镜效果时,不需要更新冗长的代码,而是,重复使用基础算法,通过将这些基础算法按照不同的执行顺序对图像进行处理来实现新的滤镜效果,从而,能够快速方便的开发出不同的滤镜效果,提高了滤镜效果的开发效率。In the method for realizing the filter effect of an image in the embodiment of the present invention, the basic algorithm for realizing the filter effect selected by the user is used to process the image to be processed according to the execution order of the basic algorithm, so as to generate an image with a corresponding filter effect, In this way, when there is a new filter effect, there is no need to update the lengthy code. Instead, the basic algorithm is reused, and the new filter effect is realized by processing these basic algorithms on the image in different execution orders, thus, Different filter effects can be developed quickly and conveniently, which improves the development efficiency of filter effects.
另一方面,本发明提供了一种实现图像的滤镜效果的装置,包括:接收单元,用于接收用户选择一种滤镜效果的指令;处理单元,用于根据所述用户选择的滤镜效果,按照实现所述选择的滤镜效果的基础算法以及所述基础算法的执行顺序,执行所述基础算法对要处理的图像进行处理,从而生成具有所述用户选择的滤镜效果的图像。In another aspect, the present invention provides a device for realizing the filter effect of an image, including: a receiving unit, configured to receive an instruction from the user to select a filter effect; a processing unit, configured to effect, according to the basic algorithm for realizing the selected filter effect and the execution sequence of the basic algorithm, execute the basic algorithm to process the image to be processed, so as to generate an image with the filter effect selected by the user.
可选地,所述处理单元包括:确定模块,用于根据所述用户选择的滤镜效果,确定实现所述选择的滤镜效果的基础算法及所述基础算法的执行顺序;处理模块,用于根据所述确定的基础算法的执行顺序执行所述确定的基础算法从而对要处理的图像进行处理。Optionally, the processing unit includes: a determination module, configured to determine, according to the filter effect selected by the user, a basic algorithm for realizing the selected filter effect and an execution order of the basic algorithm; a processing module configured to The image to be processed is processed by executing the determined basic algorithm in an execution order according to the determined basic algorithm.
可选地,所述确定模块包括:查找子模块,用于根据所述用户选择的滤镜效果,从预先设置的本地数据库中查找实现所述滤镜效果的基础算法及所述基础算法的执行顺序;所述处理模块,用于根据所述查找到的基础算法及所述基础算法的执行顺序,按照所述查找到的基础算法的执行顺序执行所述查找的基础算法从而对要处理的图像进行处理。Optionally, the determination module includes: a search submodule, configured to search a preset local database for the basic algorithm for realizing the filter effect and the execution of the basic algorithm according to the filter effect selected by the user Sequence; the processing module is configured to execute the searched basic algorithm according to the searched basic algorithm and the execution order of the basic algorithm according to the searched basic algorithm so as to process the image to be processed to process.
可选地,所述确定模块包括:发送子模块,用于根据所述用户选择的滤镜效果,向服务器发送滤镜效果实现请求;所述滤镜效果实现请求中携带有所述用户选择的滤镜效果的标识;接收子模块,用于接收所述服务器返回的响应信息,所述响应信息中携带有所述服务器根据所述用户选择的滤镜效果的标识查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序;解析子模块,用于对所述响应信息进行解析,从而获得实现所述户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序。Optionally, the determination module includes: a sending submodule, configured to send a filter effect realization request to the server according to the filter effect selected by the user; the filter effect realization request carries the filter effect selected by the user. The identifier of the filter effect; the receiving submodule is used to receive the response information returned by the server, and the response information carries the filter effect searched by the server according to the identifier of the filter effect selected by the user to realize the user's The basic algorithm required for the selected filter effect and the execution sequence of the basic algorithm; the parsing sub-module is used to analyze the response information, so as to obtain the basic algorithm and the basic algorithm required to realize the filter effect selected by the user The execution order of the underlying algorithms.
可选地,所述接收子模块,用于接收所述服务器返回的文本文件的形式的响应消息,所述文本文件中记录有实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序。Optionally, the receiving submodule is configured to receive a response message in the form of a text file returned by the server, and the text file records the basic algorithm required to realize the filter effect selected by the user and the The execution order of the underlying algorithm.
可选地,所述确定模块还包括:存储子模块,用于将所述获得的实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序在本地进行保存。Optionally, the determination module further includes: a storage submodule configured to locally save the obtained basic algorithm required to realize the filter effect selected by the user and the execution order of the basic algorithm.
可选地,所述接收子模块,还用于接收所述服务器发送的滤镜效果更新消息;所述确定模块还包括:更新子模块,用于根据所述滤镜效果更新消息,对本地保存的滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。Optionally, the receiving submodule is further configured to receive a filter effect update message sent by the server; the determination module further includes: an update submodule configured to store locally the filter effect update message according to the filter effect update message The basic algorithm required by the filter effect and/or the execution order of the basic algorithm is updated.
可选地,所述处理模块包括:获取子模块,用于根据所述确定的基础算法,从本地预先存储的基础算法库中获取所述确定的基础算法;执行子模块,用于按照所述确定的基础算法的执行顺序执行所述获取的基础算法从而对要处理的图像进行处理。Optionally, the processing module includes: an obtaining submodule, configured to obtain the determined basic algorithm from a local pre-stored basic algorithm library according to the determined basic algorithm; The execution sequence of the determined basic algorithm executes the obtained basic algorithm to process the image to be processed.
可选地,所述基础算法包括以下算法中的至少一种:饱和度算法、色调算法、叠加算法、线性减淡算法、颜色减淡算法、正片叠底算法、柔光算法、强光算法、色调曲线算法。Optionally, the basic algorithm includes at least one of the following algorithms: a saturation algorithm, a hue algorithm, an overlay algorithm, a linear lightening algorithm, a color lightening algorithm, a multiplying algorithm, a soft light algorithm, a strong light algorithm, Tone curve algorithm.
本发明实施例的实现图像的滤镜效果的装置,处理单元将实现用户选择的滤镜效果的基础算法按照该基础算法的执行顺序对要处理的图像进行处理,以生成具有相应滤镜效果的图像,这样,当有新的滤镜效果时,不需要更新冗长的代码,而是,重复使用基础算法,通过将这些基础算法按照不同的执行顺序对图像进行处理来实现新的滤镜效果,从而,能够快速方便的开发出不同的滤镜效果,提高了滤镜效果的开发效率。In the device for realizing the filter effect of an image in the embodiment of the present invention, the processing unit processes the basic algorithm for realizing the filter effect selected by the user according to the execution sequence of the basic algorithm to process the image to be processed to generate a corresponding filter effect. In this way, when there is a new filter effect, there is no need to update the lengthy code. Instead, the basic algorithm is reused, and the new filter effect is realized by processing these basic algorithms on the image according to different execution sequences. Therefore, different filter effects can be developed quickly and conveniently, and the development efficiency of filter effects is improved.
又一方面,本发明提供了一种实现图像的滤镜效果的方法,包括:In yet another aspect, the present invention provides a method for realizing an image filter effect, comprising:
接收客户端装置根据用户选择的滤镜效果,发送的滤镜效果实现请求,所述滤镜效果实现请求中携带有用户选择的滤镜效果的标识;Receiving the filter effect implementation request sent by the client device according to the filter effect selected by the user, the filter effect implementation request carrying the identifier of the filter effect selected by the user;
根据所述请求中的滤镜效果的标识,查找实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序;According to the identification of the filter effect in the request, search for the basic algorithm required to realize the filter effect selected by the user and the execution sequence of the basic algorithm;
将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息返回。A response message carrying the found basic algorithm required to realize the filter effect selected by the user and the execution sequence of the basic algorithm is returned.
可选地,所述将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息返回包括:将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息,以文本文件的形式返回。Optionally, returning the response message carrying the found basic algorithm required to realize the filter effect selected by the user and the execution order of the basic algorithm includes: carrying the found The basic algorithm required to realize the filter effect selected by the user and the response message of the execution order of the basic algorithm are returned in the form of a text file.
可选地,所述实现图像的滤镜效果的方法还包括:对实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。Optionally, the method for realizing an image filter effect further includes: updating a basic algorithm required for realizing a filter effect and/or an execution sequence of the basic algorithm.
可选地,在对实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新之后,所述方法包括:向客户端装置发送滤镜效果更新消息,所述滤镜效果更新消息指示了更新的滤镜效果所需要的基础算法和/或所述基础算法的执行顺序。Optionally, after updating the basic algorithm required to realize the filter effect and/or the execution sequence of the basic algorithm, the method includes: sending a filter effect update message to the client device, the filter effect The update message indicates the basic algorithm required by the updated filter effect and/or the execution order of the basic algorithm.
可选地,所述基础算法包括以下算法中的至少一种:饱和度算法、色调算法、叠加算法、线性减淡算法、颜色减淡算法、正片叠底算法、柔光算法、强光算法、色调曲线算法。Optionally, the basic algorithm includes at least one of the following algorithms: a saturation algorithm, a hue algorithm, an overlay algorithm, a linear lightening algorithm, a color lightening algorithm, a multiplying algorithm, a soft light algorithm, a strong light algorithm, Tone curve algorithm.
本发明实施例的实现图像的滤镜效果的方法,根据用户选择的滤镜效果的标识查找实现所述滤镜效果所需要的基础算法以及所述基础算法的执行顺序,并返回至客户端装置,用于客户端装置对要处理的图像进行处理,从而生成具有相应滤镜效果的图像,这样,当有新的滤镜效果时,不需要再更新冗长的代码,而是,重复使用基础算法,将这些基础算法按照不同的执行顺序对图像进行处理并生成相应的滤镜效果,从而,能够快速方便的开发出不同的滤镜效果,提高了图片的滤镜效果的开发效率。In the method for realizing the filter effect of an image in the embodiment of the present invention, according to the identification of the filter effect selected by the user, the basic algorithm required to realize the filter effect and the execution order of the basic algorithm are searched, and the result is returned to the client device , for the client device to process the image to be processed, so as to generate an image with the corresponding filter effect, so that when there is a new filter effect, there is no need to update the lengthy code, but to reuse the basic algorithm , these basic algorithms process the image according to different execution sequences and generate corresponding filter effects, so that different filter effects can be developed quickly and conveniently, and the development efficiency of image filter effects is improved.
再一方面,本发明提供了一种服务器,包括:接收单元,用于接收客户端装置根据用户选择的滤镜效果,发送的滤镜效果实现请求,所述滤镜效果实现请求中携带有用户选择的滤镜效果的标识;查找单元,用于根据请求中的滤镜效果的标识,查找实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序;返回单元,用于将将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息返回。In another aspect, the present invention provides a server, including: a receiving unit, configured to receive a filter effect realization request sent by a client device according to a filter effect selected by a user, and the filter effect realization request carries a user The identification of the selected filter effect; the search unit is used to search for the basic algorithm required to realize the filter effect selected by the user and the execution order of the basic algorithm according to the identification of the filter effect in the request; the return unit, and returning a response message carrying the found basic algorithm required to realize the filter effect selected by the user and the execution sequence of the basic algorithm.
可选地,所述返回单元,用于将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息,以文本文件的形式返回。Optionally, the returning unit is configured to send the response message carrying the searched basic algorithm required to realize the filter effect selected by the user and the execution sequence of the basic algorithm in the form of a text file Form returns.
可选地,所述服务器还包括:更新单元,用于对实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。Optionally, the server further includes: an updating unit, configured to update the basic algorithm required to realize the filter effect and/or the execution order of the basic algorithm.
可选地,所述服务器还包括:所述返回单元,还用于向客户端装置发送滤镜效果更新消息,所述滤镜效果更新消息指示了更新的滤镜效果所需要的基础算法和/或所述基础算法的执行顺序。Optionally, the server further includes: the return unit, further configured to send a filter effect update message to the client device, the filter effect update message indicating the basic algorithm and/or required by the updated filter effect Or the order of execution of the underlying algorithm.
可选地,所述基础算法包括以下算法中的至少一种:饱和度算法、色调算法、叠加算法、线性减淡算法、颜色减淡算法、正片叠底算法、柔光算法、强光算法、色调曲线算法。Optionally, the basic algorithm includes at least one of the following algorithms: a saturation algorithm, a hue algorithm, an overlay algorithm, a linear lightening algorithm, a color lightening algorithm, a multiplying algorithm, a soft light algorithm, a strong light algorithm, Tone curve algorithm.
本发明实施例的服务器,查找单元根据用户选择的滤镜效果的标识查找实现所述滤镜效果所需要的基础算法以及所述基础算法的执行顺序,并由返回单元返回至客户端装置,用于客户端装置对要处理的图像进行处理,从而生成具有相应滤镜效果的图像,这样,当有新的滤镜效果时,不需要更新冗长的代码,而是,重复使用基础算法,将这些基础算法按照不同的执行顺序对图像进行处理并生成相应的滤镜效果,从而,能够快速方便的开发出不同的滤镜效果,提高了图片的滤镜效果的开发效率。In the server of the embodiment of the present invention, the search unit searches for the basic algorithm required to realize the filter effect and the execution sequence of the basic algorithm according to the identification of the filter effect selected by the user, and returns to the client device by the return unit, using The client device processes the image to be processed to generate an image with the corresponding filter effect. In this way, when there is a new filter effect, there is no need to update the lengthy code. Instead, the basic algorithm is reused to convert these The basic algorithm processes images according to different execution sequences and generates corresponding filter effects, so that different filter effects can be developed quickly and conveniently, and the development efficiency of image filter effects is improved.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明的实现图像的滤镜效果的方法一实施例的流程示意图;FIG. 1 is a schematic flow diagram of an embodiment of a method for realizing an image filter effect according to the present invention;
图2为本发明的实现图像的滤镜效果的装置一实施例的结构示意图;FIG. 2 is a schematic structural diagram of an embodiment of a device for realizing an image filter effect according to the present invention;
图3为本发明的实现图像的滤镜效果的装置另一实施例的结构示意图;FIG. 3 is a schematic structural diagram of another embodiment of the device for realizing the filter effect of an image according to the present invention;
图4为本发明的实现图像的滤镜效果的装置另一实施例的结构示意图;FIG. 4 is a schematic structural diagram of another embodiment of the device for realizing the filter effect of an image according to the present invention;
图5为本发明的实现图像的滤镜效果的方法一实施例的流程示意图;FIG. 5 is a schematic flowchart of an embodiment of a method for realizing an image filter effect according to the present invention;
图6为本发明的服务器一实施例的结构示意图;FIG. 6 is a schematic structural diagram of an embodiment of a server of the present invention;
图7为本发明的服务器另一实施例的结构示意图。FIG. 7 is a schematic structural diagram of another embodiment of the server of the present invention.
具体实施方式detailed description
下面结合附图对本发明实施例一种实现图像的滤镜效果的方法、装置及服务器进行详细描述。A method, device, and server for realizing an image filter effect according to an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be clear that the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参看图1所示,本发明一种实现图像的滤镜效果的方法的具体实施方式,包括:Referring to Fig. 1, a specific embodiment of a method for realizing the filter effect of an image in the present invention includes:
S11、接收用户选择一种滤镜效果的指令;S11. Receive an instruction from the user to select a filter effect;
S12、根据所述用户选择的滤镜效果,按照实现所述选择的滤镜效果的基础算法以及所述基础算法的执行顺序,执行所述基础算法对要处理的图像进行处理,从而生成具有所述用户选择的滤镜效果的图像。S12. According to the filter effect selected by the user, according to the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm, execute the basic algorithm to process the image to be processed, so as to generate the image with the selected filter effect An image describing the filter effect selected by the user.
发明人经过研究和分析发现,各种不同的滤镜算法可以由一系列的基础算法组合而成的,其中,基础算法可以有:饱和度算法、色调算法、叠加算法、线性减淡算法、颜色减淡算法、正片叠底算法、柔光算法、强光算法、色调曲线算法等等,这些基础算法按照不同的执行顺序可以实现不同的滤镜效果。因此,只要开发人员编写好基础算法,就可通过调整基础算法的组合和执行顺序实现不同的滤镜效果。After research and analysis, the inventor found that various filter algorithms can be combined by a series of basic algorithms, among which the basic algorithms can include: saturation algorithm, hue algorithm, superposition algorithm, linear lightening algorithm, color Dodging algorithm, multiplying algorithm, soft light algorithm, strong light algorithm, tone curve algorithm, etc., these basic algorithms can achieve different filter effects according to different execution sequences. Therefore, as long as the developer writes the basic algorithm, different filter effects can be achieved by adjusting the combination and execution order of the basic algorithm.
基于此,本发明实施例的实现图像的滤镜效果的方法,将实现用户选择的滤镜效果的基础算法按照该基础算法的执行顺序对要处理的图像进行处理,以生成具有相应滤镜效果的图像,这样,当有新的滤镜效果时,不需要更新冗长的代码,而是,重复使用基础算法,通过将这些基础算法按照不同的执行顺序对图像进行处理来实现新的滤镜效果,从而,能够快速方便的开发出不同的滤镜效果,提高了滤镜效果的开发效率。Based on this, in the method for realizing the filter effect of an image in the embodiment of the present invention, the basic algorithm for realizing the filter effect selected by the user is used to process the image to be processed according to the execution order of the basic algorithm to generate an image with the corresponding filter effect. In this way, when there is a new filter effect, the lengthy code does not need to be updated, but the basic algorithm is reused, and the new filter effect is realized by processing the image according to a different execution order of these basic algorithms Therefore, different filter effects can be developed quickly and conveniently, and the development efficiency of filter effects is improved.
在前述实现图像的滤镜效果的方法的具体实施方式中,所述根据所述用户选择的滤镜效果,按照实现所述选择的滤镜效果的基础算法以及所述基础算法的执行顺序,执行所述基础算法对要处理的图像进行处理(S12),可以包括:根据所述用户选择的滤镜效果,确定实现所述选择的滤镜效果的基础算法及所述基础算法的执行顺序,即确定出实现所述选择的滤镜效果使用哪些基础算法,这些基础算法的顺序如何;然后,按照所述确定的基础算法的执行顺序执行所述确定的基础算法从而对要处理的图像进行处理。In the specific implementation of the aforementioned method for realizing the filter effect of an image, the filter effect selected by the user is executed according to the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm. The basic algorithm processes the image to be processed (S12), which may include: according to the filter effect selected by the user, determining the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm, namely Determine which basic algorithms are used to realize the selected filter effect, and what is the order of these basic algorithms; then, execute the determined basic algorithms according to the execution order of the determined basic algorithms so as to process the image to be processed.
在前述实现图像的滤镜效果的方法的具体实施方式中,所述根据所述用户选择的滤镜效果,确定实现所述选择的滤镜效果的基础算法及所述基础算法的执行顺序包括:根据所述用户选择的滤镜效果,从预先设置的本地数据库中查找实现所述滤镜效果的基础算法及所述基础算法的执行顺序;所述按照所述确定的基础算法的执行顺序执行所述确定的基础算法从而对要处理的图像进行处理包括:根据所述查找到的基础算法及所述基础算法的执行顺序,按照所述查找到的基础算法的执行顺序执行所述查找的基础算法从而对要处理的图像进行处理。In the specific implementation manner of the aforementioned method for realizing the filter effect of an image, the determination of the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm according to the filter effect selected by the user includes: According to the filter effect selected by the user, search the basic algorithm for realizing the filter effect and the execution order of the basic algorithm from the preset local database; the execution order of the basic algorithm is executed according to the determined execution order of the basic algorithm. The determined basic algorithm so as to process the image to be processed includes: according to the found basic algorithm and the execution order of the basic algorithm, executing the searched basic algorithm according to the execution order of the found basic algorithm Thus, the image to be processed is processed.
本发明实施例中,可以在用户本地预设数据库,所述数据库中存储了大量用于处理图像的滤镜效果所需要的基础算法、实现每个滤镜所需要的基础算法的执行顺序;例如,当用户选择一个滤镜效果时,以所述滤镜效果的名称为索引在数据库中查找所需要的基础算法及该基础算法的执行顺序,即查找出实现所述选择的滤镜效果使用哪些基础算法,这些基础算法的顺序如何,然后按照所述查找到的执行顺序执行所述查找到的基础算法,从而在要处理的图像中实现用户选择的滤镜效果。In the embodiment of the present invention, a database can be preset in the user's local area, and the database stores a large number of basic algorithms required for processing image filter effects and the execution order of the basic algorithms required for each filter; for example , when the user selects a filter effect, the name of the filter effect is used as an index to search for the required basic algorithm and the execution order of the basic algorithm in the database, that is, to find out which filter effect is used to realize the selected filter effect The basic algorithm, what is the order of these basic algorithms, and then execute the found basic algorithm according to the found execution order, so as to realize the filter effect selected by the user in the image to be processed.
在前述实现图像的滤镜效果的方法的具体实施方式中,所述根据所述用户选择的滤镜效果,确定实现所述选择的滤镜效果的基础算法及所述基础算法的执行顺序,可以包括:根据所述用户选择的滤镜效果,向服务器发送滤镜效果实现请求;所述滤镜效果实现请求中携带有所述用户选择的滤镜效果的标识;接收所述服务器返回的响应信息,所述响应信息中携带有所述服务器根据所述用户选择的滤镜效果的标识查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序;对所述响应信息进行解析,从而获得实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序。In the specific implementation of the aforementioned method for realizing the filter effect of an image, the determination of the basic algorithm for realizing the selected filter effect and the execution order of the basic algorithm according to the filter effect selected by the user may be Including: according to the filter effect selected by the user, sending a filter effect realization request to the server; the filter effect realization request carries the identification of the filter effect selected by the user; receiving the response information returned by the server The response information carries the basic algorithm required to realize the filter effect selected by the user and the execution sequence of the basic algorithm found by the server according to the identifier of the filter effect selected by the user; The response information is analyzed to obtain the basic algorithm required to realize the filter effect selected by the user and the execution order of the basic algorithm.
本发明实施例中,预先在服务器端设置了大量用于处理图像的滤镜效果所需要的基础算法、实现每个滤镜所需要的基础算法的执行顺序。In the embodiment of the present invention, a large number of basic algorithms required to process image filter effects and the execution order of the basic algorithms required to realize each filter are pre-set on the server side.
在前述实现图像的滤镜效果的方法的具体实施方式中,所述实现图像的滤镜效果的方法,还包括:所述响应消息被设置为文本文件的形式,所述文本文件中记录有实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序。In the specific implementation of the aforementioned method for realizing the filter effect of an image, the method for realizing the filter effect of an image further includes: the response message is set in the form of a text file, and the text file records the realization The basic algorithm required by the filter effect selected by the user and the execution order of the basic algorithm.
本发明实施例中,预先在服务器端,分别将实现各种滤镜效果所需要的基础算法及所述基础算法的执行顺序编辑成文本文件,这样,每个文本文件对应一种滤镜效果的实现方式;在需要更新滤镜效果(如增加新的滤镜效果或者改良现有的滤镜效果)时,只需要更新文本文件就可以了。In the embodiment of the present invention, the basic algorithms required to realize various filter effects and the execution order of the basic algorithms are edited into text files on the server side in advance, so that each text file corresponds to a filter effect. Implementation method; when the filter effect needs to be updated (such as adding a new filter effect or improving an existing filter effect), only the text file needs to be updated.
在前述实现图像的滤镜效果的方法的具体实施方式中,所述实现图像的滤镜效果的方法,还可以包括:将获得的实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序在本地进行保存。In the specific implementation manner of the aforementioned method for realizing the filter effect of an image, the method for realizing the filter effect of an image may further include: the obtained basic algorithm and the required method for realizing the filter effect selected by the user The execution order of the above basic algorithms is saved locally.
例如,获得实现该滤镜效果所需要的基础算法及所述基础算法的执行顺序后,询问用户是否保存,若是用户选择保存,则将获取的实现该滤镜效果所需要的基础算法及所述基础算法的执行顺序进行保存,以便于下次用户使用时,能够从本地查找,从而,节省用户的网络流量。For example, after obtaining the basic algorithm required to realize the filter effect and the execution order of the basic algorithm, the user is asked whether to save it, and if the user chooses to save, the obtained basic algorithm and the described The execution sequence of the basic algorithm is saved so that the next time the user uses it, it can be searched locally, thereby saving the user's network traffic.
在前述实现图像的滤镜效果的方法的具体实施方式中,,为了使用户本地所保存的滤镜效果的种类更丰富,所述实现图像的滤镜效果的方法还可以包括:接收服务器发送的滤镜效果更新消息;根据所述滤镜效果更新消息,对本地保存的实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。In the specific implementation of the aforementioned method for realizing the filter effect of an image, in order to enrich the types of filter effects locally stored by the user, the method for realizing the filter effect of an image may further include: receiving the A filter effect update message; according to the filter effect update message, update the locally stored basic algorithm required to realize the filter effect and/or the execution order of the basic algorithm.
优选地,在接收服务器发送的滤镜效果更新消息之后,对用户进行提醒,若接收到用户同意更新的指令,则对本地保存的实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。Preferably, after receiving the filter effect update message sent by the server, the user is reminded, and if the user agrees to the update instruction, the locally saved basic algorithm and/or the basic algorithm required to realize the filter effect The order of execution is updated.
在前述实现图像的滤镜效果的方法的具体实施方式中,可选地,所述按照所述确定的基础算法的执行顺序执行所述确定的基础算法从而对要处理的图像进行处理包括:根据所述确定的基础算法,从本地预先存储的基础算法库中获取所述确定的基础算法,并按照所述确定的基础算法的执行顺序执行所述获取的基础算法从而对要处理的图像进行处理。In the specific implementation of the aforementioned method for realizing the filter effect of an image, optionally, executing the determined basic algorithm according to the execution order of the determined basic algorithm so as to process the image to be processed includes: For the determined basic algorithm, obtain the determined basic algorithm from a local pre-stored basic algorithm library, and execute the acquired basic algorithm according to the execution order of the determined basic algorithm so as to process the image to be processed .
本发明的一个实施例中,基础算法的执行代码可以预先进行本地存储,在按照实现所述选择的滤镜效果的基础算法执行顺序执行这些基础算法时,从本地获取基础算法的执行代码并进行执行。In one embodiment of the present invention, the execution code of the basic algorithm can be stored locally in advance, and when these basic algorithms are executed in accordance with the execution order of the basic algorithm for realizing the selected filter effect, the execution code of the basic algorithm is obtained locally and executed implement.
例如,开发人员可以在编写与所述方法相对应的应用软件的应用程序时,将基础算法代码等信息写入所述应用程序安装包中;当客户端装置下载并安装所述应用程序时,基础算法也会被下载并安装在所述客户端装置上;当接收到用户选择一种滤镜效果的指令时,就可从本地存储的基础算法代码中,获取到用户选择的滤镜效果的基础算法,并按照该滤镜效果的基础算法的执行顺序执行相应的基础算法即可。For example, when writing the application program of the application software corresponding to the method, the developer can write information such as the basic algorithm code into the application program installation package; when the client device downloads and installs the application program, The basic algorithm will also be downloaded and installed on the client device; when an instruction is received to select a filter effect from the user, the user-selected filter effect can be obtained from the basic algorithm code stored locally. Basic algorithm, and execute the corresponding basic algorithm according to the execution sequence of the basic algorithm of the filter effect.
下面举例说明本发明实现图像的滤镜效果的方法。The method for realizing the filter effect of an image in the present invention is illustrated below with an example.
实施例1:Example 1:
本实施例以Vintage滤镜效果为例,对本发明实现图像的滤镜效果的方法进行说明。In this embodiment, taking the Vintage filter effect as an example, the method for realizing the filter effect of an image in the present invention is described.
在图像处理软件的应用程序安装包中,写入实现各滤镜效果所需要的基础算法及基础算法的执行顺序,还有各个基础算法代码,并在图像处理软件安装在终端后,在终端本地保存实现各滤镜效果所需要的基础算法及基础算法的执行顺序以及各个基础算法代码。In the application installation package of the image processing software, write the basic algorithm and the execution order of the basic algorithm required to realize each filter effect, as well as the codes of each basic algorithm, and after the image processing software is installed on the terminal, it will be downloaded locally on the terminal The basic algorithm and the execution order of the basic algorithm and the codes of each basic algorithm required to realize each filter effect are saved.
其中,假设Vintage滤镜效果对应的基础算法为色调曲线算法和叠加算法,执行顺序为先执行色调曲线算法,再执行叠加算法。Among them, it is assumed that the basic algorithm corresponding to the Vintage filter effect is a tone curve algorithm and an overlay algorithm, and the execution sequence is to execute the tone curve algorithm first, and then execute the overlay algorithm.
在接收到用户选择Vintage滤镜效果的指令后,根据本地存储的Vintage滤镜效果的基础算法及其执行顺序,先执行色调曲线算法,再执行叠加算法生成最终图像,从而,对用户要处理的图像进行Vintage滤镜效果处理,获得具有Vintage滤镜效果的图像。After receiving the user's instruction to select the Vintage filter effect, according to the basic algorithm of the locally stored Vintage filter effect and its execution sequence, the tone curve algorithm is first executed, and then the superposition algorithm is executed to generate the final image. The image is processed with a Vintage filter effect to obtain an image with a Vintage filter effect.
实施例2:Example 2:
本实施例以Sunshine滤镜效果为例,对本发明实现图像的滤镜效果的方法进行说明。In this embodiment, the Sunshine filter effect is taken as an example to describe the method for realizing the filter effect of an image in the present invention.
在图像处理软件的应用程序安装包中,写入实现各滤镜效果所需要的基础算法及基础算法的执行顺序,还有各个基础算法代码,并在图像处理软件安装在终端后,在终端本地保存实现各滤镜效果所需要的基础算法及基础算法的执行顺序以及各个基础算法代码。In the application installation package of the image processing software, write the basic algorithm and the execution order of the basic algorithm required to realize each filter effect, as well as the codes of each basic algorithm, and after the image processing software is installed on the terminal, it will be downloaded locally on the terminal The basic algorithm and the execution order of the basic algorithm and the codes of each basic algorithm required to realize each filter effect are saved.
其中,假设Sunshine滤镜效果对应的基础算法为色调曲线算法和正片叠底算法,执行顺序为先执行色调曲线算法,再执行正片叠底算法。Among them, it is assumed that the basic algorithm corresponding to the Sunshine filter effect is the tone curve algorithm and the multiplication algorithm, and the execution sequence is to execute the tone curve algorithm first, and then execute the multiplication algorithm.
接收到用户选择Sunshine滤镜效果的指令后,根据本地存储的Sunshine滤镜效果的基础算法及其执行顺序,先执行色调曲线算法,再执行正片叠底算法,从而,对用户要处理的图像进行Sunshine滤镜效果处理,获得具有Sunshine滤镜效果的图像。After receiving the user's instruction to select the Sunshine filter effect, according to the basic algorithm of the locally stored Sunshine filter effect and its execution sequence, first execute the tone curve algorithm, and then execute the multiply algorithm, so that the image to be processed by the user is processed Sunshine filter effect processing to obtain images with Sunshine filter effects.
实施例3:Example 3:
本实施例以London滤镜效果为例,对本发明实现图像的滤镜效果的方法进行说明。In this embodiment, taking the London filter effect as an example, the method for realizing the filter effect of an image in the present invention is described.
在图像处理软件的应用程序安装包中,写入实现各滤镜效果所需要的基础算法及基础算法的执行顺序,还有各个基础算法代码,并在图像处理软件安装在终端后,在终端本地保存实现各滤镜效果所需要的基础算法及基础算法的执行顺序以及各个基础算法代码。In the application installation package of the image processing software, write the basic algorithm and the execution order of the basic algorithm required to realize each filter effect, as well as the codes of each basic algorithm, and after the image processing software is installed on the terminal, it will be downloaded locally on the terminal The basic algorithm and the execution order of the basic algorithm and the codes of each basic algorithm required to realize each filter effect are saved.
其中,假设London滤镜效果对应的基础算法为色调曲线算法、饱和度算法和正片叠底算法,执行顺序为先执行正片叠底算法,再执行色调曲线算法、最后执行饱和度算法。Among them, it is assumed that the basic algorithms corresponding to the London filter effect are the tone curve algorithm, the saturation algorithm, and the multiplication algorithm, and the execution sequence is to first execute the multiplication algorithm, then execute the tone curve algorithm, and finally execute the saturation algorithm.
接收到用户选择London滤镜效果的指令后,根据本地存储的London滤镜效果的基础算法及其执行顺序,先执行正片叠底算法,其次为色调曲线算法,最后执行饱和度算法,从而,对用户要处理的图像进行London滤镜效果处理,获得具有London滤镜效果的图像。After receiving the instruction from the user to select the London filter effect, according to the basic algorithm of the locally stored London filter effect and its execution sequence, the multiplication algorithm is executed first, followed by the tone curve algorithm, and finally the saturation algorithm is executed. The image to be processed by the user is processed with the London filter effect to obtain an image with the London filter effect.
实施例4:Example 4:
本实施例以Diana滤镜效果为例,对本发明实现图像的滤镜效果的方法进行说明。In this embodiment, the Diana filter effect is taken as an example to describe the method for realizing the filter effect of an image in the present invention.
在图像处理软件的应用程序安装包中,写入实现各滤镜效果所需要的基础算法及基础算法的执行顺序,还有各个基础算法代码,并在图像处理软件安装在终端后,在终端本地保存实现各滤镜效果所需要的基础算法及基础算法的执行顺序以及各个基础算法代码。In the application installation package of the image processing software, write the basic algorithm and the execution order of the basic algorithm required to realize each filter effect, as well as the codes of each basic algorithm, and after the image processing software is installed on the terminal, it will be downloaded locally on the terminal The basic algorithm and the execution order of the basic algorithm and the codes of each basic algorithm required to realize each filter effect are saved.
其中,假设Diana滤镜效果对应的基础算法为色调曲线算法和正片叠底算法,执行顺序为先执行正片叠底算法,再执行色调曲线算法。Among them, it is assumed that the basic algorithms corresponding to the Diana filter effect are the tone curve algorithm and the multiplication algorithm, and the execution sequence is to execute the multiplication algorithm first, and then execute the tone curve algorithm.
接收到用户选择Diana滤镜效果的指令后,根据本地存储的Diana滤镜效果的基础算法及其执行顺序,先执行正片叠底算法,再执行色调曲线算法,从而,对用户要处理的图像进行Diana滤镜效果处理,获得具有Diana滤镜效果的图像。After receiving the user's instruction to select the Diana filter effect, according to the basic algorithm of the locally stored Diana filter effect and its execution sequence, first execute the multiplication algorithm, and then execute the tone curve algorithm, so that the image to be processed by the user is processed. Diana filter effect processing to obtain images with Diana filter effects.
实施例5:Example 5:
本实施例以Sunshine滤镜效果为例,对本发明实现图像的滤镜效果的方法进行说明。In this embodiment, the Sunshine filter effect is taken as an example to describe the method for realizing the filter effect of an image in the present invention.
预先在服务器端设置好了实现各滤镜效果所需要的基础算法及基础算法的执行顺序,其中,在服务器端,各滤镜效果所需要的基础算法及基础算法的执行顺序被设置为文本文件的形式,每个文本文件对应一种滤镜效果。The basic algorithm and the execution order of the basic algorithm required to realize each filter effect are pre-set on the server side, wherein, on the server side, the basic algorithm required by each filter effect and the execution order of the basic algorithm are set as a text file In the form of , each text file corresponds to a filter effect.
在接收到用户选择Sunshine滤镜效果的指令后,向服务器发送Sunshine滤镜效果实现请求,接收服务器返回的Sunshine滤镜效果对应的文本文件,获取该文本文件之后,解析出该文本文件中描述的基础算法及该基础算法的执行顺序;例如,解析后的文本形式为:After receiving the user's instruction to select the Sunshine filter effect, send a Sunshine filter effect implementation request to the server, receive the text file corresponding to the Sunshine filter effect returned by the server, and parse out the text described in the text file after obtaining the text file The underlying algorithm and the order in which that underlying algorithm is executed; for example, the parsed textual form is:
滤镜效果的名字:SunshineThe name of the filter effect: Sunshine
基础算法:色调曲线算法Basic Algorithm: Tone Curve Algorithm
基础算法:正片叠底算法;Basic Algorithm: Multiply Bottom Algorithm;
然后,按照基础算法在文本中显示的先后顺序,执行这些基础算法,从而对要进行滤镜效果处理的图像进行处理,生成具有Sunshine滤镜效果的图像。Then, these basic algorithms are executed according to the order in which the basic algorithms are displayed in the text, so as to process the image to be processed by the filter effect and generate an image with the Sunshine filter effect.
参看图2所示,本发明一种实现图像的滤镜效果的装置的具体实施方式,包括:接收单元11,用于接收用户选择一种滤镜效果的指令;处理单元12,用于根据所述用户选择的滤镜效果,按照实现所述选择的滤镜效果的基础算法以及所述基础算法的执行顺序,执行所述基础算法对要处理的图像进行处理,从而生成具有所述用户选择的滤镜效果的图像。Referring to Fig. 2 , a specific embodiment of a device for realizing an image filter effect in the present invention includes: a receiving unit 11, configured to receive an instruction from a user to select a filter effect; a processing unit 12, configured to According to the filter effect selected by the user, according to the basic algorithm for realizing the selected filter effect and the execution sequence of the basic algorithm, execute the basic algorithm to process the image to be processed, thereby generating the image with the user selection Image with filter effect.
本发明实施例的实现图像的滤镜效果的装置,处理单元12将实现用户选择的滤镜效果的基础算法按照该基础算法的执行顺序对要处理的图像进行处理,以生成具有相应滤镜效果的图像,这样,当有新的滤镜效果时,不需要更新冗长的代码,而是,重复使用基础算法,通过将这些基础算法按照不同的执行顺序对图像进行处理来实现新的滤镜效果,从而,能够快速方便的开发出不同的滤镜效果,提高了滤镜效果的开发效率。In the device for realizing the filter effect of an image in the embodiment of the present invention, the processing unit 12 processes the basic algorithm for realizing the filter effect selected by the user according to the execution sequence of the basic algorithm to process the image to be processed to generate a corresponding filter effect In this way, when there is a new filter effect, the lengthy code does not need to be updated, but the basic algorithm is reused, and the new filter effect is realized by processing the image according to a different execution order of these basic algorithms Therefore, different filter effects can be developed quickly and conveniently, and the development efficiency of filter effects is improved.
参看图3所示,在前述实现图像的滤镜效果的装置的具体实施方式中,可选地,所述处理单元12包括:确定模块121,用于根据所述用户选择的滤镜效果,确定实现所述选择的滤镜效果的基础算法及所述基础算法的执行顺序;处理模块122,用于根据所述确定的基础算法的执行顺序执行所述确定的基础算法从而对要处理的图像进行处理。Referring to FIG. 3 , in the specific implementation of the aforementioned device for realizing the filter effect of an image, optionally, the processing unit 12 includes: a determination module 121 configured to determine the filter effect according to the user selection Realize the basic algorithm of the selected filter effect and the execution order of the basic algorithm; the processing module 122 is used to execute the determined basic algorithm according to the execution order of the determined basic algorithm so as to process the image to be processed deal with.
在前述实现图像的滤镜效果的装置的具体实施方式中,所述确定模块121包括:查找子模块1211,用于根据所述用户选择的滤镜效果,从预先设置的本地数据库中查找实现所述滤镜效果的基础算法及所述基础算法的执行顺序;所述处理模块122,用于根据所述查找到的基础算法及所述基础算法的执行顺序,按照所述查找到的基础算法的执行顺序执行所述查找的基础算法从而对要处理的图像进行处理。In the specific implementation of the aforementioned device for realizing the filter effect of an image, the determination module 121 includes: a search sub-module 1211, configured to search the preset local database to realize the filter effect according to the filter effect selected by the user. The basic algorithm of the filter effect and the execution order of the basic algorithm; the processing module 122 is configured to, according to the found basic algorithm and the execution order of the basic algorithm, according to the found basic algorithm The underlying algorithm for performing the lookup is executed sequentially to process the image to be processed.
本发明实施例中,可以在用户本地预设数据库,所述数据库中存储了大量用于处理图像的滤镜效果所需要的基础算法、实现每个滤镜所需要的基础算法的执行顺序;例如,当用户选择一个滤镜效果时,以滤镜效果名称为索引在数据库中查找相应的基础算法及该基础算法的执行顺序,按照所述查找到的执行顺序执行所述查找到的基础算法,从而在要处理的图像中实现用户选择的滤镜效果。In the embodiment of the present invention, a database can be preset in the user's local area, and the database stores a large number of basic algorithms required for processing image filter effects and the execution order of the basic algorithms required for each filter; for example , when the user selects a filter effect, look up the corresponding basic algorithm and the execution order of the basic algorithm in the database by using the name of the filter effect as an index, and execute the found basic algorithm according to the found execution order, Thereby implementing the filter effect selected by the user in the image to be processed.
参看图4所示,在前述实现图像的滤镜效果的装置的具体实施方式中,所述确定模块121,可以包括:发送子模块1212,用于根据所述用户选择滤镜效果,向服务器发送滤镜效果实现请求;所述滤镜效果实现请求中携带有所述用户选择的滤镜效果的标识;接收子模块1213,用于接收所述服务器获返回的响应信息,所述响应信息中携带有所述服务器根据所述用户选择的滤镜效果的标识查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序;解析子模块1214,用于对所述响应信息进行解析,从而获得实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序。Referring to FIG. 4 , in the specific implementation of the aforementioned device for realizing the filter effect of an image, the determination module 121 may include: a sending submodule 1212 configured to send the filter effect to the server according to the user's selection of the filter effect A filter effect implementation request; the filter effect implementation request carries an identifier of the filter effect selected by the user; the receiving submodule 1213 is used to receive the response information returned by the server, and the response information carries There is the basic algorithm and the execution sequence of the basic algorithm needed to realize the filter effect selected by the user found by the server according to the identifier of the filter effect selected by the user; the parsing submodule 1214 is used for The response information is analyzed to obtain the basic algorithm required to realize the filter effect selected by the user and the execution order of the basic algorithm.
本实发明施例中,预先在服务器端设置了大量用于处理图像的滤镜效果所需要的基础算法、实现每个滤镜所需要的基础算法的执行顺序。In the embodiment of the present invention, a large number of basic algorithms required for processing image filter effects and the execution sequence of the basic algorithms required for each filter are pre-set on the server side.
在前述实现图像的滤镜效果的装置的具体实施方式中,所述接收子模块1213,用于接收所述服务器返回的文本文件的形式的响应消息,所述文本文件中记录有实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序。In the specific implementation of the above-mentioned device for realizing the filter effect of an image, the receiving submodule 1213 is used to receive a response message in the form of a text file returned by the server, and the text file records the The basic algorithm required by the selected filter effect and the execution sequence of the basic algorithm.
本发明实施例中,预先在服务器端,分别将实现各种滤镜效果所需要的基础算法及所述基础算法的执行顺序编辑成文本文件,这样,每个文本文件对应一种滤镜效果的实现方式;在需要更新滤镜效果的种类(如增加新的滤镜效果)时,只需要更新文本文件就可以了。In the embodiment of the present invention, the basic algorithms required to realize various filter effects and the execution order of the basic algorithms are edited into text files on the server side in advance, so that each text file corresponds to a filter effect. Implementation method; when it is necessary to update the type of filter effect (such as adding a new filter effect), only the text file needs to be updated.
在前述实现图像的滤镜效果的装置的具体实施方式中,所述确定模块121,还可以包括:存储子模块1215,用于将获得的实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序在本地进行保存。In the specific implementation of the above-mentioned device for realizing the filter effect of an image, the determination module 121 may further include: a storage submodule 1215, which is used to obtain the basic algorithm required to realize the filter effect selected by the user And the execution sequence of the basic algorithm is saved locally.
例如,获得实现该滤镜效果所需要的基础算法及所述基础算法的执行顺序后,询问用户是否保存,若是用户选择保存,则将获取的实现该滤镜效果所需要的基础算法及所述基础算法的执行顺序进行保存,以便于下次用户使用时,能够从本地查找,从而,节省用户的网络流量。For example, after obtaining the basic algorithm required to realize the filter effect and the execution order of the basic algorithm, the user is asked whether to save it, and if the user chooses to save, the obtained basic algorithm and the described The execution sequence of the basic algorithm is saved so that the next time the user uses it, it can be searched locally, thereby saving the user's network traffic.
在前述实现图像的滤镜效果的装置的具体实施方式中,为了使用户本地所保存的滤镜效果的种类更丰富,可选地,所述接收子模块1213,还用于接收所述服务器发送的滤镜效果更新消息;所述确定模块121还包括:更新子模块1216,用于根据所述滤镜效果更新消息,对本地保存的滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。In the aforementioned specific implementation of the device for realizing image filter effects, in order to enrich the types of filter effects stored locally by the user, optionally, the receiving submodule 1213 is also used to receive the The filter effect update message; the determination module 121 also includes: an update sub-module 1216, which is used to, according to the filter effect update message, the basic algorithm and/or the basic algorithm required for the locally saved filter effect The order of execution is updated.
优选地,在接收服务器发送的滤镜效果更新消息之后,对用户进行提醒,若接收到用户同意更新的指令,则对本地保存的实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。Preferably, after receiving the filter effect update message sent by the server, the user is reminded, and if the user agrees to the update instruction, the locally saved basic algorithm and/or the basic algorithm required to realize the filter effect The order of execution is updated.
在前述实现图像的滤镜效果的装置的具体实施方式中,所述处理模块122包括:获取子模块1221,用于根据所述确定的基础算法,从本地预先存储的基础算法库中获取所述确定的基础算法;执行子模块1222,用于按照所述确定的基础算法的执行顺序执行所述获取的基础算法从而对要处理的图像进行处理。In the specific implementation of the aforementioned device for realizing the filter effect of an image, the processing module 122 includes: an acquisition sub-module 1221, configured to acquire the local pre-stored basic algorithm library according to the determined basic algorithm. The determined basic algorithm; the execution sub-module 1222, configured to execute the acquired basic algorithm according to the execution order of the determined basic algorithm so as to process the image to be processed.
本发明实施例中,例如,开发人员可以在编写与所述方法相对应的应用软件的应用程序时,将基础算法和每个滤镜对应的基础算法以及执行顺序等信息写入所述应用程序中;当客户端装置下载并安装所述应用程序时,基础算法和每个滤镜对应的基础算法以及执行顺序等信息也会被下载并安装在所述客户端装置上;当接收到用户选择一种滤镜效果的指令时,按照所述应用程序中所述滤镜效果的基础算法的执行顺序执行相应的基础算法即可。In the embodiment of the present invention, for example, when writing the application program of the application software corresponding to the method, the developer can write information such as the basic algorithm and the basic algorithm corresponding to each filter and the execution order into the application program Middle; when the client device downloads and installs the application program, information such as the basic algorithm and the basic algorithm corresponding to each filter and the execution sequence will also be downloaded and installed on the client device; when the user selects For an instruction of a filter effect, the corresponding basic algorithm may be executed according to the execution sequence of the basic algorithm of the filter effect in the application program.
参看图5所示,本发明一种实现图像的滤镜效果的方法的具体实施方式,包括:Referring to Fig. 5, a specific embodiment of a method for realizing the filter effect of an image in the present invention includes:
S21、接收客户端装置根据用户选择的滤镜效果,发送的滤镜效果的实现请求,所述滤镜效果实现请求中携带有用户选择的滤镜效果的标识;S21. Receive a filter effect implementation request sent by the client device according to the filter effect selected by the user, and the filter effect implementation request carries an identifier of the filter effect selected by the user;
S22、根据所述请求中的滤镜效果的标识,查找实现所述用户选择的滤镜效果所需要的基础算法及所述基础算法的执行顺序;S22. According to the identifier of the filter effect in the request, search for the basic algorithm required to realize the filter effect selected by the user and the execution sequence of the basic algorithm;
S23、将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息返回。S23. Return a response message carrying the found basic algorithm required to realize the filter effect selected by the user and the execution order of the basic algorithm.
本发明实施例的实现图像的滤镜效果的方法,根据用户选择的滤镜效果的标识查找实现所述滤镜效果所需要的基础算法以及所述基础算法的执行顺序,并返回至客户端装置,用于客户端装置对要处理的图像进行处理,从而生成具有相应滤镜效果的图像,这样,当有新的滤镜效果时,不需要更新冗长的代码,而是,重复使用基础算法,将这些基础算法按照不同的执行顺序对图像进行处理并生成相应的滤镜效果,从而,能够快速方便的开发出不同的滤镜效果,提高了图片的滤镜效果的开发效率。In the method for realizing the filter effect of an image in the embodiment of the present invention, according to the identification of the filter effect selected by the user, the basic algorithm required to realize the filter effect and the execution order of the basic algorithm are searched, and the result is returned to the client device , for the client device to process the image to be processed, so as to generate an image with the corresponding filter effect, so that when there is a new filter effect, there is no need to update the lengthy code, but to reuse the basic algorithm, These basic algorithms process images according to different execution sequences and generate corresponding filter effects, so that different filter effects can be developed quickly and conveniently, and the development efficiency of image filter effects is improved.
在前述实现图像的滤镜效果的方法的具体实施方式中,可选地,所述将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息返回包括:将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息,以文本文件的形式返回。In the specific implementation of the aforementioned method for realizing the filter effect of an image, optionally, the file will carry the found basic algorithm required to realize the filter effect selected by the user and the basic algorithm The response message return of the execution sequence includes: return the response message carrying the found basic algorithm required to realize the filter effect selected by the user and the execution sequence of the basic algorithm in the form of a text file .
本发明实施例中,预先分别将实现各种滤镜效果所需要的基础算法及所述基础算法的执行顺序编辑成文本文件,这样,每个文本文件对应一种滤镜效果的实现方式。In the embodiment of the present invention, the basic algorithms required to realize various filter effects and the execution order of the basic algorithms are respectively edited into text files in advance, so that each text file corresponds to a realization mode of a filter effect.
可选地,所述实现图像的滤镜效果的方法还包括:对实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。Optionally, the method for realizing an image filter effect further includes: updating a basic algorithm required for realizing a filter effect and/or an execution order of the basic algorithm.
本实施例中,在需要更新滤镜效果的种类(如增加新的滤镜效果)时,只需要更新根据实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序编辑的文本文件,不需要更新冗长的代码,因此在服务器端可以不断地提供各种新的滤镜效果;相对于所有的滤镜效果都在客户端通过程序的形式实现(更新滤镜效果时,需要更新代码),这种滤镜效果实现方式比较灵活,不仅方便开发人员开发,而且不需要更新代码用户就可以使用最新的滤镜效果。In this embodiment, when it is necessary to update the type of filter effect (such as adding a new filter effect), it is only necessary to update the text edited according to the basic algorithm required to realize the filter effect and/or the execution order of the basic algorithm file, no need to update the lengthy code, so various new filter effects can be continuously provided on the server side; all filter effects are implemented in the form of programs on the client side (when updating filter effects, you need to update Code), this kind of filter effect implementation method is more flexible, not only convenient for developers to develop, but also users can use the latest filter effect without updating the code.
在前述实现图像的滤镜效果的方法的具体实施方式中,为了使客户端装置本地所保存的滤镜效果的种类更丰富,在对实现滤镜效果所需要的基础算法以及所述基础算法的执行顺序进行更新之后,可以包括:向客户端装置发送滤镜效果更新消息,所述滤镜效果更新消息指示了更新的滤镜效果所需要的基础算法和/或所述基础算法的执行顺序。In the above specific implementation of the method for realizing the filter effect of an image, in order to enrich the types of filter effects locally stored in the client device, the basic algorithm required for realizing the filter effect and the basic algorithm After the execution order is updated, it may include: sending a filter effect update message to the client device, the filter effect update message indicating the basic algorithm required by the updated filter effect and/or the execution order of the basic algorithm.
参看图6所示,本发明一种服务器的具体实施方式,包括:接收单元21,用于接收客户端装置根据用户选择的滤镜效果,发送滤镜效果实现请求,所述滤镜效果实现请求中携带有用户选择的滤镜效果的标识;查找单元22,用于根据所述请求中的滤镜效果的标识,查找实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序;返回单元23,用于将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息返回。Referring to Fig. 6, a specific embodiment of a server of the present invention includes: a receiving unit 21, configured to receive a filter effect realization request sent by a client device according to a filter effect selected by a user, the filter effect realization request carry the identification of the filter effect selected by the user; the search unit 22 is used to search for the basic algorithm and the basic algorithm required to realize the filter effect selected by the user according to the identification of the filter effect in the request The execution sequence of the basic algorithm; the return unit 23 is configured to return the response message carrying the found basic algorithm required to realize the filter effect selected by the user and the execution sequence of the basic algorithm.
本发明实施例的实现图像的滤镜效果的方法,查找单元22根据所述用户选择的滤镜效果查找实现所述滤镜效果所需要的基础算法以及所述基础算法的执行顺序,并由返回单元23返回至客户端装置,用于客户端装置根据该文本文件对要处理的图像进行处理,以生成具有相应滤镜效果的图像,这样,当有新的滤镜效果时,不需要更新冗长的代码,而是,重复使用基础算法,将这些基础算法按照不同的执行顺序对图像进行处理并生成相应的滤镜效果,从而,能够快速方便的开发出不同的滤镜效果,提高了滤镜效果的开发效率。In the method for realizing the filter effect of an image in the embodiment of the present invention, the search unit 22 searches for the basic algorithm required to realize the filter effect and the execution order of the basic algorithm according to the filter effect selected by the user, and returns Unit 23 returns to the client device, for the client device to process the image to be processed according to the text file to generate an image with a corresponding filter effect, so that when there is a new filter effect, there is no need to update the lengthy Instead, the basic algorithms are reused, and these basic algorithms are processed in different order to process the image and generate corresponding filter effects, so that different filter effects can be developed quickly and conveniently, and the filter effect is improved. The development efficiency of the effect.
在前述服务器的具体实施方式中,可选地,所述返回单元23,用于将携带有所述查找到的、实现所述用户选择的滤镜效果所需要的基础算法以及所述基础算法的执行顺序的响应消息,以文本文件的形式返回。In the specific implementation of the aforementioned server, optionally, the return unit 23 is configured to carry the searched basic algorithm required to realize the filter effect selected by the user and the basic algorithm The response message of the execution sequence is returned in the form of a text file.
本发明实施例中,预先分别将实现各种滤镜效果所需要的基础算法及所述基础算法的执行顺序编辑成文本文件,这样,每个文本文件对应一种滤镜效果的实现方式。In the embodiment of the present invention, the basic algorithms required to realize various filter effects and the execution order of the basic algorithms are respectively edited into text files in advance, so that each text file corresponds to a realization mode of a filter effect.
参看图7所示,在前述服务器的具体实施方式中,可选地,所述服务器还包括:更新单元24,用于对实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序进行更新。Referring to FIG. 7 , in the specific implementation of the foregoing server, optionally, the server further includes: an update unit 24, configured to execute the basic algorithm and/or the basic algorithm required to realize the filter effect update in sequence.
本实施例中,在需要更新滤镜效果的种类(如增加新的滤镜效果)时,只需要更新根据实现滤镜效果所需要的基础算法和/或所述基础算法的执行顺序编辑的文本文件,不需要更新冗长的代码,因此在服务器端可以不断地提供各种新的滤镜效果;相对于所有的滤镜效果都在客户端通过程序的形式实现(更新滤镜效果时,需要更新代码),这种滤镜效果实现方式比较灵活,不仅方便开发人员开发,而且不需要更新代码用户就可以使用最新的滤镜效果。In this embodiment, when it is necessary to update the type of filter effect (such as adding a new filter effect), it is only necessary to update the text edited according to the basic algorithm required to realize the filter effect and/or the execution order of the basic algorithm file, no need to update the lengthy code, so various new filter effects can be continuously provided on the server side; all filter effects are implemented in the form of programs on the client side (when updating filter effects, you need to update Code), this kind of filter effect implementation method is more flexible, not only convenient for developers to develop, but also users can use the latest filter effect without updating the code.
在前述服务器的具体实施方式中,为了使客户端装置本地所保存的滤镜效果的种类更丰富,所述服务器还可以包括:所述返回单元23,用于向客户端装置发送滤镜效果更新消息,所述滤镜效果更新消息指示了更新的滤镜效果所需要的基础算法以及所述基础算法的执行顺序。In the specific implementation of the aforementioned server, in order to enrich the types of filter effects locally stored by the client device, the server may also include: the return unit 23, configured to send a filter effect update to the client device message, the filter effect update message indicates the basic algorithm required by the updated filter effect and the execution sequence of the basic algorithm.
前述各实施例所述的实现图像的滤镜效果的方法、装置及服务器中,所述基础算法包括以下算法中的至少一种:饱和度算法、色调算法、叠加算法、线性减淡算法、颜色减淡算法、正片叠底算法、柔光算法、强光算法、色调曲线算法。In the method, device, and server for realizing the filter effect of an image described in the foregoing embodiments, the basic algorithm includes at least one of the following algorithms: saturation algorithm, hue algorithm, overlay algorithm, linear lightening algorithm, color Dodge Algorithm, Multiply Algorithm, Soft Light Algorithm, Hard Light Algorithm, Tone Curve Algorithm.
本发明实施例中,每个滤镜效果都是由一系列的基础算法组合而成的,分别单独实现这些基础算法,然后将这些基础算法按照预先设置好的处理顺序进行执行就可以获得一种滤镜效果,当将这些基础算法按照不同放入处理顺序执行时,能够得到不同的滤镜效果。In the embodiment of the present invention, each filter effect is composed of a series of basic algorithms, and these basic algorithms are implemented separately, and then these basic algorithms are executed according to the preset processing sequence to obtain a Filter effects, when these basic algorithms are executed in different processing sequences, different filter effects can be obtained.
本发明的各实施例可以应用于基于安卓、塞班、IOS操作系统的手机、平板电脑等智能移动设备上的图片处理过程中,也可以应用于计算机上的图片处理过程中。Various embodiments of the present invention can be applied to the image processing process on smart mobile devices such as mobile phones and tablet computers based on Android, Symbian, and IOS operating systems, and can also be applied to the image processing process on computers.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-OnlyMemory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (28)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410404749.2A CN105335940A (en) | 2014-08-15 | 2014-08-15 | Method and apparatus for realizing image filter effect and server |
PCT/CN2015/083492 WO2016023407A1 (en) | 2014-08-15 | 2015-07-07 | Method, apparatus and server for realizing filter effect of image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410404749.2A CN105335940A (en) | 2014-08-15 | 2014-08-15 | Method and apparatus for realizing image filter effect and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105335940A true CN105335940A (en) | 2016-02-17 |
Family
ID=55286450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410404749.2A Pending CN105335940A (en) | 2014-08-15 | 2014-08-15 | Method and apparatus for realizing image filter effect and server |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105335940A (en) |
WO (1) | WO2016023407A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106557559A (en) * | 2016-11-10 | 2017-04-05 | 北京小米移动软件有限公司 | A kind of method and apparatus of image procossing |
CN107295251A (en) * | 2017-06-09 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
CN112561827A (en) * | 2020-12-22 | 2021-03-26 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic equipment and computer readable storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114071181B (en) * | 2021-11-26 | 2024-07-26 | 上海米哈游天命科技有限公司 | Image processing method, system, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102810200A (en) * | 2012-06-15 | 2012-12-05 | 成都平行视野科技有限公司 | Image batch processing method |
CN103533241A (en) * | 2013-10-14 | 2014-01-22 | 厦门美图网科技有限公司 | Photographing method of intelligent filter lens |
CN103916597A (en) * | 2014-03-17 | 2014-07-09 | 厦门美图之家科技有限公司 | Shooting method based on simulated scenario |
CN103927720A (en) * | 2014-04-09 | 2014-07-16 | 厦门美图之家科技有限公司 | Identification and optimization method for sky image |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4114279B2 (en) * | 1999-06-25 | 2008-07-09 | コニカミノルタビジネステクノロジーズ株式会社 | Image processing device |
JP2006107329A (en) * | 2004-10-08 | 2006-04-20 | Noritsu Koki Co Ltd | Image processing device |
JP5806512B2 (en) * | 2011-05-31 | 2015-11-10 | オリンパス株式会社 | Imaging apparatus, imaging method, and imaging program |
US9019400B2 (en) * | 2011-05-31 | 2015-04-28 | Olympus Imaging Corp. | Imaging apparatus, imaging method and computer-readable storage medium |
-
2014
- 2014-08-15 CN CN201410404749.2A patent/CN105335940A/en active Pending
-
2015
- 2015-07-07 WO PCT/CN2015/083492 patent/WO2016023407A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102810200A (en) * | 2012-06-15 | 2012-12-05 | 成都平行视野科技有限公司 | Image batch processing method |
CN103533241A (en) * | 2013-10-14 | 2014-01-22 | 厦门美图网科技有限公司 | Photographing method of intelligent filter lens |
CN103916597A (en) * | 2014-03-17 | 2014-07-09 | 厦门美图之家科技有限公司 | Shooting method based on simulated scenario |
CN103927720A (en) * | 2014-04-09 | 2014-07-16 | 厦门美图之家科技有限公司 | Identification and optimization method for sky image |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106557559A (en) * | 2016-11-10 | 2017-04-05 | 北京小米移动软件有限公司 | A kind of method and apparatus of image procossing |
CN106557559B (en) * | 2016-11-10 | 2020-06-02 | 北京小米移动软件有限公司 | Image processing method and device |
CN107295251A (en) * | 2017-06-09 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
CN107295251B (en) * | 2017-06-09 | 2018-09-25 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
CN112561827A (en) * | 2020-12-22 | 2021-03-26 | Oppo广东移动通信有限公司 | Image processing method, image processing device, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2016023407A1 (en) | 2016-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180165458A1 (en) | Method and apparatus for repairing kernel vulnerability | |
CN112947983B (en) | Application program updating method and device, electronic equipment and storage medium | |
CN107656729B (en) | List view updating apparatus, method and computer-readable storage medium | |
CN110851143B (en) | Source code deployment method, device, equipment and storage medium | |
CN110489106A (en) | A kind of generation method, device, medium and the electronic equipment of project initial code | |
US20190073198A1 (en) | Multi-flavored software execution from a singular code base | |
CN105335940A (en) | Method and apparatus for realizing image filter effect and server | |
WO2019041891A1 (en) | Method and device for generating upgrade package | |
CN111176706A (en) | Terminal upgrading method and device, electronic equipment and storage medium | |
CN105138351A (en) | Method and device for configuring plug-in package for host | |
US20170185388A1 (en) | Application program uninstallation method and apparatus | |
CN109840103A (en) | Update method, device and the storage medium of Application Container | |
CN105119944A (en) | Application starting method and related device | |
CN116302054A (en) | A software project development method, device, storage medium and electronic equipment | |
CN110543756B (en) | Device identification method and device, storage medium and electronic device | |
CN105447040B (en) | Binary file management and updating method, device and system | |
CN108073511B (en) | Test code generation method and device | |
CN110555185A (en) | Page customization method and system based on PC client | |
CN113495723B (en) | Method, device and storage medium for calling functional component | |
CN110727416A (en) | Development framework generation method and related device | |
CN113869016A (en) | Chart configuration method, device and computer program product | |
CN108170391B (en) | Page display method and device and electronic equipment | |
CN109509467B (en) | Code generation method and device | |
CN110309315B (en) | Template file generation method and device, computer readable medium and electronic equipment | |
CN111142990A (en) | WeChat applet page display method and device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100041 Beijing, Shijingshan District Xing Xing street, building 30, No. 3, building 2, A-0070 Applicant after: BEIJING LIEBAO NETWORK TECHNOLOGY CO., LTD. Address before: 100041 Beijing, Shijingshan District Xing Xing street, building 30, No. 3, building 2, A-0070 Applicant before: Beijing Kingsoft Internet Science and Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160217 |
|
RJ01 | Rejection of invention patent application after publication |