CN111586383B - Method and device for projection and projection equipment - Google Patents

Method and device for projection and projection equipment Download PDF

Info

Publication number
CN111586383B
CN111586383B CN202010431249.3A CN202010431249A CN111586383B CN 111586383 B CN111586383 B CN 111586383B CN 202010431249 A CN202010431249 A CN 202010431249A CN 111586383 B CN111586383 B CN 111586383B
Authority
CN
China
Prior art keywords
projection
value
configuration information
gray scale
acquiring
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
CN202010431249.3A
Other languages
Chinese (zh)
Other versions
CN111586383A (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.)
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Uplus Intelligent Technology Beijing 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 Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Uplus Intelligent Technology Beijing Co Ltd
Priority to CN202010431249.3A priority Critical patent/CN111586383B/en
Publication of CN111586383A publication Critical patent/CN111586383A/en
Application granted granted Critical
Publication of CN111586383B publication Critical patent/CN111586383B/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/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/3141Constructional details thereof
    • H04N9/3173Constructional details thereof wherein the projection device is specially adapted for enhanced portability

Abstract

The application relates to the technical field of projection and discloses a method for projection. The method comprises the following steps: acquiring a first projection medium image; acquiring first gray scale information of the first projection medium image; determining first configuration information according to the first gray scale information; and setting projection parameters according to the first configuration information, and projecting according to the projection parameters. The method can obtain corresponding configuration information according to the gray information of the first projection medium image, and can obtain appropriate projection parameters for the current projection medium, so that projection can be performed according to different projection parameters for different projection media, manual debugging of a user is not needed, and experience of the user in watching the projection is improved. The application also discloses a device for projection and projection equipment.

Description

Method and device for projection and projection equipment
Technical Field
The present application relates to the field of projection technologies, and for example, to a method and an apparatus for projection, and a projection device.
Background
At present, portable and movable projection devices are increasingly used in various fields, such as: office, teaching or family amusement etc. but projection equipment when different projection media image, because the optical characteristic difference of projection media own, the formation of image effect has very big difference.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art: when the projection is carried out on different projection media, the imaging effect can only be manually debugged by a user, and the technology for automatically adjusting the imaging effect is lacked, so that the use by the user is very inconvenient.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview nor is intended to identify key/critical elements or to delineate the scope of such embodiments but rather as a prelude to the more detailed description that is presented later.
The embodiment of the disclosure provides a method and a device for projection and a projection device, so that projection can be performed with different parameters for different projection media.
In some embodiments, the method for projecting comprises:
acquiring a first projection medium image;
acquiring first gray scale information of the first projection medium image;
determining first configuration information according to the first gray scale information;
and setting projection parameters according to the first configuration information, and projecting according to the projection parameters.
In some embodiments, determining first configuration information from the first gray scale information comprises:
and matching first configuration information corresponding to the first gray scale information from a first database.
In some embodiments, determining first configuration information from the first gray scale information comprises:
and calculating by using the first gray scale information through a preset algorithm to obtain the first configuration information.
In some embodiments, after the projection is performed according to the projection parameters, the method further includes:
monitoring the action state of the projection equipment;
and under the condition that the projection equipment moves and/or rotates, adjusting the projection parameters, and projecting according to the adjusted projection parameters.
In some embodiments, the monitoring the motion state of the projection device includes:
acquiring an acceleration value of the projection equipment according to a first set time interval;
acquiring a tilt angle value of the projection equipment according to the acceleration value;
obtaining the difference value of two adjacent inclination angle values;
and determining that the projection equipment moves under the condition that the difference value of the two adjacent inclination angle values meets a first set condition.
In some embodiments, the monitoring the motion state of the projection device comprises:
acquiring an angular velocity value of the projection equipment according to a second set time interval;
acquiring a rotation angle value of the projection equipment according to the angular velocity value;
obtaining the difference value of two adjacent rotation angle values;
and determining that the projection equipment rotates under the condition that the difference value of the two adjacent rotation angle values meets a second set condition.
In some embodiments, adjusting the projection parameters comprises:
acquiring second configuration information;
and setting projection parameters according to the second configuration information.
In some embodiments, the obtaining the second configuration information includes:
acquiring a second projection medium image;
acquiring second gray scale information of the second projection medium image;
and obtaining the second configuration information according to the second gray scale information.
In some embodiments, the means for projecting comprises: a processor and a memory storing program instructions, the processor being configured to, when executing the program instructions, perform the method for projecting as described above.
In some embodiments, the projection device comprises: the above apparatus for projection.
The method and the device for projection and the projection equipment provided by the embodiment of the disclosure can realize the following technical effects: the corresponding configuration information can be obtained according to the gray information of the first projection medium image, and the appropriate projection parameters can be obtained for the current projection medium, so that projection can be performed according to different projection parameters for different projection media, manual debugging of a user is not needed, and the experience of the user in watching the projection is improved.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the accompanying drawings and not in limitation thereof, in which elements having the same reference numeral designations are shown as like elements and not in limitation thereof, and wherein:
FIG. 1 is a schematic diagram of a method for projection provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another method for projection provided by embodiments of the present disclosure;
FIG. 3 is a schematic diagram of another method for projection provided by embodiments of the present disclosure;
FIG. 4 is a schematic diagram of another method for projection provided by embodiments of the present disclosure;
fig. 5 is a schematic diagram of an apparatus for projection according to an embodiment of the disclosure.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and claims of the embodiments of the disclosure and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged as appropriate for the embodiments of the disclosure described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
As shown in fig. 1, an embodiment of the present disclosure provides a method for projection, including:
step S101, acquiring a first projection medium image;
step S102, acquiring first gray information of a first projection medium image;
step S103, determining first configuration information according to the first gray scale information;
and step S104, setting projection parameters according to the first configuration information, and projecting according to the projection parameters.
By adopting the method for projection provided by the embodiment of the disclosure, the corresponding configuration information can be obtained according to the gray information of the first projection medium image, and the appropriate projection parameters can be obtained for the current projection medium, so that projection can be performed according to different projection parameters for different projection media, manual debugging of a user is not needed, and the experience of the user in watching the projection is improved.
Optionally, photographing the projection medium through a camera device to obtain a first projection medium image; optionally, a first image video is obtained by recording the projection medium through a camera device, and one frame of image is randomly selected from the obtained first image video to serve as the first projection medium image.
Optionally, the first projection medium image is processed to obtain a gray value of each pixel, and an average value of the gray values of the pixels on the first projection medium image is used as the first gray information. Optionally, the average gray value of the pixel points on the first projection medium image, where the gray value of each pixel point is greater than the third set threshold, is used as the first gray information.
Optionally, the first configuration information comprises one or more of: brightness values, contrast values and saturation values.
Optionally, determining the first configuration information according to the first gray scale information includes:
and matching first configuration information corresponding to the first gray scale information from the first database. The first database is a preset database, and first gray scale information and first configuration information corresponding to the first gray scale information are stored in the first database.
In some embodiments, the first configuration information is a first luminance value, and the first database stores therein first gray scale information and a corresponding first luminance value; as shown in table 1, table 1 is an example table of the preset first database:
first gray scale information First brightness value
0 200
20 195
40 190
60 185
80 180
100 175
120 170
140 165
160 160
180 155
200 150
220 145
240 140
255 135
TABLE 1
In some embodiments, the grayscale information of the image is 0 to 255, wherein when the grayscale information is 255, the color of the corresponding image is white. In some embodiments, when the first gray scale information of the first projection medium image is 255, the first projection medium image corresponds to a white curtain, the corresponding first brightness value matched from the preset first database is 135 according to the first gray scale information 255, the brightness value in the projection parameters is set to 135, the projection is performed while the corresponding brightness value is matched according to the gray scale information of the first projection medium image, the projection parameters are set according to the matched brightness value, the lower brightness value is matched for the first projection medium image with higher gray scale information, and thus, when the color of the first projection medium image is white, the normal projection can be ensured while the power supply can be saved, and the service life of the projection device can be prolonged.
Optionally, determining the first configuration information according to the first gray scale information includes: and calculating by using the first gray information through a preset algorithm to obtain first configuration information.
In some embodiments, the first configuration information is a first luminance value, optionally calculated
Figure BDA0002500673530000061
Obtaining a first brightness value L;
wherein, L is a first brightness value, X is a first gray information, and when X =0, L is a maximum value L max ,L max =200, L is the minimum value L when X =255 min K is a coefficient, optionally K is 0.675.
In some embodiments, when the gray information is 0, the color of the corresponding image is black; when the first gray information of the first projection medium image is 0, the first projection medium image corresponds to a black curtain, a corresponding first brightness value 200 is obtained by utilizing the first gray information 0 to calculate, the brightness value in the projection parameter is set to be 200 and projection is carried out, the corresponding brightness value is matched according to the gray information of the first projection medium image, the projection parameter is set according to the matched brightness value and projection is carried out, the first projection medium image with lower gray information is matched with a higher brightness value, and therefore projection can be normally carried out under the condition that the color of the first projection medium image is black, different projection medium images are projected according to different projection parameters, the projection effect is guaranteed, manual debugging of a user is not needed, and the experience of the user in watching projection is improved.
Optionally, after performing projection according to the projection parameters, the method further includes: monitoring the action state of the projection equipment; and under the condition that the projection equipment moves and/or rotates, adjusting projection parameters, and projecting according to the adjusted projection parameters.
In some embodiments, whether the projection device moves and/or rotates is detected through an acceleration sensor or an angular velocity sensor, and in the case of movement and/or rotation, it is determined that the projection medium has changed, the projection parameters are adjusted, and projection is performed according to the adjusted projection parameters. The projection is carried out according to different projection parameters aiming at different projection medium images, the projection effect is ensured, manual debugging of a user is not needed, and the user experience in the projection watching process is improved.
Optionally, monitoring the motion state of the projection device comprises: acquiring an acceleration value of the projection equipment according to a first set time interval; acquiring a tilt angle value of the projection equipment according to the acceleration value; obtaining the difference value of two adjacent inclination angle values; and determining that the projection equipment moves under the condition that the difference value of two adjacent inclination angle values meets a first set condition.
In some embodiments, the acceleration value of the projection device is obtained by the acceleration sensor according to a first set time interval; optionally, the acceleration sensor is a three-axis acceleration sensor; optionally, the acceleration value a of the projection device in the x-axis direction of the horizon coordinate system is obtained by a three-axis acceleration sensor at a first set time interval x Acceleration value A in the y-axis direction of the horizon coordinate system y And an acceleration value A in the z-axis direction of the horizon coordinate system z (ii) a Calculating by using the acceleration values of the projection equipment in the directions of all coordinate axes to obtain the inclination angle value of the projection equipment on all coordinate axes of the horizontal coordinate system, namely the angle value theta between the projection equipment and the x axis x Angle theta to y-axis y And the value of the angle theta to the z-axis z
Alternatively, by calculating θ x(j) =[arctan(A x(j) /squr(A y(j) ×A y(j) +A z(j) ×A z(j) ))]X 180/pi obtains the tilt angle value theta of the projection device on the x-axis at time j x(j)
Alternatively, by calculating θ y(j) =[arctan(A y(j) /squr(A x(j) ×A x(j) +A z(j) ×A z(j) ))]X 180/pi obtains the tilt angle value theta of the projection device on the y-axis at time j y(j)
Alternatively, by calculating θ z(j) =[arctan(A z(j) /squr(A x(j) ×A x(j) +A y(j) ×A y(j) ))]Obtaining the value of the inclination angle theta of the projection equipment on the z axis at the moment j by multiplying 180/pi z(j)
Wherein, theta x(j) For the value of the tilt angle of the projection device in the x-axis at time j, θ y(j) For the value of the tilt angle of the projection device in the y-axis at time j, θ z(j) For the value of the tilt angle of the projection device in the z-axis at time j, A x(j) For the acceleration value of the projection device in the x-axis direction at time j, A y(j) Is at leastAcceleration value of the projection device in the y-axis direction at time j, A z(j) Is the acceleration value of the projection device in the z-axis direction at time j.
Optionally, on each coordinate axis, subtracting the tilt angle values of two adjacent moments, namely the j moment and the j-1 moment, to obtain a difference value of the tilt angle values of the two adjacent moments on each coordinate axis; the movement of the projection device is determined in a case that a difference between values of the tilt angles of two adjacent time instants on any one coordinate axis satisfies a first set condition, optionally, the first set condition is greater than or equal to a first set threshold, and in some embodiments, the first set threshold is 8 °.
In some embodiments, the acceleration values of the projection device in the directions of the coordinate axes are acquired every interval of a first set time, for example, 0.02 second, by the three-axis acceleration sensor; calculating by using the acceleration values in the directions of the coordinate axes to obtain the inclination angle value theta of the projection equipment at the moment j on each coordinate axis x(j) 、θ y(j) And theta z(j) . For example: on the z-axis, the inclination angle value of the projection device at the moment j-1 is-3 °, the inclination angle value of the projection device at the moment j is 7 °, the difference between the inclination angle values of the projection device at the moment j-1 and the inclination angle value of the projection device at the moment j is 10 °, the difference between the inclination angle values of the two adjacent moments on the z-axis is greater than a first set threshold value of 8 °, and the projection device is determined to be moved. Detecting whether the projection equipment moves or not through an acceleration sensor, determining that the projection medium changes under the condition that the projection equipment moves, adjusting projection parameters, and projecting according to the adjusted projection parameters. The projection is carried out according to different projection parameters aiming at different projection medium images, the projection effect is ensured, manual debugging of a user is not needed, and the user experience in the projection watching process is improved.
Optionally, monitoring the motion state of the projection device comprises: acquiring an angular velocity value of the projection equipment according to a second set time interval; acquiring a rotation angle value of the projection equipment according to the angular velocity value; obtaining a difference value of two adjacent rotation angle values;
and determining that the projection equipment rotates under the condition that the difference value of two adjacent rotation angle values meets a second set condition.
In some embodiments, the angular velocity value of the projection device is acquired by the angular velocity sensor at a second set time interval; optionally, the angular velocity value ω of the projection device around the x-axis of the horizon coordinate system is obtained by the angular velocity sensor at a second set time interval x Angular velocity value omega around y-axis of the horizon coordinate system y And an angular velocity value omega about the z-axis of the horizon coordinate system z (ii) a Calculating by using the angular velocity values of the projection equipment around each coordinate axis to obtain the rotation angle value of the projection equipment around each coordinate axis of the horizontal coordinate system, namely the rotation angle value of the projection equipment around the x axis
Figure BDA0002500673530000081
Angle of rotation about y-axis
Figure BDA0002500673530000082
And a value of the angle of rotation about the z-axis
Figure BDA0002500673530000083
By calculating
Figure BDA0002500673530000084
Obtaining the rotation angle value of the projection equipment around the x axis at the moment i
Figure BDA0002500673530000085
By calculating
Figure BDA0002500673530000086
Obtaining the rotation angle value of the projection equipment around the y axis at the moment i
Figure BDA0002500673530000087
By calculation of
Figure BDA0002500673530000088
Obtaining the rotation angle value of the projection equipment around the z axis at the moment i
Figure BDA0002500673530000089
Wherein, the first and the second end of the pipe are connected with each other,
Figure BDA00025006735300000810
for the value of the angle of rotation of the projection device about the x-axis at time i,
Figure BDA00025006735300000811
for the value of the angle of rotation of the projection device around the y-axis at time i,
Figure BDA00025006735300000812
for the value of the angle of rotation of the projection device around the z-axis at time i,
Figure BDA00025006735300000813
for the value of the angle of rotation of the projection device about the x-axis at time i-1,
Figure BDA0002500673530000091
the value of the angle of rotation of the projection device around the y-axis at time i-1,
Figure BDA0002500673530000092
for the value of the angle of rotation of the projection apparatus about the z-axis at time i-1, ω x(i) For the angular velocity value, omega, of the projection apparatus about the x-axis at time i y(i) For the angular velocity value, omega, of the projection apparatus about the y-axis at time i z(i) And the value of the angular speed of the projection equipment around the z axis at the moment i is delta T, and delta T is more than 0.
Optionally, on each coordinate axis, subtracting the rotation angle values at two adjacent moments to obtain a difference value of the rotation angle values at the two adjacent moments; the projection device is determined to rotate in the case that the difference between the rotation angle values of any two adjacent time instants satisfies a second set condition, optionally, the second set condition is greater than or equal to a second set threshold, and in some embodiments, the second set threshold is 8 °.
In some embodiments, the throw is obtained by the angular velocity sensor every second set time, e.g. 0.02 secondsAngular velocity values of the shadow equipment around each coordinate axis; calculating by utilizing each angular velocity value to obtain the rotation angle value of the projection equipment around each coordinate axis at the moment i
Figure BDA0002500673530000093
And
Figure BDA0002500673530000094
for example: on the z axis, the rotation angle value of the projection device around the z axis at the moment i-1 is 2 °, the rotation angle value of the projection device around the z axis at the moment i is 11 °, and the difference value between the rotation angle value of the projection device around the z axis at the moment i-1 and the rotation angle value of the projection device around the z axis at the moment i is 9 °, so that the difference value between the rotation angle values of the projection device around the z axis at two adjacent moments is greater than a first set threshold value of 8 °, and it is determined that the projection device rotates. Detecting whether the projection equipment rotates or not through an angular velocity sensor, determining that the projection medium changes under the condition that the projection equipment rotates, adjusting projection parameters, and projecting according to the adjusted projection parameters. The projection is carried out according to different projection parameters aiming at different projection medium images, the projection effect is ensured, manual debugging of a user is not needed, and the user experience in the projection watching process is improved.
Optionally, adjusting the projection parameters comprises: acquiring second configuration information; and setting projection parameters according to the second configuration information.
Optionally, the second configuration information comprises one or more of: luminance values, contrast values and saturation values.
Optionally, the obtaining of the second configuration information includes: acquiring a second projection medium image; acquiring second gray scale information of a second projection medium image; and obtaining second configuration information according to the second gray scale information.
In some embodiments, when the projection device is detected to move and/or rotate, it is determined that the projection medium has changed, and the changed projection medium is photographed by the camera device to obtain a second projection medium image; optionally, the changed projection medium is recorded by the camera device to obtain a second image video, and one frame of image is randomly selected from the obtained second image video to serve as the second projection medium image.
Optionally, processing the second projection medium image to obtain a gray value of each pixel point, and taking an average value of the gray values of the pixel points on the second projection medium image as second gray information; optionally, the evaluation gray value of the pixel point of which the gray value of each pixel point on the second projection medium image is greater than the fourth set threshold is used as the second gray information.
Optionally, second configuration information corresponding to the second gray scale information is matched from a second database. The second database is a preset database, and the second database stores second gray information and second configuration information corresponding to the second gray information.
In some embodiments, the second configuration information is a second luminance value, and the second database stores the second gray scale information and a second luminance value corresponding to the second gray scale information; as shown in table 2, table 2 is an example table of the preset second database:
second gray scale information Second brightness value
0 200
20 195
40 190
60 185
80 180
100 175
120 170
140 165
160 160
180 155
200 150
220 145
240 140
255 135
TABLE 2
In some embodiments, when the second gray scale information of the second projection medium image is 240, matching a corresponding second brightness value from a preset second database to be 140, adjusting the brightness value in the projection parameter to be 140 and projecting, matching the corresponding brightness value according to the gray scale information of the second projection medium image, adjusting the projection parameter according to the matched brightness value and projecting, in this way, when it is detected that the projection device moves and/or rotates, determining that the projection medium image has changed, obtaining the second configuration information according to the changed medium image, that is, the second gray scale information of the second medium image, and adjusting the projection parameter according to the second configuration information to project, the projection medium image can be projected according to different projection parameters for different projection medium images, the projection effect is ensured, manual debugging by a user is not needed, and the experience of the user when watching the projection is improved.
Optionally, the second gray-scale information is used for calculation to obtain second configuration information.
In some embodiments, the second configuration information is a second luminance value, optionally calculated
Figure BDA0002500673530000111
Obtaining a second brightness value L';
wherein L 'is a second luminance value, X' is second gray scale information, and L 'is a maximum value L' when X '= 0' max ,L′ max =200, when X ' =255, L ' is a minimum value L ' min K is a coefficient, alternatively K takes 0.675.
In some embodiments, when the second gray scale information of the second projection medium image is 30, the corresponding second brightness value 192 is obtained by calculation using the first gray scale information 30, the brightness value in the projection parameter is adjusted to 192 for projection, the corresponding brightness value is matched according to the gray scale information of the second projection medium image, and the projection parameter is adjusted according to the matched brightness value for projection.
In practical applications, as shown in fig. 2, an embodiment of the present disclosure provides a method for projection, which includes the following specific steps:
step S201, after the projection equipment is started, photographing a projection medium through a camera device to obtain a first projection medium image;
step S202, acquiring first gray information of a first projection medium image;
step S203, matching a brightness value corresponding to the first gray scale information from the first database;
step S204, setting projection parameters according to the brightness values corresponding to the first gray information, and projecting according to the projection parameters;
step S205, detecting whether the projection equipment moves according to the acceleration sensor, if so, executing step S206, otherwise, returning to execute step S204;
step S206, determining that the projection medium changes, suspending projection, and photographing the changed projection medium through the camera device to obtain a second projection medium image;
step S207, acquiring second gray information of a second projection medium image;
step S208, matching a brightness value corresponding to the second gray scale information from a second database;
step S209, adjusting the projection parameter according to the brightness value corresponding to the second gray scale information, and performing projection according to the adjusted projection parameter.
According to the method for projection, the corresponding brightness value can be obtained according to the gray level information of the first projection medium image, whether the projection equipment moves or not is detected according to the acceleration sensor, the second projection medium image is obtained after the movement, the corresponding brightness value is obtained according to the gray level information of the second projection medium image, and the proper projection parameters can be obtained for the current projection medium, so that projection can be performed according to different projection parameters for different projection media, manual debugging of a user is not needed, and the experience of the user in watching the projection is improved.
In practical application, as shown in fig. 3, the embodiment of the present disclosure provides a method for projection, which includes the following specific steps:
step S301, after the projection equipment is started, photographing a projection medium through a camera device to obtain a first projection medium image;
step S302, acquiring first gray information of a first projection medium image;
step S303, matching a brightness value corresponding to the first gray scale information from the first database;
step S304, setting projection parameters according to the brightness value corresponding to the first gray information, and projecting according to the projection parameters;
step S305, detecting whether the projection equipment rotates or not according to the angular velocity sensor, if so, executing step S306, otherwise, returning to execute step S304;
step S306, determining that the projection medium changes, suspending projection, and photographing the changed projection medium through the camera device to obtain a second projection medium image;
step S307, acquiring second gray-scale information of the second projection medium image;
step S308, matching a brightness value corresponding to the second gray scale information from a second database;
step S309, adjusting projection parameters according to the brightness value corresponding to the second gray information, and then projecting according to the adjusted projection parameters.
According to the method for projection, the corresponding brightness value can be obtained according to the gray scale information of the first projection medium image, whether the projection equipment rotates or not is detected according to the angular velocity sensor, the second projection medium image is obtained after the rotation, the corresponding brightness value is obtained according to the gray scale information of the second projection medium image, and the proper projection parameter can be obtained for the current projection medium, so that projection can be performed according to different projection parameters for different projection media, manual debugging of a user is not needed, and the experience of the user in watching the projection is improved.
In practical application, as shown in fig. 4, an embodiment of the present disclosure provides a method for projection, which includes the following specific steps:
step S401, after the projection equipment is started, photographing a projection medium through a camera device to obtain a first projection medium image;
step S402, acquiring first gray information of a first projection medium image;
step S403, matching a brightness value corresponding to the first gray scale information from the first database;
step S404, setting projection parameters according to the brightness value corresponding to the first gray information, and projecting according to the projection parameters;
step S405, detecting whether the projection equipment moves or not according to the acceleration actuator, detecting whether the projection equipment rotates or not according to the angular velocity sensor, if the projection equipment moves and rotates, executing step S406, and if not, returning to execute step S404;
step S406, determining that the projection medium changes, suspending projection, and photographing the changed projection medium through the camera device to obtain a second projection medium image;
step S407, acquiring second gray scale information of a second projection medium image;
step S408, matching a brightness value corresponding to the second gray scale information from a second database;
and step S409, adjusting projection parameters according to the brightness value corresponding to the second gray scale information, and then projecting according to the adjusted projection parameters.
According to the method for projection, the corresponding brightness value can be obtained according to the gray scale information of the first projection medium image, whether the projection equipment moves or not is detected according to the acceleration sensor, whether the projection equipment rotates or not is detected according to the angular velocity sensor, the second projection medium image is obtained after the projection equipment moves and rotates, the corresponding brightness value is obtained according to the gray scale information of the second projection medium image, the appropriate projection parameter can be obtained for the current projection medium, projection can be performed according to different projection parameters for different projection media, manual debugging of a user is not needed, and experience of the user in projection watching is improved.
As shown in fig. 5, an embodiment of the present disclosure provides an apparatus for projection, which includes a processor (processor) 100 and a memory (memory) 101. Optionally, the apparatus may also include a Communication Interface (Communication Interface) 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via a bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call logic instructions in the memory 101 to perform the method for projection of the above embodiments.
In addition, the logic instructions in the memory 101 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 101 is used as a computer readable storage medium for storing software programs, computer executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing, i.e. implements the method for projection in the above embodiments, by executing program instructions/modules stored in the memory 101.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
By adopting the device for projection provided by the embodiment of the disclosure, the corresponding configuration information can be obtained according to the gray information of the first projection medium image, and the appropriate projection parameters can be obtained for the current projection medium, so that the projection can be performed according to different projection parameters for different projection media, the manual debugging of a user is not needed, and the experience of the user in watching the projection is improved.
The embodiment of the disclosure provides a projection device, which comprises the above device for projection.
Optionally, the projection apparatus comprises a camera, an acceleration sensor, an angular velocity sensor, and a processor; the acceleration sensor and the angular velocity sensor are electrically connected with the processor through an I2C interface, and the camera device is electrically connected with the camera device through a USB or MIPI interface.
In some embodiments, after the projection equipment is started for the first time and focusing is completed, the projection medium is photographed through the camera device to obtain a first projection medium image; uploading the first projection medium image to a processor, and processing the first projection medium image by the processor to obtain first gray information; and obtaining first configuration information according to the first gray scale information, for example: and setting projection parameters according to the first configuration information, such as brightness, contrast, saturation and the like, and performing projection according to the projection parameters.
In some embodiments, the acceleration sensor detects that the projection device moves, and/or the angular velocity sensor detects that the projection device rotates, and then the projection medium is determined to change, and then the projection is suspended, and the changed projection medium is photographed by the camera device to obtain a second projection medium image; uploading the second projection medium image to a processor, and processing the second projection medium image by the processor to obtain second gray information; and obtaining second configuration information according to the second gray scale information, for example: and adjusting projection parameters according to the second configuration information, and then projecting according to the adjusted projection parameters, such as brightness, contrast, saturation and the like.
The projection equipment can obtain corresponding configuration information according to the gray information of the first projection medium image, and can obtain appropriate projection parameters for the current projection medium, so that projection can be performed on different projection media according to different projection parameters, manual debugging of a user is not needed, and the experience of the user in watching the projection is improved.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method for projection.
Embodiments of the present disclosure provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for projection.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other media capable of storing program codes, and may also be a transient storage medium.
The above description and the drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description for example only and are not limiting upon the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising a" \8230; "does not exclude the presence of additional like elements in a process, method or apparatus comprising the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (7)

1. A method for projection, comprising:
acquiring a first projection medium image;
acquiring first gray scale information of the first projection medium image;
determining first configuration information according to the first gray scale information;
setting projection parameters according to the first configuration information, and projecting according to the projection parameters;
after projection is carried out according to the projection parameters, the method further comprises the following steps: monitoring the action state of the projection equipment; adjusting the projection parameters under the condition that the projection equipment moves and/or rotates, and projecting according to the adjusted projection parameters;
adjusting the projection parameters, including: acquiring second configuration information; setting projection parameters according to the second configuration information;
the obtaining the second configuration information includes: acquiring a second projection medium image; acquiring second gray scale information of the second projection medium image; and obtaining the second configuration information according to the second gray scale information.
2. The method of claim 1, wherein determining first configuration information based on the first gray scale information comprises:
and matching first configuration information corresponding to the first gray scale information from a first database.
3. The method of claim 1, wherein determining first configuration information based on the first gray scale information comprises:
and calculating by using the first gray scale information through a preset algorithm to obtain the first configuration information.
4. The method of claim 1, wherein monitoring the motion state of the projection device comprises:
acquiring an acceleration value of the projection equipment according to a first set time interval;
acquiring a tilt angle value of the projection equipment according to the acceleration value;
obtaining the difference value of two adjacent inclination angle values;
and determining that the projection equipment moves under the condition that the difference value of the two adjacent inclination angle values meets a first set condition.
5. The method of claim 1, wherein monitoring the motion state of the projection device comprises:
acquiring an angular velocity value of the projection equipment according to a second set time interval;
acquiring a rotation angle value of the projection equipment according to the angular velocity value;
obtaining the difference value of two adjacent rotation angle values;
and determining that the projection equipment rotates under the condition that the difference value of the two adjacent rotation angle values meets a second set condition.
6. An apparatus for projection comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the method for projection of any of claims 1 to 5 when executing the program instructions.
7. A projection device, characterized in that it comprises an apparatus for projection as claimed in claim 6.
CN202010431249.3A 2020-05-20 2020-05-20 Method and device for projection and projection equipment Active CN111586383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010431249.3A CN111586383B (en) 2020-05-20 2020-05-20 Method and device for projection and projection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010431249.3A CN111586383B (en) 2020-05-20 2020-05-20 Method and device for projection and projection equipment

Publications (2)

Publication Number Publication Date
CN111586383A CN111586383A (en) 2020-08-25
CN111586383B true CN111586383B (en) 2022-10-11

Family

ID=72110976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010431249.3A Active CN111586383B (en) 2020-05-20 2020-05-20 Method and device for projection and projection equipment

Country Status (1)

Country Link
CN (1) CN111586383B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114520899B (en) * 2020-11-19 2023-09-01 成都极米科技股份有限公司 Projection compensation method and device, storage medium and projection equipment
CN113225543B (en) * 2021-05-08 2023-03-14 北京有竹居网络技术有限公司 Method, device and terminal for projection display and non-transitory storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5891714B2 (en) * 2011-11-02 2016-03-23 株式会社リコー Projector and trapezoidal distortion correction method
CN105407337A (en) * 2014-09-10 2016-03-16 中兴通讯股份有限公司 Projection method, device, terminal and server
CN104601914A (en) * 2015-01-12 2015-05-06 联想(北京)有限公司 Information processing method and electronic device
CN110996086B (en) * 2019-12-26 2022-07-08 成都极米科技股份有限公司 Projection brightness adjusting method and related device

Also Published As

Publication number Publication date
CN111586383A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN109194876B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN107466385B (en) Cloud deck control method and system
CN107911621B (en) Panoramic image shooting method, terminal equipment and storage medium
CN104471519B (en) Method and device for presenting panoramic photo in mobile terminal and mobile terminal
EP3043329A2 (en) Image processing apparatus, image processing method, and program
CN110633629A (en) Power grid inspection method, device, equipment and storage medium based on artificial intelligence
CN111586383B (en) Method and device for projection and projection equipment
CN111787232B (en) Image processing method, device and storage medium based on pan-tilt-zoom camera
JP7059054B2 (en) Image processing equipment, image processing methods and programs
WO2018040180A1 (en) Photographing method and apparatus
US8965105B2 (en) Image processing device and method
CN110022444A (en) The panorama photographic method of unmanned flight's machine and the unmanned flight's machine for using it
CN105827914A (en) Lens cleaning prompting method and device
CN105262948A (en) Panorama capturing method and mobile terminal
CN107396069A (en) Monitor methods of exhibiting, apparatus and system
CN110099220B (en) Panoramic stitching method and device
US20210243357A1 (en) Photographing control method, mobile platform, control device, and storage medium
JP2020053774A (en) Imaging apparatus and image recording method
CN110751728B (en) Virtual reality equipment with BIM building model mixed reality function and method
WO2019205103A1 (en) Pan-tilt orientation correction method, pan-tilt orientation correction apparatus, pan-tilt, pan-tilt system, and unmanned aerial vehicle
WO2021168804A1 (en) Image processing method, image processing apparatus and image processing system
CN109451216B (en) Display processing method and device for shot photos
JP2018201146A (en) Image correction apparatus, image correction method, attention point recognition apparatus, attention point recognition method, and abnormality detection system
EP3805899A1 (en) Head mounted display system and scene scanning method thereof
CN115174878B (en) Projection picture correction method, apparatus and storage medium

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