WO2018006566A1 - View adjustment method and system - Google Patents
View adjustment method and system Download PDFInfo
- Publication number
- WO2018006566A1 WO2018006566A1 PCT/CN2016/113106 CN2016113106W WO2018006566A1 WO 2018006566 A1 WO2018006566 A1 WO 2018006566A1 CN 2016113106 W CN2016113106 W CN 2016113106W WO 2018006566 A1 WO2018006566 A1 WO 2018006566A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- view
- angle
- display
- minimum circumscribed
- circumscribed rectangle
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Definitions
- the present invention relates to the field of multimedia display technologies, and in particular, to a view adjustment method and system.
- the teacher often uses a scanner to scan the view data such as test papers or textbooks and then transfer them to the large-screen display device for display; during the conference, the speaker transmits the paper report through shooting, etc., and then transmits it to the real-time.
- the related display device is displayed so that the participant can view the corresponding report content.
- a view adjustment method includes the following steps:
- a view adjustment system comprising:
- An identification module configured to identify an outline of a view element in the view during display of the display device
- An obtaining module configured to obtain a minimum circumscribed rectangle of the outline of the view element
- a calculation module configured to calculate an angle between the minimum circumscribed rectangle and a preset reference graphic on a display interface of the display device
- the adjustment module is configured to adjust a display angle of the view on the display interface according to the angle, and adjust the view to the target direction.
- the above view adjustment method and system can identify the outline of the view element in the view during the display view of the display device, obtain the minimum circumscribed rectangle of the outline, and calculate the angle between the minimum circumscribed rectangle and the preset reference figure. Adjust the display angle of the view on the display interface to adjust the above view to the target direction. On the basis of ensuring the view display effect, it has high adjustment efficiency.
- 1 is a flow chart of a view adjustment method of an embodiment
- Figure 2 is a schematic view of a view of an embodiment
- FIG. 3 is a schematic structural diagram of a view adjustment system of an embodiment.
- FIG. 1 is a flowchart showing a touch time acquisition method according to an embodiment, which includes the following steps:
- the above view elements include one or more of text, graphics, and tables.
- the above steps may identify the contour of the view element in the view according to the gray information of each pixel of the view. For example, the gray difference of any two adjacent pixels may be acquired, and each pair whose gray difference is greater than the preset gray difference is identified.
- the pixel points are determined according to the pixel points at the outermost periphery of the corresponding view element for each pair of grayscale differences greater than the preset grayscale difference.
- the preset gray level difference may be set according to the background gray value of the corresponding view and the gray value of the view element; if the view element corresponds to multiple gray values, the preset gray level difference may also correspond to multiple grays according to the view element. The degree value is set accordingly.
- the above view may include one or more view elements, and may perform contour recognition on each view element in the view to generate a minimum outer rectangle corresponding to each view element; if the number of view elements in the view is large, one part of the view may be The element performs contour recognition and the generation of the corresponding minimum circumscribed rectangle; the above-mentioned view element for contour recognition may be set according to the total number of view elements, such as setting from 50% of the total to any value between the totals, and the like.
- the above view elements may be as shown in the figure 101 and the text 103 in FIG. 2, and the minimum circumscribed rectangle of the outline of the view element may be as shown by the rectangles 102 and 104 in FIG. 2, as shown in FIG. 2, the element direction of the view element ( The graphic direction or text direction is parallel or perpendicular to either side of the corresponding minimum circumscribed rectangle.
- the reference graphic may be set according to the geometric shape corresponding to each boundary of the display interface, and may also be set according to a direction suitable for the user preview, such as a line or a rectangle perpendicular to the horizontal plane, etc.; if the geometrical shape corresponding to each boundary of the display interface is displayed If it is a rectangle, the above reference pattern may also be set as a rectangle parallel or coincident with the rectangle corresponding to the display interface.
- the calculation process of the above angles may include:
- the reference pattern includes a plurality of straight lines or straight line segments, an edge is selected from the side of the straight line or the straight line segment as a reference line;
- Calculating an angle between the adjustment line and the reference line determining an angle between the minimum circumscribed rectangle and the reference figure according to the above angle; or respectively setting the direction of the adjustment line and the reference line, and calculating the adjustment line and the reference after setting the direction The angle formed by the line to determine between the minimum circumscribing rectangle and the reference graphic Angle.
- 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 w is the angle between the minimum circumscribed rectangle and the reference graphic, k is 0, 1, 2, or 3, and conforming to "*" means multiplication.
- the adjusted view can be displayed in the target direction of the display interface.
- 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 view in the display interface does not have an inverted, left tilt or right tilt, etc., which affects the user preview effect. Deviation.
- the above target direction is the direction in which the user obtains the best effect when previewing, that is, the direction of the display direction deviation does not appear in each view element in the view.
- the view adjusting method provided by the embodiment may identify the contour of the view element in the view during the display of the display device, obtain the minimum circumscribed rectangle of the contour, and calculate the angle between the minimum circumscribed 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, and the adjustment efficiency is improved on the basis of ensuring the view display effect.
- the step of calculating an angle between the minimum circumscribed rectangle and a preset reference pattern on a display interface of the display device may include:
- the direction of the adjustment line may be set to the direction from the top to the bottom of the view element, and the direction of the reference line may be set to display the direction from the top end to the bottom end of the interface end, and the display angle of the rotation view on the display interface, when adjusting the direction of the line and the reference line When the directions are exactly the same, the view is adjusted to the target direction.
- an adjustment line is selected in the minimum circumscribed rectangle, and a reference line is selected in the reference pattern.
- the accuracy of the determined angle can be ensured by determining the angle between the minimum circumscribed rectangle and the reference pattern according to the angle formed by the adjustment line and the reference line.
- an outline of a plurality of view elements in the view can be identified
- the step of acquiring the minimum circumscribed rectangle of the outline of the view element may further include:
- n is a positive integer greater than or equal to 2;
- the direction of each view element in the view is the same, so the minimum circumscribed rectangles corresponding to the multiple view elements are parallel to each other. If there is a minimum circumscribed rectangle that is not parallel to the other minimum circumscribing rectangles, it indicates that the direction of the view element corresponding to the minimum circumscribed rectangle is special and cannot represent the direction of the corresponding view; or the minimum circumscribed rectangle has errors during the generation process, in order to improve To calculate the accuracy of the minimum circumscribed rectangle of the angle, the minimum circumscribed rectangle with the error needs to be deleted.
- the above setting ratio can be set according to the number of view elements, for example, set to 90% or 91%.
- the error or the non-representative minimum circumscribed rectangle is deleted, and the accuracy of the minimum circumscribed rectangle for calculating the angle can be improved, thereby improving the accuracy of the corresponding view adjustment.
- the 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:
- the view Upon detecting that the direction of the view does not coincide with the target direction, the view is rotated 90 degrees until the view is adjusted to the target direction.
- the direction of the view may be set to the direction of any one of the view elements in the view from the top to the bottom
- the target direction may be set to the display interface or the direction from the top to the bottom, and the directions are the same (adjust the view to the target) After the direction), the display elements in the view will not show deviations such as inversion, left tilt or right tilt.
- the method before the display device displays the view, the method further includes:
- the step of identifying the outline of the view element in the view may further include:
- the capture position of the image capture device is adjusted until the boundary ratio matches the preset boundary ratio.
- the view data may be incompletely obtained, and the corresponding view may be incomplete. If the view is not consistent with the corresponding boundary in the view data, the view is incomplete and needs to be
- the image capture device moves to the destination capture location to obtain a complete view of the view material.
- the preset boundary ratio can be set according to the original boundary length of the view data.
- the above-mentioned purpose capture location includes a location at which the image capture device can capture a complete view of the view material, which can identify the location of the view material and determine the destination capture location based on the identified placement location.
- the view elements described above may include text or graphics displayed by the display interface.
- the display interface may be a rectangle, and the reference pattern is a line parallel to one side of the display interface.
- a straight line parallel to an edge of the rectangular display interface is set as a reference graphic, and the reference graphic can be simplified to improve the efficiency of obtaining a corresponding angle according to the reference graphic, thereby improving the adjustment efficiency of the view.
- FIG. 3 is a schematic structural diagram of a view adjustment system of an embodiment, including:
- the identification module 10 is configured to identify an outline of the view element in the view during the display of the display device by the display device;
- the above view elements include one or more of text, graphics, and tables.
- the contour of the view element in the view may be identified according to the gray information of each pixel of the view. For example, the gray level difference of any two adjacent pixels may be acquired, and the gray level difference is greater than the preset gray level. Poor pairs of pixels, according to each pair of grayscale differences at the outermost periphery of the corresponding view element is greater than the preset grayscale The poor pixels determine the outline of the above view elements.
- the preset gray level difference may be set according to the background gray value of the corresponding view and the gray value of the view element; if the view element corresponds to multiple gray values, the preset gray level difference may also correspond to multiple grays according to the view element. The degree value is set accordingly.
- the above view may include one or more view elements, and may perform contour recognition on each view element in the view to generate a minimum outer rectangle corresponding to each view element; if the number of view elements in the view is large, one part of the view may be The element performs contour recognition and the generation of the corresponding minimum circumscribed rectangle; the above-mentioned view element for contour recognition may be set according to the total number of view elements, such as setting from 50% of the total to any value between the totals, and the like.
- An obtaining module 20 configured to acquire a minimum circumscribed rectangle of an outline of the view element
- the above view elements may be as shown in the figure 101 and the text 103 in FIG. 2, and the minimum circumscribed rectangle of the outline of the view element may be as shown by the rectangles 102 and 104 in FIG. 2, as shown in FIG. 2, the element direction of the view element ( The graphic direction or text direction is parallel or perpendicular to either side of the corresponding minimum circumscribed rectangle.
- the calculating module 30 is configured to calculate an angle between the minimum circumscribed rectangle and a preset reference graphic on a display interface of the display device;
- the reference graphic may be set according to the geometric shape corresponding to each boundary of the display interface, and may also be set according to a direction suitable for the user preview, such as a line or a rectangle perpendicular to the horizontal plane, etc.; if the geometrical shape corresponding to each boundary of the display interface is displayed If it is a rectangle, the above reference pattern may also be set as a rectangle parallel or coincident with the rectangle corresponding to the display interface.
- 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 the target direction.
- 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 w is between the minimum circumscribed rectangle and the reference graphic Angle, k is 0, 1, 2 or 3, which corresponds to "*" means multiplication.
- the adjusted view can be displayed in the target direction of the display interface.
- 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 view in the display interface does not have an inverted, left tilt or right tilt, etc., which affects the user preview effect. Deviation.
- the above target direction is the direction in which the user obtains the best effect when previewing, that is, the direction of the display direction deviation does not appear in each view element in the view.
- the view adjustment system provided by the present invention can identify the outline of the view element in the view during the display view of the display device, obtain the minimum circumscribed rectangle of the outline, and calculate the angle between the minimum circumscribed rectangle and the preset reference figure, This adjusts the display angle of the view on the display interface to adjust the view to the target direction, and has higher adjustment efficiency on the basis of ensuring the view display effect.
- the calculating module may include:
- a first selection module configured to select one side of the minimum circumscribed rectangle as an adjustment line, and set a direction of the adjustment line according to the view element corresponding to the minimum circumscribed rectangle;
- a second selection module configured to select one side as a reference line in a reference pattern preset on a display interface of the display device, and set a direction of the reference line according to a relative position of the reference graphic and the display interface;
- An angle obtaining module is configured to obtain an angle formed by the adjusting line and the reference line to obtain an angle between the minimum circumscribed rectangle and the reference figure.
- the adjustment line is selected in the minimum circumscribed rectangle
- the reference line is selected in the reference pattern
- the angle between the minimum circumscribed rectangle and the reference pattern is determined according to the angle formed by the adjustment line and the reference line, so that the determined angle can be ensured. The accuracy.
- the adjusting module may include:
- a rotation module configured to rotate a display angle of the view on the display interface according to the angle
- a detecting module configured to rotate the view by 90 degrees when the direction of the view is detected to be inconsistent with the target direction, until the view adjusts the view to the target direction.
- the view adjustment system provided by the present invention corresponds to the view adjustment method provided by the present invention.
- the technical features and advantages of the embodiment of the view adjustment method are applicable to the embodiment of the view adjustment system, and are hereby declared.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Disclosed are a view adjustment method and system. The view adjustment method comprises the following steps: during the process of a display device displaying a view, identifying a profile of a view element in the view (S10); acquiring the minimum circumscribed rectangle of the profile of the view element (S20); calculating an angle between the minimum circumscribed rectangle and a pre-set reference pattern on a display interface of the display device (S30); and adjusting, according to the angle, a display angle of the view on the display interface and adjusting the view to a target direction (S40). In the view adjustment method and system, by identifying a profile of a view element in a view during the process of a display device displaying the view, acquiring the minimum circumscribed rectangle of the profile, and then calculating an angle between the minimum circumscribed rectangle and a pre-set reference pattern, a display angle of the view on a display interface can be adjusted, so as to adjust the view to a target direction, so that a relatively high adjustment efficiency is achieved on the basis of ensuring the display effect of the view.
Description
本发明涉及多媒体显示技术领域,特别是涉及一种视图调整方法和系统。The present invention relates to the field of multimedia display technologies, and in particular, to a view adjustment method and system.
随着多媒体技术的高速发展,人们在工作和生活中使用多媒体技术获取视图资料的需求越来越高。例如,课堂上,老师经常使用扫描仪对试卷或者课本等视图资料进行扫描处理后传输至大屏显示设备进行显示;会议时,发言人将纸质报告通过拍摄等方式进行获取后,实时传输至相关显示设备进行显示,以便参与者可以查看相应的报告内容。With the rapid development of multimedia technology, people are increasingly demanding the use of multimedia technology to obtain view data in their work and life. For example, in the classroom, the teacher often uses a scanner to scan the view data such as test papers or textbooks and then transfer them to the large-screen display device for display; during the conference, the speaker transmits the paper report through shooting, etc., and then transmits it to the real-time. The related display device is displayed so that the participant can view the corresponding report content.
在显示设备显示各类视图资料对应的视图过程中,为了避免相关视图在显示界面中显示位置出现偏差(如倒置、左倾或者右倾等),通常需要在图像捕获设备扫描或者拍照时调整视图资料的摆放位置,或在视图显示过程中根据显示偏差实时调整视图资料的位置。In the process of displaying the view corresponding to various types of view data, in order to avoid the deviation of the display position of the related view in the display interface (such as inversion, left tilt, or right tilt), it is usually necessary to adjust the view data when the image capture device scans or takes a picture. Position the position, or adjust the position of the view data in real time according to the display deviation during the view display.
上述技术方案,虽然可以一定程度上保证相应视图的显示效果,然而视图资料的调整操作较为复杂,容易导致调整效率低。Although the above technical solution can ensure the display effect of the corresponding view to some extent, the adjustment operation of the view data is complicated, and the adjustment efficiency is easy to be low.
发明内容Summary of the invention
基于此,有必要针对传统方案容易导致调整效率低的技术问题,提供一种视图调整方法和系统。Based on this, it is necessary to provide a view adjustment method and system for the technical problem that the conventional scheme is easy to cause low adjustment efficiency.
一种视图调整方法,包括如下步骤:A view adjustment method includes the following steps:
在显示设备显示视图过程中,识别视图中视图元素的轮廓;Identifying the outline of the view elements in the view during the display of the display view of the device;
获取所述视图元素的轮廓的最小外接矩形;Obtaining a minimum circumscribed rectangle of the outline of the view element;
计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;Calculating an angle between the minimum circumscribed rectangle and a preset reference graphic on a display interface of the display device;
根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。
Adjusting the display angle of the view on the display interface according to the angle, and adjusting the view to the target direction.
一种视图调整系统,包括:A view adjustment system comprising:
识别模块,用于在显示设备显示视图过程中,识别视图中视图元素的轮廓;An identification module, configured to identify an outline of a view element in the view during display of the display device;
获取模块,用于获取所述视图元素的轮廓的最小外接矩形;An obtaining module, configured to obtain a minimum circumscribed rectangle of the outline of the view element;
计算模块,用于计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;a calculation module, configured to calculate an angle between the minimum circumscribed rectangle and a preset reference graphic on a display interface of the display device;
调整模块,用于根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。The adjustment module is configured to adjust a display angle of the view on the display interface according to the angle, and adjust the view to the target direction.
上述视图调整方法和系统,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将上述视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。The above view adjustment method and system can identify the outline of the view element in the view during the display view of the display device, obtain the minimum circumscribed rectangle of the outline, and calculate the angle between the minimum circumscribed rectangle and the preset reference figure. Adjust the display angle of the view on the display interface to adjust the above view to the target direction. On the basis of ensuring the view display effect, it has high adjustment efficiency.
图1为一个实施例的视图调整方法流程图;1 is a flow chart of a view adjustment method of an embodiment;
图2为一个实施例的视图元素示意图;Figure 2 is a schematic view of a view of an embodiment;
图3为一个实施例的视图调整系统结构示意图。FIG. 3 is a schematic structural diagram of a view adjustment system of an embodiment.
下面结合附图对本发明的视图调整方法和系统的具体实施方式作详细描述。The specific embodiments of the view adjustment method and system of the present invention will be described in detail below with reference to the accompanying drawings.
参考图1,图1所示表示一个实施例的触摸时间获取方法流程图,包括如下步骤:Referring to FIG. 1, FIG. 1 is a flowchart showing a touch time acquisition method according to an embodiment, which includes the following steps:
S10,在显示设备显示视图过程中,识别视图中视图元素的轮廓;S10, in the process of displaying the display view of the display device, identifying an outline of the view element in the view;
上述视图元素包括文字、图形以及表格中的一种或者多种。上述步骤可以根据视图各个像素点的灰度信息识别视图中视图元素的轮廓,比如,可以获取任意相邻两个像素点的灰度差,识别上述灰度差大于预设灰度差的各对
像素点,根据在相应视图元素最外围的各对灰度差大于预设灰度差的像素点确定上述视图元素的轮廓。上述预设灰度差可以根据相应视图的背景灰度值和视图元素的灰度值进行设置;若视图元素对应多个灰度值,上述预设灰度差还可以根据视图元素对应多个灰度值进行相应设置。The above view elements include one or more of text, graphics, and tables. The above steps may identify the contour of the view element in the view according to the gray information of each pixel of the view. For example, the gray difference of any two adjacent pixels may be acquired, and each pair whose gray difference is greater than the preset gray difference is identified.
The pixel points are determined according to the pixel points at the outermost periphery of the corresponding view element for each pair of grayscale differences greater than the preset grayscale difference. The preset gray level difference may be set according to the background gray value of the corresponding view and the gray value of the view element; if the view element corresponds to multiple gray values, the preset gray level difference may also correspond to multiple grays according to the view element. The degree value is set accordingly.
上述视图可以包括一个或者多个视图元素,可以对视图中各个视图元素进行轮廓识别,以生成各个视图元素对应的最小外界矩形;若视图中的视图元素个数较多,则可以对其中一部分视图元素进行轮廓识别以及相应最小外接矩形的生成;上述进行轮廓识别的视图元素可以根据视图元素的总数设定,比如设定为总数的50%至总数之间的任一值等等。The above view may include one or more view elements, and may perform contour recognition on each view element in the view to generate a minimum outer rectangle corresponding to each view element; if the number of view elements in the view is large, one part of the view may be The element performs contour recognition and the generation of the corresponding minimum circumscribed rectangle; the above-mentioned view element for contour recognition may be set according to the total number of view elements, such as setting from 50% of the total to any value between the totals, and the like.
S20,获取所述视图元素的轮廓的最小外接矩形;S20. Obtain a minimum circumscribed rectangle of the outline of the view element.
上述视图元素可以如图2中的图形101和文字103所示,视图元素的轮廓的最小外接矩形可以如图2中的矩形102和104所示,如图2所示,视图元素的元素方向(图形方向或者文字方向)与相应的最小外接矩形的任一边平行或者垂直。The above view elements may be as shown in the figure 101 and the text 103 in FIG. 2, and the minimum circumscribed rectangle of the outline of the view element may be as shown by the rectangles 102 and 104 in FIG. 2, as shown in FIG. 2, the element direction of the view element ( The graphic direction or text direction is parallel or perpendicular to either side of the corresponding minimum circumscribed rectangle.
S30,计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;S30. Calculate an angle between the minimum circumscribed rectangle and a preset reference graphic on a display interface of the display device.
上述参考图形可以根据显示界面各边界对应的几何图形进行设置,还可以根据适用于用户预览的方向进行设置,比如设置为垂直于水平面的直线或者矩形等等;若显示界面各边界对应的几何图形为矩形,则上述参考图形还可以设置为与显示界面所所对应矩形平行或者重合的矩形。The reference graphic may be set according to the geometric shape corresponding to each boundary of the display interface, and may also be set according to a direction suitable for the user preview, such as a line or a rectangle perpendicular to the horizontal plane, etc.; if the geometrical shape corresponding to each boundary of the display interface is displayed If it is a rectangle, the above reference pattern may also be set as a rectangle parallel or coincident with the rectangle corresponding to the display interface.
上述角度的计算过程可以包括:The calculation process of the above angles may include:
在最小外接矩形中(若最小外接矩形为多个,则可以在任一个最小外接矩形中)选取一条边作为调整线;In the minimum circumscribed rectangle (if there are multiple minimum circumscribed rectangles, you can select one of the smallest circumscribed rectangles) as the adjustment line;
若参考图形包括多个直线或者直线段边,则从上述直线或者直线段边选取一条边作为参考线;If the reference pattern includes a plurality of straight lines or straight line segments, an edge is selected from the side of the straight line or the straight line segment as a reference line;
计算所述调整线与参考线之间的夹角,根据上述夹角确定最小外接矩形与参考图形之间的角度;或者分别设置调整线和参考线的方向,计算设置方向后的调整线和参考线所成的角度,以此确定最小外接矩形与参考图形之间
的角度。Calculating an angle between the adjustment line and the reference line, determining an angle between the minimum circumscribed rectangle and the reference figure according to the above angle; or respectively setting the direction of the adjustment line and the reference line, and calculating the adjustment line and the reference after setting the direction The angle formed by the line to determine between the minimum circumscribing rectangle and the reference graphic
Angle.
S40,根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。S40: Adjust a display angle of the view on the display interface according to the angle, and adjust the view to the 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 w is the angle between the minimum circumscribed rectangle and the reference graphic, k is 0, 1, 2, or 3, and conforming to "*" 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 view in the display interface does not have an inverted, left tilt or right tilt, etc., which affects the user preview effect. Deviation. The above target direction is the direction in which the user obtains the best effect when previewing, that is, the direction of the display direction deviation does not appear in each view element in the view.
本实施例提供的视图调整方法,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。The view adjusting method provided by the embodiment may identify the contour of the view element in the view during the display of the display device, obtain the minimum circumscribed rectangle of the contour, and calculate the angle between the minimum circumscribed 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, and the adjustment efficiency is improved on the basis of ensuring the view display effect.
在一个实施例中,上述计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度的步骤可以包括:In one embodiment, the step of calculating an angle between the minimum circumscribed rectangle and a preset reference pattern on a display interface of the display device may include:
在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;Selecting one side of the minimum circumscribed rectangle as an adjustment line, and setting a direction of the adjustment line according to a view element corresponding to the minimum circumscribed rectangle;
在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向;Selecting one side of the reference graphic preset on the display interface of the display device as a reference line, and setting a direction of the reference line according to a relative position of the reference graphic and the display interface;
获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。Obtaining an angle formed by the adjustment line and the reference line to obtain an angle between the minimum circumscribed rectangle and the reference figure.
上述调整线的方向可以设置为视图元素顶端至底端的方向,上述参考线的方向可以设置为显示界面端顶端至底端的方向,旋转视图在显示界面的显示角度,当调整线的方向与参考线的方向完全相同时,视图被调整到目标方向。The direction of the adjustment line may be set to the direction from the top to the bottom of the view element, and the direction of the reference line may be set to display the direction from the top end to the bottom end of the interface end, and the display angle of the rotation view on the display interface, when adjusting the direction of the line and the reference line When the directions are exactly the same, the view is adjusted to the target direction.
本实施例分别在最小外接矩形中选择调整线,在参考图形中选择参考线,
根据上述调整线和参考线所成的角度确定最小外接矩形与参考图形之间的角度,可以保证所确定的角度的准确性。In this embodiment, an adjustment line is selected in the minimum circumscribed rectangle, and a reference line is selected in the reference pattern.
The accuracy of the determined angle can be ensured by determining the angle between the minimum circumscribed rectangle and the reference pattern according to the angle formed by the adjustment line and the reference line.
在一个实施例中,可以识别视图中多个视图元素的轮廓;In one embodiment, an outline of a plurality of view elements in the view can be identified;
所述获取所述视图元素的轮廓的最小外接矩形的步骤后还可以包括:The step of acquiring the minimum circumscribed rectangle of the outline of the view element may further include:
分别获取相互平行的n个最小外接矩形;其中,n为大于或者等于2的正整数;Obtaining 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 the n in the total number of minimum circumscribed rectangles exceeds the set ratio, the smallest circumscribed rectangle other than the n minimum circumscribed rectangles is deleted.
通常情况下,视图中各个视图元素的方向是一致的,因此多个视图元素分别对应的最小外接矩形相互平行。若其中存在与其他最小外接矩形不平行的最小外接矩形,表明该最小外接矩形所对应的视图元素方向特殊,不能代表相应视图的方向;或者该最小外接矩形在生成过程中出现误差,为了提高用于计算角度的最小外接矩形的准确性,需要将出现误差的最小外接矩形进行删除。Normally, the direction of each view element in the view is the same, so the minimum circumscribed rectangles corresponding to the multiple view elements are parallel to each other. If there is a minimum circumscribed rectangle that is not parallel to the other minimum circumscribing rectangles, it indicates that the direction of the view element corresponding to the minimum circumscribed rectangle is special and cannot represent the direction of the corresponding view; or the minimum circumscribed rectangle has errors during the generation process, in order to improve To calculate the accuracy of the minimum circumscribed rectangle of the angle, the minimum circumscribed rectangle with the error needs to be deleted.
上述设定比例可以根据视图元素的个数进行设置,比如设置为90%或者91%等值。The above setting ratio can be set according to the number of view elements, for example, set to 90% or 91%.
本实施例将出现误差或者不具代表性的最小外接矩形进行删除,可以提高用于计算角度的最小外接矩形的准确性,进而提高相应视图调整的准确性。In this embodiment, the error or the non-representative minimum circumscribed rectangle is deleted, and the accuracy of the minimum circumscribed rectangle for calculating the angle can be improved, thereby improving the accuracy of the corresponding view adjustment.
在一个实施例中,上述根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向的步骤可以包括:In an embodiment, the 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:
根据所述角度旋转视图在显示界面的显示角度;Rotating the display angle of the view on the display interface according to the angle;
在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度,直至将视图调整到目标方向。Upon detecting that the direction of the view does not coincide with the target direction, the view is rotated 90 degrees until the view is adjusted to the target direction.
本实施例中,视图的方向可以设置为视图中任一一个视图元素从顶端至底端的方向,目标方向可以设置为显示界面或者顶端至底端的方向,两者方向一致(将视图调整到目标方向)后,视图中各个视图元素均不会出现倒置、左倾或者右倾等显示偏差。In this embodiment, the direction of the view may be set to the direction of any one of the view elements in the view from the top to the bottom, and the target direction may be set to the display interface or the direction from the top to the bottom, and the directions are the same (adjust the view to the target) After the direction), the display elements in the view will not show deviations such as inversion, left tilt or right tilt.
在一个实施例中,在显示设备显示视图前,还包括:
In an embodiment, before the display device displays the view, the method further includes:
利用图像捕获设备捕获视图资料对应的视图;Capturing a view corresponding to the view material by using an image capture device;
上述识别视图中视图元素的轮廓的步骤前还可以包括:The step of identifying the outline of the view element in the view may further include:
检测视图的各个视图边界,并获取各个视图边界之间的边界比例;Detecting the view boundaries of the view and obtaining the boundary ratio between the boundaries of the views;
判断所述边界比例是否与预设的边界比例一致;Determining whether the boundary ratio is consistent with a preset boundary ratio;
若否,则调整图像捕获设备的捕获位置,直至所述边界比例与预设的边界比例一致。If not, the capture position of the image capture device is adjusted until the boundary ratio matches the preset boundary ratio.
本实施例中,由于视图资料摆放位置或者照相机等图像捕获设备的放置位置等出现偏差,可能导致上述视图资料获取不完整,从而使相应的视图不完整,此时可以根据视图中各个视图边界之间的边界比例进行视图完整性检测,若视图对应的边界比例与预设的边界比例不一致,表明视图的一条或者多条边界与视图资料中的相应边界不对应,上述视图不完整,需要将图像捕获设备移动至目的捕获位置,以获取视图资料的完整视图。上述预设的边界比例可以根据视图资料的原始边界长度进行设置。上述目的捕获位置包括图像捕获设备可以捕获视图资料完整视图的位置,其可以对视图资料的摆放位置进行识别,根据所识别的摆放位置确定目的捕获位置。In this embodiment, due to the deviation of the position of the view data or the placement position of the image capturing device such as the camera, the view data may be incompletely obtained, and the corresponding view may be incomplete. If the view is not consistent with the corresponding boundary in the view data, the view is incomplete and needs to be The image capture device moves to the destination capture location to obtain a complete view of the view material. The preset boundary ratio can be set according to the original boundary length of the view data. The above-mentioned purpose capture location includes a location at which the image capture device can capture a complete view of the view material, which can identify the location of the view material and determine the destination capture location based on the identified placement location.
在一个实施例中,上述视图元素可以包括显示界面显示的文字或者图形。In one embodiment, the view elements described above may include text or graphics displayed by the display interface.
在一个实施例中,上述显示界面可以为矩形,所述参考图形为平行于显示界面一条边的直线。In one embodiment, the display interface may be a rectangle, and the reference pattern is a line parallel to one side of the display interface.
本实施例将平行于矩形显示界面某条边的直线设为参考图形,可以对参考图形进行简化,以提高根据参考图形获取相应角度的效率,从而提高视图的调整效率。In this embodiment, a straight line parallel to an edge of the rectangular display interface is set as a reference graphic, and the reference graphic can be simplified to improve the efficiency of obtaining a corresponding angle according to the reference graphic, 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 of an embodiment, including:
识别模块10,用于在显示设备显示视图过程中,识别视图中视图元素的轮廓;The identification module 10 is configured to identify an outline of the view element in the view during the display of the display device by the display device;
上述视图元素包括文字、图形以及表格中的一种或者多种。上述识别模块10中,可以根据视图各个像素点的灰度信息识别视图中视图元素的轮廓,比如,可以获取任意相邻两个像素点的灰度差,识别上述灰度差大于预设灰度差的各对像素点,根据在相应视图元素最外围的各对灰度差大于预设灰度
差的像素点确定上述视图元素的轮廓。上述预设灰度差可以根据相应视图的背景灰度值和视图元素的灰度值进行设置;若视图元素对应多个灰度值,上述预设灰度差还可以根据视图元素对应多个灰度值进行相应设置。The above view elements include one or more of text, graphics, and tables. In the above identification module 10, the contour of the view element in the view may be identified according to the gray information of each pixel of the view. For example, the gray level difference of any two adjacent pixels may be acquired, and the gray level difference is greater than the preset gray level. Poor pairs of pixels, according to each pair of grayscale differences at the outermost periphery of the corresponding view element is greater than the preset grayscale
The poor pixels determine the outline of the above view elements. The preset gray level difference may be set according to the background gray value of the corresponding view and the gray value of the view element; if the view element corresponds to multiple gray values, the preset gray level difference may also correspond to multiple grays according to the view element. The degree value is set accordingly.
上述视图可以包括一个或者多个视图元素,可以对视图中各个视图元素进行轮廓识别,以生成各个视图元素对应的最小外界矩形;若视图中的视图元素个数较多,则可以对其中一部分视图元素进行轮廓识别以及相应最小外接矩形的生成;上述进行轮廓识别的视图元素可以根据视图元素的总数设定,比如设定为总数的50%至总数之间的任一值等等。The above view may include one or more view elements, and may perform contour recognition on each view element in the view to generate a minimum outer rectangle corresponding to each view element; if the number of view elements in the view is large, one part of the view may be The element performs contour recognition and the generation of the corresponding minimum circumscribed rectangle; the above-mentioned view element for contour recognition may be set according to the total number of view elements, such as setting from 50% of the total to any value between the totals, and the like.
获取模块20,用于获取所述视图元素的轮廓的最小外接矩形;An obtaining module 20, configured to acquire a minimum circumscribed rectangle of an outline of the view element;
上述视图元素可以如图2中的图形101和文字103所示,视图元素的轮廓的最小外接矩形可以如图2中的矩形102和104所示,如图2所示,视图元素的元素方向(图形方向或者文字方向)与相应的最小外接矩形的任一边平行或者垂直。The above view elements may be as shown in the figure 101 and the text 103 in FIG. 2, and the minimum circumscribed rectangle of the outline of the view element may be as shown by the rectangles 102 and 104 in FIG. 2, as shown in FIG. 2, the element direction of the view element ( The graphic direction or text direction is parallel or perpendicular to either side of the corresponding minimum circumscribed rectangle.
计算模块30,用于计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;The calculating module 30 is configured to calculate an angle between the minimum circumscribed rectangle and a preset reference graphic on a display interface of the display device;
上述参考图形可以根据显示界面各边界对应的几何图形进行设置,还可以根据适用于用户预览的方向进行设置,比如设置为垂直于水平面的直线或者矩形等等;若显示界面各边界对应的几何图形为矩形,则上述参考图形还可以设置为与显示界面所所对应矩形平行或者重合的矩形。The reference graphic may be set according to the geometric shape corresponding to each boundary of the display interface, and may also be set according to a direction suitable for the user preview, such as a line or a rectangle perpendicular to the horizontal plane, etc.; if the geometrical shape corresponding to each boundary of the display interface is displayed If it is a rectangle, the above reference pattern may also be set as a rectangle parallel 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 the 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 w is between the minimum circumscribed rectangle and the reference graphic Angle, k is 0, 1, 2 or 3, which corresponds to "*" 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 view in the display interface does not have an inverted, left tilt or right tilt, etc., which affects the user preview effect. Deviation. The above target direction is the direction in which the user obtains the best effect when previewing, that is, the direction of the display direction deviation does not appear in each view element in the view.
本发明提供的视图调整系统,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。The view adjustment system provided by the present invention can identify the outline of the view element in the view during the display view of the display device, obtain the minimum circumscribed rectangle of the outline, and calculate the angle between the minimum circumscribed rectangle and the preset reference figure, This adjusts the display angle of the view on the display interface to adjust the view to the target direction, and has higher adjustment efficiency on the basis of ensuring the view display effect.
在一个实施例中,上述计算模块可以包括:In an embodiment, the calculating module may include:
第一选择模块,用于在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;a first selection module, configured to select one side of the minimum circumscribed rectangle as an adjustment line, and set a direction of the adjustment line according to the view element corresponding to the minimum circumscribed rectangle;
第二选择模块,用于在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向;a second selection module, configured to select one side as a reference line in a reference pattern preset on a display interface of the display device, and set a direction of the reference line according to a relative position of the reference graphic and the display interface;
角度获取模块,用于获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。An angle obtaining module is configured to obtain an angle formed by the adjusting line and the reference line to obtain an 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 pattern, and the angle between the minimum circumscribed rectangle and the reference pattern is determined according to the angle formed by the adjustment line and the reference line, so that the determined angle can be ensured. The accuracy.
在一个实施例中,上述调整模块可以包括:In an embodiment, the adjusting module may include:
旋转模块,用于根据所述角度旋转视图在显示界面的显示角度;a rotation module, configured to rotate a display angle of the view on the display interface according to the angle;
检测模块,用于在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度,直至所述视图将视图调整到目标方向。And a detecting module, configured to rotate the view by 90 degrees when the direction of the view is detected to be inconsistent with the target direction, until the view adjusts the view to the target direction.
本发明提供的视图调整系统与本发明提供的视图调整方法一一对应,在所述视图调整方法的实施例阐述的技术特征及其有益效果均适用于视图调整系统的实施例中,特此声明。The view adjustment system provided by the present invention corresponds to the view adjustment method provided by the present invention. The technical features and advantages of the embodiment of the view adjustment method are applicable to the embodiment of the view adjustment system, and are hereby declared.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本
领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。
The above-described embodiments are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that for this
A person skilled in the art can make several modifications and improvements without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.
Claims (10)
- 一种视图调整方法,其特征在于,包括如下步骤:A view adjustment method, comprising the steps of:在显示设备显示视图过程中,识别视图中视图元素的轮廓;Identifying the outline of the view elements in the view during the display of the display view of the device;获取所述视图元素的轮廓的最小外接矩形;Obtaining a minimum circumscribed rectangle of the outline of the view element;计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;Calculating an angle between the minimum circumscribed rectangle and a preset reference graphic on a display interface of the display device;根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。Adjusting the display angle of the view on the display interface according to the angle, and adjusting the view to the target direction.
- 根据权利要求1所述的视图调整方法,其特征在于,所述计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度的步骤包括:The view adjusting method according to claim 1, wherein the calculating the angle between the minimum circumscribed rectangle and a preset reference pattern on a display interface of the display device comprises:在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;Selecting one side of the minimum circumscribed rectangle as an adjustment line, and setting a direction of the adjustment line according to a view element corresponding to the minimum circumscribed rectangle;在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向;Selecting one side of the reference graphic preset on the display interface of the display device as a reference line, and setting a direction of the reference line according to a relative position of the reference graphic and the display interface;获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。Obtaining an angle formed by the adjustment line and the reference line to obtain an angle between the minimum circumscribed rectangle and the reference figure.
- 根据权利要求1所述的视图调整方法,其特征在于,识别视图中多个视图元素的轮廓;The view adjusting method according to claim 1, wherein an outline of a plurality of view elements in the view is identified;所述获取所述视图元素的轮廓的最小外接矩形的步骤后还包括:The step of acquiring the minimum circumscribed rectangle of the outline of the view element further includes:分别获取相互平行的n个最小外接矩形;其中,n为大于或者等于2的正整数;Obtaining 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 the n in the total number of minimum circumscribed rectangles exceeds the set ratio, the smallest circumscribed rectangle other than the n minimum circumscribed rectangles is deleted.
- 根据权利要求1所述的视图调整方法,其特征在于,所述根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向的步骤包括:The view adjusting method according to claim 1, wherein the 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 comprises:根据所述角度旋转视图在显示界面的显示角度;Rotating the display angle of the view on the display interface according to the angle;在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度, 直至将视图调整到目标方向。Rotating the view 90 degrees when it is detected that the direction of the view does not coincide with the target direction, Until the view is adjusted to the target direction.
- 根据权利要求1至4任一项所述的视图调整方法,其特征在于,在显示设备显示视图前,还包括:The view adjusting method according to any one of claims 1 to 4, further comprising: before the display device displays the view, further comprising:利用图像捕获设备捕获视图资料对应的视图;Capturing a view corresponding to the view material by using an image capture device;所述识别视图中视图元素的轮廓的步骤前还包括:The step of identifying the outline of the view element in the view further includes:检测视图的各个视图边界,并获取各个视图边界之间的边界比例;Detecting the view boundaries of the view and obtaining the boundary ratio between the boundaries of the views;判断所述边界比例是否与预设的边界比例一致;Determining whether the boundary ratio is consistent with a preset boundary ratio;若否,则调整图像捕获设备的捕获位置,直至所述边界比例与预设的边界比例一致。If not, the capture position of the image capture device is adjusted until the boundary ratio matches the preset boundary ratio.
- 根据权利要求1至4任一项所述的视图调整方法,其特征在于,所述视图元素包括显示界面显示的文字或者图形。The view adjusting method according to any one of claims 1 to 4, wherein the view element comprises a text or a graphic displayed on the display interface.
- 根据权利要求1至4任一项所述的视图调整方法,其特征在于,所述显示界面为矩形,所述参考图形为平行于显示界面一条边的直线。The view adjusting method according to any one of claims 1 to 4, wherein the display interface is a rectangle, and the reference pattern is a line parallel to one side of the display interface.
- 一种视图调整系统,其特征在于,包括:A view adjustment system, comprising:识别模块,用于在显示设备显示视图过程中,识别视图中视图元素的轮廓;An identification module, configured to identify an outline of a view element in the view during display of the display device;获取模块,用于获取所述视图元素的轮廓的最小外接矩形;An obtaining module, configured to obtain a minimum circumscribed rectangle of the outline of the view element;计算模块,用于计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;a calculation module, configured to calculate an angle between the minimum circumscribed rectangle and a preset reference graphic on a display interface of the display device;调整模块,用于根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。The adjustment module is configured to adjust a display angle of the view on the display interface according to the angle, and adjust the view to the target direction.
- 根据权利要求8所述的视图调整系统,其特征在于,所述计算模块包括:The view adjustment system according to claim 8, wherein the calculation module comprises:第一选择模块,用于在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;a first selection module, configured to select one side of the minimum circumscribed rectangle as an adjustment line, and set a direction of the adjustment line according to the view element corresponding to the minimum circumscribed rectangle;第二选择模块,用于在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向; a second selection module, configured to select one side as a reference line in a reference pattern preset on a display interface of the display device, and set a direction of the reference line according to a relative position of the reference graphic and the display interface;角度获取模块,用于获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。An angle obtaining module is configured to obtain an angle formed by the adjusting line and the reference line to obtain an angle between the minimum circumscribed rectangle and the reference figure.
- 根据权利要求8所述的视图调整系统,其特征在于,所述调整模块包括:The view adjustment system according to claim 8, wherein the adjustment module comprises:旋转模块,用于根据所述角度旋转视图在显示界面的显示角度;a rotation module, configured to rotate a display angle of the view on the display interface according to the angle;检测模块,用于在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度,直至所述视图将视图调整到目标方向。 And a detecting module, configured to rotate the view by 90 degrees when the direction of the view is detected to be inconsistent with the target direction, until the view adjusts the view to the target direction.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610531917.3A CN106201201B (en) | 2016-07-07 | 2016-07-07 | view adjusting method and system |
CN201610531917.3 | 2016-07-07 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018006566A1 true WO2018006566A1 (en) | 2018-01-11 |
Family
ID=57473004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/113106 WO2018006566A1 (en) | 2016-07-07 | 2016-12-29 | View adjustment method and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106201201B (en) |
WO (1) | WO2018006566A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113034531A (en) * | 2021-04-02 | 2021-06-25 | 广州绿怡信息科技有限公司 | Equipment placement detection method and device |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201201B (en) * | 2016-07-07 | 2019-08-13 | 广州视睿电子科技有限公司 | view adjusting method and system |
CN106600591B (en) * | 2016-12-13 | 2019-12-03 | 上海联影医疗科技有限公司 | A kind of medical image direction display method and device |
CN108536513B (en) * | 2018-03-13 | 2021-06-18 | 维沃移动通信有限公司 | Picture display direction adjusting method and mobile terminal |
CN111563214B (en) * | 2020-04-29 | 2023-05-16 | 北京字节跳动网络技术有限公司 | Reference line processing method and device |
CN111753230B (en) * | 2020-06-12 | 2023-12-19 | 北京字节跳动网络技术有限公司 | Reference line processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103268590A (en) * | 2013-05-06 | 2013-08-28 | 西南大学 | Method for shooting by rotating viewing frame |
WO2013178151A1 (en) * | 2012-08-09 | 2013-12-05 | 中兴通讯股份有限公司 | Screen turnover method and device, and mobile terminal |
CN104122978A (en) * | 2013-04-24 | 2014-10-29 | 国基电子(上海)有限公司 | Display frame adjusting system and method |
US20150169938A1 (en) * | 2013-12-13 | 2015-06-18 | Intel Corporation | Efficient facial landmark tracking using online shape regression method |
CN106201201A (en) * | 2016-07-07 | 2016-12-07 | 广州视睿电子科技有限公司 | view adjusting method and system |
-
2016
- 2016-07-07 CN CN201610531917.3A patent/CN106201201B/en active Active
- 2016-12-29 WO PCT/CN2016/113106 patent/WO2018006566A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013178151A1 (en) * | 2012-08-09 | 2013-12-05 | 中兴通讯股份有限公司 | Screen turnover method and device, and mobile terminal |
CN104122978A (en) * | 2013-04-24 | 2014-10-29 | 国基电子(上海)有限公司 | Display frame adjusting system and method |
CN103268590A (en) * | 2013-05-06 | 2013-08-28 | 西南大学 | Method for shooting by rotating viewing frame |
US20150169938A1 (en) * | 2013-12-13 | 2015-06-18 | Intel Corporation | Efficient facial landmark tracking using online shape regression method |
CN106201201A (en) * | 2016-07-07 | 2016-12-07 | 广州视睿电子科技有限公司 | view adjusting method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113034531A (en) * | 2021-04-02 | 2021-06-25 | 广州绿怡信息科技有限公司 | Equipment placement detection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106201201A (en) | 2016-12-07 |
CN106201201B (en) | 2019-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018006566A1 (en) | View adjustment method and system | |
US7019713B2 (en) | Methods and measurement engine for aligning multi-projector display systems | |
US10798359B2 (en) | Generating hi-res dewarped book images | |
TWI719493B (en) | Image projection system, image projection apparatus and calibrating method for display image thereof | |
AU2017229995B2 (en) | Perspective correction for curved display screens | |
CN107071376B (en) | A kind of projection tiled display bearing calibration and device | |
US8491128B2 (en) | System and method for projection correction by capturing projection image | |
CN111025701B (en) | Curved surface liquid crystal screen detection method | |
CN107464266B (en) | Method, device and equipment for correcting camera calibration parameters and storage medium | |
EP3049947A1 (en) | Systems and methods for three dimensional geometric reconstruction of captured image data | |
JP2008217347A (en) | License plate recognition device, its control method and computer program | |
US9992486B2 (en) | Method of enhanced alignment of two means of projection | |
WO2014045508A1 (en) | Inspection device, inspection method, and inspection program | |
CN108377371A (en) | A kind of method and device of projection image correction | |
TW201533703A (en) | Calibration method of an image capture system | |
JP5919212B2 (en) | Visual verification support device and control method thereof | |
JP2011182397A (en) | Method and apparatus for calculating shift length | |
CN114143519A (en) | Method and device for automatically matching projection image with curtain area and projector | |
WO2023274090A1 (en) | Scanning method and system for portable electronic device, and electronic device and storage medium | |
TWI450155B (en) | Method and system for calculating calibration information for an optical touch apparatus | |
WO2019041652A1 (en) | Image correction method, apparatus and device, and computer readable storage medium | |
JP6099281B2 (en) | Book reading system and book reading method | |
US20220198814A1 (en) | Image dewarping with curved document boundaries | |
CN115983304A (en) | Two-dimensional code dynamic adjustment method and device, electronic equipment and storage medium | |
CN104933430A (en) | Interactive image processing method and interactive image processing system for mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16908070 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16908070 Country of ref document: EP Kind code of ref document: A1 |