CN105321146A - Method and device for processing topic picture shot by mobile terminal - Google Patents
Method and device for processing topic picture shot by mobile terminal Download PDFInfo
- Publication number
- CN105321146A CN105321146A CN201510622228.9A CN201510622228A CN105321146A CN 105321146 A CN105321146 A CN 105321146A CN 201510622228 A CN201510622228 A CN 201510622228A CN 105321146 A CN105321146 A CN 105321146A
- Authority
- CN
- China
- Prior art keywords
- acc
- mobile terminal
- angle
- inclination
- coordinate
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000005484 gravity Effects 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 6
- 230000007704 transition Effects 0.000 description 2
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/20—Linear translation of whole images or parts thereof, e.g. panning
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a method and a device for processing a theme picture shot by a mobile terminal, wherein the inclination angle of a camera of the mobile terminal is obtained under the condition that the theme of a book is shot by the mobile terminal; and angle correction is carried out on the shot picture information of the book title according to the inclination angle and a preset algorithm, the angle of shooting is calculated and returned to the user by using data returned by the G-server, and then the picture is processed and reduced into a horizontal picture, so that the accuracy of title search is improved.
Description
Technical field
The embodiment of the present invention relates to the technical field of mobile terminal, particularly relates to method and the device of the exercise question picture of a kind of handle mobile terminal shooting.
Background technology
Take pictures when searching topic, the angle that student takes pictures can not ensure that level bat is inscribed, and causes taking the picture come and carries angle, cause very large impact, and then affect Consumer's Experience to checking and identifying.It is have problem to be solved that solution shooting carries angle.
Summary of the invention
The object of the embodiment of the present invention is to propose method and the device of the exercise question picture of a kind of handle mobile terminal shooting, be intended to solve shooting exercise question picture with the problem of photo angle.
For reaching this object, the embodiment of the present invention by the following technical solutions:
First aspect, a kind of method of exercise question picture of handle mobile terminal shooting, described method comprises:
When detecting that mobile terminal is taking the exercise question of books, obtain the angle of inclination of the camera of described mobile terminal;
According to described angle of inclination and the algorithm pre-set, the pictorial information of the exercise question of the described books photographed is carried out angularity correction.
Preferably, the angle of inclination of the camera of the described mobile terminal of described acquisition, comprising:
According to the coordinate of the x, y, z axle that G-sensor returns in real time;
The angle of inclination of the camera of described mobile terminal is calculated according to the coordinate of described x, y, z axle.
Preferably, the coordinate of the described x, y, z axle returned in real time according to G-sensor, comprising:
Within the time pre-set, obtain the coordinate of gravity sensitive x, y, z point;
The point getting the number pre-set is averaged, and obtains coordinate acc [x], acc [y], the acc [z] of x, y, z three points respectively.
Preferably, the described coordinate according to described x, y, z axle calculates the angle of inclination of the camera of described mobile terminal, comprising:
norm_Of_g=Math.sqrt((acc[x]*acc[x])+(acc[y]*acc[y])+(acc[z]*acc[z]));
fina_z=(float)(acc[z]/norm_Of_g);
rotateAngle=Math.round(Math.toDegrees(Math.acos(fina_z)))
Wherein, described rotateAngle identifies the angle of inclination of the camera of described mobile terminal.
Preferably, described method also comprises:
The pictorial information of the exercise question of the described books after angularity correction is utilized to carry out searching for and to user feedback search content.
Second aspect, a kind of device of exercise question picture of handle mobile terminal shooting, described device comprises:
Acquisition module, for when detecting that mobile terminal is taking the exercise question of books, obtains the angle of inclination of the camera of described mobile terminal;
Correction module, for carrying out angularity correction according to described angle of inclination and the algorithm pre-set by the pictorial information of the exercise question of the described books photographed.
Preferably, described acquisition module, comprising:
Return unit, for the coordinate of x, y, z axle returned in real time according to G-sensor;
Computing unit, for calculating the angle of inclination of the camera of described mobile terminal according to the coordinate of described x, y, z axle.
Preferably, described in return unit, for:
Within the time pre-set, obtain the coordinate of gravity sensitive x, y, z point;
The point getting the number pre-set is averaged, and obtains coordinate acc [x], acc [y], the acc [z] of x, y, z three points respectively.
Preferably, described computing unit, for:
norm_Of_g=Math.sqrt((acc[x]*acc[x])+(acc[y]*acc[y])+(acc[z]*acc[z]));
fina_z=(float)(acc[z]/norm_Of_g);
rotateAngle=Math.round(Math.toDegrees(Math.acos(fina_z)))
Wherein, described rotateAngle identifies the angle of inclination of the camera of described mobile terminal.
Preferably, described device also comprises:
Search module, the pictorial information for the exercise question utilizing the described books after angularity correction carries out searching for and to user feedback search content.
The embodiment of the present invention, by when detecting that mobile terminal is taking the exercise question of books, obtains the angle of inclination of the camera of described mobile terminal; According to described angle of inclination and the algorithm pre-set, the pictorial information of the exercise question of the described books photographed is carried out angularity correction, the data utilizing G-senser to return calculate and return the angle that user takes pictures, afterwards picture is processed, be reduced into horizontal picture, thus improve the accuracy rate of searching topic.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method first embodiment of the exercise question picture of embodiment of the present invention handle mobile terminal shooting;
Fig. 2 is the schematic flow sheet of method second embodiment of the exercise question picture of embodiment of the present invention handle mobile terminal shooting;
Fig. 3 is the high-level schematic functional block diagram of the device of the exercise question picture of embodiment of the present invention handle mobile terminal shooting;
Fig. 4 is the high-level schematic functional block diagram of embodiment of the present invention acquisition module;
Fig. 5 is the high-level schematic functional block diagram of the device of the exercise question picture of embodiment of the present invention handle mobile terminal shooting.
Embodiment
Below in conjunction with drawings and Examples, the embodiment of the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the embodiment of the present invention, but not the restriction to the embodiment of the present invention.It also should be noted that, for convenience of description, illustrate only the part relevant to the embodiment of the present invention in accompanying drawing but not entire infrastructure.
Embodiment one
It is the schematic flow sheet of method first embodiment of the exercise question picture of embodiment of the present invention handle mobile terminal shooting with reference to figure 1, Fig. 1.
In embodiment one, the method for the exercise question picture of described handle mobile terminal shooting comprises:
Step 101, when detecting that mobile terminal is taking the exercise question of books, obtains the angle of inclination of the camera of described mobile terminal;
Preferably, the angle of inclination of the camera of the described mobile terminal of described acquisition, comprising:
According to the coordinate of the x, y, z axle that G-sensor returns in real time;
The angle of inclination of the camera of described mobile terminal is calculated according to the coordinate of described x, y, z axle.
Preferably, the coordinate of the described x, y, z axle returned in real time according to G-sensor, comprising:
Within the time pre-set, obtain the coordinate of gravity sensitive x, y, z point;
The point getting the number pre-set is averaged, and obtains coordinate acc [x], acc [y], the acc [z] of x, y, z three points respectively.
Preferably, the described coordinate according to described x, y, z axle calculates the angle of inclination of the camera of described mobile terminal, comprising:
norm_Of_g=Math.sqrt((acc[x]*acc[x])+(acc[y]*acc[y])+(acc[z]*acc[z]));
fina_z=(float)(acc[z]/norm_Of_g);
rotateAngle=Math.round(Math.toDegrees(Math.acos(fina_z)))
Wherein, described rotateAngle identifies the angle of inclination of the camera of described mobile terminal.
Step 102, carries out angularity correction according to described angle of inclination and the algorithm pre-set by the pictorial information of the exercise question of the described books photographed.
Concrete, when user is by cell phone cameras shooting exercise question picture, obtained the deviation angle of camera by gravity sensor.The mode obtaining deviation angle is as follows:
In 100 milliseconds, obtain gravity sensitive x, the coordinate of y, z point, gets nearest 10 points, and then averages, and obtains three point: acc [x] about x, y, z respectively, acc [y], acc [z];
According to formula norm_Of_g=Math.sqrt ((acc [x] * acc [x])+(acc [y] * acc [y])+(acc [z] * acc [z])), again z coordinate is averaged, fina_z=(float) (acc [z]/norm_Of_g);
Formula is finally utilized to carry out angular transition:
rotateAngle=Math.round(Math.toDegrees(Math.acos(fina_z)))。
The embodiment of the present invention, by when detecting that mobile terminal is taking the exercise question of books, obtains the angle of inclination of the camera of described mobile terminal; According to described angle of inclination and the algorithm pre-set, the pictorial information of the exercise question of the described books photographed is carried out angularity correction, the data utilizing G-senser to return calculate and return the angle that user takes pictures, afterwards picture is processed, be reduced into horizontal picture, thus improve the accuracy rate of searching topic.
Embodiment two
It is the schematic flow sheet of method second embodiment of the exercise question picture of embodiment of the present invention handle mobile terminal shooting with reference to figure 2, Fig. 2.
On the basis of embodiment one, described method also comprises:
Step 103, utilizes the pictorial information of the exercise question of the described books after angularity correction to carry out searching for and to user feedback search content.
Embodiment three
It is the high-level schematic functional block diagram of the device of the exercise question picture of embodiment of the present invention handle mobile terminal shooting with reference to figure 3, Fig. 3.
In embodiment three, the device of the exercise question picture of described handle mobile terminal shooting comprises:
Acquisition module 301, for when detecting that mobile terminal is taking the exercise question of books, obtains the angle of inclination of the camera of described mobile terminal;
Preferably, with reference to figure 4, Fig. 4 be the high-level schematic functional block diagram of embodiment of the present invention acquisition module.
Described acquisition module 301, comprising:
Return unit 401, for the coordinate of x, y, z axle returned in real time according to G-sensor;
Preferably, described in return unit 401, for:
Within the time pre-set, obtain the coordinate of gravity sensitive x, y, z point;
The point getting the number pre-set is averaged, and obtains coordinate acc [x], acc [y], the acc [z] of x, y, z three points respectively.
Computing unit 402, for calculating the angle of inclination of the camera of described mobile terminal according to the coordinate of described x, y, z axle.
Preferably, described computing unit 402, for:
norm_Of_g=Math.sqrt((acc[x]*acc[x])+(acc[y]*acc[y])+(acc[z]*acc[z]));
fina_z=(float)(acc[z]/norm_Of_g);
rotateAngle=Math.round(Math.toDegrees(Math.acos(fina_z)))
Wherein, described rotateAngle identifies the angle of inclination of the camera of described mobile terminal.
Correction module 302, for carrying out angularity correction according to described angle of inclination and the algorithm pre-set by the pictorial information of the exercise question of the described books photographed.
Concrete, when user is by cell phone cameras shooting exercise question picture, obtained the deviation angle of camera by gravity sensor.The mode obtaining deviation angle is as follows:
In 100 milliseconds, obtain gravity sensitive x, the coordinate of y, z point, gets nearest 10 points, and then averages, and obtains three point: acc [x] about x, y, z respectively, acc [y], acc [z];
According to formula norm_Of_g=Math.sqrt ((acc [x] * acc [x])+(acc [y] * acc [y])+(acc [z] * acc [z])), again z coordinate is averaged, fina_z=(float) (acc [z]/norm_Of_g);
Formula is finally utilized to carry out angular transition:
rotateAngle=Math.round(Math.toDegrees(Math.acos(fina_z)))。
The embodiment of the present invention, by when detecting that mobile terminal is taking the exercise question of books, obtains the angle of inclination of the camera of described mobile terminal; According to described angle of inclination and the algorithm pre-set, the pictorial information of the exercise question of the described books photographed is carried out angularity correction, the data utilizing G-senser to return calculate and return the angle that user takes pictures, afterwards picture is processed, be reduced into horizontal picture, thus improve the accuracy rate of searching topic.
Embodiment four
It is the high-level schematic functional block diagram of the device of the exercise question picture of embodiment of the present invention handle mobile terminal shooting with reference to figure 5, Fig. 5.
On the basis of embodiment three, described device also comprises:
Search module 303, the pictorial information for the exercise question utilizing the described books after angularity correction carries out searching for and to user feedback search content.
Below the know-why of the embodiment of the present invention is described in conjunction with specific embodiments.These describe the principle just in order to explain the embodiment of the present invention, and can not be interpreted as the restriction to embodiment of the present invention protection domain by any way.Based on explanation herein, those skilled in the art does not need to pay other embodiment that performing creative labour can associate the embodiment of the present invention, these modes all by fall into the embodiment of the present invention protection domain within.
Claims (10)
1. a method for the exercise question picture of handle mobile terminal shooting, it is characterized in that, described method comprises:
When detecting that mobile terminal is taking the exercise question of books, obtain the angle of inclination of the camera of described mobile terminal;
According to described angle of inclination and the algorithm pre-set, the pictorial information of the exercise question of the described books photographed is carried out angularity correction.
2. method according to claim 1, is characterized in that, the angle of inclination of the camera of the described mobile terminal of described acquisition, comprising:
According to the coordinate of the x, y, z axle that G-sensor returns in real time;
The angle of inclination of the camera of described mobile terminal is calculated according to the coordinate of described x, y, z axle.
3. method according to claim 2, is characterized in that, the coordinate of the described x, y, z axle returned in real time according to G-sensor, comprising:
Within the time pre-set, obtain the coordinate of gravity sensitive x, y, z point;
The point getting the number pre-set is averaged, and obtains coordinate acc [x], acc [y], the acc [z] of x, y, z three points respectively.
4. method according to claim 2, is characterized in that, the described coordinate according to described x, y, z axle calculates the angle of inclination of the camera of described mobile terminal, comprising:
norm_Of_g=Math.sqrt((acc[x]*acc[x])+(acc[y]*acc[y])+(acc[z]*acc[z]));
fina_z=(float)(acc[z]/norm_Of_g);
rotateAngle=Math.round(Math.toDegrees(Math.acos(fina_z)))
Wherein, described rotateAngle identifies the angle of inclination of the camera of described mobile terminal.
5. the method according to Claims 1-4 any one, is characterized in that, described method also comprises:
The pictorial information of the exercise question of the described books after angularity correction is utilized to carry out searching for and to user feedback search content.
6. a device for the exercise question picture of handle mobile terminal shooting, it is characterized in that, described device comprises:
Acquisition module, for when detecting that mobile terminal is taking the exercise question of books, obtains the angle of inclination of the camera of described mobile terminal;
Correction module, for carrying out angularity correction according to described angle of inclination and the algorithm pre-set by the pictorial information of the exercise question of the described books photographed.
7. device according to claim 6, is characterized in that, described acquisition module, comprising:
Return unit, for the coordinate of x, y, z axle returned in real time according to G-sensor;
Computing unit, for calculating the angle of inclination of the camera of described mobile terminal according to the coordinate of described x, y, z axle.
8. device according to claim 6, is characterized in that, described in return unit, for:
Within the time pre-set, obtain the coordinate of gravity sensitive x, y, z point;
The point getting the number pre-set is averaged, and obtains coordinate acc [x], acc [y], the acc [z] of x, y, z three points respectively.
9. device according to claim 6, is characterized in that, described computing unit, for:
norm_Of_g=Math.sqrt((acc[x]*acc[x])+(acc[y]*acc[y])+(acc[z]*acc[z]));
fina_z=(float)(acc[z]/norm_Of_g);
rotateAngle=Math.round(Math.toDegrees(Math.acos(fina_z)))
Wherein, described rotateAngle identifies the angle of inclination of the camera of described mobile terminal.
10. the device according to claim 6 to 9 any one, is characterized in that, described device also comprises:
Search module, the pictorial information for the exercise question utilizing the described books after angularity correction carries out searching for and to user feedback search content.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510622228.9A CN105321146A (en) | 2015-09-25 | 2015-09-25 | Method and device for processing topic picture shot by mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510622228.9A CN105321146A (en) | 2015-09-25 | 2015-09-25 | Method and device for processing topic picture shot by mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105321146A true CN105321146A (en) | 2016-02-10 |
Family
ID=55248470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510622228.9A Pending CN105321146A (en) | 2015-09-25 | 2015-09-25 | Method and device for processing topic picture shot by mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105321146A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105892685A (en) * | 2016-04-29 | 2016-08-24 | 广东小天才科技有限公司 | Question searching method and device of intelligent equipment |
CN106406700A (en) * | 2016-09-13 | 2017-02-15 | 乐视控股(北京)有限公司 | Photographing processing method and device |
CN108769459A (en) * | 2018-06-07 | 2018-11-06 | 北京理工大学 | Multiple spot laser Full-automatic oblique angle shot based on image procossing corrects system |
CN109327657A (en) * | 2018-07-16 | 2019-02-12 | 广东小天才科技有限公司 | Camera-based shooting question searching method and family education equipment |
CN109754381A (en) * | 2019-01-03 | 2019-05-14 | 广东小天才科技有限公司 | Image processing method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080145041A1 (en) * | 2006-12-14 | 2008-06-19 | Pentax Corporation | Anti-shake apparatus |
CN102831200A (en) * | 2012-08-07 | 2012-12-19 | 北京百度网讯科技有限公司 | Commodity propelling method and device based on image character recognition |
CN103856705A (en) * | 2012-12-03 | 2014-06-11 | 三星电子(中国)研发中心 | Image rectification method and system |
CN103873693A (en) * | 2014-03-24 | 2014-06-18 | 惠州Tcl移动通信有限公司 | Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration |
CN103888654A (en) * | 2012-12-24 | 2014-06-25 | 深圳富泰宏精密工业有限公司 | Photographing calibration system and method |
CN104092938A (en) * | 2014-06-26 | 2014-10-08 | 刘永健 | Gravity-sensing photographing method and system |
CN104794220A (en) * | 2015-04-28 | 2015-07-22 | 百度在线网络技术(北京)有限公司 | Information search method and information search device |
-
2015
- 2015-09-25 CN CN201510622228.9A patent/CN105321146A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080145041A1 (en) * | 2006-12-14 | 2008-06-19 | Pentax Corporation | Anti-shake apparatus |
CN102831200A (en) * | 2012-08-07 | 2012-12-19 | 北京百度网讯科技有限公司 | Commodity propelling method and device based on image character recognition |
CN103856705A (en) * | 2012-12-03 | 2014-06-11 | 三星电子(中国)研发中心 | Image rectification method and system |
CN103888654A (en) * | 2012-12-24 | 2014-06-25 | 深圳富泰宏精密工业有限公司 | Photographing calibration system and method |
CN103873693A (en) * | 2014-03-24 | 2014-06-18 | 惠州Tcl移动通信有限公司 | Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration |
CN104092938A (en) * | 2014-06-26 | 2014-10-08 | 刘永健 | Gravity-sensing photographing method and system |
CN104794220A (en) * | 2015-04-28 | 2015-07-22 | 百度在线网络技术(北京)有限公司 | Information search method and information search device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105892685A (en) * | 2016-04-29 | 2016-08-24 | 广东小天才科技有限公司 | Question searching method and device of intelligent equipment |
CN105892685B (en) * | 2016-04-29 | 2019-02-15 | 广东小天才科技有限公司 | Question searching method and device of intelligent equipment |
CN106406700A (en) * | 2016-09-13 | 2017-02-15 | 乐视控股(北京)有限公司 | Photographing processing method and device |
CN108769459A (en) * | 2018-06-07 | 2018-11-06 | 北京理工大学 | Multiple spot laser Full-automatic oblique angle shot based on image procossing corrects system |
CN109327657A (en) * | 2018-07-16 | 2019-02-12 | 广东小天才科技有限公司 | Camera-based shooting question searching method and family education equipment |
CN109754381A (en) * | 2019-01-03 | 2019-05-14 | 广东小天才科技有限公司 | Image processing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111126182B (en) | Lane line detection method, lane line detection device, electronic device, and storage medium | |
CN108596976B (en) | Method, device and equipment for relocating camera attitude tracking process and storage medium | |
CN105321146A (en) | Method and device for processing topic picture shot by mobile terminal | |
CN108682036B (en) | Pose determination method, pose determination device and storage medium | |
CN102353351B (en) | Lateral shooting angle detecting method, inclined shooting angle detecting method and mobile phone | |
CN102446048B (en) | Information processing device and information processing method | |
CN102681654B (en) | 3D visual perspective automatic adjustment system and method | |
CN108540718A (en) | Image pickup method, device, mobile terminal and storage medium | |
CN106407984A (en) | Target object recognition method and device | |
CN107682639B (en) | A kind of image processing method, device and mobile terminal | |
CN110490186B (en) | License plate recognition method and device and storage medium | |
CN107255813A (en) | Distance-finding method, mobile terminal and storage medium based on 3D technology | |
CN111126276B (en) | Lane line detection method, lane line detection device, computer equipment and storage medium | |
CN106597424A (en) | Distance measuring method and distance measuring system based on dual cameras, and mobile terminal | |
CN102611849A (en) | Anti-shaking system and anti-shaking method for mobile phone photographing | |
CN107505653A (en) | A kind of method and apparatus for determining migration before stack time result | |
CN109615360A (en) | A kind of encoding of graphs methods of exhibiting and device | |
CN112414400A (en) | Information processing method and device, electronic equipment and storage medium | |
CN108600609A (en) | The method and device of auxiliary photo-taking | |
CN107255812A (en) | Speed-measuring method, mobile terminal and storage medium based on 3D technology | |
CN103398698A (en) | Horizontality measuring method, horizontality measuring device and mobile terminal | |
CN107007999A (en) | A kind of method and device for obtaining motion state | |
CN111127541A (en) | Vehicle size determination method and device and storage medium | |
CN107888827A (en) | Image processing method and related product | |
CN109981973A (en) | Prevent the method, apparatus and storage medium of dangerous self-timer |
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: 20160210 |