CN111290660A - Method and equipment for converting screen coordinates into touch pen coordinates - Google Patents

Method and equipment for converting screen coordinates into touch pen coordinates Download PDF

Info

Publication number
CN111290660A
CN111290660A CN202010074753.2A CN202010074753A CN111290660A CN 111290660 A CN111290660 A CN 111290660A CN 202010074753 A CN202010074753 A CN 202010074753A CN 111290660 A CN111290660 A CN 111290660A
Authority
CN
China
Prior art keywords
mobile phone
detected
fixed position
known thickness
coordinates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010074753.2A
Other languages
Chinese (zh)
Inventor
常树林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yueyi Network Information Technology Co Ltd
Original Assignee
Shanghai Yueyi Network Information 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 Shanghai Yueyi Network Information Technology Co Ltd filed Critical Shanghai Yueyi Network Information Technology Co Ltd
Priority to CN202010074753.2A priority Critical patent/CN111290660A/en
Publication of CN111290660A publication Critical patent/CN111290660A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

Abstract

The invention aims to provide a method and equipment for converting screen coordinates into touch pen coordinates, wherein a first conversion relation between the screen plane coordinates and the touch pen plane coordinates of a mobile phone with a known thickness is obtained after the mobile phone with the known thickness is placed at a first fixed position; after the mobile phone at the first fixed position is replaced by the mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen; and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation. The method and the device can solve the problem that the position of the touch pen for clicking the screen is inaccurate due to different intelligent terminals such as mobile phones with different thicknesses, so that the accuracy of the screen performance detection result of the intelligent terminals such as the mobile phones is ensured.

Description

Method and equipment for converting screen coordinates into touch pen coordinates
Technical Field
The invention relates to the field of computers, in particular to a method and equipment for converting screen coordinates into touch pen coordinates.
Background
When the screen performance of the intelligent terminals such as the mobile phone is detected, the touch pen needs to be controlled to click the corresponding position in the screen, and the problem that the position of the touch pen for clicking the screen is inaccurate can be caused due to different thicknesses of different intelligent terminals such as the mobile phone, so that the accuracy of the detection result of the screen performance of the intelligent terminals such as the mobile phone is influenced.
Disclosure of Invention
One object of the present invention is to provide a method and apparatus for converting screen coordinates into stylus coordinates.
According to an aspect of the present invention, there is provided a method of converting screen coordinates to stylus coordinates, the method comprising:
after the mobile phone with the known thickness is placed at the first fixed position, acquiring a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness;
replacing the mobile phone with the first fixed position with a mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation.
Further, in the above method, the first conversion relationship and the second conversion relationship are conversion matrices, respectively.
Further, in the method, after replacing the mobile phone at the first fixed position with the mobile phone to be detected, obtaining a thickness difference between the mobile phone to be detected and the mobile phone with a known thickness includes:
setting the camera at a second fixed position;
controlling a mobile phone with known thickness at the first fixed position to display a graph with a first preset size;
controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone with the known thickness so as to obtain a first photo, and calculating a first distance between the camera and the mobile phone with the known thickness based on the size of the image in the first photo;
replacing the mobile phone with the first fixed position with the mobile phone to be detected;
controlling the mobile phone to be detected positioned at the first fixed position to display the same graph with the first preset size;
controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone to be detected so as to obtain a second picture, and calculating a second distance between the camera and the mobile phone to be detected based on the size of the image in the second picture;
and obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness based on the first distance and the second distance.
Further, in the above method, after placing the mobile phone with known thickness at the first fixed position, obtaining a first conversion relationship between the screen plane coordinate and the stylus plane coordinate of the mobile phone with known thickness, includes:
placing a mobile phone with a known thickness at a first fixed position;
controlling a stylus to click the screen of the mobile phone with the known thickness under 9 different stylus plane coordinates, and respectively recording 9 screen plane coordinates sensed by the screen of the mobile phone with the known thickness in the clicking process;
based on the 9 stylus planar coordinates and the 9 screen planar coordinates, a first conversion relationship of the screen planar coordinates of the cell phone of known thickness to the stylus planar coordinates is generated.
Further, in the above method, the first conversion relationship and the second conversion relationship are conversion matrices, respectively.
According to another aspect of the present invention, there is also provided an apparatus for converting screen coordinates into stylus coordinates, wherein the apparatus comprises:
the first device is used for obtaining a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness after the mobile phone with the known thickness is placed at a first fixed position;
the second device is used for replacing the mobile phone at the first fixed position with the mobile phone to be detected, obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and the third device is used for acquiring the plane coordinates of the mobile phone to be detected, which is to be touched by the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the mobile phone to be detected, which is to be touched, based on the second conversion relation.
Further, in the above device, the first conversion relationship and the second conversion relationship are conversion matrices, respectively.
Further, in the above apparatus, the second device is configured to set the camera at a second fixed position; controlling a mobile phone with known thickness at the first fixed position to display a graph with a first preset size; controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone with the known thickness so as to obtain a first photo, and calculating a first distance between the camera and the mobile phone with the known thickness based on the size of the image in the first photo; replacing the mobile phone with the first fixed position with the mobile phone to be detected; controlling the mobile phone to be detected positioned at the first fixed position to display the same graph with the first preset size; controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone to be detected so as to obtain a second picture, and calculating a second distance between the camera and the mobile phone to be detected based on the size of the image in the second picture; and obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness based on the first distance and the second distance.
Further, in the above device, the first means is configured to place a mobile phone with a known thickness at a first fixed position; controlling a stylus to click the screen of the mobile phone with the known thickness under 9 different stylus plane coordinates, and respectively recording 9 screen plane coordinates sensed by the screen of the mobile phone with the known thickness in the clicking process; based on the 9 stylus planar coordinates and the 9 screen planar coordinates, a first conversion relationship of the screen planar coordinates of the cell phone of known thickness to the stylus planar coordinates is generated.
Further, in the above device, the first preset size of the graph is: and displaying black square figures with the size of the first preset size on a white background.
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:
after the mobile phone with the known thickness is placed at the first fixed position, acquiring a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness;
replacing the mobile phone with the first fixed position with a mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation.
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:
after the mobile phone with the known thickness is placed at the first fixed position, acquiring a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness;
replacing the mobile phone with the first fixed position with a mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation.
Compared with the prior art, the method has the advantages that the mobile phone with the known thickness is placed at the first fixed position, and then the first conversion relation between the screen plane coordinate and the touch pen plane coordinate of the mobile phone with the known thickness is obtained; replacing the mobile phone with the first fixed position with a mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen; and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation. The method and the device can solve the problem that the position of the touch pen for clicking the screen is inaccurate due to different intelligent terminals such as mobile phones with different thicknesses, so that the accuracy of the screen performance detection result of the intelligent terminals such as the mobile phones is ensured.
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 method of converting screen coordinates to stylus coordinates in accordance with an embodiment of the present 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 method for converting screen coordinates into stylus coordinates, the method comprising:
step S1, after the mobile phone with the known thickness is placed at the first fixed position, a first conversion relation between the screen plane coordinate and the touch pen plane coordinate of the mobile phone with the known thickness is obtained;
step S2, after the mobile phone at the first fixed position is replaced by the mobile phone to be detected, the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness is obtained, and the first conversion relation is corrected based on the thickness difference so as to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and step S3, acquiring the plane coordinates of the to-be-touched mobile phone of the stylus, and acquiring the plane coordinates of the stylus corresponding to the to-be-touched mobile phone based on the second conversion relation.
The method and the device can solve the problem that the position of the touch pen for clicking the screen is inaccurate due to different intelligent terminals such as mobile phones with different thicknesses, so that the accuracy of the screen performance detection result of the intelligent terminals such as the mobile phones is ensured.
In an embodiment of the method for converting screen coordinates into stylus coordinates, the first conversion relationship and the second conversion relationship are respectively conversion matrices.
The screen plane coordinate and the stylus plane coordinate are recorded as a conversion matrix, and efficient conversion of the screen plane coordinate and the stylus plane coordinate can be achieved.
In an embodiment of the method for converting screen coordinates into stylus coordinates, step S2 is to replace the mobile phone at the first fixed position with the mobile phone to be detected, and then obtain a thickness difference between the mobile phone to be detected and the mobile phone with a known thickness, where the method includes:
step S21, setting the camera at a second fixed position;
step S22, controlling the mobile phone with the known thickness at the first fixed position to display a graph with a first preset size;
here, the preset-sized image may be an image of 1cmX1 cm;
step S23, controlling the camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone with the known thickness so as to obtain a first photo, and calculating a first distance between the camera and the mobile phone with the known thickness based on the size of the image in the first photo;
the images with the same display size and different distances from the camera are different in size when the camera shoots the images, wherein the closer the distance is, the larger the image in the image is; the farther away the distance, the smaller the image will be in the photograph; therefore, the distances between the mobile phones with different thicknesses and the camera can be reversely deduced according to the physical size of the image in the picture and the number of the pixel points;
step S24, replacing the mobile phone with the first fixed position with the mobile phone to be detected;
step S25, controlling the mobile phone to be detected at the first fixed position to display the same graph with the first preset size;
here, the preset-sized image may be an image of 1cmX1 cm;
step S26, controlling the camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone to be detected so as to obtain a second picture, and calculating a second distance between the camera and the mobile phone to be detected based on the size of the image in the second picture;
and step S27, obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness based on the first distance and the second distance.
In this embodiment, the camera located at the second fixed position is controlled to capture a graph with a first preset size displayed on the mobile phone with the known thickness to obtain a first photo, and a first distance between the camera and the mobile phone with the known thickness is calculated based on the size of the image in the first photo; the camera at the second fixed position is controlled to shoot a graph with a first preset size displayed on the mobile phone to be detected so as to obtain a second picture, a second distance between the camera and the mobile phone to be detected is calculated based on the size of the image in the second picture, the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness can be efficiently and accurately obtained, and a second conversion relation can be conveniently and accurately obtained based on the thickness difference subsequently.
In an embodiment of the method for converting screen coordinates into stylus coordinates, step S1 is to place the mobile phone with known thickness at the first fixed position, and then obtain a first conversion relationship between the screen plane coordinates and the stylus plane coordinates of the mobile phone with known thickness, where the method includes:
placing a mobile phone with a known thickness at a first fixed position;
controlling a stylus to click the screen of the mobile phone with the known thickness under 9 different stylus plane coordinates, and respectively recording 9 screen plane coordinates sensed by the screen of the mobile phone with the known thickness in the clicking process;
based on the 9 stylus planar coordinates and the 9 screen planar coordinates, a first conversion relationship of the screen planar coordinates of the cell phone of known thickness to the stylus planar coordinates is generated.
Here, in this embodiment, the stylus is controlled to click the screen of the mobile phone with the known thickness under 9 different stylus plane coordinates, and 9 screen plane coordinates sensed by the screen of the mobile phone with the known thickness during the click process are respectively recorded, so that the first conversion relationship between the screen plane coordinates of the mobile phone with the known thickness and the stylus plane coordinates can be efficiently and accurately obtained.
In an embodiment of the method for converting screen coordinates into stylus coordinates, the graph with the first preset size is as follows: and displaying black square figures with the size of the first preset size on a white background.
Here, the black square pattern with the first preset size is adopted in the embodiment, so that the size of the black square pattern in the picture can be ensured, and the distance between the camera and the mobile phone can be efficiently and reliably inferred.
The invention provides a device for converting screen coordinates into stylus coordinates, the device comprising:
the first device is used for obtaining a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness after the mobile phone with the known thickness is placed at a first fixed position;
the second device is used for replacing the mobile phone at the first fixed position with the mobile phone to be detected, obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and the third device is used for acquiring the plane coordinates of the mobile phone to be detected, which is to be touched by the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the mobile phone to be detected, which is to be touched, based on the second conversion relation.
The method and the device can solve the problem that the position of the touch pen for clicking the screen is inaccurate due to different intelligent terminals such as mobile phones with different thicknesses, so that the accuracy of the screen performance detection result of the intelligent terminals such as the mobile phones is ensured.
In an embodiment of the apparatus for converting screen coordinates into stylus coordinates, the first conversion relationship and the second conversion relationship are conversion matrices, respectively.
The screen plane coordinate and the stylus plane coordinate are recorded as a conversion matrix, and efficient conversion of the screen plane coordinate and the stylus plane coordinate can be achieved.
In an embodiment of the apparatus for converting screen coordinates into coordinates of a stylus, the second device is configured to set the camera at a second fixed position; controlling a mobile phone with known thickness at the first fixed position to display a graph with a first preset size; controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone with the known thickness so as to obtain a first photo, and calculating a first distance between the camera and the mobile phone with the known thickness based on the size of the image in the first photo; replacing the mobile phone with the first fixed position with the mobile phone to be detected; controlling the mobile phone to be detected positioned at the first fixed position to display the same graph with the first preset size; controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone to be detected so as to obtain a second picture, and calculating a second distance between the camera and the mobile phone to be detected based on the size of the image in the second picture; and obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness based on the first distance and the second distance.
Here, the preset-sized image may be an image of 1cmX1 cm;
images with the same display size and different distances from the camera are different in size when the camera shoots the images, wherein the closer the distance is, the larger the image in the picture is; the farther away the distance, the smaller the image will be in the photograph; therefore, the distances between the mobile phones with different thicknesses and the camera can be reversely deduced according to the physical size of the image in the picture and the number of the pixel points;
in the embodiment, a camera at the second fixed position is controlled to shoot a graph with a first preset size displayed on the mobile phone with the known thickness to obtain a first photo, and a first distance between the camera and the mobile phone with the known thickness is calculated based on the size of the image in the first photo; the camera at the second fixed position is controlled to shoot a graph with a first preset size displayed on the mobile phone to be detected so as to obtain a second picture, a second distance between the camera and the mobile phone to be detected is calculated based on the size of the image in the second picture, the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness can be efficiently and accurately obtained, and a second conversion relation can be conveniently and accurately obtained based on the thickness difference subsequently.
In an embodiment of the apparatus for converting screen coordinates into coordinates of a stylus, the first device is configured to place a mobile phone with a known thickness at a first fixed position; controlling a stylus to click the screen of the mobile phone with the known thickness under 9 different stylus plane coordinates, and respectively recording 9 screen plane coordinates sensed by the screen of the mobile phone with the known thickness in the clicking process; based on the 9 stylus planar coordinates and the 9 screen planar coordinates, a first conversion relationship of the screen planar coordinates of the cell phone of known thickness to the stylus planar coordinates is generated.
The stylus is controlled to click the screen of the mobile phone with the known thickness under 9 different stylus plane coordinates, and 9 screen plane coordinates sensed by the screen of the mobile phone with the known thickness in the clicking process are recorded respectively, so that the first conversion relation between the screen plane coordinates of the mobile phone with the known thickness and the stylus plane coordinates can be efficiently and accurately acquired.
In an embodiment of the apparatus for converting screen coordinates into stylus coordinates, the graph with the first preset size is: and displaying black square figures with the size of the first preset size on a white background.
Here, the black square pattern with the first preset size is adopted in the embodiment, so that the size of the black square pattern in the picture can be ensured, and the distance between the camera and the mobile phone can be efficiently and reliably inferred.
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:
after the mobile phone with the known thickness is placed at the first fixed position, acquiring a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness;
replacing the mobile phone with the first fixed position with a mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation.
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:
after the mobile phone with the known thickness is placed at the first fixed position, acquiring a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness;
replacing the mobile phone with the first fixed position with a mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation.
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.
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 coordinate conversion to stylus coordinate, wherein the method comprises:
after the mobile phone with the known thickness is placed at the first fixed position, acquiring a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness;
after the mobile phone at the first fixed position is replaced by the mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation.
2. The method of claim 1, wherein the first and second transformation relationships are transformation matrices, respectively.
3. The method of claim 1, wherein the step of obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness after replacing the mobile phone with the mobile phone to be detected at the first fixed position comprises:
setting the camera at a second fixed position;
controlling a mobile phone with known thickness at the first fixed position to display a graph with a first preset size;
controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone with the known thickness so as to obtain a first photo, and calculating a first distance between the camera and the mobile phone with the known thickness based on the size of the image in the first photo;
replacing the mobile phone with the first fixed position with the mobile phone to be detected;
controlling the mobile phone to be detected positioned at the first fixed position to display the same graph with the first preset size;
controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone to be detected so as to obtain a second picture, and calculating a second distance between the camera and the mobile phone to be detected based on the size of the image in the second picture;
and obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness based on the first distance and the second distance.
4. The method of claim 1, wherein obtaining a first transformed relationship of screen plane coordinates and stylus plane coordinates of a cell phone of known thickness after placing the cell phone of known thickness in a first fixed position comprises:
placing a mobile phone with a known thickness at a first fixed position;
controlling a stylus to click the screen of the mobile phone with the known thickness under 9 different stylus plane coordinates, and respectively recording 9 screen plane coordinates sensed by the screen of the mobile phone with the known thickness in the clicking process;
based on the 9 stylus planar coordinates and the 9 screen planar coordinates, a first conversion relationship of the screen planar coordinates of the cell phone of known thickness to the stylus planar coordinates is generated.
5. The method of claim 1, wherein the first and second transformation relationships are transformation matrices, respectively.
6. A device for screen coordinate transformation to stylus coordinate transformation, wherein the device comprises:
the first device is used for obtaining a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness after the mobile phone with the known thickness is placed at a first fixed position;
the second device is used for obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness and correcting the first conversion relation based on the thickness difference after the mobile phone with the first fixed position is replaced by the mobile phone to be detected so as to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and the third device is used for acquiring the plane coordinates of the mobile phone to be detected, which is to be touched by the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the mobile phone to be detected, which is to be touched, based on the second conversion relation.
7. The apparatus of claim 6, wherein the first and second translation relationships are translation matrices, respectively.
8. The apparatus of claim 6, wherein said second means for positioning a camera in a second fixed position; controlling a mobile phone with known thickness at the first fixed position to display a graph with a first preset size; controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone with the known thickness so as to obtain a first photo, and calculating a first distance between the camera and the mobile phone with the known thickness based on the size of the image in the first photo; replacing the mobile phone with the first fixed position with the mobile phone to be detected; controlling the mobile phone to be detected positioned at the first fixed position to display the same graph with the first preset size; controlling a camera at the second fixed position to shoot a graph with a first preset size displayed on the mobile phone to be detected so as to obtain a second picture, and calculating a second distance between the camera and the mobile phone to be detected based on the size of the image in the second picture; and obtaining the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness based on the first distance and the second distance.
9. The apparatus of claim 6, wherein the first means for placing a cell phone of known thickness in a first fixed position; controlling a stylus to click the screen of the mobile phone with the known thickness under 9 different stylus plane coordinates, and respectively recording 9 screen plane coordinates sensed by the screen of the mobile phone with the known thickness in the clicking process; based on the 9 stylus planar coordinates and the 9 screen planar coordinates, a first conversion relationship of the screen planar coordinates of the cell phone of known thickness to the stylus planar coordinates is generated.
10. The apparatus according to claim 6, wherein the first preset size of the figure is: and displaying black square figures with the size of the first preset size on a white background.
11. A computing-based device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
after the mobile phone with the known thickness is placed at the first fixed position, acquiring a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness;
after the mobile phone at the first fixed position is replaced by the mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation.
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:
after the mobile phone with the known thickness is placed at the first fixed position, acquiring a first conversion relation between a screen plane coordinate and a touch pen plane coordinate of the mobile phone with the known thickness;
after the mobile phone at the first fixed position is replaced by the mobile phone to be detected, acquiring the thickness difference between the mobile phone to be detected and the mobile phone with the known thickness, and correcting the first conversion relation based on the thickness difference to obtain a second conversion relation between the plane coordinate of the mobile phone to be detected and the plane coordinate of the touch pen;
and acquiring the plane coordinates of the to-be-touched mobile phone of the stylus pen, and acquiring the plane coordinates of the stylus pen corresponding to the plane coordinates of the to-be-touched mobile phone based on the second conversion relation.
CN202010074753.2A 2020-01-21 2020-01-21 Method and equipment for converting screen coordinates into touch pen coordinates Pending CN111290660A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010074753.2A CN111290660A (en) 2020-01-21 2020-01-21 Method and equipment for converting screen coordinates into touch pen coordinates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010074753.2A CN111290660A (en) 2020-01-21 2020-01-21 Method and equipment for converting screen coordinates into touch pen coordinates

Publications (1)

Publication Number Publication Date
CN111290660A true CN111290660A (en) 2020-06-16

Family

ID=71026681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010074753.2A Pending CN111290660A (en) 2020-01-21 2020-01-21 Method and equipment for converting screen coordinates into touch pen coordinates

Country Status (1)

Country Link
CN (1) CN111290660A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
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
US11843206B2 (en) 2019-02-12 2023-12-12 Ecoatm, Llc Connector carrier for electronic device kiosk
US11922467B2 (en) 2020-08-17 2024-03-05 ecoATM, Inc. Evaluating an electronic device using optical character recognition

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090047418A1 (en) * 2007-08-17 2009-02-19 Seiko Epson Corporation Film-forming method, and film forming device
US20100259508A1 (en) * 2009-04-09 2010-10-14 Nitto Denko Corporation Optical waveguide with photoelectric conversion element and optical touch panel
CN102914698A (en) * 2012-10-31 2013-02-06 上海膜林科技有限公司 Circuit and method for measuring resistance loss of crystal oscillating wafer of crystal control instrument
CN104793784A (en) * 2015-03-23 2015-07-22 中国科学技术大学先进技术研究院 Simulation touch operation system and operation method based on depth data
CN107024488A (en) * 2017-02-27 2017-08-08 杭州电子科技大学 A kind of glass defect detection method
CN107735759A (en) * 2015-08-04 2018-02-23 株式会社和冠 Hand-written data plotting method and hand-written data drawing apparatus
CN110506252A (en) * 2017-11-27 2019-11-26 华为技术有限公司 Based on the transformational relation positioning terminal screen for indicating graphical dots coordinate in pattern

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090047418A1 (en) * 2007-08-17 2009-02-19 Seiko Epson Corporation Film-forming method, and film forming device
US20100259508A1 (en) * 2009-04-09 2010-10-14 Nitto Denko Corporation Optical waveguide with photoelectric conversion element and optical touch panel
CN102914698A (en) * 2012-10-31 2013-02-06 上海膜林科技有限公司 Circuit and method for measuring resistance loss of crystal oscillating wafer of crystal control instrument
CN104793784A (en) * 2015-03-23 2015-07-22 中国科学技术大学先进技术研究院 Simulation touch operation system and operation method based on depth data
CN107735759A (en) * 2015-08-04 2018-02-23 株式会社和冠 Hand-written data plotting method and hand-written data drawing apparatus
CN107024488A (en) * 2017-02-27 2017-08-08 杭州电子科技大学 A kind of glass defect detection method
CN110506252A (en) * 2017-11-27 2019-11-26 华为技术有限公司 Based on the transformational relation positioning terminal screen for indicating graphical dots coordinate in pattern

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11843206B2 (en) 2019-02-12 2023-12-12 Ecoatm, Llc Connector carrier for electronic device kiosk
US11798250B2 (en) 2019-02-18 2023-10-24 Ecoatm, Llc Neural network based physical condition evaluation of electronic devices, and associated systems and methods
US11922467B2 (en) 2020-08-17 2024-03-05 ecoATM, Inc. Evaluating an electronic device using optical character recognition

Similar Documents

Publication Publication Date Title
CN111290660A (en) Method and equipment for converting screen coordinates into touch pen coordinates
CN111272067A (en) Mobile phone detection method and equipment
CN111210473A (en) Mobile phone contour positioning method and equipment
CN110675399A (en) Screen appearance flaw detection method and equipment
KR20140090078A (en) Method for processing an image and an electronic device thereof
CN111294459B (en) Method, device and storage medium for detecting privacy of android mobile phone
CN110827245A (en) Method and equipment for detecting screen display disconnection
CN111277659B (en) Method and device for detecting display state of transverse screen and vertical screen of mobile phone
CN111443974A (en) Android device screen adapting method, related device and readable storage medium
CN111277696A (en) Method and device for detecting privacy of apple mobile phone
CN110827248A (en) Method and device for identifying screen area of electronic device
CN111238430B (en) Method and equipment for detecting stability of mechanical hand stylus head
CN111277695B (en) Data verification method and equipment
CN109213668B (en) Operation recording method and device and terminal
CN111314445A (en) Method and device for controlling recycling machine to open door by mobile phone
CN111272388A (en) Method and device for detecting camera flash lamp
CN111314535A (en) Method and equipment for recording quality inspection process of mobile phone
CN111294453B (en) Mobile phone key test method and equipment
CN111311678B (en) USB position positioning method and device
CN109101144B (en) Thermodynamic diagram drawing method and device
CN111242116B (en) Screen positioning method and device
CN111475021B (en) Method, system and equipment for pre-judging user action
CN110058751B (en) Method and device for selecting electronic document content
CN112710300A (en) Method and device for switching dial plate of wearable device
CN111292374A (en) Method and equipment for automatically plugging and unplugging USB interface

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