[go: up one dir, main page]

CN105913060A - Picture correction method and device and intelligent device - Google Patents

Picture correction method and device and intelligent device Download PDF

Info

Publication number
CN105913060A
CN105913060A CN201610285287.6A CN201610285287A CN105913060A CN 105913060 A CN105913060 A CN 105913060A CN 201610285287 A CN201610285287 A CN 201610285287A CN 105913060 A CN105913060 A CN 105913060A
Authority
CN
China
Prior art keywords
picture
characters
character
line
correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610285287.6A
Other languages
Chinese (zh)
Inventor
张学磊
张樱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201610285287.6A priority Critical patent/CN105913060A/en
Publication of CN105913060A publication Critical patent/CN105913060A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/146Aligning or centring of the image pick-up or image-field
    • G06V30/1475Inclination or skew detection or correction of characters or of image to be recognised
    • G06V30/1478Inclination or skew detection or correction of characters or of image to be recognised of characters or characters lines

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The invention is suitable for the technical field of intelligent equipment, and provides a picture correction method, a picture correction device and intelligent equipment, wherein the correction method comprises the following steps: acquiring a picture shot by a camera under the photographing question-asking function; and rotating the picture according to the direction of any line of characters in the picture, so that the characters in the rotated picture are parallel to the upper boundary/lower boundary of the display screen, and the tops of the characters face upwards. The invention solves the problem of the direction inclination of the characters in the picture, thereby reducing the difficulty of question identification and interception in the photographing question function and improving the accuracy of question identification.

Description

图片的校正方法、装置及智能设备Image correction method, device and intelligent device

技术领域technical field

本发明属于智能设备技术领域,尤其涉及一种图片的校正方法、装置及智能设备。The invention belongs to the technical field of intelligent equipment, and in particular relates to a picture correction method, device and intelligent equipment.

背景技术Background technique

现有的拍照提问步骤包括:获取拍摄的图片——从图片中截取题目——上传题目——搜索匹配题目——反馈答案。然而,当用户拍摄的方向倾斜时,所述得到的照片也会倾斜,照片中的字符通常是没有平行于显示屏的上下边界的,对此类倾斜的照片进行题目识别及截取的难度大,题目识别的准确度低,有时候甚至无法识别出题目。The existing photo-taking questioning steps include: obtaining a photographed picture - intercepting a question from the picture - uploading a question - searching for a matching question - giving back an answer. However, when the direction in which the user shoots is tilted, the obtained photos will also be tilted. The characters in the photos are usually not parallel to the upper and lower boundaries of the display screen. It is difficult to identify and intercept the title of such tilted photos. The accuracy of topic recognition is low, and sometimes the topic cannot even be recognized.

发明内容Contents of the invention

鉴于此,本发明实施例提供一种图片的校正方法、装置及智能设备,以解决图片中字符的方向倾斜的问题。In view of this, embodiments of the present invention provide a picture correction method, device, and smart device to solve the problem of inclination of characters in the picture.

第一方面,提供了一种图片的校正方法,所述校正方法包括:In a first aspect, a method for correcting a picture is provided, and the correction method includes:

在拍照提问功能下,获取相机拍摄的图片;Under the function of taking pictures and asking questions, obtain the pictures taken by the camera;

根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上。The picture is rotated according to the direction of any line of characters in the picture, so that the characters in the picture after rotation are parallel to the upper boundary/lower boundary of the display screen and the tops of the characters face upward.

第二方面,提供了一种图片的校正装置,所述校正装置包括:In a second aspect, a picture correction device is provided, and the correction device includes:

获取模块,用于在拍照提问功能下,获取相机拍摄的图片;The obtaining module is used to obtain the pictures taken by the camera under the function of taking photos and asking questions;

校正模块,用于根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上。A correction module, configured to rotate the picture according to the direction of any row of characters in the picture, so that the characters in the rotated picture are parallel to the upper boundary/lower boundary of the display screen and the tops of the characters face upward.

第三方面,提供了一种智能设备,所述智能设备包括如上所述的图片的校正装置。In a third aspect, a smart device is provided, and the smart device includes the above-mentioned image correction apparatus.

与现有技术相比,本发明实施例在拍照提问功能的拍照环节中增加了对图片方向的校正;通过在拍照提问功能下,获取相机拍摄的图片;然后根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上,从而解决了图片的方向倾斜的问题,使得旋转后的图片中的字符为人眼视觉的正方向,进而降低了拍照提问功能中题目识别及截取的难度,提高了题目识别的准确度。Compared with the prior art, the embodiment of the present invention adds a correction to the direction of the picture in the photographing link of the photographing and questioning function; by obtaining the picture taken by the camera under the photographing and asking function; and then according to any line of characters in the picture Rotate the picture in the direction so that the characters in the rotated picture are parallel to the upper/lower border of the display screen and the top of the character faces upwards, thus solving the problem of tilting the direction of the picture, so that the rotated The characters in the picture are in the positive direction of human vision, which reduces the difficulty of identifying and intercepting questions in the photo-taking and questioning function, and improves the accuracy of question recognition.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without creative work.

图1是本发明实施例提供的图片的校正方法的实现流程图;FIG. 1 is a flow chart of an implementation of a method for correcting pictures provided by an embodiment of the present invention;

图2是本发明另一实施例提供的图片的校正方法的实现流程图;Fig. 2 is an implementation flowchart of a picture correction method provided by another embodiment of the present invention;

图3是本发明实施例提供的图片的校正装置的组成结构图。FIG. 3 is a structural diagram of a picture correction device provided by an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例在拍照提问功能的拍照环节中增加了对图片方向的校正;通过在拍照提问功能下,获取相机拍摄的图片;然后根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上,从而解决了图片的方向倾斜的问题,使得旋转后的图片中的字符为人眼视觉的正方向,进而降低了拍照提问功能中题目识别及截取的难度,提高了题目识别的准确度。本发明实施例还提供了相应的装置,以下分别进行详细的说明。In the embodiment of the present invention, the correction of the direction of the picture is added in the photographing link of the photographing and questioning function; by obtaining the picture taken by the camera under the photographing and asking function; and then rotating the picture according to the direction of any line of characters in the picture, so as to Make the characters in the rotated picture parallel to the upper boundary/lower boundary of the display screen and the top of the characters face up, thus solving the problem of tilting the direction of the picture, so that the characters in the rotated picture can be seen by human eyes The positive direction, thereby reducing the difficulty of topic identification and interception in the photo-questioning function, and improving the accuracy of topic identification. Embodiments of the present invention also provide corresponding devices, which will be described in detail below.

图1示出了本发明实施例提供的图片的校正方法的实现流程。FIG. 1 shows the implementation flow of a method for correcting a picture provided by an embodiment of the present invention.

在本发明实施例中,所述方法应用于智能设备,所述智能设备包括但不限于智能手机、平板电脑、计算机、家教机等。所述智能设备上设置有相机,能够进行拍摄并获取图片。In the embodiment of the present invention, the method is applied to a smart device, and the smart device includes but is not limited to a smart phone, a tablet computer, a computer, a tutor machine, and the like. The smart device is provided with a camera capable of taking pictures and obtaining pictures.

参阅图1,所述校正方法包括:Referring to Fig. 1, the correction method includes:

在步骤S101中,在拍照提问功能下,获取相机拍摄的图片。In step S101, under the function of taking pictures and asking questions, the pictures taken by the camera are acquired.

本发明实施例在智能设备启动拍照提问功能时,启动相机以供用户拍摄待提问的题目。智能设备根据用户的操作进行拍摄,得到包含待提问的题目的图片。In the embodiment of the present invention, when the smart device activates the function of photographing and asking questions, the camera is activated for the user to take pictures of the questions to be asked. The smart device takes pictures according to the user's operation, and obtains a picture containing the question to be asked.

在步骤S102中,根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上。In step S102, the picture is rotated according to the direction of any row of characters in the picture, so that the characters in the rotated picture are parallel to the upper boundary/lower boundary of the display screen and the tops of the characters face upward.

在这里,图片中每行字符的倾斜方向都是一致的,且所述倾斜方向同时也是整个图片的倾斜方向。因此,本发明实施例根据图片中任意一行字符的倾斜方向来旋转所述图片,直至旋转后的所述图片中的该行字符为人眼视觉中的正方向。本发明定义所述正方向为字符平行于显示屏的上边界/下边界且顶部的朝向上;从而解决了图片的方向倾斜的问题。当所述图片中的字符为人眼视觉中的正方向时,进一步地降低了拍照提问功能中题目识别及截取的难度,且提高了题目识别的准确度。Here, the inclination direction of each row of characters in the picture is consistent, and the inclination direction is also the inclination direction of the entire picture. Therefore, the embodiment of the present invention rotates the picture according to the tilt direction of any line of characters in the picture until the line of characters in the rotated picture is in the positive direction in human vision. The present invention defines that the positive direction is that the characters are parallel to the upper boundary/lower boundary of the display screen and the top faces upward; thus solving the problem that the direction of the picture is tilted. When the characters in the picture are in the positive direction of human vision, it further reduces the difficulty of topic identification and interception in the photo-taking and questioning function, and improves the accuracy of topic identification.

图2示出了本发明另一实施例提供的图片的校正方法的实现流程。FIG. 2 shows the implementation flow of a method for correcting pictures provided by another embodiment of the present invention.

参阅图2,所述校正方法包括:Referring to Figure 2, the correction method includes:

在步骤S201中,在拍照提问功能下,获取相机拍摄的图片。In step S201, under the function of taking pictures and asking questions, the pictures taken by the camera are acquired.

在步骤S202中,根据字符间距和行间距获取所述图片中的任意一行字符。In step S202, any line of characters in the picture is obtained according to the character spacing and the line spacing.

在步骤S203中,获取所述行中的每一个字符对应的像素点。In step S203, the pixel corresponding to each character in the row is obtained.

在步骤S204中,根据所述字符间距将所述像素点连接起来,得到所述行对应的线段。In step S204, the pixel points are connected according to the character spacing to obtain a line segment corresponding to the row.

本发明实施例在获取到所述图片中的任意一行中的字符后,获取所述行中的每一个字符对应的像素点;然后根据所述字符间距将所述像素点连接起来,近似成一条宽度较大的线段,从而得到所述行对应的线段。所述线段与所述行平行,表示了所述行的倾斜方向。In the embodiment of the present invention, after obtaining the characters in any row in the picture, obtain the pixel points corresponding to each character in the row; then connect the pixel points according to the character spacing to approximate a line The line segment with the larger width, so that the line segment corresponding to the row is obtained. The line segment is parallel to the row, indicating the direction of inclination of the row.

在步骤S205中,旋转所述图片,直至所述线段平行于显示屏的上边界/下边界且所述字符的顶部朝向上。In step S205, the picture is rotated until the line segment is parallel to the upper boundary/lower boundary of the display screen and the top of the character faces upward.

在这里,可以按照顺时针或者逆时针的方向旋转整个图片,直至所述图片中的所述线段平行于显示屏的上边界/下边界且所述图片中的字符的顶部朝向上,即图片中的字符方向为人眼视觉中的正方向;从而解决了图片的方向倾斜的问题。当所述图片中的字符为人眼视觉中的正方向时,进一步降低了拍照提问功能中题目识别及截取的难度,提高了题目识别的准确度。Here, the entire picture can be rotated clockwise or counterclockwise until the line segments in the picture are parallel to the upper/lower boundaries of the display screen and the tops of the characters in the picture face upwards, that is, in the picture The direction of the character is the positive direction in human vision; thus solving the problem of the direction of the picture being tilted. When the characters in the picture are in the positive direction of human vision, the difficulty of topic identification and interception in the photo-taking and questioning function is further reduced, and the accuracy of topic identification is improved.

作为本发明的另一个优选示例,在图1或图2实施例所述的图片的校正方法中,所述校正方法还可以包括:As another preferred example of the present invention, in the picture correction method described in the embodiment of Fig. 1 or Fig. 2, the correction method may further include:

显示旋转后的所述图片。Display the picture after rotation.

本发明示例通过显示旋转后的图片,使得用户能够对字符方向的校正效果进行预览,且方便了用户查验、确认所拍摄的待提问的题目。The example of the present invention enables the user to preview the correction effect of the character direction by displaying the rotated picture, and facilitates the user to check and confirm the photographed questions to be asked.

需要说明的是,本发明上述图1和图2实施例中所述的字符包括但不限于文字、字母或者数字。It should be noted that the characters described in the embodiments of FIG. 1 and FIG. 2 of the present invention include but are not limited to characters, letters or numbers.

综上所述,本发明实施例在拍照提问功能的拍照环节中增加了对图片方向的校正;通过在拍照提问功能下,获取相机拍摄的图片;然后根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上,从而解决了图片的方向倾斜的问题,使得旋转后的图片中的字符为人眼视觉的正方向,进而降低了拍照提问功能中题目识别及截取的难度,提高了题目识别的准确度。In summary, the embodiment of the present invention adds a correction to the direction of the picture in the photographing link of the photographing and questioning function; by obtaining the picture taken by the camera under the photographing and asking function; and then rotating according to the direction of any line of characters in the picture The picture, so that the characters in the rotated picture are parallel to the upper boundary/lower boundary of the display screen and the top of the character is facing upward, thereby solving the problem of the direction of the picture being tilted, so that the rotated picture is The characters are the positive direction of human vision, which reduces the difficulty of question recognition and interception in the photo-question function, and improves the accuracy of question recognition.

图3示出了本发明实施例提供的图片的校正装置的组成结构,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 3 shows the composition and structure of the image correction apparatus provided by the embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown.

在本发明实施例中,所述图片的校正装置用于实现上述图1或图2实施例中所述的图片的校正方法,可以是内置于智能设备的软件单元、硬件单元或者软硬件结合的单元。所述智能设备包括但不限于智能手机、平板电脑、计算机、家教机等。所述智能设备上设置有相机,能够进行拍摄并获取图片。In the embodiment of the present invention, the picture correction device is used to realize the picture correction method described in the embodiment of Fig. 1 or Fig. 2 above, which may be a software unit, a hardware unit or a combination of software and hardware built into the smart device unit. The smart devices include, but are not limited to, smart phones, tablet computers, computers, tutoring machines, and the like. The smart device is provided with a camera capable of taking pictures and obtaining pictures.

参阅图3,所述校正装置包括:Referring to Figure 3, the correction device includes:

获取模块31,用于在拍照提问功能下,获取相机拍摄的图片;Obtaining module 31, used for obtaining the picture taken by the camera under the function of taking pictures and asking questions;

校正模块32,用于根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上。A correction module 32, configured to rotate the picture according to the direction of any row of characters in the picture, so that the characters in the rotated picture are parallel to the upper boundary/lower boundary of the display screen and the tops of the characters face upward .

进一步地,所述校正模块32包括:Further, the correction module 32 includes:

第一获取单元321,用于根据字符间距和行间距获取所述图片中的任意一行字符;The first acquisition unit 321 is configured to acquire any line of characters in the picture according to the character spacing and the line spacing;

第二获取单元322,用于获取所述行中的每一个字符对应的像素点;The second acquiring unit 322 is configured to acquire the pixel points corresponding to each character in the row;

连接单元323,用于根据所述字符间距将所述像素点连接起来,得到所述行对应的线段;A connecting unit 323, configured to connect the pixel points according to the character spacing to obtain the line segment corresponding to the row;

旋转单元324,用于旋转所述图片,直至所述线段平行于显示屏的上边界/下边界且所述字符的顶部朝向上。The rotation unit 324 is configured to rotate the picture until the line segment is parallel to the upper boundary/lower boundary of the display screen and the top of the character faces upward.

进一步地,所述校正装置还包括:Further, the correction device also includes:

显示模块33,用于显示旋转后的所述图片。The display module 33 is configured to display the rotated picture.

本发明示例通过显示旋转后的图片,使得用户能够对字符方向的校正效果进行预览,且方便了用户查验、确认所拍摄的待提问的题目。The example of the present invention enables the user to preview the correction effect of the character direction by displaying the rotated picture, and facilitates the user to check and confirm the photographed questions to be asked.

在这里,本发明实施例所述字符包括但不限于文字、字母或者数字。Here, the characters described in the embodiment of the present invention include but not limited to words, letters or numbers.

需要说明的是,本发明实施例中的装置可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实例中的相关描述,此处不再赘述。It should be noted that the device in the embodiment of the present invention can be used to realize all the technical solutions in the above method embodiment, and the functions of each functional module can be realized according to the method in the above method embodiment, and the specific implementation process can refer to Relevant descriptions in the above examples will not be repeated here.

本发明实施例在拍照提问功能的拍照环节中增加了对图片方向的校正;通过在拍照提问功能下,获取相机拍摄的图片;然后根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上,从而解决了图片的方向倾斜的问题,使得旋转后的图片中的字符为人眼视觉的正方向,进而降低了拍照提问功能中题目识别及截取的难度,提高了题目识别的准确度。In the embodiment of the present invention, the correction of the direction of the picture is added in the photographing link of the photographing and questioning function; by obtaining the picture taken by the camera under the photographing and asking function; and then rotating the picture according to the direction of any line of characters in the picture, so as to Make the characters in the rotated picture parallel to the upper boundary/lower boundary of the display screen and the top of the characters face up, thus solving the problem of tilting the direction of the picture, so that the characters in the rotated picture can be seen by human eyes The positive direction, thereby reducing the difficulty of topic identification and interception in the photo-questioning function, and improving the accuracy of topic identification.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and units can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的图片的校正方法、装置及智能设备,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块、单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed image correction method, device and smart device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules and units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元、模块单独物理存在,也可以两个或两个以上单元、模块集成在一个单元中。In addition, each functional unit and module in each embodiment of the present invention may be integrated into one processing unit, each unit or module may exist separately physically, or two or more units or modules may be integrated into one unit .

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (9)

1.一种图片的校正方法,其特征在于,所述校正方法包括:1. A correction method for a picture, characterized in that the correction method comprises: 在拍照提问功能下,获取相机拍摄的图片;Under the function of taking pictures and asking questions, obtain the pictures taken by the camera; 根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上。The picture is rotated according to the direction of any line of characters in the picture, so that the characters in the picture after rotation are parallel to the upper boundary/lower boundary of the display screen and the tops of the characters face upward. 2.如权利要求1所述的图片的校正方法,其特征在于,所述根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上包括:2. The method for correcting a picture according to claim 1, wherein the picture is rotated according to the direction of any line of characters in the picture, so that the characters in the picture after rotation are parallel to the display screen An upper/lower border with the top of the character facing up includes: 根据字符间距和行间距获取所述图片中的任意一行字符;Obtain any line of characters in the picture according to the character spacing and the line spacing; 获取所述行中的每一个字符对应的像素点;Obtain the pixel corresponding to each character in the row; 根据所述字符间距将所述像素点连接起来,得到所述行对应的线段;Connecting the pixel points according to the character spacing to obtain a line segment corresponding to the row; 旋转所述图片,直至所述线段平行于显示屏的上边界/下边界且所述字符的顶部朝向上。Rotate the picture until the line segments are parallel to the top/bottom border of the display and the top of the character is facing up. 3.如权利要求1或2所述的图片的校正方法,其特征在于,所述校正方法还包括:3. The correction method of the picture as claimed in claim 1 or 2, is characterized in that, described correction method also comprises: 显示旋转后的所述图片。Display the picture after rotation. 4.如权利要求1或2所述的图片的校正方法,其特征在于,所述字符为文字、字母或者数字。4. The method for correcting pictures according to claim 1 or 2, wherein the characters are characters, letters or numbers. 5.一种图片的校正装置,其特征在于,所述校正装置包括:5. A correction device for a picture, characterized in that the correction device comprises: 获取模块,用于在拍照提问功能下,获取相机拍摄的图片;The obtaining module is used to obtain the pictures taken by the camera under the function of taking photos and asking questions; 校正模块,用于根据所述图片中任意一行字符的方向旋转所述图片,以使得旋转后的所述图片中的字符平行于显示屏的上边界/下边界且所述字符的顶部朝向上。A correction module, configured to rotate the picture according to the direction of any row of characters in the picture, so that the characters in the rotated picture are parallel to the upper boundary/lower boundary of the display screen and the tops of the characters face upward. 6.如权利要求5所述的图片的校正装置,其特征在于,所述校正模块包括:6. The correction device of the picture as claimed in claim 5, is characterized in that, described correction module comprises: 第一获取单元,用于根据字符间距和行间距获取所述图片中的任意一行字符;a first acquisition unit, configured to acquire any line of characters in the picture according to the character spacing and the line spacing; 第二获取单元,用于获取所述行中的每一个字符对应的像素点;The second acquiring unit is used to acquire the pixel points corresponding to each character in the row; 连接单元,用于根据所述字符间距将所述像素点连接起来,得到所述行对应的线段;A connecting unit, configured to connect the pixel points according to the character spacing to obtain the line segment corresponding to the row; 旋转单元,用于旋转所述图片,直至所述线段平行于显示屏的上边界/下边界且所述字符的顶部朝向上。A rotation unit is used to rotate the picture until the line segment is parallel to the upper boundary/lower boundary of the display screen and the top of the character faces upward. 7.如权利要求5或6所述的图片的校正装置,其特征在于,所述校正装置还包括:7. The correction device of the picture as claimed in claim 5 or 6, is characterized in that, described correction device also comprises: 显示模块,用于显示旋转后的所述图片。The display module is used to display the rotated picture. 8.如权利要求5或6所述的图片的校正装置,其特征在于,所述字符为文字、字母或者数字。8. The image correction device according to claim 5 or 6, wherein the characters are characters, letters or numbers. 9.一种智能设备,其特征在于,所述智能设备包括如权利要求5至8任一项所述的图片的校正装置。9. An intelligent device, characterized in that the intelligent device comprises the image correction device according to any one of claims 5 to 8.
CN201610285287.6A 2016-04-29 2016-04-29 Picture correction method and device and intelligent device Pending CN105913060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610285287.6A CN105913060A (en) 2016-04-29 2016-04-29 Picture correction method and device and intelligent device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610285287.6A CN105913060A (en) 2016-04-29 2016-04-29 Picture correction method and device and intelligent device

Publications (1)

Publication Number Publication Date
CN105913060A true CN105913060A (en) 2016-08-31

Family

ID=56752343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610285287.6A Pending CN105913060A (en) 2016-04-29 2016-04-29 Picture correction method and device and intelligent device

Country Status (1)

Country Link
CN (1) CN105913060A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069206A (en) * 2019-04-23 2019-07-30 广东小天才科技有限公司 Method and device for obtaining question picture

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425142A (en) * 2008-09-17 2009-05-06 北大方正集团有限公司 Method and device for determining page angle of slope
CN101639933A (en) * 2009-07-16 2010-02-03 上海合合信息科技发展有限公司 Image rotation correction method and system and electronic device
CN103258198A (en) * 2013-04-26 2013-08-21 四川大学 Extraction method for characters in form document image
EP2828793A4 (en) * 2012-03-23 2015-07-01 Microsoft Technology Licensing Llc RECOGNITION WITHOUT ROTATION OF MANUSCRIPTED CHARACTERS

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425142A (en) * 2008-09-17 2009-05-06 北大方正集团有限公司 Method and device for determining page angle of slope
CN101639933A (en) * 2009-07-16 2010-02-03 上海合合信息科技发展有限公司 Image rotation correction method and system and electronic device
EP2828793A4 (en) * 2012-03-23 2015-07-01 Microsoft Technology Licensing Llc RECOGNITION WITHOUT ROTATION OF MANUSCRIPTED CHARACTERS
CN103258198A (en) * 2013-04-26 2013-08-21 四川大学 Extraction method for characters in form document image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069206A (en) * 2019-04-23 2019-07-30 广东小天才科技有限公司 Method and device for obtaining question picture

Similar Documents

Publication Publication Date Title
US10832086B2 (en) Target object presentation method and apparatus
CN107111863B (en) Apparatus and method for corneal imaging
BR112016004206B1 (en) METHOD, APPARATUS AND NON-TRANSITORY PROCESSOR-READABLE MEMORY FOR IMAGE PROCESSING
CN113126937B (en) Display terminal adjusting method and display terminal
US9854181B2 (en) Image processing method and apparatus and terminal device to obtain a group photo including photographer
CN106265006A (en) The antidote of a kind of dominant eye and mobile terminal
AU2015343983A1 (en) Electronic device and method for providing filter in electronic device
CN106791416A (en) A kind of background blurring image pickup method and terminal
CN103945045A (en) Method and device for data processing
CN105607813B (en) Mobile terminal and picture browsing method
US10268267B2 (en) Content sharing methods and apparatuses
CN112040145A (en) Image processing method and device and electronic equipment
US20190205635A1 (en) Process for capturing content from a document
EP4191513A1 (en) Image processing method and apparatus, device and storage medium
US10901528B2 (en) Method and apparatus for adjusting orientation, and electronic device
CN105915790A (en) Shooting method and device and intelligent equipment
CN109479087B (en) Image processing method and device
CN109547678B (en) Processing method, device, equipment and readable storage medium
CN109144363B (en) Information processing method and electronic equipment
US9665963B1 (en) Dynamic collage layout generation
US20170123514A1 (en) Method and apparatus for adjusting orientation, and electronic device
US20160350622A1 (en) Augmented reality and object recognition device
CN105913060A (en) Picture correction method and device and intelligent device
CN111800579B (en) Lens focusing method and system and related equipment
CN105913061A (en) Picture correction method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160831