CN107920239A - Projected image Automatic adjustment method, device and computer-readable recording medium - Google Patents
Projected image Automatic adjustment method, device and computer-readable recording medium Download PDFInfo
- Publication number
- CN107920239A CN107920239A CN201711188373.6A CN201711188373A CN107920239A CN 107920239 A CN107920239 A CN 107920239A CN 201711188373 A CN201711188373 A CN 201711188373A CN 107920239 A CN107920239 A CN 107920239A
- Authority
- CN
- China
- Prior art keywords
- projected image
- gravity sensing
- current
- sensing data
- adjustment method
- 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 50
- 230000005484 gravity Effects 0.000 claims abstract description 108
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/12—Picture reproducers
- H04N9/31—Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
- H04N9/3179—Video signal processing therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/80—Geometric correction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/12—Picture reproducers
- H04N9/31—Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
- H04N9/3179—Video signal processing therefor
- H04N9/3185—Geometric adjustment, e.g. keystone or convergence
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- Transforming Electric Information Into Light Information (AREA)
Abstract
The invention discloses a kind of projected image Automatic adjustment method, the projected image Automatic adjustment method comprises the following steps:Obtain the current gravity sensing data of output projector, image projection equipment;The placement location data of projector equipment are determined based on current gravity sensing data, and based on the current display position of projected image described in placement location data acquisition;Based on current display position and default benchmark display location, display location adjusting is carried out to the projected image.The invention also discloses a kind of projected image self-checking device and computer-readable recording medium.The present invention is realized obtains corresponding data in real time during the use of projector equipment by gravity sensing technology, and the current placement position of projector equipment is determined based on obtained data, to be adjusted correspondingly according to current placement position to the display picture of projected image.
Description
Technical field
The present invention relates to projection art, more particularly to a kind of projected image Automatic adjustment method, device and calculating
Machine readable storage medium storing program for executing.
Background technology
The image display of existing projector equipment, due to placement position and the difference of placement angle, the image showed is simultaneously
Non- is all rectangle, but is in irregular shape.To ensure that digital picture is imaged as rectangle, it is necessary to which to do digital picture automatically trapezoidal
Distortion correction.
The automatic more common implementation of keystone includes at present:
(1) by ultrasonic ranging, focused on according to distance to adjust projector;
(2) specific pattern by single camera shooting projection on the screen, knows and feedback adjustment focuses on;
(3) perceive projected image geometric distortion by the sensor being distributed on screen and correct;
(4) whether tilt and be corrected estimating perspective plane by screen intensity variations in peak;
(5) whether distortion and corrected come perceptual image by imaging sensor and Infrared laser emission device.
However, for existing correcting mode, to a certain extent there are different technological deficiencies, such as:By environment or
The having a great influence of person's usage scenario, equipment cost is higher etc..
The content of the invention
It is a primary object of the present invention to provide a kind of projected image Automatic adjustment method, device and computer-readable deposit
Storage media, it is intended to solve how in the case where reducing use cost, ensure that projected image corrects the accuracy of adjusting automatically
Technical problem.
To achieve the above object, the present invention provides a kind of projected image Automatic adjustment method, and the projected image is adjusted automatically
Section method comprises the following steps:
Obtain the current gravity sensing data of output projector, image projection equipment;
The placement location data of projector equipment are determined based on current gravity sensing data, and are based on placement location data acquisition
The current display position of the projected image;
Based on current display position and default benchmark display location, display location adjusting is carried out to the projected image.
Preferably, also wrapped before described the step of obtaining the current gravity sensing data for exporting projector, image projection equipment
Include:
Each cycle obtains once the gravity sensing data of the projector equipment, and works as and judge the gravity sensing data
Using the projected image as current weight when being more than preset value with the variable quantity of adjacent preceding once acquired gravity sensing data
Power sensed data is preserved.
Preferably, each described cycle obtains once the gravity sensing data of the projector equipment, and when described in judgement
By the perspective view when variable quantity of gravity sensing data and adjacent preceding once acquired gravity sensing data is more than preset value
As including the step of preservation as current gravity sensing data:
Each cycle obtains the gravity sensing data of the projector equipment, and identifies coordinate in the gravity sensing data
Corresponding transverse and longitudinal coordinate value;
Gravity sensing data acquired in the gravity sensing data and adjacent previous cycle are subjected to mathematic interpolation, with
The transverse and longitudinal coordinate difference in cycle is corresponded to the gravity sensing data;
Judge whether the transverse and longitudinal coordinate difference of the transverse and longitudinal coordinate difference and adjacent previous cycle is simultaneously greater than described preset
Value;
, will if the transverse and longitudinal coordinate difference of the transverse and longitudinal coordinate difference and adjacent previous cycle is simultaneously greater than the preset value
The gravity sensing data are preserved as current gravity sensing data.
Preferably, the placement location data that projector equipment is determined based on current gravity sensing data, and based on placement
The step of current display position of the position data acquisition projected image, includes:
Based on current gravity sensing data, the current location coordinate value of projector equipment is obtained;
Based on current location coordinate value, the corresponding coordinate value of each vertex position of the projected image is obtained.
Preferably, it is described to be based on current location coordinate value, obtain the corresponding coordinate value of each vertex position of the projected image
The step of include:
Based on current position coordinates, present coordinate values are judged whether in the range of preset coordinate, to be judged accordingly
As a result;
The corresponding coordinate value of each vertex position of current projected picture is determined based on the judging result.
Preferably, it is described based on judging that the result determines the step of the corresponding coordinate value of each vertex position of current projected picture
Suddenly include:
If present coordinate values within a preset range, directly acquire the coordinate value of default each vertex position, to determine to remove
The coordinate value of its outer excess-three vertex position of origin.
Preferably, it is described based on judging that the result determines the step of the corresponding coordinate value of each vertex position of current projected picture
Suddenly further include:
If present coordinate values not within a preset range when, calculate the difference between present coordinate values and preset value;
Based on the difference, the coordinate value of its excess-three vertex position in addition to origin is calculated.
Preferably, it is described to be based on current display position and default benchmark display location, the projected image is shown
Show that the step of position is adjusted includes:
According to the corresponding coordinate value of each vertex position of the projected image, corresponding display area is obtained;
Based on the display area and default benchmark display location, image stretch is carried out to the projected image, with
Adjust the display location of the projected image.
In addition, to achieve the above object, the present invention also provides a kind of projected image self-checking device, the projected image
Self-checking device includes:Memory, processor and oneself that is stored on the memory and can run on the processor
Dynamic to adjust program, the automatic control program realizes projected image automatic adjustment as described above when being performed by the processor
The step of method.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer-readable recording medium
Automatic control program is stored with storage medium, the automatic control program realizes throwing as described above when being executed by processor
The step of shadow image Automatic adjustment method.
A kind of projected image Automatic adjustment method that the embodiment of the present invention proposes, by obtaining used projector equipment in real time
Gravity sensing data, then determine the position placed of projector equipment according to gravity sensing data, and based on the position placed
Put the current display position for obtaining projected image, and then the display location according to projected image and corresponding benchmark display location pair
The display location of projected image is adjusted accordingly.Realize during the use of projector equipment, pass through gravity sensing skill
Art is detected judgement to the position of projector equipment in real time, and when detection confirms that projector equipment is moved, based on gravity-feed tank
Technology is answered to obtain the placement position of Current projection equipment and the relative position in direction, the relative position pair being finally based on
The display of projected image is adjusted.
Brief description of the drawings
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of one embodiment of projected image Automatic adjustment method of the present invention;
Fig. 3 is the flow diagram of another embodiment of projected image Automatic adjustment method of the present invention;
Fig. 4 is the refinement flow diagram of step S40 in Fig. 3;
Fig. 5 is the refinement flow diagram of step S20 in Fig. 2;
Fig. 6 is the stream for obtaining coordinate in one preferred embodiment of projected image Automatic adjustment method of the present invention based on gravity sensing
Journey schematic diagram;
Fig. 7 is image processing flow schematic diagram in one preferred embodiment of projected image Automatic adjustment method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the apparatus structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Device of the embodiment of the present invention can be projecting apparatus or smart mobile phone, tablet computer, MP4 (Moving
Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 3) player, just
Taking computer etc. has the terminal device of projecting function.
As shown in Figure 1, the device can include:Processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is used for realization the connection communication between these components.
User interface 1003 can include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally connect including the wired of standard
Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or the memory of stabilization
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
Alternatively, device can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio
Circuit, WiFi module etc..Wherein, sensor ratio such as optical sensor, motion sensor and other sensors.Specifically, light
Sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can according to the light and shade of ambient light come
The brightness of display screen is adjusted, proximity sensor can close display screen and/or backlight when mobile terminal is moved in one's ear.As
One kind of motion sensor, gravity accelerometer can detect in all directions the size of (generally three axis) acceleration, quiet
It can detect that size and the direction of gravity when only, the application available for identification mobile terminal posture is (such as horizontal/vertical screen switching, related
Game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, device can also configure top
The other sensors such as spiral shell instrument, barometer, hygrometer, thermometer, infrared ray sensor, details are not described herein.
It will be understood by those skilled in the art that the restriction of the apparatus structure shown in Fig. 1 not structure twin installation, can wrap
Include than illustrating more or fewer components, either combine some components or different components arrangement.
As shown in Figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module, Subscriber Interface Module SIM and automatic control program.
In the terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is carried out with background server
Data communication;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;And processor
1001 can be used for calling the automatic control program stored in memory 1005, and perform following operation:
Obtain the current gravity sensing data of output projector, image projection equipment;
The placement location data of projector equipment are determined based on current gravity sensing data, and are based on placement location data acquisition
The current display position of the projected image;
Based on current display position and default benchmark display location, display location adjusting is carried out to the projected image.
Further, processor 1001 can call the automatic control program stored in memory 1005, also perform following
Operation:
Each cycle obtains once the gravity sensing data of the projector equipment, and works as and judge the gravity sensing data
Using the projected image as current weight when being more than preset value with the variable quantity of adjacent preceding once acquired gravity sensing data
Power sensed data is preserved.
Further, processor 1001 can call the automatic control program stored in memory 1005, also perform following
Operation:
Each cycle obtains the gravity sensing data of the projector equipment, and identifies coordinate in the gravity sensing data
Corresponding transverse and longitudinal coordinate value;
Gravity sensing data acquired in the gravity sensing data and adjacent previous cycle are subjected to mathematic interpolation, with
The transverse and longitudinal coordinate difference in cycle is corresponded to the gravity sensing data;
Judge whether the transverse and longitudinal coordinate difference of the transverse and longitudinal coordinate difference and adjacent previous cycle is simultaneously greater than described preset
Value;
, will if the transverse and longitudinal coordinate difference of the transverse and longitudinal coordinate difference and adjacent previous cycle is simultaneously greater than the preset value
The gravity sensing data are preserved as current gravity sensing data
Further, processor 1001 can call the automatic control program stored in memory 1005, also perform following
Operation:
Based on current gravity sensing data, the current location coordinate value of projector equipment is obtained;
Based on current location coordinate value, the corresponding coordinate value of each vertex position of the projected image is obtained.
Further, processor 1001 can call the automatic control program stored in memory 1005, also perform following
Operation:
Based on current position coordinates, present coordinate values are judged whether in the range of preset coordinate, to be judged accordingly
As a result;
The corresponding coordinate value of each vertex position of current projected picture is determined based on the judging result.
Further, processor 1001 can call the automatic control program stored in memory 1005, also perform following
Operation:
If present coordinate values within a preset range, directly acquire the coordinate value of default each vertex position, to determine to remove
The coordinate value of its outer excess-three vertex position of origin.
Further, processor 1001 can call the automatic control program stored in memory 1005, also perform following
Operation:
If present coordinate values not within a preset range when, calculate the difference between present coordinate values and preset value;
Based on the difference, the coordinate value of its excess-three vertex position in addition to origin is calculated.
Further, processor 1001 can call the automatic control program stored in memory 1005, also perform following
Operation:
According to the corresponding coordinate value of each vertex position of the projected image, corresponding display area is obtained;
Based on the display area and default benchmark display location, image stretch is carried out to the projected image, with
Adjust the display location of the projected image.
With reference to Fig. 2, Fig. 2 is the flow diagram of one embodiment of projected image Automatic adjustment method of the present invention.The projection
Image Automatic adjustment method includes:
Step S10, obtains the current gravity sensing data of output projector, image projection equipment;
Gravity sensing (Gravity-sensor, abbreviation G-sensor), it can perceive the change of acceleration, wherein,
Acceleration is exactly when object acts on power on object in accelerator, for example the various shiftings such as rocks, falls, rising, declining
Dynamic change can be converted into electric signal by G-sensor, after then being analyzed by the calculating of microprocessor, it becomes possible to complete program
Designed function.
In the present embodiment, the current weight based on the projector equipment that image projection is carried out obtained by gravity sensing technology is obtained
Power sensed data, wherein, when obtaining current gravity sensing data, projector equipment is moved through used in explanation, into
And need that projected image is adjusted.Specifically, during the use of projector equipment, gravity sensing data can detect in real time
Obtain, but not obtain in real time, only when projector equipment is moved, the current gravity sensing data for obtaining projector equipment are come
Determine the relative position of Current projection equipment.
Step S20, the placement location data of projector equipment are determined based on current gravity sensing data, and are based on placement location
The current display position of projected image described in data acquisition;
In the present embodiment, when projector equipment is moved, the current gravity sensing data of projector equipment are obtained, in order to right
The display of projected image is adjusted, it is thus necessary to determine that the placement location of Current projection equipment, therefore, sets according to acquired projection
Standby current gravity sensing data determine the current setting position of projector equipment, and then determine perspective view according to current setting position
The display location of picture.Specifically, the current gravity sensing data of projector equipment are obtained based on gravity sensing technology, and identified current
The position that the data message of gravity sensing data is placed with definite Current projection equipment, in the actual use process of projector equipment
In, in order to enable drop shadow effect is outstanding, the display picture of projected image is typically a rectangular shape, in the present embodiment
In, when the current setting position of obtained projector equipment, obtained to determine display picture according to the placement location of projector equipment
The design parameter in face, for example the specific location on four vertex of display picture is obtained, then determined according to the specific location on each vertex
The final display location of display picture.
Step S30, based on current display position and default benchmark display location, display position is carried out to the projected image
Put adjusting.
In the present embodiment, when obtaining the current display position of projected image according to current gravity sensing data, based on work as
Preceding display location and the reference position being adjusted, projected image is adjusted.Specifically, when obtaining display location,
Based on the reference position of adjusting to projected image carry out image stretch conversion so that projected image obtained display location into
The display of line discipline.
A kind of projected image Automatic adjustment method that the embodiment of the present invention proposes, by obtaining used projector equipment in real time
Gravity sensing data, then determine the position placed of projector equipment according to gravity sensing data, and based on the position placed
Put the current display position for obtaining projected image, and then the display location according to projected image and corresponding benchmark display location pair
The display location of projected image is adjusted accordingly.Realize during the use of projector equipment, pass through gravity sensing skill
Art obtains the current gravity sensing data of projector equipment when projector equipment is moved to obtain the current location of projector equipment
Information, and then the display location of projected image is adjusted.
Further, with reference to Fig. 3, Fig. 3 is another embodiment flow diagram of projected image Automatic adjustment method of the present invention.
Wherein, step S10, obtains the current gravity sensing data of output projector, image projection equipment, further includes before:
Step S40, each cycle obtains once the gravity sensing data of the projector equipment, and works as and judge the gravity
The projected image is made when the variable quantity of sensed data and adjacent preceding once acquired gravity sensing data is more than preset value
Preserved for current gravity sensing data.
In the present embodiment, gravity sensing data are not that can obtain at the moment, but in used projector equipment
When position changes, the gravity sensing data of projector equipment can be just obtained in particular manner, in the use of projector equipment
During, carried out in real time for the whether changed detection in projector equipment position, often spend a specific cycle, can
The gravity sensing data of a projector equipment are obtained, and acquired data are carried out with judgement confirmation, and then determine projector equipment
Position whether changed.Specifically, by the variable quantity of the gravity sensing data acquired in two neighboring constant time range whether
More than preset value, only when variable quantity is more than preset value, just conclude that the position of projector equipment is changed.
It is pointed out that the cycle mentioned in the present embodiment, specifically set-up mode is unlimited for it, it is therefore intended that in time
The current gravity sensing data of projector equipment are accurately obtained, and then determine the current location of projector equipment, equally, the present embodiment
In the preset value that refers to be an error amount when projector equipment uses, its specific acquisition modes can set projection
The scope of the change of its gravity sensing data when standby horizontal positioned, and a central value is obtained based on excursion, and then determine
Corresponding error amount.
Further, with reference to Fig. 4, Fig. 4 is the refinement flow diagram of step S40 in Fig. 3.
Step S401, each cycle obtain the gravity sensing data of the projector equipment, and identify the gravity sensing
The corresponding transverse and longitudinal coordinate value of coordinate in data;
In the present embodiment, in the operational process of projector equipment, a projector equipment often can be obtained by a cycle
Gravity sensing data, and identify corresponding coordinate value and its corresponding transverse and longitudinal coordinate value in gravity sensing data.In this reality
Apply in example, setting each second obtains the gravity sensing data of a projector equipment, and obtains corresponding coordinate value (X, Y).
Gravity sensing data acquired in the gravity sensing data and adjacent previous cycle are carried out difference by step S402
Calculate, to obtain the transverse and longitudinal coordinate difference that the gravity sensing data correspond to the cycle;
In the present embodiment, when obtaining the corresponding gravity sensing data of current period, once obtained simultaneously as preceding
Gravity sensing data can be preserved accordingly, read the corresponding coordinate of gravity sensing data acquired in previous cycle at this time
Value, carries out mathematic interpolation by obtained two coordinates, obtains corresponding transverse and longitudinal coordinate difference.Specifically, current gravity is set
The corresponding coordinate value of sensed data is (Xnew, Ynew), and the coordinate value of adjacent previous cycle is (Xold, Yold), is based at this time
ABS function is calculated, to obtain abs (Xnew-Xold) and abs (Ynew-Yold), wherein abs (Xnew-Xold)
For Xnew and the absolute value of Xold differences, abs (Ynew-Yold) is Ynew and the absolute value of Yold differences.
Step S403, judges whether the transverse and longitudinal coordinate difference of the transverse and longitudinal coordinate difference and adjacent previous cycle is simultaneously greater than
The preset value;
In the present embodiment, for determine projector equipment placement location whether changed foundation when judge adjacent two weeks
The variable quantity of gravity sensing data acquired in phase, is transfixion since projector equipment does not ensure that in use
So that equipment in itself can be there are certain error, therefore needs error being also contemplated for wherein when being judged.Specifically,
By abs (Xnew-Xold) and abs (Ynew-Yold) compared with preset value, it is assumed that preset value 12, works as abs
(Xnew-Xold) and in abs (Ynew-Yold) when being at least more than 12 there are a value, then illustrate that the position of projector equipment occurs
Change, in the present embodiment, in order to enable what is judged is more accurate, when corresponding transverse and longitudinal coordinate difference of two neighboring cycle is big
When 12, it is accurate determine projector equipment position changed, specifically, it is assumed that current time t3, t3 it is adjacent before
One moment was t2, and the adjacent previous moment of t2 is t1, three moment corresponding coordinate difference (X3, Y3), (X2, Y2),
(X1, Y1), obtains corresponding as a result, respectively abs according to calculation formula abs (Xnew-Xold) and abs (Ynew-Yold)
(X3-X2) and abs (Y3-Y2), abs (X2-X1) and abs (Y2-Y1) bar that, the position of specific definite projector equipment changes
Part is:At least one in abs (X3-X2) and abs (Y3-Y2) is more than at least one in 12 and abs (X2-X1) and abs (Y2-Y1)
More than 12.
Step S404, if the transverse and longitudinal coordinate difference of the transverse and longitudinal coordinate difference and adjacent previous cycle be simultaneously greater than it is described pre-
If value, then preserved the gravity sensing data as current gravity sensing data.
It is when the position for judging to confirm projector equipment changes, i.e., adjacent according to corresponding judgment mode in the present embodiment
Cycle, corresponding transverse and longitudinal coordinate difference was simultaneously greater than preset value, then was preserved the gravity sensing data of newest acquisition.
Specifically, when at least one in abs (X3-X2) and abs (Y3-Y2) is more than in 12 and abs (X2-X1) and abs (Y2-Y1) at least
One be more than 12 when, the gravity sensing data that the t3 moment obtains are preserved.
In the present embodiment, pass through the gravity sensing data of the acquisition projector equipment of loop cycle, and the judgement of the beam rising sun twice
To judge and confirm whether the placement location of projector equipment is changed so that the current gravity sensing data of acquisition are more
Promptly and accurately, the promptness and accuracy when carrying out display picture adjusting be ensure that and then.
Further, with reference to Fig. 5, Fig. 5 is the refinement flow diagram of step S20 in Fig. 2.
Step S201, based on current gravity sensing data, obtains the current location coordinate value of projector equipment;
Step S202, based on current location coordinate value, obtains the corresponding coordinate value of each vertex position of the projected image.
In the present embodiment, the corresponding coordinate value of current gravity sensing data of projector equipment is identified, to determine projector equipment
Current setting position, then according to present coordinate values, it is each that the corresponding variable quantity based on present coordinate values obtains projected image
The corresponding coordinate value of vertex position, and then determine the position of display picture.
Specifically, when obtaining the corresponding present coordinate values of projector equipment, by the corresponding transverse and longitudinal coordinate value of coordinate value with it is right
The preset range answered is compared judgement, to determine transverse and longitudinal coordinate respectively whether in corresponding scope, and then based on difference
Judging result determine projected image a vertex position display location.Wherein, the corresponding preset range of transverse and longitudinal coordinate is by institute
The projector equipment used determines.In the present embodiment, the corresponding determination range of transverse and longitudinal coordinate be respectively (2040,2064) and
(2048,2072), at this time based on obtained coordinate (Xnew, Ynew), by Xnew compared with 2040 and 2064, and
By Ynew compared with 2048 and 2072, as 2040≤Xnew≤2064, Xnew is in preset range, is otherwise in
Outside preset range;As 2048≤Ynew≤2072, Ynew is in preset range, otherwise outside preset range.According to
Xnew and Ynew compared with corresponding scope as a result, determine each vertex position coordinate.
Further, by use projector equipment resolution ratio be 1920*1080p exemplified by, when present coordinate values are default
In the range of when, judge that current device is in horizontality, and the coordinate of each vertex position under horizontality is default
The value of preservation, and in actual location confirmation, the position of one point of setting is constant all the time, is origin, at this time its excess-three
The coordinate of vertex position is respectively:The lower left corner (0,1080), the upper right corner (1920,0) and the lower right corner (1920,1080).When work as
When preceding coordinate value is not in preset range, i.e., there is the numerical value of any one in transverse and longitudinal coordinate not in corresponding scope, respectively
The difference of transverse and longitudinal coordinate and corresponding preset range central value is calculated, obtained mathematic interpolation is then based on and obtains in addition to origin it
The coordinate position on excess-three vertex.Specifically, when Xnew is with having a value not in corresponding scope in Ynew, by Xnew and
Ynew carries out mathematic interpolation to respectively obtain Xchg and Ychg with corresponding preset value respectively, wherein, Xchg=Xnew-2052,
Ychg=Ynew-2060.Work as Xchg>When 0, the coordinate of corresponding each point is respectively (0,1080), (1920-Xchg, abs (Ychg))
And (1920-Xchg/2,1080-abs (Ychg)/3);Work as Xchg<Corresponded to when 0 each point coordinate be respectively (abs (Xchg)/
2,1080-abs (Ychg)/3), (1920-abs (Xchg)/2,0) and (1920-abs (Xchg), 1080-abs (Ychg));
Wherein, abs (Xchg) is the absolute value of Xchg, and abs (Ychg) is the absolute value of Ychg.
Further, when obtaining the corresponding coordinate of each vertex position of projected image, the coordinate based on each vertex position obtains
To corresponding display area.Meanwhile when carrying out the conciliation of projected image, it is corresponding to carrying out carrying out based on benchmark display location
Stretching conversion so that projected image is shown in corresponding display location.
It is pointed out that the calculation formula mentioned in the present embodiment is determined according to projector equipment itself, different throwings
Shadow equipment obtains the calculation of each vertex position coordinate difference.
Further, with reference to Fig. 6, Fig. 6 is based on weight in one preferred embodiment of projected image Automatic adjustment method of the present invention
Power sensing obtains the flow diagram of coordinate, and the flow includes:
1st, driving starts, and does the initialization of G-sensor chips;
2nd, it is per second acquisition 1 current G-sensor position coordinates (Xnew, Ynew), and back up last time coordinate (Xold,
Yold);
3rd, abs (Xnew-Xold are detected>=12) or abs (Ynew-Yold>=12) it is true, need to continuously detects twice,
If being true twice, represent that the projection is moved through, into 4;Otherwise, into 2;
4th, G-sensor event messages are sent, report current coordinate (Xnew, Ynew).
In the present embodiment, the acquisition of position coordinates is a real-time process, can't because of to projected image into
Go and adjusted and stop obtaining, specifically, each second can obtain a coordinate position and will current acquired coordinate position
Judged, specific judgment mode is calculates the difference of transverse and longitudinal coordinate in adjacent coordinate position acquired twice, and by institute
The absolute value of obtained difference with contrasted (being in the present embodiment 12) using the preset error value of projector equipment, when
Any one of abs (Xnew-Xold) and abs (Ynew-Yold) data are more than or equal to 12 and detection twice in succession when setting up,
Then illustrate that projector equipment is moved through, that is, need the display to projected image to be adjusted, then send corresponding G-sensor
Temporal information and current position coordinates (Xnew, Ynew) are uploaded to corresponding processor.
Further, with reference to Fig. 7, Fig. 7 is in one preferred embodiment of projected image Automatic adjustment method of the present invention at image
Flow diagram is managed, the flow includes:
1st, the event message of G-sensor is got;
2nd, inbound message process flow;
3rd, the coordinate value (X, Y) of current G-sensor is obtained;
4th, X is judged in 2052+/- 12, and Y is in the scope of 2060+/- 12.If so, into 5, if not, into 6;
5th, determine that projector is put as horizontal level, the lower left corner, the upper right corner and the lower right corner are horizontal coordinate position, into 7;
6th, the difference (Xchg, Ychg) of (X, Y) and (2052,2060) are obtained, according to the value of Xchg and Ychg, to confirm a left side
The display location of 3 inferior horn, the upper right corner and the lower right corner points, into 7;
7th, after determining 4 display locations, shown after doing figure stretching change, be exactly the histogram after correction at this time
Picture.
In the present embodiment, when corresponding processing unit receives the event message of G-sensor, inbound message processing stream
Whether journey and the coordinate value (X, Y) for obtaining the current G-sensor in temporal information, then judge X, Y in corresponding scope respectively
It is interior, different processing is carried out based on different judging result, if X, Y are in corresponding scope, according to projector equipment from
Body characteristic obtains the coordinate value on its excess-three vertex in addition to origin;If X, be not in Y there are one in corresponding scope, root
Corresponding difference is obtained as a result, being finally based on corresponding difference result with the mathematic interpolation of corresponding preset value according to changing coordinates X, Y
Calculated again to obtain the coordinate value on a vertex in addition to origin, to be adjusted based on each apex coordinate to projected image.
The present invention also provides a kind of projected image self-checking device.
Projected image self-checking device provided by the present invention includes:Memory, processor and it is stored in the storage
It is real when the automatic control program is performed by the processor on device and the automatic control program that can run on the processor
Now the step of projected image Automatic adjustment method as described above.
Wherein, the automatic control program run on the processor is performed realized method and can refer to the present invention
The each embodiment of projected image Automatic adjustment method, details are not described herein.
In addition the embodiment of the present invention also proposes a kind of computer-readable recording medium.
Automatic control program is stored with computer-readable recording medium of the present invention, the automatic control program is by processor
The step of projected image Automatic adjustment method as described above is realized during execution.
Wherein, the automatic control program run on the processor is performed realized method and can refer to the present invention
The each embodiment of projected image Automatic adjustment method, details are not described herein.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, takes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of projected image Automatic adjustment method, it is characterised in that the projected image Automatic adjustment method includes following step
Suddenly:
Obtain the current gravity sensing data of output projector, image projection equipment;
The placement location data of projector equipment are determined based on current gravity sensing data, and based on described in placement location data acquisition
The current display position of projected image;
Based on current display position and default benchmark display location, display location adjusting is carried out to the projected image.
2. projected image Automatic adjustment method as claimed in claim 1, it is characterised in that the output projected image that obtains is thrown
Further included before the step of current gravity sensing data of shadow equipment:
Each cycle obtains once the gravity sensing data of the projector equipment, and works as and judge the gravity sensing data and phase
Using the projected image as current gravity-feed tank when the variable quantity of gravity sensing data once acquired is more than preset value before adjacent
Data are answered to be preserved.
3. projected image Automatic adjustment method as claimed in claim 2, it is characterised in that each described cycle obtains once
The gravity sensing data of the projector equipment, and when judging the gravity sensing data and adjacent preceding once acquired gravity-feed tank
The step of being preserved the projected image as current gravity sensing data when answering the variable quantity of data to be more than preset value is wrapped
Include:
Each cycle obtains the gravity sensing data of the projector equipment, and identifies that coordinate pair should in the gravity sensing data
Transverse and longitudinal coordinate value;
Gravity sensing data acquired in the gravity sensing data and adjacent previous cycle are subjected to mathematic interpolation, to obtain
State the transverse and longitudinal coordinate difference that gravity sensing data correspond to the cycle;
Judge whether the transverse and longitudinal coordinate difference of the transverse and longitudinal coordinate difference and adjacent previous cycle is simultaneously greater than the preset value;
If the transverse and longitudinal coordinate difference of the transverse and longitudinal coordinate difference and adjacent previous cycle is simultaneously greater than the preset value, by described in
Gravity sensing data are preserved as current gravity sensing data.
4. projected image Automatic adjustment method as claimed in claim 3, it is characterised in that described to be based on current gravity sensing number
According to the placement location data of definite projector equipment, and based on the current display position of projected image described in placement location data acquisition
The step of include:
Based on current gravity sensing data, the current location coordinate value of projector equipment is obtained;
Based on current location coordinate value, the corresponding coordinate value of each vertex position of the projected image is obtained.
5. projected image Automatic adjustment method as claimed in claim 4, it is characterised in that described to be based on current position coordinates
Value, the step of obtaining each vertex position of the projected image corresponding coordinate value, include:
Based on current position coordinates, present coordinate values are judged whether in the range of preset coordinate, to obtain corresponding judging result;
The corresponding coordinate value of each vertex position of current projected picture is determined based on the judging result.
6. projected image Automatic adjustment method as claimed in claim 5, it is characterised in that described to be based on judging that the result is true
The step of settled each vertex position of front projection image corresponding coordinate value, includes:
If present coordinate values within a preset range, directly acquire the coordinate value of default each vertex position, to determine to remove origin
The coordinate value of its outer excess-three vertex position.
7. projected image Automatic adjustment method as claimed in claim 5, it is characterised in that described to be based on judging that the result is true
The step of settled each vertex position of front projection image corresponding coordinate value, further includes:
If present coordinate values not within a preset range when, calculate the difference between present coordinate values and preset value;
Based on the difference, the coordinate value of its excess-three vertex position in addition to origin is calculated.
8. projected image Automatic adjustment method as claimed in claim 7, it is characterised in that it is described based on current display position and
Default benchmark display location, includes the step of projected image progress display location adjusting:
According to the corresponding coordinate value of each vertex position of the projected image, corresponding display area is obtained;
Based on the display area and default benchmark display location, image stretch is carried out to the projected image, to adjust
The display location of the projected image.
9. a kind of projected image self-checking device, it is characterised in that the projected image self-checking device includes:Storage
Device, processor and the automatic control program that can be run on the memory and on the processor is stored in, it is described automatic to adjust
Section program realizes such as projected image Automatic adjustment method described in any item of the claim 1 to 8 when being performed by the processor
The step of.
10. a kind of computer-readable recording medium, it is characterised in that automatic tune is stored with the computer-readable recording medium
Program is saved, such as projected image described in any item of the claim 1 to 8 is realized when the automatic control program is executed by processor
The step of Automatic adjustment method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711188373.6A CN107920239A (en) | 2017-11-22 | 2017-11-22 | Projected image Automatic adjustment method, device and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711188373.6A CN107920239A (en) | 2017-11-22 | 2017-11-22 | Projected image Automatic adjustment method, device and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107920239A true CN107920239A (en) | 2018-04-17 |
Family
ID=61896890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711188373.6A Pending CN107920239A (en) | 2017-11-22 | 2017-11-22 | Projected image Automatic adjustment method, device and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107920239A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111147833A (en) * | 2019-12-30 | 2020-05-12 | 成都极米科技股份有限公司 | Control method for shape transformation of projection picture and related device |
CN112689133A (en) * | 2020-11-30 | 2021-04-20 | 中国科学院深圳先进技术研究院 | Image correction system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005079939A (en) * | 2003-09-01 | 2005-03-24 | Mitsubishi Electric Corp | Projector apparatus |
CN102183870A (en) * | 2011-04-29 | 2011-09-14 | 广州视声电子科技有限公司 | Method and system for correcting distorted projector image and projector |
CN103517018A (en) * | 2012-06-19 | 2014-01-15 | 株式会社理光 | Projector and trapezoidal distortion correction method |
WO2014023990A1 (en) * | 2012-08-07 | 2014-02-13 | Gulunov Alexey V | Laser projector |
-
2017
- 2017-11-22 CN CN201711188373.6A patent/CN107920239A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005079939A (en) * | 2003-09-01 | 2005-03-24 | Mitsubishi Electric Corp | Projector apparatus |
CN102183870A (en) * | 2011-04-29 | 2011-09-14 | 广州视声电子科技有限公司 | Method and system for correcting distorted projector image and projector |
CN103517018A (en) * | 2012-06-19 | 2014-01-15 | 株式会社理光 | Projector and trapezoidal distortion correction method |
WO2014023990A1 (en) * | 2012-08-07 | 2014-02-13 | Gulunov Alexey V | Laser projector |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111147833A (en) * | 2019-12-30 | 2020-05-12 | 成都极米科技股份有限公司 | Control method for shape transformation of projection picture and related device |
CN111147833B (en) * | 2019-12-30 | 2021-12-14 | 成都极米科技股份有限公司 | Control method for shape transformation of projection picture and related device |
CN112689133A (en) * | 2020-11-30 | 2021-04-20 | 中国科学院深圳先进技术研究院 | Image correction system and method |
CN112689133B (en) * | 2020-11-30 | 2022-12-27 | 中国科学院深圳先进技术研究院 | Image correction system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101859312B1 (en) | Image processing method and apparatus, and computer device | |
CN107707827B (en) | High-dynamic image shooting method and mobile terminal | |
EP3687161B1 (en) | Method for image shooting, apparatus, and storage medium | |
US10284831B2 (en) | Projection system, projector apparatus, image capturing apparatus, and projection method | |
US9973677B2 (en) | Refocusable images | |
JP6109413B2 (en) | Image display method, image display apparatus, terminal, program, and recording medium | |
CN111107333B (en) | Brightness correction method, system, equipment and computer readable storage medium | |
CN109348125A (en) | Video correction method, apparatus, electronic equipment and computer readable storage medium | |
CN107483836B (en) | A kind of image pickup method and mobile terminal | |
US9615040B2 (en) | Determining a maximum inscribed size of a rectangle | |
CN110930335B (en) | Image processing method and electronic equipment | |
US9418436B2 (en) | Image processing apparatus, imaging apparatus, and image processing method | |
US20200159367A1 (en) | Interactive object control method and apparatus, terminal, and computer-readable storage medium | |
CN107948498B (en) | A kind of elimination camera Morie fringe method and mobile terminal | |
CN109474784B (en) | Preview image processing method and terminal equipment | |
CN107623818B (en) | Image exposure method and mobile terminal | |
US11902662B2 (en) | Image stabilization method and apparatus, terminal and storage medium | |
CN112184829A (en) | Method and device for adjusting scanning state | |
CN108171744A (en) | Determining method, mobile terminal and the storage medium of disparity map in a kind of binocular virtualization | |
CN108718388B (en) | Photographing method and mobile terminal | |
CN107920239A (en) | Projected image Automatic adjustment method, device and computer-readable recording medium | |
CN105827948A (en) | Method And Apparatus Of Utilizing Image/Video Data From Multiple Sources | |
CN114449243B (en) | White balance method and terminal equipment | |
US7965332B2 (en) | Method and device for dynamically displaying image by virtual plane coordinate conversion | |
CN109348212B (en) | Image noise determination method and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180417 |
|
RJ01 | Rejection of invention patent application after publication |