CN110460827B - Method and device for determining working state of galvanometer and computer storage medium - Google Patents

Method and device for determining working state of galvanometer and computer storage medium Download PDF

Info

Publication number
CN110460827B
CN110460827B CN201910694871.0A CN201910694871A CN110460827B CN 110460827 B CN110460827 B CN 110460827B CN 201910694871 A CN201910694871 A CN 201910694871A CN 110460827 B CN110460827 B CN 110460827B
Authority
CN
China
Prior art keywords
image
galvanometer
calculated
subunit
determining
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
CN201910694871.0A
Other languages
Chinese (zh)
Other versions
CN110460827A (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.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Optical 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 Goertek Optical Technology Co Ltd filed Critical Goertek Optical Technology Co Ltd
Priority to CN201910694871.0A priority Critical patent/CN110460827B/en
Publication of CN110460827A publication Critical patent/CN110460827A/en
Application granted granted Critical
Publication of CN110460827B publication Critical patent/CN110460827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3191Testing thereof

Abstract

The embodiment of the invention discloses a method and a device for determining the working state of a galvanometer and a computer storage medium. The method comprises the following steps: acquiring a unit image for detecting the working state of the galvanometer; dividing the unit image into a plurality of sub-unit images; respectively calculating the inclination angle difference of each subunit image before and after the vibration of the galvanometer; and determining the working state of the galvanometer according to the inclination angle difference. According to the embodiment of the invention, the working state of the galvanometer can be accurately and efficiently determined.

Description

Method and device for determining working state of galvanometer and computer storage medium
Technical Field
The present invention relates to the field of projector detection technologies, and in particular, to a method and an apparatus for determining a working state of a galvanometer, and a computer storage medium.
Background
At present, along with popularization of projectors and improvement of communication speed, users are increasingly interested in high definition image quality and ultrahigh definition image quality. As the resolution is increased, the hardware cost and the volume of the device are also multiplied. Therefore, there is a trend to output 4K (3840 × 2160) high-definition images on 1080p hardware by using a galvanometer.
When the projector outputs 4K images on 1080p hardware through the galvanometer, the galvanometer works normally to directly influence the output of the image quality of the 4K images, namely, the vibration condition of the galvanometer needs to be accurately judged. Generally, the vibration condition of the galvanometer is judged by the naked eye of a worker. The judgment mode has the advantages of strong subjectivity, extremely low accuracy and low efficiency. Therefore, the inventors have considered that it is highly desirable to propose a method for determining the operating state of the galvanometer.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a new technical solution for determining the working state of a galvanometer.
According to a first aspect of the embodiments of the present invention, there is provided a method for determining a working state of a galvanometer, the method including:
acquiring a unit image for detecting the working state of the galvanometer;
dividing the unit image into a plurality of sub-unit images;
respectively calculating the inclination angle difference of each subunit image before and after the vibration of the galvanometer;
and determining the working state of the galvanometer according to the inclination angle difference.
Optionally, the step of acquiring a unit image for detecting the operating state of the galvanometer includes:
acquiring a projection image after the vibration of the galvanometer;
and denoising the projected image to obtain the unit image.
Optionally, the step of dividing the unit image into a plurality of sub-unit images includes:
and dividing the unit image into a plurality of sub-unit images according to preset division coordinates.
Optionally, the step of respectively calculating a difference between tilt angles of each subunit image before and after the galvanometer vibrates includes:
for each subunit image, dividing the subunit image into a first part to be calculated and a second part to be calculated;
calculating a first barycentric coordinate of the first portion to be calculated, and calculating a second barycentric coordinate of the second portion to be calculated;
calculating to obtain a current inclination angle according to the first barycentric coordinate and the second barycentric coordinate;
and determining the inclination angle difference according to the difference value of the current inclination angle and a preset inclination angle.
Optionally, the step of dividing the subunit image into a first portion to be calculated and a second portion to be calculated includes:
traversing pixel points of the subunit image in the width direction, and determining the number of rows/columns with the pixel value of 255 obtained by statistics as the number of effective rows or effective columns of the subunit image;
and dividing the subunit image into the first part to be calculated and the second part to be calculated according to the number of the effective rows or the number of the effective columns.
Optionally, the step of dividing the subunit image into the first portion to be calculated and the second portion to be calculated according to the number of the active rows or the number of the active columns includes:
according to the formula CountmidDetermining the number of rows/columns for dividing the subunit image, and dividing the subunit image into the first part to be calculated and the second part to be calculated;
wherein, Σ count represents the total number of pixel points whose pixel values are 255 traversed in the width direction; n represents the number of active rows/active columns.
Optionally, the step of determining the working state of the galvanometer according to the tilt angle difference includes:
when each inclination angle difference is within a preset inclination angle difference range, determining that the working state of the galvanometer is a normal working state;
and when at least one inclination angle difference is out of the preset inclination angle difference range, determining that the working state of the galvanometer is an abnormal working state.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for determining an operating state of a galvanometer, the apparatus including:
the acquisition module is used for acquiring a unit image for detecting the working state of the galvanometer;
a segmentation module for segmenting the unit image into a plurality of sub-unit images;
the calculating module is used for respectively calculating the inclination angle difference of each subunit image before and after the vibration of the galvanometer;
and the determining module is used for determining the working state of the galvanometer according to the inclination angle difference.
According to a third aspect of the embodiments of the present invention, there is provided an apparatus for determining an operating state of a galvanometer, the apparatus including: a memory for storing instructions and a processor; the instructions are configured to control the processor to operate so as to perform the method for determining the operating state of the galvanometer according to any one of the first aspect of the present invention.
According to a fourth aspect of the embodiments of the present invention, there is provided a computer storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the method for determining the operating state of the galvanometer according to any one of the first aspect of the present invention.
The method has the beneficial effect that the working state of the galvanometer can be accurately and efficiently determined.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic structural diagram of a client according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a method for determining an operating state of a galvanometer according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of the projection image acquired in step 2100.
Fig. 4 is a schematic diagram of a unit image after denoising processing is performed on a projection image in step 2100.
Fig. 5a to 5d are schematic diagrams illustrating a unit image divided into a plurality of sub-unit images.
Fig. 6a to 6c are schematic diagrams of the image segmentation of the subunit shown in fig. 5.
FIG. 7 is a schematic diagram of the two-dimensional array in step 2300.
Fig. 8a to 8b are schematic diagrams of the inclination angles of the first portion to be calculated and the second portion to be calculated.
Fig. 9 is a schematic configuration diagram of the galvanometer operating state determining device 3000 according to the present invention.
Fig. 10 is a schematic hardware configuration diagram of a device 4000 for determining the operating state of a galvanometer according to another embodiment.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
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, further discussion thereof is not required in subsequent figures.
Various embodiments and examples according to embodiments of the present invention are described below with reference to the accompanying drawings.
< hardware configuration >
Fig. 1 is a block diagram showing a hardware configuration of a client 1000 that can be used to implement an embodiment of the present invention.
As shown in fig. 1, the client 1000 of the embodiment may be a portable computer, a desktop computer, a tablet computer, or the like.
As shown in fig. 1, client 1000 may include a processor 1010, memory 1020, interface device 1030, communication device 1040, display device 1050, input device 1060, speakers 1070, microphone 1080, and the like.
The processor 1010 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1020 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1030 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1040 can perform wired or wireless communication, for example. The display device 1050 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 1060 may include, for example, a touch screen, a keyboard, and the like. A user can input/output voice information through the speaker 1070 and the microphone 1080.
In this embodiment, the memory 1020 of the client 1000 is configured to store instructions for controlling the processor 1010 to operate so as to perform at least the method for determining the operation state of the galvanometer according to any embodiment of the present invention. It should be understood by those skilled in the art that although a plurality of devices of the client 1000 are shown in fig. 1, the present invention may relate only to some of the devices, for example, the client 1000 relates only to the memory 1020, the processor 1010 and the display device 1050. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< method >
Fig. 2 is a flowchart illustrating a method for determining an operating state of a galvanometer according to an embodiment of the present invention. The method may be implemented by the client 1000.
As shown in fig. 2, the method for determining the operation state of the galvanometer in this embodiment may include steps 2100 to 2400:
at step 2100, a cell image for detecting the operating state of the galvanometer is acquired.
When the client 1000 acquires the unit image, the projected image after the vibrating mirror is vibrated may be acquired by an industrial camera, as shown in fig. 3. The client 1000 performs denoising processing on the projected image, mainly removes redundant image information through filtering, to obtain the unit image, as shown in fig. 4.
Step 2200 is to divide the unit image into a plurality of sub-unit images.
In this step, the client 1000 divides the unit image into a plurality of sub-unit images according to preset division coordinates. For example, the unit image shown in fig. 4 is divided into sub-unit images according to preset division coordinates, as shown in fig. 5a to 5 d.
Step 2300, calculating the tilt angle difference of each subunit image before and after the vibration of the galvanometer respectively.
Specifically, the client 1000 performs the following operations for each subunit image:
the client 1000 divides the subunit image into a first portion to be calculated and a second portion to be calculated; calculating a first barycentric coordinate of the first portion to be calculated, and calculating a second barycentric coordinate of the second portion to be calculated; calculating to obtain a current inclination angle according to the first barycentric coordinate and the second barycentric coordinate; and determining the inclination angle difference according to the difference value of the current inclination angle and a preset inclination angle.
When the client 1000 divides the subunit image into a first portion to be calculated and a second portion to be calculated, traversing pixel points of the subunit image in the width direction, and determining the number of rows/columns with a pixel value of 255 obtained through statistics as the number of effective rows or effective columns of the subunit image; and dividing the subunit image into the first part to be calculated and the second part to be calculated according to the number of the effective rows or the number of the effective columns.
For example, as shown in fig. 6a, the client 1000 is to divide the subunit image shown in fig. 6a into a first portion to be calculated and a second portion to be calculated. At this time, the client 1000 traverses all the pixels of the subunit image in the width direction, that is, in the direction indicated by the double-headed arrow in fig. 6a, counts the pixels with a pixel value of 255, and may, as a two-dimensional array of the number of lines and the corresponding pixel count shown in fig. 7, mark the number of lines with a pixel count greater than 0 as an active line, as indicated in fig. 7. And counting the number of all the effective lines, and determining the number of the effective lines of the subunit image.
The client 1000 calculates the number of active lines and the formula CountmidDetermining the number of lines corresponding to or between the sub-unit image to be divided, and dividing the sub-unit image into the first part to be calculated and the second part to be calculated; wherein, Σ count represents the total number of pixel points whose pixel values are 255 traversed in the width direction; n represents the number of active rows.
The client 1000 calculates the Count according to the calculated CountmidLooking up the Count from the two-dimensional array shown in FIG. 7midThe number of corresponding or intervening rows,the subunit image shown in fig. 6a is divided into a first portion to be calculated as shown in fig. 6b and a second portion to be calculated as shown in fig. 6c, according to the determined corresponding or intervening number of lines.
It can be understood that, when calculating and segmenting the subunit image shown in fig. 5b, the client 1000 traverses the pixel points of the subunit image in the width direction, and determines the number of the rows with the pixel value of 255 obtained by statistics as the effective number of the columns of the subunit image; and dividing the subunit image into the first part to be calculated and the second part to be calculated according to the effective column number. The calculation and the division can refer to the above description, and are not repeated herein.
The client 1000 divides the subunit image into the first portion to be calculated and the second portion to be calculated, and then calculates a first barycentric coordinate and a second barycentric coordinate. And according to the formula
Figure GDA0003169239360000071
Calculating to obtain the current inclination angle alpha; wherein y represents a difference between the first barycentric coordinate and the second barycentric coordinate on the vertical axis; the difference between the horizontal axes of the first barycentric coordinate and the second barycentric coordinate is represented.
As shown in FIG. 8a, the client 1000 can be based on the above formula
Figure GDA0003169239360000072
And calculating to obtain the current inclination angle alpha 1. As shown in fig. 8b, the inclination angle α 2 of the subunit image before the galvanometer vibration, i.e. the preset inclination angle in the present embodiment, is shown. The client 1000 determines the difference between α 1 and α 2 as the tilt angle difference.
And 2400, determining the working state of the galvanometer according to the inclination angle difference.
The working state of the galvanometer comprises a normal working state and an abnormal working state. In practical applications, after the inclination angle difference of each subunit image is obtained through calculation, the client 1000 sequentially determines whether the inclination angle difference corresponding to each subunit image falls within the preset inclination angle difference range. The predetermined tilt angle difference range may be, for example, 0 to 5 degrees, and is not particularly limited herein.
When each inclination angle difference is within a preset inclination angle difference range, determining that the working state of the galvanometer is a normal working state; and when at least one inclination angle difference is out of the preset inclination angle difference range, determining that the working state of the galvanometer is an abnormal working state.
According to the method for determining the working state of the galvanometer of the embodiment, the unit image used for detecting the working state of the galvanometer is acquired; and dividing the unit image into a plurality of subunit images, respectively calculating the inclination angle difference of each subunit image before and after the vibration of the galvanometer, and determining the working state of the galvanometer according to a judgment result of whether the inclination angle difference corresponding to each subunit image is within a preset inclination angle difference range. Therefore, the working state of the galvanometer can be accurately and efficiently determined.
< means >
Fig. 9 is a schematic configuration diagram of the galvanometer operating state determining device 3000 according to the present invention.
As shown in fig. 9, the mirror operating state determining device 3000 may include: an acquisition module 3100, a segmentation module 3200, a calculation module 3300, and a determination module 3400.
The acquiring module 3100 is configured to acquire a cell image for detecting a working state of the galvanometer;
a segmentation module 3200 for segmenting the unit image into a plurality of sub-unit images;
a calculating module 3300, configured to calculate a tilt angle difference of each subunit image before and after the galvanometer vibrates, respectively;
and the determining module 3400 is used for determining the working state of the galvanometer according to the inclination angle difference.
Optionally, the acquiring module 3100 may be specifically configured to acquire a projection image after the galvanometer vibrates; and denoising the projected image to obtain the unit image.
Optionally, the segmentation module 3200 is specifically configured to segment the unit image into a plurality of sub-unit images according to preset segmentation coordinates.
Optionally, the calculating module 3300 is specifically configured to, for each of the subunit images, divide the subunit image into a first portion to be calculated and a second portion to be calculated; calculating a first barycentric coordinate of the first portion to be calculated, and calculating a second barycentric coordinate of the second portion to be calculated; calculating to obtain a current inclination angle according to the first barycentric coordinate and the second barycentric coordinate; and determining the inclination angle difference according to the difference value of the current inclination angle and a preset inclination angle.
When the calculating module 3300 divides the subunit image into a first portion to be calculated and a second portion to be calculated, the calculating module may specifically traverse the pixel points of the subunit image in the width direction, and determine the number of rows/columns with the pixel value of 255 obtained by statistics as the number of valid rows or valid columns of the subunit image; and dividing the subunit image into the first part to be calculated and the second part to be calculated according to the number of the effective rows or the number of the effective columns.
Specifically, the calculating module 3300 may calculate the total according to the formula CountmidDetermining the number of rows/columns for dividing the subunit image, and dividing the subunit image into the first part to be calculated and the second part to be calculated; wherein, Σ count represents the total number of pixel points whose pixel values traversed in the width direction are 255; n denotes the number of valid rows/valid columns.
Optionally, the determining module 3400 may specifically be configured to: when each inclination angle difference is within a preset inclination angle difference range, determining that the working state of the galvanometer is a normal working state; and when at least one inclination angle difference is out of the preset inclination angle difference range, determining that the working state of the galvanometer is an abnormal working state.
The device for determining the working state of the galvanometer in this embodiment may be configured to implement the technical solutions of the above embodiments of the method, and the implementation principles and technical effects thereof are similar and will not be described herein again.
Fig. 10 is a schematic hardware configuration diagram of a device 4000 for determining the operating state of a galvanometer according to another embodiment.
As shown in fig. 10, the determination device 4000 for determining the operating state of the galvanometer according to the embodiment may include a memory 4200 and a processor 4100.
The memory 4200 is configured to store instructions for controlling the processor 4100 to operate to perform a method of determining the operational state of the galvanometer according to any embodiment of the present invention.
The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail here.
< computer storage Medium >
In this embodiment, a computer storage medium is further provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for determining the operating state of the galvanometer according to the above method embodiment.
Those skilled in the art should understand that, in the electronic technology field, the method described above can be embodied in products by software, hardware and a combination of software and hardware, and those skilled in the art can easily generate an information processing apparatus based on the method of the above embodiment of the invention, the information processing apparatus including modules for performing the respective operations in the information processing method according to the above embodiment.
It is well known to those skilled in the art that with the development of electronic information technology such as large scale integrated circuit technology and the trend of software hardware, it has been difficult to clearly divide the software and hardware boundaries of a computer system. As any of the operations may be implemented in software or hardware. Execution of any of the instructions may be performed by hardware, as well as by software. Whether a hardware implementation or a software implementation is employed for a certain machine function depends on non-technical factors such as price, speed, reliability, storage capacity, change period, and the like. A software implementation and a hardware implementation are equivalent to the skilled person. The skilled person can choose software or hardware to implement the above described scheme as desired. Therefore, specific software or hardware is not limited herein.
The present invention may be an apparatus, method, and/or computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as punch cards or in-groove raised structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
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 various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, 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. 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. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (7)

1. A method for determining an operating state of a galvanometer, the method comprising:
acquiring a unit image for detecting the working state of the galvanometer;
dividing the unit image into a plurality of sub-unit images;
respectively calculating the inclination angle difference of each subunit image before and after the vibration of the galvanometer;
determining the working state of the galvanometer according to the inclination angle difference;
wherein the step of calculating the difference of the inclination angles of each subunit image before and after the galvanometer vibration respectively comprises:
for each subunit image, dividing the subunit image into a first part to be calculated and a second part to be calculated;
calculating a first barycentric coordinate of the first portion to be calculated, and calculating a second barycentric coordinate of the second portion to be calculated;
calculating to obtain a current inclination angle according to the first barycentric coordinate and the second barycentric coordinate;
determining the difference value between the current inclination angle and a preset inclination angle as the inclination angle difference;
wherein the step of dividing the subunit image into a first part to be calculated and a second part to be calculated comprises:
traversing pixel points of the subunit images in the width direction, and determining the number of rows or columns with the pixel value of 255 obtained through statistics as the number of effective rows or effective columns of the subunit images;
dividing the subunit image into the first part to be calculated and the second part to be calculated according to the number of the effective rows or the number of the effective columns;
the step of dividing the subunit image into the first portion to be calculated and the second portion to be calculated according to the number of the effective rows or the number of the effective columns includes:
according to the formula CountmidDetermining the position of the line number or the column number for dividing the subunit image, and dividing the subunit image into the first part to be calculated and the second part to be calculated; wherein, Σ count represents the total number of pixel points whose pixel values are 255 traversed in the width direction; n represents the number of active rows or columns.
2. The method of claim 1, wherein the step of acquiring a cell image for detecting the operating state of the galvanometer comprises:
acquiring a projection image after the vibration of the galvanometer;
and denoising the projected image to obtain the unit image.
3. The method of claim 1, wherein the step of segmenting the unit image into a plurality of sub-unit images comprises:
and dividing the unit image into a plurality of sub-unit images according to preset division coordinates.
4. The method of claim 1, wherein the step of determining the operating state of the galvanometer based on the tilt angle difference comprises:
when each inclination angle difference is within a preset inclination angle difference range, determining that the working state of the galvanometer is a normal working state;
and when at least one inclination angle difference is out of the preset inclination angle difference range, determining that the working state of the galvanometer is an abnormal working state.
5. An apparatus for determining an operating condition of a galvanometer, the apparatus comprising:
the acquisition module is used for acquiring a unit image for detecting the working state of the galvanometer;
a segmentation module for segmenting the unit image into a plurality of sub-unit images;
the calculation module is used for respectively calculating the inclination angle difference of each subunit image before and after the vibration of the galvanometer;
the determining module is used for determining the working state of the galvanometer according to the inclination angle difference;
the calculation module is specifically configured to:
for each subunit image, dividing the subunit image into a first part to be calculated and a second part to be calculated;
calculating a first barycentric coordinate of the first portion to be calculated, and calculating a second barycentric coordinate of the second portion to be calculated;
calculating to obtain a current inclination angle according to the first barycentric coordinate and the second barycentric coordinate;
determining the difference value between the current inclination angle and a preset inclination angle as the inclination angle difference;
when the calculating module divides the subunit image into a first portion to be calculated and a second portion to be calculated, the calculating module is specifically configured to: traversing pixel points of the subunit image in the width direction, and determining the number of rows or columns with the pixel value of 255 obtained by statistics as the number of effective rows or effective columns of the subunit image; dividing the subunit image into the first part to be calculated and the second part to be calculated according to the number of the effective rows or the number of the effective columns;
the calculation module is specifically configured to: according to the formula CountmidDetermining the position of dividing the row number or the column number of the subunit image, and dividing the subunit image into the first part to be calculated and the second part to be calculated; wherein Σ count represents the width over whichThe total number of pixel points whose pixel values traversed in the direction are 255; n represents the number of active rows or columns.
6. An apparatus for determining an operating state of a galvanometer, the apparatus comprising: a memory for storing instructions and a processor; the instructions are used for controlling the processor to operate so as to execute the determination method of the working state of the galvanometer according to any one of claims 1 to 4.
7. A computer storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the method of determining an operational state of a galvanometer according to any one of claims 1 to 4.
CN201910694871.0A 2019-07-30 2019-07-30 Method and device for determining working state of galvanometer and computer storage medium Active CN110460827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910694871.0A CN110460827B (en) 2019-07-30 2019-07-30 Method and device for determining working state of galvanometer and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910694871.0A CN110460827B (en) 2019-07-30 2019-07-30 Method and device for determining working state of galvanometer and computer storage medium

Publications (2)

Publication Number Publication Date
CN110460827A CN110460827A (en) 2019-11-15
CN110460827B true CN110460827B (en) 2022-07-15

Family

ID=68483995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910694871.0A Active CN110460827B (en) 2019-07-30 2019-07-30 Method and device for determining working state of galvanometer and computer storage medium

Country Status (1)

Country Link
CN (1) CN110460827B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111508383B (en) * 2020-04-23 2022-03-25 歌尔光学科技有限公司 Imaging method, imaging apparatus, and computer-readable storage medium
CN111650744B (en) * 2020-08-04 2020-10-30 成都极米科技股份有限公司 Method, device and equipment for adjusting parameters of galvanometer and readable storage medium
CN112037232A (en) * 2020-08-13 2020-12-04 歌尔光学科技有限公司 Galvanometer testing method, device and computer readable storage medium
CN114764190B (en) * 2021-01-11 2024-02-09 深圳市大族数控科技股份有限公司 Automatic correction method for laser processing equipment and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770575A (en) * 2008-12-31 2010-07-07 汉王科技股份有限公司 Method and device for measuring image inclination angle of business card
CN107505808A (en) * 2017-08-28 2017-12-22 海信集团有限公司 Galvanometer method of adjustment, device and display device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4641378B2 (en) * 2004-02-16 2011-03-02 キヤノン株式会社 Optical scanning device and image display device having the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770575A (en) * 2008-12-31 2010-07-07 汉王科技股份有限公司 Method and device for measuring image inclination angle of business card
CN107505808A (en) * 2017-08-28 2017-12-22 海信集团有限公司 Galvanometer method of adjustment, device and display device

Also Published As

Publication number Publication date
CN110460827A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN110460827B (en) Method and device for determining working state of galvanometer and computer storage medium
CN108765340B (en) Blurred image processing method and device and terminal equipment
CN109215037B (en) Target image segmentation method and device and terminal equipment
US10506221B2 (en) Field of view rendering control of digital content
CN110827288B (en) Method and device for extracting target image in projector definition test
CN110796664B (en) Image processing method, device, electronic equipment and computer readable storage medium
JP7291168B2 (en) Video frame processing method and apparatus
CN112995622A (en) Projection control method, device, terminal and storage medium
CN109873980B (en) Video monitoring method and device and terminal equipment
CN111191619A (en) Method, device and equipment for detecting virtual line segment of lane line and readable storage medium
CN111524165B (en) Target tracking method and device
CN109582269B (en) Physical splicing screen display method and device and terminal equipment
CN109753974B (en) Method and device for detecting rotation angle of object and electronic equipment
CN111105440A (en) Method, device and equipment for tracking target object in video and storage medium
CN106780758B (en) imaging method and device for virtual reality equipment and virtual reality equipment
CN111951348A (en) Method and device for determining frame selection area and electronic equipment
CN109145681B (en) Method and device for judging target rotation direction
CN106325715B (en) Method and system for displaying picture and intelligent device
CN108646932B (en) Vibration detection method and device for electronic equipment and electronic equipment
CN109242763B (en) Picture processing method, picture processing device and terminal equipment
CN113902815A (en) Method and device for detecting dark bands in projected images
US9292906B1 (en) Two-dimensional image processing based on third dimension data
CN115129278A (en) Image display control method, system, readable storage medium and electronic device
CN107818585B (en) Method and device for determining finger position information of user, projector and projection system
CN113360804B (en) Interface display method, device, electronic equipment 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
TA01 Transfer of patent application right

Effective date of registration: 20201012

Address after: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Applicant after: GoerTek Optical Technology Co.,Ltd.

Address before: 261031 Dongfang Road, Weifang high tech Development Zone, Shandong, China, No. 268

Applicant before: GOERTEK Inc.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant