CN111242116A - Screen positioning method and device - Google Patents
Screen positioning method and device Download PDFInfo
- Publication number
- CN111242116A CN111242116A CN202010072259.2A CN202010072259A CN111242116A CN 111242116 A CN111242116 A CN 111242116A CN 202010072259 A CN202010072259 A CN 202010072259A CN 111242116 A CN111242116 A CN 111242116A
- Authority
- CN
- China
- Prior art keywords
- screen
- pixel
- picture
- white background
- boundary
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/22—Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Image Analysis (AREA)
Abstract
The invention aims to provide a screen positioning method and a screen positioning device. In addition, the gray picture gray is segmented by specifying a preset pixel threshold T1; calculating the number of pixel points in the continuous region of each pixel point, and screening the continuous region of each pixel point; calculating the area of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point, and calculating the plumpness s of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point; and taking the continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen, thereby accurately and reliably identifying the screen positions of various terminals.
Description
Technical Field
The invention relates to the field of computers, in particular to a screen positioning method and device.
Background
The existing positioning mode of screen positions of terminals such as mobile phones has the problems of complex positioning process and low positioning accuracy.
Disclosure of Invention
The invention aims to provide a screen positioning method and a screen positioning device.
According to an aspect of the present invention, there is provided a screen positioning method, including:
displaying the bright screen of the screen as a white background picture;
taking a picture of a screen including the white background picture;
and recognizing the boundary of the white background picture from the photo, and taking the boundary as the position of the outline of the screen.
Further, in the above method, recognizing a boundary of the white background picture from the photo, and using the boundary as a position of the outline of the screen includes:
converting the picture into a gray picture;
appointing a preset pixel threshold T1 to segment the gray-scale picture, wherein the pixel value of the pixel point exceeding the preset pixel threshold T1 in the picture is set to 255, and the pixel value of the pixel point not exceeding the preset pixel threshold T1 in the picture is set to 0;
acquiring a continuous region of each pixel point with a pixel value of 255 in the gray-scale picture;
calculating the number of pixel points in each continuous region of the pixel points, and screening the continuous regions of the pixel points, wherein the continuous regions of the pixel points with the number of the pixel points smaller than a preset number threshold value T2 are abandoned, and the continuous regions of the pixel points with the number of the pixel points larger than or equal to a preset number threshold value T2 are reserved;
calculating the area of the minimum external rotation rectangle of the continuous region of each reserved pixel point, and calculating the fullness s of the minimum external rotation rectangle of the continuous region of each reserved pixel point, wherein the fullness s is the number of pixel points in the continuous region of a certain reserved pixel point/the area of the minimum external rotation rectangle of the continuous region of the reserved pixel point;
and taking a continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen.
Further, in the method, displaying the screen bright screen as a white background picture includes:
and the middle area of the white background picture is superposed with the image to be identified.
Further, in the above method, after recognizing the boundary of the white background picture from the photo, the method further includes:
acquiring an image to be identified in a range surrounded by the boundary of the white background picture;
and identifying the image to be identified to obtain the attribute information of the terminal equipment with the screen.
Further, in the above method, the image to be recognized includes a two-dimensional code or a barcode.
According to another aspect of the present invention, there is also provided a screen positioning apparatus, wherein the apparatus comprises:
the display module is used for displaying the bright screen of the screen as a white background picture;
a shooting module for shooting a picture of a screen including the white background picture;
and the recognition module is used for recognizing the boundary of the white background picture from the photo and taking the boundary as the position of the outline of the screen.
Further, in the above apparatus, the recognition module is configured to convert the photo into a grayscale picture; appointing a preset pixel threshold T1 to segment the gray-scale picture, wherein the pixel value of the pixel point exceeding the preset pixel threshold T1 in the picture is set to 255, and the pixel value of the pixel point not exceeding the preset pixel threshold T1 in the picture is set to 0; acquiring a continuous region of each pixel point with a pixel value of 255 in the gray-scale picture; calculating the number of pixel points in each continuous region of the pixel points, and screening the continuous regions of the pixel points, wherein the continuous regions of the pixel points with the number of the pixel points smaller than a preset number threshold value T2 are abandoned, and the continuous regions of the pixel points with the number of the pixel points larger than or equal to a preset number threshold value T2 are reserved; calculating the area of the minimum external rotation rectangle of the continuous region of each reserved pixel point, and calculating the fullness s of the minimum external rotation rectangle of the continuous region of each reserved pixel point, wherein the fullness s is the number of pixel points in the continuous region of a certain reserved pixel point/the area of the minimum external rotation rectangle of the continuous region of the reserved pixel point; and taking a continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen.
Further, in the above apparatus, the display module is configured to display the image to be recognized in a middle area of the white background picture in an overlapping manner.
Further, in the above apparatus, the identification module is further configured to obtain an image to be identified within a range surrounded by a boundary of the white background picture; and identifying the image to be identified to obtain the attribute information of the terminal equipment with the screen.
Further, in the above apparatus, the image to be recognized includes a two-dimensional code or a barcode.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
displaying the bright screen of the screen as a white background picture;
taking a picture of a screen including the white background picture;
and recognizing the boundary of the white background picture from the photo, and taking the boundary as the position of the outline of the screen.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
displaying the bright screen of the screen as a white background picture;
taking a picture of a screen including the white background picture;
and recognizing the boundary of the white background picture from the photo, and taking the boundary as the position of the outline of the screen.
Compared with the prior art, the method and the device have the advantages that the screen bright screen is displayed as the white background picture, and the screen position of the device can be simply and accurately positioned based on the boundary of the white background picture. In addition, the gray picture gray is segmented by specifying a preset pixel threshold T1; calculating the number of pixel points in the continuous region of each pixel point, and screening the continuous region of each pixel point; calculating the area of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point, and calculating the plumpness s of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point; and taking the continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen, thereby accurately and reliably identifying the screen positions of various terminals.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 shows a flow chart of a screen positioning method according to an embodiment of the invention.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As shown in fig. 1, the present invention provides a screen positioning method, including:
step S1, displaying the screen bright screen as a white background picture;
here, the screen may be a terminal device with a display screen, such as a mobile phone or a PAD;
step S2, taking a picture of a screen including the white background picture;
when the screen is shot, the irrelevant area outside the screen area is shot at the same time, and the screen area needs to be identified subsequently;
step S3, recognizing the boundary of the white background picture from the photo, and using the boundary as the position of the outline of the screen.
In the invention, the screen bright screen is displayed as the white background picture, and the screen position of the equipment can be simply and accurately positioned based on the boundary of the white background picture.
In an embodiment of the screen positioning method of the present invention, in step S3, recognizing a boundary of the white background picture from the photo, and using the boundary as a position of an outline of the screen includes:
step S31, converting the photo src into a gray level image gray;
step S32, designating a preset pixel threshold T1 to segment the gray level picture gray, wherein the pixel value of the pixel point exceeding the preset pixel threshold T1 in the photo src is set to 255, and the pixel value of the pixel point not exceeding the preset pixel threshold T1 in the photo src is set to 0;
step S33, acquiring a continuous region of each pixel point with a pixel value of 255 in the gray picture gray;
here, a certain pixel point is in 8 neighborhoods of another pixel point, the two pixel points can be considered to be continuous, and 2 or more than 2 continuous pixel points can form a region with continuous pixel points;
black pixel points with the pixel value of 0, white pixel points with the pixel value of 255, and the connection region of the pixel points with the pixel value of 0 is not considered and is regarded as a background outside the screen region;
step S34, calculating the number of pixel points in each continuous region of the pixel points, and screening the continuous regions of the pixel points, wherein the continuous regions of the pixel points with the number of the pixel points smaller than a preset number threshold T2 are abandoned, and the continuous regions of the pixel points with the number of the pixel points larger than or equal to a preset number threshold T2 are reserved;
step S35, calculating the area of the minimum circumscribed rectangle of the region where each of the retained pixels are continuous, and calculating the fullness S of the minimum circumscribed rectangle of the region where each of the retained pixels are continuous, where the fullness S is the number of pixels in the region where a certain retained pixel is continuous/the area of the minimum circumscribed rectangle of the region where the retained pixel is continuous;
and step S36, taking a continuous area of the reserved pixels with the saturation S larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen.
Here, the area where each of the reserved pixels is continuous may be traversed, the area of the minimum circumscribed rectangle is divided by the number of pixels in the area where each of the reserved pixels is continuous, and the saturation s of the area is obtained, where a certain reserved pixel is continuous, and if the value of the saturation s of the area is greater than a preset saturation threshold T3, the area is a screen area, and if the value of the saturation s is less than the preset saturation threshold T3, the area is a non-screen area.
The implementation divides the gray level image gray by specifying a preset pixel threshold value T1; calculating the number of pixel points in the continuous region of each pixel point, and screening the continuous region of each pixel point; calculating the area of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point, and calculating the plumpness s of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point; and taking the continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen, thereby accurately and reliably identifying the screen positions of various terminals.
In an embodiment of the screen positioning method of the present invention, in step S1, displaying the bright screen of the screen as a white background picture includes:
and the middle area of the white background picture is superposed with the image to be identified.
Here, the image to be recognized may be a two-dimensional code, a bar code or the like,
the image to be recognized is displayed in a non-boundary area of the screen in the middle of the white background picture in an overlapping mode, so that after the position of the screen is recognized automatically, the image to be recognized in the middle of the screen can be acquired, and information contained in the image to be recognized is further acquired efficiently and accurately.
The information included in the image to be recognized includes attribute information of the terminal device with the screen, such as information of a memory and a model of the terminal device.
In an embodiment of the screen positioning method of the present invention, in step S3, after recognizing the boundary of the white background picture from the photo, the method further includes:
acquiring an image to be identified in a range surrounded by the boundary of the white background picture;
and identifying the image to be identified to obtain the attribute information of the terminal equipment with the screen.
The image to be recognized is superposed and displayed in the non-boundary area of the screen in the middle of the white background picture, so that the image to be recognized in the middle of the screen can be acquired after the position of the screen is automatically recognized, and the information contained in the image to be recognized is further efficiently and accurately acquired.
The invention provides a screen positioning device, comprising:
the display module is used for displaying the bright screen of the screen as a white background picture;
here, the screen may be a terminal device with a display screen, such as a mobile phone or a PAD;
a shooting module for shooting a picture of a screen including the white background picture;
when the screen is shot, the irrelevant area outside the screen area is shot at the same time, and the screen area needs to be identified subsequently;
and the recognition module is used for recognizing the boundary of the white background picture from the photo and taking the boundary as the position of the outline of the screen.
In the invention, the screen bright screen is displayed as the white background picture, and the screen position of the equipment can be simply and accurately positioned based on the boundary of the white background picture.
In an embodiment of the screen positioning device of the present invention, the identification module is configured to convert the photo src into a gray image gray; a preset pixel threshold T1 is designated to segment the gray level picture gray, wherein the pixel value of the pixel point exceeding the preset pixel threshold T1 in the picture src is set to 255, and the pixel value of the pixel point not exceeding the preset pixel threshold T1 in the picture src is set to 0; acquiring a continuous region of each pixel point with a pixel value of 255 in the gray level picture gray; calculating the number of pixel points in each continuous region of the pixel points, and screening the continuous regions of the pixel points, wherein the continuous regions of the pixel points with the number of the pixel points smaller than a preset number threshold value T2 are abandoned, and the continuous regions of the pixel points with the number of the pixel points larger than or equal to a preset number threshold value T2 are reserved; calculating the area of the minimum external rotation rectangle of the continuous region of each reserved pixel point, and calculating the fullness s of the minimum external rotation rectangle of the continuous region of each reserved pixel point, wherein the fullness s is the number of pixel points in the continuous region of a certain reserved pixel point/the area of the minimum external rotation rectangle of the continuous region of the reserved pixel point; and taking a continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen.
Here, a certain pixel point is in 8 neighborhoods of another pixel point, the two pixel points can be considered to be continuous, and 2 or more than 2 continuous pixel points can form a region with continuous pixel points;
black pixel points with the pixel value of 0, white pixel points with the pixel value of 255, and the connection region of the pixel points with the pixel value of 0 is not considered and is regarded as a background outside the screen region;
the area of each reserved pixel point continuity can be traversed, the pixel point number of the area of each reserved pixel point continuity is divided by the area of the minimum external rotation rectangle to obtain the fullness s of the area, if the fullness s value of a certain reserved pixel point continuity area is larger than a preset fullness threshold T3, the area is a screen area, and if the fullness s value is smaller than the preset fullness threshold T3, the area is a non-screen area.
The implementation divides the gray level image gray by appointing a preset pixel threshold value T; calculating the number of pixel points in the continuous region of each pixel point, and screening the continuous region of each pixel point; calculating the area of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point, and calculating the plumpness s of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point; and taking the continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen, thereby accurately and reliably identifying the screen positions of various terminals.
In an embodiment of the screen positioning device of the present invention, the display module is configured to display the image to be recognized in a middle area of the white background picture in an overlapping manner.
Here, the image to be recognized may be a two-dimensional code, a bar code or the like,
the image to be recognized is displayed in a non-boundary area of the screen in the middle of the white background picture in an overlapping mode, so that after the position of the screen is recognized automatically, the image to be recognized in the middle of the screen can be acquired, and information contained in the image to be recognized is further acquired efficiently and accurately.
The information included in the image to be recognized includes attribute information of the terminal device with the screen, such as information of a memory and a model of the terminal device.
In an embodiment of the screen positioning device of the present invention, the identification module is further configured to obtain an image to be identified within a range surrounded by a boundary of the white background picture; and identifying the image to be identified to obtain the attribute information of the terminal equipment with the screen.
The image to be recognized is superposed and displayed in the non-boundary area of the screen in the middle of the white background picture, so that the image to be recognized in the middle of the screen can be acquired after the position of the screen is automatically recognized, and the information contained in the image to be recognized is further efficiently and accurately acquired.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
displaying the bright screen of the screen as a white background picture;
taking a picture of a screen including the white background picture;
and recognizing the boundary of the white background picture from the photo, and taking the boundary as the position of the outline of the screen.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
displaying the bright screen of the screen as a white background picture;
taking a picture of a screen including the white background picture;
and recognizing the boundary of the white background picture from the photo, and taking the boundary as the position of the outline of the screen.
For details of embodiments of each device and storage medium of the present invention, reference may be made to corresponding parts of each method embodiment, and details are not described herein again.
Compared with the prior art, the method and the device have the advantages that the screen bright screen is displayed as the white background picture, and the screen position of the device can be simply and accurately positioned based on the boundary of the white background picture. In addition, the gray picture gray is segmented by specifying a preset pixel threshold T1; calculating the number of pixel points in the continuous region of each pixel point, and screening the continuous region of each pixel point; calculating the area of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point, and calculating the plumpness s of the minimum circumscribed rotating rectangle of the continuous region of each reserved pixel point; and taking the continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen, thereby accurately and reliably identifying the screen positions of various terminals.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present invention may be implemented in software and/or in a combination of software and hardware, for example, as an Application Specific Integrated Circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention may be executed by a processor to implement the steps or functions described above. Also, the software programs (including associated data structures) of the present invention can be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Further, some of the steps or functions of the present invention may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present invention can be applied as a computer program product, such as computer program instructions, which when executed by a computer, can invoke or provide the method and/or technical solution according to the present invention through the operation of the computer. Program instructions which invoke the methods of the present invention may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the invention herein comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or solution according to embodiments of the invention as described above.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Claims (12)
1. A method of screen positioning, wherein the method comprises:
displaying the bright screen of the screen as a white background picture;
taking a picture of a screen including the white background picture;
and recognizing the boundary of the white background picture from the photo, and taking the boundary as the position of the outline of the screen.
2. The method of claim 1, wherein identifying a boundary of the white background picture from the photograph, the boundary being a location of an outline of the screen, comprises:
converting the picture into a gray picture;
appointing a preset pixel threshold T1 to segment the gray-scale picture, wherein the pixel value of the pixel point exceeding the preset pixel threshold T1 in the picture is set to 255, and the pixel value of the pixel point not exceeding the preset pixel threshold T1 in the picture is set to 0;
acquiring a continuous region of each pixel point with a pixel value of 255 in the gray-scale picture;
calculating the number of pixel points in each continuous region of the pixel points, and screening the continuous regions of the pixel points, wherein the continuous regions of the pixel points with the number of the pixel points smaller than a preset number threshold value T2 are abandoned, and the continuous regions of the pixel points with the number of the pixel points larger than or equal to a preset number threshold value T2 are reserved;
calculating the area of the minimum external rotation rectangle of the continuous region of each reserved pixel point, and calculating the fullness s of the minimum external rotation rectangle of the continuous region of each reserved pixel point, wherein the fullness s is the number of pixel points in the continuous region of a certain reserved pixel point/the area of the minimum external rotation rectangle of the continuous region of the reserved pixel point;
and taking a continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen.
3. The method of claim 1, wherein displaying the screen highlight as a white background picture comprises:
and the middle area of the white background picture is superposed with the image to be identified.
4. The method of claim 3, wherein after identifying the boundary of the white background picture from the photograph, further comprising:
acquiring an image to be identified in a range surrounded by the boundary of the white background picture;
and identifying the image to be identified to obtain the attribute information of the terminal equipment with the screen.
5. The method of claim 3 or 4, wherein the image to be identified comprises a two-dimensional code or a barcode.
6. A screen positioning device, wherein the device comprises:
the display module is used for displaying the bright screen of the screen as a white background picture;
a shooting module for shooting a picture of a screen including the white background picture;
and the recognition module is used for recognizing the boundary of the white background picture from the photo and taking the boundary as the position of the outline of the screen.
7. The apparatus of claim 6, wherein the recognition module is configured to convert the photograph into a grayscale picture; appointing a preset pixel threshold T1 to segment the gray-scale picture, wherein the pixel value of the pixel point exceeding the preset pixel threshold T1 in the picture is set to 255, and the pixel value of the pixel point not exceeding the preset pixel threshold T1 in the picture is set to 0; acquiring a continuous region of each pixel point with a pixel value of 255 in the gray-scale picture; calculating the number of pixel points in each continuous region of the pixel points, and screening the continuous regions of the pixel points, wherein the continuous regions of the pixel points with the number of the pixel points smaller than a preset number threshold value T2 are abandoned, and the continuous regions of the pixel points with the number of the pixel points larger than or equal to a preset number threshold value T2 are reserved; calculating the area of the minimum external rotation rectangle of the continuous region of each reserved pixel point, and calculating the fullness s of the minimum external rotation rectangle of the continuous region of each reserved pixel point, wherein the fullness s is the number of pixel points in the continuous region of a certain reserved pixel point/the area of the minimum external rotation rectangle of the continuous region of the reserved pixel point; and taking a continuous area of the reserved pixel points with the saturation s larger than a preset saturation threshold T3 as the boundary of the white background picture, and taking the boundary as the position of the outline of the screen.
8. The apparatus of claim 6, wherein the display module is configured to display the image to be recognized in a middle area of the white background picture in an overlapping manner.
9. The apparatus according to claim 8, wherein the identifying module is further configured to acquire an image to be identified within a range surrounded by a boundary of the white background picture; and identifying the image to be identified to obtain the attribute information of the terminal equipment with the screen.
10. The apparatus of claim 8 or 9, wherein the image to be identified comprises a two-dimensional code or a barcode.
11. A computing-based device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
displaying the bright screen of the screen as a white background picture;
taking a picture of a screen including the white background picture;
and recognizing the boundary of the white background picture from the photo, and taking the boundary as the position of the outline of the screen.
12. A computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
displaying the bright screen of the screen as a white background picture;
taking a picture of a screen including the white background picture;
and recognizing the boundary of the white background picture from the photo, and taking the boundary as the position of the outline of the screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010072259.2A CN111242116B (en) | 2020-01-21 | 2020-01-21 | Screen positioning method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010072259.2A CN111242116B (en) | 2020-01-21 | 2020-01-21 | Screen positioning method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111242116A true CN111242116A (en) | 2020-06-05 |
CN111242116B CN111242116B (en) | 2022-11-08 |
Family
ID=70865135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010072259.2A Active CN111242116B (en) | 2020-01-21 | 2020-01-21 | Screen positioning method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111242116B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11798250B2 (en) | 2019-02-18 | 2023-10-24 | Ecoatm, Llc | Neural network based physical condition evaluation of electronic devices, and associated systems and methods |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236784A (en) * | 2010-05-07 | 2011-11-09 | 株式会社理光 | Screen area detection method and system |
CN105138939A (en) * | 2015-07-31 | 2015-12-09 | 海信集团有限公司 | Method, apparatus and system for displaying two-dimensional code |
CN105303189A (en) * | 2014-07-29 | 2016-02-03 | 阿里巴巴集团控股有限公司 | Method and device for detecting specific identification image in predetermined area |
CN106228541A (en) * | 2016-07-11 | 2016-12-14 | 广州视源电子科技股份有限公司 | Screen positioning method and device in visual inspection |
CN106780521A (en) * | 2016-12-08 | 2017-05-31 | 广州视源电子科技股份有限公司 | Screen light leakage detection method, system and device |
CN109741324A (en) * | 2019-01-10 | 2019-05-10 | 惠科股份有限公司 | Detection method, detection device and terminal equipment |
CN110211182A (en) * | 2019-05-31 | 2019-09-06 | 东北大学 | A kind of LCD backlight vision positioning method based on Gray-scale Matching and objective contour |
-
2020
- 2020-01-21 CN CN202010072259.2A patent/CN111242116B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236784A (en) * | 2010-05-07 | 2011-11-09 | 株式会社理光 | Screen area detection method and system |
CN105303189A (en) * | 2014-07-29 | 2016-02-03 | 阿里巴巴集团控股有限公司 | Method and device for detecting specific identification image in predetermined area |
CN105138939A (en) * | 2015-07-31 | 2015-12-09 | 海信集团有限公司 | Method, apparatus and system for displaying two-dimensional code |
CN106228541A (en) * | 2016-07-11 | 2016-12-14 | 广州视源电子科技股份有限公司 | Screen positioning method and device in visual inspection |
CN106780521A (en) * | 2016-12-08 | 2017-05-31 | 广州视源电子科技股份有限公司 | Screen light leakage detection method, system and device |
CN109741324A (en) * | 2019-01-10 | 2019-05-10 | 惠科股份有限公司 | Detection method, detection device and terminal equipment |
CN110211182A (en) * | 2019-05-31 | 2019-09-06 | 东北大学 | A kind of LCD backlight vision positioning method based on Gray-scale Matching and objective contour |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11798250B2 (en) | 2019-02-18 | 2023-10-24 | Ecoatm, Llc | Neural network based physical condition evaluation of electronic devices, and associated systems and methods |
Also Published As
Publication number | Publication date |
---|---|
CN111242116B (en) | 2022-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111292302B (en) | Screen detection method and device | |
CN111325716A (en) | Screen scratch fragmentation detection method and equipment | |
CN111210473A (en) | Mobile phone contour positioning method and equipment | |
CN106650662B (en) | Target object shielding detection method and device | |
CN111311556B (en) | Mobile phone defect position identification method and equipment | |
CN110675399A (en) | Screen appearance flaw detection method and equipment | |
CN110796646A (en) | Method and device for detecting defects of screen area of electronic device | |
CN111175318A (en) | Screen scratch fragmentation detection method and equipment | |
CN109858542B (en) | Character recognition method and device | |
CN110796669A (en) | Vertical frame positioning method and equipment | |
CN109978044B (en) | Training data generation method and device, and model training method and device | |
CN111291661A (en) | Method and equipment for identifying text content of icons in screen | |
CN111325717A (en) | Mobile phone defect position identification method and equipment | |
CN110827248A (en) | Method and device for identifying screen area of electronic device | |
CN110827245A (en) | Method and equipment for detecting screen display disconnection | |
CN111272388A (en) | Method and device for detecting camera flash lamp | |
CN114418861B (en) | Camera image splicing processing method and system | |
CN111242116B (en) | Screen positioning method and device | |
CN113011432A (en) | Two-dimensional code layered display and identification method and device | |
WO2021147383A1 (en) | Camera blur detection method and apparatus | |
CN113391779A (en) | Parameter adjusting method, device and equipment for paper-like screen | |
CN114244968B (en) | Image conversion method, image conversion device and image signal generator | |
CN111784607B (en) | Image tone mapping method, device, terminal equipment and storage medium | |
CN111292374A (en) | Method and equipment for automatically plugging and unplugging USB interface | |
CN118155127B (en) | Leak detection method, device, apparatus and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai Applicant after: Shanghai wanwansheng Environmental Protection Technology Group Co.,Ltd. Address before: Room 1101-1103, No. 433, Songhu Road, Yangpu District, Shanghai Applicant before: SHANGHAI YUEYI NETWORK INFORMATION TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |