CN110827288B - Method and device for extracting target image in projector definition test - Google Patents

Method and device for extracting target image in projector definition test Download PDF

Info

Publication number
CN110827288B
CN110827288B CN201910950477.9A CN201910950477A CN110827288B CN 110827288 B CN110827288 B CN 110827288B CN 201910950477 A CN201910950477 A CN 201910950477A CN 110827288 B CN110827288 B CN 110827288B
Authority
CN
China
Prior art keywords
target image
acquiring
region
connecting line
positioning
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
CN201910950477.9A
Other languages
Chinese (zh)
Other versions
CN110827288A (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 CN201910950477.9A priority Critical patent/CN110827288B/en
Publication of CN110827288A publication Critical patent/CN110827288A/en
Application granted granted Critical
Publication of CN110827288B publication Critical patent/CN110827288B/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/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3191Testing thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention relates to a method and a device for extracting a target image in a projector definition test. The method comprises the following steps: acquiring a test image projected by a projector, wherein the test image is a checkerboard image with inclined squares, and acquiring angular points in the test image; equally dividing the test image into a plurality of areas, and acquiring positioning points corresponding to each area and used for determining the position of the target image according to the angular points in each area; and obtaining the target image corresponding to each region according to the positioning point corresponding to each region and the preset contour size of the target image.

Description

Method and device for extracting target image in projector definition test
Technical Field
The present invention relates to the field of projector testing technologies, and in particular, to a method for extracting a target image in a projector sharpness test, an apparatus for extracting a target image in a projector sharpness test, an electronic device, and a computer-readable storage medium.
Background
The projector has entered the life of ordinary family as the no-screen television, and with the continuous increase and development of the network speed, people continuously put forward new requirements for the definition of television pictures, 720p, 1080p, 4K, which all become new standards for selecting televisions.
For such DLP (Digital Light Processing) projectors, the definition thereof needs to be tested at the time of shipment. The DLP person definition testing method is judged through eye sight, the subjectivity is strong, the accuracy is low, the fatigue of people is easily caused, and the efficiency is low.
In order to realize the automatic test of the definition of the DLP projector, an industrial camera can be used for shooting a test image projected by the projector, a target image which can be used for analyzing the definition is extracted from the test image, and the definition of the projector is obtained based on the target image. One difficulty with this automatic test is extracting the target image for resolution analysis from the image taken by the industrial camera.
Disclosure of Invention
The invention aims to provide a new technical scheme for extracting a target image in a projector definition test.
According to a first aspect of the present invention, there is provided a method for extracting a target image in a projector sharpness test, including:
acquiring a test image projected by a projector, wherein the test image is a checkerboard image with inclined squares, and acquiring angular points in the test image;
equally dividing the test image into a plurality of regions, and acquiring positioning points corresponding to each region and used for determining the position of a target image according to the angular points in each region;
and obtaining a target image corresponding to each region according to the positioning point corresponding to each region and a preset target image outline size.
Optionally, the obtaining, according to the corner points in each of the regions, a locating point corresponding to each of the regions and used for determining a position of the target image includes:
selecting three corner points closest to the center of each region;
and acquiring positioning points for determining the position of the target image according to the three corner points selected in each region.
Optionally, the obtaining, according to the three corner points selected in each of the regions, a positioning point for determining a position of the target image includes:
acquiring a positioning connecting line for determining the position of a target image according to the inclination angle of a connecting line formed by three corner points selected in each region;
and acquiring the midpoint of the positioning connecting line as the positioning point.
Optionally, the obtaining a positioning connection line for determining the position of the target image according to an inclination angle of a connection line formed by three corner points selected in each of the regions includes:
acquiring three connecting lines formed by mutually connecting the three angular points;
acquiring an inclination angle of each connecting line relative to the horizontal direction and an inclination angle of each connecting line relative to the vertical direction;
and under the condition that the inclination angle of the connecting line relative to the horizontal direction or the inclination angle of the connecting line relative to the vertical direction is smaller than a preset threshold value, judging that the connecting line is the positioning connecting line.
Optionally, the selecting three corner points closest to the center of each of the regions includes:
acquiring a central point of each region;
and obtaining three corner points closest to the center position of the region in each region according to the distance between the corner point in each region and the center point.
Optionally, the acquiring a test image of grid staggered tilt projected by a projector includes:
shooting the test image projected by a projector through an industrial camera;
and denoising the shot test image.
Optionally, the acquiring corner points in the test image includes:
and acquiring the corner in the test image through a corner detection tool in a computer vision library OpenCV.
According to a second aspect of the present invention, there is provided an apparatus for extracting a target image in a projector sharpness test, comprising: the angular point acquisition module is used for acquiring a test image projected by a projector, wherein the test image is a checkerboard image with inclined grids, and the angular points in the test image are acquired; the positioning point acquisition module is used for equally dividing the test image into a plurality of areas and acquiring a positioning point which is corresponding to each area and is used for determining the position of the target image according to the angular point in each area; and the target image acquisition module is used for acquiring a target image corresponding to each region according to the positioning point corresponding to each region and a preset target image outline size.
According to a third aspect of the invention, there is provided an electronic device comprising the apparatus described in the second aspect of the invention; alternatively, the electronic device includes:
a memory for storing executable commands;
a processor for performing the method described in the first aspect of the invention under the control of executable commands.
According to a fourth aspect of the present invention, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method described in the first aspect of the present invention.
The method for extracting the target image in the projector definition test can quickly and accurately extract the target image, and is favorable for realizing the automation of the projector definition test.
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 block diagram of a hardware configuration that can be used to implement the extraction method of a target image in a projector definition test according to an embodiment of the present invention.
Fig. 2 is a process flow diagram of a target image extraction method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a projector projected image.
FIG. 4 is a schematic diagram of a test image according to an embodiment of the present invention.
FIG. 5 is a schematic diagram of a test image detail according to an embodiment of the invention.
Fig. 6 is a schematic diagram of a corner point acquisition result according to an embodiment of the present invention.
FIG. 7 is a diagram illustrating test image segmentation results according to an embodiment of the present invention.
Fig. 8 is a schematic diagram of a corner point selection result according to an embodiment of the present invention.
Fig. 9 is a schematic diagram of determining a positioning connection according to an embodiment of the present invention.
Fig. 10 is a schematic diagram of a target image extraction result according to an embodiment of the present invention.
Fig. 11 is a schematic diagram of a target image extraction device according to an embodiment of the present invention.
FIG. 12 is a schematic diagram of an electronic device according to an embodiment of the invention.
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 those 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.
< hardware configuration >
Fig. 1 is a block diagram of a hardware configuration of an electronic device that can be used to implement the method of extracting a target image in a projector definition test according to any of the embodiments of the present invention.
The electronic device 1000 may be a mobile phone, a laptop, a tablet computer, a palmtop computer, etc.
The electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and so forth. The processor 1100 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 1200 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 1300 includes, for example, a USB interface, a headphone interface, and the like. Communication device 1400 is capable of wired or wireless communication, for example. The display device 1500 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 1600 may include, for example, a touch screen, a keyboard, and the like. A user can input/output voice information through the speaker 1700 and the microphone 1800.
Although a plurality of devices are shown in fig. 1 for each of the electronic devices 1000, the present invention may relate to only some of the devices, for example, the electronic device 1000 may relate to only the memory 1200 and the processor 1100.
In an embodiment of the present invention, the memory 1200 of the electronic device 1000 is used for storing instructions, and the instructions are used for controlling the processor 1100 to execute the method for extracting the target image in the projector definition test provided by the embodiment of the present invention.
In the above description, the skilled person will be able to design instructions in accordance with 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 examples >
Fig. 2 is a process flow diagram of a method for extracting a target image in a projector sharpness test according to an embodiment of the present invention. The method of extracting the target image is implemented by the electronic apparatus 1000 shown in fig. 1, for example.
As shown in fig. 2, the method for extracting the target image may include the following steps S2100 to S2300.
Step S2100 obtains a test image projected by the projector, where the test image is a checkerboard image with squares inclined, and obtains corner points in the test image.
In one embodiment of the present invention, acquiring a test image projected by a projector includes: shooting a test image projected by a projector through an industrial camera; and denoising the shot test image.
Fig. 3 shows a schematic diagram of a projector projecting an image.
According to fig. 3, the projector projects an image onto the projection screen ABCD, the projection image area is A1B1C1D1, and the projector lens is parallel to the plane of the projection screen.
The industrial camera is installed in the tool jig and used for shooting a projection image projected by the projector onto the projection curtain. The optical axis of the optical component of the industrial camera is perpendicular to the plane of the projection curtain.
The electronic equipment is used for controlling the industrial camera to take a picture and acquiring a projection image collected by the industrial camera for processing.
The industrial camera is used for shooting the image projected by the projector, and the shot picture is transmitted to the electronic equipment, so that the electronic equipment obtains the image projected by the projector.
In this embodiment, the test image is a checkerboard image, and the squares in the checkerboard image have a certain inclination angle with respect to the horizontal direction or the vertical direction. Such test images are useful for obtaining accurate sharpness test results.
The test image in this embodiment is, for example, a checkerboard image as shown in fig. 4. The checkerboard image shown in fig. 4 is a black-and-white checkerboard image, in which the black squares have a certain inclination angle with respect to the horizontal direction or the numerical direction, and the inclination directions of two adjacent rows or two adjacent columns of black squares are opposite, that is, the squares in the checkerboard image are alternately inclined.
Fig. 5 shows details of the checkerboard image in the present embodiment. Wherein, A1-A7 respectively represent a black square. The squares represented by a1, A3, a5, and a7 are rotated counterclockwise by a set angle with respect to the non-tilt position, and the squares represented by a2, a4, and a6 are rotated clockwise by a set angle with respect to the non-tilt position. Adjacent squares (e.g., squares represented by a1 and a 2) coincide at the apex.
In one example, the set angle is in the range of 4 ° to 10 °, preferably 7 °.
In one example, the test image is a centrosymmetric pattern.
In one example, the pixel size of the test image is 4096 × 2160, so that the definition test requirement of the 4K projector can be satisfied.
In one example, the test image is in the form of a bitmap, which ensures that scaling of the test image does not change the related information, thereby adapting to different resolutions.
During denoising, each color channel of the test image can be filtered according to a preset threshold value so as to reduce interference. The image area can be screened according to the number of the pixel points in the connected area of the test image, so that the influence of noise points is avoided.
A corner point usually refers to an extreme point, i.e. a point where a property is particularly prominent in some respect, e.g. the intersection of two lines. The corner points in this embodiment are the vertices of squares in the checkerboard image.
In this embodiment, the corners in the image may be obtained by using image analysis methods such as corner detection based on a gray image, corner detection based on a binary image, corner detection based on a contour curve, and the like.
In an embodiment of the present invention, the corner in the test image may be obtained by a corner detection tool in the computer vision library OpenCV.
OpenCV is a BSD license (open source) based distributed cross-platform computer vision library that can run on Linux, Windows, Android, and MacOS operating systems. The method is light and efficient, is composed of a series of C functions and a small number of C + + classes, provides interfaces of languages such as Python, Ruby, MATLAB and the like, and realizes a plurality of general algorithms in the aspects of image processing and computer vision.
FindChessboardCorrers is a function of OpenCV by which corner points in a checkerboard image can be obtained.
The corner points in the test image were acquired by findchessboardcorrers and the processing results are shown in fig. 6. The open dots therein represent the corner points obtained.
Step S2200 is that the test image is equally divided into a plurality of areas, and positioning points which are corresponding to each area and used for determining the position of the target image are obtained according to the angular points in each area.
In this embodiment, the test image is equally divided into a plurality of regions, and each region corresponds to one target image.
In one example, as shown in fig. 7, the test image is uniformly divided into 16 regions by three horizontal-direction broken lines and three numerical-direction broken lines. The 16 regions correspond to 16 target images.
In an embodiment of the present invention, acquiring, according to the corner points in each region, a positioning point corresponding to each region and used for determining the position of the target image includes: selecting three corner points closest to the center of each region; and acquiring positioning points for determining the position of the target image according to the three corner points selected in each region.
In an embodiment of the present invention, selecting three corner points in each region that are closest to the center of the region includes: acquiring a central point of each area; and obtaining three corner points closest to the center position of the region in each region according to the distance between the corner point in each region and the center point.
As an example, referring to fig. 8, fig. 8 corresponds to a region (lower left corner region) in the test image shown in fig. 7. The outline of the region is a rectangle, and the center (center of gravity) of the rectangle is obtained, that is, the center of the region is obtained, as shown by point C in fig. 8.
And respectively calculating the distances from all the corner points in the region to the region center C, wherein the three points with the smallest distance are the three points closest to the region center position, as shown in P1, P2 and P3 in fig. 8.
In an embodiment of the present invention, acquiring a positioning point for determining a position of a target image according to three corner points selected in each region includes: acquiring a positioning connecting line for determining the position of a target image according to the inclination angle of a connecting line formed by three corner points selected in each region; and acquiring the midpoint of the positioning connecting line as a positioning point.
In an embodiment of the present invention, acquiring a positioning connection line for determining a position of a target image according to an inclination angle of a connection line formed by three corner points selected in each region includes: acquiring three connecting lines formed by mutually connecting three angular points; acquiring an inclination angle of each connecting line relative to the horizontal direction and an inclination angle of each connecting line relative to the vertical direction; and under the condition that the inclination angle of the connecting line relative to the horizontal direction or the inclination angle of the connecting line relative to the vertical direction is smaller than a preset threshold value, judging that the connecting line is a positioning connecting line.
As an example, referring to fig. 9, points P1, P2, P3 shown in fig. 9 correspond to the three corner points P1, P2, P3 closest to the center position of the region in fig. 8. In fig. 9, three corner points P1, P2 and P3 are connected to form three connecting lines P1P2, P1P3 and P2P 3. The dotted line in fig. 9 indicates the horizontal direction or the vertical direction. The inclination angle (angle) of each link with respect to the horizontal direction and the inclination angle (angle) of each link with respect to the vertical direction are calculated, for example, the inclination angle of the link P1P2 with respect to the vertical direction is calculated to be α 2, and the inclination angle of the link P1P3 with respect to the horizontal direction is calculated to be α 1. The inclination angle of each link is compared with a preset threshold, for example 10 °. It is easy to understand that the inclination angle α 2 of the connecting line P1P2 with respect to the vertical direction is smaller than the preset threshold, the inclination angle α 1 of the connecting line P1P3 with respect to the horizontal direction is smaller than the preset threshold, and the inclination angles of the connecting line P2P3 with respect to the horizontal direction and the vertical direction are both larger than the preset threshold, so that the connecting line P1P2 and the connecting line P1P3 can be determined as the positioning connecting line.
The midpoints of the connecting line P1P2 and the connecting line P1P3 are obtained respectively, that is, the positioning points (two in number) corresponding to the region shown in fig. 8 are obtained.
Step S2300, obtaining a target image corresponding to each region according to the positioning point corresponding to each region and the preset contour size of the target image.
In this embodiment, each region in the test image corresponds to two positioning points, and the target image corresponding to each region includes two square regions centered on the two positioning points, respectively. The outline size (e.g., the side length of the square) of the square region is the outline size of the target image.
In this embodiment, the target image contour size may be represented by a proportional relationship between the target image contour size and the checkerboard size, the target image contour size may be represented by the number of pixels of the target image contour, and the target image contour size may be represented by the geometric length of the target image contour.
Fig. 10 shows the target image corresponding to the region shown in fig. 8. O1 and O2 in FIG. 10 are two positioning points corresponding to the region, respectively, where O1 is the midpoint of the connecting line P1P2, and O2 is the midpoint of the connecting line P1P 3. Assume that the contour size of the target image is represented as w ═ 0.7 × d, where w is the side length of the square region included in the target image, and d is the checkerboard square side length.
According to the positioning points O1 and O2 and the contour size w of the target image, two square regions shown by a dashed box in fig. 10 can be obtained, and the union of the two square regions is the target image corresponding to the region shown in fig. 8.
Each region corresponds to the union of the target images, namely the target image corresponding to the whole test image.
It is easy to understand that the target image corresponding to each region, i.e. the target image corresponding to the whole test image, is obtained. And according to the target image corresponding to the whole test image, the definition of the projector can be analyzed and calculated.
The method for extracting the target image in the projector definition test can quickly and accurately extract the target image, and is favorable for realizing the automation of the projector definition test.
A specific example of the implementation of the target image acquiring method provided by the present embodiment is provided below. A checkerboard image with the squares slanted as shown in fig. 4 is projected by the projector to be measured, wherein the angle of the squares slant is 7 °. And shooting an image projected by the projector by using the industrial camera, and sending the acquired image to the electronic equipment. The electronic device performs denoising processing on the received image, and identifies the corner points in the test image through the findcessboardcorrers function, so as to obtain the processing result shown in fig. 6. Thereafter, the electronic device uniformly divides the test image into 16 regions shown in fig. 7, and performs the following processing for each region:
taking the lower left corner area as an example, as shown in fig. 8, the center C of the area is obtained. The distance from each corner point in the region to the center C is calculated, and the three corner points P1, P2 and P3 with the smallest distance are selected. And acquiring connecting lines P1P2, P2P3 and P1P3 formed by the P1, the P2 and the P3, calculating angles of the connecting lines P1P2, P2P3 and P1P3 relative to the horizontal direction and the numerical direction, and comparing the angles with a preset threshold value of 10 degrees, thereby judging that the connecting lines are positioned as P1P2 and P1P 3. And acquiring the midpoint of the P1P2 and the P1P3 as an anchor point, and combining the preset contour size of the target image, namely the side length w of the square region, to obtain two square regions shown by a dotted line in FIG. 10, wherein the union of the two square regions is used as the target image corresponding to the region.
And obtaining a target image corresponding to each region, namely obtaining a target image corresponding to the complete test image.
< apparatus embodiment >
The present embodiment provides an apparatus for extracting a target image in a projector sharpness test, which is, for example, the target image extracting apparatus 110 shown in fig. 11. Referring to fig. 11, the target image extraction device 110 includes: a corner point acquisition module 111, an anchor point acquisition module 112 and a target image acquisition module 113.
The angular point obtaining module 111 is configured to obtain a test image projected by the projector, where the test image is a checkerboard image with squares inclined, and obtain angular points in the test image.
The positioning point obtaining module 112 is configured to equally divide the test image into a plurality of regions, and obtain a positioning point corresponding to each region and used for determining the position of the target image according to the corner point in each region.
The target image obtaining module 113 is configured to obtain a target image corresponding to each region according to a positioning point corresponding to each region and a preset target image contour size.
In an embodiment of the present invention, when the anchor point obtaining module 112 obtains an anchor point corresponding to each region and used for determining the position of the target image according to the corner point in each region, the anchor point obtaining module is further configured to: selecting three corner points closest to the center of each region; and acquiring positioning points for determining the position of the target image according to the three corner points selected in each region.
In an embodiment of the present invention, when the anchor point obtaining module 112 obtains an anchor point for determining the position of the target image according to three corner points selected in each region, the anchor point obtaining module is further configured to: acquiring a positioning connecting line for determining the position of a target image according to the inclination angle of a connecting line formed by three corner points selected in each region; and acquiring the midpoint of the positioning connecting line as a positioning point.
In an embodiment of the present invention, the positioning point obtaining module 112 is further configured to, when obtaining a positioning connection line for determining the position of the target image according to an inclination angle of a connection line formed by three corner points selected in each region: acquiring three connecting lines formed by mutually connecting three angular points; acquiring an inclination angle of each connecting line relative to the horizontal direction and an inclination angle of each connecting line relative to the vertical direction; and under the condition that the inclination angle of the connecting line relative to the horizontal direction or the inclination angle of the connecting line relative to the vertical direction is smaller than a preset threshold value, judging that the connecting line is a positioning connecting line.
The anchor point obtaining module 112 is further configured to, when selecting three corner points in each region that are closest to the center of the region: acquiring a central point of each area; and obtaining three corner points closest to the center position of the region in each region according to the distance between the corner point in each region and the center point.
In an embodiment of the present invention, the corner point obtaining module 111, when obtaining the test image of grid staggered tilt projected by the projector, is further configured to: shooting a test image projected by a projector through an industrial camera; and denoising the shot test image.
In an embodiment of the present invention, the corner point obtaining module 111, when obtaining the corner points in the test image, is further configured to: and acquiring the corner in the test image through a corner detection tool in the computer vision library OpenCV.
< electronic device embodiment >
The present embodiment provides an electronic device including the target image extraction apparatus described in the apparatus embodiment of the present invention. Alternatively, the electronic device is, for example, the electronic device 120 shown in fig. 12.
Referring to fig. 12, the electronic device 120 includes a memory 121 and a processor 122.
The memory 121 is used to store executable commands.
Processor 122 is configured to execute the methods described in the method embodiments of the present invention under the control of executable commands.
< computer-readable storage Medium >
In this embodiment, there is also provided a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the method of extracting a target image described in the method embodiment of the present invention.
The present invention may be a system, 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 memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a 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 coding device, such as punch cards or in-groove projection 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 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 code 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, implementation by software, and implementation 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 extracting a target image in a projector definition test comprises the following steps:
acquiring a test image projected by a projector, wherein the test image is a checkerboard image with inclined squares, and acquiring angular points in the test image;
equally dividing the test image into a plurality of regions, and acquiring positioning points corresponding to each region and used for determining the position of a target image according to the angular points in each region;
obtaining a target image corresponding to each region according to the positioning point corresponding to each region and a preset target image outline size,
wherein, the obtaining of the positioning point corresponding to each region and used for determining the position of the target image according to the corner points in each region comprises:
selecting three corner points closest to the center of each region;
acquiring positioning points for determining the position of the target image according to the three corner points selected in each region,
wherein, the acquiring a positioning point for determining the position of the target image according to the three corner points selected in each region comprises:
acquiring a positioning connecting line for determining the position of a target image according to the inclination angle of a connecting line formed by three corner points selected in each region;
acquiring the midpoint of the positioning connecting line as the positioning point,
wherein, the obtaining of the positioning connecting line for determining the position of the target image according to the inclination angle of the connecting line formed by the three corner points selected in each region comprises:
acquiring three connecting lines formed by mutually connecting the three angular points;
acquiring an inclination angle of each connecting line relative to the horizontal direction and an inclination angle of each connecting line relative to the vertical direction;
and under the condition that the inclination angle of the connecting line relative to the horizontal direction or the inclination angle of the connecting line relative to the vertical direction is smaller than a preset threshold value, judging that the connecting line is the positioning connecting line.
2. The method according to claim 1, wherein said selecting three corner points in each of said regions closest to the center of said region comprises:
acquiring a central point of each region;
and obtaining three corner points closest to the center position of the region in each region according to the distance between the corner point in each region and the center point.
3. The method of claim 1, wherein the acquiring of the test image projected by the projector with grid staggered tilt comprises:
shooting the test image projected by a projector through an industrial camera;
and denoising the shot test image.
4. The method of claim 1, wherein said acquiring corner points in said test image comprises:
and acquiring the corner in the test image through a corner detection tool in a computer vision library OpenCV.
5. An extraction device of a target image in a projector definition test comprises:
the angular point acquisition module is used for acquiring a test image projected by a projector, wherein the test image is a checkerboard image with inclined grids, and the angular points in the test image are acquired;
the positioning point acquisition module is used for equally dividing the test image into a plurality of areas and acquiring a positioning point which corresponds to each area and is used for determining the position of the target image according to the angular point in each area;
a target image obtaining module for obtaining a target image corresponding to each of the regions according to the positioning point corresponding to each of the regions and a preset contour size of the target image,
the anchor point obtaining module is further configured to, when obtaining an anchor point corresponding to each of the regions and used for determining a position of a target image according to the corner point in each of the regions:
selecting three corner points closest to the center of each region;
acquiring positioning points for determining the position of the target image according to the three corner points selected in each region,
the positioning point obtaining module is further configured to, when obtaining a positioning point for determining a position of a target image according to the three corner points selected in each of the regions:
acquiring a positioning connecting line for determining the position of a target image according to the inclination angle of a connecting line formed by three corner points selected in each region;
acquiring the midpoint of the positioning connecting line as the positioning point,
the positioning point obtaining module is further configured to, when obtaining a positioning connection line for determining a position of the target image according to an inclination angle of a connection line formed by three corner points selected in each of the regions:
acquiring three connecting lines formed by mutually connecting the three angular points;
acquiring an inclination angle of each connecting line relative to the horizontal direction and an inclination angle of each connecting line relative to the vertical direction;
and under the condition that the inclination angle of the connecting line relative to the horizontal direction or the inclination angle of the connecting line relative to the vertical direction is smaller than a preset threshold value, judging that the connecting line is the positioning connecting line.
6. An electronic device comprising the apparatus of claim 5; alternatively, the electronic device includes:
a memory for storing executable commands;
a processor for performing the method of any one of claims 1-4 under the control of executable commands.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201910950477.9A 2019-10-08 2019-10-08 Method and device for extracting target image in projector definition test Active CN110827288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910950477.9A CN110827288B (en) 2019-10-08 2019-10-08 Method and device for extracting target image in projector definition test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910950477.9A CN110827288B (en) 2019-10-08 2019-10-08 Method and device for extracting target image in projector definition test

Publications (2)

Publication Number Publication Date
CN110827288A CN110827288A (en) 2020-02-21
CN110827288B true CN110827288B (en) 2022-08-12

Family

ID=69548680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910950477.9A Active CN110827288B (en) 2019-10-08 2019-10-08 Method and device for extracting target image in projector definition test

Country Status (1)

Country Link
CN (1) CN110827288B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449165B (en) * 2020-11-10 2023-03-31 维沃移动通信有限公司 Projection method and device and electronic equipment
CN113284121B (en) * 2021-05-31 2022-11-22 歌尔光学科技有限公司 Method and device for detecting dark bands in projected image
CN115706784B (en) * 2021-08-03 2024-02-06 宜宾市极米光电有限公司 Measuring method and related device for projection image quality noise point of projector
CN113790874B (en) * 2021-08-27 2024-08-13 歌尔光学科技有限公司 Lens testing system
CN114066917B (en) * 2021-11-11 2022-08-05 深圳市云鼠科技开发有限公司 Cleaning method, cleaning device, electronic equipment and storage medium
CN114137750B (en) * 2021-12-08 2024-05-10 武汉中海庭数据技术有限公司 Method and device for detecting and positioning screen ghost

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994005026A1 (en) * 1992-08-21 1994-03-03 University Of Southampton Imaging system
US20020041364A1 (en) * 2000-10-05 2002-04-11 Ken Ioka Image projection and display device
CN104299218A (en) * 2013-07-17 2015-01-21 南京邮电大学 Projector calibration method based on lens distortion rule
CN105093789A (en) * 2015-07-03 2015-11-25 中兴通讯股份有限公司 Method and device for realizing trapezoidal distortion correction of projection surface and projector
CN108074237A (en) * 2017-12-28 2018-05-25 广东欧珀移动通信有限公司 Approach for detecting image sharpness, device, storage medium and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103075999B (en) * 2013-01-23 2014-12-24 四川电力科学研究院 Real-time multi-target position detection method and system based on image
CN105547153B (en) * 2016-01-19 2019-01-04 东莞市德速达精密设备有限公司 Plug-in element stitch vision positioning method and device based on binocular vision
CN106485275B (en) * 2016-10-10 2019-05-31 厦门理工学院 A method of realizing that cover-plate glass is bonded with liquid crystal display positioning
CN110087046B (en) * 2019-03-11 2021-08-31 歌尔股份有限公司 Projector definition detection method, device, system and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994005026A1 (en) * 1992-08-21 1994-03-03 University Of Southampton Imaging system
US20020041364A1 (en) * 2000-10-05 2002-04-11 Ken Ioka Image projection and display device
CN104299218A (en) * 2013-07-17 2015-01-21 南京邮电大学 Projector calibration method based on lens distortion rule
CN105093789A (en) * 2015-07-03 2015-11-25 中兴通讯股份有限公司 Method and device for realizing trapezoidal distortion correction of projection surface and projector
CN108074237A (en) * 2017-12-28 2018-05-25 广东欧珀移动通信有限公司 Approach for detecting image sharpness, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110827288A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN110827288B (en) Method and device for extracting target image in projector definition test
JP7564962B2 (en) IMAGE PROCESSING METHOD, IMAGE PROCESSING APPARATUS AND NON-TRANSITORY STORAGE MEDIUM
CN110717920B (en) Method and device for extracting target image of projector galvanometer test and electronic equipment
US10187546B2 (en) Method and device for correcting document image captured by image pick-up device
US8891905B2 (en) Boundary-based high resolution depth mapping
CN113489961B (en) Projection correction method, projection correction device, storage medium and projection equipment
US20150204662A1 (en) Three-dimensional-shape measurement apparatus, three-dimensional-shape measurement method, and non-transitory computer-readable storage medium
CN112272292B (en) Projection correction method, apparatus and storage medium
CN110460827B (en) Method and device for determining working state of galvanometer and computer storage medium
CN111242908A (en) Plane detection method and device and plane tracking method and device
CN111126108A (en) Training method and device of image detection model and image detection method and device
US20160259418A1 (en) Display interaction detection
US20180124378A1 (en) Enhanced depth map images for mobile devices
CN111340960B (en) Image modeling method and device, storage medium and electronic equipment
JP2014197243A (en) Pattern processor, pattern processing method and pattern processing program
US9196051B2 (en) Electronic equipment with image analysis function and related method
JP2019527355A (en) Computer system and method for improved gloss rendering in digital images
CN112580516A (en) Road scene recognition method, device, equipment and storage medium
CN116912331A (en) Calibration data generation method and device, electronic equipment and storage medium
CN112261394A (en) Method, device and system for measuring deflection rate of galvanometer and computer storage medium
CN110827289B (en) Method and device for extracting target image in projector definition test
CN107818584B (en) Method and device for determining finger position information of user, projector and projection system
CN107862679B (en) Method and device for determining image detection area
CN115511870A (en) Object detection method and device, electronic equipment and storage medium
CN113902815A (en) Method and device for detecting dark bands in projected images

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
TA01 Transfer of patent application right

Effective date of registration: 20201014

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.

GR01 Patent grant
GR01 Patent grant