WO2018006566A1 - 视图调整方法和*** - Google Patents

视图调整方法和*** Download PDF

Info

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
Application number
PCT/CN2016/113106
Other languages
English (en)
French (fr)
Inventor
黄宝华
梁泰琪
Original Assignee
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视睿电子科技有限公司 filed Critical 广州视睿电子科技有限公司
Publication of WO2018006566A1 publication Critical patent/WO2018006566A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

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

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

Description

视图调整方法和*** 技术领域
本发明涉及多媒体显示技术领域,特别是涉及一种视图调整方法和***。
背景技术
随着多媒体技术的高速发展,人们在工作和生活中使用多媒体技术获取视图资料的需求越来越高。例如,课堂上,老师经常使用扫描仪对试卷或者课本等视图资料进行扫描处理后传输至大屏显示设备进行显示;会议时,发言人将纸质报告通过拍摄等方式进行获取后,实时传输至相关显示设备进行显示,以便参与者可以查看相应的报告内容。
在显示设备显示各类视图资料对应的视图过程中,为了避免相关视图在显示界面中显示位置出现偏差(如倒置、左倾或者右倾等),通常需要在图像捕获设备扫描或者拍照时调整视图资料的摆放位置,或在视图显示过程中根据显示偏差实时调整视图资料的位置。
上述技术方案,虽然可以一定程度上保证相应视图的显示效果,然而视图资料的调整操作较为复杂,容易导致调整效率低。
发明内容
基于此,有必要针对传统方案容易导致调整效率低的技术问题,提供一种视图调整方法和***。
一种视图调整方法,包括如下步骤:
在显示设备显示视图过程中,识别视图中视图元素的轮廓;
获取所述视图元素的轮廓的最小外接矩形;
计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;
根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。
一种视图调整***,包括:
识别模块,用于在显示设备显示视图过程中,识别视图中视图元素的轮廓;
获取模块,用于获取所述视图元素的轮廓的最小外接矩形;
计算模块,用于计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;
调整模块,用于根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。
上述视图调整方法和***,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将上述视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。
附图说明
图1为一个实施例的视图调整方法流程图;
图2为一个实施例的视图元素示意图;
图3为一个实施例的视图调整***结构示意图。
具体实施方式
下面结合附图对本发明的视图调整方法和***的具体实施方式作详细描述。
参考图1,图1所示表示一个实施例的触摸时间获取方法流程图,包括如下步骤:
S10,在显示设备显示视图过程中,识别视图中视图元素的轮廓;
上述视图元素包括文字、图形以及表格中的一种或者多种。上述步骤可以根据视图各个像素点的灰度信息识别视图中视图元素的轮廓,比如,可以获取任意相邻两个像素点的灰度差,识别上述灰度差大于预设灰度差的各对 像素点,根据在相应视图元素最***的各对灰度差大于预设灰度差的像素点确定上述视图元素的轮廓。上述预设灰度差可以根据相应视图的背景灰度值和视图元素的灰度值进行设置;若视图元素对应多个灰度值,上述预设灰度差还可以根据视图元素对应多个灰度值进行相应设置。
上述视图可以包括一个或者多个视图元素,可以对视图中各个视图元素进行轮廓识别,以生成各个视图元素对应的最小外界矩形;若视图中的视图元素个数较多,则可以对其中一部分视图元素进行轮廓识别以及相应最小外接矩形的生成;上述进行轮廓识别的视图元素可以根据视图元素的总数设定,比如设定为总数的50%至总数之间的任一值等等。
S20,获取所述视图元素的轮廓的最小外接矩形;
上述视图元素可以如图2中的图形101和文字103所示,视图元素的轮廓的最小外接矩形可以如图2中的矩形102和104所示,如图2所示,视图元素的元素方向(图形方向或者文字方向)与相应的最小外接矩形的任一边平行或者垂直。
S30,计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;
上述参考图形可以根据显示界面各边界对应的几何图形进行设置,还可以根据适用于用户预览的方向进行设置,比如设置为垂直于水平面的直线或者矩形等等;若显示界面各边界对应的几何图形为矩形,则上述参考图形还可以设置为与显示界面所所对应矩形平行或者重合的矩形。
上述角度的计算过程可以包括:
在最小外接矩形中(若最小外接矩形为多个,则可以在任一个最小外接矩形中)选取一条边作为调整线;
若参考图形包括多个直线或者直线段边,则从上述直线或者直线段边选取一条边作为参考线;
计算所述调整线与参考线之间的夹角,根据上述夹角确定最小外接矩形与参考图形之间的角度;或者分别设置调整线和参考线的方向,计算设置方向后的调整线和参考线所成的角度,以此确定最小外接矩形与参考图形之间 的角度。
S40,根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。
上述步骤中,根据所述角度调整视图在显示界面上的显示角度的过程可以包括:将视图旋转(w+k*90°);其中,上述w为最小外接矩形与参考图形之间的角度,k为0、1、2或者3,符合“*”表示相乘。调整后的视图可以在显示界面的目标方向进行显示,此时视图的方向与显示界面的显示方向一致,即上述视图在显示界面中显示方向或者位置不存在倒置、左倾或者右倾等影响用户预览效果的偏差。上述目标方向为用户预览时获得最佳效果的方向,即视图中的各个视图元素均不会出现显示方向偏差的方向。
本实施例提供的视图调整方法,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。
在一个实施例中,上述计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度的步骤可以包括:
在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;
在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向;
获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。
上述调整线的方向可以设置为视图元素顶端至底端的方向,上述参考线的方向可以设置为显示界面端顶端至底端的方向,旋转视图在显示界面的显示角度,当调整线的方向与参考线的方向完全相同时,视图被调整到目标方向。
本实施例分别在最小外接矩形中选择调整线,在参考图形中选择参考线, 根据上述调整线和参考线所成的角度确定最小外接矩形与参考图形之间的角度,可以保证所确定的角度的准确性。
在一个实施例中,可以识别视图中多个视图元素的轮廓;
所述获取所述视图元素的轮廓的最小外接矩形的步骤后还可以包括:
分别获取相互平行的n个最小外接矩形;其中,n为大于或者等于2的正整数;
当所述n在最小外接矩形总数中的比例超过设定比例时,删除n个最小外接矩形以外的最小外接矩形。
通常情况下,视图中各个视图元素的方向是一致的,因此多个视图元素分别对应的最小外接矩形相互平行。若其中存在与其他最小外接矩形不平行的最小外接矩形,表明该最小外接矩形所对应的视图元素方向特殊,不能代表相应视图的方向;或者该最小外接矩形在生成过程中出现误差,为了提高用于计算角度的最小外接矩形的准确性,需要将出现误差的最小外接矩形进行删除。
上述设定比例可以根据视图元素的个数进行设置,比如设置为90%或者91%等值。
本实施例将出现误差或者不具代表性的最小外接矩形进行删除,可以提高用于计算角度的最小外接矩形的准确性,进而提高相应视图调整的准确性。
在一个实施例中,上述根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向的步骤可以包括:
根据所述角度旋转视图在显示界面的显示角度;
在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度,直至将视图调整到目标方向。
本实施例中,视图的方向可以设置为视图中任一一个视图元素从顶端至底端的方向,目标方向可以设置为显示界面或者顶端至底端的方向,两者方向一致(将视图调整到目标方向)后,视图中各个视图元素均不会出现倒置、左倾或者右倾等显示偏差。
在一个实施例中,在显示设备显示视图前,还包括:
利用图像捕获设备捕获视图资料对应的视图;
上述识别视图中视图元素的轮廓的步骤前还可以包括:
检测视图的各个视图边界,并获取各个视图边界之间的边界比例;
判断所述边界比例是否与预设的边界比例一致;
若否,则调整图像捕获设备的捕获位置,直至所述边界比例与预设的边界比例一致。
本实施例中,由于视图资料摆放位置或者照相机等图像捕获设备的放置位置等出现偏差,可能导致上述视图资料获取不完整,从而使相应的视图不完整,此时可以根据视图中各个视图边界之间的边界比例进行视图完整性检测,若视图对应的边界比例与预设的边界比例不一致,表明视图的一条或者多条边界与视图资料中的相应边界不对应,上述视图不完整,需要将图像捕获设备移动至目的捕获位置,以获取视图资料的完整视图。上述预设的边界比例可以根据视图资料的原始边界长度进行设置。上述目的捕获位置包括图像捕获设备可以捕获视图资料完整视图的位置,其可以对视图资料的摆放位置进行识别,根据所识别的摆放位置确定目的捕获位置。
在一个实施例中,上述视图元素可以包括显示界面显示的文字或者图形。
在一个实施例中,上述显示界面可以为矩形,所述参考图形为平行于显示界面一条边的直线。
本实施例将平行于矩形显示界面某条边的直线设为参考图形,可以对参考图形进行简化,以提高根据参考图形获取相应角度的效率,从而提高视图的调整效率。
参考图3,图3所示为一个实施例的视图调整***结构示意图,包括:
识别模块10,用于在显示设备显示视图过程中,识别视图中视图元素的轮廓;
上述视图元素包括文字、图形以及表格中的一种或者多种。上述识别模块10中,可以根据视图各个像素点的灰度信息识别视图中视图元素的轮廓,比如,可以获取任意相邻两个像素点的灰度差,识别上述灰度差大于预设灰度差的各对像素点,根据在相应视图元素最***的各对灰度差大于预设灰度 差的像素点确定上述视图元素的轮廓。上述预设灰度差可以根据相应视图的背景灰度值和视图元素的灰度值进行设置;若视图元素对应多个灰度值,上述预设灰度差还可以根据视图元素对应多个灰度值进行相应设置。
上述视图可以包括一个或者多个视图元素,可以对视图中各个视图元素进行轮廓识别,以生成各个视图元素对应的最小外界矩形;若视图中的视图元素个数较多,则可以对其中一部分视图元素进行轮廓识别以及相应最小外接矩形的生成;上述进行轮廓识别的视图元素可以根据视图元素的总数设定,比如设定为总数的50%至总数之间的任一值等等。
获取模块20,用于获取所述视图元素的轮廓的最小外接矩形;
上述视图元素可以如图2中的图形101和文字103所示,视图元素的轮廓的最小外接矩形可以如图2中的矩形102和104所示,如图2所示,视图元素的元素方向(图形方向或者文字方向)与相应的最小外接矩形的任一边平行或者垂直。
计算模块30,用于计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;
上述参考图形可以根据显示界面各边界对应的几何图形进行设置,还可以根据适用于用户预览的方向进行设置,比如设置为垂直于水平面的直线或者矩形等等;若显示界面各边界对应的几何图形为矩形,则上述参考图形还可以设置为与显示界面所所对应矩形平行或者重合的矩形。
调整模块40,用于根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。
上述调整模块40中,根据所述角度调整视图在显示界面上的显示角度的过程可以包括:将视图旋转(w+k*90°);其中,上述w为最小外接矩形与参考图形之间的角度,k为0、1、2或者3,符合“*”表示相乘。调整后的视图可以在显示界面的目标方向进行显示,此时视图的方向与显示界面的显示方向一致,即上述视图在显示界面中显示方向或者位置不存在倒置、左倾或者右倾等影响用户预览效果的偏差。上述目标方向为用户预览时获得最佳效果的方向,即视图中的各个视图元素均不会出现显示方向偏差的方向。
本发明提供的视图调整***,可以在显示设备显示视图过程中,识别视图中视图元素的轮廓,获取上述轮廓的最小外接矩形,进而计算最小外接矩形与预设的参考图形之间的角度,以此调整视图在显示界面上的显示角度,以将视图调整到目标方向,在保证视图显示效果的基础上,具有较高的调整效率。
在一个实施例中,上述计算模块可以包括:
第一选择模块,用于在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;
第二选择模块,用于在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向;
角度获取模块,用于获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。
本实施例分别在最小外接矩形中选择调整线,在参考图形中选择参考线,根据上述调整线和参考线所成的角度确定最小外接矩形与参考图形之间的角度,可以保证所确定的角度的准确性。
在一个实施例中,上述调整模块可以包括:
旋转模块,用于根据所述角度旋转视图在显示界面的显示角度;
检测模块,用于在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度,直至所述视图将视图调整到目标方向。
本发明提供的视图调整***与本发明提供的视图调整方法一一对应,在所述视图调整方法的实施例阐述的技术特征及其有益效果均适用于视图调整***的实施例中,特此声明。
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本 领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种视图调整方法,其特征在于,包括如下步骤:
    在显示设备显示视图过程中,识别视图中视图元素的轮廓;
    获取所述视图元素的轮廓的最小外接矩形;
    计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;
    根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。
  2. 根据权利要求1所述的视图调整方法,其特征在于,所述计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度的步骤包括:
    在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;
    在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向;
    获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。
  3. 根据权利要求1所述的视图调整方法,其特征在于,识别视图中多个视图元素的轮廓;
    所述获取所述视图元素的轮廓的最小外接矩形的步骤后还包括:
    分别获取相互平行的n个最小外接矩形;其中,n为大于或者等于2的正整数;
    当所述n在最小外接矩形总数中的比例超过设定比例时,删除n个最小外接矩形以外的最小外接矩形。
  4. 根据权利要求1所述的视图调整方法,其特征在于,所述根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向的步骤包括:
    根据所述角度旋转视图在显示界面的显示角度;
    在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度, 直至将视图调整到目标方向。
  5. 根据权利要求1至4任一项所述的视图调整方法,其特征在于,在显示设备显示视图前,还包括:
    利用图像捕获设备捕获视图资料对应的视图;
    所述识别视图中视图元素的轮廓的步骤前还包括:
    检测视图的各个视图边界,并获取各个视图边界之间的边界比例;
    判断所述边界比例是否与预设的边界比例一致;
    若否,则调整图像捕获设备的捕获位置,直至所述边界比例与预设的边界比例一致。
  6. 根据权利要求1至4任一项所述的视图调整方法,其特征在于,所述视图元素包括显示界面显示的文字或者图形。
  7. 根据权利要求1至4任一项所述的视图调整方法,其特征在于,所述显示界面为矩形,所述参考图形为平行于显示界面一条边的直线。
  8. 一种视图调整***,其特征在于,包括:
    识别模块,用于在显示设备显示视图过程中,识别视图中视图元素的轮廓;
    获取模块,用于获取所述视图元素的轮廓的最小外接矩形;
    计算模块,用于计算所述最小外接矩形与显示设备的显示界面上预设的参考图形之间的角度;
    调整模块,用于根据所述角度调整视图在显示界面上的显示角度,将视图调整到目标方向。
  9. 根据权利要求8所述的视图调整***,其特征在于,所述计算模块包括:
    第一选择模块,用于在所述最小外接矩形中选择一边作为调整线,并根据所述最小外接矩形对应的视图元素设置调整线的方向;
    第二选择模块,用于在显示设备的显示界面上预设的参考图形中选择一边作为参考线,根据所述参考图形与显示界面的相对位置设置所述参考线的方向;
    角度获取模块,用于获取所述调整线与参考线所成的角,得到最小外接矩形与参考图形之间的角度。
  10. 根据权利要求8所述的视图调整***,其特征在于,所述调整模块包括:
    旋转模块,用于根据所述角度旋转视图在显示界面的显示角度;
    检测模块,用于在检测到所述视图的方向与目标方向不一致时,将所述视图旋转90度,直至所述视图将视图调整到目标方向。
PCT/CN2016/113106 2016-07-07 2016-12-29 视图调整方法和*** WO2018006566A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610531917.3A CN106201201B (zh) 2016-07-07 2016-07-07 视图调整方法和***
CN201610531917.3 2016-07-07

Publications (1)

Publication Number Publication Date
WO2018006566A1 true WO2018006566A1 (zh) 2018-01-11

Family

ID=57473004

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113106 WO2018006566A1 (zh) 2016-07-07 2016-12-29 视图调整方法和***

Country Status (2)

Country Link
CN (1) CN106201201B (zh)
WO (1) WO2018006566A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113034531A (zh) * 2021-04-02 2021-06-25 广州绿怡信息科技有限公司 设备摆放检测方法及装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201201B (zh) * 2016-07-07 2019-08-13 广州视睿电子科技有限公司 视图调整方法和***
CN106600591B (zh) * 2016-12-13 2019-12-03 上海联影医疗科技有限公司 一种医学图像方位显示方法及装置
CN108536513B (zh) * 2018-03-13 2021-06-18 维沃移动通信有限公司 一种图片显示方向调整方法及移动终端
CN111563214B (zh) * 2020-04-29 2023-05-16 北京字节跳动网络技术有限公司 参考线处理方法及装置
CN111753230B (zh) * 2020-06-12 2023-12-19 北京字节跳动网络技术有限公司 参考线处理方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268590A (zh) * 2013-05-06 2013-08-28 西南大学 一种可旋转取景框的拍照处理方法
WO2013178151A1 (zh) * 2012-08-09 2013-12-05 中兴通讯股份有限公司 屏幕翻转方法及装置、移动终端
CN104122978A (zh) * 2013-04-24 2014-10-29 国基电子(上海)有限公司 显示画面调整***及方法
US20150169938A1 (en) * 2013-12-13 2015-06-18 Intel Corporation Efficient facial landmark tracking using online shape regression method
CN106201201A (zh) * 2016-07-07 2016-12-07 广州视睿电子科技有限公司 视图调整方法和***

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013178151A1 (zh) * 2012-08-09 2013-12-05 中兴通讯股份有限公司 屏幕翻转方法及装置、移动终端
CN104122978A (zh) * 2013-04-24 2014-10-29 国基电子(上海)有限公司 显示画面调整***及方法
CN103268590A (zh) * 2013-05-06 2013-08-28 西南大学 一种可旋转取景框的拍照处理方法
US20150169938A1 (en) * 2013-12-13 2015-06-18 Intel Corporation Efficient facial landmark tracking using online shape regression method
CN106201201A (zh) * 2016-07-07 2016-12-07 广州视睿电子科技有限公司 视图调整方法和***

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113034531A (zh) * 2021-04-02 2021-06-25 广州绿怡信息科技有限公司 设备摆放检测方法及装置

Also Published As

Publication number Publication date
CN106201201B (zh) 2019-08-13
CN106201201A (zh) 2016-12-07

Similar Documents

Publication Publication Date Title
WO2018006566A1 (zh) 视图调整方法和***
US7019713B2 (en) Methods and measurement engine for aligning multi-projector display systems
US10798359B2 (en) Generating hi-res dewarped book images
AU2017229995B2 (en) Perspective correction for curved display screens
CN107071376B (zh) 一种投影拼接显示校正方法及装置
TWI719493B (zh) 投影系統、投影裝置以及其顯示影像的校正方法
US20150093018A1 (en) Systems and methods for three dimensional geometric reconstruction of captured image data
TWI439788B (zh) 投影校正系統及方法
CN111025701B (zh) 一种曲面液晶屏幕检测方法
CN107464266B (zh) 摄像机标定参数的校正方法、装置、设备和存储介质
CN112272292B (zh) 投影校正方法、装置和存储介质
JP2008217347A (ja) ナンバープレート認識装置、その制御方法、コンピュータプログラム
US9992486B2 (en) Method of enhanced alignment of two means of projection
WO2014045508A1 (ja) 検査装置、検査方法、および検査プログラム
CN108377371A (zh) 一种投影图像校正的方法及装置
JP5919212B2 (ja) 目視照合支援装置およびその制御方法
TWI520099B (zh) 影像擷取系統的校正方法
JP2011182397A (ja) ずれ量算出方法およびずれ量算出装置
WO2018072334A1 (zh) 一种电子元件定位方法及装置
CN114143519A (zh) 投影图像自动匹配幕布区域的方法及装置,投影仪
Finlayson et al. Color homography color correction
WO2019041652A1 (zh) 图像校正方法、装置、设备和计算机可读存储介质
JP6099281B2 (ja) 書籍読み取りシステム及び書籍読み取り方法
TWI450155B (zh) 應用於光學式觸控裝置之校正資訊計算方法及系統
CN115983304A (zh) 一种二维码动态调整方法、装置、电子设备及存储介质

Legal Events

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

Ref document number: 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