CN108572753A - Location point compensation method - Google Patents

Location point compensation method Download PDF

Info

Publication number
CN108572753A
CN108572753A CN201810401055.1A CN201810401055A CN108572753A CN 108572753 A CN108572753 A CN 108572753A CN 201810401055 A CN201810401055 A CN 201810401055A CN 108572753 A CN108572753 A CN 108572753A
Authority
CN
China
Prior art keywords
coordinate
image
equipment
pen tip
starting point
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.)
Withdrawn
Application number
CN201810401055.1A
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.)
Beijing Chi Lu Management Consulting Co Ltd
Original Assignee
Beijing Chi Lu Management Consulting 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 Beijing Chi Lu Management Consulting Co Ltd filed Critical Beijing Chi Lu Management Consulting Co Ltd
Priority to CN201810401055.1A priority Critical patent/CN108572753A/en
Publication of CN108572753A publication Critical patent/CN108572753A/en
Withdrawn legal-status Critical Current

Links

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/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)

Abstract

The present invention provides a kind of location point compensation method, the method includes:Obtain the first coordinate of the pen tip shadow positions of equipment;Obtain the first starting point coordinate of the first image of the equipment acquisition;According to first coordinate and first starting point coordinate, the offset between the center point coordinate of described first image and first coordinate is determined;When the equipment collects the second image, according to the center point coordinate of the offset and second image, the pen tip position of the equipment is determined.Pen tip position is compensated by offset as a result, improves the accuracy of pen tip position.

Description

Location point compensation method
Technical field
The present invention relates to technical field of data processing more particularly to a kind of location point compensation methodes.
Background technology
With the development of science and technology, the application of image collecting device is more and more extensive, certain equipment can be by image collector It sets and is combined with pen, which can be camera etc..
In the device, the center point coordinate that dot matrix image can be identified by image collecting device, calculates pen tip Position.
But conventionally, as factors such as the scale error of accessory, installation error in equipment, lead to every dress Relative distance between the Image Acquisition position of the equipment prepared and pen tip is all not quite similar, so after taking the equipment, profit The center position of dot matrix image and the distance between the shadow positions of pen tip acquired with pressure sensor is also to have error. This error causes the pen tip position subsequently determined inaccurate.
Invention content
The purpose of the embodiment of the present invention is to provide a kind of location point compensation method, and to solve, pen tip position is inaccurate to ask Topic.
To solve the above problems, the present invention provides a kind of location point compensation method, the location point compensation method includes:
Obtain the first coordinate of the pen tip shadow positions of equipment;
Obtain the first starting point coordinate of the first image of the equipment acquisition;
According to first coordinate and first starting point coordinate, center point coordinate and the institute of described first image are determined State the offset between the first coordinate;
When the equipment collects the second image, according to the center point coordinate of the offset and second image, Determine the pen tip position of the equipment.
In one possible implementation, the first coordinate of the pen tip shadow positions for obtaining equipment, including:
Default mark is moved at the first coordinate of the equipment;
By obtaining the coordinate of the default mark, the first coordinate of the equipment is obtained.
In one possible implementation, the first starting point coordinate of first image for obtaining the equipment acquisition Before, including:
Obtain the original image of the equipment acquisition;
According to preset first size, the first image is obtained from the original image.
In one possible implementation, according to the first starting point coordinate of the first image for obtaining the equipment acquisition Before, including:
Obtain the original image of the equipment acquisition;
According to preset second size, the original image is intercepted, obtains interception image;
According to preset first size, the first image is obtained from the interception image.
In one possible implementation, the first starting point of first image for obtaining the equipment acquisition is sat Mark, including:
When top edge midpoint of first coordinate in described first image, according to first coordinate and described pre- If first size, determine first starting point coordinate.
In one possible implementation, the first starting point of first image for obtaining the equipment acquisition is sat Mark, including:
When first coordinate is outside the original image, according to first coordinate, the preset first size With preset second size, first starting point coordinate is determined.
In one possible implementation, described according to first coordinate and first starting point coordinate, it determines Offset between the center point coordinate of described first image and the first coordinate, including:
According to first coordinate and first starting point coordinate, the center point coordinate of described first image is determined;
According to the difference of the center point coordinate of described first image and first coordinate, the offset is determined.
By applying location point compensation method provided by the present application, the first coordinate of the pen tip shadow positions of equipment is obtained; Obtain the first starting point coordinate of the first image of the equipment acquisition;It is sat according to first coordinate and first starting point Mark, determines the offset between the center point coordinate of described first image and first coordinate;Second is collected in the equipment When image, according to the center point coordinate of the offset and second image, the pen tip position of the equipment is determined.By inclined Shifting amount compensates pen tip position, improves the accuracy of pen tip position.
Description of the drawings
Fig. 1 is location point compensation method flow diagram provided in an embodiment of the present invention;
Fig. 2 is the position relationship schematic diagram of pen tip shadow positions and the first image provided in an embodiment of the present invention;
Fig. 3 is the position relationship schematic diagram of pen tip shadow positions and original image provided in an embodiment of the present invention.
Specific implementation mode
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Fig. 1 is location point compensation method flow diagram provided in an embodiment of the present invention.The application scenarios of this method are band There is the equipment of image collecting device and pen, which can be camera.Before equipment manufacture, need to equipment Some numerical value be corrected, for example, the central point and the distance between pen tip to the image of equipment acquisition are calibrated, so as to It, can be directly by the numerical value after the calibration, in the coordinate for knowing image center, directly in the later stage when using the equipment Calculate the position of pen tip.As shown in Figure 1, this approach includes the following steps:
Step 110, the first coordinate of the pen tip shadow positions of equipment is obtained.
Before equipment manufacture, need to calibrate the numerical value of the equipment, for example, to image center location and pen tip The distance between calibrated.
Wherein it is possible to which default mark is moved at the first coordinate of the equipment;By obtaining the default mark Coordinate obtains the first coordinate of the equipment.
Specifically, during the volume production of equipment, calibrated by host computer.What host computer can be acquired with real-time display Original image, the original image include the shadow positions of dot matrix image and pen tip.The pen tip shadow positions of every pen are original Relative position in image all may be different, can pass through there are one default mark, such as " cross " mark in screen Left mouse button moves " cross " mark, first passes through left mouse button and " cross " mark is moved to pen tip shadow positions, then point again Right mouse button is hit, host computer will read the coordinate of the position of " cross " mark at this time, the position i.e. pen tip shadow positions, Coordinate can be denoted as to the first coordinate, such as (x1, y1).
Step 120, the first starting point coordinate of the first image of the equipment acquisition is obtained.
The step includes two kinds of situations, the first situation directly intercepts the first image from original image.At this point, obtaining The original image of the equipment acquisition;According to preset first size, the first image is obtained from the original image.
For example, the original image is 200*200, preset first size is 108*108, then is directly obtained from original image Take the first image.
The second situation intercepts the first image from a part for original image.
At this point, obtaining the original image of the equipment acquisition;According to preset second size, the original image is carried out Interception obtains interception image;According to preset first size, the first image is obtained from the interception image.
For example, original image is 200*200, preset second size is 190*190, i.e., the size of interception image is 190* 190, preset first size is 108*108, then the first image is obtained from interception image.
Step 130, according to first coordinate and first starting point coordinate, the central point of described first image is determined Offset between coordinate and the first coordinate.
Specifically, being directed to above-mentioned two situations respectively, step 130 can be refined as two kinds of situations again.
The first, when top edge midpoint of first coordinate in described first image, according to first coordinate With the preset first size, first starting point coordinate is determined.
Second, when first coordinate is outside the original image, according to first coordinate, described preset One size and preset second size, determine first starting point coordinate.
Step 140, when the equipment collects the second image, according to the center of the offset and second image Point coordinates determines the pen tip position of the equipment.
Wherein, described according to first coordinate and first starting point coordinate, determine the center of described first image Offset between point coordinates and the first coordinate, including:
According to first coordinate and first starting point coordinate, the center point coordinate of described first image is determined;
According to the difference of the center point coordinate of described first image and first coordinate, the offset is determined.
It should be noted that the size of the size of original image, the size of interception image and the first image can basis It is set, the application does not limit its specific numerical value.
After equipment manufacture, in use, which can identify the center point coordinate of the second image, directly Pen tip position can be calculated by the center point coordinate and offset of second image, to realize through the offset Compensation to pen tip position, thus obtained pen tip position are more accurate.
In the following, location point compensation method provided by the invention is further described in conjunction with Fig. 2.
Fig. 2 is the position relationship schematic diagram of pen tip shadow positions and the first image provided in an embodiment of the present invention.Such as Fig. 2 institutes Show, in the case of this kind, " cross " indicates the top edge center in the first image, and " cross " mark can be obtained by host computer The position of will, the i.e. shadow positions (x1, y1) of pen tip.At this point, original image is 200*200, preset first size is 108* 108, i.e. the first image is 108*108, at this point, x2=x1-108/2, y2=y1.
At this point, the center point coordinate of the first image is (x3, y3), x3=x2+108/2, y3=y2+108/2.
At this point, the offset △ X between offset, the i.e. center point coordinate of the first image and the coordinate of pen tip shadow positions =x3-x1=0, △ Y=y3-y1=108/2.
Such case is the normal situation of comparison, and still, there is also some special circumstances, for example, pen tip shade is original Except image.As shown in figure 3, Fig. 3 shows for the position relationship of pen tip shadow positions provided in an embodiment of the present invention and original image It is intended to.In figure 3, original image 200*200 can be according to since the edge image quality of original image is sometimes not so good Preset second size, such as 190*190, are truncated to interception image, in interception image, according to preset first size, than Such as 108*108, the first image is got, at this point, the first image is 108*108.At this point, the shadow positions of pen tip are not fixed, it can With positioned at the outside of original image, in this case, the relative position that the first image indicates with " cross " changes, " ten The coordinate of word " mark may be at outside original image, the first starting point coordinate of the first image must in interception image, than Such as, " cross " indicates on the upside of the left-half of original image, at this time x2=10, y2=10.First starting point of the first image On the upside of the right half part of original image, then x2=190-108, y2=10.
At this point, the offset △ X between offset, the i.e. center point coordinate of the first image and the coordinate of pen tip shadow positions =x3-x1=(x2+108/2)-x1, △ Y=y3-y1=(y2+108/2)-y1.
It is understood that during actual alignment, the position relationship of pen tip shadow positions and the first image also has it His situation, above-mentioned two situations are the border condition taken, in other cases, the acquisition methods and above method phase of offset Seemingly, details are not described herein again.
It should be noted that the unit of above-mentioned numerical value is pixel, in follow-up calculate, if any the inconsistent situation of unit, Can unification be carried out to unit in advance, then carry out subsequent processing.
In order to ensure the precision of offset, repeated multiple times measurement can be carried out, to improve the accuracy of offset.To multiple It is measuring as a result, processing can be carried out being averaged etc., finally obtained offset is a fixed value.
Subsequently, final offset parameter can be stored in the memory of equipment, is gone out in the equipment after the completion of calibration After factory, in use, the image collecting device of equipment can collect the second image, and the element in equipment can be counted The coordinate for calculating the center position of the image of acquisition, it is inclined in memory by reading according to the coordinate of the center position Shifting amount, you can the coordinate of the center position is compensated using offset, center position is added into offset, you can To the coordinate of the position of pen tip.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description. These functions are implemented in hardware or software actually, depend on the specific application and design constraint of technical solution. Professional technician can use different methods to achieve the described function each specific application, but this realization It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can use hardware, processor to execute The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above specific implementation mode has carried out further in detail the purpose of the present invention, technical solution and advantageous effect Illustrate, it should be understood that these are only the specific implementation mode of the present invention, the protection model being not intended to limit the present invention It encloses, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in the present invention Protection domain within.

Claims (7)

1. a kind of location point compensation method, which is characterized in that the location point compensation method includes:
Obtain the first coordinate of the pen tip shadow positions of equipment;
Obtain the first starting point coordinate of the first image of the equipment acquisition;
According to first coordinate and first starting point coordinate, the center point coordinate of described first image and described the are determined Offset between one coordinate;
When the equipment collects the second image, according to the center point coordinate of the offset and second image, determine The pen tip position of the equipment.
2. location point compensation method according to claim 1, which is characterized in that the pen tip shadow positions for obtaining equipment The first coordinate, including:
Default mark is moved at the first coordinate of the equipment;
By obtaining the coordinate of the default mark, the first coordinate of the equipment is obtained.
3. location point compensation method according to claim 1, which is characterized in that described to obtain the first of the equipment acquisition Before first starting point coordinate of image, including:
Obtain the original image of the equipment acquisition;
According to preset first size, the first image is obtained from the original image.
4. location point compensation method according to claim 3, which is characterized in that according to the first of the acquisition equipment acquisition Before first starting point coordinate of image, including:
Obtain the original image of the equipment acquisition;
According to preset second size, the original image is intercepted, obtains interception image;
According to preset first size, the first image is obtained from the interception image.
5. location point compensation method according to claim 3, which is characterized in that described to obtain the first of the equipment acquisition First starting point coordinate of image, including:
When top edge midpoint of first coordinate in described first image, according to first coordinate and described preset First size determines first starting point coordinate.
6. location point compensation method according to claim 4, which is characterized in that described to obtain the first of the equipment acquisition First starting point coordinate of image, including:
When first coordinate is outside the original image, according to first coordinate, the preset first size and institute Preset second size is stated, determines first starting point coordinate.
7. location point compensation method according to claim 1, which is characterized in that described according to first coordinate and described First starting point coordinate determines the offset between the center point coordinate of described first image and the first coordinate, including:
According to first coordinate and first starting point coordinate, the center point coordinate of described first image is determined;
According to the difference of the center point coordinate of described first image and first coordinate, the offset is determined.
CN201810401055.1A 2018-04-28 2018-04-28 Location point compensation method Withdrawn CN108572753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810401055.1A CN108572753A (en) 2018-04-28 2018-04-28 Location point compensation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810401055.1A CN108572753A (en) 2018-04-28 2018-04-28 Location point compensation method

Publications (1)

Publication Number Publication Date
CN108572753A true CN108572753A (en) 2018-09-25

Family

ID=63575528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810401055.1A Withdrawn CN108572753A (en) 2018-04-28 2018-04-28 Location point compensation method

Country Status (1)

Country Link
CN (1) CN108572753A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118089547A (en) * 2024-04-23 2024-05-28 杭州芯海半导体技术有限公司 Determination method and device for regional center point coordinates and intelligent warehouse system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118089547A (en) * 2024-04-23 2024-05-28 杭州芯海半导体技术有限公司 Determination method and device for regional center point coordinates and intelligent warehouse system
CN118089547B (en) * 2024-04-23 2024-07-05 杭州芯海半导体技术有限公司 Determination method and device for regional center point coordinates and intelligent warehouse system

Similar Documents

Publication Publication Date Title
KR101783050B1 (en) Method and device for calibrating a three-axis magnetic field sensor
CN101354621A (en) Method and apparatus for determining touch screen calibration parameter
CA2830719C (en) Hardware calibration of eye tracker
CN107492126B (en) Calibration method, device, system, medium and the equipment of camera central axis
CN105955011A (en) Method and device for intelligently calibrating time
CN104730802A (en) Optical axis included angle calibrating and focusing method and system and double-camera equipment
TWI692621B (en) Electronic scale with correction function and correction method applied thereto
KR20140113538A (en) Machine vision system calibration using inaccurate calibration targets
CN113304971B (en) 3D dynamic guiding dispensing compensation method, device and equipment and storage medium thereof
CN112082491A (en) Height detection method based on point cloud
CN104135576A (en) Compass positioning optimization method and system for mobile terminal
CN109211268A (en) A kind of gauge pointer calibration method, device and computer readable storage medium
CN110426057B (en) Magnetometer data calibration method and magnetometer data calibration device
CN108286946B (en) Method and system for sensor position calibration and data splicing
CN106769909A (en) A kind of method and device of imaging spectrometer scaling position amendment
CN105783900A (en) Sensor data calibrating method and device
CN107202597A (en) A kind of geomagnetic data calibration method and terminal
CN115963710A (en) Overlay error correction method and apparatus, electronic device, and storage medium
CN108572753A (en) Location point compensation method
CN106525108A (en) Linear-fitting-algorithm-based method for correcting temperature and humidity precision of air box
CN111275769B (en) Monocular vision parameter correction method and device
CN111141217A (en) Object measuring method, device, terminal equipment and computer storage medium
CN112465917B (en) Distortion calibration method, system, equipment and storage medium of lens module
CN112748423B (en) Visual navigation device calibration method, device, computer device and storage medium
CN106547394B (en) A kind of calibration method of touch display screen, apparatus and system

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180925