CN103744609A - Data extraction method and device - Google Patents

Data extraction method and device Download PDF

Info

Publication number
CN103744609A
CN103744609A CN 201410026372 CN201410026372A CN103744609A CN 103744609 A CN103744609 A CN 103744609A CN 201410026372 CN201410026372 CN 201410026372 CN 201410026372 A CN201410026372 A CN 201410026372A CN 103744609 A CN103744609 A CN 103744609A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
position
data
screen
terminal
boundary
Prior art date
Application number
CN 201410026372
Other languages
Chinese (zh)
Other versions
CN103744609B (en )
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

Links

Abstract

Embodiments of the invention disclose a data extraction method and device. The method includes: determining a first capture position selected by a user on a terminal screen; determining a first positional relation between the first capture position and the periphery of the terminal screen; in first data, determining a second capture position having a second positional relation with the periphery of the terminal screen; extracting second data from the first data according to the second capture position. The first data is displayed on the terminal screen; the first positional relation is the same as the second positional relation. The second data can be extracted without converting the first data into a picture format and need not be stored in the picture format; meanwhile, the method is applicable to both browsers and various data files, such as table data, webpage data, picture data, PDF data, E-books and the like.

Description

一种数据提取方法及装置 A data extraction method and apparatus

技术领域 FIELD

[0001] 本发明涉及数据处理技术领域,特别是涉及一种数据提取方法及装置。 [0001] Technical Field The present invention relates to data processing, more particularly to a method and apparatus for data extraction.

背景技术 Background technique

[0002] 随着智能终端使用人群的逐渐壮大,越来越多的人会使用智能终端来阅读信息或查找信息。 [0002] With the intelligent terminals use the crowd grew, more and more people will use smart terminal to read information or to find information. 在阅读或者查找信息的过程中,常常会遇到对某一部分数据或者信息进行反复阅读或者查找的情况,如果在全局数据上进行反复查找操作,是一种非常麻烦且费时的事情。 In the process of reading or find information, often encounter a certain part of the data or information in the case of repeated reading or looking for, if repeated lookup operation on global data, is a very cumbersome and time-consuming thing.

[0003] 为了提高用户阅读与查找的效率,现有技术中可以采用基于移动终端浏览器的页面截图来提取用户需要反复阅读或查找的数据,并进行保存,以便于后续查阅。 [0003] In order to improve the efficiency of the user to read the lookup, the prior art may be employed to extract the theme of the mobile terminal user based on the page browser or find requires repeated reading data, and saved, for subsequent inspection. 其中,该方法中提取数据的过程是通过获取用户的截图指令,根据用户的截图指令将保存在缓存中的页面转换为图片格式;确定页面截图区域;根据页面截图区域对所述图片格式的页面进行页面截图,生成页面截图图片。 Wherein, during the process of extracting data is acquired by a user's instruction screenshot, according to a user's instruction to save the theme page in the cache into a picture format; page screenshot determining region; theme area of ​​the page based on the page for the image format for page screenshots, generate page screenshot picture.

[0004] 然而该提取数据的过程需要将待提取的数据转换为图片格式才能进行截图保存,提取过程较为复杂。 [0004] However, the process of extracting data needs to be extracted data into a picture format to save the screenshot, the extraction process is more complicated.

发明内容 SUMMARY

[0005] 本发明提供了一种数据提取方法,无需将待提取数据转化为图片格式即可实现数据提取。 [0005] The present invention provides a data extraction method for extracting data need not be converted to the format image data extraction can be achieved.

[0006] 为了解决上述技术问题,本发明实施例公开了如下技术方案: [0006] To solve the above problems, embodiments of the present invention disclose the following technical solutions:

[0007] 第一方面,提供一种数据提取方法,包括: [0007] In a first aspect, there is provided a data extraction method, comprising:

[0008] 确定用户在终端屏幕上选定的第一截取位置; [0008] determined that the user selected on the screen of the first terminal position of interception;

[0009] 确定所述第一截取位置与所述终端屏幕的边界之间的第一位置关系; [0009] determining a first positional relationship between the boundary of the first clipping position of the terminal screen;

[0010] 在第一数据中确定与所述终端屏幕的边界具有第二位置关系的第二截取位置,其中,所述第一数据显示在所述终端屏幕上,且所述第一位置关系与所述第二位置关系相同; [0010] determining a first boundary of the data terminal with a second screen having a second positional relationship between the position taken, wherein the first data is displayed on the terminal screen, and the first positional relationship and the same second positional relationship;

[0011 ] 根据所述第二截取位置在所述第一数据中提取第二数据。 [0011] extracting the second data in the first data in accordance with said second intercepting position.

[0012] 结合上述第一方面,在第一种可能的实现方式中,所述确定用户在终端屏幕上选定的第一截取位置,包括以下至少一种: [0012] reference to the first aspect, in a first possible implementation, the selected user is determined on the terminal screen intercepting a first position, comprising at least one of:

[0013] 确定用户在所述终端屏幕上的触摸点位置,并将所述触摸点位置作为所述第一截取位置;或者, [0013] determining the touch point of the user on the terminal screen, and the position of the touch point as the first intercepting position; or,

[0014] 确定用户靠近所述终端屏幕的近触点,并将所述近触点对应在所述终端屏幕上的位置作为所述第一截取位置,所述近触点与所述终端屏幕的距离小于等于预设距离阈值;或者, [0014] determined that the user close contact near the terminal screen, and corresponds to the near-contact position on the screen of the terminal as the first position intercepting the near contact with the terminal screen distance equal to the distance is smaller than a preset threshold; or

[0015] 确定用户通过按键在所述终端屏幕上选定的第一截取位置。 [0015] OK key selected by the user on the screen of the first terminal position taken.

[0016] 结合上述第一方面,和/或第一种可能的实现方式,在第二种可能的实现方式中,所述确定用户在所述终端屏幕上的触摸点位置,包括: [0016] reference to the first aspect, and / or a first possible implementation manner, in a second possible implementation, the user determines the touch point on the terminal screen, comprising:

[0017] 获得用户在所述终端屏幕上的触摸滑动轨迹; [0017] The user touches the sliding track is obtained on the terminal screen;

[0018] 当所述触摸滑动轨迹满足预设条件时,获得所述触摸滑动轨迹的初始位置作为用户在所述终端屏幕上的触摸点位置。 [0018] When the touch sliding track satisfies a preset condition to obtain the initial position of the sliding track touch as a touch point position of a user on the terminal screen.

[0019] 结合上述第一方面,和/或第一种可能的实现方式,和/或第二种可能的实现方式,在第三种可能的实现方式中,所述预设条件包括: [0019] reference to the first aspect, and / or the first possible implementation, and / or the second possible implementation manner, in a third possible implementation manner, the preset condition comprises:

[0020] 所述触摸滑动轨迹至少为两个,且每个所述触摸滑动轨迹的连续滑动距离大于等于滑动阈值。 [0020] The sliding track touch at least two, and continuous sliding distance of each sliding track of the touch slide is not less than the threshold value.

[0021] 结合上述第一方面,和/或第一种可能的实现方式,和/或第二种可能的实现方式,和/或第三种可能的实现方式,在第四种可能的实现方式中,所述预设条件包括: [0021] reference to the first aspect, and / or the first possible implementation, and / or the second possible implementation, and / or a third possible implementation manner, in a fourth possible implementation manner in the preset condition comprises:

[0022] 所述触摸滑动轨迹为封闭曲线。 [0022] The touch sliding track is a closed curve.

[0023] 结合上述第一方面,和/或第一种可能的实现方式,和/或第二种可能的实现方式,和/或第三种可能的实现方式,和/或第四种可能的实现方式,在第五种可能的实现方式中,所述确定所述第一截取位置与所述终端屏幕的边界之间的第一位置关系,包括: [0023] reference to the first aspect, and / or the first possible implementation, and / or the second possible implementation, and / or a third possible implementation, and / or a fourth possible implementation, in a fifth possible implementation manner, the determining the relationship between a first position a first boundary of the clipping position of the terminal screen, comprising:

[0024] 计算所述第一截取位置与第一边界之间的第一距离,以及所述第一截取位置与第二边界之间的第二距离,其中,所述第一边界与所述第二边界为所述终端屏幕的两相邻边界; [0024] calculating a second distance between the first distance between the first position and the first boundary taken, and the first intercepting position and the second boundary, wherein the first boundary and the second two of the boundary of the two adjacent border terminal screen;

[0025] 计算所述第一距离与所述第二边界长度的第一比例,以及所述第二距离与所述第一边界长度的第二比例,并将所述第一比例及所述第二比例作为所述第一截取位置与所述终端屏幕的边界之间的第一位置关系。 [0025] calculating the first distance and the second boundary length ratio of the first and the second distance from the first second boundary length ratio and the first ratio and the second two proportional relationship as the first position of the boundary position between the first terminal screen taken.

[0026] 第二方面,提供一种数据提取装置,包括: [0026] a second aspect, there is provided a data extraction apparatus, comprising:

[0027] 第一位置确定单元,用于确定用户在终端屏幕上选定的第一截取位置; [0027] The first position determining means for determining a user selected on the screen of the first terminal position of interception;

[0028] 位置关系确定单元,用于确定所述第一截取位置与所述终端屏幕的边界之间的位置关系; [0028] The positional relationship determining means for determining a positional relationship between the boundary of the first clipping position of the terminal screen;

[0029] 第二位置确定单元,用于在第一数据中确定与所述终端屏幕的边界具有第二位置关系的第二截取位置,其中,所述第一数据显示在所述终端屏幕上,且所述第一位置关系与所述第二位置关系相同; [0029] The second position determining means for determining a boundary of the screen is provided with a second terminal of the second positional relationship between the position taken in the first data, wherein the first data is displayed on the terminal screen, a first positional relationship and the second positional relationship of the same;

[0030] 数据提取单元,用于根据所述第二截取位置在所述第一数据中提取第二数据。 [0030] The data extracting unit for extracting a second data in the first data in accordance with said second intercepting position.

[0031] 结合上述第二方面,在第一种可能的实现方式中,所述第一位置确定单元,具体用于确定用户在所述终端屏幕上的触摸点位置,并将所述触摸点位置作为所述第一截取位置;或者,确定用户靠近所述终端屏幕的近触点,并将所述近触点对应在所述终端屏幕上的位置作为所述第一截取位置,所述近触点与所述终端屏幕的距离小于等于预设距离阈值;或者,确定用户通过按键在所述终端屏幕上选定的第一截取位置。 [0031] The combination of the above second aspect, in a first possible implementation manner, the first position determination means for determining the particular location of the user touch point on the terminal screen, and the touch point position taken as the first position; or, determining that the user close contact near the terminal screen, and a corresponding contact on the near position of the screen of the terminal as the first intercepting position, nearly touch the the distance between the point and the terminal screen is less than equal to the predetermined distance threshold; or determining the key selected by the user on the screen of the first terminal position taken.

[0032] 结合上述第二方面,和/或第一种可能的实现方式,在第二种可能的实现方式中,所述第一位置确定单元包括: [0032] The binding to the second aspect, and / or a first possible implementation manner, in a second possible implementation, the first position determining means comprises:

[0033] 轨迹获取子单元,用于在所述第一位置确定单元将所述用户在所述终端屏幕上的触摸点位置确定为所述第一截取位置之前,获得用户在所述终端屏幕上的触摸滑动轨迹; [0033] locus acquisition sub-unit, for determining the position of said first unit prior to the user touch position on the screen of the terminal is determined as the first intercept position, access to the user on the terminal screen touch sliding track;

[0034] 位置确定子单元,用于当所述触摸滑动轨迹满足预设条件时,获得所述触摸滑动轨迹的初始位置作为用户在所述终端屏幕上的触摸点位置。 [0034] The position determination sub-unit, configured to, when the touch sliding track preset condition is satisfied, to obtain an initial position of the sliding track as the touch position touched by the user on the terminal screen. [0035] 结合上述第二方面,和/或第一种可能的实现方式,和/或第二种可能的实现方式,在第三种可能的实现方式中,所述预设条件包括: [0035] The binding to the second aspect, and / or the first possible implementation, and / or the second possible implementation manner, in a third possible implementation manner, the preset condition comprises:

[0036] 所述触摸滑动轨迹至少为两个,且每个所述触摸滑动轨迹的连续滑动距离大于等于滑动阈值。 [0036] The sliding track touch at least two, and continuous sliding distance of each sliding track of the touch slide is not less than the threshold value.

[0037] 结合上述第二方面,和/或第一种可能的实现方式,和/或第二种可能的实现方式,和/或第三种可能的实现方式,在第四种可能的实现方式中,所述预设条件包括:所述触摸滑动轨迹为封闭曲线。 [0037] The binding to the second aspect, and / or the first possible implementation, and / or the second possible implementation, and / or a third possible implementation manner, in a fourth possible implementation manner in the preset condition comprises: the touch sliding track is a closed curve.

[0038] 结合上述第二方面,和/或第一种可能的实现方式,和/或第二种可能的实现方式,和/或第三种可能的实现方式,和/或第四种可能的实现方式,在第五种可能的实现方式中,所述位置关系确定单元包括: [0038] The binding to the second aspect, and / or the first possible implementation, and / or the second possible implementation, and / or a third possible implementation, and / or a fourth possible implementation, in a fifth possible implementation manner, the positional relationship determining unit comprises:

[0039] 第一计算子单元,用于计算所述第一截取位置与第一边界之间的第一距离,以及所述第一截取位置与第二边界之间的第二距离,其中,所述第一边界与所述第二边界为所述终端屏幕的两相邻边界; [0039] a first calculating sub-unit, a second distance between the first calculated distance between the first position and the first boundary taken, and the first intercepting position and the second boundary, wherein the said first boundary and the second boundary of the two adjacent border terminal screen;

[0040] 第二计算子单元,用于计算所述第一距离与所述第二边界长度的第一比例,以及所述第二距离与所述第一边界长度的第二比例,并将所述第一比例及所述第二比例作为所述第一截取位置与所述终端屏幕的边界之间的第一位置关系。 [0040] The second calculating sub-unit, for calculating a first ratio of the first distance and the second boundary length, and a second ratio of the second length distance from the first boundary, and the said first ratio and the second ratio, as the positional relationship between the first position and the boundary of the screen of the first terminal taken.

[0041] 本发明实施例通过获得用户在终端屏幕上输入的第一截取位置,并确定该第一截取位置在屏幕显示区域中的位置关系,进而将该位置关系应用至第一数据中,从而可以提取出满足相同位置关系的第二数据。 By obtaining a first position intercepting user input on the terminal screen, and to determine the relationship between a first position, taken in the screen display region, and thus the positional relationship is applied to a first embodiment of the data [0041] The present invention, thus second data can be extracted to meet the same positional relationship. 该过程无需将第一数据转化为图片格式,即可实现第二数据的提取,第二数据也不必用图片格式进行保存。 The process without the first data format into image, extracting the second data can be realized, and the second data do not have to be saved with the image format. 而且该过程不仅可以应用于浏览器,还可以应用于多种数据文件,如列表数据、网页数据、图片数据、Pdf数据、电子书等。 And the process can be applied not only to the browser, can also be applied to a variety of data files, such as list data, Web data, picture data, Pdf data, such as e-books.

附图说明 BRIEF DESCRIPTION

[0042] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 [0042] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, the accompanying drawings briefly described embodiments or the prior art needed to be used in the following embodiments will be apparent to, those of ordinary the skilled person, without any creative effort, you can also obtain other drawings based on these drawings.

[0043] 图1为本发明实施例一种数据提取方法流程图; [0043] The embodiment of FIG. 1 is a flowchart of the data extraction method of the present invention;

[0044] 图2a为本发明实施例中确定第一截取位置与终端屏幕的边界之间的第一位置关系的方法流程图; [0044] The method of FIG. 2a a first positional relationship between a first position intercepting the terminal screen boundary determining a flow diagram embodiment of the present invention;

[0045] 图2b为图2a所示实施例中确定第一位置关系的示意图; [0045] FIG. 2b a schematic view of a first embodiment in the positional relationship is determined as shown in FIG. 2A embodiment;

[0046] 图3a为本发明实施例另一种数据提取方法的流程图; [0046] FIG 3a flow diagram of another embodiment of a data extraction method of the present invention;

[0047] 图3b〜3d为本发明实施例中不同情况下用户在终端屏幕上的触点位置示意图; [0047] FIG 3b~3d a schematic diagram of a user terminal contact position on the screen where different embodiment embodiment the invention;

[0048] 图4为本发明实施例另一种数据提取方法的流程图; [0048] FIG 4 is a flowchart of another embodiment of the data extraction method of the present embodiment of the invention;

[0049] 图5a〜5h为本发明实施例中不同触摸滑动轨迹的示意图; [0049] FIG 5a~5h different touch slide track schematic embodiment of the present invention;

[0050] 图6为本发明实施例中另一种确定第一截取位置的不意图; [0050] FIG. 6 Another embodiment is not intended to determine a first position of the present invention taken;

[0051] 图7为本发明实施例中另一种确定第一截取位置的不意图; [0051] FIG. 7 another embodiment is not intended to determine a first position of the present invention taken;

[0052] 图8为本发明实施例一种数据提取装置的结构示意图; [0052] FIG. 8 a schematic structural diagram of the data extraction apparatus according to the present invention;

[0053] 图9为本发明实施例中第一位置确定单元的结构示意图。 [0053] Figure 9 a schematic structural diagram of a first embodiment of the position determining unit of the present invention. 具体实施方式 detailed description

[0054] 为了使本技术领域的人员更好地理解本发明实施例中的技术方案,并使本发明实施例的上述目的、特征和优点能够更加明显易懂,下面结合附图对本发明实施例中技术方案作进一步详细的说明。 [0054] In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the above and other objects, features and advantages more apparent embodiment of the present invention, in conjunction with the accompanying drawings of the embodiments of the present invention technical solution will be further described in detail.

[0055] 参见图1,为本发明实施例一种数据提取方法流程图。 [0055] Referring to Figure 1, a flowchart of Example A data extraction method of the present embodiment of the invention.

[0056] 该方法可以包括: [0056] The method may include:

[0057] 步骤101,确定用户在终端屏幕上选定的第一截取位置。 [0057] Step 101, determining that the user selected on the screen of the first terminal position taken.

[0058] 本发明实施例中用于提取数据的装置首先确定出用户在终端屏幕上选定的第一截取位置,该第一截取位置可以为一个、两个或多个。 [0058] The means for extracting data in the embodiment of the present invention first determines that the user selected on the screen of the first terminal position of interception, the interception of the first position may be one, two or more.

[0059] 在具体实施例中,该第一截取位置的确定可以是确定用户在终端屏幕上的触摸点位置,并将触摸点位置作为第一截取位置;或者,确定用户靠近终端屏幕的近触点,并将近触点对应在终端屏幕上的位置作为第一截取位置,该近触点与终端屏幕的距离小于等于预设距离阈值;或者,确定用户通过按键在终端屏幕上选定的第一截取位置。 [0059] In a particular embodiment, determining the first position may be taken to determine the touch point position of the user on the terminal screen, and the touch point taken as the first position; or, determining that the user terminal is close to near the touch screen point, and a position nearly corresponding to the contacts on the terminal screen as a first position, taken from the near-contact with the terminal screen is less than equal to the predetermined distance threshold; or determining a user selected key on the terminal screen through a first interception position. 具体请参见后续实施例的描述。 See the following description of specific embodiments.

[0060] 步骤102,确定第一截取位置与终端屏幕的边界之间的第一位置关系。 [0060] Step 102, determining a first positional relationship between a first boundary position, taken with the terminal screen.

[0061] 该第一位置关系用于表明第一截取位置在终端屏幕中的位置,该第一位置关系可以通过多种方式来表征,例如,可以通过第一截取位置与某边界或者某点之间的距离占终端屏幕的某一距离的比例来表示,这个距离可能是终端屏幕的长边长度、短边长度、正对角线长度或斜对角线长度等。 [0061] The relationship between a first position for indicating a first position, taken in the terminal screen, the first positional relationship can be characterized in various ways, e.g., taken by a first position and a point of a boundary or representing the distance between a distance of the terminal expressed by the ratio of the screen, this distance may be the length of the long side of the terminal screen, the length of the short side, oblique or diagonal length n diagonal length.

[0062] 步骤103,在第一数据中确定与终端屏幕的边界具有第二位置关系的第二截取位置,其中,第一数据显示在终端屏幕上,且第一位置关系与第二位置关系相同。 [0062] Step 103, determining a boundary in the first data terminal and a second screen having taken the position of the second positional relationship, wherein the first data is displayed on the terminal screen, a first positional relationship and the same relation and a second position .

[0063] 在获得上述第一位置关系后,即可将该第一位置关系应用至第一数据中,按照第一数据在终端屏幕中的显示边界(实际也就是终端屏幕的边界)在第一数据中找到具有第二位置关系的第二截取位置,该第二位置关系与第一位置关系相同。 [0063] After obtaining the first position in relation to the position relationship between a first application to the first data in accordance with the display screen of the terminal boundary of the first data (i.e. the actual boundary of the terminal screen) in the first a second position found in the data taken with a second positional relationship, the same relationship with the first position of the second positional relationship. 该计算过程为上述步骤103的逆过程。 The above-described calculation process is the reverse process of step 103.

[0064] 步骤104,根据第二截取位置在第一数据中提取第二数据。 [0064] Step 104, extracting the second data in first data according to the second intercept position.

[0065] 其中,该第二截取位置的个数与第一截取位置的个数相同,若第二截取位置为两个或两个以上,该提取第二数据时,可以提取两个或多个第二截取位置之间的数据作为第 [0065] wherein the same number of the second to the first position, taken taken position number, if the second position is taken two or more, when the second data is extracted may be extracted two or more between the second position data, taken as a first

二数据。 Second data.

[0066] 若第二截取位置为一个,则可以提取该第二截取位置与预设位置(如设定的终端屏幕的某一边界)之间的数据作为第二数据。 [0066] When the second data is taken as a position, that can be extracted position and a second preset position taken (such as a boundary of a terminal screen set) between the second data.

[0067] 在提取出第二数据后,可以输出该第二数据进行显示,也可以对该第二数据进行保存,以便于后续反复查阅该第二数据时,无需再查询第一数据,而是直接调取保存的第二数据即可。 When [0067] After extracting the second data, the second data may be output for display, can also be stored on the second data, for subsequent repeated Now the second data do not need to query a first data, but the second data can be stored directly retrieved.

[0068] 本发明实施例通过获得用户在终端屏幕上输入的第一截取位置,并确定该第一截取位置在屏幕显示区域中的位置关系,进而将该位置关系应用至第一数据中,从而可以提取出满足相同位置关系的第二数据。 By obtaining a first position intercepting user input on the terminal screen, and to determine the relationship between a first position, taken in the screen display region, and thus the positional relationship is applied to a first embodiment of the data [0068] The present invention, thus second data can be extracted to meet the same positional relationship. 该过程无需将第一数据转化为图片格式,即可实现第二数据的提取,第二数据也不必用图片格式进行保存。 The process without the first data format into image, extracting the second data can be realized, and the second data do not have to be saved with the image format. 而且该过程不仅可以应用于浏览器,还可以应用于多种数据文件,如列表数据、网页数据、图片数据、Pdf数据、电子书等。 And the process can be applied not only to the browser, can also be applied to a variety of data files, such as list data, Web data, picture data, Pdf data, such as e-books. 进一步的,通过存储提取的数据,在需要反复查阅某段局部数据时,可以提升查阅效率,提升用户体验。 Upon further by storing the extracted data, the need to repeatedly access to certain local data, can improve the efficiency review, enhance the user experience.

[0069] 在另一实施例中,确定第一截取位置与终端屏幕的边界之间的第一位置关系的过程可以如图2a〜2b所示,包括: [0069] In another embodiment, the process of determining a first positional relationship between a first position and taken boundary terminal screen may be shown in FIG 2a~2b, comprising:

[0070] 步骤201,计算第一截取位置21与第一边界22之间的第一距离,以及第一截取位置21与第二边界23之间的第二距离。 [0070] Step 201, a second distance between a first position taken 23 calculates a first distance between the first boundary 22 and 21, and the first 21 and the second boundary position taken.

[0071] 其中,第一边界22与第二边界23为终端屏幕的两相邻边界。 [0071] wherein the first boundary 22 and second boundary 23 to a boundary between two adjacent terminal screen.

[0072] 步骤202,计算第一距离与第二边界23长度的第一比例,以及第二距离与第一边界22长度的第二比例,并将第一比例及第二比例作为第一截取位置21与终端屏幕的边界之间的第一位置关系。 [0072] Step 202, a first ratio of the first distance and the length of the second boundary 23 is calculated, and the ratio of the second length of the second distance 22 from the first boundary, and the first ratio and the second ratio taken as the first position a first positional relationship between the boundary 21 and the terminal screen.

[0073] 当然该确定第一截取位置与终端屏幕边界之间的第一位置关系的方法有多种,此处仅为举例。 [0073] There are many ways of course, determines the positional relationship between a first position and a first terminal screen taken boundary, is only an example here.

[0074] 参见图3a,为本发明实施例另一种数据提取方法的流程图。 [0074] Referring to Figure 3a, a flowchart of another embodiment of the data extraction method according to the invention.

[0075] 该方法可以包括: [0075] The method may include:

[0076] 步骤301,将用户在终端屏幕上的触摸点位置确定为第一截取位置。 [0076] Step 301, the user touches the position on the screen of the terminal is determined as a first intercept position.

[0077] 如图3b〜3d所示为不同情况下用户在终端屏幕上的触点位置。 [0077] each case is shown in FIG. 3b~3d contact locations on the user terminal screen. 用户的两个手指以几乎相同的时间点接触屏幕,终端的屏幕(电容屏或电阻屏)可以根据电压的变化测出用户点击的位置获得触摸点位置,作为第一截取位置。 Two fingers of the user at almost the same point in time in contact with the screen, the screen of the terminal (resistive capacitive screen or screen) can detect the location of the user clicks the touch point is obtained according to the change in voltage as a first clipping position. 用户需要提取的数据即为该两第一截取位置之间也即如图所示的截取范围内的数据。 The user need to extract data that is first taken between the two positions i.e. the range of the data, taken as shown in FIG.

[0078] 如图3b〜3d,该终端屏幕的显示区域为包括长边和短边的矩形区域,图3b中,两个第一截取位置为沿终端长边方向的两个触摸点位置;图3c中,两个第一截取位置为沿终端短边方向的两个触摸点位置;图3d中,两个第一截取位置为沿终端显示区域的对角线方向的两个触摸点位置。 Two touch point [0078] FIG 3b~3d, the display area of ​​the terminal screen is a rectangular region including long sides and short sides, Figure 3b, the first two positions taken along the longitudinal direction of the terminal; FIG. 3c, the first two positions taken two touch point along the short side direction of the terminal; Fig. 3d, the first two positions taken two touch display diagonal direction of the region along the terminal position.

[0079] 步骤302,确定第一截取位置与终端屏幕的显示区域边界之间的第一位置关系。 [0079] Step 302, determining a first positional relationship between the display area and a first position intercepting the terminal edge of the screen.

[0080] 该步骤中,可以参照前述实施例中计算第一位置关系的方法。 [0080] In this step, the method may calculate the positional relationship between the first embodiment with reference to the foregoing embodiments.

[0081] 如图3b所示,分别计算两个第一截取位置到该终端屏幕的任一短边(如上短边)的距离,然后计算该距离与屏幕的两相对短边之间的距离的第一百分比,同样分别计算两个第一截取位置到该终端屏幕的任一长边(如左侧长边)的距离,然后计算该距离与屏幕的两相对长边之间的距离的第二百分比,将第一截取位置对应的第一、第二百分比作为第一截取位置在终端屏幕中的第一位置关系。 [0081] As shown in FIG 3B, are calculated from either short side (as short side) of the first two positions taken to the terminal screen, and then calculate the distance between the two relatively short distance from the edge of the screen first percentage, likewise calculates the first two positions taken to the terminal screen, any one of a long side (e.g., left long side) of the distance, and then calculates the distance between the screen and the distance of the two opposite longitudinal edges second percentage, the first and second percentage corresponding to a first position, taken as a first relationship in a first position intercepting the terminal screen. 同理,计算图3c中两个第一截取位置在终端屏幕中的第一位置关系。 Similarly, 3c in FIG computing a first two positions taken in a first positional relationship of the terminal screen.

[0082] 如图3d所示,分别计算两个第一截取位置到该终端屏幕对角线的距离,然后计算该距离与屏幕对角线的长度的第一百分比,然后分别计算第一截取位置到该终端屏幕任一边界的距离,并计算该距离与屏幕的两相对边界之间的距离的第二百分比,将第一截取位置对应的两个百分比作为第一截取位置在终端屏幕中的第一位置关系。 [0082] As shown in FIG. 3d, calculates the distance to the two first clipping position of the terminal screen diagonal, and then calculate the percentage of the length of the first distance from the screen diagonal, and then calculating a first respectively clipping position to a distance from the terminal screen according to any boundary, and calculating a second percentage of the distance between two opposite boundary of the distance from the screen, a first of the two percentages, taken as a first position corresponding to the position taken in the terminal the first positional relationship between the screen.

[0083] 步骤303,在第一数据中查找与终端屏幕边界具有第二位置关系的第二截取位置,该第二位置关系与第一位置关系相同。 [0083] Step 303, looking up in a first data terminal having a second positional relationship with the second edge of the screen intercepting position, the second position the same relationship with the first positional relationship.

[0084] 在获得第一截取位置对应的两个百分比后,即可将该两个百分比应用于第一数据,进而获得在第一数据中具有第二位置关系的第二截取位置,该第二位置关系与第一位置关系相同。 [0084] After obtaining the two interception positions corresponding to a first percentage, the percentage is applied to the first two data, and further taken to obtain a second position having a second positional relationship in the first data, the second the same position relationship with the first positional relationship.

[0085] 例如,图3b中,第一数据显示区域边界与终端屏幕的边界相同,则将两相对短边的距离,分别乘以第一百分比和第二百分比,获得两个距离,分别以上短边和左侧长边为起始位置即可获得该两个距离对应的一个第二截取位置,另一第二截取位置的确定方法类似。 [0085] For example, in Figure 3b, a first boundary area boundary data to display the same screen of the terminal, then the relative distance between two short sides, respectively, multiplied by a first percentage and the second percentage, is obtained from two , respectively, above and left short sides of the starting position of a long side to obtain a second of the two distances corresponding to the positions taken, similar to another method of determining a second intercept position. 图3c、3d中第二截取位置的确定方法相同。 To Figure 3c, 3d, the same method for determining a second intercept position.

[0086] 步骤304,根据第二截取位置在第一数据中提取第二数据。 [0086] Step 304, extracting the second data in first data according to the second intercept position.

[0087] 在获得两个第二截取位置后,将该两第二截取位置之间的数据进行提取,作为第二数据。 [0087] After obtaining the two second positions taken, the data is taken between the two second extracted position, as the second data.

[0088] 继而,可以对该第二数据进行输出显示,也可以进行保存,以便于后续反复查阅。 [0088] Then, the output may be displayed and to be saved, for subsequent repeated Now the second data.

[0089] 参见图4,为本发明实施例另一种数据提取方法的流程图。 [0089] Referring to Figure 4, a flowchart of another embodiment of the data extraction method according to the invention.

[0090] 该方法可以包括: [0090] The method may include:

[0091] 步骤401,获得用户在终端屏幕上的触摸滑动轨迹。 [0091] Step 401, the user touches the sliding track is obtained on the terminal screen.

[0092] 在本实施例中,确定用户在终端屏幕上的触摸点位置的过程具体可以通过步骤401〜403完成。 [0092] In the present embodiment, the process of determining the touch point position of the user on the terminal screen can be done by specific steps 401~403. 本步骤首先获得用户在终端屏幕上的触摸滑动轨迹,该轨迹的获得仍然可以通过终端的屏幕(电容屏或电阻屏)根据电压的变化测出用户点击的位置获得连续的多个触摸点位置,从而获得触摸滑动轨迹。 In this step, the user touches the sliding track is first obtained on the terminal screen, the trajectory obtained still detect the location of the user to obtain a continuous click position by the plurality of touch screen of the terminal points (resistive capacitive screen or screen) in accordance with a change in voltage, thereby obtaining a sliding track touch.

[0093] 步骤402,判断触摸滑动轨迹是否满足预设条件。 [0093] Step 402, it is determined whether the touch sliding track meets a preset condition.

[0094] 该触摸滑动轨迹的预设条件可以根据需要进行设置,例如可以设置滑动轨迹的形状等。 [0094] The preset condition touch sliding track can be set as desired, for example, may be provided in the sliding track shape.

[0095] 如图5a〜5g所示,可以设定触摸滑动轨迹的预设条件为触摸滑动轨迹为两个,且滑动的距离大于等于一定的滑动阈值。 [0095] As shown in FIG 5a~5g, touch slide track may be set as a touch preset condition the sliding track is two, and the sliding distance is not less than a certain threshold value slide. 则根据该预设条件可以执行以下判断步骤: Analyzing the following steps may be performed in accordance with the predetermined condition:

[0096] 首先,判断触摸滑动轨迹是否至少为两个。 [0096] First, it is determined whether the touch at least two sliding track.

[0097] 其次,当触摸滑动轨迹为至少两个时,判断每个触摸滑动轨迹的连续滑动距离是否大于等于滑动阈值。 [0097] Next, when at least two touch slide trajectory, determines whether or continuous sliding touch from each slide track is not less than the threshold value slide. 若是,则触摸滑动轨迹满足预设条件。 If so, then touch the sliding track meets a preset condition.

[0098] 如图5h所示,可以设定触摸滑动轨迹的预设条件为触摸滑动轨迹为封闭的曲线。 [0098] FIG. 5h, the predetermined condition may be set as a touch-touch slide track for the sliding track closed curve. 则根据该预设条件可以判断触摸滑动轨迹是否为封闭曲线,若是,则触摸滑动轨迹满足预设条件。 According to the preset condition is based on whether the touch slide track closed curve, and if yes, the touch sliding track meets a preset condition. 该封闭曲线可以是圆形、三角形、方形、椭圆形等或不规则图形。 The closed curve may be circular, triangular, square, elliptical or other irregular shape.

[0099] 在判断满足预设条件后,即可执行步骤403。 [0099] After determining preset condition is met, step 403 can be executed. 若不满足预设条件,则可以表明用户不是在进行数据提取的相关操作。 If preset condition is met, it indicates that the user can not make relevant data extraction operation.

[0100] 步骤403,获得触摸滑动轨迹的初始位置。 [0100] Step 403, obtaining an initial position of the sliding track touch.

[0101] 如图5a〜5e所示的实施例,两条触摸滑动轨迹仅用于判断是否满足预设条件,以确定是否执行提取数据的相关步骤,该两条触摸滑动轨迹几乎重合。 Embodiment illustrated in FIG. 5a~5e [0101], only two touch slide track for determining meets a preset condition to determine whether to perform the steps of extracting data, the two touch sliding track almost coincide. 在本步骤中确定触摸滑动轨迹的初始位置时,具体可以选择两条触摸滑动轨迹中第一个触摸点的任意一个,也可以选择两条触摸滑动轨迹中沿触摸滑动轨迹延伸方向上的第一个触摸点。 Determining an initial location of the touch in the sliding track of this step, specifically, can select any two of the first touch point in a touch sliding track, you can also choose a first touch on the two touch slides along a sliding track extending in the direction of the track touch points.

[0102] 如图5f〜5h所示的实施例,在确定触摸滑动轨迹的初始位置是,可以获得每一个触摸滑动轨迹中的第一个触摸点的位置作为触摸滑动轨迹的初始位置,也即可获得两个初始位置。 [0102] FIG 5f~5h embodiment illustrated embodiment, the touch is determined in the initial position of the sliding track, can be obtained for each position of the first touch point of the touch in the sliding track as the initial position of the sliding track of the touch, i.e. obtained two initial positions.

[0103] 在获得触摸滑动轨迹的初始位置后,即可将该初始位置作为用户在终端屏幕上的触摸点位置。 [0103] After obtaining the initial position of the sliding track of the touch, as the initial position to the touch point position of the user on the terminal screen. [0104] 步骤404,将触摸滑动轨迹的初始位置确定为第一截取位置。 [0104] Step 404, the initial position of the touch is determined as a first sliding track position taken.

[0105] 如图5a〜5e所示,根据两条触摸滑动轨迹确定出的初始位置为一个,从而可获得一个第一截取位置,如图5f〜5h所示,两条触摸滑动轨迹可确定出两个初始位置,从而获得两个第一截取位置。 [0105] As shown in FIG 5a~5e, two touch sliding track according to the determined initial position a, whereby is obtained a first intercept position, as shown in FIG 5f~5h, two touch slide track can be determined two initial position, so as to obtain a first two positions taken.

[0106] 步骤405,确定第一截取位置与终端屏幕的显示区域边界之间的第一位置关系。 [0106] Step 405, determining a first positional relationship between the display area and a first position intercepting the terminal edge of the screen.

[0107] 无论上步骤中获得一个第一截取位置还是两个第一截取位置,均可以按照前述实施例步骤302的方法获得第一位置关系。 Method [0107] Whether a first step of obtaining a first intercept position or two positions taken, can be implemented in accordance with the procedure of Example 302 to obtain the first positional relationship.

[0108] 步骤406,在第一数据中确定与所述终端屏幕的边界具有第二位置关系的第二截取位置。 [0108] Step 406, determining a first boundary of the data terminal with a second screen having taken the position of the second positional relationship. 其中,第一位置关系与第二位置关系相同。 Wherein the same first positional relationship and the second positional relationship.

[0109] 该步骤与前述实施例步骤303类似。 [0109] This step is similar to the previous embodiment, step 303. 第二截取位置的个数与第一截取位置的个数相对应。 The second number is the number clipping position to the first position corresponds taken.

[0110] 步骤407,根据第二截取位置在第一数据中提取第二数据。 [0110] Step 407, extracting the second data in first data according to the second intercept position.

[0111] 在如图5f〜5h所示的实施例中,可以提取两第二截取位置之间的数据作为第二数据。 [0111] In the embodiment illustrated in FIG. 5f~5h, the data can be extracted between the two second data, taken as the second position.

[0112] 在如图5a〜5e所示的实施例中,由于只有一个第二截取位置,在提取第二数据时,可以提取该第二截取位置与预先设定的某一位置之间的数据作为第二数据。 [0112] In the embodiment illustrated in FIG. 5a~5e, since only a second intercept position, in extracting the second data, the data can be extracted between the interception position and a second predetermined position as the second data.

[0113] 例如,如图5a、5b所示,当触摸滑动轨迹由左向右延伸时,可以提取上边界与第二截取位置之间的数据作为第二数据。 [0113] For example, FIG. 5a, 5b, when the touch slide track extending from left to right, data can be extracted between the upper boundary and the second catch position as the second data. 如图5c所示,当触摸滑动轨迹由右向左延伸时,可以提取下边界与第二截取位置之间的数据作为第二数据。 As shown in FIG. 5C, when the touch slide track extending from right to left, the data can be extracted between the lower boundary of the second catch position as the second data. 如图5d所示,当触摸滑动轨迹由上向下延伸时,可以提取右边界与第二截取位置之间的数据作为第二数据。 As shown in FIG. 5D, when the touch extends downwardly from the sliding track, the data can be extracted between the right border and a second position, taken as the second data. 如图5e所示,当触摸滑动轨迹由下向上延伸时,可以提取左边界与第二截取位置之间的数据作为第二数据。 FIG. 5e, when the touch slide track extending from the bottom up, the data can be extracted between the left border and a second position, taken as the second data.

[0114] 当然,在只有一个第二截取位置时,第二数据的提取范围可以根据需要设置其他规则,不局限于以上方式。 [0114] Of course, when only a second intercept position, the second data extraction range may be set according to need other rules, it is not limited to the above embodiment.

[0115] 在本发明的另一实施例中,该确定用户在终端屏幕上的第一截取位置的方法具体还可以是:确定用户靠近终端屏幕的近触点,并将该近触点对应在终端屏幕上的位置作为第一截取位置,近触点与终端屏幕的距离小于等于预设距离阈值。 Method [0115] In another embodiment of the present invention, the user first determines the position taken on the terminal screen may also be specifically: determining a user close to the screen near the contact terminal, and corresponds to the near contact position on the screen of the terminal as a first intercept position, contact and terminal screen near distance is less than equal to the predetermined distance threshold.

[0116] 本实施例中,数据提取装置可以通过接近传感器或光感传感器等获得第一截取位置。 [0116] In this embodiment, a first data extracting means may obtain the position taken by the proximity sensor or an optical sensor sensing the like.

[0117] 如图6所示,当传感器感应用户的手指进入测量范围内时,获取该用户手指的近触点在终端屏幕上的位置,并将该位置作为第一截取位置。 [0117] As shown in FIG 6, when the sensor senses a user's finger enters the measurement range, acquires a position near the user's finger contacts on the terminal screen, and this position is taken as the first position. 其中,近触点靠近终端屏幕,且与终端屏幕的距离小于等于预设距离阈值,上述测量范围也即小于等于该距离阈值。 Wherein, nearly close contact terminal screen, and the distance from the terminal screen is less than equal to the predetermined distance threshold, i.e., the above-described measuring range smaller than or equal to the threshold distance. 当用户手指再次进入测量范围时,获取第二个第一截取位置。 When the user re-enters the measurement range of the finger, the second acquiring a first position taken.

[0118] 在确定第一截取位置后,即可按照前述实施例中的步骤,确定所述第一截取位置与所述终端屏幕的显示区域边界之间的第一位置关系;在第一数据中查找与所述第一数据的显示区域边界具有第二位置关系的第二截取位置,第二位置关系与第一位置关系相同;然后根据第二截取位置在第一数据中提取第二数据。 [0118] After determining a first intercept position, according to the steps in the embodiments, determining a first positional relationship between a first position intercepting the terminal screen display region boundary; in the first data Find the first display area boundary data having a second positional relationship between the second position taken, the same second positional relationship with the first positional relationship; then extracted second data in first data according to the second interception position. 该过程与前述实施例类似。 This process is similar to the foregoing embodiments.

[0119] 在在本发明的另一实施例中,该确定用户在终端屏幕上的第一截取位置的方法具体还可以是:确定用户通过按键在终端屏幕上选定的第一截取位置。 Method [0119] In another embodiment of the present invention, the user first determines the position taken on the terminal screen may also be specifically: determining the key selected by the user on the terminal screen of the first clipping position. [0120] 如图7所示,可以首先设定一个停留阈值,如果按键的时间大于等于设定的停留阈值则确定执行数据提取的相关步骤,然后还可以设定按键的操作范围和每一次按键的步长,通过按键时间与按键步长的倍数关系,以及按键的操作范围,即可获知用户通过按键确定的查阅位置,进而将该查阅位置作为第一截取位置。 [0120] As shown in FIG. 7, step a first set associated dwell threshold, and if the key is greater than the residence time is equal to the set threshold value determines to perform data extraction, and can also set the operating range of the keys and every keystroke step size, time and key through the key steps of the multiple relationships, and keys of the operating range, the user can be known by determining the key inspection position, and thus the position taken as the first inspection position.

[0121] 在确定第一截取位置后,即可按照前述实施例中的步骤,确定所述第一截取位置与所述终端屏幕的显示区域边界之间的第一位置关系;在第一数据中查找与终端的屏幕边界具有第二位置关系的第二截取位置,第二位置关系与第一位置关系相同;然后根据所述第二截取位置在所述第一数据中提取第二数据。 [0121] After determining a first intercept position, according to the steps in the embodiments, determining a first positional relationship between a first position intercepting the terminal screen display region boundary; in the first data Find screen border and a second terminal having taken the position of the second positional relationship, the same relationship with the first position of the second positional relationship; then extracted second data in the first data in accordance with said second intercepting position. 该过程与前述实施例类似。 This process is similar to the foregoing embodiments.

[0122] 以上各实施例中,第一截取位置可以是两个或多个,也可以是一个,当第一截取位置为一个时,对应获得的第二截取位置也为一个,此时根据第二截取位置在第一数据中提取第二数据时,可以是提取该第一数据中的某一显示区域边界到该第二截取位置之间的数据作为第二数据。 Embodiment, the first position may be taken two or more, may be one, when the first position is taken a second position corresponding to the obtained also taken as a, the first case in accordance with [0122] the above embodiments second position taken in the first data to extract the second data, the data may be extracted in a first display area data to the boundary between the second position taken as the second data.

[0123] 本发明实施例可以应用于智能终端上所有需要通过多屏进行显示的数据,包括:列表数据、网页数据、图片数据、Pdf数据、电子书等,通过截取数据范围,可以方便的将截取的数据形成单独的界面,并可以反复对这些数据读取。 [0123] Example embodiments of the present invention can be applied to all the data required by the multi-screen display on the intelligent terminal, comprising: a list of data, Web data, image data, the Pdf data, e-books, etc., by intercepting the data range, can easily be taken separately formed interface data, and these data can be read repeatedly.

[0124] 以上是对本发明方法实施例的描述,下面对实现上述方法的装置进行介绍。 [0124] The above is description of embodiments of the method of the present invention, the following means for achieving the above method will be described.

[0125] 参见图8,为本发明实施例一种数据提取装置的结构示意图。 [0125] Referring to Figure 8, a schematic structural diagram of the data extraction device according to the present invention.

[0126] 该装置可以包括: [0126] The apparatus may comprise:

[0127] 第一位置确定单元801,用于确定用户在终端屏幕上选定的第一截取位置。 [0127] a first position determining means 801 for determining a user selected on the screen of the first terminal position taken.

[0128] 位置关系确定单元802,用于确定所述第一截取位置与所述终端屏幕的显示区域边界之间的第一位置关系。 [0128] 802 positional relationship determining means for determining a first positional relationship between the display area of ​​the boundary between the first position and intercept the terminal screen.

[0129] 第二位置确定单元803,用于在第一数据中确定与所述终端屏幕的边界具有第二位置关系的第二截取位置,其中,所述第一数据显示在所述终端屏幕上,且所述第一位置关系与所述第二位置关系相同。 [0129] The second position determining means 803 for determining a first data terminal to the boundary of the screen having a second positional relationship between the second catch position, wherein the first data is displayed on the terminal screen and the first positional relationship and the second positional relationship is the same.

[0130] 数据提取单元804,用于根据所述第二截取位置在所述第一数据中提取第二数据。 [0130] The data extraction unit 804 for extracting a second data in the first data in accordance with said second intercepting position.

[0131] 该装置通过上述单元获得用户在终端屏幕上输入的第一截取位置,并确定该第一截取位置在屏幕显示区域中的位置关系,进而将该位置关系应用至第一数据中,从而可以提取出满足相同位置关系的第二数据。 [0131] The above-described device is obtained by means of first intercepting position of the user input on the terminal screen, and to determine the relationship between a first position, taken in the screen display region, and thus the positional relationship is applied to the first data, thus second data can be extracted to meet the same positional relationship. 该装置无需将第一数据转化为图片格式,即可实现第二数据的提取,第二数据也不必用图片格式进行保存。 The device does not need the image data into a first format, to realize the extracted second data, the second data do not have to be saved with the image format. 而且该过程不仅可以应用于浏览器,还可以应用于多种数据文件,如列表数据、网页数据、图片数据、Pdf数据、电子书等。 And the process can be applied not only to the browser, can also be applied to a variety of data files, such as list data, Web data, picture data, Pdf data, such as e-books.

[0132] 在本发明另一实施例中,该第一位置确定单元,具体可以用于确定用户在所述终端屏幕上的触摸点位置,并将所述触摸点位置作为所述第一截取位置;或者,确定用户靠近所述终端屏幕的近触点,并将所述近触点对应在所述终端屏幕上的位置作为所述第一截取位置,所述近触点与所述终端屏幕的距离小于等于预设距离阈值;或者,确定用户通过按键在所述终端屏幕上选定的第一截取位置。 [0132] In another embodiment of the present invention, the first location determining means may specifically be used to determine the touch point position of the user on the terminal screen, and the position of the touch point taken as the first position ; or, determining that the user is close to the near-contact terminal screen, and corresponds to the near-contact position on the screen of the terminal as the first position intercepting the near contact with the terminal screen distance equal to the distance is smaller than a preset threshold; or determining the key selected by the user on the screen of the first terminal position taken.

[0133] 在本发明的另一实施例中,如图9所示,该第一位置确定单元801又可以包括: [0133] In another embodiment of the present invention, shown in Figure 9, the first location determining unit 801 may further comprises:

[0134] 轨迹获取子单元901,用于在所述第一位置确定单元将所述用户在所述终端屏幕上的触摸点位置确定为所述第一截取位置之前,获得用户在所述终端屏幕上的触摸滑动轨迹;[0135] 位置确定子单元902,用于当所述触摸滑动轨迹满足预设条件时,获得所述触摸滑动轨迹的初始位置作为用户在所述终端屏幕上的触摸点位置。 [0134] locus acquisition sub-unit 901, the unit prior to the user touch position on the screen of the terminal is determined as the first determined position taken in the first position for obtaining the user terminal screen touch sliding track; [0135] location determining sub-unit 902, for sliding track when the touch preset condition is satisfied, to obtain an initial position of the sliding track as the touch position touched by the user on the terminal screen, .

[0136] 该预设条件可以是:所述触摸滑动轨迹至少为两个,且每个所述触摸滑动轨迹的连续滑动距离大于等于滑动阈值;也还可以是所述触摸滑动轨迹为封闭曲线。 [0136] The preset condition may be: the touch sliding track at least two, and continuous sliding distance of the sliding track touch each slide is greater than the threshold value equal; may also touch the sliding track is a closed curve.

[0137] 在本发明另一实施例中,位置关系确定单元可以包括: [0137] In another embodiment of the present invention, the positional relationship determination unit may include:

[0138] 第一计算子单元,用于计算所述第一截取位置与第一边界之间的第一距离,以及所述第一截取位置与第二边界之间的第二距离,其中,所述第一边界与所述第二边界为所述终端屏幕的两相邻边界; [0138] a first calculating sub-unit, a second distance between the first calculated distance between the first position and the first boundary taken, and the first intercepting position and the second boundary, wherein the said first boundary and the second boundary of the two adjacent border terminal screen;

[0139] 第二计算子单元,用于计算所述第一距离与所述第二边界长度的第一比例,以及所述第二距离与所述第一边界长度的第二比例,并将所述第一比例及所述第二比例作为所述第一截取位置与所述终端屏幕的边界之间的第一位置关系。 [0139] The second calculating sub-unit, for calculating a first ratio of the first distance and the second boundary length, and a second ratio of the second length distance from the first boundary, and the said first ratio and the second ratio, as the positional relationship between the first position and the boundary of the screen of the first terminal taken.

[0140] 本发明实施例还提供了一种数据提取装置,包括数据总线,存储器和处理器,其中,存储器中存储有一段运行程序代码,处理器通过数据总线获取存储器中的程序代码,并执行以下步骤: [0140] The present invention further provides a data extraction means, including a data bus, a memory and a processor, wherein the memory section stores a running program code, the processor obtains the program code memory via the data bus, and performing the following steps:

[0141] 确定用户在终端屏幕上选定的第一截取位置; [0141] determined that the user selected on the screen of the first terminal position of interception;

[0142] 确定所述第一截取位置与所述终端屏幕的边界之间的第一位置关系; [0142] determining a first positional relationship between the boundary of the first clipping position of the terminal screen;

[0143] 在第一数据中确定与所述终端屏幕的边界具有第二位置关系的第二截取位置,其中,所述第一数据显示在所述终端屏幕上,且所述第一位置关系与所述第二位置关系相同; [0143] determining a first boundary of the data terminal with a second screen having a second positional relationship between the position taken, wherein the first data is displayed on the terminal screen, and the first positional relationship and the same second positional relationship;

[0144] 根据所述第二截取位置在所述第一数据中提取第二数据。 [0144] extracting the second data in the first data in accordance with said second intercepting position.

[0145] 本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。 [0145] Those of ordinary skill in the art may be aware, incorporated herein disclosed units and algorithm steps described in the respective exemplary embodiments, it is possible to incorporate electronic hardware, computer software and electronic hardware, or be implemented. 这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。 Whether these functions are performed by hardware or software depends upon the particular application and design constraints of the technical solutions. 专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。 Professional technical staff may use different methods for each specific application to implement the described functionality, but such implementation should not be considered outside the scope of the present invention.

[0146] 所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 [0146] Those skilled in the art may clearly understand that, for convenience and brevity of description, specific working process of the foregoing system, apparatus, and unit may refer to the corresponding process in the foregoing method embodiments, not described herein again .

[0147] 在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。 [0147] In several embodiments provided herein present embodiment, it should be understood that the system, apparatus and method disclosed may be implemented in other manners. 例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。 For example, the described apparatus embodiments are merely illustrative of, for example, the unit division is merely logical function division, there may be other division in actual implementation, for example, a plurality of units or components may be combined or It can be integrated into another system, or some features may be ignored or not performed. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be through some interface, device, or indirect coupling or communication connection unit, may be electrical, mechanical, or other forms.

[0148] 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0148] The unit described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in one place, or may be distributed to a plurality of networks unit. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0149] 另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 [0149] Additionally, functional units may be integrated in various embodiments of the present invention in a processing unit, separate units may be physically present, may be two or more units are integrated into one unit. [0150] 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。 [0150] If the function is implemented as a separate product sold or used in the form of a software functional unit may be stored in a computer-readable storage medium. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。 Based on such understanding, the technical solutions of the present invention per se or contributing to the prior art or part of the technical solutions may be embodied in a software product, which computer software product is stored in a storage medium, comprising several instructions that enable a computer device (may be a personal computer, a server, or network device) or (processor) to perform all or part of the steps of the methods of the various embodiments of the present invention. 而前述的存储介质包括:U盘、移动硬盘、只读存储器(R0M,Read-Only Memory)、随机存取存储器(RAM, Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium includes: U disk, mobile hard disk, a read-only memory (R0M, Read-Only Memory), a random access various memories (RAM, Random Access Memory), a magnetic disk, or an optical medium can store program codes .

[0151] 以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [0151] The above are only specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention is disclosed, variations may readily occur or Alternatively, it shall fall within the protection scope of the present invention. 因此,本发明的保护范围应所述以权利要求的保护范围为准。 Accordingly, the scope of the present invention should be in the scope of the claims and their equivalents.

Claims (12)

  1. 1.一种数据提取方法,其特征在于,包括: 确定用户在终端屏幕上选定的第一截取位置; 确定所述第一截取位置与所述终端屏幕的边界之间的第一位置关系; 在第一数据中确定与所述终端屏幕的边界具有第二位置关系的第二截取位置,其中,所述第一数据显示在所述终端屏幕上,且所述第一位置关系与所述第二位置关系相同; 根据所述第二截取位置在所述第一数据中提取第二数据。 A data extraction method comprising: determining a user selected on the screen of the first terminal position taken; positional relationship between a first boundary of said first clipping position is determined with the terminal screen; determining a boundary in the first data and the second terminal screen having a second positional relationship between the position taken, wherein the first data is displayed on the terminal screen, and the first positional relationship with the first two identical positional relationship; extracting the second data in the first data in accordance with said second intercepting position.
  2. 2.根据权利要求1所述的方法,其特征在于,所述确定用户在终端屏幕上选定的第一截取位置,包括以下至少一种: 确定用户在所述终端屏幕上的触摸点位置,并将所述触摸点位置作为所述第一截取位置;或者, 确定用户靠近所述终端屏幕的近触点,并将所述近触点对应在所述终端屏幕上的位置作为所述第一截取位置,所述近触点与所述终端屏幕的距离小于等于预设距离阈值;或者,确定用户通过按键在所述终端屏幕上选定的第一截取位置。 2. The method according to claim 1, wherein said determining a user selected on the terminal screen intercepting a first position, comprising at least one of: determining a touch point position of the user on the terminal screen, and the touch point position taken as the first position; or, determining that the user close contact near the terminal screen, and a corresponding position on the screen of the terminal as the first contact near intercepting position, the closer contact with the terminal screen is less than equal to the predetermined distance threshold; or determining the key selected by the user on the screen of the first terminal position taken.
  3. 3.根据权利要求2所述的方法,其特征在于,所述确定用户在所述终端屏幕上的触摸点位置,包括: 获得用户在所述终端屏幕上的触摸滑动轨迹; 当所述触摸滑动轨迹满足预设条件时,获得所述触摸滑动轨迹的初始位置作为用户在所述终端屏幕上的触摸点位置。 3. The method according to claim 2, wherein said determining the touch point position of the user on the terminal screen, comprising: obtaining user touch slide track on the terminal screen; when the touch slide when the locus satisfies the preset condition to obtain the initial position of the sliding track touch as a touch point position of a user on the terminal screen.
  4. 4.根据权利要求3所述的方法,其特征在于,所述预设条件包括: 所述触摸滑动轨迹至少为两个,且每个所述触摸滑动轨迹的连续滑动距离大于等于滑动阈值。 4. The method according to claim 3, wherein said predetermined condition comprises: a sliding track touch at least two, and continuous sliding distance of the sliding track touch each slide is greater than the threshold value equal.
  5. 5.根据权利要求3所述的方法,其特征在于,所述预设条件包括: 所述触摸滑动轨迹为封闭曲线。 5. The method according to claim 3, wherein said predetermined condition comprises: the touch sliding track is a closed curve.
  6. 6.根据要求I至5中任意一项所述的方法,其特征在于,所述确定所述第一截取位置与所述终端屏幕的边界之间的第一位置关系,包括: 计算所述第一截取位置与第一边界之间的第一距离,以及所述第一截取位置与第二边界之间的第二距离,其中,所述第一边界与所述第二边界为所述终端屏幕的两相邻边界; 计算所述第一距离与所述第二边界长度的第一比例,以及所述第二距离与所述第一边界长度的第二比例,并将所述第一比例及所述第二比例作为所述第一截取位置与所述终端屏幕的边界之间的第一位置关系。 The method according to any one of claims I to, wherein said determining a first positional relationship between the boundary of the first intercepting position and the terminal screen, comprising: calculating a first a second distance between a first distance between the first boundary position and taken, and the first intercepting position and the second boundary, wherein the first boundary and the second boundary for the terminal screen two adjacent boundary; calculating a first ratio of the first distance and the second boundary length and the second second distance from the first boundary length ratio and the first ratio and the second ratio as said first positional relationship between the position of the boundary of the screen of the first terminal taken.
  7. 7.一种数据提取装置,其特征在于,包括: 第一位置确定单元,用于确定用户在终端屏幕上选定的第一截取位置; 位置关系确定单元,用于确定所述第一截取位置与所述终端屏幕的边界之间的第一位置关系; 第二位置确定单元,用于在第一数据中确定与所述终端屏幕的边界具有第二位置关系的第二截取位置,其中,所述第一数据显示在所述终端屏幕上,且所述第一位置关系与所述第二位置关系相同; 数据提取单元,用于根据所述第二截取位置在所述第一数据中提取第二数据。 A data extraction device comprising: a first position determination means for determining a user selected on the screen of the first terminal position taken; positional relationship determining means for determining a position of said first interception a first positional relationship between the boundary of the screen of the terminal; and a second position determining means for determining a boundary in the first data and the second terminal screen having taken the position of the second positional relationship, wherein, the said first data is displayed on the terminal screen, a first positional relationship and the second positional relationship with the same; data extracting unit for extracting the first to the second position taken in the first data second data.
  8. 8.根据权利要求7所述的装置,其特征在于,所述第一位置确定单元,具体用于确定用户在所述终端屏幕上的触摸点位置,并将所述触摸点位置作为所述第一截取位置;或者,确定用户靠近所述终端屏幕的近触点,并将所述近触点对应在所述终端屏幕上的位置作为所述第一截取位置,所述近触点与所述终端屏幕的距离小于等于预设距离阈值;或者,确定用户通过按键在所述终端屏幕上选定的第一截取位置。 8. The apparatus according to claim 7, wherein said first position determination means for specifically determining the touch point of the user on the terminal screen, and the position of the touch point as the first an interception position; or, determining that the user close contact near the terminal screen, and corresponds to the near-contact position on the screen of the terminal as the first position intercepting the near contact with the from the terminal screen is equal to the predetermined distance is less than a threshold; or determining the key selected by the user on the screen of the first terminal position taken.
  9. 9.根据权利要求8所述的装置,其特征在于,所述第一位置确定单元包括: 轨迹获取子单元,用于在所述第一位置确定单元将所述用户在所述终端屏幕上的触摸点位置确定为所述第一截取位置之前,获得用户在所述终端屏幕上的触摸滑动轨迹; 位置确定子单元,用于当所述触摸滑动轨迹满足预设条件时,获得所述触摸滑动轨迹的初始位置作为用户在所述终端屏幕上的触摸点位置。 9. The apparatus according to claim 8, wherein the first location determining unit comprises: a trajectory obtaining sub-unit, for determining the first position of the user unit on the terminal screen, prior to determining the touch point taken as the first position, the user touches the sliding track is obtained on the terminal screen; position determination sub-unit, configured to, when the touch sliding track satisfies a preset condition to obtain the touch slide the initial position trajectory in the touch point as the user on the terminal screen.
  10. 10.根据权利要求9所述的装置,其特征在于,所述预设条件包括: 所述触摸滑动轨迹至少为两个,且每个所述触摸滑动轨迹的连续滑动距离大于等于滑动阈值。 10. The apparatus according to claim 9, wherein said predetermined condition comprises: a sliding track touch at least two, and continuous sliding distance of the sliding track touch each slide is greater than the threshold value equal.
  11. 11.根据权利要求9所述的装置,其特征在于,所述预设条件包括: 所述触摸滑动轨迹为封闭曲线。 11. The apparatus according to claim 9, wherein said predetermined condition comprises: the touch sliding track is a closed curve.
  12. 12.根据要求7至11中任意一项所述的装置,其特征在于,所述位置关系确定单元包括: 第一计算子单元,用于计算所述第一截取位置与第一边界之间的第一距离,以及所述第一截取位置与第二边界之间的第二距离,其中,所述第一边界与所述第二边界为所述终端屏幕的两相邻边界; 第二计算子单元,用于计算所述第一距离与所述第二边界长度的第一比例,以及所述第二距离与所述第一边界长度的第二比例,并将所述第一比例及所述第二比例作为所述第一截取位置与所述终端屏幕的边界之间的第一位置关系。 12. The device according to any of claims 7 to 11, wherein said positional relationship determining unit comprises: a first calculating subunit, configured to calculate the first taken between the first position and the boundary a first distance and a second distance between the first position and the second boundary taken, wherein the first boundary and the second boundary is a boundary of the two adjacent screen of the terminal; a second calculating sub unit, a first ratio of the first distance and the second means for calculating a length of a boundary, the second distance and the first and second boundary length ratio and the first ratio and the a second proportional relationship between the first position and the boundary position of the screen of the first terminal taken.
CN 201410026372 2014-01-20 2014-01-20 A data extraction method and apparatus CN103744609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410026372 CN103744609B (en) 2014-01-20 2014-01-20 A data extraction method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410026372 CN103744609B (en) 2014-01-20 2014-01-20 A data extraction method and apparatus

Publications (2)

Publication Number Publication Date
CN103744609A true true CN103744609A (en) 2014-04-23
CN103744609B CN103744609B (en) 2018-10-19

Family

ID=50501630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410026372 CN103744609B (en) 2014-01-20 2014-01-20 A data extraction method and apparatus

Country Status (1)

Country Link
CN (1) CN103744609B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526525A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 Screen capture method and device, mobile terminal and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419617A (en) * 2008-12-10 2009-04-29 深圳市迅雷网络技术有限公司 Method and apparatus for determining web page object
CN101441713A (en) * 2007-11-19 2009-05-27 汉王科技股份有限公司 Optical character recognition method and apparatus of PDF document
CN102023736A (en) * 2009-09-22 2011-04-20 联想(北京)有限公司 Method and device for storing position of point
CN102624770A (en) * 2011-06-24 2012-08-01 匡晓明 Information extraction method and extraction information network storage management system based on cloud calculation
CN102880420A (en) * 2012-09-19 2013-01-16 广州视睿电子科技有限公司 Method and system based on touch screen for starting and implementing area selection operation
CN102929524A (en) * 2012-09-20 2013-02-13 东莞宇龙通信科技有限公司 Page content selecting method and device
CN102999182A (en) * 2011-09-19 2013-03-27 宝德科技股份有限公司 Wireless transmission method of stylus with wireless storage and forwarding capability and system thereof
CN103246474A (en) * 2013-04-22 2013-08-14 富泰华工业(深圳)有限公司 Electronic device with touch screen and page content display method thereof
CN103472999A (en) * 2013-09-30 2013-12-25 宇龙计算机通信科技(深圳)有限公司 Screenshot method and mobile terminal thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441713A (en) * 2007-11-19 2009-05-27 汉王科技股份有限公司 Optical character recognition method and apparatus of PDF document
CN101419617A (en) * 2008-12-10 2009-04-29 深圳市迅雷网络技术有限公司 Method and apparatus for determining web page object
CN102023736A (en) * 2009-09-22 2011-04-20 联想(北京)有限公司 Method and device for storing position of point
CN102624770A (en) * 2011-06-24 2012-08-01 匡晓明 Information extraction method and extraction information network storage management system based on cloud calculation
CN102999182A (en) * 2011-09-19 2013-03-27 宝德科技股份有限公司 Wireless transmission method of stylus with wireless storage and forwarding capability and system thereof
CN102880420A (en) * 2012-09-19 2013-01-16 广州视睿电子科技有限公司 Method and system based on touch screen for starting and implementing area selection operation
CN102929524A (en) * 2012-09-20 2013-02-13 东莞宇龙通信科技有限公司 Page content selecting method and device
CN103246474A (en) * 2013-04-22 2013-08-14 富泰华工业(深圳)有限公司 Electronic device with touch screen and page content display method thereof
CN103472999A (en) * 2013-09-30 2013-12-25 宇龙计算机通信科技(深圳)有限公司 Screenshot method and mobile terminal thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526525A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 Screen capture method and device, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date Type
CN103744609B (en) 2018-10-19 grant

Similar Documents

Publication Publication Date Title
US20130007606A1 (en) Text deletion
US20130047100A1 (en) Link Disambiguation For Touch Screens
US20120159402A1 (en) Method and apparatus for providing different user interface effects for different implementation characteristics of a touch event
JP2011134271A (en) Information processor, information processing method, and program
US20130080910A1 (en) Dynamic visualization of page element access rates in a web application
US20110248939A1 (en) Apparatus and method for sensing touch
CN103809896A (en) Page switching method and device
CN102662525A (en) Method and terminal for carrying out screenshot operation through touch screen
CN102221931A (en) Touch electronic device and function chart shifting method thereof
CN103473012A (en) Screen capturing method, device and terminal equipment
US20140089824A1 (en) Systems And Methods For Dynamically Altering A User Interface Based On User Interface Actions
US20120062489A1 (en) Gesture-based object manipulation methods and devices
US20130314337A1 (en) Electronic device and handwritten document creation method
CN104102441A (en) Menuitem executing method and device
CN103713848A (en) Mobile terminal and operation method thereof
CN103793176A (en) Method and device for fast switching between application programs
US20100302188A1 (en) Electronic device, method for viewing desktop thereof, and computer-readable medium
CN103365599A (en) Mobile terminal operation optimizing method and device based on screen sliding track
US20150052431A1 (en) Techniques for image-based search using touch controls
CN102460364A (en) User interface methods providing continuous zoom functionality
CN102789332A (en) Method of identifying palm area for touch panel and method for updating the identified palm area
CN104360734A (en) Terminal operating method
US20150046871A1 (en) System and method for re-sizing and re-positioning application windows in a touch-based computing device
JP2011165182A (en) Method and apparatus for selecting hyperlink
US20140210742A1 (en) Emulating pressure sensitivity on multi-touch devices

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
TA01
GR01