CN114485388A - Projection equipment control method and device, projection equipment and storage medium - Google Patents

Projection equipment control method and device, projection equipment and storage medium Download PDF

Info

Publication number
CN114485388A
CN114485388A CN202011155316.XA CN202011155316A CN114485388A CN 114485388 A CN114485388 A CN 114485388A CN 202011155316 A CN202011155316 A CN 202011155316A CN 114485388 A CN114485388 A CN 114485388A
Authority
CN
China
Prior art keywords
projection
image
coordinates
preset
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011155316.XA
Other languages
Chinese (zh)
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.)
Chengdu Jimi Technology Co Ltd
Original Assignee
Chengdu Jimi 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 Chengdu Jimi Technology Co Ltd filed Critical Chengdu Jimi Technology Co Ltd
Priority to CN202011155316.XA priority Critical patent/CN114485388A/en
Publication of CN114485388A publication Critical patent/CN114485388A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Transforming Electric Information Into Light Information (AREA)

Abstract

The embodiment of the application provides a projection device control method and device, a projection device and a storage medium, and relates to the technical field of projection device control. The control method of the projection equipment is applied to the projection equipment, the projection equipment is pre-stored with a preset image and a target image, and the control method of the projection equipment comprises the following steps: firstly, acquiring projection coordinates of a projected image and preset coordinates of a preset image, wherein the projected image is generated by projecting the preset image to a projection plane by projection equipment, and the preset image corresponds to characteristic points of the projected image one by one; secondly, calculating according to the preset coordinates and the projection coordinates to obtain a transformation matrix; and then, obtaining a target projection coordinate according to the transformation matrix and the target image, and projecting the target projection coordinate. By the method, a user can perform measurement operation on the projected image of the target projection coordinate without using a special tool, so that convenience of measurement operation is improved.

Description

Projection equipment control method and device, projection equipment and storage medium
Technical Field
The application relates to the technical field of projection equipment control, in particular to a projection equipment control method and device, projection equipment and a storage medium.
Background
The inventor researches and finds that in the present stage, when space horizontal measurement or size estimation is carried out in a plurality of scenes, such as a decoration stage, special tools such as a level meter, a measuring tape and the like are usually needed for assistance, so that the problem of low convenience of measurement operation exists.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method and an apparatus for controlling a projection device, and a storage medium, so as to solve the problems in the prior art.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
a control method of a projection device is applied to the projection device, a preset image and a target image are prestored in the projection device, and the control method of the projection device comprises the following steps:
acquiring projection coordinates of a projected image and preset coordinates of the preset image, wherein the projected image is an image generated by projecting the preset image to a projection plane by the projection equipment, and the preset image corresponds to the feature points of the projected image one to one;
calculating according to the preset coordinates and the projection coordinates to obtain a transformation matrix;
and calculating to obtain a target projection coordinate according to the transformation matrix and the target image, and projecting the target projection coordinate.
In a preferred option of the embodiment of the present application, the projection device includes a gravity accelerometer, and the step of acquiring the projection coordinates of the projection image and the preset coordinates of the preset image includes:
acquiring a preset coordinate of the preset image;
acquiring initial coordinates of the projected image and gravity acceleration data of the projection equipment, which is obtained through a gravity accelerometer;
and carrying out first correction processing on the initial coordinate according to the gravity acceleration data to obtain the projection coordinate of the projection image.
In a preferred option of the embodiment of the present application, before the step of acquiring the projection coordinates of the projection image and the preset coordinates of the preset image, the method for controlling a projection device further includes:
and adjusting the projection equipment.
In a preferred option of the embodiment of the present application, the projection device includes a gravity accelerometer, and the step of adjusting the projection device includes:
acquiring test coordinates of a test projection image and gravity acceleration data of the projection equipment, which is acquired through a gravity accelerometer, wherein the test projection image is an image generated by the projection equipment projecting the test image to a projection plane, and the test image corresponds to characteristic points of the test projection image one to one;
and carrying out second correction processing on the test coordinate according to the gravity acceleration data, and adjusting the projection equipment according to the result of the second correction processing.
In a preferred option of the embodiment of the present application, the projection device is connected to an electronic device, and the projection device control method further includes a step of acquiring a target image, where the step includes:
and acquiring a target image sent by the electronic equipment.
In a preferred option of the embodiment of the present application, the target image is an image with a ruler, so that a user can perform a measurement operation through the target image.
In a preferred selection of the embodiment of the present application, the target image includes one or more images of a point, a line, a plane, and a volume.
The embodiment of the present application further provides a projection device control apparatus, which is applied to a projection device, where the projection device has a preset image and a target image in advance, and the projection device control apparatus includes:
the coordinate acquisition module is used for acquiring projection coordinates of a projection image and preset coordinates of the preset image, wherein the projection image is generated by the projection equipment projecting the preset image to a projection plane, and the preset image corresponds to the feature points of the projection image one to one;
the coordinate calculation module is used for calculating to obtain a transformation matrix according to the preset coordinates and the projection coordinates;
and the projection module is used for calculating to obtain a target projection coordinate according to the transformation matrix and the target image and projecting the target projection coordinate.
An embodiment of the present application further provides a projection device, including:
a memory;
a processor;
the projection device control apparatus is stored in the memory and controlled by the processor to execute.
The embodiment of the application also provides a storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed, the steps of the projection equipment control method are realized.
According to the projection equipment control method and device, the projection equipment and the storage medium, the transformation matrix is obtained through calculation according to the projection coordinates of the projection image and the preset coordinates of the preset image, the target projection coordinates are obtained through calculation according to the transformation matrix and the target image, and projection is carried out according to the target projection coordinates, so that a user can carry out measurement operation through the projected image of the target projection coordinates, and the problem of low measurement operation convenience caused by the fact that a professional tool is needed for measuring the space size in the prior art is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application.
Fig. 2 is a block diagram of a projection apparatus according to an embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a control method of a projection apparatus according to an embodiment of the present disclosure.
Fig. 4 is another schematic flowchart of a control method of a projection apparatus according to an embodiment of the present disclosure.
Fig. 5 is another schematic flowchart of a control method of a projection apparatus according to an embodiment of the present disclosure.
Fig. 6 is another schematic flowchart of a control method of a projection apparatus according to an embodiment of the present disclosure.
Fig. 7 is another schematic flowchart of a control method of a projection apparatus according to an embodiment of the present disclosure.
Fig. 8 is a block diagram of a control apparatus of a projection device according to an embodiment of the present application.
Icon: 100-a projection device; 120-a memory; 130-a memory controller; 140-a processor; 150-peripheral interface; 160-camera; 170-a gravity accelerometer; 200-an electronic device; 800-projection device control means; 810-a coordinate acquisition module; 820-coordinate calculation module; 830-projection module.
Detailed Description
For purposes of making the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be described in detail below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and that steps without logical context may be reversed in order or performed concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In order to enable a person skilled in the art to make use of the present disclosure, the following embodiments are given. It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Applications of the system or method of the present application may include web pages, plug-ins for browsers, client terminals, customization systems, internal analysis systems, or artificial intelligence robots, among others, or any combination thereof.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Fig. 1 is a schematic diagram of exemplary hardware and software components of an application scenario, which may include a projection device 100 and an electronic device 200, in accordance with some embodiments of the present application, in which the present concepts may be implemented.
The projection device 100 is in communication connection with the electronic device 200 to acquire a target image sent by the electronic device 200, and the projection device 100 projects according to the target image.
Fig. 2 illustrates a schematic diagram of exemplary hardware and software components of a projection device 100 that may implement the concepts of the present application, according to some embodiments of the present application. Projection device 100 may include projection device control 800, memory 120, storage controller 130, processor 140, peripheral interface 150, camera 160, gravity accelerometer 170.
The elements of memory 120, memory controller 130, processor 140, and peripheral interface 150 are electrically connected to each other, either directly or indirectly, to enable the transfer or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The projection device control apparatus 800 includes at least one software function module which may be stored in the memory 120 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the projection device 100. The processor 140 is used to execute executable modules stored in the memory 120, for example, software functional modules or computer programs included in the projection device control apparatus 800.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is used for storing a program, and the processor 140 executes the program after receiving an execution instruction, and the method performed by the projection apparatus 100 defined by the process disclosed by the embodiment of the invention can be applied to the processor 140, or implemented by the processor 140.
The processor 140 may be an integrated circuit chip having signal processing capabilities. The Processor 140 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Peripheral interface 150 couples various input/output devices to processor 140 and memory 120. In some embodiments, peripheral interface 150, processor 140, and memory controller 130 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
For the gravity accelerometer 170, it should be noted that the specific type of the gravity accelerometer 170 is not limited, and may be set according to the actual application requirement. For example, in an alternative example, the gravity accelerometer 170 may be part of an Inertial Measurement Unit (IMU).
It will be appreciated that the configuration shown in fig. 2 is merely illustrative, and that projection device 100 may include more or fewer components than shown in fig. 2, or have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
For the electronic device 200, it should be noted that the specific type of the electronic device 200 is not limited, and may be set according to the actual application requirement, as long as the input information of the user can be acquired, and the target image is generated according to the input information. Alternatively, the electronic device 200 may comprise a mobile device, a tablet computer, a laptop computer, or a built-in device in a motor vehicle, etc., or any combination thereof. In some embodiments, the mobile device may include a smart home device, a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the smart home devices may include smart lighting devices, control devices for smart electrical devices, smart monitoring devices, smart televisions, smart cameras, or walkie-talkies, or the like, or any combination thereof. In some embodiments, the wearable device may include a smart bracelet, a smart lace, smart glass, a smart helmet, a smart watch, a smart garment, a smart backpack, a smart accessory, and the like, or any combination thereof. In some embodiments, the smart mobile device may include a smartphone, a Personal Digital Assistant (PDA), a gaming device, a navigation device, or a point of sale (POS) device, or the like, or any combination thereof. In some embodiments, the virtual reality device and/or the augmented reality device may include a virtual reality helmet, virtual reality glass, a virtual reality patch, an augmented reality helmet, augmented reality glass, an augmented reality patch, or the like, or any combination thereof. For example, the virtual reality device and/or augmented reality device may include various virtual reality products and the like. In some embodiments, the built-in devices in the motor vehicle may include an on-board computer, an on-board television, and the like.
With reference to fig. 3, an embodiment of the present application further provides a projection apparatus control method, which may be applied to the projection apparatus 100 shown in fig. 2, where the projection apparatus 100 stores a preset image and a target image in advance, and the projection apparatus control method may include:
step S310, acquiring projection coordinates of the projected image and preset coordinates of the preset image.
The projection image is generated by projecting a preset image to a projection plane by projection equipment, and the characteristic points of the preset image and the characteristic points of the projection image are in one-to-one correspondence.
And step S320, calculating according to the preset coordinates and the projection coordinates to obtain a transformation matrix.
In detail, after the projection coordinates and the preset coordinates are obtained through step S310, a transformation matrix may be calculated from the projection coordinates and the preset coordinates.
And step S330, calculating to obtain a target projection coordinate according to the transformation matrix and the target image, and projecting the target projection coordinate.
In detail, after the transformation matrix is obtained in step S320, the target projection coordinates may be obtained from the transformation matrix and the target image, and the target projection coordinates may be projected.
According to the method, the transformation matrix is calculated according to the projection coordinates of the projection image and the preset coordinates of the preset image, the target projection coordinates are calculated according to the transformation matrix and the target image, and the projection is performed according to the target projection coordinates, so that a user can perform measurement operation through the projected image of the target projection coordinates, and the problem of low measurement operation convenience caused by the fact that a professional tool is needed by the user to measure the space size in the prior art is solved.
When the projection apparatus 100 performs projection imaging on a projection plane, correction processing needs to be performed on the spatial coordinate system of the projection apparatus 100 in order to correct a deviation of coordinates. Optionally, the specific steps of performing the correction processing are not limited, and may be set according to actual application requirements. For example, in an alternative example, the acquired coordinates may be corrected prior to projection imaging. Therefore, on the basis of fig. 3, fig. 4 is a schematic flowchart of another control method for a projection apparatus provided in this embodiment of the present application, and referring to fig. 4, step S310 may include:
in step S311, a preset coordinate of a preset image is obtained.
It should be noted that, the projection apparatus 100 is pre-stored with a preset image and a target image, where the preset image and the target image are located in the same frame coordinate system, and the specific type of the frame coordinate system is not limited, and may be set according to the actual application requirement, for example, in an alternative example, the frame coordinate system may be a two-dimensional coordinate system. For another example, in another alternative example, the screen coordinate system may be a three-dimensional coordinate system. In the embodiment of the application, the preset coordinates of the pre-stored preset image in the picture coordinate system can be directly acquired.
In step S312, the initial coordinates of the projected image and the gravitational acceleration data of the projection apparatus obtained by the gravitational accelerometer 170 are obtained.
In detail, a projection coordinate system having the projection apparatus 100 as an origin may be established, and initial coordinates of the projection image may be acquired by means of three-dimensional reconstruction.
Step 313, performing a first correction process on the initial coordinates according to the gravity acceleration data to obtain projection coordinates of the projection image.
It should be noted that, due to the position of the projection apparatus 100 and the like, the initial coordinates of the projection image are deviated, and the initial coordinates need to be corrected. Alternatively, when the projection coordinate system is a three-dimensional coordinate system constituted by xyz three axes, the direction of the gravitational acceleration may be obtained from the gravitational acceleration data. And judging whether the direction of the gravitational acceleration is parallel to the z axis corresponding to the initial coordinate or not, and when the direction of the gravitational acceleration is not parallel to the z axis corresponding to the initial coordinate, performing first correction processing on the initial coordinate according to the direction of the gravitational acceleration.
For example, when the direction of the gravitational acceleration is a vertical downward direction perpendicular to the xy plane, the z axis corresponding to the initial coordinate is not perpendicular to the xy plane, and the first correction processing may be performed on the z axis coordinate of the initial coordinate according to the direction of the gravitational acceleration, so that the processed z axis is perpendicular to the xy plane, thereby obtaining the projection coordinate of which the projection image has no coordinate deviation.
For another example, in another alternative example, the projection device 100 may be adjusted prior to projection imaging. Therefore, on the basis of fig. 3, fig. 5 is a schematic flowchart of another projection apparatus control method provided in the embodiment of the present application, and referring to fig. 5, the projection apparatus control method may further include:
in step S340, the projection apparatus 100 is adjusted.
That is, the projection apparatus 100 may be adjusted before projection imaging, so that coordinates generated by projection imaging performed by the adjusted projection apparatus 100 are not deviated, and accuracy and reliability of projection imaging are improved.
For step S340, it should be noted that the specific step of performing adjustment is not limited, and may be set according to the actual application requirement. For example, in an alternative example, step S340 may include a step of performing correction according to the gravitational acceleration data. Therefore, on the basis of fig. 5, fig. 6 is a schematic flowchart of another control method for a projection apparatus provided in the embodiment of the present application, and referring to fig. 6, step S340 may include:
in step S341, the test coordinates of the test projection image and the gravitational acceleration data of the projection apparatus 100 obtained by the gravitational accelerometer 170 are acquired.
The test projection image is an image generated by projecting the test image onto a projection plane by the projection device 100, and the test image corresponds to the feature points of the test projection image one to one.
It should be noted that the specific type of the test image is not limited, and may include one or more of a line, a plane, and a volume. The specific content of the test image may be the same as or different from the specific content of the preset image or the target image, except that the step of projection imaging the test image precedes step S310.
And step 342, performing second correction processing on the test coordinates according to the gravity acceleration data, and adjusting the projection equipment according to the result of the second correction processing.
It should be noted that, due to the position of the projection apparatus 100 and the like, the test coordinates of the test projection image may be deviated, and the test coordinates need to be corrected. Alternatively, when the projection coordinate system is a three-dimensional coordinate system constituted by xyz three axes, the direction of the gravitational acceleration may be obtained from the gravitational acceleration data. And judging whether the direction of the gravitational acceleration is parallel to the z axis corresponding to the test coordinate, and performing second correction processing on the test coordinate according to the direction of the gravitational acceleration when the direction of the gravitational acceleration is not parallel to the z axis corresponding to the test coordinate.
For example, when the direction of the gravitational acceleration is a vertical downward direction perpendicular to the xy plane, the z axis corresponding to the test coordinate is not perpendicular to the xy plane, and second correction processing may be performed on the z axis coordinate of the test coordinate according to the direction of the gravitational acceleration, so that the processed z axis is perpendicular to the xy plane, thereby completing adjustment of the projection apparatus 100, and causing no deviation in the coordinate of the projection apparatus 100 for subsequent projection imaging.
Before step S310, it should be noted that the embodiment of the present application may further include a step of acquiring a target image. Therefore, on the basis of fig. 3, fig. 7 is a schematic flowchart of another projection apparatus control method provided in the embodiment of the present application, and referring to fig. 7, the projection apparatus control method may further include:
in step S350, the target image transmitted by the electronic device 200 is acquired.
It should be noted that the specific type of the target image is not limited, and may be set according to the actual application requirement. For example, in an alternative example, the target image may be an image with a ruler to enable a user to perform a measurement operation through the target image. Alternatively, the target image may include one or more images of points, lines, planes, and volumes.
For example, the target image may be a laser level, the appearance of which may be a user geometric pattern, and the size of which is set by the user may be set by the user via the electronic device 200. Alternatively, the laser level may have the appearance of two perpendicular intersecting line segments, with the line segments including a scale.
In the embodiment of the application, the user can perform projection according to the target projection coordinate to set the position of the laser level on the projection plane. For example, when a user wants to hang a decorative drawing or a clock on a wall surface, the user sets the position and size of the laser level on the wall surface through an application program on the electronic device 200 (i.e., directly sets the target projection coordinates, specifically, the user selects at least one coordinate from the three-dimensional space coordinate system coordinates transmitted by the projection device 100 through the electronic device 200 as the target projection coordinates), so as to provide the user with an effect of previewing the decorative drawing or the clock hung on the wall surface, and display the actual pattern of the decorative drawing or the clock on the wall surface for the user to refer to. And when the user hangs the decoration picture or the clock, a laser level bar is provided to ensure that the decoration picture or the clock is hung and erected correctly and cannot be inclined, and the measurement can be carried out without the help of a professional tool, so that the convenience of the measurement operation is improved.
For step S320, it should be noted that the transformation matrix may be a perspective transformation matrix a, and the general transformation formula thereof is:
[x,y,z]=[u,v,w]*A;
where [ u, v, w ] is the original image coordinates before transformation and [ x, y, z ] is the image coordinates after transformation.
It should be noted that, in an alternative example, the projection apparatus 100 may have a transformation matrix prestored therein, and the projection apparatus 100 may obtain the target image sent by the electronic apparatus 200, and may directly calculate the target projection coordinates according to the prestored transformation matrix and the target image, and project the target projection coordinates.
With reference to fig. 8, an embodiment of the present application further provides a projection device control apparatus 800, where the functions implemented by the projection device control apparatus 800 correspond to the steps executed by the foregoing method. The projection device control apparatus 800 may be understood as a processor of the projection device 100, or may be understood as a component that is independent from the projection device 100 or the processor and implements the functions of the present application under the control of the projection device 100. The projection device control apparatus 800 may include a coordinate acquisition module 810, a coordinate calculation module 820, and a projection module 830.
The coordinate obtaining module 810 is configured to obtain projection coordinates of a projected image and preset coordinates of a preset image, where the projected image is an image generated by projecting the preset image to a projection plane by a projection device, and feature points of the preset image and feature points of the projected image are in one-to-one correspondence. In the embodiment of the present application, the coordinate obtaining module 810 may be configured to perform step S310 shown in fig. 3, and for the relevant content of the coordinate obtaining module 810, reference may be made to the foregoing detailed description of step S310.
And a coordinate calculation module 820, configured to calculate a transformation matrix according to the preset coordinate and the projection coordinate. In the embodiment of the present application, the coordinate calculation module 820 may be configured to perform step S320 shown in fig. 3, and the foregoing detailed description of step S320 may be referred to for relevant contents of the coordinate calculation module 820.
And the projection module 830 is configured to calculate a target projection coordinate according to the transformation matrix and the target image, and project the target projection coordinate. In the embodiment of the present application, the projection module 830 may be configured to perform step S330 shown in fig. 3, and reference may be made to the foregoing detailed description of step S330 for relevant contents of the projection module 830.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the projection apparatus control method.
The computer program product of the projection device control method provided in the embodiment of the present application includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the steps of the projection device control method in the above method embodiment, which may be referred to specifically in the above method embodiment, and are not described herein again.
To sum up, according to the projection device control method and apparatus, the projection device, and the storage medium provided in the embodiments of the present application, the transformation matrix is obtained by calculation according to the projection coordinates of the projection image and the preset coordinates of the preset image, the target projection coordinates are obtained by calculation according to the transformation matrix and the target image, and projection is performed according to the target projection coordinates, so that a user can perform measurement operation on an image after projection of the target projection coordinates, and the problem of low measurement operation convenience caused by the fact that a professional tool is required to measure the spatial dimension in the prior art is solved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present application. 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). It should also be noted that, 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. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing 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 according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A control method of a projection device is applied to the projection device, wherein a preset image and a target image are prestored in the projection device, and the control method of the projection device comprises the following steps:
acquiring projection coordinates of a projected image and preset coordinates of the preset image, wherein the projected image is generated by projecting the preset image to a projection plane by the projection equipment, and the preset image corresponds to the feature points of the projected image one to one;
calculating according to the preset coordinates and the projection coordinates to obtain a transformation matrix;
and calculating to obtain a target projection coordinate according to the transformation matrix and the target image, and projecting the target projection coordinate.
2. The projection device control method of claim 1, wherein the projection device includes a gravity accelerometer, and the step of acquiring the projection coordinates of the projection image and the preset coordinates of the preset image includes:
acquiring a preset coordinate of the preset image;
acquiring initial coordinates of the projected image and gravity acceleration data of the projection equipment, which is obtained through a gravity accelerometer;
and carrying out first correction processing on the initial coordinate according to the gravity acceleration data to obtain the projection coordinate of the projection image.
3. The projection apparatus control method of claim 1, wherein before the step of acquiring the projection coordinates of the projection image and the preset coordinates of the preset image, the projection apparatus control method further comprises:
and adjusting the projection equipment.
4. The projection device control method of claim 1, wherein the projection device includes a gravity accelerometer, and wherein the step of adjusting the projection device includes:
acquiring test coordinates of a test projection image and gravity acceleration data of the projection equipment, which is acquired through a gravity accelerometer, wherein the test projection image is an image generated by the projection equipment projecting the test image to a projection plane, and the test image corresponds to characteristic points of the test projection image one to one;
and carrying out second correction processing on the test coordinate according to the gravity acceleration data, and adjusting the projection equipment according to the result of the second correction processing.
5. The projection device control method of claim 1, wherein the projection device is connected to an electronic device, the projection device control method further comprising the step of acquiring a target image, the step comprising:
and acquiring a target image sent by the electronic equipment.
6. The projection apparatus control method of claim 1, wherein the target image is an image with a scale to enable a user to perform a measurement operation through the target image.
7. The projection device control method of claim 6, wherein the target image includes one or more images of a point, a line, a plane, and a volume.
8. A control device for a projection device, applied to a projection device, wherein a preset image and a target image are prestored in the projection device, the control device for the projection device comprises:
the coordinate acquisition module is used for acquiring projection coordinates of a projection image and preset coordinates of the preset image, wherein the projection image is generated by the projection equipment projecting the preset image to a projection plane, and the preset image corresponds to the feature points of the projection image one to one;
the coordinate calculation module is used for calculating to obtain a transformation matrix according to the preset coordinates and the projection coordinates;
and the projection module is used for calculating to obtain a target projection coordinate according to the transformation matrix and the target image and projecting the target projection coordinate.
9. A projection device, comprising:
a memory;
a processor;
the projection device control apparatus of claim 8, stored in the memory and controlled to execute by the processor.
10. A storage medium having stored thereon a computer program which, when executed, carries out the steps of the projection apparatus control method of any one of claims 1 to 7.
CN202011155316.XA 2020-10-26 2020-10-26 Projection equipment control method and device, projection equipment and storage medium Pending CN114485388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011155316.XA CN114485388A (en) 2020-10-26 2020-10-26 Projection equipment control method and device, projection equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011155316.XA CN114485388A (en) 2020-10-26 2020-10-26 Projection equipment control method and device, projection equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114485388A true CN114485388A (en) 2022-05-13

Family

ID=81470639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011155316.XA Pending CN114485388A (en) 2020-10-26 2020-10-26 Projection equipment control method and device, projection equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114485388A (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979234A (en) * 2016-06-13 2016-09-28 Tcl集团股份有限公司 Projection image correction method and projection device
CN107046636A (en) * 2017-02-22 2017-08-15 青岛海信宽带多媒体技术有限公司 The image correction method and device of projector equipment
CN107404643A (en) * 2016-05-18 2017-11-28 上海宽翼通信科技有限公司 A kind of three-dimensional camera shooting system and its image capture method
CN107504902A (en) * 2017-08-24 2017-12-22 广东小天才科技有限公司 Length measuring method and device, mobile terminal and storage medium
CN107517366A (en) * 2017-08-23 2017-12-26 上海喵呜信息科技有限公司 Projector's image information method for automatic measurement based on RGBD
CN107547879A (en) * 2016-06-24 2018-01-05 上海顺久电子科技有限公司 A kind of bearing calibration of projection imaging, device and laser television
CN206908753U (en) * 2017-05-16 2018-01-19 深圳市火乐科技发展有限公司 A kind of projector control circuit with acceleration transducer
CN107911680A (en) * 2017-12-12 2018-04-13 成都市极米科技有限公司 Projector equipment bearing calibration, device and projector equipment
CN108111828A (en) * 2017-12-12 2018-06-01 成都市极米科技有限公司 Projector equipment bearing calibration, device and projector equipment
CN109089093A (en) * 2018-08-29 2018-12-25 歌尔股份有限公司 Image processing method, device and equipment
CN109451290A (en) * 2018-12-25 2019-03-08 广州励丰文化科技股份有限公司 Auto-correction method and system based on special-shaped projected picture
CN110769224A (en) * 2018-12-27 2020-02-07 成都极米科技股份有限公司 Projection area acquisition method and projection method
CN110996082A (en) * 2019-12-17 2020-04-10 成都极米科技股份有限公司 Projection adjusting method and device, projector and readable storage medium
CN111093067A (en) * 2019-12-31 2020-05-01 歌尔股份有限公司 Projection apparatus, lens distortion correction method, distortion correction device, and storage medium
CN111103034A (en) * 2020-01-09 2020-05-05 深圳市东深电子股份有限公司 Laser water scale equipment and monitoring method thereof
CN111131801A (en) * 2018-11-01 2020-05-08 华勤通讯技术有限公司 Projector correction system and method and projector
CN111405258A (en) * 2020-04-30 2020-07-10 平安科技(深圳)有限公司 Projection method, device, equipment and computer readable storage medium
CN211425588U (en) * 2020-01-09 2020-09-04 深圳市东深电子股份有限公司 Laser water scale equipment
CN111800620A (en) * 2020-08-18 2020-10-20 深圳市慧视智图科技有限公司 Noninductive trapezoidal correction module of projector and calculation method thereof

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107404643A (en) * 2016-05-18 2017-11-28 上海宽翼通信科技有限公司 A kind of three-dimensional camera shooting system and its image capture method
CN105979234A (en) * 2016-06-13 2016-09-28 Tcl集团股份有限公司 Projection image correction method and projection device
CN107547879A (en) * 2016-06-24 2018-01-05 上海顺久电子科技有限公司 A kind of bearing calibration of projection imaging, device and laser television
CN107046636A (en) * 2017-02-22 2017-08-15 青岛海信宽带多媒体技术有限公司 The image correction method and device of projector equipment
CN206908753U (en) * 2017-05-16 2018-01-19 深圳市火乐科技发展有限公司 A kind of projector control circuit with acceleration transducer
CN107517366A (en) * 2017-08-23 2017-12-26 上海喵呜信息科技有限公司 Projector's image information method for automatic measurement based on RGBD
CN107504902A (en) * 2017-08-24 2017-12-22 广东小天才科技有限公司 Length measuring method and device, mobile terminal and storage medium
CN108111828A (en) * 2017-12-12 2018-06-01 成都市极米科技有限公司 Projector equipment bearing calibration, device and projector equipment
CN107911680A (en) * 2017-12-12 2018-04-13 成都市极米科技有限公司 Projector equipment bearing calibration, device and projector equipment
CN109089093A (en) * 2018-08-29 2018-12-25 歌尔股份有限公司 Image processing method, device and equipment
CN111131801A (en) * 2018-11-01 2020-05-08 华勤通讯技术有限公司 Projector correction system and method and projector
CN109451290A (en) * 2018-12-25 2019-03-08 广州励丰文化科技股份有限公司 Auto-correction method and system based on special-shaped projected picture
CN110769224A (en) * 2018-12-27 2020-02-07 成都极米科技股份有限公司 Projection area acquisition method and projection method
CN110996082A (en) * 2019-12-17 2020-04-10 成都极米科技股份有限公司 Projection adjusting method and device, projector and readable storage medium
CN111093067A (en) * 2019-12-31 2020-05-01 歌尔股份有限公司 Projection apparatus, lens distortion correction method, distortion correction device, and storage medium
CN111103034A (en) * 2020-01-09 2020-05-05 深圳市东深电子股份有限公司 Laser water scale equipment and monitoring method thereof
CN211425588U (en) * 2020-01-09 2020-09-04 深圳市东深电子股份有限公司 Laser water scale equipment
CN111405258A (en) * 2020-04-30 2020-07-10 平安科技(深圳)有限公司 Projection method, device, equipment and computer readable storage medium
CN111800620A (en) * 2020-08-18 2020-10-20 深圳市慧视智图科技有限公司 Noninductive trapezoidal correction module of projector and calculation method thereof

Similar Documents

Publication Publication Date Title
JP6338021B2 (en) Image processing apparatus, image processing method, and image processing program
US9684169B2 (en) Image processing apparatus and image processing method for viewpoint determination
US9696543B2 (en) Information processing apparatus and information processing method
JP6503906B2 (en) Image processing apparatus, image processing method and image processing program
EP2991039A1 (en) Image processing apparatus, image processing method, and computer program product
US20070146391A1 (en) Method of and system for determining inaccuracy information in an augmented reality system
CN107329671B (en) Model display method and device
EP3067658A1 (en) 3d-shape measurement device, 3d-shape measurement method, and 3d-shape measurement program
CN109147058B (en) Initialization method and device for visual and inertial navigation information fusion and storage medium
US10430967B2 (en) Information processing apparatus, method, and program
CN112729327A (en) Navigation method, navigation device, computer equipment and storage medium
US20240161424A1 (en) Automated measurement of interior spaces through guided modeling of dimensions
CN108933902A (en) Panoramic picture acquisition device builds drawing method and mobile robot
CN109040525B (en) Image processing method, image processing device, computer readable medium and electronic equipment
CN109478769A (en) Cable movable area display device, cable movable area display methods and cable movable area show program
CN112997218B (en) Method and system for estimating the size of a garment
CN111435069B (en) Method and device for measuring volume
CN113610702B (en) Picture construction method and device, electronic equipment and storage medium
CN105786166B (en) Augmented reality method and system
CN117611664A (en) Image information and inertial navigation data fusion method
CN114485388A (en) Projection equipment control method and device, projection equipment and storage medium
CN107806862B (en) Aerial survey field measurement method and system
JP2003323603A (en) Stereo matching method, three-dimensional measuring method and device, program for stereo matching method and program for three dimensional measurement
TWI637353B (en) Measurement device and measurement method
JP2020197856A (en) Information display apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220513