CN106092058A - The processing method of information data, device and terminal - Google Patents

The processing method of information data, device and terminal Download PDF

Info

Publication number
CN106092058A
CN106092058A CN201610724838.4A CN201610724838A CN106092058A CN 106092058 A CN106092058 A CN 106092058A CN 201610724838 A CN201610724838 A CN 201610724838A CN 106092058 A CN106092058 A CN 106092058A
Authority
CN
China
Prior art keywords
pixel
focal length
under test
object under
obtains
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.)
Granted
Application number
CN201610724838.4A
Other languages
Chinese (zh)
Other versions
CN106092058B (en
Inventor
刘愿飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610724838.4A priority Critical patent/CN106092058B/en
Publication of CN106092058A publication Critical patent/CN106092058A/en
Application granted granted Critical
Publication of CN106092058B publication Critical patent/CN106092058B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • G01C11/02Picture taking arrangements specially adapted for photogrammetry or photographic surveying, e.g. controlling overlapping of pictures
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • G01C11/04Interpretation of pictures
    • G01C11/06Interpretation of pictures by comparison of two or more pictures of the same area
    • G01C11/08Interpretation of pictures by comparison of two or more pictures of the same area the pictures not being supported in the same relative position as when they were taken
    • G01C11/10Interpretation of pictures by comparison of two or more pictures of the same area the pictures not being supported in the same relative position as when they were taken using computers to control the position of the pictures

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The present invention provides the processing method of a kind of information data, device and terminal, the processing method of this information data includes: receive the first photographing instruction, obtain the first pixel of object under test according to this first photographing instruction, and obtain the focal length of current photographic head, obtain the first focal length;When the distance detected between this object under test changes, obtain displacement;Receive the second photographing instruction, obtain the second pixel of this object under test according to this second photographing instruction and obtain the focal length of current photographic head, obtaining the second focal length;The target size of this object under test is obtained according to this displacement, this first focal length, this second focal length, this first pixel and this second pixel.Just can obtain the size of object under test due to the pixel taken pictures by twice, focal length and displacement, improve the degree of accuracy of object under test dimensional measurement.

Description

The processing method of information data, device and terminal
Technical field
The present invention relates to field of terminal technology, particularly relate to the processing method of a kind of information data, device and terminal.
Background technology
Along with the development of terminal, terminal technology is also the most perfect so that user is more and more higher to the requirement of terminal. Such as user is in addition to wishing constantly the improving of original function, it is also desirable to provide increasing New function.
As a example by range measurement, such as during automobilism, driver generally utilizes radar or human eye to vehicle front road Condition carries out dimension estimation, but the measurable distance of distance measuring method of radar or human eye is limited.If running into road ratio The section of relatively narrower, driver needs just can know the size in this section near this section, and being easily caused automobile cannot just normal open Cross this section, thus make troubles to driver.But, vehicle front road conditions size is not carried out accurately by prior art The method measured, therefore, need to improve further.
Summary of the invention
The embodiment of the present invention provides the processing method of a kind of information data, device and terminal, to solve to treat in prior art Survey dimension of object and measure coarse technical problem.
For solving the problems referred to above, the technical scheme that the present invention provides is as follows:
The embodiment of the present invention provides the processing method of a kind of information data, comprising:
Receive the first photographing instruction, obtain the first pixel of object under test according to described first photographing instruction, and obtain The focal length of current photographic head, obtains the first focal length;
When the distance detected between described object under test changes, obtain displacement;
Receive the second photographing instruction, according to described second photographing instruction obtain described object under test the second pixel and Obtain the focal length of current photographic head, obtain the second focal length;
According to described displacement, described first focal length, described second focal length, described first pixel and described second picture Element obtains the target size of described object under test.
The embodiment of the present invention also provides for the processing means of a kind of information data, comprising:
First acquisition module, for receiving the first photographing instruction, obtains object under test according to described first photographing instruction First pixel, and obtain the focal length of current photographic head, obtain the first focal length;
Distance acquisition module, for when the distance detected between described object under test changes, obtains mobile Distance;
Second acquisition module, for receiving the second photographing instruction, obtains described determinand according to described second photographing instruction Second pixel of body and obtain the focal length of current photographic head, obtains the second focal length;
Dimension acquisition module, for according to described displacement, described first focal length, described second focal length, described first Pixel and described second pixel obtain the target size of described object under test.
The embodiment of the present invention also provides for a kind of terminal, and it includes the processing means of above-mentioned information data.
Compared to prior art, the processing method of the information data of the present embodiment, device and terminal, by receiving first count According to instruction, obtain the first pixel of object under test according to this first photographing instruction, and obtain the focal length of current photographic head, obtain First focal length;When the distance detected between this object under test changes, obtain displacement;Receive second count according to referring to Order, obtains the second pixel of this object under test according to this second photographing instruction and obtains the focal length of current photographic head, obtains the Two focal lengths;Obtain this treat according to this displacement, this first focal length, this second focal length, this first pixel and this second pixel Survey the target size of object.Just object under test can be obtained due to the pixel taken pictures by twice, focal length and displacement Size, improves the degree of accuracy of object under test dimensional measurement, improves the motility of terminal simultaneously.
Accompanying drawing explanation
The flow chart of the processing method of the information data that Fig. 1 provides for the embodiment of the present invention one.
The flow chart of the processing method of the information data that Fig. 2 provides for the embodiment of the present invention two.
The flow chart of the processing method of the information data that Fig. 3 provides for the embodiment of the present invention three.
The structural representation of the processing means of the information data that Fig. 4 provides for the embodiment of the present invention four.
The preferred structure schematic diagram of the processing means of the information data that Fig. 5 provides for the embodiment of the present invention four.
The structural representation of the terminal that Fig. 6 provides for the embodiment of the present invention five.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe wholely.It is understood that specific embodiment described herein is only used for explaining the present invention, rather than the limit to the present invention Fixed.It also should be noted that, for the ease of describing, accompanying drawing illustrate only part related to the present invention and not all knot Structure.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise Every other embodiment, broadly falls into the scope of protection of the invention.
Term " first " in the present invention, " second " and " the 3rd " etc. are for distinguishing different object rather than for retouching State particular order.Additionally, term " includes " and " having " and their any deformation, it is intended that cover non-exclusive comprising. Such as contain series of steps or the process of unit, method, system, product or equipment be not limited to the step listed or Unit, but the most also include step or the unit do not listed, or the most also include for these processes, method, product Product or intrinsic other step of equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments It is contained at least one embodiment of the present invention.It is identical that each position in the description occurs that this phrase might not each mean Embodiment, be not and the independent of other embodiments mutual exclusion or alternative embodiment.Those skilled in the art explicitly and Implicitly being understood by, embodiment described herein can combine with other embodiments.
The executive agent of the method for controlling operation thereof of the terminal that the embodiment of the present invention provides, can be that the embodiment of the present invention provides The operating control device of terminal, or be integrated with mobile terminal (the such as notebook, flat of the operating control device of described terminal Plate computer, mobile phone, wearable device etc.), the operating control device of described terminal can be real in the way of using hardware or software Existing.
Refer to the flow chart of the processing method of the information data that Fig. 1, Fig. 1 provide for the embodiment of the present invention one.
The processing method of the information data of this preferred embodiment, including:
Step S101, receives the first photographing instruction, obtains the first pixel of object under test according to this first photographing instruction, with And obtain the focal length of current photographic head, obtain the first focal length.
Such as, take pictures in the region at user's measuring targets place.Specifically, user presses key of taking pictures, and terminal is treated Taking pictures in the region surveying object place, obtains preview image.User selects object under test or end in preview image afterwards End automatically identifies object under test, and terminal calculates the pixel of object under test, obtains the first pixel.In addition terminal also obtains at this The focal length of photographic head during taking pictures, obtains the first focal length.This terminal can be the equipment such as mobile phone, panel computer.
Step S102, when the distance detected between this object under test changes, obtains displacement.
Such as, when terminal detects that the distance between itself and object under test changes, terminal obtains what terminal moved Distance, such as can obtain this displacement by acceleration transducer.
Step S103, receives the second photographing instruction, according to this second photographing instruction obtain this object under test the second pixel, And obtain the focal length of current photographic head, obtain the second focal length.
Such as, when the distance between terminal and object under test changes, the district at user measuring targets place again Take pictures in territory.Specifically, user presses key of taking pictures again, takes pictures, and obtain in the region at terminal measuring targets place Preview image.User selects object under test or terminal to automatically identify object under test in this preview image afterwards, and calculates The pixel of object under test, obtains the second pixel.In addition terminal also obtains the focal length of photographic head during this is taken pictures, and obtains Two focal lengths.
Step S104, according to this displacement, this first focal length, this second focal length, this first pixel and this second picture Element obtains the target size of this object under test.
Such as, terminal obtains according to above-mentioned steps displacement, the focal length of photographic head, second time are clapped when taking pictures for the first time According to time the focal length of photographic head and the pixel meter of object under test time the pixel of object under test, second time are taken pictures when taking pictures for the first time Calculate the target size of object under test.
The processing method of the information data of the present embodiment, by receiving the first photographing instruction, according to this first photographing instruction First pixel of acquisition object under test, and obtain the focal length of current photographic head, obtain the first focal length;To be measured with this when detecting When distance between object changes, obtain displacement;Receive the second photographing instruction, obtain according to this second photographing instruction Second pixel of this object under test and obtain the focal length of current photographic head, obtains the second focal length;According to this displacement, it is somebody's turn to do First focal length, this second focal length, this first pixel and this second pixel obtain the target size of this object under test.Owing to passing through Pixel, focal length and the displacement taken pictures for twice just can obtain the size of object under test, improves object under test size and surveys The degree of accuracy of amount, and improve the motility of terminal.
Refer to the flow chart of the processing method of the information data that Fig. 2, Fig. 2 provide for the embodiment of the present invention two.
The processing method of the information data of this preferred embodiment, including:
Step S201, receives the first photographing instruction, obtains the first pixel of object under test according to this first photographing instruction, with And obtain the focal length of current photographic head, obtain the first focal length.
Such as, take pictures in the region at user's measuring targets place.Specifically, user presses key of taking pictures, and terminal is treated Taking pictures in the region surveying object place, obtains preview image.User selects object under test or end in preview image afterwards End automatically identifies object under test, and terminal calculates the pixel of object under test, obtains the first pixel.In addition terminal also obtains at this The focal length of photographic head during taking pictures, obtains the first focal length.This terminal can be the equipment such as mobile phone, panel computer.
Step S202, when the distance detected between this object under test changes, obtains displacement.
Such as, when terminal detects that the distance between itself and object under test changes, terminal obtains what terminal moved Distance, such as terminal can obtain this displacement by acceleration transducer.
Step S203, receives the second photographing instruction, according to this second photographing instruction obtain this object under test the second pixel, And obtain the focal length of current photographic head, obtain the second focal length.
Such as, when the distance between terminal and object under test changes, the district at user measuring targets place again Take pictures in territory.Specifically user presses key of taking pictures again, takes pictures, and obtain pre-in the region at terminal measuring targets place Look at image.User selects object under test or terminal to automatically identify object under test in this preview image afterwards, and calculating is treated Survey the pixel of object, obtain the second pixel.In addition terminal also obtains the focal length of photographic head during this is taken pictures, and obtains second Focal length.
Step S204, obtains this object under test the first imaging chi on the photographic plate of this photographic head according to this first pixel Very little.
Such as, terminal, according to the pixel of the object under test obtained when taking pictures for the first time, obtains object under test on photographic plate Size, obtain the first imaging size.
In order to improve accuracy, terminal can first obtain the pixel that the pixel of object under test corresponds on photographic plate, and root Obtain object under test size on photographic plate according to this pixel, namely this obtains this object under test according to this first pixel and takes the photograph at this As the step of the first imaging size on the photographic plate of head includes:
Obtain the pixel of corresponding photographic plate according to this first pixel, obtain changing pixel;
Obtain the resolution of the image that this first photographing instruction obtains;
This first imaging size is obtained according to this conversion pixel and this resolution.
Such as, terminal obtains the pixel corresponding on photographic plate, namely conversion according to preview image when taking pictures for the first time Pixel.Terminal also obtains the resolution of preview image when taking pictures for the first time, and terminal is by this resolution and conversion pixel afterwards Calculating object under test size on photographic plate, this resolution is pixel quantity (ppi) or the picture element density of each inch.
In order to improve treatment effeciency, terminal can obtain resolution and preview image when taking pictures for the first time of photographic plate Ratio between resolution, calculates the pixel on photographic plate according to this ratio and the first pixel, and this obtains according to this first pixel The pixel of corresponding photographic plate, the step obtaining changing pixel includes:
Ratio between the resolution of the image that a1, the resolution obtaining this photographic plate and this first photographing instruction obtain;
Such as, between the resolution of the preview image that terminal obtains when obtaining the resolution of photographic plate and take pictures for the first time Ratio, is such as β.
A2, obtain the pixel of corresponding photographic plate according to this ratio and this first pixel, obtain conversion pixel.
Such as, pixel P1 of object under test when terminal according to ratio beta and is taken pictures for the first time, calculate object under test at photographic plate On pixel, obtain change pixel.Such as change pixel and be multiplied by P1 into β.
Step S205, obtains this object under test the second imaging size on this photographic plate according to this second pixel.
Such as, the pixel of the object under test obtained when terminal is taken pictures according to second time, obtain object under test on photographic plate Size, obtain the second imaging size.
In order to improve treatment effeciency, terminal can first obtain the pixel that the pixel of object under test corresponds on photographic plate, and Obtain object under test size on photographic plate according to this pixel, namely this obtains this object under test at this according to this second pixel The step of the second imaging size on the photographic plate of photographic head includes:
C, obtain the pixel of corresponding photographic plate according to this second pixel, obtain replacement pixel;
D, obtain this second imaging size according to this replacement pixel and this resolution.
Such as, preview image when terminal is taken pictures according to second time obtains the pixel corresponding on photographic plate, namely replaces Pixel.When terminal is by taking pictures for the first time afterwards, resolution and the replacement pixel of the preview image of acquisition calculate object under test in sense Size on tabula rasa.This resolution is pixel quantity (ppi) or the picture element density of each inch.It is understood that second The acquisition mode of imaging size can also be identical with the acquisition mode of the first imaging size.
Step S206, according to this displacement, this first imaging size, this first focal length, this second imaging size, this Two focal lengths obtain the target size of this object under test.
Such as, terminal obtains according to above-mentioned steps displacement, the focal length of photographic head, second time are clapped when taking pictures for the first time According to time the focal length of photographic head and determinand time object under test pixel on photographic plate, second time are taken pictures when taking pictures for the first time Body pixel on photographic plate calculates the target size of object under test.This target size can be in length, width and height At least one, can also be area etc. certainly.Such as when target size is length, then the first imaging size and the second one-tenth As size is also length, namely target size is corresponding with the first imaging size and the second imaging size respectively.
Specifically, this target size is concrete as shown in Equation 1:
H=m* (β/K) * (P1*P2/ (L1*P2 ± L2*P1));Formula 1
Wherein H is the target size of this object under test, and m is this displacement, and β is this ratio, and P1 is this first pixel, P2 For this second pixel, L1 be this first focal length, L2 be this second focal length, K is this resolution.
Step S207, it is judged that whether this target size is more than predetermined threshold value.
Such as, the target size that step S206 obtains is compared by terminal with predetermined threshold value, and this predetermined threshold value can be according to answering It is configured with field.Such as applying when the field of driving, this target size is the width of road, and this predetermined threshold value is vehicle body Width.When judging this target size more than predetermined threshold value, then terminal performs step S208;When judge this target size less than or When person is equal to predetermined threshold value, then terminal performs step S209.
Step S208, when the target size of this object under test is more than this predetermined threshold value, shows the first cue.
Such as, when terminal judges this target size more than predetermined threshold value, then terminal sends the first prompt tone, and terminal is also The first information can be shown on screen.
Step S209, when the target size of this object under test is less than or equal to this predetermined threshold value, shows the second prompting letter Number.
Such as, when terminal judges this target size less than or equal to predetermined threshold value, then terminal sends the second prompting Sound, terminal can also show the second information on screen.
The processing method of the information data of the present embodiment, on the basis of embodiment one, by obtaining object under test in sense Correspondingly-sized on tabula rasa, obtains target size according to this size, improves accuracy;The most also by target size and default threshold Value compares, and provides a user with different cues according to comparative result, not only brings conveniently to user, also improve The treatment effeciency of terminal, further increases the motility of terminal in addition.
Refer to the flow chart of the processing method of the information data that Fig. 3, Fig. 3 provide for the embodiment of the present invention three.
The present embodiment is described in detail as a example by target size is as width, the process of the information data of this preferred embodiment Method, including:
Step S301, carries out taking pictures for the first time, and obtains the pixel of object under test and the focal length of photographic head, obtain the first picture Element and the first focal length.
Such as, objects in front is taken pictures for focus by user with crossing, obtains preview picture;Terminal obtains crossing afterwards Pixel P1 and the focal length L1 of current photographic head.
Step S302, when the distance detected between object under test changes, obtains the distance of movement.
Such as, automobile move forward a segment distance time, terminal detects its distance moved.When such as automobile moves forward, The polarity of distance is just, when automobile is moved rearwards by, the polarity of distance is negative.
Step S303, carries out second time and takes pictures, and obtain the pixel of object under test and the focal length of photographic head, obtain the second picture Element and the second focal length.
Such as, objects in front is taken pictures for focus by user again with crossing, obtains preview picture;Terminal obtains afterwards Pixel P2 at crossing and the focal length L2 of photographic head.
Step S304, obtains this object under test the first imaging chi on the photographic plate of this photographic head according to this first pixel Very little.
Such as, between the resolution of preview image when terminal can obtain the resolution of photographic plate and take pictures for the first time Ratio beta, calculates the pixel on photographic plate according to this ratio beta and the first pixel P1;Terminal also obtains preview when taking pictures for the first time The resolution K of image, is calculated the crossing the first one-tenth image width on photographic plate by the pixel of photographic plate divided by this resolution K Degree N1.
Specifically, N1 is calculated by formula 2:
N1=β * P1/K formula 2
Step S305, obtains this object under test the second imaging chi on the photographic plate of this photographic head according to this second pixel Very little.
Such as, terminal can calculate the pixel on photographic plate according to this ratio beta and the second pixel P2;By the picture of photographic plate Element, divided by above-mentioned resolution K, is calculated the crossing the second imaging width N2 on photographic plate.Owing to resolution is usually fixed , the resolution of image when therefore second time is taken pictures is equal to the resolution of image when taking pictures for the first time.
Specifically, N2 is calculated by formula 3:
N2=β * P2/K formula 3
Step S306, according to this displacement, this first imaging width, this first focal length, this second imaging width, this Two focal lengths obtain the width of this object under test.
During owing to taking pictures for the first time, the ratio of the first imaging width N1 and the first focal length L1 is equal to width H and the road at crossing Distance M1 ratio between mouth and terminal, as shown in Equation 4:
N1/L1=H/M1;Formula 4
When taking pictures due to second time, the ratio of the second imaging width N2 and the second focal length L2 is equal to width H and the road at crossing Distance M1 ± m ratio between mouth and terminal, as shown in Equation 5:
N2/L2=H/ (M1 ± m);Formula 5
Obtain formula 6,7 in conjunction with formula 2 to formula 5, when automobile move forward carry out second time take pictures time, the width at this crossing Degree H1 is concrete as shown in Equation 6:
H1=m* (β/K) * (P1*P2/ (L1*P2-L2*P1));Formula 6
When car reversed carries out taking pictures for the second time, the width H2 at this crossing is concrete the most as shown in Equation 7:
H2=m* (β/K) * (P1*P2/ (L1*P2+L2*P1));Formula 7
Wherein H1 or H2 is the width at this crossing, and m is this displacement, and β is this ratio, and P1 is this first pixel, P2 For this second pixel, L1 be this first focal length, L2 be this second focal length, K is this resolution.
Step S307, it is judged that whether the width of this object under test is more than predetermined threshold value.
Such as, the width at the crossing that step S306 obtains is compared by terminal with predetermined threshold value, and this predetermined threshold value is vehicle body Width.When the width judging this crossing is more than body width, then terminal performs step S308;When the width judging crossing is less than Or during equal to body width, then terminal performs step S309.
Step S308, when the width of this object under test is more than this predetermined threshold value, shows the first cue.
Such as, when terminal judges the width at this crossing more than body width, then terminal sends the prompting of " can pass through " Sound, terminal can also show " continuing with moving ahead " on screen.
Step S309, when the width of this object under test is less than or equal to this predetermined threshold value, shows the second cue.
Such as, when the width judging crossing is less than or equal to body width, then terminal sends carrying of " can not passing through " Showing sound, terminal can also show " junction ahead is narrower, please detour " on screen.
The processing method of the information data of the present embodiment, by carrying out taking pictures of different distance, obtains the width of object under test Degree;And the width of acquisition is compared with predetermined threshold value, if this width is more than predetermined threshold value, then show the first prompting letter Number, if this width is less than or equal to predetermined threshold value, then shows the second cue so that user uses convenient, carry The high motility of Consumer's Experience and terminal.
Refer to the structural representation of the processing means of the information data that Fig. 4, Fig. 4 provide for the embodiment of the present invention four.This The processing means 40 of the information data of preferred embodiment includes: the first acquisition module 41, distance acquisition module 42, second obtain mould Block 43, dimension acquisition module 44.
First acquisition module 41, for receiving the first photographing instruction, obtains object under test according to this first photographing instruction First pixel, and obtain the focal length of current photographic head, obtain the first focal length.
Distance acquisition module 42, for when the distance detected between this object under test changes, obtains mobile Distance.
Second acquisition module 43, for receiving the second photographing instruction, obtains this object under test according to this second photographing instruction The second pixel and obtain the focal length of current photographic head, obtain the second focal length.
Dimension acquisition module 44, for according to this displacement, this first focal length, this second focal length, this first pixel with And this second pixel obtains the target size of this object under test.
As it is shown in figure 5, this dimension acquisition module 44 includes: first obtain submodule 441, second obtain submodule 442, the Three obtain submodule 443.
First obtains submodule 441, for obtaining this object under test photographic plate at this photographic head according to this first pixel On the first imaging size.
Second obtains submodule 442, for obtaining this object under test second on this photographic plate according to this second pixel Imaging size.
3rd obtain submodule 443, for according to this displacement, this first imaging size, this first focal length, this second Imaging size, this second focal length obtain the target size of this object under test.
This first acquisition submodule 441 includes: pixel acquisition unit 51, resolution acquiring unit 52, size acquiring unit 53。
Pixel acquisition unit 51, for obtaining the pixel of corresponding photographic plate according to described first pixel, obtains changing picture Element.
Resolution acquiring unit 52, for obtaining the resolution of the image that described first photographing instruction obtains.
Size acquiring unit 53, for obtaining described first imaging size according to described conversion pixel and described resolution.
This pixel acquisition unit 51 specifically for: obtain the figure that the resolution of this photographic plate obtains with this first photographing instruction Ratio between the resolution of picture;And the pixel of corresponding photographic plate is obtained according to this ratio and this first pixel, turned Change pixel.
This dimension acquisition module 44, specifically for being calculated the target size of this object under test by below equation:
H=m* (β/K) * (P1*P2/ (L1*P2 ± L2*P1))
Wherein H is the target size of this object under test, and m is this displacement, and β is this ratio, and P1 is this first pixel, P2 For this second pixel, L1 be this first focal length, L2 be this second focal length, K is this resolution.This target size can be length, At least one in width and height.
This device 40 also includes: judge module 45 and processing module 46;
Judge module 45, is used for judging that whether this target size is more than predetermined threshold value;
Processing module 46, for when this target size is more than this predetermined threshold value, showing the first cue;And when being somebody's turn to do When target size is less than or equal to this predetermined threshold value, show the second cue.
When being embodied as, above modules can realize as independent entity, it is also possible to carries out combination in any, makees Realize for same or several entities, the embodiment of the method being embodied as can be found in above of above modules, at this not Repeat again.
The processing means of the information data of this preferred embodiment, by receiving the first photographing instruction, shines according to this first count First pixel of instruction acquisition object under test, and obtain the focal length of current photographic head, obtain the first focal length;When detecting and being somebody's turn to do When distance between object under test changes, obtain displacement;Receive the second photographing instruction, according to this second photographing instruction Obtain the second pixel of this object under test and obtain the focal length of current photographic head, obtaining the second focal length;According to this move away from From, this first focal length, this second focal length, this first pixel and this second pixel obtain the target size of this object under test.By Just can obtain the size of object under test in the pixel taken pictures by twice, focal length and displacement, improve object under test The degree of accuracy of dimensional measurement and improve the motility of terminal.
Refer to the structural representation of the terminal that Fig. 6, Fig. 6 provide for the embodiment of the present invention five.
The present embodiment provides a kind of terminal, and this terminal can include the processing means of above-mentioned information data, this Information Number According to processing means specifically refer to the specific descriptions of embodiment four, do not repeat them here.
The present embodiment also provides for another kind of terminal, and as shown in Figure 6, this terminal 60 can include radio frequency (RF, Radio Frequency) circuit 61, include the memorizer 62 of one or more computer-readable recording mediums, input block 63, Display unit 64, sensor 65, voicefrequency circuit 66, Wireless Fidelity (WiFi, Wireless Fidelity) module 67, include One or more than one parts such as the processor 68 processing core and power supply 69.It will be understood by those skilled in the art that figure Terminal structure shown in 6 is not intended that the restriction to terminal, can include that ratio illustrates more or less of parts, or combination Some parts, or different parts layouts.
Radio circuit 61 can be used for receiving and sending messages, or the reception of signal and transmission in communication process, especially, by base station After downlink information receives, transfer to one or more than one processor 68 processes;It addition, be sent to base by relating to up data Stand.Generally, radio circuit 61 includes but not limited to antenna, at least one amplifier, tuner, one or more agitator, use Family identity module (SIM, Subscriber Identity Module) card, transceiver, bonder, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..Additionally, radio circuit 61 can also by radio communication and network and Other equipment communicates.This radio communication can use arbitrary communication standard or agreement, includes but not limited to global system for mobile telecommunications system System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division many Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memorizer 62 can be used for storing software program and module.Processor 68 is stored in the soft of memorizer 62 by operation Part program and module, thus perform the application of various function and data process.Memorizer 62 can mainly include storing program area With storage data field, wherein, storage program area can store application program (the such as sound needed for operating system, at least one function Sound playing function, image player function etc.) etc.;Storage data field can store data that the use according to terminal created (such as Voice data, phone directory etc.) etc..Additionally, memorizer 62 can include high-speed random access memory, it is also possible to include non-volatile Property memorizer, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, deposit Reservoir 62 can also include Memory Controller, to provide processor 68 and the input block 63 access to memorizer 62.
Input block 63 can be used for receiving numeral or the character information of input, and produces and user setup and function control It is shaped with the keyboard of pass, mouse, action bars, optics or the input of trace ball signal.Specifically, in a specific embodiment, Input block 63 can include Touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touches display screen or Trackpad, Can collect user thereon or neighbouring touch operation (such as user uses any applicable object such as finger, stylus or adnexa Operation on Touch sensitive surface or near Touch sensitive surface), and drive corresponding attachment means according to formula set in advance.Can Choosing, Touch sensitive surface can include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detection user Touch orientation, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller is from touching inspection Survey and receive touch information on device, and be converted into contact coordinate, then give processor 68, and processor 68 can be received send Order and performed.Furthermore, it is possible to use the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize Touch sensitive surface.Except Touch sensitive surface, input block 63 can also include other input equipments.Specifically, other input equipments can To include but not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars One or more in Deng.
Display unit 64 can be used for the various of the information that inputted by user of display or the information being supplied to user and terminal Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display Unit 64 can include display floater, optionally, can use liquid crystal display (LCD, Liquid Crystal Display), have The forms such as machine light emitting diode (OLED, Organic Light-Emitting Diode) configure display floater.Further, Touch sensitive surface can cover display floater, when Touch sensitive surface detects thereon or after neighbouring touch operation, sends processor to 68 to determine the type of touch event, provides on a display panel according to the type of touch event with preprocessor 68 and regards accordingly Feel and export.Although in figure 6, Touch sensitive surface and display floater are to realize input and input work as two independent parts Can, but in some embodiments it is possible to by integrated to Touch sensitive surface and display floater and realize input and output function.
Terminal 60 may also include at least one sensor 65, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor can include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light Light and shade regulate the brightness of display floater, proximity transducer can cut out display floater and/or the back of the body when terminal moves in one's ear Light.As the one of motion sensor, Gravity accelerometer can detect (generally three axles) acceleration in all directions Size, can detect that size and the direction of gravity time static, can be used for identify mobile phone attitude application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;Can also configure as terminal Gyroscope, barometer, drimeter, thermometer, other sensors such as infrared ray sensor, do not repeat them here.
Voicefrequency circuit 66 can pass through speaker, microphone provides the audio interface between user and terminal.Voicefrequency circuit 66 The voice data received can be converted into the signal of telecommunication, be transferred to speaker, speaker be converted to acoustical signal output;Another Aspect, the acoustical signal of collection is converted to the signal of telecommunication by microphone, voicefrequency circuit 66 be converted to voice data after receiving, then will After voice data output processor 68 processes, through radio circuit 61 to be sent to such as another terminal or voice data is defeated Go out to memorizer 62 to process further.Voicefrequency circuit 66 is also possible that earphone jack, to provide peripheral hardware earphone and terminal Communication.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and terminal can help to use by wireless fidelity module 67 Family is sent and received e-mail, is browsed webpage and access streaming video etc., and it has provided the user wireless broadband internet and has accessed.Though So Fig. 6 shows wireless fidelity module 67, but it is understood that, it is also not belonging to must be configured into of terminal, the most permissible Omit in not changing the scope of essence of invention as required.
Processor 68 is the control centre of terminal, utilizes various interface and the various piece of the whole terminal of connection, logical Cross operation or perform to be stored in the software program in memorizer 62 and/or module, and calling the number being stored in memorizer 62 According to, perform the various functions of terminal and process data, thus terminal is carried out integral monitoring.Optionally, processor 68 can include One or more process cores;Preferably, processor 68 can integrated application processor and modem processor, wherein, application Processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Can To be understood by, above-mentioned modem processor can not also be integrated in processor 68.
Terminal 60 also includes the power supply 69 (such as battery) powered to all parts.Preferably, power supply can pass through power supply Management system is logically contiguous with processor 68, thus realizes management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 69 can also include one or more direct current or alternating current power supply, recharging system, power failure monitor Circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown in Fig. 6, terminal can also include photographic head, bluetooth module etc., does not repeats them here.
The most in the present embodiment, the processor 68 in terminal can be according to following instruction, by one or more The executable file that the process of application program is corresponding is loaded in memorizer 62, and is run by processor 68 and be stored in memorizer Application program in 62, thus realize various function:
Receive the first photographing instruction, obtain the first pixel of object under test according to this first photographing instruction, and acquisition is worked as The focal length of front photographic head, obtains the first focal length;When the distance detected between this object under test changes, obtain mobile Distance;Receive the second photographing instruction, obtain the second pixel of this object under test according to this second photographing instruction and obtain current The focal length of photographic head, obtains the second focal length;According to this displacement, this first focal length, this second focal length, this first pixel and This second pixel obtains the target size of this object under test.
Preferably, processor 68 has the first acquisition module, distance acquisition module, the second acquisition module, size acquisition mould Block;
Processor 68, for receiving the first photographing instruction, obtains the first picture of object under test according to this first photographing instruction Element, and obtain the focal length of current photographic head, obtain the first focal length;
Processor 68, for when the distance detected between this object under test changes, obtains displacement;
Processor 68, for receiving the second photographing instruction, obtains the second of this object under test according to this second photographing instruction Pixel and obtain the focal length of current photographic head, obtains the second focal length;
Processor 68, for according to this displacement, this first focal length, this second focal length, this first pixel and this Two pixels obtain the target size of this object under test.
Aforesaid operations specifically can be found in embodiment of the method above, does not repeats them here.
The terminal of this preferred embodiment, by receiving the first photographing instruction, obtains determinand according to this first photographing instruction First pixel of body, and obtain the focal length of current photographic head, obtain the first focal length;When detecting between this object under test When distance changes, obtain displacement;Receive the second photographing instruction, obtain this object under test according to this second photographing instruction The second pixel and obtain the focal length of current photographic head, obtain the second focal length;According to this displacement, this first focal length, it is somebody's turn to do Second focal length, this first pixel and this second pixel obtain the target size of this object under test.Due to by taking pictures for twice Pixel, focal length and displacement just can obtain the size of object under test, improve the degree of accuracy of object under test dimensional measurement And improve the motility of terminal.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completing instructing relevant hardware by program, this program can be stored in a computer-readable recording medium, storage Medium may include that read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
The processing method of a kind of information data, device and the terminal that are thered is provided the embodiment of the present invention above have been carried out in detail Introducing, principle and the embodiment of the present invention are set forth by specific case used herein, the explanation of above example It is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for those skilled in the art, according to the present invention Thought, the most all will change, in sum, this specification content should not be understood For limitation of the present invention.

Claims (15)

1. the processing method of an information data, it is characterised in that including:
Receive the first photographing instruction, obtain the first pixel of object under test according to described first photographing instruction, and obtain current The focal length of photographic head, obtains the first focal length;
When the distance detected between described object under test changes, obtain displacement;
Receive the second photographing instruction, obtain the second pixel of described object under test according to described second photographing instruction and obtain The focal length of current photographic head, obtains the second focal length;
Obtain according to described displacement, described first focal length, described second focal length, described first pixel and described second pixel Take the target size of described object under test.
The processing method of information data the most according to claim 1, it is characterised in that
Described according to described displacement, described first focal length, described second focal length, described first pixel and described second picture The step of the target size that element obtains described object under test includes:
The described object under test the first imaging size on the photographic plate of described photographic head is obtained according to described first pixel;
The described object under test the second imaging size on described photographic plate is obtained according to described second pixel;
According to described displacement, described first imaging size, described first focal length, described second imaging size, described second Focal length obtains the target size of described object under test.
The processing method of information data the most according to claim 2, it is characterised in that
Described according to the described first pixel acquisition described object under test the first imaging size on the photographic plate of described photographic head Step include:
Obtain the pixel of corresponding photographic plate according to described first pixel, obtain changing pixel;
Obtain the resolution of the image that described first photographing instruction obtains;
Described first imaging size is obtained according to described conversion pixel and described resolution.
The processing method of information data the most according to claim 3, it is characterised in that
The described pixel obtaining corresponding photographic plate according to described first pixel, the step obtaining changing pixel includes:
Obtain the ratio between the resolution of the resolution of described photographic plate and the image of described first photographing instruction acquisition;
Obtain the pixel of corresponding photographic plate according to described ratio with described first pixel, obtain changing pixel.
The processing method of information data the most according to claim 4, it is characterised in that
The target size of described object under test is obtained by below equation:
H=m* (β/K) * (P1*P2/ (L1*P2 ± L2*P1));
Wherein H is the target size of described object under test, and m is described displacement, and β is described ratio, and P1 is described first picture Element, P2 be described second pixel, L1 be described first focal length, L2 be described second focal length, K is described resolution.
The processing method of information data the most according to claim 1, it is characterised in that
Described target size is at least one in length, width and height.
The processing method of information data the most according to claim 1, it is characterised in that
Described according to described displacement, described first focal length, described second focal length, described first pixel and described second After the step of the target size that pixel obtains described object under test, described method also includes:
Judge that whether described target size is more than predetermined threshold value;
When described target size is more than described predetermined threshold value, show the first cue;
When described target size is less than or equal to described predetermined threshold value, show the second cue.
8. the processing means of an information data, it is characterised in that including:
First acquisition module, for receiving the first photographing instruction, obtains the first of object under test according to described first photographing instruction Pixel, and obtain the focal length of current photographic head, obtain the first focal length;
Distance acquisition module, for when the distance detected between described object under test changes, obtains displacement;
Second acquisition module, for receiving the second photographing instruction, obtains described object under test according to described second photographing instruction Second pixel and obtain the focal length of current photographic head, obtains the second focal length;
Dimension acquisition module, for according to described displacement, described first focal length, described second focal length, described first pixel And described second pixel obtain described object under test target size.
The processing means of information data the most according to claim 8, it is characterised in that
Described dimension acquisition module includes:
First obtains submodule, for obtaining the described object under test photographic plate at described photographic head according to described first pixel The first imaging size;
Second obtains submodule, for obtaining the second one-tenth on described photographic plate of described object under test according to described second pixel As size;
3rd obtains submodule, for according to described displacement, described first imaging size, described first focal length, described the Two imaging sizes, described second focal length obtain the target size of described object under test.
The processing means of information data the most according to claim 9, it is characterised in that
Described first obtains submodule includes:
Pixel acquisition unit, for obtaining the pixel of corresponding photographic plate according to described first pixel, obtains changing pixel;
Resolution acquiring unit, for obtaining the resolution of the image that described first photographing instruction obtains;
Size acquiring unit, for obtaining described first imaging size according to described conversion pixel and described resolution.
The processing means of 11. information datas according to claim 10, it is characterised in that
Described pixel acquisition unit specifically for:
Obtain the ratio between the resolution of the resolution of described photographic plate and the image of described first photographing instruction acquisition;And Obtain the pixel of corresponding photographic plate according to described ratio with described first pixel, obtain changing pixel.
The processing means of 12. information datas according to claim 11, it is characterised in that
Described dimension acquisition module, specifically for being calculated the target size of described object under test by below equation:
H=m* (β/K) * (P1*P2/ (L1*P2 ± L2*P1));
Wherein H is the target size of described object under test, and m is described displacement, and β is described ratio, and P1 is described first picture Element, P2 be described second pixel, L1 be described first focal length, L2 be described second focal length, K is described resolution.
The processing means of 13. information datas according to claim 8, it is characterised in that
Described target size is at least one in length, width and height.
The processing means of 14. information datas according to claim 8, it is characterised in that described device also includes:
Judge module, is used for judging that whether described target size is more than predetermined threshold value;
Processing module, for when described target size is more than described predetermined threshold value, showing the first cue;And when described When target size is less than or equal to described predetermined threshold value, show the second cue.
15. 1 kinds of terminals, it is characterised in that include the processing means of information data as described in any one of claim 8-14.
CN201610724838.4A 2016-08-25 2016-08-25 Processing method, device and the terminal of information data Expired - Fee Related CN106092058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610724838.4A CN106092058B (en) 2016-08-25 2016-08-25 Processing method, device and the terminal of information data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610724838.4A CN106092058B (en) 2016-08-25 2016-08-25 Processing method, device and the terminal of information data

Publications (2)

Publication Number Publication Date
CN106092058A true CN106092058A (en) 2016-11-09
CN106092058B CN106092058B (en) 2018-07-27

Family

ID=57225139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610724838.4A Expired - Fee Related CN106092058B (en) 2016-08-25 2016-08-25 Processing method, device and the terminal of information data

Country Status (1)

Country Link
CN (1) CN106092058B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108225278A (en) * 2017-11-29 2018-06-29 维沃移动通信有限公司 A kind of distance measuring method, mobile terminal
CN109520419A (en) * 2018-12-06 2019-03-26 闻泰通讯股份有限公司 Pass through the method, device and mobile terminal of image measurement dimension of object
CN109764858A (en) * 2018-12-24 2019-05-17 中公高科养护科技股份有限公司 A kind of photogrammetric survey method and system based on monocular camera
CN111024044A (en) * 2019-06-10 2020-04-17 湖南大狗科技有限公司 Geographic information acquisition system and method based on unmanned aerial vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000131064A (en) * 1998-10-29 2000-05-12 Japan Aviation Electronics Industry Ltd Height measurement method
CN101033958A (en) * 2007-02-01 2007-09-12 华中科技大学 Mechanical vision locating method
CN102980561A (en) * 2012-11-30 2013-03-20 广东欧珀移动通信有限公司 Distance measuring method and distance measuring device of mobile terminal
GB2495526A (en) * 2011-10-12 2013-04-17 Hidef Aerial Surveying Ltd Height measurement of moving objects (seabirds) from non-synchronous aerial photographs taken from a moving platform (aircraft)
CN103398658A (en) * 2013-07-01 2013-11-20 李雄 Mobile phone device for measuring space object
CN103759703A (en) * 2014-01-09 2014-04-30 惠州Tcl移动通信有限公司 Measuring method for height of object and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000131064A (en) * 1998-10-29 2000-05-12 Japan Aviation Electronics Industry Ltd Height measurement method
CN101033958A (en) * 2007-02-01 2007-09-12 华中科技大学 Mechanical vision locating method
GB2495526A (en) * 2011-10-12 2013-04-17 Hidef Aerial Surveying Ltd Height measurement of moving objects (seabirds) from non-synchronous aerial photographs taken from a moving platform (aircraft)
CN102980561A (en) * 2012-11-30 2013-03-20 广东欧珀移动通信有限公司 Distance measuring method and distance measuring device of mobile terminal
CN103398658A (en) * 2013-07-01 2013-11-20 李雄 Mobile phone device for measuring space object
CN103759703A (en) * 2014-01-09 2014-04-30 惠州Tcl移动通信有限公司 Measuring method for height of object and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108225278A (en) * 2017-11-29 2018-06-29 维沃移动通信有限公司 A kind of distance measuring method, mobile terminal
CN109520419A (en) * 2018-12-06 2019-03-26 闻泰通讯股份有限公司 Pass through the method, device and mobile terminal of image measurement dimension of object
CN109764858A (en) * 2018-12-24 2019-05-17 中公高科养护科技股份有限公司 A kind of photogrammetric survey method and system based on monocular camera
CN109764858B (en) * 2018-12-24 2021-08-06 中公高科养护科技股份有限公司 Photogrammetry method and system based on monocular camera
CN111024044A (en) * 2019-06-10 2020-04-17 湖南大狗科技有限公司 Geographic information acquisition system and method based on unmanned aerial vehicle

Also Published As

Publication number Publication date
CN106092058B (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN103327102B (en) A kind of method and apparatus recommending application program
CN103871051B (en) Image processing method, device and electronic equipment
CN103702029B (en) The method and device of focusing is pointed out during shooting
CN106412249B (en) The detection method and device of drop information
CN103365419B (en) A kind of method and apparatus triggering alarm clock control command
CN106778585A (en) A kind of face key point-tracking method and device
CN106126015A (en) A kind of application program launching control method and terminal
CN109391762A (en) A kind of method and apparatus of track up
CN106357897A (en) Fall information acquiring method and device
CN103854298A (en) Method for integrating pictures with two-dimension codes and terminal
CN106331359B (en) A kind of speech signal collection method, device and terminal
CN106371086A (en) Distance measurement method and device
CN105606117A (en) Navigation prompting method and navigation prompting apparatus
CN106487984B (en) A kind of method and apparatus adjusting volume
CN106092058A (en) The processing method of information data, device and terminal
CN107124556A (en) Focusing method, device, computer-readable recording medium and mobile terminal
CN103823626A (en) Method and device for regulating display contents and electronic equipment
US20200259994A1 (en) Photo taking control method and system based on mobile terminal, and storage medium
CN106101529A (en) A kind of camera control method and mobile terminal
CN104238900A (en) Page positioning method and device
CN104820546A (en) Functional information exhibition method and apparatus
CN106161800A (en) A kind of incoming call reminding method, device and communication terminal
CN103823851B (en) Webpage display process and device
CN103823828A (en) Map scale setting method, map scale setting device and terminal
CN106682189A (en) Filename display 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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180727