WO2019023969A1 - 一种基于智能终端的滤镜切换方法及滤镜切换系统 - Google Patents
一种基于智能终端的滤镜切换方法及滤镜切换系统 Download PDFInfo
- Publication number
- WO2019023969A1 WO2019023969A1 PCT/CN2017/095588 CN2017095588W WO2019023969A1 WO 2019023969 A1 WO2019023969 A1 WO 2019023969A1 CN 2017095588 W CN2017095588 W CN 2017095588W WO 2019023969 A1 WO2019023969 A1 WO 2019023969A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- filter
- smart terminal
- picture
- program
- parameter
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Definitions
- the present invention relates to the field of smart devices, and in particular, to a smart terminal-based filter switching method and a filter switching system.
- filter technology is more and more widely used in people's lives.
- Almost all smart terminals with camera functions or systems with image processing functions have filter functions, which can be directly beautified when taking pictures.
- the image captured by the camera can also beautify the stored image after the photo is taken.
- it will appear to be stuck, especially when the camera is used for the first time after using the filter or calling the image for the first time.
- the stuttering phenomenon is especially noticeable when using filters.
- the present invention realizes the initialization of the filter in advance by applying a blank filter that does not substantially change the image or picture parameters when the camera is started and when the picture is called, thereby eliminating the jamming phenomenon when the filter is subsequently used.
- an object of the present invention is to provide a filter switching method based on a smart terminal and a filter switching system, which can eliminate the jamming phenomenon when using and switching filters.
- the invention discloses a filter switching method based on a smart terminal, comprising the following steps:
- the step of creating a blank filter in the smart terminal comprises:
- parameter information of the first copy image or the first copy image where the parameter information includes one of an image or a pixel of a picture, a resolution, a gray value, a brightness, a red, green, and blue value of each pixel or the like.
- the parameter information of the first copy image or the first copy picture is kept unchanged, and a second copy image or a second copy picture is formed.
- the step of detecting whether the camera in the smart terminal is starting up or whether the picture in the smart terminal is being called is:
- first program is an startup program of the camera
- second program is a program call program in the smart terminal
- the second parameter is returned, and the picture parameters in the second program are read.
- the step of applying the blank filter to the image captured by the camera or the picture comprises:
- the blank filter is applied to the picture corresponding to the picture parameter.
- detecting whether other filters other than the blank filter are enabled switching the blank filter to the other enabled filter when other filters than the blank filter are enabled.
- the steps of the mirror include:
- the filter program being called is executed, and the other filter corresponding to the filter program called is applied to the image captured by the camera or the image.
- the invention also discloses a smart terminal based filter switching system, comprising:
- a blank filter creating module creating a blank filter in the smart terminal, wherein when the blank filter is applied to a camera-captured image or a picture in the smart terminal in the smart terminal, the reservation is retained Image or figure The original parameters of the slice;
- a detecting module detecting whether a camera in the smart terminal is starting up or whether a picture in the smart terminal is being called;
- a filter application module connected to the detection module, when the camera in the smart terminal is activated or a picture in the smart terminal is called, applying the blank filter to an image captured by the camera or On the picture
- a filter switching module connected to the filter application module, detecting whether other filters other than the blank filter are enabled, and when the other filters except the blank filter are enabled, the blank is The filter switches to the other filters that are enabled.
- the blank filter creation module comprises:
- a copying unit copying an image captured by a camera in the smart terminal or a picture in the smart terminal, and buffering to form a first copy image or a first copy image
- a parameter information acquiring unit connected to the copying unit, acquiring parameter information of the first copy image or the first copy image, where the parameter information includes pixels, resolution, gray value, brightness, and each pixel of the image or image One or more of the red, green and blue values;
- the execution unit is connected to the parameter information acquiring unit, and keeps the parameter information of the first copy image or the first copy image unchanged to form a second copy image or a second copy image.
- the detecting module comprises:
- the first program and the second program are obtained, wherein the first program is an startup program of the camera, and the second program is a picture calling program in the smart terminal;
- a first parameter returning unit connected to the program obtaining unit, and returning the first parameter when the first program is called;
- the second parameter returning unit is connected to the program acquiring unit, and when the second program is called, returns a second parameter, and reads a picture parameter in the second program.
- the filter application module comprises:
- a parameter receiving unit receiving a parameter returned by the smart terminal
- a first parameter detecting unit is connected to the parameter receiving unit, and when the parameter returned by the smart terminal is the first parameter, applying the blank filter to the image captured by the camera;
- the second parameter detecting unit is connected to the parameter receiving unit, and when the parameter returned by the smart terminal is the second parameter, the blank filter is applied to the picture corresponding to the picture parameter.
- the filter switching module comprises:
- a filter program acquiring unit which acquires a filter program corresponding to other filters in the smart terminal except the blank filter
- a blank filter deleting unit connected to the filter program acquiring unit, when the at least one of the filter programs is called, deleting the blank filter from an image captured by the camera or on the image;
- FIG. 1 is a schematic flow chart of a filter switching method in accordance with a preferred embodiment of the present invention
- FIG. 2 is a flow chart showing a method of creating a blank filter in a filter switching method in accordance with a preferred embodiment of the present invention
- FIG. 3 is a flow chart showing a method for detecting a camera startup situation and a picture call situation in a filter switching method according to a preferred embodiment of the present invention
- FIG. 4 is a flow chart showing a method of applying a blank filter to a filter switching method in accordance with a preferred embodiment of the present invention
- FIG. 5 is a flow chart showing a method of switching a filter of a filter switching method in accordance with a preferred embodiment of the present invention
- FIG. 6 is a block diagram showing the structure of a filter switching system in accordance with a preferred embodiment of the present invention.
- Figure 7 is a block diagram showing the structure of a blank filter creation module of a filter switching system in accordance with a preferred embodiment of the present invention.
- Figure 8 is a block diagram showing the structure of a detection module of a filter switching system in accordance with a preferred embodiment of the present invention.
- Figure 9 is a block diagram showing the structure of a filter application module of a filter switching system in accordance with a preferred embodiment of the present invention.
- Figure 10 is a block diagram showing the structure of a filter switching module of a filter switching system in accordance with a preferred embodiment of the present invention.
- the smart terminal can be implemented in various forms.
- the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, and the like, and such as Fixed terminal for digital TV, desktop computer, etc.
- a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, and the like, and such as Fixed terminal for digital TV, desktop computer, etc.
- PDA Personal Digital Assistant
- PAD Tablet
- PMP Portable Multimedia Player
- FIG. 1 is a schematic flow chart of a filter switching method according to a preferred embodiment of the present invention.
- the filter switching method specifically includes the following steps:
- the application object of the blank filter includes both the image captured by the camera in the smart terminal and the image already stored in the smart terminal.
- the blank filter does not change the parameters of the image or the picture, and the original parameters of the image or the picture are kept unchanged, and the image or picture is unchanged.
- the original parameters include the pixel size, the red, green, and blue values of each pixel, that is, the RGB values and the like.
- a filter Since the use of a filter usually occurs when the filter is used for the first time after the camera is turned on and when the filter is first used, that is, when the filter state is never used until the filter state is used, a jam occurs.
- the blank filter needs to be applied to the image captured by the camera in the smart terminal or the picture in the smart terminal, and the filter is initialized by using a blank filter before the user does not use the filter.
- the filter When the filter is used later, it is only necessary to perform the corresponding image processing operation, thereby eliminating the stutter phenomenon. So, you need to know if the camera is starting up or Whether the picture is being called for detection determines whether the application of the blank filter and the blank filter is the image captured by the camera or the picture in the smart terminal.
- S300 applying a blank filter to an image captured by the camera or the image when a camera in the smart terminal is starting up or a picture in the smart terminal is being called.
- the blank filter program is called to apply the blank filter to the image captured by the camera; when it is detected that the picture in the smart terminal is being called, the blank filter program is called. Apply a blank filter to the called picture in the smart terminal.
- the image captured by the camera or the called picture that the user sees at this time is an image or picture with a blank filter.
- the user may use other filters.
- a method for creating a blank filter in the smart space includes:
- S101 Copy an image captured by a camera in the smart terminal or a picture in the smart terminal, and cache, to form a first copy image or a first copy image.
- the copy of the target object is substantially operated. Therefore, before the image processing operation of the image captured by the camera in the smart terminal or the image in the smart terminal, it is necessary to acquire the image captured by the camera or the smart terminal. A copy of the picture, therefore, first need to copy the image captured by the camera or the picture in the smart terminal, and perform a buffer operation, temporarily storing it in the buffer to form a first copy image or a first copy picture.
- S102 Acquire parameter information of the first copy image or the first copy image, where the parameter information includes one of an image, a pixel of a picture, a resolution, a gray value, a brightness, and a red, green, and blue value of each pixel.
- the parameter information includes one of an image, a pixel of a picture, a resolution, a gray value, a brightness, and a red, green, and blue value of each pixel.
- Parameter information, parameter information should include the image, image pixel, resolution, gray value, brightness, each pixel One or more of the information such as the RGB value of the point.
- the parameter information of the first copy image or the first copy image should be kept unchanged.
- the parameter information is the RGB value of each pixel
- the red, green and blue values of each pixel can be decremented by 0 or 0, which is equivalent to not changing the red, green and blue values, and otherwise
- the operation of multiplying or dividing the red, green and blue values by 1 also does not change the red, green and blue values. In fact, all operations that do not change the original parameters of the image or image are possible.
- the parameter information is pixel size, resolution size, brightness, and gray value
- the value of each parameter information is multiplied by 1 or divided by 1. The operation can also be performed, even after the first copy image or the first copy image is acquired.
- the second copy image or the second copy image acquired at this time is an image or a picture applied by a blank filter.
- the step of detecting whether a camera in the smart terminal is being activated or whether a picture in the smart terminal is being called may specifically include:
- S201 Acquire a first program and a second program, where the first program is an startup program of the camera, and the second program is a picture calling program in the smart terminal
- the first program When it is detected that the program name of the first program in the smart terminal is called or the corresponding trigger flag is true, the first program is called, therefore, the camera is starting to return the first parameter to the smart terminal, and the first parameter is camera-activated. Sign.
- the second program When it is detected that the program name of the second program in the smart terminal is called or the corresponding trigger flag is true, the second program is called, therefore, a certain picture is being called, and the second parameter is returned to the smart terminal, and the second parameter is The logo that the picture is called.
- the picture parameter called in the second program that is, the picture calling program, thereby determining the called picture.
- the step of applying the blank filter to the image captured by the camera or the image specifically includes:
- S301 Receive parameters returned by the smart terminal.
- the detection result that is, the parameter returned by the smart terminal, including the first parameter and the second parameter, and also includes the unreturned parameter.
- the first parameter is a logo of the camera startup in the smart terminal
- the second parameter is a flag that the image is called.
- the parameter is not returned and the parameter is received, it does not mean that no parameter is returned, and is related to the set parameter condition, for example,
- the true value of a parameter or a second parameter means that the camera is starting up or the picture is being called, then the first parameter and the second parameter are both false, that is, the parameter is not returned; if the first parameter or the second parameter exists, regardless of the parameter The value indicates that the camera is starting up or the picture is being called, and the first parameter and the second parameter are not received, that is, the parameter is not returned.
- the picture parameter returned at the same time should also be received.
- S302 Apply the blank filter to the image captured by the camera when the parameter returned by the smart terminal is the first parameter.
- the code program corresponding to the blank filter needs to be executed, and the blank filter is applied to the image captured by the camera. Operation, advances the filter initialization without changing the parameters of the image, so the user does not know that the system has performed this operation, and the image is not the first time when the user applies the filter that changes the image parameters for the first time.
- the filter there is no stagnation, and in the user's opinion, the first time the filter is used, there is no stagnation, and the subsequent use is the same, thus achieving the smoothness of the filter switching and use.
- the code program corresponding to the blank filter needs to be executed, and at the same time, the picture parameter in the picture calling program needs to be read to determine The image is called, so that the blank filter is applied to the called image.
- the initialization of the filter is advanced without changing the parameters of the image, so the user does not know that the system has performed this operation, but
- the user first applies the filter that changes the picture parameters the picture is not the first time to use the filter, and there will be no jamming. In the user's opinion, the first time the filter is used, there is no jam, follow-up The same is true for use, thus achieving fluency in filter switching and use.
- the steps for the other filters that are enabled include:
- the filter program corresponding to other filters the filter program program name corresponding to other filters or the corresponding trigger flag can be used. When it is detected that the program name of a filter program is called or the corresponding trigger flag is true, I think the program is called.
- the program is called, and the user needs to use the filter with image processing function. Therefore, it is necessary to delete the blank filter that has been used, that is, to delete the image processing operation by the blank filter.
- the image processing by the blank filter The operation does not change the original parameters of the image or picture, so the delete operation here may not be performed.
- the deletion method can be performed by performing the opposite operation to the image processing operation in the filter program, that is, by the reverse operation, or by saving two copies while performing the filter operation, and performing image processing operations on one of the copies.
- the filter needs to be deleted, the copy of the image processing operation is directly deleted, and another copy that is not subjected to the image processing operation is retrieved.
- a smart terminal-based filter switching system specifically includes the following components:
- Blank filter creation module in order to achieve the filterless use and switching of the filter, you need to use the blank filter to achieve the filter initialization function, you need to create a blank filter.
- the application object of the blank filter includes both the image captured by the camera in the smart terminal and the image already stored in the smart terminal.
- the blank filter When the blank filter is applied to the image captured by the camera in the smart terminal or the picture in the smart terminal, the blank filter does not change the parameters of the image or the picture, and the original parameters of the image or the picture are kept unchanged, and the image or picture is unchanged.
- the original parameters include the pixel size, the red, green, and blue values of each pixel, that is, the RGB values and the like.
- Detection module because the use of the filter is usually the first time you use the filter after starting the camera and the first time you use the filter to open the picture, that is, the filter state will never be used until the filter state is used. Therefore, when starting the camera and when calling the picture, it is necessary to apply the blank filter to the image captured by the camera in the smart terminal or the picture in the smart terminal, by using the blank filter to achieve the filter before the user does not use the filter. Initialization, subsequent use of the filter only need to perform the corresponding image processing operation, thereby eliminating the phenomenon of stuttering. Therefore, it is necessary to detect whether the camera is starting up or whether the picture is being called, thereby determining whether to apply the blank filter and whether the application object of the blank filter is the image captured by the camera or the picture in the smart terminal.
- the filter application module is connected to the detection module, and after detecting whether the camera in the smart terminal is activated and whether the picture is called, it is determined whether to apply the blank filter and the application object of the blank filter according to the detection result.
- the blank filter program is called to apply the blank filter to the image captured by the camera; when it is detected that the picture in the smart terminal is being called, the blank filter program is called. Apply a blank filter to the called picture in the smart terminal.
- a filter switching module connected to the filter application module, since the blank filter has been applied to the image captured by the camera or to the called image, the image captured by the camera or the called image that the user sees at this time
- the image is an image or image with a blank filter.
- the user may use other filters. To ensure that the user does not have any jam when using other filters, it is necessary to monitor in real time whether other filters except the blank filter are enabled. When other filters are enabled, you need to switch the blank filter to another filter that is enabled. When switching, it is only necessary to perform image processing operations in the filter program corresponding to other filters, and it is not necessary to initialize again, thereby saving running time and solving the problem of jamming.
- the blank filter creation module specifically includes:
- the copying unit substantially operates the copy of the target object when performing the filter operation. Therefore, before performing image processing operations on the image captured by the camera in the smart terminal or the image in the smart terminal, it is necessary to acquire the image captured by the camera or A copy of the picture in the smart terminal. Therefore, it is first necessary to copy the image captured by the camera or the picture in the smart terminal, and perform a buffer operation, temporarily storing it in the buffer to form a first copy image or a first copy picture.
- the parameter information acquiring unit is connected to the copying unit, and after acquiring the first copy image or the first copy image, the first copy image or the first copy image needs to be processed without changing the image of the image or the image parameter, and therefore, the image needs to be acquired.
- the parameter information of the first copy image or the first copy picture, the parameter information shall include one or more of information such as pixels of an image or a picture, resolution, gray value, brightness, RGB value of each pixel, and the like. .
- An execution unit connected to the parameter information acquiring unit, to acquire the first copy image or the first copy image
- the parameter information of the first copy image or the first copy picture should be kept unchanged.
- the parameter information is the RGB value of each pixel
- the red, green and blue values of each pixel can be decremented by 0 or 0, which is equivalent to not changing the red, green and blue values, and otherwise
- the operation of multiplying or dividing the red, green and blue values by 1 also does not change the red, green and blue values. In fact, all operations that do not change the original parameters of the image or image are possible.
- the value of each parameter information is multiplied by 1 or divided by 1.
- the operation can also be performed, even after the first copy image or the first copy image is acquired.
- the second copy image or the second copy image acquired at this time is an image or a picture applied by a blank filter.
- the detecting module specifically includes:
- the program obtaining unit is configured to detect whether the first program, that is, the corresponding camera program, and the second program, that is, the picture calling program, are detected whether the camera in the smart terminal is starting up or whether the picture in the smart terminal is being called. Call, therefore, you need to get the program name of the camera startup program and the picture call program, or set the corresponding trigger flag to the camera program and the picture call program. When the program is triggered, the corresponding trigger flag is true.
- a first parameter returning unit is connected to the program acquiring unit, and when detecting that the program name of the first program in the smart terminal is called or the corresponding trigger flag is true, the first program is called, and therefore, the camera is starting, The smart terminal returns the first parameter, and the first parameter is a camera-initiated flag.
- a second parameter returning unit is connected to the program acquiring unit.
- the second program When it is detected that the program name of the second program in the smart terminal is called or the corresponding trigger flag is true, the second program is called, and therefore, a certain picture is being The call returns a second parameter to the smart terminal, and the second parameter is a flag that the picture is called.
- the second parameter is a flag that the picture is called.
- the filter application module specifically includes:
- the parameter receiving unit after detecting whether the camera in the smart terminal is starting up or whether the picture in the smart terminal is being called, needs to receive the detection result, that is, the parameter returned by the smart terminal, including the first parameter and the second parameter, including The parameter is not returned.
- the first parameter is the flag of the camera in the smart terminal.
- the second parameter is the flag that the picture is called. If the parameter is not returned and the parameter is received, it does not mean that no parameter is returned. It is related to the parameter setting.
- the first parameter or the second parameter represents true that the camera is starting up or the picture is being called, then the first parameter and the second parameter are both false, that is, the parameter is not returned; if the first parameter or the second parameter exists
- the parameter regardless of the value of the parameter, means that the camera is starting up or the picture is being called, then the first parameter and the second parameter are not received, ie the parameter is not returned.
- the picture parameter returned at the same time should also be received.
- the first parameter detecting unit is connected to the parameter receiving unit, and when receiving the parameter returned by the smart terminal as the first parameter, it is considered that the camera in the smart terminal is starting, and the code program corresponding to the blank filter needs to be executed at this time,
- the blank filter is applied to the image captured by the camera.
- the initialization of the filter is advanced without changing the parameters of the image, so the user does not know that the system has performed this operation, and the user applies the change for the first time.
- the image parameter is filtered, the image is not the first time the filter is used, and no jam occurs. In the user's opinion, the first time the filter is used, there is no jam, and the subsequent use is the same.
- the second parameter detecting unit is connected to the parameter receiving unit.
- the parameter returned by the smart terminal is the second parameter, it is considered that the picture in the smart terminal is being called, and the code program corresponding to the blank filter needs to be executed at the same time. It is necessary to read the picture parameters in the picture calling program, determine the called picture, and apply the blank filter to the called picture. Through this operation, the filter initialization work is advanced without changing the picture parameters.
- the user does not know that the system has performed this operation, and when the user applies the filter for changing the picture parameters for the first time, the picture is not the first time the filter is used, and no jam occurs, but in the user's view, The first time the filter is used, there is no stagnation, and the subsequent use is the same, thus achieving smoothness of filter switching and use.
- the filter switching module includes:
- the filter program acquisition unit needs to perform the corresponding switching operation when the user uses the filter. Therefore, it is necessary to monitor the user using the filter function, and firstly, the acquisition of the smart terminal is required.
- the filter program corresponding to the other filter outside the blank filter, the filter program program name corresponding to the other filter or the corresponding trigger flag may be used, when the program name of a certain filter program is detected or corresponding When the trigger flag is true, the program is considered to be called.
- a blank filter deleting unit is connected to the filter program acquiring unit to acquire a filter program corresponding to the filter other than the blank filter in the smart terminal, and then monitoring the filter, and detecting a certain filter
- the program name of the program is called or the corresponding trigger flag is true, the program is called.
- the user needs to use the filter with image processing function. Therefore, it is necessary to delete the blank filter that has been used, that is, delete the blank filter.
- the image processing operation in fact, the image processing operation by the blank filter does not change the original parameters of the image or the picture, so the deletion operation may not be performed here.
- the deletion method can be performed by performing the opposite operation to the image processing operation in the filter program, that is, by the reverse operation, or by saving two copies while performing the filter operation, and performing image processing operations on one of the copies.
- the filter needs to be deleted, the copy of the image processing operation is directly deleted, and another copy that is not subjected to the image processing operation is retrieved.
- the other filter application unit is connected to the blank filter deleting unit. After the blank filter is deleted, the filter used by the user needs to be applied to the image captured by the camera or the image in the smart terminal. At this time, the execution is called. Filter The program applies the filter corresponding to the called filter program to the image captured by the camera or to the image. When executing the called filter program, it is only necessary to perform the image processing operation corresponding to the called filter, without performing pre-order operations such as initialization, so that the smooth switching of the filter is realized, and the filter does not appear. Caton phenomenon.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
Abstract
一种基于智能终端的滤镜切换方法及滤镜切换系统,滤镜切换的方法包括以下步骤:在智能终端内创建一空白滤镜,当空白滤镜应用至智能终端内的相机捕捉的图像或智能终端内的图片上时,保留图像或图片的原始参数;检测智能终端内的相机是否正在启动或智能终端内的图片是否正被调用;当智能终端内的相机正在启动或智能终端内的图片正被调用时,将空白滤镜应用至相机捕捉的图像上或图片上;检测除空白滤镜外的其他滤镜是否被启用,当除空白滤镜外的其他滤镜被启用时,删除空白滤镜,将被启用的其他滤镜应用至所述相机捕捉的图像上或图片上。采用上述技术方案后,可以流畅切换或调用滤镜,实现滤镜的无卡顿切换。
Description
本发明涉及智能设备领域,尤其涉及一种基于智能终端的滤镜切换方法及滤镜切换系统。
随着图像处理技术的成熟,滤镜技术越来越普遍应用到人们的生活中,几乎所有具有拍照功能的智能终端或具有图像处理功能的系统都具有滤镜功能,既可以在拍照时直接美化相机捕捉的图像,也可以在拍照完成后对所存储的图片进行美化,然而,在使用滤镜时会出现卡顿现象,尤其是相机启动后第一次使用滤镜或调用图片时第一次使用滤镜时,卡顿现象尤为明显。
因此,本发明通过在相机启动时以及调用图片时预先应用不对图像或图片参数进行实质性更改的空白滤镜,提前实现滤镜的初始化,消除后续使用滤镜时的卡顿现象。
发明内容
为了克服上述技术缺陷,本发明的目的在于提供一种基于智能终端的滤镜切换方法及滤镜切换系统,可消除使用与切换滤镜时的卡顿现象。
本发明公开了一种基于智能终端的滤镜切换方法,包括以下步骤:
于所述智能终端内创建一空白滤镜,其中当所述空白滤镜应用至所述智能终端内的相机捕捉的图像或所述智能终端内的图片上时,保留所述图像或图片的原始参数;
检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否正被调用;
当所述智能终端内的相机启动或所述智能终端内的图片被调用时,将所述空白滤镜应用至所述相机捕捉的图像上或所述图片上;
检测除所述空白滤镜外的其他滤镜是否被启用,当除所述空白滤镜外的其他滤镜被启用时,将所述空白滤镜切换为所述被启用的其他滤镜。
优选地,于所述智能终端内创建一空白滤镜的步骤包括:
将所述智能终端内的相机捕捉的图像或所述智能终端内的图片复制,并缓存,形成第一副本图像或第一副本图片;
获取所述第一副本图像或第一副本图片的参数信息,参数信息包括图像或图片的像素、分辨率、灰度值、亮度、每一像素点的红绿蓝值等信息中的一种或多种;
保持所述第一副本图像或第一副本图片的参数信息不变,形成第二副本图像或第二副本图片。
优选地,检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否被正调用的步骤包括:
获取第一程序与第二程序,其中第一程序为所述相机的启动程序,第二程序为所述智能终端内的图片调用程序;
当所述第一程序被调用时,返回第一参数;
当所述第二程序被调用时,返回第二参数,并读取所述第二程序内的图片参数。
优选地,当所述智能终端内的相机正在启动或图片正被调用时,将所述空白滤镜应用至所述相机捕捉的图像上或所述图片上的步骤包括:
接收所述智能终端返回的参数;
当所述智能终端返回的参数为第一参数时,将所述空白滤镜应用至所述相机捕捉的图像上;
当所述智能终端返回的参数为第二参数时,将所述空白滤镜应用至所述图片参数对应的图片上。
优选地,检测除所述空白滤镜外的其他滤镜是否被启用,当除所述空白滤镜外的其他滤镜被启用时,将所述空白滤镜切换为所述被启用的其他滤镜的步骤包括:
获取所述智能终端内除所述空白滤镜外的其他滤镜对应的滤镜程序;
当所述滤镜程序中的至少一个被调用时,从所述相机捕捉的图像上或所述图片上删除所述空白滤镜;
执行被调用的所述滤镜程序,将被调用的所述滤镜程序对应的所述其他滤镜应用至所述相机捕捉的图像上或所述图片上。
本发明还公开了一种基于智能终端的滤镜切换系统,包括:
空白滤镜创建模块,在所述智能终端内创建一空白滤镜,其中当所述空白滤镜应用至所述智能终端内的相机捕捉的图像或所述智能终端内的图片上时,保留所述图像或图
片的原始参数;
检测模块,检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否正被调用;
滤镜应用模块,与所述检测模块连接,当所述智能终端内的相机启动或所述智能终端内的图片被调用时,将所述空白滤镜应用至所述相机捕捉的图像上或所述图片上;
滤镜切换模块,与所述滤镜应用模块连接,检测除所述空白滤镜外的其他滤镜是否被启用,当除所述空白滤镜外的其他滤镜被启用时,将所述空白滤镜切换为所述被启用的其他滤镜。
优选地,所述空白滤镜创建模块包括:
复制单元,将所述智能终端内的相机捕捉的图像或所述智能终端内的图片复制,并缓存,形成第一副本图像或第一副本图片;
参数信息获取单元,与所述复制单元连接,获取所述第一副本图像或第一副本图片的参数信息,参数信息包括图像或图片的像素、分辨率、灰度值、亮度、每一像素点的红绿蓝值信息中的一种或多种;
执行单元,与所述参数信息获取单元连接,保持所述第一副本图像或第一副本图片的参数信息不变,形成第二副本图像或第二副本图片。
优选地,所述检测模块包括:
程序获取单元,获取第一程序与第二程序,其中第一程序为所述相机的启动程序,第二程序为所述智能终端内的图片调用程序;
第一参数返回单元,与所述程序获取单元连接,当所述第一程序被调用时,返回第一参数;
第二参数返回单元,与所述程序获取单元连接,当所述第二程序被调用时,返回第二参数,并读取所述第二程序内的图片参数。
优选地,所述滤镜应用模块包括:
参数接收单元,接收所述智能终端返回的参数;
第一参数检测单元,与所述参数接收单元连接,当所述智能终端返回的参数为第一参数时,将所述空白滤镜应用至所述相机捕捉的图像上;
第二参数检测单元,与所述参数接收单元连接,当所述智能终端返回的参数为第二参数时,将所述空白滤镜应用至所述图片参数对应的图片上。
优选地,所述滤镜切换模块包括:
滤镜程序获取单元,获取所述智能终端内除所述空白滤镜外的其他滤镜对应的滤镜程序;
空白滤镜删除单元,与所述滤镜程序获取单元连接,当所述滤镜程序中的至少一个被调用时,从所述相机捕捉的图像上或所述图片上删除所述空白滤镜;
其他滤镜应用单元,与所述空白滤镜删除单元连接,执行被调用的所述滤镜程序,将被启用的所述滤镜程序对应的所述其他滤镜应用至所述相机捕捉的图像上或所述图片上。
采用了上述技术方案后,与现有技术相比,具有以下有益效果:
1.拍照使用滤镜时无卡顿;
2.查看照片切换滤镜时无卡顿。
图1为符合本发明一优选实施例中滤镜切换方法的流程示意图;
图2为符合本发明一优选实施例中,滤镜切换方法的创建空白滤镜的方法的流程示意图;
图3为符合本发明一优选实施例中,滤镜切换方法的检测相机启动情况与图片调用情况的方法的流程示意图;
图4为符合本发明一优选实施例中,滤镜切换方法的应用空白滤镜的方法的流程示意图;
图5为符合本发明一优选实施例中,滤镜切换方法的切换滤镜的方法的流程示意图;
图6为符合本发明一优选实施例滤镜切换系统的系统结构示意图。
图7为符合本发明一优选实施例中,滤镜切换系统的空白滤镜创建模块的结构示意图。
图8为符合本发明一优选实施例中,滤镜切换系统的检测模块的结构示意图。
图9为符合本发明一优选实施例中,滤镜切换系统的滤镜应用模块的结构示意图。
图10为符合本发明一优选实施例中,滤镜切换系统的滤镜切换模块的结构示意图。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施
例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
在本发明的描述中,除非另有规定和限定,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。
智能终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。
参阅图1,为本发明一优选实施例中滤镜切换方法的流程示意图。该实施例中,滤镜切换方法具体包括以下步骤:
S100:于所述智能终端内创建一空白滤镜
为了实现滤镜的无卡顿使用与切换,需要使用空白滤镜实现滤镜的初始化功能,需要创建一空白滤镜。由于使用相机以及处理图片时均有可以使用滤镜,因此,空白滤镜的应用对象既包括智能终端内的相机捕捉的图像,也包括已存储在智能终端内的图片。当空白滤镜应用至智能终端内的相机捕捉的图像或智能终端内的图片上时,空白滤镜不改变图像或图片的参数,保持所述图像或图片的原始参数不变,图像或图片的原始参数包括像素大小、每一像素点的红绿蓝值,即RGB值等参数。
S200:检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否正被调用
由于使用滤镜的卡顿一般出现在启动相机后第一次使用滤镜以及打开图片第一次使用滤镜时,也即从未使用滤镜状态到使用滤镜状态会发生卡顿,因此,在启动相机时以及调用图片时需要将空白滤镜应用至智能终端内的相机捕捉的图像或智能终端内的图片上,通过在用户未使用滤镜前使用空白滤镜实现对滤镜的初始化,后续使用滤镜时只需执行相应的图像处理操作即可,从而消除卡顿现象。因此,需要对相机是否正在启动或
图片是否正被调用进行检测,从而决定是否应用空白滤镜以及空白滤镜的应用对象是相机捕捉的图像还是智能终端内的图片。
S300:当所述智能终端内的相机正在启动或所述智能终端内的图片正被调用时,将所述空白滤镜应用至所述相机捕捉的图像上或所述图片上
检测智能终端内的相机是否启动以及图片是否被调用后,需要根据检测结果确定是否应用空白滤镜以及空白滤镜的应用对象。当检测到智能终端内的相机正在启动时,将调用空白滤镜程序,将空白滤镜应用到相机所捕捉的图像上;当检测到智能终端内的图片正被调用时,调用空白滤镜程序,将空白滤镜应用到智能终端内被调用的图片上。
S400:检测除所述空白滤镜外的其他滤镜是否被启用,当除所述空白滤镜外的其他滤镜被启用时,将所述空白滤镜切换为所述被启用的其他滤镜
由于已经将空白滤镜应用至相机捕捉的图像上或被调用的图片上,因此,此时用户看到的相机捕捉的图像或被调用的图片为带空白滤镜的图像或图片。相机启动或智能终端内的图片被调用后,用户有可能使用其他滤镜,为保证用户使用其他滤镜时无卡顿,需要实时监测除空白滤镜外的其他滤镜是否被启用,当检测到其他滤镜被启用时,需要将空白滤镜切换为被启用的其他滤镜。切换时只需执行其他滤镜对应的滤镜程序中的图像处理操作即可,无需再次初始化,从而节省了运行时间,解决卡顿问题。
具有上述配置后,在使用滤镜时,用户不会看到卡顿现象,从而实现流畅切换滤镜的效果。
参阅图2,在一优选实施例中,于所述智能空间内创建空白滤镜的方法,具体包括有:
S101:将所述智能终端内的相机捕捉的图像或所述智能终端内的图片复制,并缓存,形成第一副本图像或第一副本图片
在进行滤镜操作时,实质上是对目标对象的副本进行操作,因此对智能终端内的相机捕捉的图像或智能终端内的图片进行图像处理操作前,需要获取相机捕捉的图像或智能终端内的图片的副本,因此,首先需要复制相机捕捉的图像或智能终端内的图片,并进行缓存操作,将其临时存储在缓冲器中,形成第一副本图像或者第一副本图片。
S102:获取所述第一副本图像或第一副本图片的参数信息,参数信息包括图像或图片的像素、分辨率、灰度值、亮度、每一像素点的红绿蓝值等信息中的一种或多种
获取第一副本图像或者第一副本图片后,需要对第一副本图像或者第一副本图片进行不改变图片或图像参数的图像处理,因此,需要获取所述第一副本图像或第一副本图片的参数信息,参数信息应包括图像或图片的像素、分辨率、灰度值、亮度、每一像素
点的RGB值等信息中的一种或多种。
S103:保持所述第一副本图像或第一副本图片的参数信息不变,形成第二副本图像或第二副本图片
获取所述第一副本图像或第一副本图片的参数信息后,由于空白滤镜不改变图像或图片的原始参数,因此,应保持所述第一副本图像或第一副本图片的参数信息不变。如,参数信息为每一像素点的RGB值时,可对每一像素点的红绿蓝值进行减0或加0操作,相当于不更改红绿蓝值,除此之外,将获取的红绿蓝值都乘以或除以1的操作也是不更改红绿蓝值的操作。事实上,所有不更改图像或图片的原始参数的操作都是可以的,参数信息为像素大小、分辨率大小、亮度、灰度值时,对各参数信息的值进行乘以1或除以1的操作也可以,甚至在获取第一副本图像或第一副本图片后不进行操作也可以。此时获取的第二副本图像或第二副本图片即为经空白滤镜应用后的图像或图片。
参阅图3,在一优选实施例中,检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否被正调用的步骤可具体包括:
S201:获取第一程序与第二程序,其中第一程序为所述相机的启动程序,第二程序为所述智能终端内的图片调用程序
为检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否被正调用,需要检测第一程序即相应的相机程序以及第二程序即图片调用程序是否正被调用,因此,需要获取相机启动程序以及图片调用程序的程序名,或给相机程序以及图片调用程序设定相应触发标志,当程序被触发时,相应的触发标志为true。
S202:当所述第一程序被调用时,返回第一参数
当检测到智能终端内第一程序的程序名被调用或相应的触发标志为true时,第一程序被调用,因此,相机正在启动,向智能终端返回第一参数,第一参数为相机启动的标志。
S203:当所述第二程序被调用时,返回第二参数,并读取所述第二程序内的图片参数
当检测到智能终端内第二程序的程序名被调用或相应的触发标志为true时,第二程序被调用,因此,某一图片正被调用,向智能终端返回第二参数,第二参数为图片被调用的标志。同时,为明确被调用的图片为哪一图片,需要读取第二程序即图片调用程序中调用的图片参数,从而确定被调用的图片。
参阅图4,在一优选实施例中,当所述智能终端内的相机启动或图片被调用时,将所
述空白滤镜应用至所述相机捕捉的图像上或所述图片上的步骤具体包括:
S301:接收所述智能终端返回的参数
在检测智能终端内的相机是否正在启动或智能终端内的图片是否被正调用后,需要接收检测结果,也即智能终端返回的参数,包括第一参数与第二参数,也包括未返回参数,第一参数为智能终端内相机启动的标志,第二参数为图片被调用的标志,未返回参数即并接收到参数并一定不意味着没有参数返回,与设置的参数情况相关,例如,以第一参数或第二参数的true代表相机正在启动或图片正被调用,则第一参数与第二参数均为false时,即为未返回参数;若以存在第一参数或第二参数而不论参数的数值代表相机正在启动或图片正被调用,则没有接收到第一参数与第二参数即认为未返回参数。其中接收第二参数时,也应接收同时返回的图片参数。
S302:当所述智能终端返回的参数为第一参数时,将所述空白滤镜应用至所述相机捕捉的图像上
当接收到智能终端返回的参数为第一参数时,则认为智能终端内相机正在启动,此时需要执行空白滤镜对应的代码程序,将空白滤镜应用至相机捕捉的图像上,通过这一操作,将滤镜初始化的工作提前,而不改变图像的参数,因此用户并不知道系统已经执行此操作,而在用户第一次应用改变图像参数的滤镜时,该图像已经不是第一次使用滤镜,不会出现卡顿,而在用户看来,其第一次使用滤镜就没有出现卡顿,后续使用同样如此,因此,实现了滤镜切换与使用的流畅性。
S303:当所述智能终端返回的参数为第二参数时,将所述空白滤镜应用至所述图片参数对应的图片上
当接收到智能终端返回的参数为第二参数时,则认为智能终端内图片正在调用,此时需要执行空白滤镜对应的代码程序,同时,需要读取图片调用程序中的图片参数,确定被调用的图片,从而将空白滤镜应用至被调用的图片上,通过这一操作,将滤镜初始化的工作提前,而不改变图片的参数,因此用户并不知道系统已经执行此操作,而在用户第一次应用改变图片参数的滤镜时,该图片已经不是第一次使用滤镜,不会出现卡顿,而在用户看来,其第一次使用滤镜就没有出现卡顿,后续使用同样如此,因此,实现了滤镜切换与使用的流畅性。
参阅图5,在一优选实施例中,检测除所述空白滤镜外的其他滤镜是否被启用,当除所述空白滤镜外的其他滤镜被启用时,将所述空白滤镜切换为所述被启用的其他滤镜的步骤具体包括有:
S401:获取所述智能终端内除所述空白滤镜外的其他滤镜对应的滤镜程序
为了实现滤镜程序切换的流畅性,需要在用户使用滤镜时执行相应的切换操作,因此,需要对用户使用滤镜功能进行监测,首先需要获取所述智能终端内除所述空白滤镜外的其他滤镜对应的滤镜程序,其他滤镜对应的滤镜程序程序名或相应的触发标志均可,当检测到某一滤镜程序的程序名被调用或相应的触发标志为true时,认为该程序被调用。
S402:当所述滤镜程序中的至少一个被调用时,从所述相机捕捉的图像上或所述图片上删除所述空白滤镜
获取智能终端内除所述空白滤镜外的其他滤镜对应的滤镜程序后,对其进行监测,当当检测到某一滤镜程序的程序名被调用或相应的触发标志为true时,该程序被调用,此时用户需要使用具有图像处理功能的滤镜,因此,需要删除已经使用的空白滤镜,即删除空白滤镜进行的图像处理操作,事实上,由于空白滤镜进行的图像处理操作并不改变图像或图片的原始参数,因此,此处删除操作也可不执行。删除的方法既可以通过执行与滤镜程序中图像处理操作相反的操作,即通过逆操作进行还原,也可以在进行滤镜操作时保存两个副本,在其中一个副本上进行图像处理操作,当需要删除滤镜时,直接删除进行图像处理操作的该副本,并调取未进行图像处理操作的另一副本。
S403:执行被调用的所述滤镜程序,将被调用的所述滤镜程序对应的所述其他滤镜应用至所述相机捕捉的图像上或所述图片上
删除空白滤镜后,需要将用户使用的滤镜应用至相机捕捉的图像上或智能终端内的图片上,此时,执行被调用的滤镜程序,将被调用的滤镜程序对应的滤镜应用至相机捕捉的图像上或所述图片上。在执行被调用的滤镜程序时,只需执行该被调用的滤镜对应的图像处理操作即可,而不需要进行初始化等前序操作,因此,实现了滤镜的流畅切换,不会出现卡顿现象。
参阅图6,为符合本发明一优选实施例中基于智能终端的滤镜切换系统,其具体包括以下部件:
空白滤镜创建模块,为了实现滤镜的无卡顿使用与切换,需要使用空白滤镜实现滤镜的初始化功能,需要创建一空白滤镜。由于使用相机以及处理图片时均有可以使用滤镜,因此,空白滤镜的应用对象既包括智能终端内的相机捕捉的图像,也包括已存储在智能终端内的图片。当空白滤镜应用至智能终端内的相机捕捉的图像或智能终端内的图片上时,空白滤镜不改变图像或图片的参数,保持所述图像或图片的原始参数不变,图像或图片的原始参数包括像素大小、每一像素点的红绿蓝值,即RGB值等参数。
检测模块,由于使用滤镜的卡顿一般出现在启动相机后第一次使用滤镜以及打开图片第一次使用滤镜时,也即从未使用滤镜状态到使用滤镜状态会发生卡顿,因此,在启动相机时以及调用图片时需要将空白滤镜应用至智能终端内的相机捕捉的图像或智能终端内的图片上,通过在用户未使用滤镜前使用空白滤镜实现对滤镜的初始化,后续使用滤镜时只需执行相应的图像处理操作即可,从而消除卡顿现象。因此,需要对相机是否正在启动或图片是否正被调用进行检测,从而决定是否应用空白滤镜以及空白滤镜的应用对象是相机捕捉的图像还是智能终端内的图片。
滤镜应用模块,与所述检测模块连接,检测智能终端内的相机是否启动以及图片是否被调用后,需要根据检测结果确定是否应用空白滤镜以及空白滤镜的应用对象。当检测到智能终端内的相机正在启动时,将调用空白滤镜程序,将空白滤镜应用到相机所捕捉的图像上;当检测到智能终端内的图片正被调用时,调用空白滤镜程序,将空白滤镜应用到智能终端内被调用的图片上。
滤镜切换模块,与所述滤镜应用模块连接,由于已经将空白滤镜应用至相机捕捉的图像上或被调用的图片上,因此,此时用户看到的相机捕捉的图像或被调用的图片为带空白滤镜的图像或图片。相机启动或智能终端内的图片被调用后,用户有可能使用其他滤镜,为保证用户使用其他滤镜时无卡顿,需要实时监测除空白滤镜外的其他滤镜是否被启用,当检测到其他滤镜被启用时,需要将空白滤镜切换为被启用的其他滤镜。切换时只需执行其他滤镜对应的滤镜程序中的图像处理操作即可,无需再次初始化,从而节省了运行时间,解决卡顿问题。
参阅图7,在一优选实施例中,空白滤镜创建模块具体包括:
复制单元,在进行滤镜操作时,实质上是对目标对象的副本进行操作,因此对智能终端内的相机捕捉的图像或智能终端内的图片进行图像处理操作前,需要获取相机捕捉的图像或智能终端内的图片的副本,因此,首先需要复制相机捕捉的图像或智能终端内的图片,并进行缓存操作,将其临时存储在缓冲器中,形成第一副本图像或者第一副本图片。
参数信息获取单元,与所述复制单元连接,获取第一副本图像或者第一副本图片后,需要对第一副本图像或者第一副本图片进行不改变图片或图像参数的图像处理,因此,需要获取所述第一副本图像或第一副本图片的参数信息,参数信息应包括图像或图片的像素、分辨率、灰度值、亮度、每一像素点的RGB值等信息中的一种或多种。
执行单元,与所述参数信息获取单元连接,获取所述第一副本图像或第一副本图片
的参数信息后,由于空白滤镜不改变图像或图片的原始参数,因此,应保持所述第一副本图像或第一副本图片的参数信息不变。如,参数信息为每一像素点的RGB值时,可对每一像素点的红绿蓝值进行减0或加0操作,相当于不更改红绿蓝值,除此之外,将获取的红绿蓝值都乘以或除以1的操作也是不更改红绿蓝值的操作。事实上,所有不更改图像或图片的原始参数的操作都是可以的,参数信息为像素大小、分辨率大小、亮度、灰度值时,对各参数信息的值进行乘以1或除以1的操作也可以,甚至在获取第一副本图像或第一副本图片后不进行操作也可以。此时获取的第二副本图像或第二副本图片即为经空白滤镜应用后的图像或图片。
参阅图8,一优选实施例中,检测模块具体包括:
程序获取单元,为检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否被正调用,需要检测第一程序即相应的相机程序以及第二程序即图片调用程序是否正被调用,因此,需要获取相机启动程序以及图片调用程序的程序名,或给相机程序以及图片调用程序设定相应触发标志,当程序被触发时,相应的触发标志为true。
第一参数返回单元,与所述程序获取单元连接,当检测到智能终端内第一程序的程序名被调用或相应的触发标志为true时,第一程序被调用,因此,相机正在启动,向智能终端返回第一参数,第一参数为相机启动的标志。
第二参数返回单元,与所述程序获取单元连接,当检测到智能终端内第二程序的程序名被调用或相应的触发标志为true时,第二程序被调用,因此,某一图片正被调用,向智能终端返回第二参数,第二参数为图片被调用的标志。同时,为明确被调用的图片为哪一图片,需要读取第二程序即图片调用程序中调用的图片参数,从而确定被调用的图片。
参阅图9,在一优选实施例中,滤镜应用模块具体包括:
参数接收单元,在检测智能终端内的相机是否正在启动或智能终端内的图片是否被正调用后,需要接收检测结果,也即智能终端返回的参数,包括第一参数与第二参数,也包括未返回参数,第一参数为智能终端内相机启动的标志,第二参数为图片被调用的标志,未返回参数即并接收到参数并一定不意味着没有参数返回,与设置的参数情况相关,例如,以第一参数或第二参数的true代表相机正在启动或图片正被调用,则第一参数与第二参数均为false时,即为未返回参数;若以存在第一参数或第二参数而不论参数的数值代表相机正在启动或图片正被调用,则没有接收到第一参数与第二参数即认为未返回参数。其中接收第二参数时,也应接收同时返回的图片参数。
第一参数检测单元,与所述参数接收单元连接,当接收到智能终端返回的参数为第一参数时,则认为智能终端内相机正在启动,此时需要执行空白滤镜对应的代码程序,将空白滤镜应用至相机捕捉的图像上,通过这一操作,将滤镜初始化的工作提前,而不改变图像的参数,因此用户并不知道系统已经执行此操作,而在用户第一次应用改变图像参数的滤镜时,该图像已经不是第一次使用滤镜,不会出现卡顿,而在用户看来,其第一次使用滤镜就没有出现卡顿,后续使用同样如此。
第二参数检测单元,与所述参数接收单元连接,当接收到智能终端返回的参数为第二参数时,则认为智能终端内图片正在调用,此时需要执行空白滤镜对应的代码程序,同时,需要读取图片调用程序中的图片参数,确定被调用的图片,从而将空白滤镜应用至被调用的图片上,通过这一操作,将滤镜初始化的工作提前,而不改变图片的参数,因此用户并不知道系统已经执行此操作,而在用户第一次应用改变图片参数的滤镜时,该图片已经不是第一次使用滤镜,不会出现卡顿,而在用户看来,其第一次使用滤镜就没有出现卡顿,后续使用同样如此,因此,实现了滤镜切换与使用的流畅性。
参阅图10,在一优选实施例中,滤镜切换模块包括:
滤镜程序获取单元,为了实现滤镜程序切换的流畅性,需要在用户使用滤镜时执行相应的切换操作,因此,需要对用户使用滤镜功能进行监测,首先需要获取所述智能终端内除所述空白滤镜外的其他滤镜对应的滤镜程序,其他滤镜对应的滤镜程序程序名或相应的触发标志均可,当检测到某一滤镜程序的程序名被调用或相应的触发标志为true时,认为该程序被调用。
空白滤镜删除单元,与所述滤镜程序获取单元连接,获取智能终端内除所述空白滤镜外的其他滤镜对应的滤镜程序后,对其进行监测,当当检测到某一滤镜程序的程序名被调用或相应的触发标志为true时,该程序被调用,此时用户需要使用具有图像处理功能的滤镜,因此,需要删除已经使用的空白滤镜,即删除空白滤镜进行的图像处理操作,事实上,由于空白滤镜进行的图像处理操作并不改变图像或图片的原始参数,因此,此处删除操作也可不执行。删除的方法既可以通过执行与滤镜程序中图像处理操作相反的操作,即通过逆操作进行还原,也可以在进行滤镜操作时保存两个副本,在其中一个副本上进行图像处理操作,当需要删除滤镜时,直接删除进行图像处理操作的该副本,并调取未进行图像处理操作的另一副本。
其他滤镜应用单元,与所述空白滤镜删除单元连接,删除空白滤镜后,需要将用户使用的滤镜应用至相机捕捉的图像上或智能终端内的图片上,此时,执行被调用的滤镜
程序,将被调用的滤镜程序对应的滤镜应用至相机捕捉的图像上或所述图片上。在执行被调用的滤镜程序时,只需执行该被调用的滤镜对应的图像处理操作即可,而不需要进行初始化等前序操作,因此,实现了滤镜的流畅切换,不会出现卡顿现象。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。
Claims (10)
- 一种基于智能终端的滤镜切换方法,其特征在于,包括以下步骤:于所述智能终端内创建一空白滤镜,其中当所述空白滤镜应用至所述智能终端内的相机捕捉的图像或所述智能终端内的图片上时,保留所述图像或图片的原始参数;检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否正被调用;当所述智能终端内的相机启动或所述智能终端内的图片被调用时,将所述空白滤镜应用至所述相机捕捉的图像上或所述图片上;检测除所述空白滤镜外的其他滤镜是否被启用,当除所述空白滤镜外的其他滤镜被启用时,将所述空白滤镜切换为所述被启用的其他滤镜。
- 如权利要求1所述的滤镜切换方法,其特征在于,于所述智能终端内创建一空白滤镜的步骤包括:将所述智能终端内的相机捕捉的图像或所述智能终端内的图片复制,并缓存,形成第一副本图像或第一副本图片;获取所述第一副本图像或第一副本图片的参数信息,参数信息包括图像或图片的像素、分辨率、灰度值、亮度、每一像素点的红绿蓝值信息中的一种或多种;保持所述第一副本图像或第一副本图片的参数信息不变,形成第二副本图像或第二副本图片。
- 如权利要求1或2所述的滤镜切换方法,其特征在于,检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否被正调用的步骤包括:获取第一程序与第二程序,其中第一程序为所述相机的启动程序,第二程序为所述智能终端内的图片调用程序;当所述第一程序被调用时,返回第一参数;当所述第二程序被调用时,返回第二参数,并读取所述第二程序内的图片参数。
- 如权利要求3所述的滤镜切换方法,其特征在于,当所述智能终端内的相机正在启动或图片正被调用时,将所述空白滤镜应用至所述相机捕捉的图像上或所述图片上的步骤包括:接收所述智能终端返回的参数;当所述智能终端返回的参数为第一参数时,将所述空白滤镜应用至所述相机捕捉的图像上;当所述智能终端返回的参数为第二参数时,将所述空白滤镜应用至所述图片参数对应的图片上。
- 如权利要求1所述的滤镜切换方法,其特征在于,检测除所述空白滤镜外的其他滤镜是否被启用,当除所述空白滤镜外的其他滤镜被启用时,将所述空白滤镜切换为所述被启用的其他滤镜的步骤包括:获取所述智能终端内除所述空白滤镜外的其他滤镜对应的滤镜程序;当所述滤镜程序中的至少一个被调用时,从所述相机捕捉的图像上或所述图片上删除所述空白滤镜;执行被调用的所述滤镜程序,将被调用的所述滤镜程序对应的所述其他滤镜应用至所述相机捕捉的图像上或所述图片上。
- 一种基于智能终端的滤镜切换系统,其特征在于,包括:空白滤镜创建模块,于所述智能终端内创建一空白滤镜,其中当所述空白滤镜应用至所述智能终端内的相机捕捉的图像或所述智能终端内的图片上时,保留所述图像或图片的原始参数;检测模块,检测所述智能终端内的相机是否正在启动或所述智能终端内的图片是否正被调用;滤镜应用模块,与所述检测模块连接,当所述智能终端内的相机启动或所述智能终端内的图片被调用时,将所述空白滤镜应用至所述相机捕捉的图像上或所述图片上;滤镜切换模块,与所述滤镜应用模块连接,检测除所述空白滤镜外的其他滤镜是否被启用,当除所述空白滤镜外的其他滤镜被启用时,将所述空白滤镜切换为所述被启用的其他滤镜。
- 如权利要求6所述的滤镜切换系统,其特征在于,所述空白滤镜创建模块包括:复制单元,将所述智能终端内的相机捕捉的图像或所述智能终端内的图片复制,并缓存,形成第一副本图像或第一副本图片;参数信息获取单元,与所述复制单元连接,获取所述第一副本图像或第一副本图片的参数信息,参数信息包括图像或图片的像素、分辨率、灰度值、亮度、每一像素点的红绿蓝值信息中的一种或多种;执行单元,与所述参数信息获取单元连接,保持所述第一副本图像或第一副本图片的参数信息不变,形成第二副本图像或第二副本图片。
- 如权利要求6或7所述的滤镜切换系统,其特征在于,所述检测模块包括:程序获取单元,获取第一程序与第二程序,其中第一程序为所述相机的启动程序,第二程序为所述智能终端内的图片调用程序;第一参数返回单元,与所述程序获取单元连接,当所述第一程序被调用时,返回第一参数;第二参数返回单元,与所述程序获取单元连接,当所述第二程序被调用时,返回第二参数,并读取所述第二程序内的图片参数。
- 如权利要求8所述的滤镜切换系统,其特征在于,所述滤镜应用模块包括:参数接收单元,接收所述智能终端返回的参数;第一参数检测单元,与所述参数接收单元连接,当所述智能终端返回的参数为第一参数时,将所述空白滤镜应用至所述相机捕捉的图像上;第二参数检测单元,与所述参数接收单元连接,当所述智能终端返回的参数为第二参数时,将所述空白滤镜应用至所述图片参数对应的图片上。
- 如权利要求6所述的滤镜切换系统,其特征在于,所述滤镜切换模块包括:滤镜程序获取单元,获取所述智能终端内除所述空白滤镜外的其他滤镜对应的滤镜程序;空白滤镜删除单元,与所述滤镜程序获取单元连接,当所述滤镜程序中的至少一个被调用时,从所述相机捕捉的图像上或所述图片上删除所述空白滤镜;其他滤镜应用单元,与所述空白滤镜删除单元连接,执行被调用的所述滤镜程序,将被调用的所述滤镜程序对应的所述其他滤镜应用至所述相机捕捉的图像上或所述图片上。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201780095568.8A CN111164569B (zh) | 2017-08-02 | 2017-08-02 | 一种基于智能终端的滤镜切换方法及滤镜切换系统 |
| PCT/CN2017/095588 WO2019023969A1 (zh) | 2017-08-02 | 2017-08-02 | 一种基于智能终端的滤镜切换方法及滤镜切换系统 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2017/095588 WO2019023969A1 (zh) | 2017-08-02 | 2017-08-02 | 一种基于智能终端的滤镜切换方法及滤镜切换系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019023969A1 true WO2019023969A1 (zh) | 2019-02-07 |
Family
ID=65232329
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/095588 Ceased WO2019023969A1 (zh) | 2017-08-02 | 2017-08-02 | 一种基于智能终端的滤镜切换方法及滤镜切换系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111164569B (zh) |
| WO (1) | WO2019023969A1 (zh) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112381708A (zh) * | 2020-11-13 | 2021-02-19 | 咪咕文化科技有限公司 | 滤镜切换方法、电子设备和计算机可读存储介质 |
| CN118138702B (zh) * | 2021-08-12 | 2025-02-14 | 荣耀终端有限公司 | 视频处理方法、电子设备、芯片及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130235250A1 (en) * | 2012-03-06 | 2013-09-12 | Csr Technology Inc. | Fast auto focus techniques for digital cameras |
| CN104808975A (zh) * | 2014-01-26 | 2015-07-29 | 腾讯科技(深圳)有限公司 | 相机应用的滤镜实现方法和装置 |
| CN105279161A (zh) * | 2014-06-10 | 2016-01-27 | 腾讯科技(深圳)有限公司 | 图片处理应用的滤镜排序方法和装置 |
| CN106161990A (zh) * | 2015-04-28 | 2016-11-23 | 腾讯科技(北京)有限公司 | 一种图像处理方法和装置 |
| CN106371729A (zh) * | 2016-09-05 | 2017-02-01 | 奇异牛科技(深圳)有限公司 | 一种对图片进行滤镜处理的方法 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7375760B2 (en) * | 2001-12-31 | 2008-05-20 | Texas Instruments Incorporated | Content-dependent scan rate converter with adaptive noise reduction |
| CN103037165A (zh) * | 2012-12-21 | 2013-04-10 | 厦门美图网科技有限公司 | 一种实时滤镜即时拼贴的拍照方法 |
| US9930251B2 (en) * | 2014-02-27 | 2018-03-27 | Huawei Device Co., Ltd. | Method for quick photographing by mobile terminal, and mobile terminal |
| CN105809637A (zh) * | 2016-02-29 | 2016-07-27 | 广东欧珀移动通信有限公司 | 控制方法、控制装置及电子装置 |
| CN106126229B (zh) * | 2016-06-21 | 2019-07-05 | 网易(杭州)网络有限公司 | 特效生成方法及装置 |
| CN106688016A (zh) * | 2016-11-30 | 2017-05-17 | 深圳市大疆创新科技有限公司 | 处理视频流的方法和终端 |
-
2017
- 2017-08-02 WO PCT/CN2017/095588 patent/WO2019023969A1/zh not_active Ceased
- 2017-08-02 CN CN201780095568.8A patent/CN111164569B/zh active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130235250A1 (en) * | 2012-03-06 | 2013-09-12 | Csr Technology Inc. | Fast auto focus techniques for digital cameras |
| CN104808975A (zh) * | 2014-01-26 | 2015-07-29 | 腾讯科技(深圳)有限公司 | 相机应用的滤镜实现方法和装置 |
| CN105279161A (zh) * | 2014-06-10 | 2016-01-27 | 腾讯科技(深圳)有限公司 | 图片处理应用的滤镜排序方法和装置 |
| CN106161990A (zh) * | 2015-04-28 | 2016-11-23 | 腾讯科技(北京)有限公司 | 一种图像处理方法和装置 |
| CN106371729A (zh) * | 2016-09-05 | 2017-02-01 | 奇异牛科技(深圳)有限公司 | 一种对图片进行滤镜处理的方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111164569B (zh) | 2020-11-10 |
| CN111164569A (zh) | 2020-05-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101992306B1 (ko) | 카메라를 실행하기 위한 방법 및 그 전자 장치 | |
| WO2017215501A1 (zh) | 图像降噪处理方法、装置及计算机存储介质 | |
| CN104754239B (zh) | 拍照方法及装置 | |
| CN107659769B (zh) | 一种拍摄方法、第一终端及第二终端 | |
| CN108737739B (zh) | 一种预览画面采集方法、预览画面采集装置及电子设备 | |
| KR102327779B1 (ko) | 이미지 처리 방법 및 장치 | |
| US8350867B2 (en) | Image quality configuration apparatus, system and method | |
| JP5587390B2 (ja) | 撮像装置で撮像された画像の選択方法、システム及び装置 | |
| CN110457963B (zh) | 显示控制方法、装置、移动终端及计算机可读存储介质 | |
| CN107302666A (zh) | 拍照方法、移动终端及计算机可读存储介质 | |
| KR20230133970A (ko) | 사진촬영 방법, 장치 및 전자기기 | |
| CN107426088A (zh) | 图片信息处理方法及装置 | |
| US9584728B2 (en) | Apparatus and method for displaying an image in an electronic device | |
| WO2016197657A1 (zh) | 一种拍照处理方法和装置 | |
| CN111953848A (zh) | 通过情景感知实现应用功能的系统、方法及相关装置 | |
| WO2017076199A1 (zh) | 一种相机应用的图像预览方法、装置及相机应用系统 | |
| CN105376486A (zh) | 一种移动终端及其控制方法 | |
| CN108289254A (zh) | 网络会议信息处理方法及装置 | |
| WO2022143060A1 (zh) | 一种屏幕采集方法、终端及存储介质 | |
| US20060245644A1 (en) | Method and apparatus for digital-image red-eye correction that facilitates undo operation | |
| WO2018161568A1 (zh) | 基于双摄像头的拍照方法及装置 | |
| CN113923461B (zh) | 一种录屏方法和录屏系统 | |
| WO2022089479A1 (zh) | 拍照方法、装置及电子设备 | |
| CN112188034A (zh) | 一种图像处理方法、装置、终端设备及介质 | |
| CN111164569B (zh) | 一种基于智能终端的滤镜切换方法及滤镜切换系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17920493 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17920493 Country of ref document: EP Kind code of ref document: A1 |