CN110351538B - Projection method and projection equipment supporting image rotation - Google Patents

Projection method and projection equipment supporting image rotation Download PDF

Info

Publication number
CN110351538B
CN110351538B CN201910502400.5A CN201910502400A CN110351538B CN 110351538 B CN110351538 B CN 110351538B CN 201910502400 A CN201910502400 A CN 201910502400A CN 110351538 B CN110351538 B CN 110351538B
Authority
CN
China
Prior art keywords
projection
axis
equipment
detection model
module
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.)
Active
Application number
CN201910502400.5A
Other languages
Chinese (zh)
Other versions
CN110351538A (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.)
Shenzhen Chengzi Digital Technology Co ltd
Original Assignee
Shenzhen Chengzi Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Chengzi Digital Technology Co ltd filed Critical Shenzhen Chengzi Digital Technology Co ltd
Priority to CN201910502400.5A priority Critical patent/CN110351538B/en
Publication of CN110351538A publication Critical patent/CN110351538A/en
Application granted granted Critical
Publication of CN110351538B publication Critical patent/CN110351538B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3141Constructional details thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3191Testing thereof
    • H04N9/3194Testing thereof including sensor feedback

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a projection method and projection equipment supporting image rotation, wherein the method comprises the following steps: acquiring motion sensing data acquired regularly by a sensing module arranged in the projection equipment; acquiring a preset overturning detection model; inputting motion sensing data into a turnover detection model, and receiving the direction of equipment turnover output by the turnover detection model; and controlling a screen projection module arranged in the projection equipment to set a projection image matched with the direction of the reversed equipment according to the direction of the reversed equipment, and projecting the projection image on a projection interface. The invention realizes that the projection image can automatically rotate along with the overturning of the projection equipment when being projected on the projection interface, can achieve the purpose of optimal display effect of the projection image, and improves the product experience of users.

Description

Projection method and projection equipment supporting image rotation
Technical Field
The invention relates to the technical field of projection, in particular to a projection method and projection equipment supporting image rotation.
Background
Rotating the image is a common function on a smartphone, and the technology is not applied to projection at present. In the projection on the market at present, the mode mainly comprising the function setting aiming at the projection display mode is as follows: front-mount front projection, front-mount rear projection, flip front projection, flip rear projection, and side projection using manually adjusted trapezoids. The traditional projection display modes, namely front projection, rear projection and side projection, are all established at the position where projection is transversely placed, but for a handheld micro-projection product, the direction of placing by a user is uncertain, when the projection is vertically placed, if the projection image still keeps transverse output, the projection image which is suitable for the placing direction cannot be timely output along with the placing direction of the handheld micro-projection product, the display effect is not satisfactory, and the product experience of the user is greatly reduced.
Disclosure of Invention
The embodiment of the invention provides a projection method and projection equipment supporting image rotation, which can realize that a projection image can automatically rotate along with the overturning of the projection equipment when the projection image is projected on a projection interface, can achieve the purpose of optimal display effect of the projection image, and improve the product experience of a user.
A projection method supporting image rotation, comprising:
acquiring motion sensing data acquired regularly by a sensing module arranged in the projection equipment;
acquiring a preset overturning detection model;
acquiring the direction of the equipment after overturning according to the motion sensing data and the overturning detection model;
and controlling a screen projection module to set a projection image matched with the reversed direction of the equipment according to the reversed direction of the equipment, and projecting the projection image on a projection interface.
A projection device, comprising: the system comprises a main control module, a sensing module and a screen projection module; the main control module is respectively connected with the sensing module and the screen projection module through an I2C bus;
the main control module is used for acquiring motion sensing data acquired by a sensing module arranged in the projection equipment at regular time; acquiring a preset overturning detection model; acquiring the direction of the equipment after overturning according to the motion sensing data and the overturning detection model; controlling a screen projection module to set a projection image matched with the reversed direction of the equipment according to the reversed direction of the equipment, and projecting the projection image on a projection interface;
the sensing module is used for collecting motion sensing data and transmitting the motion sensing data to the main control module;
and the screen projection module is used for setting a projection image matched with the equipment in the turning back direction and projecting the projection image on a projection interface.
According to the projection method and the projection equipment supporting image rotation, provided by the invention, the motion sensing data is acquired at regular time through the sensing module arranged in the projection equipment, the preset overturning detection model is used for obtaining the placing direction of the projection equipment, the projection image matched with the placing direction is set by the screen projection module arranged in the projection equipment, and the projection image is delivered to the projection interface, so that the projection image can automatically rotate along with the overturning of the projection equipment when being projected on the projection interface, the purpose of optimal display effect of the projection image can be achieved, and the product experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a flow chart of a projection method supporting image rotation according to an embodiment of the invention;
FIG. 2 is a flowchart illustrating step S20 of a projection method supporting image rotation according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating step S30 of a projection method supporting image rotation according to an embodiment of the present invention;
FIG. 4 is a flow chart of a projection method supporting image rotation in another embodiment of the present invention;
FIG. 5 is a flowchart illustrating step S50 of a projection method supporting image rotation according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating step S60 of a projection method supporting image rotation according to an embodiment of the present invention;
fig. 7 is a functional block diagram of a projection device in an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Now, the projection method supporting image rotation according to the present invention is described, as shown in fig. 1, the projection method supporting image rotation includes the following steps:
and S10, acquiring the motion sensing data acquired by the built-in sensing module of the projection equipment at regular time.
That is, the main control module built in the projection device controls the sensing module to continuously acquire the motion sensing data in a preset sampling period, and receives and stores the motion sensing data transmitted by the sensing module in real time. For example, if the sensing module continuously collects 50 times every 20 milliseconds, the main control module may continuously read 50 sets of motion sensing data. Preferably, the projection device is a portable micro projector supporting image rotation, and is particularly suitable for a handheld micro projector.
Preferably, in order to improve the accuracy of the motion sensing data, the motion sensing data is collected through a three-axis sensor; at this time, the sensing module in the projection apparatus is a three-axis sensor, and the step S10 includes the following steps:
the method comprises the steps that a main control module controls a three-axis sensor to collect motion sensing data in a preset sampling period, and the motion sensing data transmitted by the three-axis sensor in real time are received and stored; in one sampling period, the sensing module collects preset groups of motion sensing data. Namely, the three-axis sensor is controlled to acquire the motion variables of the projection equipment in all directions, and the motion variables in all directions are transmitted back to the main control module; at this time, the motion sensing data includes, but is not limited to, an X-axis variable, a Y-axis variable, and a Z-axis variable. Preferably, the change of the average value of the X-axis variable can reflect the change of the horizontal inclination angle of the projection equipment; the change of the average value of the Y-axis variable can reflect the change of the turning angle of the projection equipment.
And S20, acquiring a preset overturning detection model.
That is, the overturn detection model stored in the memory is called through a preset first calling interface; understandably, the memory is built in the projection device; the roll-over detection model is the roll-over detection model generated in step S206 described below.
Preferably, before the posture of the projection device is not determined to change and reach the stable posture, motion detection is performed according to a Y-axis variable contained in the motion sensing data and a Y-axis motion threshold contained in the turnover detection model; then when the posture of the projection equipment is determined to be changed, carrying out static detection according to Y-axis variables contained in the motion sensing data and Y-axis static thresholds contained in the turnover detection model; and finally, after determining that the posture of the projection equipment is stable, carrying out angle detection according to a Y-axis variable contained in the motion sensing data and a turning threshold contained in the turning detection model, and further receiving the direction of the equipment after turning output by the turning detection model.
Preferably, the motion detection according to the Y-axis variable included in the motion sensing data and the Y-axis motion threshold included in the rollover detection model includes the following steps: reading Y-axis variables from motion sensing data of each sampling period in batches, further automatically calculating an average value corresponding to the Y-axis variables of each sampling period, recording the average value of the Y-axis variables corresponding to the current sampling period (namely, the first sampling period) as a first average value, recording the average value of the Y-axis variables corresponding to a second sampling period as a second average value, detecting whether the absolute value of the difference value between the first average value and the second average value meets a Y-axis motion threshold, and determining that the posture of the projection equipment is changed when the absolute value of the difference value between the first average value and the second average value meets the Y-axis motion threshold, namely determining that the projection equipment is changed from horizontal placement to vertical placement or from vertical placement to horizontal placement, and entering static detection.
When the absolute value of the difference value between the first average value and the second average value does not meet the Y-axis motion threshold, determining that the posture of the projection equipment is not changed, and outputting the recorded placement direction of the projection equipment; further, updating the average value of the Y-axis variable corresponding to the second sampling period to be a first average value, updating the average value of the Y-axis variable corresponding to the third sampling period to be a second average value, re-detecting whether the absolute value of the difference between the first average value and the second average value meets the Y-axis motion threshold value or not until the absolute value of the difference between the first average value and the second average value meets the Y-axis motion threshold value, determining that the posture of the projection equipment is changed, and entering the static detection.
The method for detecting stillness according to the Y-axis variable contained in the motion sensing data and the Y-axis stillness threshold contained in the turnover detection model comprises the following steps: updating the average value of the Y-axis variable corresponding to the third sampling period to be a first average value, updating the average value of the Y-axis variable corresponding to the fourth sampling period to be a second average value, further detecting whether the absolute value of the difference between the first average value and the second average value meets a Y-axis static threshold, determining that the posture of the projection equipment is stable when determining that the absolute value of the difference between the first average value and the second average value continues for multiple times (the number of times of the continuous times can be set according to requirements, for example, the number of the continuous times is set to be at least 2 times), and meeting the Y-axis static threshold, determining that the projection equipment is stable to be placed vertically, namely stable to be placed horizontally, and performing angle detection.
The angle detection is carried out according to the Y-axis variable contained in the motion sensing data and the overturning threshold contained in the overturning detection model, and the method comprises the following steps: the method comprises the steps of continuously acquiring motion sensing data of a plurality of sampling periods (for example, 4 or more than 4), recording the motion sensing data as a turning angle judgment value according to an average value of Y-axis variables of the sampling periods, detecting which turning threshold the turning angle judgment value meets, further determining the direction of the turned equipment (namely, the placing direction of the projection equipment after the posture is stable), and receiving the direction of the turned equipment output by a turning detection model.
And S40, controlling a screen projection module to set a projection image matched with the reversed direction of the equipment according to the reversed direction of the equipment, and projecting the projection image on a projection interface.
In this embodiment, the main control module outputs a display signal including the direction of the turned device, and the screen projection module sets a projection image according to the direction of the turned device, and projects the set projection image on the projection interface. Understandably, the projection image is dynamically adjusted according to the placement direction of the projection device, so that the projection image projected on the projection interface can be adapted to the placement direction of the projection device after rotation.
Preferably, in order to improve the smoothness of image rotation and the projection efficiency, the projection device may control the display direction and the display resolution of the projected image by using a DLP controller; the screen projection module comprises a DLP controller, an LED driver and an optical module, and the step 40 specifically comprises the following steps:
firstly, according to the turned direction of the equipment, a DLP controller is controlled to turn and compress a projection image in an equal proportion, and then the display direction and the display resolution of the projection image are determined.
And then, controlling an LED driver to drive an optical machine module by the DLP controller, and projecting the projection image on a projection interface in the display direction and the display resolution.
That is, after the display signal of direction after the output contains equipment upset, make DLP controller upset projection image and set for the display resolution of projection image, also compress the projection image according to preset display proportion, and then make DLP controller control LED driver drive optical machine module, make optical machine module convert display signal into optical signal and export, at this moment, the projection image can be with above-mentioned display direction and above-mentioned display resolution throw on predetermined entity projection interface, also can directly throw in air medium, thereby form virtual projection interface in air medium. Understandably, the DLP controller controls the display direction and the display resolution, so that the memory resource is not occupied, and the stability of image display is improved.
Illustratively, when the projection device is horizontally placed, the normal projection image is output as 720P, that is, the resolution of the image display on the projection interface is 1280 × 720, and when the projection device is vertically placed, the projection image to be output is first turned by 90 ° by the DLP controller, at which time, the width of the previous projection image becomes the length of the projection image to be output, and then according to 16: the display scale of 9 compresses the projection image to be output, and at this time, the resolution of image display on the projection interface is 720 × 405.
In summary, in the embodiment, the motion sensing data is collected at regular time through the built-in sensing module of the projection device, and the preset overturning detection model is used as an auxiliary, so that the placing direction of the projection device is obtained, and then the projection image matched with the placing direction is set by using the built-in screen projection module of the projection device, and is delivered on the projection interface, so that the projection image can automatically rotate along with the overturning of the projection device when being projected on the projection interface, the purpose of optimal display effect of the projection image can be achieved, and the product experience of a user is improved.
In another embodiment, the projection device is communicatively connected to a server via a network (preferably a wireless network), and the server may be implemented as a stand-alone server or a server cluster composed of a plurality of servers; at this time, the server in communication connection with the projection device sends a display instruction to the master control model, and instructs the master control module to execute the following steps according to the display instruction: controlling a sensing module to acquire motion sensing data at regular time and receiving the motion sensing data transmitted by the sensing module in real time; acquiring the direction of the equipment after overturning according to the motion sensing data and a preset overturning detection model; and controlling a screen projection module to set a projection image matched with the reversed direction of the equipment according to the reversed direction of the equipment, and projecting the projection image on a projection interface. According to the embodiment, the projection image can automatically rotate along with the overturning of the projection equipment when being projected on the projection interface, the purpose of the best display effect of the projection image can be achieved, and the product experience of a user is improved.
Furthermore, a control button is arranged on the projection equipment, and control instructions such as a projection starting instruction, a projection closing instruction, a manual rotation instruction and an automatic rotation instruction are issued to the main control module through the control button, so that the projection equipment is convenient for a user to operate.
Further, the server is in communication connection with a client through a network, and the client includes but is not limited to a portable wearable device, a smart phone, a tablet computer and various personal computers; at this time, the projection device is controlled to execute an operation corresponding to the control instruction through a control instruction (including but not limited to the display instruction, the projection starting instruction, the projection closing instruction, the manual rotation instruction, the automatic rotation instruction, and the brightness adjustment instruction, the flight following instruction, and the like) sent by the client, for example, the projection device is controlled to adjust the brightness through the brightness adjustment instruction sent by the client, so that the brightness of the projection image projected on the delivery interface is changed, and the user requirements are met; and controlling the projection equipment to automatically follow the user to project the projection image at a preset flying distance through a flying following instruction sent by the client.
In an embodiment, as shown in fig. 2, the step S20 specifically includes the following steps:
s201, collecting historical motion sensing data under different projection scenes, and generating a Y-axis variable analysis sample containing historical Y-axis variables.
Specifically, under an interference-free scene, motion sensing data of the projection equipment in horizontal upright, horizontal inverted, right vertical and left vertical positions are respectively collected, and each placement direction and the motion sensing data corresponding to each placement direction are stored in a Y-axis variable analysis sample in a correlated manner; and under the interference scene, respectively acquiring motion sensing data of the projection equipment when the projection equipment is horizontally arranged, horizontally inverted, vertically arranged at the right side and vertically arranged at the left side, and storing the motion sensing data of each arrangement direction and corresponding to each arrangement direction in a Y-axis variable analysis sample in an associated manner. It is to be understood that the Y-axis variable analysis sample includes a Y-axis variable included in the motion sensing data, and may further include an X-axis variable and/or a Z-axis variable included in the motion sensing data.
Preferably, a plurality of Y-axis variable analysis samples obtained by a plurality of tests are stored in the database, including but not limited to Y-axis variable analysis samples obtained in a non-interference scene and a non-interference scene, and each Y-axis variable analysis sample comprises a plurality of sets of motion sensing data; for example, 100000 sets of motion sensor data. The interfered scene refers to vibration interference caused by a loudspeaker and a sound cavity which are built in the projection equipment when the projection equipment plays music or videos.
S202, analyzing a Y-axis motion threshold value from the Y-axis variable analysis sample.
S203, analyzing a Y-axis static threshold value from the Y-axis variable analysis sample.
And S204, analyzing the turning threshold from the Y-axis variable analysis sample.
Namely, big data analysis is carried out according to historical Y-axis variables contained in the Y-axis variable analysis sample, and a Y-axis motion threshold, a Y-axis static threshold and an overturning threshold are sequentially obtained so as to record the Y-axis motion threshold, the Y-axis static threshold and the overturning threshold as characteristic parameters of the overturning detection model. Preferably, the turning threshold comprises a right turning threshold and a left turning threshold; the turning angle of the projection equipment corresponding to the right turning threshold is +90 degrees; the turning angle of the projection equipment corresponding to the leftward turning threshold is-90 degrees.
And S205, acquiring an initial overturning detection model.
S206, inputting the Y-axis motion threshold, the Y-axis static threshold and the overturning threshold into the initial overturning detection model to generate the overturning detection model.
In this embodiment, the characteristic parameters (including the Y-axis motion threshold, the Y-axis stationary threshold, and the flipping threshold) obtained in steps S202 to S204 are input into an initial flipping detection model, and at this time, after the initial flipping detection model automatically identifies the characteristic parameters and adds them to the preset parameter position, the flipping detection model including the characteristic parameters is obtained.
In another embodiment, to further improve the accuracy of the roll-over detection model including the characteristic parameter, the roll-over detection model including the characteristic parameter may be trained by using a data training sample stored in a database, at this time, all Y-axis components included in the data training sample are input into the roll-over detection model including the characteristic parameter as input data, output data (that is, a direction after the equipment is rolled over) output by the roll-over detection model including the characteristic parameter is received, a model evaluation index is obtained according to the output data and the direction after the equipment is rolled over included in the data training sample, whether the roll-over detection model is trained or not is determined according to the model evaluation index, and when the model evaluation index meets a preset termination training condition, the trained roll-over detection model is obtained. Understandably, the data training samples include but are not limited to the direction of the equipment after overturning and all Y-axis variables collected in the process of overturning the equipment; the model evaluation index may be output data output by the rollover detection model including the characteristic parameters in the model training process and a matching degree between the equipment flipped directions included in the data training sample.
When the model evaluation index cannot meet the preset training termination condition, the sample adjustment characteristic parameters, that is, one or more of the Y-axis motion threshold, the Y-axis stationary threshold and the turning threshold, need to be analyzed according to the Y-axis variable in step S201, and the turning detection model including the adjusted characteristic parameters is continuously trained until the model evaluation index meets the preset training termination condition, so as to obtain the trained turning detection model.
In summary, in this embodiment, through motion sensing data in different scenes, and through big data analysis, various characteristic parameters used for generating the rollover detection model are obtained, which is beneficial to avoiding errors caused by vibration interference, and the obtained rollover detection model has strong operability, a wide application range and high reliability, and is beneficial to improving the detection efficiency and the detection accuracy of the rollover detection process.
In one embodiment, as shown in FIG. 3, the motion sensing data includes a Y-axis variable; the step S30 specifically includes the following steps:
s301, performing motion detection according to the Y-axis variable and the Y-axis motion threshold value contained in the turnover detection model; the motion detection is used for detecting whether the posture of the projection equipment is changed.
S302, when the posture of the projection equipment is determined to be changed, static detection is carried out according to the Y-axis variable and the Y-axis static threshold value contained in the turnover detection model; the stationary detection is used for detecting whether the posture of the projection equipment is stable.
And S303, when the posture of the projection equipment is determined to be stable, after angle detection is carried out according to the Y-axis variable and the overturning threshold value contained in the overturning detection model, the direction of the overturned equipment output by the overturning detection model is received.
Preferably, the parameters included in the rollover detection model include: the Y-axis motion threshold is 600; the Y-axis stationary threshold is 100; the right flip threshold is 600; the left flip threshold is-900. Multiple times of verification prove that the accuracy of the data output by the turnover detection model is high.
For example, if the first average value obtained according to the Y-axis variable acquired 50 times in the current sampling period is Y1, and the second average value obtained according to the Y-axis variable acquired 50 times in the next sampling period is Y2, when | Y1-Y2| is >600, it is determined that the posture of the projection device changes, and it is started to detect whether the posture of the projection device is stable; otherwise, the motion detection is continued. When the Y1-Y2 <100 > appears for 2 times continuously, determining that the posture of the projection equipment is stable, and starting to carry out angle detection according to a turnover angle determination value Y (the turnover angle determination value can be the average value of Y-axis variables for 200 times) obtained by collecting Y-axis variables for 200 times continuously; otherwise, the static detection is continued. When Y is larger than 600, the projection equipment is determined to be turned over by 90 degrees rightwards, and at the moment, the projection equipment is vertically placed rightwards; and when Y < -900, the projection device is determined to be turned 90 degrees to the left, and the projection device is vertically placed to the left.
Preferably, in order to avoid errors in the output data of the model caused by different overturning angles and further improve the accuracy of the output data of the model, the direction of the finally output equipment after overturning can be determined through different overturning thresholds; at this time, the flipping threshold includes a right flipping threshold and a left flipping threshold, and the step S303 specifically includes the following steps:
obtaining a turnover angle judgment value according to the Y-axis variables of at least four sampling periods; when the turnover angle judgment value is larger than a right turnover threshold value, determining that the equipment is placed vertically on the right after being turned; and when the turnover angle judgment value is smaller than a left turnover threshold value, determining that the equipment is placed vertically on the left after being turned.
To sum up, this embodiment utilizes the upset detection model to carry out action detection, static detection and angle detection, has realized accurately, has realized high-efficient ground automatic upset detection, has promoted user's product experience.
In another embodiment, as shown in fig. 4, the step 10 is followed by the steps of:
and S50, acquiring a preset correction detection model. That is, the correction detection model stored in the memory is called through a preset second calling interface; it is understood that the rectification detection model is the rectification detection model generated in step S507 below.
And S60, acquiring the corrected direction of the equipment according to the motion sensing data and the correction detection model.
Preferably, the correction detection model is firstly made to acquire an initial adjustment value associated with the horizontal inclination; secondly, performing motion detection according to an X-axis variable contained in the motion sensing data and an X-axis motion threshold contained in the correction detection model; when the posture of the projection equipment is determined to be changed, carrying out static detection according to an X-axis variable contained in the motion sensing data and an X-axis static threshold contained in the correction detection model; and finally, determining that the posture of the projection equipment is stable, carrying out angle detection according to an X-axis variable contained in the motion sensing data and a trapezoidal correction threshold value and an initial adjustment value contained in the correction detection model, and further receiving the corrected equipment direction output by the correction detection model.
Preferably, the motion detection based on the X-axis variable included in the motion sensing data and the X-axis motion threshold included in the correction detection model includes the following steps: reading X-axis variables from motion sensing data of each sampling period in batches, further automatically calculating an average value corresponding to the X-axis variables of each sampling period, recording the average value of the X-axis variables corresponding to the current sampling period as a first average value, recording the average value of the X-axis variables corresponding to a second sampling period as a second average value, detecting whether the absolute value of the difference value between the first average value and the second average value meets an X-axis motion threshold, and determining that the posture of the projection equipment is changed when the absolute value of the difference value between the first average value and the second average value meets the X-axis motion threshold, namely determining that the horizontal inclination angle of the projection equipment is changed, and entering static detection.
When the absolute value of the difference value between the first average value and the second average value does not meet the X-axis motion threshold, determining that the posture of the projection equipment is not changed, namely outputting the previously recorded placement direction of the projection equipment, wherein the output placement direction is laterally placed with a horizontal inclination angle; further, updating the average value of the X-axis variable corresponding to the second sampling period to be a first average value, updating the average value of the X-axis variable corresponding to the third sampling period to be a second average value, re-detecting whether the absolute value of the difference value between the first average value and the second average value meets the X-axis motion threshold value or not until the absolute value of the difference value between the first average value and the second average value meets the X-axis motion threshold value, determining that the posture of the projection equipment is changed, and entering the static detection.
The static detection is carried out according to the X-axis variable contained in the motion sensing data and the X-axis static threshold contained in the correction detection model, and the method comprises the following steps: updating the average value of the X-axis variable corresponding to the third sampling period to be a first average value, updating the average value of the X-axis variable corresponding to the fourth sampling period to be a second average value, further detecting whether the absolute value of the difference between the first average value and the second average value meets the X-axis static threshold, and when determining that the absolute value of the difference between the first average value and the second average value continuously (for example, continuously for at least 2 times) meets the X-axis static threshold, determining that the posture of the projection equipment is stable, namely, determining that the horizontal inclination angle of the projection equipment does not change any more, and performing angle detection.
The angle detection is carried out according to the X-axis variable contained in the motion sensing data and the trapezoidal correction threshold value and the initial adjustment value contained in the correction detection model, and the angle detection method comprises the following steps: the method comprises the steps of continuously acquiring motion sensing data of a plurality of sampling periods (for example, 4 or more than 4), subtracting an initial adjustment value from an average value of X-axis variables of the plurality of sampling periods to obtain a correction angle judgment value, detecting which trapezoidal correction threshold the correction angle judgment value meets, further determining the corrected direction of the equipment (namely, the placing direction of the projection equipment after the posture is stable), and receiving the corrected direction of the equipment output by an overturning detection model.
And S70, controlling the screen projection module built in the projection equipment to set a projection image matched with the corrected rear direction of the equipment according to the corrected rear direction of the equipment, and projecting the projection image on the projection interface.
Namely, the main control module outputs a display signal containing the corrected direction of the equipment, the screen projection module sets the projection portrait according to the corrected direction of the equipment, and the screen projection module projects the set projection image on a projection interface, so that the automatic trapezoidal correction of the projection image is realized.
In another embodiment, as shown in fig. 5, the step 50 specifically includes the following steps:
s501, collecting historical motion sensing data under different projection scenes, and generating an X-axis variable analysis sample containing historical X-axis variables.
Specifically, under a non-interference scene, motion sensing data of the projection equipment at a horizontal inclination angle of +0 degrees, +9 degrees, +19 degrees, +29 degrees, +37 degrees, +45 degrees, -34 degrees, -26 degrees, -16 degrees and-7 degrees are respectively collected, and the horizontal inclination angle when each piece of equipment is placed laterally and the motion sensing data corresponding to each horizontal inclination angle are stored in an X-axis variable analysis sample in an associated manner; and under the condition of interference, respectively acquiring motion sensing data when the horizontal inclination angle of the projection equipment is +0 degrees, +9 degrees, +19 degrees, +29 degrees, +37 degrees, +45 degrees, -34 degrees, -26 degrees, -16 degrees and-7 degrees, and storing the horizontal inclination angle when each side is placed and the motion sensing data corresponding to each horizontal inclination angle in an X-axis variable analysis sample in an associated mode. Understandably, the X-axis variable analysis sample includes an X-axis variable included in the motion sensing data, and may further include a Y-axis variable and/or a Z-axis variable included in the motion sensing data.
It is understood that a plurality of X-axis variable analysis samples obtained by a plurality of tests are stored in the database, including but not limited to X-axis variable analysis samples obtained in a non-interference scene and a non-interference scene, and each X-axis variable analysis sample contains a plurality of sets of motion sensing data.
S502, analyzing an initial adjusting value related to the horizontal inclination from the X-axis variable analysis sample.
S503, analyzing the X-axis motion threshold from the X-axis variable analysis sample.
S504, analyzing an X-axis static threshold value from the X-axis variable analysis sample.
And S505, analyzing the trapezoidal correction threshold from the X-axis variable analysis sample.
S506, acquiring an initial trapezoidal detection model.
And S507, inputting the initial adjustment value, the X-axis motion threshold, the X-axis static threshold and the trapezoidal correction threshold into the initial trapezoidal detection model to generate the correction detection model.
That is, the big data analysis is performed according to the historical X-axis variables contained in the X-axis variable analysis sample, the initial adjustment value, the X-axis motion threshold value, the X-axis static threshold value and the trapezoidal correction threshold value are obtained in sequence, and recording the initial adjustment value, the X-axis motion threshold, the X-axis stationary threshold, and the trapezoidal correction threshold obtained in the above steps S502 to S505 as index parameters of a preset correction detection model, and the index parameters are input into an initial correction detection model, at the moment, after the index parameters are automatically recognized and added to the preset parameter position by the initial correction detection model, the correction detection model containing the index parameters is beneficial to avoiding errors caused by vibration interference, and the obtained correction detection model has strong operability and wide application range, the reliability is high, and the detection efficiency and the detection accuracy in the correction detection process are improved.
In another embodiment, the rectification detection model including the index parameters may be trained to obtain a rectification detection model with higher precision, so as to improve the accuracy of the model output data.
In one embodiment, as shown in FIG. 6, the motion sensing data includes an X-axis variable; the step 60 specifically includes the following steps:
s601, carrying out motion detection according to the X-axis variable and an X-axis motion threshold value contained in the correction detection model; the motion detection is used for detecting whether the posture of the projection equipment is changed.
S602, when the posture of the projection equipment is determined to be changed, carrying out static detection according to the X-axis variable and an X-axis static threshold value contained in the correction detection model; the stationary detection is used for detecting whether the posture of the projection equipment is stable.
And S603, when the posture of the projection equipment is determined to be stable, after angle detection is carried out according to the X-axis variable and a trapezoidal correction threshold value and an initial adjustment value which are contained in the correction detection model, receiving the corrected direction of the equipment output by the correction detection model.
Preferably, the parameters included in the correction detection model may be set to: the initial adjustment value is 57; the X-axis motion threshold is 150; the X-axis stationary threshold is 75. Multiple times of verification prove that the accuracy of the output data of the correction detection model is high.
For example, if the first-time average value obtained according to the X-axis variables acquired 50 times in the current sampling period is X1, and the second-time average value obtained according to the X-axis variables acquired 50 times in the next sampling period is X2, when | X1-X2| is >150, it is determined that the posture of the projection device changes, and it is started to detect whether the posture of the projection device is stable; otherwise, the motion detection is continued. When the position of the projection equipment is determined to be stable when | X1-X2| <75 occurs for 2 times continuously, starting to perform angle detection according to the obtained correction angle determination value X (namely, subtracting 57 from the average value of X-axis variables for 200 times) by acquiring the average value of X-axis variables for 200 times continuously and an initial adjustment value; otherwise, the static detection is continued. When the correction angle judgment value X meets a certain trapezoidal correction threshold value, the previously recorded horizontal inclination angle of the projection equipment is determined to be adjusted by an angle corresponding to the trapezoidal correction threshold value. For example, when adjusting a laterally placed projection device from +0 ° to +9 °, the correction angle decision value X should satisfy X < -148 and X > -115; and when the laterally placed projection device is adjusted from +0 to-7, the correction angle determination value X should satisfy X >127 and X < 167. To sum up, this embodiment utilizes and corrects detection model and carry out action detection, static detection and angle detection, has realized accurately, has corrected the escalator high-efficiently, has promoted user's product experience.
The present invention further provides a projection device, which is applied to the projection method supporting image rotation in the above embodiment, as shown in fig. 7, the projection device includes a main control module, a sensing module, and a screen projection module; the main control module is respectively connected with the sensing module and the screen projection module through an I2C bus.
The main control module is used for acquiring motion sensing data acquired by a sensing module arranged in the projection equipment at regular time; acquiring a preset overturning detection model; acquiring the direction of the equipment after overturning according to the motion sensing data and the overturning detection model; and controlling a screen projection module to set a projection image matched with the reversed direction of the equipment according to the reversed direction of the equipment, and projecting the projection image on a projection interface.
The sensing module is used for collecting motion sensing data and transmitting the motion sensing data to the main control module.
And the screen projection module is used for setting a projection image matched with the equipment in the turning back direction and projecting the projection image on a projection interface.
In an embodiment, as shown in fig. 7, the projection device further includes a signal conversion module connected to the main control module;
the screen projection module includes: the system comprises an optical-mechanical module, a DLP (digital light processing) controller connected with the optical-mechanical module and an LED (light emitting diode) driver connected with the optical-mechanical module; the DLP controller is connected with the LED driver through an SPI interface; the DLP controller is connected with the main control module through an I2C bus.
And the signal conversion module is used for supplying the converted display signals to the DLP controller.
The DLP controller is used for determining the display direction of the projected image after the projected image is turned and compressed in equal proportion; and controlling the LED driver to drive the optical machine module, and projecting the projection image on the projection interface in the display direction.
The LED driver is used for driving the optical-mechanical module.
The optical machine module is used for projecting the projection image.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely illustrated, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to perform all or part of the above described functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. A projection method supporting image rotation, comprising:
acquiring motion sensing data of the projection equipment, which is acquired by a sensing module arranged in the projection equipment at regular time;
acquiring a preset overturning detection model;
acquiring the direction of the equipment after overturning according to the motion sensing data and the overturning detection model;
controlling a screen projection module to set a projection image matched with the reversed direction of the equipment according to the reversed direction of the equipment, and projecting the projection image on a projection interface;
before the preset overturning detection model is obtained, the method comprises the following steps:
acquiring historical motion sensing data under different projection scenes to generate a Y-axis variable analysis sample containing historical Y-axis variables;
resolving a Y-axis motion threshold from the Y-axis variable analysis sample;
resolving a Y-axis stationary threshold from the Y-axis variable analysis sample;
analyzing a turning threshold value from the Y-axis variable analysis sample;
acquiring an initial overturning detection model;
inputting the Y-axis motion threshold, the Y-axis static threshold and the overturning threshold into the initial overturning detection model to generate the overturning detection model.
2. The projection method supporting image rotation according to claim 1, wherein a sensing module in the projection device is a three-axis sensor;
the acquiring of the motion sensing data regularly acquired by the built-in sensing module of the projection device includes:
the method comprises the steps that a main control module controls a three-axis sensor to collect motion sensing data in a preset sampling period, and the motion sensing data collected by the three-axis sensor are received and stored in real time; in one sampling period, the sensing module collects preset groups of motion sensing data.
3. The image rotation-enabled projection method of claim 1, wherein the motion sensing data comprises a Y-axis variable;
the acquiring of the direction of the equipment after overturning according to the motion sensing data and the overturning detection model comprises:
performing motion detection according to the Y-axis variable and the Y-axis motion threshold included in the turnover detection model; the motion detection is used for detecting whether the posture of the projection equipment is changed;
when the posture of the projection equipment is determined to be changed, carrying out static detection according to the Y-axis variable and the Y-axis static threshold value contained in the turnover detection model; the static detection is used for detecting whether the posture of the projection equipment is stable;
and when the posture of the projection equipment is determined to be stable, after angle detection is carried out according to the Y-axis variable and the overturning threshold value contained in the overturning detection model, receiving the direction of the equipment after overturning, which is output by the overturning detection model.
4. The projection method supporting image rotation according to claim 1, wherein the screen projection module comprises a DLP controller, an LED driver, an optical-mechanical module;
the control screen projection module sets a projection image matched with the equipment in the reversed rear direction according to the equipment reversed rear direction, and projects the projection image on a projection interface, and the control screen projection module comprises:
controlling a DLP controller to turn and compress a projection image in an equal proportion according to the turned direction of the equipment, and determining the display direction and the display resolution of the projection image;
and controlling an LED driver to drive the optical machine module by the DLP controller, and projecting the projection image on a projection interface in the display direction and the display resolution.
5. The projection method supporting image rotation as claimed in claim 1, wherein after acquiring the motion sensing data of the projection device periodically acquired by a sensing module built in the projection device, the method comprises:
acquiring a preset correction detection model;
acquiring the corrected direction of the equipment according to the motion sensing data and the correction detection model;
and controlling the screen projection module arranged in the projection equipment to set a projection image matched with the corrected rear direction of the equipment according to the corrected rear direction of the equipment, and projecting the projection image on the projection interface.
6. The projection method supporting image rotation according to claim 5, wherein before the obtaining of the preset rectification detection model, the method comprises:
acquiring historical motion sensing data under different projection scenes to generate an X-axis variable analysis sample containing historical X-axis variables;
resolving an initial adjustment value associated with a horizontal tilt from the X-axis variable analysis sample;
resolving an X-axis motion threshold from the X-axis variable analysis sample;
resolving an X-axis stationary threshold from the X-axis variable analysis sample;
analyzing a trapezoidal correction threshold value from the X-axis variable analysis sample;
acquiring an initial trapezoidal detection model;
inputting the initial adjustment value, the X-axis motion threshold, the X-axis static threshold and the trapezoidal correction threshold to the initial trapezoidal detection model to generate the correction detection model.
7. The image rotation-enabled projection method of claim 6, wherein the motion sensing data comprises an X-axis variable;
the acquiring of the corrected direction of the device according to the motion sensing data and the correction detection model comprises:
performing motion detection according to the X-axis variable and an X-axis motion threshold contained in the correction detection model; the motion detection is used for detecting whether the posture of the projection equipment is changed;
when the posture of the projection equipment is determined to be changed, carrying out static detection according to the X-axis variable and an X-axis static threshold value contained in the correction detection model; the static detection is used for detecting whether the posture of the projection equipment is stable;
and when the posture of the projection equipment is determined to be stable, after angle detection is carried out according to the X-axis variable and a trapezoidal correction threshold value and an initial adjustment value which are contained in the correction detection model, receiving the corrected direction of the equipment output by the correction detection model.
8. A projection device, comprising: the system comprises a main control module, a sensing module and a screen projection module; the main control module is respectively connected with the sensing module and the screen projection module through an I2C bus;
the main control module is used for acquiring motion sensing data acquired by a sensing module arranged in the projection equipment at regular time; acquiring a preset overturning detection model; acquiring the direction of the equipment after overturning according to the motion sensing data and the overturning detection model; controlling a screen projection module to set a projection image matched with the reversed direction of the equipment according to the reversed direction of the equipment, and projecting the projection image on a projection interface;
the sensing module is used for collecting motion sensing data and transmitting the motion sensing data to the main control module;
the screen projection module is used for setting a projection image matched with the equipment in the turning back direction and projecting the projection image on a projection interface;
before the preset turning detection model is obtained, the main control module is further configured to:
acquiring historical motion sensing data under different projection scenes to generate a Y-axis variable analysis sample containing historical Y-axis variables;
resolving a Y-axis motion threshold from the Y-axis variable analysis sample;
resolving a Y-axis stationary threshold from the Y-axis variable analysis sample;
analyzing a turning threshold value from the Y-axis variable analysis sample;
acquiring an initial overturning detection model;
inputting the Y-axis motion threshold, the Y-axis static threshold and the overturning threshold into the initial overturning detection model to generate the overturning detection model.
9. The projection device of claim 8, wherein the projection device further comprises a signal conversion module connected to the master control module;
the screen projection module includes: the system comprises an optical-mechanical module, a DLP (digital light processing) controller connected with the optical-mechanical module and an LED (light emitting diode) driver connected with the optical-mechanical module; the DLP controller is connected with the LED driver through an SPI interface; the DLP controller is connected with the main control module through an I2C bus;
the signal conversion module is used for supplying the converted display signals to the DLP controller;
the DLP controller is used for determining the display direction of the projected image after the projected image is turned and compressed in equal proportion; controlling an LED driver to drive an optical-mechanical module, and projecting the projection image on a projection interface in the display direction;
the LED driver is used for driving the optical-mechanical module;
the optical machine module is used for projecting the projection image.
CN201910502400.5A 2019-06-11 2019-06-11 Projection method and projection equipment supporting image rotation Active CN110351538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910502400.5A CN110351538B (en) 2019-06-11 2019-06-11 Projection method and projection equipment supporting image rotation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910502400.5A CN110351538B (en) 2019-06-11 2019-06-11 Projection method and projection equipment supporting image rotation

Publications (2)

Publication Number Publication Date
CN110351538A CN110351538A (en) 2019-10-18
CN110351538B true CN110351538B (en) 2020-11-13

Family

ID=68181773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910502400.5A Active CN110351538B (en) 2019-06-11 2019-06-11 Projection method and projection equipment supporting image rotation

Country Status (1)

Country Link
CN (1) CN110351538B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346289B (en) * 2020-10-21 2022-07-12 浙江吉利控股集团有限公司 Vehicle-mounted projection device, vehicle and projection control method of vehicle

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107664909B (en) * 2016-07-28 2020-06-05 中强光电股份有限公司 Lens module and projector
CN206149395U (en) * 2016-09-22 2017-05-03 青岛小帅智能科技股份有限公司 Projected image control system
CN108519717A (en) * 2018-02-28 2018-09-11 歌尔股份有限公司 It projects robot device and projects the picture adjusting method of robot
CN109274947A (en) * 2018-10-18 2019-01-25 安克创新科技股份有限公司 A kind of projection arrangement and its projection image correcting method and computer storage medium

Also Published As

Publication number Publication date
CN110351538A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN109361865B (en) Shooting method and terminal
CN101739567B (en) Terminal apparatus and display control method
CN108683927B (en) Anchor recommendation method and device and storage medium
CN110427110B (en) Live broadcast method and device and live broadcast server
US20110032220A1 (en) Portable electronic device and method for adjusting display orientation of the portable electronic device
CN1913545A (en) User input method and device of mobile communication terminal
CN109068116B (en) Image processing method and device based on supplementary lighting, mobile terminal and storage medium
US9324158B2 (en) Image processing device for performing image processing on moving image
CN111586431B (en) Method, device and equipment for live broadcast processing and storage medium
WO2020253207A1 (en) Projection picture anti-shake method and apparatus, and projector
US20210027518A1 (en) Vr playing method, vr playing device, and vr playing system
CN108600546A (en) A kind of environment light detection method and mobile terminal
US20200356112A1 (en) Gimbal control method and device
CN104915023B (en) Use the input equipment of combined tracking
CN111724412A (en) Method and device for determining motion trail and computer storage medium
CN110351538B (en) Projection method and projection equipment supporting image rotation
CN112333458A (en) Live broadcast room display method, device, equipment and storage medium
US10165186B1 (en) Motion estimation based video stabilization for panoramic video from multi-camera capture device
CN113553261B (en) Software automated testing method, device and computer readable storage medium
JP6385725B2 (en) Information processing system and information processing program
CN109302563A (en) Stabilization processing method, device, storage medium and mobile terminal
CN112689133B (en) Image correction system and method
CN113472943A (en) Audio processing method, device, equipment and storage medium
WO2021065694A1 (en) Information processing system and method
CN110996115B (en) Live video playing method, device, equipment, storage medium and program product

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
GR01 Patent grant
GR01 Patent grant