WO2017185785A1 - Method and apparatus for front-facing touch screen device and computer storage medium - Google Patents

Method and apparatus for front-facing touch screen device and computer storage medium Download PDF

Info

Publication number
WO2017185785A1
WO2017185785A1 PCT/CN2016/112487 CN2016112487W WO2017185785A1 WO 2017185785 A1 WO2017185785 A1 WO 2017185785A1 CN 2016112487 W CN2016112487 W CN 2016112487W WO 2017185785 A1 WO2017185785 A1 WO 2017185785A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
point
edge line
omega
coordinates
Prior art date
Application number
PCT/CN2016/112487
Other languages
French (fr)
Chinese (zh)
Inventor
梁舟
Original Assignee
努比亚技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2017185785A1 publication Critical patent/WO2017185785A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position

Abstract

An intelligent lasso method for a front-facing touch screen device, comprising: acquiring track information input regarding an image by a user on a touch screen (401); according to a first image edge line of the image and a pre-set adjustment rule, adjusting the track information (402); and according to the adjusted track information, outputting a second image edge line (403). Meanwhile, further disclosed are an intelligent lasso apparatus for a front-facing touch screen device and a computer storage medium.

Description

一种面向触屏设备的方法、装置及计算机存储介质Method, device and computer storage medium for touch screen device 技术领域Technical field
本申请涉及图像处理技术领域,尤其涉及一种面向触屏设备的智能套索方法、装置及计算机存储介质。The present application relates to the field of image processing technologies, and in particular, to an intelligent lasso method, apparatus, and computer storage medium for a touch screen device.
背景技术Background technique
在图像处理上广泛使用的实用技术是智能套索工具。现有的智能套索工具是基于Mortensen等人提出的智能剪(Intelligent Scissors)方法,用户在使用该方法时,需要给出选定图像的精细轮廓边缘信息。A practical technique widely used in image processing is the intelligent lasso tool. The existing intelligent lasso tool is based on the Intelligent Scissors method proposed by Mortensen et al. When using this method, the user needs to give the fine contour edge information of the selected image.
但是,若想要把智能套索工具应用在触屏设备上,由于手指在触屏上进行选点划线的操作并不方便,因此现有技术并不适用于触屏设备。此外,当前技术的算法需要大量采用全局性计算,具有图片尺寸相关性,计算开销相当大。However, if the smart lasso tool is to be applied to the touch screen device, the prior art is not suitable for the touch screen device because the finger is not convenient to perform the dotted line on the touch screen. In addition, the current technology algorithms require a large number of global calculations, with picture size correlation, and computational overhead.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种面向触屏设备的智能套索方法、装置及计算机存储介质,以减弱对用户的选点划线操作的精确性约束,在保证套索准确性的同时提高效率。In view of this, embodiments of the present invention are directed to an intelligent lasso method, apparatus, and computer storage medium for a touch screen device, so as to reduce the accuracy constraint on the user's selection and dash operation, and ensure the accuracy of the lasso. At the same time improve efficiency.
为达到上述目的,本申请的技术方案是这样实现的:In order to achieve the above object, the technical solution of the present application is implemented as follows:
第一方面,本发明实施例提供了一种面向触屏设备的智能套索装置,所述装置包括:In a first aspect, an embodiment of the present invention provides an intelligent lasso device for a touch screen device, the device comprising:
获取模块,用于获取用户在触摸屏上针对图像输入的轨迹信息;An obtaining module, configured to acquire trajectory information input by the user for the image on the touch screen;
调整模块,用于根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;An adjustment module, configured to adjust the track information according to a first image edge line of the image and a preset adjustment rule;
输出模块,用于根据调整后的所述轨迹信息,输出第二图像边缘线。And an output module, configured to output a second image edge line according to the adjusted track information.
在上述方案中,所述获取模块具体用于:In the above solution, the obtaining module is specifically configured to:
记录所述用户针对所述图像在所述触摸屏上划过的轨迹,按照预设采样频 率对所述轨迹进行采样,生成多个支撑点,将所述多个支撑点的坐标作为所述轨迹信息。Recording a trajectory that the user has swept on the touch screen for the image, according to a preset sampling frequency Rateing the trajectory to generate a plurality of support points, and using coordinates of the plurality of support points as the trajectory information.
在上述方案中,所述调整模块具体用于:In the above solution, the adjustment module is specifically configured to:
获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标,作为吸附支撑点;Obtaining coordinates of a point on the edge line of the first image closest to the support point as an adsorption support point;
将所述轨迹信息调整为多个所述吸附支撑点的坐标。The trajectory information is adjusted to coordinates of a plurality of the adsorption support points.
在上述方案中,所述调整模块具体用于:In the above solution, the adjustment module is specifically configured to:
根据移动代价函数,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标;其中,所述移动代价函数为:Obtaining coordinates of a point on the edge line of the first image closest to the support point according to a movement cost function; wherein the moving cost function is:
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3…,n);ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3... , n);
其中,C表示函数中的各个参数omega均为常数,T_i->T_i+1、S_i->C表示两点连线所成向量,theta(T_i->T_i+1,S_i->C)表示两向量间夹角;Where C means that each parameter omega in the function is constant, T_i->T_i+1, S_i->C represents the vector formed by the two-point connection, and theta(T_i->T_i+1, S_i->C) represents two Angle between vectors;
当点C取得最优值时,将点C的坐标S_i:=C作为吸附支撑点。When the point C obtains the optimum value, the coordinate S_i:=C of the point C is taken as the adsorption support point.
在上述方案中,所述输出模块具体用于:In the above solution, the output module is specifically configured to:
将各所述吸附支撑点的坐标按照图像边缘逐次连线形成并输出所述第二图像边缘线。The coordinates of each of the adsorption support points are successively connected in accordance with the edge of the image and the second image edge line is output.
第二方面,本发明实施例提供了一种面向触屏设备的智能套索方法,所述方法包括:In a second aspect, an embodiment of the present invention provides a smart lasso method for a touch screen device, the method comprising:
获取用户在触摸屏上针对图像输入的轨迹信息;Obtaining trajectory information input by the user for the image on the touch screen;
根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;Adjusting the track information according to a first image edge line of the image and a preset adjustment rule;
根据调整后的所述轨迹信息,输出第二图像边缘线。And outputting a second image edge line according to the adjusted track information.
在上述方案中,所述获取用户在触摸屏上针对图像输入的轨迹信息,包括:In the above solution, the acquiring the trajectory information input by the user for the image on the touch screen includes:
记录所述用户针对所述图像在所述触摸屏上划过的轨迹,按照预设采样频 率对所述轨迹进行采样,生成多个支撑点,将所述多个支撑点的坐标作为所述轨迹信息。Recording a trajectory that the user has swept on the touch screen for the image, according to a preset sampling frequency Rateing the trajectory to generate a plurality of support points, and using coordinates of the plurality of support points as the trajectory information.
在上述方案中,所述根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息,包括:In the above solution, the adjusting the track information according to the first image edge line of the image and the preset adjustment rule includes:
获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标,作为吸附支撑点;Obtaining coordinates of a point on the edge line of the first image closest to the support point as an adsorption support point;
将所述轨迹信息调整为多个所述吸附支撑点的坐标。The trajectory information is adjusted to coordinates of a plurality of the adsorption support points.
在上述方案中,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标,作为吸附支撑点,包括:In the above solution, acquiring coordinates of a point on the edge line of the first image closest to the support point as an adsorption support point includes:
根据移动代价函数,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标;其中,所述移动代价函数为:Obtaining coordinates of a point on the edge line of the first image closest to the support point according to a movement cost function; wherein the moving cost function is:
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3…,n);ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3... , n);
其中,C表示函数中的各个参数omega均为常数,T_i->T_i+1、S_i->C表示两点连线所成向量,theta(T_i->T_i+1,S_i->C)表示两向量间夹角;Where C means that each parameter omega in the function is constant, T_i->T_i+1, S_i->C represents the vector formed by the two-point connection, and theta(T_i->T_i+1, S_i->C) represents two Angle between vectors;
当点C取得最优值时,将点C的坐标S_i:=C作为吸附支撑点。When the point C obtains the optimum value, the coordinate S_i:=C of the point C is taken as the adsorption support point.
在上述方案中,根据调整后的所述轨迹信息,输出第二图像边缘线,包括:In the above solution, outputting the second image edge line according to the adjusted track information, including:
将各所述吸附支撑点的坐标按照图像边缘逐次连线形成并输出所述第二图像边缘线。The coordinates of each of the adsorption support points are successively connected in accordance with the edge of the image and the second image edge line is output.
第三方面,本发明实施例提供了一种计算机存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:In a third aspect, an embodiment of the present invention provides a computer storage medium, the storage medium comprising a set of instructions, when executed, causing at least one processor to perform operations including:
获取用户在触摸屏上针对图像输入的轨迹信息;Obtaining trajectory information input by the user for the image on the touch screen;
根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;Adjusting the track information according to a first image edge line of the image and a preset adjustment rule;
根据调整后的所述轨迹信息,输出第二图像边缘线。 And outputting a second image edge line according to the adjusted track information.
本发明实施例所提供的面向触屏设备的智能套索方法、装置及计算机存储介质,通过获取用户在触摸屏上针对图像输入的轨迹信息;根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;根据调整后的所述轨迹信息,输出第二图像边缘线。如此,可以凭借用户输入的较为粗糙的轮廓边缘而输出精细的图像轮廓边缘信息,减弱了对用户的选点划线操作的精确性约束,在保证套索准确性的同时提高效率。The smart lasso method, device and computer storage medium for the touch screen device provided by the embodiment of the present invention acquires the track information input by the user for the image on the touch screen; according to the first image edge line of the image and the preset adjustment Rule, adjusting the track information; and outputting a second image edge line according to the adjusted track information. In this way, the fine image contour edge information can be output by the relatively rough contour edge input by the user, which reduces the accuracy constraint on the user's dotted line operation, and improves the efficiency while ensuring the lasso accuracy.
附图说明DRAWINGS
图1为实现本申请各个实施例的一个可选的移动终端的硬件结构示意图;1 is a schematic structural diagram of hardware of an optional mobile terminal that implements various embodiments of the present application;
图2为本发明实施例提供的移动终端能够操作的通信系统结构示意图;2 is a schematic structural diagram of a communication system that can be operated by a mobile terminal according to an embodiment of the present invention;
图3为本发明实施例面向触屏设备的智能套索装置的结构示意图;3 is a schematic structural diagram of an intelligent lasso device for a touch screen device according to an embodiment of the present invention;
图4为当前技术中智能套索工具获取图像轮廓的示意图;4 is a schematic diagram of acquiring an image contour by a smart lasso tool in the prior art;
图5为利用本发明实施例提供的面向触屏设备的智能套索装置获取图像轮廓的示意图;FIG. 5 is a schematic diagram of acquiring an image contour by using an intelligent lasso device facing a touch screen device according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的面向触屏设备的智能套索方法的流程图。FIG. 6 is a flowchart of a smart lasso method for a touch screen device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
现在将参考附图1来描述实现本申请各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,"模块"与"部件"可以混合地使用。A mobile terminal implementing various embodiments of the present application will now be described with reference to FIG. In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and does not have a specific meaning per se. Therefore, "module" and "component" can be used in combination.
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、个人数字助理(PDA)、平板电脑(PAD)、便携式多媒体播放器(PMP)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。 然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The mobile terminal can be implemented in various forms. For example, the terminals described in the present invention may include, for example, mobile phones, smart phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), navigation devices, and the like. Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
图1为实现本申请各个实施例的移动终端的硬件结构示意。FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal that implements various embodiments of the present application.
移动终端100可以包括无线通信单元110、音频/视频(A/V)输入单元120、用户输入单元130、感测单元140、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件,可以替代地实施更多或更少的组件,将在下面详细描述移动终端的元件。The mobile terminal 100 may include a wireless communication unit 110, an audio/video (A/V) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190. and many more. Figure 1 shows a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented, and more or fewer components may be implemented instead, and the components of the mobile terminal will be described in detail below. .
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信系统或网络之间的无线电通信。例如,无线通信单元可以包括广播接收模块111、移动通信模块112、无线互联网模块113、短程通信模块114和位置信息模块115中的至少一个。 Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
广播接收模块111经由广播信道从外部广播管理服务器接收广播信号和/或广播相关信息。广播信道可以包括卫星信道和/或地面信道。广播管理服务器可以是生成并发送广播信号和/或广播相关信息的服务器或者接收之前生成的广播信号和/或广播相关信息并且将其发送给终端的服务器。广播信号可以包括TV广播信号、无线电广播信号、数据广播信号等等。而且,广播信号可以进一步包括与TV或无线电广播信号组合的广播信号。广播相关信息也可以经由移动通信网络提供,并且在该情况下,广播相关信息可以由移动通信模块112来接收。广播信号可以以各种形式存在,例如,其可以以数字多媒体广播(DMB)的电子节目指南(EPG)、数字视频广播手持(DVB-H)的电子服务指南(ESG)等等的形式而存在。广播接收模块111可以通过使用各种类型的广播系统接收信号广播。特别地,广播接收模块111可以通过使用诸如多媒体广播-地面(DMB-T)、数字多媒体广播-卫星(DMB-S)、数字视频广播-手持(DVB-H),前向链路媒体(MediaFLO@)的数据广播系统、地面数字广播综合服务(ISDB-T)等等的数字广播系统接收数字广播。广播接收模块111可以被构造 为适合提供广播信号的各种广播系统以及上述数字广播系统。经由广播接收模块111接收的广播信号和/或广播相关信息可以存储在存储器160(或者其它类型的存储介质)中。The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel can include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to the terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Moreover, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of Digital Multimedia Broadcasting (DMB) Electronic Program Guide (EPG), Digital Video Broadcasting Handheld (DVB-H) Electronic Service Guide (ESG), and the like. . The broadcast receiving module 111 can receive a signal broadcast by using various types of broadcast systems. In particular, the broadcast receiving module 111 can use forward link media (MediaFLO) by using, for example, multimedia broadcast-terrestrial (DMB-T), digital multimedia broadcast-satellite (DMB-S), digital video broadcast-handheld (DVB-H) The digital broadcasting system of the @) data broadcasting system, the terrestrial digital broadcasting integrated service (ISDB-T), and the like receives digital broadcasting. The broadcast receiving module 111 can be constructed It is suitable for various broadcasting systems that provide broadcast signals as well as the above-described digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。The mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。The wireless internet module 113 supports wireless internet access of the mobile terminal. The module can be internally or externally coupled to the terminal. The wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
短程通信模块114是用于支持短程通信的模块。短程通信技术的一些示例包括蓝牙TM、射频识别(RFID)、红外数据协会(IrDA)、超宽带(UWB)、紫蜂TM等等。The short range communication module 114 is a module for supporting short range communication. Some examples of short-range communication technologies include BluetoothTM, Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), ZigbeeTM, and the like.
位置信息模块115是用于检查或获取移动终端的位置信息的模块。位置信息模块115的典型示例是GPS(全球定位系统)。根据当前的技术,GPS模块115计算来自三个或更多卫星的距离信息和准确的时间信息并且对于计算的信息应用三角测量法,从而根据经度、纬度和高度准确地计算三维当前位置信息。当前,用于计算位置和时间信息的方法使用三颗卫星并且通过使用另外的一颗卫星校正计算出的位置和时间信息的误差。此外,GPS模块115能够通过实时地连续计算当前位置信息来计算速度信息。The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module 115 is a GPS (Global Positioning System). According to the current technology, the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information to accurately calculate three-dimensional current position information based on longitude, latitude, and altitude. Currently, the method for calculating position and time information uses three satellites and corrects the calculated position and time information errors by using another satellite. Further, the GPS module 115 is capable of calculating speed information by continuously calculating current position information in real time.
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121和麦克风122,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的 构造提供两个或更多相机121。麦克风122可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风122接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由移动通信模块112发送到移动通信基站的格式输出。麦克风122可以实施各种类型的噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/V input unit 120 is for receiving an audio or video signal. The A/V input unit 120 may include a camera 121 and a microphone 122 that processes image data of still pictures or video obtained by the image capturing device in a video capturing mode or an image capturing mode. The processed image frame can be displayed on the display unit 151. The image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and may be according to the mobile terminal. The configuration provides two or more cameras 121. The microphone 122 can receive sound (audio data) via the microphone 122 in an operation mode of a telephone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound as audio data. The processed audio (voice) data can be converted to a format output that can be transmitted to the mobile communication base station via the mobile communication module 112 in the case of a telephone call mode. The microphone 122 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated during the process of receiving and transmitting audio signals.
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。The user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal. The user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc. In particular, when the touch panel is superimposed on the display unit 151 in the form of a layer, a touch screen can be formed.
感测单元140检测移动终端100的当前状态,(例如,移动终端100的打开或关闭状态)、移动终端100的位置、用户对于移动终端100的接触(即,触摸输入)的有无、移动终端100的取向、移动终端100的加速或减速移动和方向等等,并且生成用于控制移动终端100的操作的命令或信号。例如,当移动终端100实施为滑动型移动电话时,感测单元140可以感测该滑动型电话是打开还是关闭。另外,感测单元140能够检测电源单元190是否提供电力或者接口单元170是否与外部装置耦接。感测单元140可以包括接近传感器141将在下面结合触摸屏来对此进行描述。The sensing unit 140 detects the current state of the mobile terminal 100 (eg, the open or closed state of the mobile terminal 100), the location of the mobile terminal 100, the presence or absence of contact (ie, touch input) by the user with the mobile terminal 100, and the mobile terminal. The orientation of 100, the acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling the operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide type mobile phone, the sensing unit 140 can sense whether the slide type phone is turned on or off. In addition, the sensing unit 140 can detect whether the power supply unit 190 provides power or whether the interface unit 170 is coupled to an external device. Sensing unit 140 may include proximity sensor 141 which will be described below in connection with a touch screen.
接口单元170用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端100的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为"识别装置")可以采取智能卡的形式,因此, 识别装置可以经由端口或其它连接装置与移动终端100连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。The interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more. The identification module may be stored to verify various information used by the user using the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter referred to as "identification device") may take the form of a smart card, and thus, The identification device can be connected to the mobile terminal 100 via a port or other connection device. The interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示单元151、音频输出模块152、警报单元153等等。In addition, when the mobile terminal 100 is connected to the external base, the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal. Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base. Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。The display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。 Meanwhile, when the display unit 151 and the touch panel are superposed on each other in the form of a layer to form a touch screen, the display unit 151 can function as an input device and an output device. The display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like. According to a particular desired embodiment, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) . The touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
音频输出模块152可以在移动终端处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将无线通信单元110接收的或者在存储器160中存储的音频数据转换音频信号并且输出为声音。而且,音频输出模块152可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出模块152可以包括扬声器、蜂鸣器等等。The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like. The audio signal is output as sound. Moreover, the audio output module 152 can provide audio output (eg, call signal reception sound, message reception sound, etc.) associated with a particular function performed by the mobile terminal 100. The audio output module 152 can include a speaker, a buzzer, and the like.
警报单元153可以提供输出以将事件的发生通知给移动终端100。典型的事件可以包括呼叫接收、消息接收、键信号输入、触摸输入等等。除了音频或视频输出之外,警报单元153可以以不同的方式提供输出以通知事件的发生。例如,警报单元153可以以振动的形式提供输出,当接收到呼叫、消息或一些其它进入通信(Incoming Communication)时,警报单元153可以提供触觉输出(例如,振动)以将其通知给用户。通过提供这样的触觉输出,即使在用户的移动电话处于用户的口袋中时,用户也能够识别出各种事件的发生。警报单元153也可以经由显示单元151或音频输出模块152提供通知事件的发生的输出。The alarm unit 153 can provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alert unit 153 can provide an output in a different manner to notify of the occurrence of an event. For example, the alarm unit 153 can provide an output in the form of vibrations, and when a call, message, or some other incoming communication is received, the alarm unit 153 can provide a tactile output (eg, vibration) to notify the user of it. By providing such a tactile output, the user is able to recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 can also provide an output of the notification event occurrence via the display unit 151 or the audio output module 152.
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储已经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。The memory 160 may store a software program or the like that performs processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, and the like) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. Moreover, the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包 括用于再现(或回放)多媒体数据的多媒体模块181,多媒体模块181可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。The controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like. In addition, the controller 180 can include A multimedia module 181 for reproducing (or playing back) multimedia data may be constructed within the controller 180 or may be configured to be separate from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。The power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。The various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementations, the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle. For software implementations, implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation. The software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by controller 180.
至此,已经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。So far, the mobile terminal has been described in terms of its function. Hereinafter, for the sake of brevity, a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。The mobile terminal 100 as shown in FIG. 1 may be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
现在将参考图2描述其中根据本申请的移动终端能够操作的通信系统。A communication system in which the mobile terminal according to the present application can operate will now be described with reference to FIG.
这样的通信系统可以使用不同的空中接口和/或物理层。例如,由通信系统使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信系统(UMTS)(特别地,长期演进(LTE))、全球 移动通信系统(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信系统,但是这样的教导同样适用于其它类型的系统。Such communication systems may use different air interfaces and/or physical layers. For example, air interfaces used by communication systems include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)). ), global Mobile communication system (GSM) and so on. As a non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
参考图2,CDMA无线通信系统可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据若干已知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的系统可以包括多个BSC275。Referring to FIG. 2, a CDMA wireless communication system can include a plurality of mobile terminals 100, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280. The MSC 280 is configured to interface with a public switched telephone network (PSTN) 290. The MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line. The backhaul line can be constructed in accordance with any of a number of known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be appreciated that the system as shown in FIG. 2 can include multiple BSCs 275.
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子系统(BTS)或者其它等效术语。在这样的情况下,术语"基站"可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。The intersection of partitioning and frequency allocation can be referred to as a CDMA channel. BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" can be used to generally refer to a single BSC 275 and at least one BS 270. A base station can also be referred to as a "cell station." Alternatively, each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
如图2中所示,广播发射器(BT)295将广播信号发送给在系统内操作的移动终端100。如图1中所示的广播接收模块111被设置在移动终端100处以接收由BT295发送的广播信号。在图2中,示出了几个全球定位系统(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。As shown in FIG. 2, a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in FIG. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In Figure 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 helps locate at least one of the plurality of mobile terminals 100.
在图2中,描绘了多个卫星300,但是理解的是,可以利用任何数目的卫星获得有用的定位信息。如图1中所示的GPS模块115通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。 In Figure 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites. The GPS module 115 as shown in Figure 1 is typically configured to cooperate with the satellite 300 to obtain desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
作为无线通信系统的一个典型操作,BS270接收来自各种移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC280与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端100。As a typical operation of a wireless communication system, BS 270 receives reverse link signals from various mobile terminals 100. Mobile terminal 100 typically participates in calls, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within a particular BS 270. The obtained data is forwarded to the relevant BSC 275. The BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270. The BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290. Similarly, PSTN 290 interfaces with MSC 280, MSC 280 interfaces with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 100.
基于上述移动终端硬件结构以及通信系统,提出本申请各个实施例。Various embodiments of the present application are proposed based on the above-described mobile terminal hardware structure and communication system.
在本申请的各实施例中,通过获取用户在触摸屏上针对图像的输入轨迹,根据图像本身边缘特征将用户输入做适当调整;根据调整后的用户输入生成最终的轮廓信息并输出,该最终的轮廓信息即是用户选定的套索区域,如此,可以凭借用户输入的较为粗糙的轮廓边缘输出精细的图像轮廓边缘信息,减弱了对用户的选点划线操作的精确性约束,在保证套索准确性的同时提高效率。In various embodiments of the present application, the user input is appropriately adjusted according to the edge feature of the image by acquiring the input trajectory of the user on the touch screen for the image; the final contour information is generated according to the adjusted user input and output, and the final The contour information is the lasso area selected by the user. Thus, the fine image contour edge information can be outputted by the rougher contour edge input by the user, which reduces the accuracy constraint on the user's dotted line operation, and the guarantee sleeve Improve accuracy while improving accuracy.
图3为本发明实施例面向触屏设备的智能套索装置的结构示意图。如图3所示,本实施例提供的装置可以包括:获取模块31、调整模块32和输出模块33。FIG. 3 is a schematic structural diagram of an intelligent lasso device for a touch screen device according to an embodiment of the present invention. As shown in FIG. 3, the apparatus provided in this embodiment may include: an obtaining module 31, an adjusting module 32, and an output module 33.
其中,获取模块31,用于获取用户在触摸屏上针对图像输入的轨迹信息;The obtaining module 31 is configured to acquire trajectory information input by the user for the image on the touch screen;
调整模块32,用于根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;The adjusting module 32 is configured to adjust the track information according to the first image edge line of the image and a preset adjustment rule;
输出模块33,用于根据调整后的所述轨迹信息,输出第二图像边缘线。The output module 33 is configured to output a second image edge line according to the adjusted track information.
具体的,所述获取模块31具体用于:记录所述用户针对所述图像在所述触摸屏上划过的轨迹,按照预设采样频率对所述轨迹进行采样,生成至少一个支撑点;将所述至少一个支撑点的坐标作为所述轨迹信息。Specifically, the acquiring module 31 is specifically configured to: record a trajectory that the user has swept on the touch screen for the image, sample the trajectory according to a preset sampling frequency, and generate at least one support point; The coordinates of the at least one support point are used as the trajectory information.
由于在触屏设备的触摸屏上,是通过用户手指的选点划线操作来输入轨迹的,是较为粗糙的轮廓边缘,在本实施例中,所述获取模块31会对用户输入的 轨迹进行采样,将采样点作为支撑点,即获取的轨迹信息,对所述轨迹信息,根据图像本身的边缘特征进行适当的调整,生成较为精细的图像轮廓。Since the touch screen is input on the touch screen of the touch screen device by the user's finger, it is a rough contour edge. In this embodiment, the acquisition module 31 inputs the user. The trajectory is sampled, and the sampling point is used as a support point, that is, the acquired trajectory information, and the trajectory information is appropriately adjusted according to the edge feature of the image itself to generate a finer image contour.
具体的,所述调整模块32具体用于:获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标,作为吸附支撑点;将所述轨迹信息调整为多个所述吸附支撑点的坐标。Specifically, the adjusting module 32 is specifically configured to: acquire coordinates of a point on the edge line of the first image that is closest to the support point as an adsorption support point; and adjust the track information into multiple The coordinates of the adsorption support point.
在实际应用中,所述获取模块31记录在触屏面板上手指划过的轨迹信息T,对其按一定采样频率记录生成一系列“支撑点”T_0、T_1、…、T_n等等;所述调整模块32对各个支撑点T_i分别做“吸附”调整,得到吸附支撑点。In an actual application, the acquiring module 31 records the trajectory information T that the finger swipes on the touch screen panel, and records a series of “support points” T_0, T_1, . . . , T_n, etc. according to a certain sampling frequency; The adjustment module 32 performs "adsorption" adjustment on each of the support points T_i to obtain an adsorption support point.
具体的,所述调整模块32具体用于:根据移动代价函数,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标;其中,所述移动代价函数为:Specifically, the adjusting module 32 is specifically configured to: acquire, according to a movement cost function, coordinates of a point on the edge line of the first image that is closest to the support point; wherein the moving cost function is:
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3…,n);ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3... , n);
其中,C表示第一图像边缘线上的点的坐标,omega均为常数,T_i表示支撑点,T_i->T_i+1、S_i->C分别表示两点连线所成向量,theta(T_i->T_i+1,S_i->C)表示两向量间夹角,Gradient Magnitude表示进行梯度幅值的计算函数;Where C is the coordinate of the point on the edge line of the first image, omega is constant, T_i is the support point, T_i->T_i+1, S_i->C respectively represent the vector formed by the two-point connection, theta(T_i- >T_i+1, S_i->C) indicates the angle between the two vectors, and Gradient Magnitude indicates the calculation function of the gradient magnitude;
当点C取得最优值时,将点C的坐标S_i:=C作为吸附支撑点。When the point C obtains the optimum value, the coordinate S_i:=C of the point C is taken as the adsorption support point.
也就是说,在实际应用中,所述调整模块32对各个支撑点分别做“吸附”调整,将各个支撑点移往最近的图像边缘线,并对应地记录坐标形成新的一组“吸附支撑点”S_0、S_1、…、S_n等等;对于某个支撑点T_i,计算移往临近区域Shift Search Region内某候选点C的移动代价函数:That is to say, in an actual application, the adjustment module 32 performs "adsorption" adjustment on each support point, moves each support point to the nearest image edge line, and correspondingly records coordinates to form a new set of "adsorption support". Point "S_0, S_1, ..., S_n, etc.; for a certain support point T_i, calculate the moving cost function of a candidate point C moving to the adjacent area Shift Search Region:
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3…,n); ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3... , n);
其中各omega为经验参数,T_i->T_i+1、S_i->C表示两点连线所成向量,theta(T_i->T_i+1,S_i->C)表示两向量间夹角。Each omega is an empirical parameter, T_i->T_i+1, S_i->C represents the vector formed by the two-point connection, and theta(T_i->T_i+1, S_i->C) represents the angle between the two vectors.
所述调整模块,配置为基于所述移动代价函数的计算结果,选取得到最优的计算结果所对应的第一图像边缘线上的点C,将点C的坐标作为吸附支撑点的坐标。当在某点C取得最优值时,记录C的坐标,即S_i:=C。The adjustment module is configured to select a point C on the edge line of the first image corresponding to the optimal calculation result based on the calculation result of the movement cost function, and use the coordinate of the point C as the coordinate of the adsorption support point. When the optimal value is obtained at a certain point C, the coordinates of C are recorded, that is, S_i:=C.
为速度优化计,Shift Search Region应限定在包含T_i-1、T_i在内的一小块局部区域而不是整图。For speed optimization, the Shift Search Region should be limited to a small local area containing T_i-1, T_i instead of the whole picture.
在得到吸附支撑点后,所述输出模块33将各所述吸附支撑点的坐标按照图像边缘逐次连线形成并输出所述第二图像边缘线。After the adsorption support point is obtained, the output module 33 sequentially forms the coordinates of each of the adsorption support points according to the edge of the image and outputs the second image edge line.
具体的,所述输出模块,配置为将各个调整后的吸附支撑点S_i,按图像边缘逐次连线形成最终的图像边缘线P;Specifically, the output module is configured to sequentially connect the adjusted adsorption support points S_i to the final image edge line P according to the edge of the image;
计算所述吸附支撑点S_i,与临近区域中候选点N的局部代价函数;Calculating the adsorption support point S_i, and a local cost function of the candidate point N in the adjacent area;
当候选点N的局部代价函数取得最优值时,记录N的坐标作为P_tmp,按序输出P_tmp作为获得的图像边缘线,将所述图像边缘线作为所述第二图像边缘线。When the local cost function of the candidate point N obtains the optimal value, the coordinates of the record N are taken as P_tmp, the P_tmp is sequentially outputted as the obtained image edge line, and the image edge line is taken as the second image edge line.
将各个调整后的“吸附支撑点”S_i按图像边缘逐次连线形成最终的图像边缘线P;对于某吸附支撑点S_i,计算临近区域NeighborSearchRegion中某候选点N的局部代价函数Each adjusted "adsorption support point" S_i is successively connected to the image edge to form a final image edge line P; for a certain adsorption support point S_i, a local cost function of a candidate point N in the neighborhood NeighborSearchRegion is calculated.
LocalCost(S_i,N)=omega_z*Laplacian Operator(N)+omega_G*Gradient Magnitude(N)+omega_D*Gradient Dircetion(S_i,N)LocalCost(S_i,N)=omega_z*Laplacian Operator(N)+omega_G*Gradient Magnitude(N)+omega_D*Gradient Dircetion(S_i,N)
其中各omega为经验参数。Each omega is an empirical parameter.
当在某点N取得最优值时,记录N的坐标,即P_tmp:=N。When the optimal value is obtained at a certain point N, the coordinates of N are recorded, that is, P_tmp:=N.
为速度优化计,Neighbor Search Region应尽量小,可限定为临近八像素。For speed optimization, the Neighbor Search Region should be as small as possible and can be limited to eight pixels.
在包含S_i-1与S_i的Path Connect Search Region局部区域内,In the local area of the Path Connect Search Region containing S_i-1 and S_i,
令LocalCost(S_i-1)=0,记LocalCost取得最优点为P_tmp;Let LocalCost(S_i-1)=0, remember that LocalCost achieves the best advantage of P_tmp;
do{ Do{
在P中按序记录P_tmpRecord P_tmp in order in P
寻找P_tmp附近LocalCost最优点并记为新的P_tmpFind the best advantage of LocalCost near P_tmp and remember it as a new P_tmp
}while(P_tmp到达S_i-1)}while(P_tmp reaches S_i-1)
按序输出P中各个像素坐标即获得所求图像边缘线,即,第二图像边缘线。The image edge lines, that is, the second image edge lines, are obtained by sequentially outputting the respective pixel coordinates in P.
其中,将原方法中Path Connect Search Region局部区域缩小限定为S_i-1与S_i临近区域,可大幅提升算法效率同时也能较好保持原方法的实现效果。Among them, the local area reduction of Path Connect Search Region in the original method is limited to the adjacent area of S_i-1 and S_i, which can greatly improve the efficiency of the algorithm and also better maintain the original method.
如图4和图5中所示,图中黑色实心点表示起笔点/落笔点,黑色粗体线段表示图像某段边缘;As shown in FIG. 4 and FIG. 5, the black solid dots in the figure represent the pen point/pen drop point, and the black bold line segment represents a certain edge of the image;
当前技术中形成图像边缘线的方式如图4所示,有靠近/远离边缘的“毛刺”现象;本实施例中获取图像边缘线如图5所示,起落笔点经“吸附”后形成吸附点(黑色空心点),以吸附点为依据形成边缘线可消除“毛刺现象”。In the current technology, the image edge line is formed as shown in FIG. 4, and there is a “burr” phenomenon near/away from the edge; in this embodiment, the image edge line is obtained as shown in FIG. 5, and the landing pen point is “adsorbed” to form an adsorption. The point (black hollow point), which forms the edge line based on the adsorption point, eliminates the "burr phenomenon".
本实施例提供的面向触屏设备的智能套索装置,可以凭借用户输入的较为粗糙的轮廓边缘而输出精细的图像轮廓边缘信息,减弱对用户的选点划线操作的精确性约束,在保证套索准确性的同时提高效率。The smart lasso device for the touch screen device provided by the embodiment can output fine image contour edge information by means of a relatively rough contour edge input by the user, thereby reducing the accuracy constraint on the user's selection and dashing operation, and ensuring Lasso accuracy increases efficiency at the same time.
在实际应用中,所述获取模块31、调整模块32和输出模块33均可由位于面向触屏设备的智能套索装置中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In an actual application, the obtaining module 31, the adjusting module 32, and the output module 33 may each be a Central Processing Unit (CPU) or a microprocessor (Micro Processor Unit) located in a smart lasso device facing the touch screen device. , MPU), digital signal processor (DSP) or Field Programmable Gate Array (FPGA) implementation.
图4为本发明实施例提供的面向触屏设备的智能套索方法的流程图。如图4所示,本实施例提供的方法具体可以用于配置有触摸屏的终端设备上,具体的,本实施例提供的方法可以包括:FIG. 4 is a flowchart of a smart lasso method for a touch screen device according to an embodiment of the present invention. As shown in FIG. 4, the method provided in this embodiment may be specifically used in a terminal device configured with a touch screen. Specifically, the method provided in this embodiment may include:
步骤401、获取用户在触摸屏上针对图像输入的轨迹信息。Step 401: Acquire trajectory information input by the user for the image on the touch screen.
本步骤中,由于在触屏设备的触摸屏上,是通过用户手指的选点划线操作来输入轨迹的,是较为粗糙的轮廓边缘,在本实施例中,会对用户输入的轨迹 进行采样,将采样点作为支撑点,即获取轨迹信息,对所述轨迹信息,根据图像本身的边缘特征进行调整,基于调整后的轨迹生成精细的图像轮廓。In this step, since the touch screen is input on the touch screen of the touch screen device by the user's finger, it is a rough contour edge. In this embodiment, the user inputs the track. Sampling is performed, and the sampling point is used as a supporting point, that is, the trajectory information is acquired, and the trajectory information is adjusted according to the edge feature of the image itself, and a fine image contour is generated based on the adjusted trajectory.
具体的,记录所述用户针对所述图像在所述触摸屏上划过的轨迹,按照预设采样频率对所述轨迹进行采样,生成多个支撑点,将所述多个支撑点的坐标作为所述轨迹信息。Specifically, the trajectory that the user has swept on the touch screen is recorded, and the trajectory is sampled according to a preset sampling frequency to generate a plurality of support points, and coordinates of the plurality of support points are used as Track information.
步骤402、根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息。Step 402: Adjust the track information according to the first image edge line of the image and a preset adjustment rule.
获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标,作为吸附支撑点;将所述轨迹信息调整为多个所述吸附支撑点的坐标。Obtaining coordinates of a point on the edge line of the first image closest to the support point as an adsorption support point; adjusting the trajectory information to coordinates of the plurality of adsorption support points.
实际应用中,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标,作为吸附支撑点,包括:In an actual application, acquiring coordinates of a point on the edge line of the first image closest to the support point as an adsorption support point includes:
根据移动代价函数,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标;其中,所述移动代价函数为:ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)Obtaining coordinates of a point on the edge line of the first image closest to the support point according to a movement cost function; wherein the moving cost function is: ShiftCost(T_i)=omega_d*distance(T_i, C)+ omega_GM*Gradient Magnitude(C)(i=1)
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3…,n);ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3... , n);
其中,C表示函数中的各个参数,omega均为常数,T_i->T_i+1、S_i->C表示两点连线所成向量,theta(T_i->T_i+1,S_i->C)表示两向量间夹角;当点C取得最优值时,将点C的坐标S_i:=C作为吸附支撑点。Where C is the parameter in the function, omega is a constant, T_i->T_i+1, S_i->C represents the vector formed by the two-point connection, theta(T_i->T_i+1, S_i->C) The angle between the two vectors; when the point C obtains the optimal value, the coordinate S_i:=C of the point C is taken as the adsorption support point.
在实际应用中,通过记录在触屏面板上手指划过的轨迹信息T,对其按一定采样频率记录生成一系列“支撑点”T_0、T_1、…、T_n等等;所述调整模块32对各个支撑点T_i分别做“吸附”调整,得到吸附支撑点。In practical applications, a series of "support points" T_0, T_1, ..., T_n, etc. are generated by recording a track information T that is swiped by a finger on the touch screen panel at a certain sampling frequency; the adjustment module 32 is Each support point T_i is separately "adsorbed" to obtain an adsorption support point.
具体的,根据移动代价函数,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标;其中,所述移动代价函数为:Specifically, according to the moving cost function, acquiring coordinates of a point on the edge line of the first image closest to the support point; wherein the moving cost function is:
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1) ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3…,n);ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3... , n);
其中,C表示第一图像边缘线上的点的坐标,omega均为常数,T_i表示支撑点的坐标,T_i->T_i+1、S_i->C表示两点连线所成向量,theta(T_i->T_i+1,S_i->C)表示两向量间夹角,Gradient Magnitude表示进行梯度幅值的计算函数;Where C is the coordinate of the point on the edge line of the first image, omega is constant, T_i is the coordinate of the support point, T_i->T_i+1, S_i->C is the vector formed by the two-point connection, theta(T_i ->T_i+1, S_i->C) represents the angle between the two vectors, and Gradient Magnitude represents the calculation function of the gradient magnitude;
基于所述移动代价函数的计算结果,选取得到最优的计算结果所对应的第一图像边缘线上的点C,将点C的坐标作为吸附支撑点的坐标;具体的,将点C的坐标S_i:=C作为吸附支撑点。Based on the calculation result of the movement cost function, the point C on the edge line of the first image corresponding to the optimal calculation result is selected, and the coordinate of the point C is taken as the coordinate of the adsorption support point; specifically, the coordinates of the point C are obtained. S_i:=C as the adsorption support point.
也就是说,在实际应用中,对各个支撑点分别做“吸附”调整,将各个支撑点移往最近的图像边缘线,并对应地记录坐标形成新的一组“吸附支撑点”S_0、S_1、…、S_n等等;对于某个支撑点T_i,计算移往临近区域Shift Search Region内某候选点C的移动代价函数:That is to say, in the actual application, the “adsorption” adjustment is performed on each support point, and each support point is moved to the nearest image edge line, and corresponding coordinates are recorded to form a new set of “adsorption support points” S_0, S_1. ,..., S_n, etc.; for a certain support point T_i, calculate the moving cost function of a candidate point C moving to the adjacent area Shift Search Region:
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)
ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3…,n);ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3... , n);
其中各omega为经验参数,T_i->T_i+1、S_i->C表示两点连线所成向量,theta(T_i->T_i+1,S_i->C)表示两向量间夹角。Each omega is an empirical parameter, T_i->T_i+1, S_i->C represents the vector formed by the two-point connection, and theta(T_i->T_i+1, S_i->C) represents the angle between the two vectors.
当在某点C取得最优值时,记录C的坐标,即S_i:=C。When the optimal value is obtained at a certain point C, the coordinates of C are recorded, that is, S_i:=C.
为速度优化计,根据移动代价函数,在包含T_i-1、T_i在内的局部区域内,获取所述第一图像边缘线上的点的坐标;For the speed optimization meter, according to the moving cost function, acquiring the coordinates of the points on the edge line of the first image in a local area including T_i-1, T_i;
也就是说,Shift Search Region应限定在包含T_i-1、T_i在内的一小块局部区域而不是整图。其中,一小块局部区域的大小可以根据实际情况设置,比如可以为整个图像的1/10大小,或其他大小,这里不进行穷举。In other words, the Shift Search Region should be limited to a small local area containing T_i-1, T_i instead of the entire image. The size of a small partial area may be set according to actual conditions, for example, may be 1/10 size of the entire image, or other sizes, and is not exhaustive here.
步骤403、根据调整后的所述轨迹信息,输出第二图像边缘线。Step 403: Output a second image edge line according to the adjusted track information.
将各所述吸附支撑点的坐标按照图像边缘逐次连线形成并输出所述第二图 像边缘线。Forming the coordinates of each of the adsorption support points successively according to the edge of the image and outputting the second image Like the edge line.
实际应用中,在得到吸附支撑点后,将各所述吸附支撑点的坐标按照图像边缘逐次连线形成并输出所述第二图像边缘线。In practical applications, after the adsorption support point is obtained, the coordinates of each of the adsorption support points are successively connected according to the edge of the image and the second image edge line is output.
具体的,所述将各所述吸附支撑点的坐标,按照图像边缘逐次连线形成并输出所述第二图像边缘线,包括:Specifically, the coordinates of each of the adsorption support points are sequentially connected according to an image edge and the second image edge line is output, including:
将各个调整后的吸附支撑点S_i,按图像边缘逐次连线形成最终的图像边缘线P;Each adjusted adsorption support point S_i is successively connected to the edge of the image to form a final image edge line P;
计算所述吸附支撑点S_i,与临近区域中候选点N的局部代价函数;Calculating the adsorption support point S_i, and a local cost function of the candidate point N in the adjacent area;
当候选点N的局部代价函数取得最优值时,记录N的坐标作为P_tmp,按序输出P_tmp作为获得的图像边缘线,将所述图像边缘线作为所述第二图像边缘线。When the local cost function of the candidate point N obtains the optimal value, the coordinates of the record N are taken as P_tmp, the P_tmp is sequentially outputted as the obtained image edge line, and the image edge line is taken as the second image edge line.
也就是说,将各个调整后的“吸附支撑点”S_i按图像边缘逐次连线形成最终的图像边缘线P;对于某吸附支撑点S_i,计算临近区域NeighborSearchRegion中某候选点N的局部代价函数;That is to say, each adjusted "adsorption support point" S_i is successively connected to the image edge to form a final image edge line P; for a certain adsorption support point S_i, a local cost function of a candidate point N in the neighborhood NeighborSearchRegion is calculated;
其中,所述局部代价函数可以为:Wherein, the local cost function can be:
LocalCost(S_i,N)=omega_z*Laplacian Operator(N)+omega_G*Gradient Magnitude(N)+omega_D*Gradient Dircetion(S_i,N)LocalCost(S_i,N)=omega_z*Laplacian Operator(N)+omega_G*Gradient Magnitude(N)+omega_D*Gradient Dircetion(S_i,N)
其中,各omega为预设的经验参数,Gradient Magnitude表示进行梯度幅值的计算函数,Gradient Dircetion表示梯度方向的计算函数。Among them, each omega is a preset empirical parameter, Gradient Magnitude represents the calculation function of the gradient magnitude, and Gradient Dircetion represents the calculation function of the gradient direction.
当在某点N取得最优值时,记录N的坐标,即P_tmp:=N。When the optimal value is obtained at a certain point N, the coordinates of N are recorded, that is, P_tmp:=N.
进一步地,为速度优化计,临近区域设置为相邻的预设数量个像素内,比如,Neighbor Search Region应尽量小,可限定为临近八像素。在包含S_i-1与S_i的Path Connect Search Region局部区域内,令LocalCost(S_i-1)=0,记LocalCost取得最优点为P_tmp;Further, for the speed optimization meter, the neighboring area is set to be adjacent to a preset number of pixels. For example, the Neighbor Search Region should be as small as possible and can be limited to eight pixels. In the local area of Path Connect Search Region containing S_i-1 and S_i, let LocalCost(S_i-1)=0, and note that LocalCost achieves the best advantage as P_tmp;
do{Do{
在P中按序记录P_tmp; Record P_tmp in order in P;
寻找P_tmp附近LocalCost最优点并记为新的P_tmp;Find the best advantage of LocalCost near P_tmp and record it as new P_tmp;
}while(P_tmp到达S_i-1)}while(P_tmp reaches S_i-1)
按序输出P中各个像素坐标即获得所求图像边缘线,即,第二图像边缘线。The image edge lines, that is, the second image edge lines, are obtained by sequentially outputting the respective pixel coordinates in P.
其中,将原方法中Path Connect Search Region局部区域缩小限定为S_i-1与S_i临近区域,可大幅提升算法效率同时也能较好保持原方法的实现效果。Among them, the local area reduction of Path Connect Search Region in the original method is limited to the adjacent area of S_i-1 and S_i, which can greatly improve the efficiency of the algorithm and also better maintain the original method.
本发明实施例还提供了一种计算机存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:Embodiments of the present invention also provide a computer storage medium, the storage medium comprising a set of instructions that, when executed, cause at least one processor to perform operations including:
获取用户在触摸屏上针对图像输入的轨迹信息;Obtaining trajectory information input by the user for the image on the touch screen;
根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;Adjusting the track information according to a first image edge line of the image and a preset adjustment rule;
根据调整后的所述轨迹信息,输出第二图像边缘线。And outputting a second image edge line according to the adjusted track information.
本实施例提供的面向触屏设备的智能套索方法,可以凭借用户输入的较为粗糙的轮廓边缘而输出精细的图像轮廓边缘信息,减弱对用户的选点划线操作的精确性约束,在保证套索准确性的同时提高效率。The smart lasso method for the touch screen device provided by the embodiment can output fine image contour edge information by means of a relatively rough contour edge input by the user, thereby reducing the accuracy constraint on the user's selection and dash operation, and ensuring Lasso accuracy increases efficiency at the same time.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包 括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所描述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD), package A number of instructions are included to cause a terminal device (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present invention.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
本发明实施例提供了面向触屏设备的智能套索装置、方法及计算机存储介质,通过获取用户在触摸屏上针对图像输入的轨迹信息;根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;根据调整后的所述轨迹信息,输出第二图像边缘线。如此,可以凭借用户输入的较为粗糙的轮廓边缘而 输出精细的图像轮廓边缘信息,减弱了对用户的选点划线操作的精确性约束,在保证套索准确性的同时提高效率。 Embodiments of the present invention provide an intelligent lasso device, a method, and a computer storage medium for a touch screen device, which acquire track information for an image input by a user on a touch screen; according to a first image edge line of the image and a preset adjustment rule And adjusting the track information; and outputting a second image edge line according to the adjusted track information. In this way, it is possible to rely on the rougher contour edges of the user input. Outputting fine image contour edge information reduces the accuracy constraint on the user's point-dash operation, and improves the efficiency while ensuring the lasso accuracy.

Claims (20)

  1. 一种面向触屏设备的智能套索装置,所述装置包括:An intelligent lasso device for a touch screen device, the device comprising:
    获取模块,配置为获取用户在触摸屏上针对图像输入的轨迹信息;Obtaining a module, configured to acquire trajectory information input by the user for the image on the touch screen;
    调整模块,配置为根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;The adjusting module is configured to adjust the track information according to the first image edge line of the image and a preset adjustment rule;
    输出模块,配置为根据调整后的所述轨迹信息,输出第二图像边缘线。And an output module configured to output a second image edge line according to the adjusted track information.
  2. 根据权利要求1所述的装置,其中,所述获取模块,配置为记录所述用户针对所述图像在所述触摸屏上划过的轨迹,按照预设采样频率对所述轨迹进行采样,生成至少一个支撑点;将所述至少一个支撑点的坐标作为所述轨迹信息。The device according to claim 1, wherein the acquiring module is configured to record a trajectory that the user has swept on the touch screen for the image, and sample the trajectory according to a preset sampling frequency to generate at least a support point; the coordinates of the at least one support point are taken as the track information.
  3. 根据权利要求2所述的装置,其中,所述调整模块,配置为获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标,作为吸附支撑点;将所述轨迹信息调整为多个所述吸附支撑点的坐标。The apparatus according to claim 2, wherein the adjustment module is configured to acquire coordinates of a point on the edge line of the first image closest to the support point as an adsorption support point; Adjusted to the coordinates of a plurality of said adsorption support points.
  4. 根据权利要求3所述的装置,其中,所述调整模块,配置为根据移动代价函数,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标作为吸附支撑点。The apparatus according to claim 3, wherein the adjustment module is configured to acquire coordinates of a point on the edge line of the first image closest to the support point as an adsorption support point according to a movement cost function.
  5. 根据权利要求3所述的装置,其中,所述移动代价函数为:The apparatus of claim 3 wherein said moving cost function is:
    ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)
    ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3…,n);ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3... , n);
    其中,C表示第一图像边缘线上的点的坐标,omega均为常数,T_i表示支撑点,T_i->T_i+1、S_i->C分别表示两点连线所成向量,theta(T_i->T_i+1,S_i->C)表示两向量间夹角,Gradient Magnitude表示进行梯度幅值的计算函数;Where C is the coordinate of the point on the edge line of the first image, omega is constant, T_i is the support point, T_i->T_i+1, S_i->C respectively represent the vector formed by the two-point connection, theta(T_i- >T_i+1, S_i->C) indicates the angle between the two vectors, and Gradient Magnitude indicates the calculation function of the gradient magnitude;
    所述调整模块,配置为基于所述移动代价函数的计算结果,选取得到最优 的计算结果所对应的第一图像边缘线上的点C,将点C的坐标作为吸附支撑点的坐标。The adjusting module is configured to select an optimal based on a calculation result of the moving cost function The point C on the edge line of the first image corresponding to the calculation result is the coordinate of the point C as the coordinate of the adsorption support point.
  6. 根据权利要求5所述的装置,其中,所述调整模块,配置为根据移动代价函数,在包含T_i-1、T_i在内的局部区域内,获取所述第一图像边缘线上的点的坐标。The apparatus according to claim 5, wherein the adjustment module is configured to acquire coordinates of a point on the edge line of the first image in a local area including T_i-1, T_i according to a movement cost function .
  7. 根据权利要求4所述的装置,其中,输出模块,配置为将各所述吸附支撑点的坐标按照图像边缘逐次连线形成并输出所述第二图像边缘线。The apparatus according to claim 4, wherein the output module is configured to sequentially form coordinates of each of the adsorption support points in accordance with an image edge and output the second image edge line.
  8. 根据权利要求7所述的装置,其中,所述输出模块,配置为将各个调整后的吸附支撑点S_i,按图像边缘逐次连线形成最终的图像边缘线P;The apparatus according to claim 7, wherein the output module is configured to sequentially connect the respective adjusted adsorption support points S_i to the final image edge line P according to the edge of the image;
    计算所述吸附支撑点S_i,与临近区域中候选点N的局部代价函数;Calculating the adsorption support point S_i, and a local cost function of the candidate point N in the adjacent area;
    当候选点N的局部代价函数取得最优值时,记录N的坐标作为P_tmp,按序输出P_tmp作为获得的图像边缘线,将所述图像边缘线作为所述第二图像边缘线。When the local cost function of the candidate point N obtains the optimal value, the coordinates of the record N are taken as P_tmp, the P_tmp is sequentially outputted as the obtained image edge line, and the image edge line is taken as the second image edge line.
  9. 根据权利要求8所述的装置,其中,所述局部代价函数为:The apparatus of claim 8 wherein said local cost function is:
    LocalCost(S_i,N)=omega_z*Laplacian Operator(N)+omega_G*Gradient Magnitude(N)+omega_D*Gradient Dircetion(S_i,N);LocalCost(S_i,N)=omega_z*Laplacian Operator(N)+omega_G*Gradient Magnitude(N)+omega_D*Gradient Dircetion(S_i,N);
    其中,各omega为预设的经验参数,Gradient Magnitude表示进行梯度幅值的计算函数、Gradient Dircetion表示进行梯度方向的计算函数。Among them, each omega is a preset empirical parameter, Gradient Magnitude represents the calculation function of the gradient magnitude, and Gradient Dircetion represents the calculation function of the gradient direction.
  10. 根据权利要求9所述的装置,其中,所述输出模块,配置为临近区域设置为相邻的预设数量个像素内。The apparatus of claim 9, wherein the output module is configured to be disposed adjacent to a predetermined number of pixels.
  11. 一种面向触屏设备的智能套索方法,所述方法包括:A smart lasso method for a touch screen device, the method comprising:
    获取用户在触摸屏上针对图像输入的轨迹信息;Obtaining trajectory information input by the user for the image on the touch screen;
    根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;Adjusting the track information according to a first image edge line of the image and a preset adjustment rule;
    根据调整后的所述轨迹信息,输出第二图像边缘线。And outputting a second image edge line according to the adjusted track information.
  12. 根据权利要求11所述的方法,其中,所述获取用户在触摸屏上针对图像输入的轨迹信息,包括: The method according to claim 11, wherein the acquiring the trajectory information input by the user for the image on the touch screen comprises:
    记录所述用户针对所述图像在所述触摸屏上划过的轨迹,按照预设采样频率对所述轨迹进行采样,生成至少一个支撑点;将所述至少一个支撑点的坐标作为所述轨迹信息。Recording, by the user, a trajectory drawn on the touch screen by the image, sampling the trajectory according to a preset sampling frequency to generate at least one support point; and using coordinates of the at least one support point as the trajectory information .
  13. 根据权利要求12所述的方法,其中,所述根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息,包括:The method of claim 12, wherein the adjusting the track information according to the first image edge line of the image and a preset adjustment rule comprises:
    获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标,作为吸附支撑点;Obtaining coordinates of a point on the edge line of the first image closest to the support point as an adsorption support point;
    将所述轨迹信息调整为多个所述吸附支撑点的坐标。The trajectory information is adjusted to coordinates of a plurality of the adsorption support points.
  14. 根据权利要求13所述的方法,其中,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标,作为吸附支撑点,包括:The method according to claim 13, wherein acquiring coordinates of a point on the edge line of the first image closest to the support point as the adsorption support point comprises:
    根据移动代价函数,获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标作为吸附支撑点。According to the moving cost function, coordinates of points on the edge line of the first image closest to the support point are acquired as adsorption support points.
  15. 根据权利要求14所述的方法,其中,所述移动代价函数为:The method of claim 14 wherein said moving cost function is:
    ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)(i=1)
    ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3…,n);ShiftCost(T_i)=omega_d*distance(T_i,C)+omega_GM*Gradient Magnitude(C)+omega_theta*cos(theta(T_i-1->T_i,S_i-1->C))(i=2,3... , n);
    其中,C表示第一图像边缘线上的点的坐标,omega均为常数,T_i表示支撑点,T_i->T_i+1、S_i->C分别表示两点连线所成向量,theta(T_i->T_i+1,S_i->C)表示两向量间夹角,Gradient Magnitude表示进行梯度幅值的计算函数;Where C is the coordinate of the point on the edge line of the first image, omega is constant, T_i is the support point, T_i->T_i+1, S_i->C respectively represent the vector formed by the two-point connection, theta(T_i- >T_i+1, S_i->C) indicates the angle between the two vectors, and Gradient Magnitude indicates the calculation function of the gradient magnitude;
    相应的,所述获取与所述支撑点距离最近的所述第一图像边缘线上的点的坐标作为吸附支撑点,包括:Correspondingly, the acquiring the coordinates of the point on the edge line of the first image closest to the support point as the adsorption support point includes:
    基于所述移动代价函数的计算结果,选取得到最优的计算结果所对应的第一图像边缘线上的点C,将点C的坐标作为吸附支撑点的坐标。Based on the calculation result of the movement cost function, the point C on the edge line of the first image corresponding to the optimal calculation result is selected, and the coordinates of the point C are taken as the coordinates of the adsorption support point.
  16. 根据权利要求15所述的方法,其中,所述方法还包括:The method of claim 15 wherein the method further comprises:
    根据移动代价函数,在包含T_i-1、T_i在内的局部区域内,获取所述第一 图像边缘线上的点的坐标。Obtaining the first part in a local area including T_i-1, T_i according to a moving cost function The coordinates of the point on the edge of the image.
  17. 根据权利要求14所述的方法,其中,根据调整后的所述轨迹信息,输出第二图像边缘线,包括:The method according to claim 14, wherein outputting the second image edge line according to the adjusted track information comprises:
    将各所述吸附支撑点的坐标,按照图像边缘逐次连线形成并输出所述第二图像边缘线。The coordinates of each of the adsorption support points are successively connected according to the edge of the image and the second image edge line is output.
  18. 根据权利要求17所述的方法,其中,所述将各所述吸附支撑点的坐标,按照图像边缘逐次连线形成并输出所述第二图像边缘线,包括:The method according to claim 17, wherein the forming the coordinates of each of the adsorption support points in a line by image edge and outputting the second image edge line comprises:
    将各个调整后的吸附支撑点S_i,按图像边缘逐次连线形成最终的图像边缘线P;Each adjusted adsorption support point S_i is successively connected to the edge of the image to form a final image edge line P;
    计算所述吸附支撑点S_i,与临近区域中候选点N的局部代价函数;Calculating the adsorption support point S_i, and a local cost function of the candidate point N in the adjacent area;
    当候选点N的局部代价函数取得最优值时,记录N的坐标作为P_tmp,按序输出P_tmp作为获得的图像边缘线,将所述图像边缘线作为所述第二图像边缘线。When the local cost function of the candidate point N obtains the optimal value, the coordinates of the record N are taken as P_tmp, the P_tmp is sequentially outputted as the obtained image edge line, and the image edge line is taken as the second image edge line.
  19. 根据权利要求18所述的方法,其中,所述局部代价函数为:The method of claim 18 wherein said local cost function is:
    LocalCost(S_i,N)=omega_z*Laplacian Operator(N)+omega_G*Gradient Magnitude(N)+omega_D*Gradient Dircetion(S_i,N);LocalCost(S_i,N)=omega_z*Laplacian Operator(N)+omega_G*Gradient Magnitude(N)+omega_D*Gradient Dircetion(S_i,N);
    其中,各omega为预设的经验参数,Gradient Magnitude表示进行梯度幅值的计算函数、Gradient Dircetion表示进行梯度方向的计算函数。Among them, each omega is a preset empirical parameter, Gradient Magnitude represents the calculation function of the gradient magnitude, and Gradient Dircetion represents the calculation function of the gradient direction.
  20. 一种计算机存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:A computer storage medium comprising a set of instructions that, when executed, cause at least one processor to perform operations comprising:
    获取用户在触摸屏上针对图像输入的轨迹信息;Obtaining trajectory information input by the user for the image on the touch screen;
    根据所述图像的第一图像边缘线以及预设调整规则,调整所述轨迹信息;Adjusting the track information according to a first image edge line of the image and a preset adjustment rule;
    根据调整后的所述轨迹信息,输出第二图像边缘线。 And outputting a second image edge line according to the adjusted track information.
PCT/CN2016/112487 2016-04-29 2016-12-27 Method and apparatus for front-facing touch screen device and computer storage medium WO2017185785A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610281677.6A CN105892753B (en) 2016-04-29 2016-04-29 A kind of method and device towards touch-screen equipment
CN201610281677.6 2016-04-29

Publications (1)

Publication Number Publication Date
WO2017185785A1 true WO2017185785A1 (en) 2017-11-02

Family

ID=56703003

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112487 WO2017185785A1 (en) 2016-04-29 2016-12-27 Method and apparatus for front-facing touch screen device and computer storage medium

Country Status (2)

Country Link
CN (1) CN105892753B (en)
WO (1) WO2017185785A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112862848A (en) * 2021-03-18 2021-05-28 北京小米移动软件有限公司 Image processing method, device and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892753B (en) * 2016-04-29 2019-01-01 努比亚技术有限公司 A kind of method and device towards touch-screen equipment
CN106357979A (en) * 2016-09-19 2017-01-25 宇龙计算机通信科技(深圳)有限公司 Photographing method, device and terminal
CN114838701B (en) * 2021-01-30 2023-08-22 华为技术有限公司 Method for acquiring attitude information and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140267426A1 (en) * 2013-03-13 2014-09-18 Nvidia Corporation System, method, and computer program product for automatically extending a lasso region in two-dimensional image editors
CN105005426A (en) * 2014-04-18 2015-10-28 深圳Tcl新技术有限公司 Screenshot method and system for touch screen terminal, and data sharing method and system for touch screen terminal
CN105094599A (en) * 2015-06-29 2015-11-25 北京金山安全软件有限公司 Picture clipping method and device and terminal
CN105892753A (en) * 2016-04-29 2016-08-24 努比亚技术有限公司 Method and device for touch screen equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639896A (en) * 2009-05-19 2010-02-03 上海闻泰电子科技有限公司 Data filtering and smoothing method applied to touch screen
CN102129319A (en) * 2011-02-28 2011-07-20 李丽平 Fast information interactive system and interactive method thereof
CN102129321A (en) * 2011-03-07 2011-07-20 惠州Tcl移动通信有限公司 Touch screen-based track recording and comparing method
CN103279234B (en) * 2013-05-28 2016-12-28 广州视睿电子科技有限公司 The method and system of location, touch point
CN104574454B (en) * 2013-10-29 2020-06-02 阿里巴巴集团控股有限公司 Image processing method and device
CN105468180A (en) * 2014-08-29 2016-04-06 深圳市鸿合创新信息技术有限责任公司 Electronic whiteboard track smoothing method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140267426A1 (en) * 2013-03-13 2014-09-18 Nvidia Corporation System, method, and computer program product for automatically extending a lasso region in two-dimensional image editors
CN105005426A (en) * 2014-04-18 2015-10-28 深圳Tcl新技术有限公司 Screenshot method and system for touch screen terminal, and data sharing method and system for touch screen terminal
CN105094599A (en) * 2015-06-29 2015-11-25 北京金山安全软件有限公司 Picture clipping method and device and terminal
CN105892753A (en) * 2016-04-29 2016-08-24 努比亚技术有限公司 Method and device for touch screen equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112862848A (en) * 2021-03-18 2021-05-28 北京小米移动软件有限公司 Image processing method, device and storage medium
CN112862848B (en) * 2021-03-18 2023-11-21 北京小米移动软件有限公司 Image processing method, device and storage medium

Also Published As

Publication number Publication date
CN105892753B (en) 2019-01-01
CN105892753A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
US8780258B2 (en) Mobile terminal and method for generating an out-of-focus image
WO2018019124A1 (en) Image processing method and electronic device and storage medium
WO2016173468A1 (en) Combined operation method and device, touch screen operation method and electronic device
WO2017071481A1 (en) Mobile terminal and split-screen implementation method
CN106909274B (en) Image display method and device
WO2017050115A1 (en) Image synthesis method
WO2017020836A1 (en) Device and method for processing depth image by blurring
CN104731480B (en) Image display method and device based on touch screen
WO2017143855A1 (en) Device with screen capturing function and screen capturing method
WO2018050014A1 (en) Focusing method, photographing device and storage medium
WO2017032217A1 (en) Multi-point touch control apparatus and method
CN104750420A (en) Screen capturing method and device
WO2018019128A1 (en) Method for processing night scene image and mobile terminal
WO2017041714A1 (en) Method and device for acquiring rgb data
WO2017088631A1 (en) Mobile terminal, increase/decrease adjusting method and apparatus therefor, and storage medium
WO2017185785A1 (en) Method and apparatus for front-facing touch screen device and computer storage medium
WO2017185865A1 (en) Antenna, mobile terminal and control method therefor, and storage medium
WO2017071542A1 (en) Image processing method and apparatus
CN106482641B (en) Size measuring device and method
CN105763847A (en) Monitoring method and monitoring terminal
WO2017113893A1 (en) Method and device for network searching
WO2017071592A1 (en) Method and apparatus for focusing, method and apparatus for photographing
WO2018032917A1 (en) Mobile terminal, method for obtaining focus value, and computer readable storage medium
CN106980460B (en) Mobile terminal and image processing method
CN106455009B (en) Network searching device and method

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16900289

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900289

Country of ref document: EP

Kind code of ref document: A1