Movatterモバイル変換


[0]ホーム

URL:


CN106201201B - View adjustment method and system - Google Patents

View adjustment method and system
Download PDF

Info

Publication number
CN106201201B
CN106201201BCN201610531917.3ACN201610531917ACN106201201BCN 106201201 BCN106201201 BCN 106201201BCN 201610531917 ACN201610531917 ACN 201610531917ACN 106201201 BCN106201201 BCN 106201201B
Authority
CN
China
Prior art keywords
view
display
angle
minimum circumscribed
circumscribed rectangle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610531917.3A
Other languages
Chinese (zh)
Other versions
CN106201201A (en
Inventor
黄宝华
梁泰琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co LtdfiledCriticalGuangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201610531917.3ApriorityCriticalpatent/CN106201201B/en
Publication of CN106201201ApublicationCriticalpatent/CN106201201A/en
Priority to PCT/CN2016/113106prioritypatent/WO2018006566A1/en
Application grantedgrantedCritical
Publication of CN106201201BpublicationCriticalpatent/CN106201201B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明涉及一种视图调整方法和系统。上述视图调整方法,包括如下步骤:在显示设备显示视图过程中,识别视图中视图元素的轮廓;获取所述视图元素的轮廓的最小外接矩形;计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。本发明提供的视图调整方法和系统,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。

The invention relates to a view adjustment method and system. The above view adjustment method includes the following steps: during the process of displaying the view on the display device, identifying the outline of the view element in the view; obtaining the minimum circumscribing rectangle of the outline of the view element; calculating the minimum circumscribing rectangle and the display interface of the display device The angle between the preset reference graphics; adjust the display angle of the view on the display interface according to the angle, and adjust the view to the target direction. The view adjustment method and system provided by the present invention can identify the outline of the view elements in the view during the process of displaying the view on the display device, obtain the minimum circumscribing rectangle of the above outline, and then calculate the angle between the minimum circumscribing rectangle and the preset reference figure , so as to adjust the display angle of the view on the display interface to adjust the view to the target direction, which has high adjustment efficiency on the basis of ensuring the display effect of the view.

Description

Translated fromChinese
视图调整方法和系统View adjustment method and system

技术领域technical field

本发明涉及多媒体显示技术领域,特别是涉及一种视图调整方法和系统。The invention relates to the technical field of multimedia display, in particular to a view adjustment method and system.

背景技术Background technique

随着多媒体技术的高速发展,人们在工作和生活中使用多媒体技术获取视图资料的需求越来越高。例如,课堂上,老师经常使用扫描仪对试卷或者课本等视图资料进行扫描处理后传输至大屏显示设备进行显示;会议时,发言人将纸质报告通过拍摄等方式进行获取后,实时传输至相关显示设备进行显示,以便参与者可以查看相应的报告内容。With the high-speed development of multimedia technology, people's demand for using multimedia technology to obtain view data in work and life is getting higher and higher. For example, in the classroom, teachers often use scanners to scan and process visual materials such as test papers or textbooks, and then transmit them to large-screen display devices for display; during meetings, speakers obtain paper reports by shooting and other means, and transmit them to Relevant display devices are displayed so that participants can view the corresponding report content.

在显示设备显示各类视图资料对应的视图过程中,为了避免相关视图在显示界面中显示位置出现偏差(如倒置、左倾或者右倾等),通常需要在图像捕获设备扫描或者拍照时调整视图资料的摆放位置,或在视图显示过程中根据显示偏差实时调整视图资料的位置。When the display device displays the views corresponding to various view materials, in order to avoid the deviation of the display position of the relevant views on the display interface (such as inversion, left tilt or right tilt, etc.), it is usually necessary to adjust the view data when the image capture device scans or takes pictures. Position, or adjust the position of view data in real time according to the display deviation during view display.

上述技术方案,虽然可以一定程度上保证相应视图的显示效果,然而视图资料的调整操作较为复杂,容易导致调整效率低。Although the above technical solution can guarantee the display effect of the corresponding view to a certain extent, the adjustment operation of the view data is relatively complicated, which easily leads to low adjustment efficiency.

发明内容Contents of the invention

基于此,有必要针对传统方案容易导致调整效率低的技术问题,提供一种视图调整方法和系统。Based on this, it is necessary to provide a view adjustment method and system for the technical problem that the traditional solution easily leads to low adjustment efficiency.

一种视图调整方法,包括如下步骤:A view adjustment method, comprising the steps of:

在显示设备显示视图过程中,识别视图中视图元素的轮廓;During the display device displaying the view, identify the outline of the view element in the view;

获取所述视图元素的轮廓的最小外接矩形;Obtain the minimum bounding rectangle of the outline of the view element;

计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;Calculating the angle between the minimum circumscribed rectangle and the preset reference graphics on the display interface of the display device;

根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。The display angle of the view on the display interface is adjusted according to the angle, and the view is adjusted to the target direction.

一种视图调整系统,包括:A view adjustment system comprising:

识别模块,用于在显示设备显示视图过程中,识别视图中视图元素的轮廓;The identification module is used to identify the outline of the view element in the view during the process of displaying the view by the display device;

获取模块,用于获取所述视图元素的轮廓的最小外接矩形;An acquisition module, configured to acquire the minimum bounding rectangle of the outline of the view element;

计算模块,用于计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;A calculation module, configured to calculate the angle between the minimum circumscribed rectangle and the preset reference figure on the display interface of the display device;

调整模块,用于根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。The adjustment module is configured to adjust the display angle of the view on the display interface according to the angle, and adjust the view to a target direction.

上述视图调整方法和系统,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将上述视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。The above view adjustment method and system can identify the outline of the view elements in the view during the display process of the display device, obtain the minimum circumscribing rectangle of the above outline, and then calculate the angle between the minimum circumscribing rectangle and the preset reference graphic, so as to The display angle of the view on the display interface is adjusted to adjust the above view to the target direction, which has high adjustment efficiency on the basis of ensuring the display effect of the view.

附图说明Description of drawings

图1为一个实施例的视图调整方法流程图;Fig. 1 is a flow chart of a view adjustment method of an embodiment;

图2为一个实施例的视图元素示意图;Fig. 2 is a schematic diagram of view elements of an embodiment;

图3为一个实施例的视图调整系统结构示意图。Fig. 3 is a schematic structural diagram of a view adjustment system according to an embodiment.

具体实施方式Detailed ways

下面结合附图对本发明的视图调整方法和系统的具体实施方式作详细描述。The specific implementation of the view adjustment method and system of the present invention will be described in detail below in conjunction with the accompanying drawings.

参考图1,图1所示表示一个实施例的触摸时间获取方法流程图,包括如下步骤:With reference to Fig. 1, Fig. 1 shows the flow chart of the touch time acquisition method of an embodiment, including the following steps:

S10,在显示设备显示视图过程中,识别视图中视图元素的轮廓;S10, during the process of displaying the view by the display device, identify the outline of the view element in the view;

上述视图元素包括文字、图形以及表格中的一种或者多种。上述步骤可以根据视图各个像素点的灰度信息识别视图中视图元素的轮廓,比如,可以获取任意相邻两个像素点的灰度差,识别上述灰度差大于预设灰度差的各对像素点,根据在相应视图元素最外围的各对灰度差大于预设灰度差的像素点确定上述视图元素的轮廓。上述预设灰度差可以根据相应视图的背景灰度值和视图元素的灰度值进行设置;若视图元素对应多个灰度值,上述预设灰度差还可以根据视图元素对应多个灰度值进行相应设置。The above-mentioned view elements include one or more of text, graphics and tables. The above steps can identify the outline of the view elements in the view according to the grayscale information of each pixel in the view. For example, the grayscale difference between any two adjacent pixels can be obtained, and the pairs whose grayscale difference is greater than the preset grayscale difference can be identified. Pixels, determining the outline of the above-mentioned view element according to each pair of pixels with a grayscale difference greater than a preset grayscale difference at the outermost periphery of the corresponding view element. The above preset grayscale difference can be set according to the background grayscale value of the corresponding view and the grayscale value of the view element; if the view element corresponds to multiple grayscale values, the above preset grayscale difference can also be set according to the view element corresponding to multiple grayscale values Set the value accordingly.

上述视图可以包括一个或者多个视图元素,可以对视图中各个视图元素进行轮廓识别,以生成各个视图元素对应的最小外界矩形;若视图中的视图元素个数较多,则可以对其中一部分视图元素进行轮廓识别以及相应最小外接矩形的生成;上述进行轮廓识别的视图元素可以根据视图元素的总数设定,比如设定为总数的50%至总数之间的任一值等等。The above-mentioned view can include one or more view elements, and the contour recognition of each view element in the view can be performed to generate the minimum outer rectangle corresponding to each view element; if the number of view elements in the view is large, part of the view elements can be Elements perform contour recognition and generate the corresponding minimum bounding rectangle; the above-mentioned view elements for contour recognition can be set according to the total number of view elements, for example, set to any value between 50% of the total number and the total number, and so on.

S20,获取所述视图元素的轮廓的最小外接矩形;S20. Obtain the minimum circumscribed rectangle of the outline of the view element;

上述视图元素可以如图2中的图形101和文字103所示,视图元素的轮廓的最小外接矩形可以如图2中的矩形102和104所示,如图2所示,视图元素的元素方向(图形方向或者文字方向)与相应的最小外接矩形的任一边平行或者垂直。Above-mentioned view element can be as shown in figure 101 and text 103 among Fig. 2, and the minimum enclosing rectangle of the contour of view element can be as shown in rectangle 102 and 104 among Fig. 2, as shown in Fig. 2, the element direction of view element ( Graphics direction or text direction) is parallel or perpendicular to any side of the corresponding minimum circumscribed rectangle.

S30,计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;S30, calculating the angle between the minimum circumscribed rectangle and the preset reference figure on the display interface of the display device;

上述参考图形可以根据显示界面各边界对应的几何图形进行设置,还可以根据适用于用户预览的方向进行设置,比如设置为垂直于水平面的直线或者矩形等等;若显示界面各边界对应的几何图形为矩形,则上述参考图形还可以设置为与显示界面所所对应矩形平行或者重合的矩形。The above-mentioned reference graphics can be set according to the geometric figures corresponding to the boundaries of the display interface, and can also be set according to the direction suitable for user preview, such as setting a line or rectangle perpendicular to the horizontal plane; if the geometric figures corresponding to the boundaries of the display interface is a rectangle, the above-mentioned reference figure can also be set as a rectangle parallel to or coincident with the rectangle corresponding to the display interface.

上述角度的计算过程可以包括:The calculation process of the above angle may include:

在最小外接矩形中(若最小外接矩形为多个,则可以在任一个最小外接矩形中)选取一条边作为调整线;Select a side in the minimum circumscribed rectangle (if there are multiple minimum circumscribed rectangles, then any one of the minimum circumscribed rectangles) as the adjustment line;

若参考图形包括多个直线或者直线段边,则从上述直线或者直线段边选取一条边作为参考线;If the reference figure includes multiple straight lines or straight line segment sides, select one side from the above straight line or straight line segment sides as the reference line;

计算所述调整线与参考线之间的夹角,根据上述夹角确定最小外接矩形与参考图形之间的角度;或者分别设置调整线和参考线的方向,计算设置方向后的调整线和参考线所成的角度,以此确定最小外接矩形与参考图形之间的角度。Calculate the angle between the adjustment line and the reference line, and determine the angle between the minimum circumscribed rectangle and the reference figure according to the above angle; or set the directions of the adjustment line and the reference line respectively, and calculate the adjustment line and the reference line after setting the direction The angle formed by the lines is used to determine the angle between the minimum circumscribed rectangle and the reference graphic.

S40,根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。S40. Adjust the display angle of the view on the display interface according to the angle, and adjust the view to a target direction.

上述步骤中,根据所述角度调整视图在显示界面上的显示角度的过程可以包括:将视图旋转(w+k*90°);其中,上述w为最小外接矩形与参考图形之间的角度,k为0、1、2或者3,符合“*”表示相乘。调整后的视图可以在显示界面的目标方向进行显示,此时视图的方向与显示界面的显示方向一致,即上述视图在显示界面中显示方向或者位置不存在倒置、左倾或者右倾等影响用户预览效果的偏差。上述目标方向为用户预览时获得最佳效果的方向,即视图中的各个视图元素均不会出现显示方向偏差的方向。In the above steps, the process of adjusting the display angle of the view on the display interface according to the angle may include: rotating the view (w+k*90°); wherein, the above w is the angle between the minimum circumscribed rectangle and the reference figure, k is 0, 1, 2 or 3, and "*" means multiplication. The adjusted view can be displayed in the target direction of the display interface. At this time, the direction of the view is consistent with the display direction of the display interface, that is, the display direction or position of the above-mentioned view in the display interface does not exist inversion, left or right, etc., which will affect the user preview effect deviation. The above-mentioned target direction is the direction for obtaining the best effect when the user previews, that is, the direction in which each view element in the view will not have a display direction deviation.

本实施例提供的视图调整方法,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。The view adjustment method provided in this embodiment can identify the outline of the view elements in the view during the process of displaying the view on the display device, obtain the minimum circumscribing rectangle of the above outline, and then calculate the angle between the minimum circumscribing rectangle and the preset reference graphic, In this way, the display angle of the view on the display interface is adjusted to adjust the view to the target direction, which has high adjustment efficiency on the basis of ensuring the display effect of the view.

在一个实施例中,上述计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度的步骤可以包括:In one embodiment, the step of calculating the angle between the minimum circumscribed rectangle and the preset reference figure on the display interface of the display device may include:

在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;Selecting one side in the minimum circumscribed rectangle as an adjustment line, and setting the direction of the adjustment line according to the view element corresponding to the minimum circumscribed rectangle;

在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向;Selecting one side of the preset reference graphics on the display interface of the display device as a reference line, and setting the direction of the reference line according to the relative position of the reference graphics and the display interface;

获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。The angle formed by the adjustment line and the reference line is obtained to obtain the angle between the minimum circumscribed rectangle and the reference figure.

上述调整线的方向可以设置为视图元素顶端至底端的方向,上述参考线的方向可以设置为显示界面端顶端至底端的方向,旋转视图在显示界面的显示角度,当调整线的方向与参考线的方向完全相同时,视图被调整到目标方向。The direction of the above-mentioned adjustment line can be set to the direction from the top to the bottom of the view element, the direction of the above-mentioned reference line can be set to the direction from the top to the bottom of the display interface, and the display angle of the rotated view on the display interface, when the direction of the adjustment line and the reference line When the orientation of is exactly the same, the view is resized to the target orientation.

本实施例分别在最小外接矩形中选择调整线,在参考图形中选择参考线,根据上述调整线和参考线所成的角度确定最小外接矩形与参考图形之间的角度,可以保证所确定的角度的准确性。In this embodiment, the adjustment line is selected in the minimum circumscribed rectangle, the reference line is selected in the reference graphic, and the angle between the minimum circumscribed rectangle and the reference graphic is determined according to the angle formed by the adjustment line and the reference line, so that the determined angle can be guaranteed accuracy.

在一个实施例中,可以识别视图中多个视图元素的轮廓;In one embodiment, the outlines of multiple view elements in the view can be identified;

所述获取所述视图元素的轮廓的最小外接矩形的步骤后还可以包括:After the step of obtaining the minimum bounding rectangle of the outline of the view element, it may further include:

分别获取相互平行的n个最小外接矩形;其中,n为大于或者等于2的正整数;Respectively obtain n minimum circumscribed rectangles parallel to each other; wherein, n is a positive integer greater than or equal to 2;

当所述n在最小外接矩形总数中的比例超过设定比例时,删除n个最小外接矩形以外的最小外接矩形。When the ratio of n in the total number of minimum circumscribed rectangles exceeds a set ratio, the minimum circumscribed rectangles other than the n minimum circumscribed rectangles are deleted.

通常情况下,视图中各个视图元素的方向是一致的,因此多个视图元素分别对应的最小外接矩形相互平行。若其中存在与其他最小外接矩形不平行的最小外接矩形,表明该最小外接矩形所对应的视图元素方向特殊,不能代表相应视图的方向;或者该最小外接矩形在生成过程中出现误差,为了提高用于计算角度的最小外接矩形的准确性,需要将出现误差的最小外接矩形进行删除。Usually, the directions of the view elements in the view are consistent, so the smallest bounding rectangles corresponding to the view elements are parallel to each other. If there is a minimum enclosing rectangle that is not parallel to other minimum enclosing rectangles, it indicates that the direction of the view element corresponding to the minimum enclosing rectangle is special and cannot represent the direction of the corresponding view; or there is an error in the generation process of the minimum enclosing rectangle. Due to the accuracy of the minimum circumscribed rectangle for calculating the angle, it is necessary to delete the minimum circumscribed rectangle with errors.

上述设定比例可以根据视图元素的个数进行设置,比如设置为90%或者91%等值。The above setting ratio can be set according to the number of view elements, for example, set to 90% or 91% or the like.

本实施例将出现误差或者不具代表性的最小外接矩形进行删除,可以提高用于计算角度的最小外接矩形的准确性,进而提高相应视图调整的准确性。In this embodiment, errors or non-representative minimum circumscribing rectangles are deleted, which can improve the accuracy of the minimum circumscribing rectangle used for calculating angles, thereby improving the accuracy of corresponding view adjustment.

在一个实施例中,上述根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向的步骤可以包括:In one embodiment, the above step of adjusting the display angle of the view on the display interface according to the angle, and adjusting the view to the target direction may include:

根据所述角度旋转视图在显示界面的显示角度;Rotate the display angle of the view on the display interface according to the angle;

在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度,直至将视图调整到目标方向。When it is detected that the direction of the view is inconsistent with the target direction, the view is rotated by 90 degrees until the view is adjusted to the target direction.

本实施例中,视图的方向可以设置为视图中任一一个视图元素从顶端至底端的方向,目标方向可以设置为显示界面或者顶端至底端的方向,两者方向一致(将视图调整到目标方向)后,视图中各个视图元素均不会出现倒置、左倾或者右倾等显示偏差。In this embodiment, the direction of the view can be set to the direction from the top to the bottom of any view element in the view, and the target direction can be set to the direction of the display interface or the top to the bottom, and the two directions are the same (adjust the view to the target Orientation), each view element in the view will not have display deviations such as inversion, left tilt or right tilt.

在一个实施例中,在显示设备显示视图前,还包括:In one embodiment, before the display device displays the view, it further includes:

利用图像捕获设备捕获视图资料对应的视图;capturing a view corresponding to the view data using an image capture device;

上述识别视图中视图元素的轮廓的步骤前还可以包括:Before the above step of identifying the outline of the view element in the view, it may further include:

检测视图的各个视图边界,并获取各个视图边界之间的边界比例;Detect each view boundary of the view, and obtain the boundary ratio between each view boundary;

判断所述边界比例是否与预设的边界比例一致;judging whether the boundary ratio is consistent with a preset boundary ratio;

若否,则调整图像捕获设备的捕获位置,直至所述边界比例与预设的边界比例一致。If not, adjust the capture position of the image capture device until the boundary ratio is consistent with the preset boundary ratio.

本实施例中,由于视图资料摆放位置或者照相机等图像捕获设备的放置位置等出现偏差,可能导致上述视图资料获取不完整,从而使相应的视图不完整,此时可以根据视图中各个视图边界之间的边界比例进行视图完整性检测,若视图对应的边界比例与预设的边界比例不一致,表明视图的一条或者多条边界与视图资料中的相应边界不对应,上述视图不完整,需要将图像捕获设备移动至目的捕获位置,以获取视图资料的完整视图。上述预设的边界比例可以根据视图资料的原始边界长度进行设置。上述目的捕获位置包括图像捕获设备可以捕获视图资料完整视图的位置,其可以对视图资料的摆放位置进行识别,根据所识别的摆放位置确定目的捕获位置。In this embodiment, due to deviations in the placement position of the view data or the placement position of image capture devices such as cameras, etc., the acquisition of the above view data may be incomplete, so that the corresponding view is incomplete. At this time, according to the boundaries of each view in the view The boundary ratio between the view integrity detection, if the boundary ratio corresponding to the view is inconsistent with the preset boundary ratio, it indicates that one or more boundaries of the view do not correspond to the corresponding boundaries in the view data, and the above view is incomplete, and needs to be The image capture device is moved to the target capture location to obtain a complete view of the view material. The aforementioned preset border ratio can be set according to the original border length of the view data. The above-mentioned target capture position includes the position where the image capture device can capture the complete view of the view data, which can identify the placement position of the view data, and determine the target capture position according to the identified placement position.

在一个实施例中,上述视图元素可以包括显示界面显示的文字或者图形。In an embodiment, the aforementioned view elements may include text or graphics displayed on a display interface.

在一个实施例中,上述显示界面可以为矩形,所述参考图形为平行于显示界面一条边的直线。In one embodiment, the above-mentioned display interface may be a rectangle, and the reference figure is a straight line parallel to one side of the display interface.

本实施例将平行于矩形显示界面某条边的直线设为参考图形,可以对参考图形进行简化,以提高根据参考图形获取相应角度的效率,从而提高视图的调整效率。In this embodiment, a straight line parallel to a certain side of the rectangular display interface is set as a reference figure, which can simplify the reference figure, so as to improve the efficiency of obtaining corresponding angles according to the reference figure, thereby improving the adjustment efficiency of the view.

参考图3,图3所示为一个实施例的视图调整系统结构示意图,包括:Referring to FIG. 3, FIG. 3 is a schematic structural diagram of a view adjustment system in an embodiment, including:

识别模块10,用于在显示设备显示视图过程中,识别视图中视图元素的轮廓;The identification module 10 is configured to identify the outline of the view element in the view during the process of displaying the view by the display device;

上述视图元素包括文字、图形以及表格中的一种或者多种。上述识别模块10中,可以根据视图各个像素点的灰度信息识别视图中视图元素的轮廓,比如,可以获取任意相邻两个像素点的灰度差,识别上述灰度差大于预设灰度差的各对像素点,根据在相应视图元素最外围的各对灰度差大于预设灰度差的像素点确定上述视图元素的轮廓。上述预设灰度差可以根据相应视图的背景灰度值和视图元素的灰度值进行设置;若视图元素对应多个灰度值,上述预设灰度差还可以根据视图元素对应多个灰度值进行相应设置。The above-mentioned view elements include one or more of text, graphics and tables. In the identification module 10 described above, the outline of the view element in the view can be identified according to the grayscale information of each pixel of the view, for example, the grayscale difference between any two adjacent pixels can be obtained, and the above-mentioned grayscale difference can be identified to be greater than the preset grayscale For each pair of pixel points with a difference, the outline of the above-mentioned view element is determined according to each pair of pixel points with a grayscale difference greater than a preset grayscale difference at the outermost periphery of the corresponding view element. The above preset grayscale difference can be set according to the background grayscale value of the corresponding view and the grayscale value of the view element; if the view element corresponds to multiple grayscale values, the above preset grayscale difference can also be set according to the view element corresponding to multiple grayscale values Set the value accordingly.

上述视图可以包括一个或者多个视图元素,可以对视图中各个视图元素进行轮廓识别,以生成各个视图元素对应的最小外界矩形;若视图中的视图元素个数较多,则可以对其中一部分视图元素进行轮廓识别以及相应最小外接矩形的生成;上述进行轮廓识别的视图元素可以根据视图元素的总数设定,比如设定为总数的50%至总数之间的任一值等等。The above-mentioned view can include one or more view elements, and the contour recognition of each view element in the view can be performed to generate the minimum outer rectangle corresponding to each view element; if the number of view elements in the view is large, part of the view elements can be Elements perform contour recognition and generate the corresponding minimum bounding rectangle; the above-mentioned view elements for contour recognition can be set according to the total number of view elements, for example, set to any value between 50% of the total number and the total number, and so on.

获取模块20,用于获取所述视图元素的轮廓的最小外接矩形;An acquisition module 20, configured to acquire the minimum circumscribed rectangle of the outline of the view element;

上述视图元素可以如图2中的图形101和文字103所示,视图元素的轮廓的最小外接矩形可以如图2中的矩形102和104所示,如图2所示,视图元素的元素方向(图形方向或者文字方向)与相应的最小外接矩形的任一边平行或者垂直。Above-mentioned view element can be as shown in figure 101 and text 103 among Fig. 2, and the minimum enclosing rectangle of the contour of view element can be as shown in rectangle 102 and 104 among Fig. 2, as shown in Fig. 2, the element direction of view element ( Graphics direction or text direction) is parallel or perpendicular to any side of the corresponding minimum circumscribed rectangle.

计算模块30,用于计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;A calculation module 30, configured to calculate the angle between the minimum circumscribed rectangle and the preset reference figure on the display interface of the display device;

上述参考图形可以根据显示界面各边界对应的几何图形进行设置,还可以根据适用于用户预览的方向进行设置,比如设置为垂直于水平面的直线或者矩形等等;若显示界面各边界对应的几何图形为矩形,则上述参考图形还可以设置为与显示界面所所对应矩形平行或者重合的矩形。The above-mentioned reference graphics can be set according to the geometric figures corresponding to the boundaries of the display interface, and can also be set according to the direction suitable for user preview, such as setting a line or rectangle perpendicular to the horizontal plane; if the geometric figures corresponding to the boundaries of the display interface is a rectangle, the above-mentioned reference figure can also be set as a rectangle parallel to or coincident with the rectangle corresponding to the display interface.

调整模块40,用于根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。The adjustment module 40 is configured to adjust the display angle of the view on the display interface according to the angle, and adjust the view to a target direction.

上述调整模块40中,根据所述角度调整视图在显示界面上的显示角度的过程可以包括:将视图旋转(w+k*90°);其中,上述w为最小外接矩形与参考图形之间的角度,k为0、1、2或者3,符合“*”表示相乘。调整后的视图可以在显示界面的目标方向进行显示,此时视图的方向与显示界面的显示方向一致,即上述视图在显示界面中显示方向或者位置不存在倒置、左倾或者右倾等影响用户预览效果的偏差。上述目标方向为用户预览时获得最佳效果的方向,即视图中的各个视图元素均不会出现显示方向偏差的方向。In the above adjustment module 40, the process of adjusting the display angle of the view on the display interface according to the angle may include: rotating the view (w+k*90°); wherein, the above w is the distance between the minimum circumscribed rectangle and the reference figure Angle, k is 0, 1, 2 or 3, and "*" means multiplication. The adjusted view can be displayed in the target direction of the display interface. At this time, the direction of the view is consistent with the display direction of the display interface, that is, the display direction or position of the above-mentioned view in the display interface does not exist inversion, left or right, etc., which will affect the user preview effect deviation. The above-mentioned target direction is the direction for obtaining the best effect when the user previews, that is, the direction in which each view element in the view will not have a display direction deviation.

本发明提供的视图调整系统,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。The view adjustment system provided by the present invention can identify the outline of the view element in the view during the process of displaying the view on the display device, obtain the minimum circumscribing rectangle of the above outline, and then calculate the angle between the minimum circumscribing rectangle and the preset reference graphic, so as to Adjusting the display angle of the view on the display interface to adjust the view to the target direction has high adjustment efficiency on the basis of ensuring the display effect of the view.

在一个实施例中,上述计算模块可以包括:In one embodiment, the above calculation module may include:

第一选择模块,用于在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;The first selection module is configured to select one side in the minimum circumscribed rectangle as an adjustment line, and set the direction of the adjustment line according to the view element corresponding to the minimum circumscribed rectangle;

第二选择模块,用于在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向;The second selection module is used to select one side as a reference line from the preset reference graphics on the display interface of the display device, and set the direction of the reference line according to the relative position of the reference graphics and the display interface;

角度获取模块,用于获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。An angle acquisition module, configured to acquire the angle formed by the adjustment line and the reference line, and obtain the angle between the minimum circumscribed rectangle and the reference figure.

本实施例分别在最小外接矩形中选择调整线,在参考图形中选择参考线,根据上述调整线和参考线所成的角度确定最小外接矩形与参考图形之间的角度,可以保证所确定的角度的准确性。In this embodiment, the adjustment line is selected in the minimum circumscribed rectangle, the reference line is selected in the reference graphic, and the angle between the minimum circumscribed rectangle and the reference graphic is determined according to the angle formed by the adjustment line and the reference line, so that the determined angle can be guaranteed accuracy.

在一个实施例中,上述调整模块可以包括:In one embodiment, the above adjustment module may include:

旋转模块,用于根据所述角度旋转视图在显示界面的显示角度;A rotation module, configured to rotate the display angle of the view on the display interface according to the angle;

检测模块,用于在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度,直至所述视图将视图调整到目标方向。The detection module is configured to rotate the view by 90 degrees until the view is adjusted to the target direction when it is detected that the direction of the view is inconsistent with the target direction.

本发明提供的视图调整系统与本发明提供的视图调整方法一一对应,在所述视图调整方法的实施例阐述的技术特征及其有益效果均适用于视图调整系统的实施例中,特此声明。The view adjustment system provided by the present invention corresponds one-to-one to the view adjustment method provided by the present invention, and the technical features and beneficial effects described in the embodiments of the view adjustment method are all applicable to the embodiments of the view adjustment system, which is hereby declared.

以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, should be considered as within the scope of this specification.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but should not be construed as limiting the patent scope of the invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.

Claims (9)

CN201610531917.3A2016-07-072016-07-07 View adjustment method and systemActiveCN106201201B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201610531917.3ACN106201201B (en)2016-07-072016-07-07 View adjustment method and system
PCT/CN2016/113106WO2018006566A1 (en)2016-07-072016-12-29View adjustment method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610531917.3ACN106201201B (en)2016-07-072016-07-07 View adjustment method and system

Publications (2)

Publication NumberPublication Date
CN106201201A CN106201201A (en)2016-12-07
CN106201201Btrue CN106201201B (en)2019-08-13

Family

ID=57473004

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610531917.3AActiveCN106201201B (en)2016-07-072016-07-07 View adjustment method and system

Country Status (2)

CountryLink
CN (1)CN106201201B (en)
WO (1)WO2018006566A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106201201B (en)*2016-07-072019-08-13广州视睿电子科技有限公司 View adjustment method and system
CN106600591B (en)*2016-12-132019-12-03上海联影医疗科技有限公司A kind of medical image direction display method and device
CN108536513B (en)*2018-03-132021-06-18维沃移动通信有限公司 A kind of picture display direction adjustment method and mobile terminal
CN111563214B (en)*2020-04-292023-05-16北京字节跳动网络技术有限公司Reference line processing method and device
CN111753230B (en)*2020-06-122023-12-19北京字节跳动网络技术有限公司Reference line processing method and device
CN113034531B (en)*2021-04-022024-09-17广州绿怡信息科技有限公司Equipment placement detection method and device
CN115509473A (en)*2021-06-042022-12-23Tcl科技集团股份有限公司 Interface display adjustment method, device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103268590B (en)*2013-05-062015-09-23西南大学A kind of disposal route of taking pictures of rotatable view-finder

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103581423A (en)*2012-08-092014-02-12中兴通讯股份有限公司Method and device for turning over screen and mobile terminal
CN104122978A (en)*2013-04-242014-10-29国基电子(上海)有限公司Display frame adjusting system and method
US9361510B2 (en)*2013-12-132016-06-07Intel CorporationEfficient facial landmark tracking using online shape regression method
CN106201201B (en)*2016-07-072019-08-13广州视睿电子科技有限公司 View adjustment method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103268590B (en)*2013-05-062015-09-23西南大学A kind of disposal route of taking pictures of rotatable view-finder

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种快速高精度的零件图像配准算法;苏森 等;《工艺与检测》;20160702(第7期);第121-125页
基于零件轮廓形心与最小外接矩形的图像配准方法;陈栋梁 等;《制造业自动化》;20120430;第34卷(第4期);第48-52页

Also Published As

Publication numberPublication date
WO2018006566A1 (en)2018-01-11
CN106201201A (en)2016-12-07

Similar Documents

PublicationPublication DateTitle
CN106201201B (en) View adjustment method and system
US12073542B2 (en)Image processing method, image processing apparatus, and non-transitory storage medium
CN104052976B (en)Projecting method and device
CN109584307B (en)System and method for improving calibration of intrinsic parameters of a camera
US9807263B2 (en)Mobile document capture assistance using augmented reality
CN109977907B (en)Expense reimbursement method and system based on bill recognition
US20040085256A1 (en)Methods and measurement engine for aligning multi-projector display systems
CN109598185B (en)Image recognition translation method, device and equipment and readable storage medium
CN108074237B (en) Image sharpness detection method, device, storage medium and electronic device
EP3049947A1 (en)Systems and methods for three dimensional geometric reconstruction of captured image data
CN106558027A (en)For estimating the algorithm of the biased error in camera attitude
TWI520099B (en)Calibration method of an image capture system
CN110189322A (en)Flatness detection method, device, equipment, storage medium and system
CN107368829B (en) Method and apparatus for determining a rectangular target area in an input image
US20180247430A1 (en)Display control method and display control apparatus
JP5919212B2 (en) Visual verification support device and control method thereof
CN104902201B (en)Based on moving view point with abnormity screen projection as real-time correction method
CN110827288A (en) Method and device for extracting target image in projector definition test
US20200193561A1 (en)Automatic Detection, Counting, and Measurement of Lumber Boards Using a Handheld Device
CN106663207A (en)Whiteboard and document image detection method and system
US20220084291A1 (en)Augmented reality display method and device for chip structure, and readable storage medium
TWI450155B (en)Method and system for calculating calibration information for an optical touch apparatus
WO2023274090A1 (en)Scanning method and system for portable electronic device, and electronic device and storage medium
CN105427282A (en)Method and device for testing 3D positioning accuracy
JP2016057796A (en)Skew logic character recognition method for portable terminal device, program, and portable terminal device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp