CN109241892A - A kind of instrument board read method, instrument board reading device and electronic equipment - Google Patents
A kind of instrument board read method, instrument board reading device and electronic equipment Download PDFInfo
- Publication number
- CN109241892A CN109241892A CN201810981227.7A CN201810981227A CN109241892A CN 109241892 A CN109241892 A CN 109241892A CN 201810981227 A CN201810981227 A CN 201810981227A CN 109241892 A CN109241892 A CN 109241892A
- Authority
- CN
- China
- Prior art keywords
- image
- read
- target
- instrument board
- mentioned
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/10—Terrestrial scenes
-
- 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/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/74—Image or video pattern matching; Proximity measures in feature spaces
- G06V10/75—Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V10/751—Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V2201/00—Indexing scheme relating to image or video recognition or understanding
- G06V2201/02—Recognising information on displays, dials, clocks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
Abstract
This application discloses a kind of instrument board read method, instrument board reading device, electronic equipment and computer readable storage mediums, wherein, the instrument board read method includes: to obtain target to read image, wherein target reads the image that image includes instrument board to be read;Target is read image to match with preset more than one template image, obtains target template image, wherein target template image is to read the highest template image of images match degree with target;Obtain the geometrical relationship parameter of target template image;Based on geometrical relationship parameter, the graduation mark feature of target template image is mapped into target by geometric transformation and is read in image, so that graduation mark feature association is to instrument board to be read;After reading graduation mark Feature Mapping to target in image, according to the reading of instrument board to be read in graduation mark feature reading target reading image.Application scheme can realize the automatic reading to instrument board, improve the accuracy of reading.
Description
Technical field
The application belong to technical field of image processing more particularly to a kind of instrument board read method, instrument board reading device,
Electronic equipment and computer readable storage medium.
Background technique
Many electronic systems in order to preferably allow user to recognize the parameters in electronic system and be provided with one or
Multiple instrument boards, user can be visually observed that corresponding parameter values by consulting instrument board.However, most instrument
Disk still falls within analog type device.With being continuously increased for electronic system scale, the number of this kind of instrument board is also gradually increasing,
It is not accurate enough that the obtained result of observation only may result in by user's human eye observation's instrument board, influence user to electronic system
Control.
Summary of the invention
In view of this, this application provides a kind of instrument board read method, instrument board reading device, electronic equipment and calculating
Machine readable storage medium storing program for executing improves the accuracy of reading, it can be achieved that automatic reading to instrument board.
The first aspect of the application provides a kind of instrument board read method, comprising:
It obtains target and reads image, wherein above-mentioned target reads the image that image includes instrument board to be read;
Above-mentioned target is read image to match with preset more than one template image, obtains target template drawing
Picture, wherein above-mentioned target template image is to read the highest template image of images match degree with above-mentioned target;
Obtain the geometrical relationship parameter of above-mentioned target template image;
Based on above-mentioned geometrical relationship parameter, the graduation mark feature of above-mentioned target template image is mapped to by geometric transformation
Above-mentioned target is read in image, so that above-mentioned graduation mark feature association is to above-mentioned instrument board to be read;
After reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, read according to above-mentioned graduation mark feature
State the reading that target reads instrument board to be read in image.
The second aspect of the application provides a kind of instrument board reading device, comprising:
Target reads image acquisition unit, reads image for obtaining target, wherein above-mentioned target read image include to
Read the image of instrument board;
Target template image acquiring unit, for above-mentioned target to be read image and preset more than one template image
It is matched, obtains target template image, wherein above-mentioned target template image is to read images match degree highest with above-mentioned target
Template image;
Geometrical relationship parameter acquiring unit, for obtaining the geometrical relationship parameter of above-mentioned target template image;
Graduation mark Feature Mapping unit, for being based on above-mentioned geometrical relationship parameter, by the scale of above-mentioned target template image
Line feature maps to above-mentioned target by geometric transformation and reads in image, so that above-mentioned graduation mark feature association is to above-mentioned to be read
Instrument board;
Reading unit was used for after reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, according to above-mentioned quarter
Degree line feature reads the reading that above-mentioned target reads instrument board to be read in image.
The third aspect of the application provides a kind of electronic equipment, above-mentioned electronic equipment include memory, processor and
It is stored in the computer program that can be run in above-mentioned memory and on above-mentioned processor, above-mentioned processor executes above-mentioned computer
The step of method such as above-mentioned first aspect is realized when program.
The fourth aspect of the application provides a kind of computer readable storage medium, and above-mentioned computer readable storage medium is deposited
The step of containing computer program, the method such as above-mentioned first aspect realized when above-mentioned computer program is executed by processor.
The 5th aspect of the application provides a kind of computer program product, and above-mentioned computer program product includes computer
Program, when above-mentioned computer program is executed by one or more processors the step of the realization such as method of above-mentioned first aspect.
Therefore by application scheme, acquisition target first reads image, wherein above-mentioned target reads image packet
Then above-mentioned target is read image and preset more than one template image progress by the image containing instrument board to be read
Match, obtain target template image, wherein above-mentioned target template image is to read the highest template of images match degree with above-mentioned target
Image then obtains the geometrical relationship parameter of above-mentioned target template image, and is based on above-mentioned geometrical relationship parameter, by above-mentioned target
The graduation mark feature of template image maps to above-mentioned target by geometric transformation and reads in image, so that above-mentioned graduation mark feature is closed
It is coupled to above-mentioned instrument board to be read, after reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, according to above-mentioned quarter
Degree line feature reads the reading that above-mentioned target reads instrument board to be read in image.Application scheme can be based on the original of machine vision
The automatic reading for reading instrument board of reason, it is no longer necessary to manually instrument board is read out, improve the standard of reading to a certain extent
Exactness.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of instrument board read method provided by the embodiments of the present application;
Fig. 2 is another implementation process schematic diagram of instrument board read method provided by the embodiments of the present application;
Fig. 3 is another implementation process schematic diagram of instrument board read method provided by the embodiments of the present application;
Fig. 4 is the structural block diagram of instrument board reading device provided by the embodiments of the present application;
Fig. 5 is the structural block diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate the above-mentioned technical solution of the application, the following is a description of specific embodiments.
Embodiment one
A kind of instrument board read method provided by the embodiments of the present application is described below, referring to Fig. 1, the application is real
The instrument board read method applied in example includes:
In a step 101, it obtains target and reads image;
In the embodiment of the present application, above-mentioned target reads the image that image includes instrument board to be read.It is alternatively possible to be
The shooting of the image acquisition elements such as the camera by electronic equipment obtain include instrument board to be read image, alternatively, can also be with
It is that the image comprising instrument board to be read is obtained by the monitoring camera in instrument board local environment to be read, alternatively, may be used also
To be the image etc. for receiving the instrument board to be read that other electronic equipments are sent, it is not construed as limiting herein.Optionally, packet is being got
After image containing instrument board to be read, the above-mentioned image comprising instrument board to be read can also be pre-processed, such as carry out
Target identification and image segmentation etc. remove useless so that above-mentioned target is read in image only comprising the image of instrument board to be read
Noise.
In a step 102, above-mentioned target is read image to match with preset more than one template image, is obtained
Target template image;
In the embodiment of the present application, above-mentioned target template image is to read the highest template of images match degree with above-mentioned target
Image.Optionally, a matching degree threshold value can also be preset, above-mentioned target template image is then to read image with above-mentioned target
Matching degree highest and matching degree are higher than the template image of above-mentioned matching degree threshold value.In other words, if with said one more than
After template image is matched, there is no the template images that matching degree is higher than matching degree threshold value, then it is assumed that this cannot achieve pair
The intelligence of instrument to be read is read, and can export reminder message for reminding user manually to read above-mentioned instrument board to be read.It can
Selection of land, the template image of the instrument board for the multiple and different models that can be previously stored with due to electronic equipment, thus, in above-mentioned steps
Before 101, above-mentioned instrument board read method further include: obtain the model of instrument board to be read;Based on above-mentioned instrument board to be read
Model determine preset more than one template image, above-mentioned matching operation could be made meaningful.
In step 103, the geometrical relationship parameter of above-mentioned target template image is obtained;
In the embodiment of the present application, above-mentioned geometrical relationship parameter is specially above-mentioned target template image relative to above-mentioned target
The geometrical relationship parameter of image is read, including such as translation, scaling, rotation equiaffine transformation parameter.
At step 104, it is based on above-mentioned geometrical relationship parameter, the graduation mark feature of above-mentioned target template image is passed through several
What transformed mappings to above-mentioned target is read in image, so that above-mentioned graduation mark feature association is to above-mentioned instrument board to be read;
In the embodiment of the present application, above-mentioned graduation mark feature refers to the spy of the outer point of each scale on graduation mark
Sign.After obtaining above-mentioned geometrical relationship parameter, translation, scaling, the rotation that can be included by above-mentioned geometrical relationship parameter
The graduation mark feature of above-mentioned target template image is mapped to above-mentioned target reading figure by geometric transformation by equiaffine transformation parameter
It as in, namely is read in image in above-mentioned target and portrays graduation mark feature again for instrument board to be read, so that above-mentioned graduation mark
Feature is associated with above-mentioned instrument board to be read.Above-mentioned graduation mark feature is specifically made of multiple calibration points, due to instrument board
It is generally circular, thus the usually arc-shaped graduation mark that above-mentioned calibration points are constituted.
In step 105, after reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, according to above-mentioned scale
Line feature reads the reading that above-mentioned target reads instrument board to be read in image.
In the embodiment of the present application, it after reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, may make
Above-mentioned target reads image and has clearly graduation mark, reads quarter pointed by the pointer of above-mentioned instrument board to be read based on this
Degree, obtains the reading of instrument board to be read.
Therefore in the embodiment of the present application, image can will be read with target by geometric transformation parameter to match the most
Template image graduation mark Feature Mapping into the image of instrument board to be read so that above-mentioned target read image have clearly
Graduation mark feature after read the reading that above-mentioned target reads instrument board to be read in image again, realize the original based on machine vision
The automatic reading for reading instrument board of reason, it is no longer necessary to manually instrument board is read out, improve the standard of reading to a certain extent
Exactness.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Embodiment two
On the basis of example 1, the embodiment of the present application two provides another instrument board read method.Below to this
Another instrument board read method that application embodiment two provides is described, referring to Fig. 2, the instrument in the embodiment of the present application two
Dial plate read method includes:
In step 201, it obtains target and reads image, wherein it includes instrument board to be read that above-mentioned target, which reads image,
Image;
In step 202, above-mentioned target is read image to match with preset more than one template image, is obtained
Target template image, wherein above-mentioned target template image is to read the highest template image of images match degree with above-mentioned target;
In step 203, the geometrical relationship parameter of above-mentioned target template image is obtained;
In step 204, it is based on above-mentioned geometrical relationship parameter, the graduation mark feature of above-mentioned target template image is passed through several
What transformed mappings to above-mentioned target is read in image, so that above-mentioned graduation mark feature is associated with above-mentioned instrument board to be read;
In step 205, after reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, according to above-mentioned scale
Line feature reads the reading that above-mentioned target reads instrument board to be read in image;
In the embodiment of the present application, above-mentioned steps 201,202,203,204 and 205 respectively with above-mentioned steps 101,102,
103,104 and 105 is same or similar, and for details, reference can be made to the associated descriptions of above-mentioned steps 201,202,203,204 and 205, herein
It repeats no more.
In step 206, read access time when reading above-mentioned instrument board to be read is obtained;
In the embodiment of the present application, if it is the camera or monitoring camera by electronic equipment that above-mentioned target, which reads image,
Head is obtained and is read in real time, then can after being read to above-mentioned instrument board to be read, further obtain read it is above-mentioned to
Read read access time when instrument board;Optionally, since the reading process of above-mentioned steps 201 to 205 can occupy certain reading
Time, that is, above-mentioned reading process will lead to certain time-delay, thus in order to more accurately record above-mentioned instrument board to be read
The relationship of reading and time can record the acquisition that the target reads image after the step of above-mentioned acquisition target reads image
Time.
In step 207, result will be read and above-mentioned read access time is stored in the reading result of above-mentioned instrument board to be read
In record sheet.
In the embodiment of the present application, reading associated with above-mentioned instrument board to be read can be created in above-mentioned electronic equipment
Result record sheet is taken, recording the reading and the relationship of time of above-mentioned instrument board to be read, namely records above-mentioned instrument to be read
The variation tendency of parameter represented by dial plate.Optionally, before above-mentioned steps 207, above-mentioned electronic equipment can first be detected
It is local with the presence or absence of reading result record sheet associated with above-mentioned instrument board to be read, if so, above-mentioned step can be executed directly
Rapid 207, if it is not, then localling create reading result record sheet associated with above-mentioned instrument board to be read in above-mentioned electronic equipment
Afterwards, above-mentioned steps 207 are being executed.It optionally, can also if the acquisition time that target reads image is also recorded in step 206
Above-mentioned acquisition event to be stored in above-mentioned reading result record sheet.
Therefore in the embodiment of the present application, image can will be read with target by geometric transformation parameter to match the most
Template image graduation mark Feature Mapping into the image of instrument board to be read so that above-mentioned target read image have clearly
Graduation mark feature after read the reading that above-mentioned target reads instrument board to be read in image again, realize the original based on machine vision
The automatic reading for reading instrument board of reason, it is no longer necessary to manually instrument board is read out, improve the standard of reading to a certain extent
Exactness.At the same time it can also by read access time and read result and be recorded in reading result associated with above-mentioned instrument board to be read
In record sheet, to record the variation tendency of parameter represented by above-mentioned instrument board to be read.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Embodiment three
On the basis of example 1, the embodiment of the present application three provides another instrument board read method.Below to this
Another instrument board read method that application embodiment three provides is described, referring to Fig. 3, the instrument in the embodiment of the present application three
Dial plate read method includes:
In step 301, it obtains target and reads image, wherein it includes instrument board to be read that above-mentioned target, which reads image,
Image;
In step 302, above-mentioned target is read image to match with preset more than one template image, is obtained
Target template image, wherein above-mentioned target template image is to read the highest template image of images match degree with above-mentioned target;
In step 303, the geometrical relationship parameter of above-mentioned target template image is obtained;
In step 304, it is based on above-mentioned geometrical relationship parameter, the graduation mark feature of above-mentioned target template image is passed through several
What transformed mappings to above-mentioned target is read in image, so that above-mentioned graduation mark feature association is to above-mentioned instrument board to be read;
In step 305, after reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, according to above-mentioned scale
Line feature reads the reading that above-mentioned target reads instrument board to be read in image.
In the embodiment of the present application, above-mentioned steps 301,302,303,304 and 305 respectively with above-mentioned steps 101,102,
103,104 and 105 is same or similar, and for details, reference can be made to the associated descriptions of above-mentioned steps 101,102,103,104 and 105, herein
It repeats no more.
Within step 306, starting timer starts timing;
In the embodiment of the present application, although after reading above-mentioned instrument board to be read, so that it may directly casting language
Pronunciation take as a result, but due to not screened to the reading result, not can guarantee above-mentioned reading the result is that at steady state
Reading result read namely above-mentioned may be subjected to the influence of noise and larger with true value gap.It, can be with based on this
The timer for first starting electronic equipment after reading above-mentioned instrument board to be read carries out timing, and start to detect it is above-mentioned to
Whether the pointer for reading instrument board is maintained at stable state.
In step 307, if after above-mentioned timer starts timing, the pointer of above-mentioned instrument board to be read keeps stablizing,
Then after timing time reaches preset time, voice broadcast reads result.
In the embodiment of the present application, after above-mentioned timer starts timing, if the pointer of above-mentioned instrument board to be read can
It is lasting keep stablizing, then it is believed that above-mentioned reading the result is that read at steady state, can be reached in timing time
After preset time, voice broadcast reads result.Optionally, it is not sent out in the camera position of electronic equipment or monitoring camera position
Under the premise of raw change, whether the pointer of the above-mentioned above-mentioned instrument board to be read of detection is maintained at stable state, comprising: obtains in real time
Target reads image;The target for calculating adjacent two frame reads the similarity of image;If similarity is greater than preset similarity threshold,
Then determine that the pointer of above-mentioned instrument board to be read keeps stablizing.
Therefore in the embodiment of the present application, image can will be read with target by geometric transformation parameter to match the most
Template image graduation mark Feature Mapping into the image of instrument board to be read so that above-mentioned target read image have clearly
Graduation mark feature after read the reading that above-mentioned target reads instrument board to be read in image again, realize the original based on machine vision
The automatic reading for reading instrument board of reason, it is no longer necessary to manually instrument board is read out, improve the standard of reading to a certain extent
Exactness.And when determination is read the result is that being read under the stable state of instrument board to be read, pass through voice broadcast
Above-mentioned reading result informs user in time.
Optionally, in above-described embodiment one, embodiment two and embodiment three, above-mentioned steps step 102,202 and 302 are wrapped
It includes:
Obtain the size of above-mentioned template image;
It is read in image in above-mentioned target and search window is set, wherein the size of above-mentioned search window is greater than above-mentioned template image
Size;
The edge of the template image of the edge image and said one of above-mentioned search window or more is obtained by preset operator
Image;
The edge image of above-mentioned search window is matched with the edge image of the above template image of said one.
Wherein, the size of above-mentioned search window can be arranged to 1.2 times to 1.4 times of the size of above-mentioned template image, above-mentioned
Preset operator is specially canny edge detection operator, and above-mentioned canny edge detection operator can be used to detect in above-mentioned search window
Edge image and above-mentioned template image edge image.Specifically, above-mentioned edge image refers to graduation mark in instrument board
The image that the outer point of each scale is constituted, namely can consider the figure that above-mentioned edge image is made of graduation mark feature
Picture.It, can be by when being matched the edge image of above-mentioned search window with the edge image of the above template image of said one
Point be compared, that is, the outer point for each scale for being included by the edge image of search window one by one with the side of template image
The outer point for each scale that edge image is included is compared, and checks the edge image and above-mentioned template drawing of above-mentioned search window
Whether the edge image of picture can coincide, and registration is matching degree.
Optionally, in above-described embodiment one, embodiment two and embodiment three, above-mentioned steps 105,205 and 305 include:
Circular curve is obtained based on above-mentioned graduation mark feature fitting;
Gray value of image sampling is carried out based on above-mentioned circular curve, obtains the one dimensional image that above-mentioned target reads image;
Read above-mentioned instrument board to be read in position based on above-mentioned pointer in above-mentioned one dimensional image.
Wherein, after reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, in order to improve instrument to be read
The reading accuracy of disk, reads digital degree, can by above-mentioned graduation mark feature you and obtain circular curve, wherein
Above-mentioned circular curve reads the pointer in image with above-mentioned target and intersects, and the reading of the intersection point is the reading of instrument board to be read
Number.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Example IV
The embodiment of the present application four provides a kind of instrument board reading device, and above-mentioned instrument board reading device can be integrated in electronics
In equipment, as shown in figure 4, the instrument board reading device 400 in the embodiment of the present application includes:
Target reads image acquisition unit 401, reads image for obtaining target, wherein above-mentioned target reads image packet
Image containing instrument board to be read;
Target template image acquiring unit 402, for above-mentioned target to be read image and preset more than one template
Image is matched, and target template image is obtained, wherein above-mentioned target template image is to read images match degree with above-mentioned target
Highest template image;
Geometrical relationship parameter acquiring unit 403, for obtaining the geometrical relationship parameter of above-mentioned target template image;
Graduation mark Feature Mapping unit 404, for being based on above-mentioned geometrical relationship parameter, by the quarter of above-mentioned target template image
Degree line feature maps to above-mentioned target by geometric transformation and reads in image, so that above-mentioned graduation mark feature association continues to above-mentioned
Take instrument board;
Reading unit 405 is used for after reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, according to above-mentioned
Graduation mark feature reads the reading that above-mentioned target reads instrument board to be read in image.
Optionally, above-mentioned target reads image acquisition unit 401, continues specifically for being captured by camera comprising above-mentioned
The image for taking instrument board will capture obtained above-mentioned image and read image as target.
Optionally, above-mentioned target template image acquiring unit 402, comprising:
Size obtains subelement, for obtaining the size of above-mentioned template image;
Subelement is arranged in search window, search window is arranged for reading in image in above-mentioned target, wherein above-mentioned search window
Size is greater than the size of above-mentioned template image;
Edge image obtains subelement, for obtaining the edge image and above-mentioned one of above-mentioned search window by preset operator
The edge image of a above template image;
Edge image coupling subelement, by the edge of the edge image of above-mentioned search window and the above template image of said one
Image is matched.
Optionally, above-mentioned reading unit 405, comprising:
Subelement is fitted, for obtaining circular curve based on above-mentioned graduation mark feature fitting, wherein above-mentioned circular curve with
Above-mentioned target reads the pointer intersection in image;
One dimensional image obtains subelement, for carrying out gray value of image sampling based on above-mentioned circular curve, obtains above-mentioned mesh
Mark reads the one dimensional image of image;
Instrument board reading subunit reads above-mentioned instrument to be read for the position based on above-mentioned pointer in above-mentioned one dimensional image
Dial plate.
Optionally, above-mentioned instrument board reading device 400 further include:
Read access time acquiring unit, idiom obtain read access time when reading above-mentioned instrument board to be read;
Recording unit is stored in for that will read result and above-mentioned read access time to the reading result of above-mentioned instrument board to be read
In record sheet.
Optionally, above-mentioned instrument board reading device 400 further include:
Timing unit starts timing for starting timer;
Unit is broadcasted, if the pointer of above-mentioned instrument board to be read keeps stablizing for after above-mentioned timer starts timing,
Then after timing time reaches preset time, voice broadcast reads result.
Therefore in the embodiment of the present application, instrument board reading device can will be read by geometric transformation parameter with target
Take the graduation mark Feature Mapping of image template image the most matched into the image of instrument board to be read, so that above-mentioned target is read
The reading that above-mentioned target reads instrument board to be read in image is read after taking image to have clearly graduation mark feature again, realizes base
The reading of instrument board is read automatically in the principle of machine vision, it is no longer necessary to is manually read out to instrument board, to a certain extent
Improve the accuracy of reading.
Embodiment five
The embodiment of the present application five provides a kind of electronic equipment, referring to Fig. 5, the electronic equipment packet in the embodiment of the present application
Include: memory 501 and is stored on memory 501 and can locate one or more processors 502 (only showing one in Fig. 5)
The computer program run on reason device.Wherein: for memory 501 for storing software program and module, processor 502 passes through fortune
Row is stored in the software program and unit of memory 501, thereby executing various function application and data processing, on obtaining
State the corresponding resource of predeterminable event.Specifically, processor 502 is stored in the above-mentioned computer program of memory 501 by operation
When perform the steps of
It obtains target and reads image, wherein above-mentioned target reads the image that image includes instrument board to be read;
Above-mentioned target is read image to match with preset more than one template image, obtains target template drawing
Picture, wherein above-mentioned target template image is to read the highest template image of images match degree with above-mentioned target;
Obtain the geometrical relationship parameter of above-mentioned target template image;
Based on above-mentioned geometrical relationship parameter, the graduation mark feature of above-mentioned target template image is mapped to by geometric transformation
Above-mentioned target is read in image, so that above-mentioned graduation mark feature association is to above-mentioned instrument board to be read;
After reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, read according to above-mentioned graduation mark feature
State the reading that target reads instrument board to be read in image.
Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment
Second of possible embodiment in, above-mentioned acquisition target reads image, comprising:
The image comprising above-mentioned instrument board to be read is captured by camera, obtained above-mentioned image will be captured as target
Read image.
It, will be upper in the third the possible embodiment provided based on the first above-mentioned possible embodiment
Target reading image is stated to be matched with preset more than one template image, comprising:
Obtain the size of above-mentioned template image;
It is read in image in above-mentioned target and search window is set, wherein the size of above-mentioned search window is greater than above-mentioned template image
Size;
The edge image of above-mentioned search window and the edge graph of the above template image of said one are obtained by preset operator
Picture;
The edge image of above-mentioned search window is matched with the edge image of the above template image of said one.
It is above-mentioned in the 4th kind of possible embodiment provided based on the first above-mentioned possible embodiment
After reading above-mentioned graduation mark Feature Mapping to above-mentioned target in image, reads above-mentioned target and read instrument to be read in image
The reading of disk, comprising:
Circular curve is obtained based on above-mentioned graduation mark feature fitting, wherein above-mentioned circular curve and above-mentioned target read and scheme
Pointer intersection as in;
Gray value of image sampling is carried out based on above-mentioned circular curve, obtains the one dimensional image that above-mentioned target reads image;
Read above-mentioned instrument board to be read in position based on above-mentioned pointer in above-mentioned one dimensional image.
Based on the first above-mentioned possible embodiment or above-mentioned second of possible embodiment is as base
Plinth is perhaps based on the third above-mentioned possible embodiment or based on above-mentioned 4th kind of possible embodiment
And in the 5th kind of possible embodiment provided, above-mentioned graduation mark Feature Mapping to above-mentioned target is being read into image above-mentioned
In after, read above-mentioned target and read in image after the reading of instrument board to be read, processor 502 is stored in storage by operation
It is also performed the steps of when the above-mentioned computer program of device 501
Obtain read access time when reading above-mentioned instrument board to be read;
Result will be read and above-mentioned read access time is stored in into the reading result record sheet of above-mentioned instrument board to be read.
Based on the first above-mentioned possible embodiment or above-mentioned second of possible embodiment is as base
Plinth is perhaps based on the third above-mentioned possible embodiment or based on above-mentioned 4th kind of possible embodiment
And in the 6th kind of possible embodiment provided, above-mentioned graduation mark Feature Mapping to above-mentioned target is being read into image above-mentioned
In after, read above-mentioned target and read in image after the reading of instrument board to be read, processor 502 is stored in storage by operation
It is also performed the steps of when the above-mentioned computer program of device 501
Starting timer starts timing;
If the pointer of above-mentioned instrument board to be read keeps stablizing, then in timing time after above-mentioned timer starts timing
After reaching preset time, voice broadcast reads result.
Further, as shown in figure 5, above-mentioned electronic equipment may also include that one or more input equipments 503 (only show in Fig. 5
One out) and one or more output equipments 504 (one is only shown in Fig. 5).Memory 501, processor 502, input equipment
503 and output equipment 504 connected by bus 505.
It should be appreciated that in the embodiment of the present application, alleged processor 502 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..
Input equipment 503 may include keyboard, Trackpad, fingerprint adopt sensor (for acquire user finger print information and
The directional information of fingerprint), microphone etc., output equipment 504 may include display, loudspeaker etc..
Memory 501 may include read-only memory and random access memory, and provide instruction sum number to processor 502
According to.Part or all of memory 501 can also include nonvolatile RAM.For example, memory 501 may be used also
With the information of storage device type.
Therefore in the embodiment of the present application, electronic equipment can will read image with target by geometric transformation parameter
The graduation mark Feature Mapping of template image the most matched is into the image of instrument board to be read, so that above-mentioned target reads image
Have and read the reading that above-mentioned target reads instrument board to be read in image after clearly graduation mark feature again, realizes and be based on machine
The principle of vision reads the reading of instrument board automatically, it is no longer necessary to manually be read out to instrument board, improve to a certain extent
The accuracy of reading.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of above-mentioned apparatus is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or external equipment software and electronic hardware.These functions are studied carefully
Unexpectedly it is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technique people
Member can use different methods to achieve the described function each specific application, but this realization is it is not considered that super
Scope of the present application out.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, system embodiment described above is only schematical, for example, the division of above-mentioned module or unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with
In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling or direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or
Communication connection can be electrical property, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the application realizes above-described embodiment method
In all or part of the process, relevant hardware can also be instructed to complete by computer program, above-mentioned computer journey
Sequence can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each
The step of embodiment of the method.Wherein, above-mentioned computer program includes computer program code, and above-mentioned computer program code can be with
For source code form, object identification code form, executable file or certain intermediate forms etc..Above-mentioned computer readable storage medium can
With include: can carry above-mentioned computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk,
CD, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that above-mentioned
It is appropriate that the content that computer readable storage medium includes can be carried out according to the requirement made laws in jurisdiction with patent practice
Increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer readable storage medium do not include be electric load
Wave signal and telecommunication signal.
Above above-described embodiment is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of instrument board read method characterized by comprising
It obtains target and reads image, wherein the target reads the image that image includes instrument board to be read;
The target is read image to match with preset more than one template image, obtains target template image,
In, the target template image is to read the highest template image of images match degree with the target;
Obtain the geometrical relationship parameter of the target template image;
Based on the geometrical relationship parameter, the graduation mark feature of the target template image is mapped to by geometric transformation described
Target is read in image, so that the graduation mark feature association is to the instrument board to be read;
After reading the graduation mark Feature Mapping to the target in image, the mesh is read according to the graduation mark feature
Mark reads the reading of instrument board to be read in image.
2. instrument board read method as described in claim 1, which is characterized in that the acquisition target reads image, comprising:
The image comprising the instrument board to be read is captured by camera, obtained described image will be captured and read as target
Image.
3. instrument board read method as described in claim 1, which is characterized in that the target is read image and preset one
A above template image is matched, comprising:
Obtain the size of the template image;
It is read in image in the target and search window is set, wherein the size of described search window is greater than the ruler of the template image
It is very little;
The edge image of described search window and the edge image of one above template image are obtained by preset operator;
The edge image of described search window is matched with the edge image of one above template image.
4. instrument board read method as described in claim 1, which is characterized in that it is described by the graduation mark Feature Mapping extremely
After the target is read in image, the reading that the target reads instrument board to be read in image is read, comprising:
Circular curve is obtained based on the graduation mark feature fitting, wherein the circular curve and the target are read in image
Pointer intersection;
Gray value of image sampling is carried out based on the circular curve, obtains the one dimensional image that the target reads image;
Read the instrument board to be read in position based on pointer described in the one dimensional image.
5. such as the described in any item instrument board read methods of Claims 1-4, which is characterized in that described by the scale
After line Feature Mapping is read in image to the target, read the target read instrument board to be read in image reading it
Afterwards, the instrument board read method further include:
Obtain read access time when reading the instrument board to be read;
Result will be read and the read access time is stored in into the reading result record sheet of the instrument board to be read.
6. such as the described in any item instrument board read methods of Claims 1-4, which is characterized in that described by the scale
After line Feature Mapping is read in image to the target, read the target read instrument board to be read in image reading it
Afterwards, the instrument board read method further include:
Starting timer starts timing;
If the pointer of the instrument board to be read keeps stablizing after the timer starts timing, then reached in timing time
After preset time, voice broadcast reads result.
7. a kind of instrument board reading device characterized by comprising
Target reads image acquisition unit, reads image for obtaining target, wherein it includes to be read that the target, which reads image,
The image of instrument board;
Target template image acquiring unit, for the target to be read image and preset more than one template image progress
Matching obtains target template image, wherein the target template image is to read the highest sample of images match degree with the target
Plate image;
Geometrical relationship parameter acquiring unit, for obtaining the geometrical relationship parameter of the target template image;
Graduation mark Feature Mapping unit, it is for being based on the geometrical relationship parameter, the graduation mark of the target template image is special
Sign is mapped in target reading image by geometric transformation, so that the graduation mark feature association is to the instrument to be read
Disk;
Reading unit is used for after reading the graduation mark Feature Mapping to the target in image, according to the graduation mark
Feature reads the reading that the target reads instrument board to be read in image.
8. instrument board reading device as claimed in claim 7, which is characterized in that the target template image acquiring unit, packet
It includes:
Size obtains subelement, for obtaining the size of the template image;
Subelement is arranged in search window, search window is arranged for reading in image in the target, wherein the size of described search window
Greater than the size of the template image;
Edge image obtain subelement, for obtained by preset operator described search window edge image and it is one with
The edge image of upper template image;
Edge image coupling subelement, by the edge image of the edge image of described search window and one above template image
It is matched.
9. a kind of electronic equipment, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810981227.7A CN109241892B (en) | 2018-08-27 | 2018-08-27 | Instrument panel reading method, instrument panel reading device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810981227.7A CN109241892B (en) | 2018-08-27 | 2018-08-27 | Instrument panel reading method, instrument panel reading device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109241892A true CN109241892A (en) | 2019-01-18 |
CN109241892B CN109241892B (en) | 2021-01-15 |
Family
ID=65068549
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810981227.7A Active CN109241892B (en) | 2018-08-27 | 2018-08-27 | Instrument panel reading method, instrument panel reading device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109241892B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110414510A (en) * | 2019-07-26 | 2019-11-05 | 华中科技大学 | A kind of readings of pointer type meters bearing calibration |
CN112966719A (en) * | 2021-02-05 | 2021-06-15 | 深圳市优必选科技股份有限公司 | Method and device for recognizing meter panel reading and terminal equipment |
CN113646730A (en) * | 2019-03-28 | 2021-11-12 | 索尼集团公司 | Information processing apparatus, information processing method, and program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657711A (en) * | 2015-02-09 | 2015-05-27 | 中国石油大学(华东) | Robust pointer instrument reading automatic identification method |
CN107239743A (en) * | 2017-05-11 | 2017-10-10 | 安徽慧视金瞳科技有限公司 | A kind of graduation mark reading automatic testing method based on sciagraphy |
CN107610097A (en) * | 2017-08-16 | 2018-01-19 | 深圳市天益智网科技有限公司 | Instrument localization method, device and terminal device |
CN108446717A (en) * | 2018-02-07 | 2018-08-24 | 苏州工业大数据创新中心有限公司 | A kind of board state collection method and system based on image recognition |
-
2018
- 2018-08-27 CN CN201810981227.7A patent/CN109241892B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657711A (en) * | 2015-02-09 | 2015-05-27 | 中国石油大学(华东) | Robust pointer instrument reading automatic identification method |
CN107239743A (en) * | 2017-05-11 | 2017-10-10 | 安徽慧视金瞳科技有限公司 | A kind of graduation mark reading automatic testing method based on sciagraphy |
CN107610097A (en) * | 2017-08-16 | 2018-01-19 | 深圳市天益智网科技有限公司 | Instrument localization method, device and terminal device |
CN108446717A (en) * | 2018-02-07 | 2018-08-24 | 苏州工业大数据创新中心有限公司 | A kind of board state collection method and system based on image recognition |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113646730A (en) * | 2019-03-28 | 2021-11-12 | 索尼集团公司 | Information processing apparatus, information processing method, and program |
CN110414510A (en) * | 2019-07-26 | 2019-11-05 | 华中科技大学 | A kind of readings of pointer type meters bearing calibration |
CN110414510B (en) * | 2019-07-26 | 2021-10-08 | 华中科技大学 | Reading correction method for pointer instrument |
CN112966719A (en) * | 2021-02-05 | 2021-06-15 | 深圳市优必选科技股份有限公司 | Method and device for recognizing meter panel reading and terminal equipment |
CN112966719B (en) * | 2021-02-05 | 2023-12-15 | 深圳市优必选科技股份有限公司 | Method and device for recognizing instrument panel reading and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109241892B (en) | 2021-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106934376B (en) | A kind of image-recognizing method, device and mobile terminal | |
CN108765278B (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN105043271B (en) | Length measurement method and device | |
CN109166156B (en) | Camera calibration image generation method, mobile terminal and storage medium | |
CN109977191B (en) | Problem map detection method, device, electronic equipment and medium | |
CN112052186B (en) | Target detection method, device, equipment and storage medium | |
CN109241892A (en) | A kind of instrument board read method, instrument board reading device and electronic equipment | |
CN112101123B (en) | Attention detection method and device | |
CN111401318B (en) | Action recognition method and device | |
CN108875731A (en) | Target identification method, device, system and storage medium | |
CN112434715B (en) | Target identification method and device based on artificial intelligence and storage medium | |
CN112614085A (en) | Object detection method and device and terminal equipment | |
CN113780201B (en) | Hand image processing method and device, equipment and medium | |
US7031520B2 (en) | Method and system for identifying multiple questionnaire pages | |
CN110443224A (en) | Page turning detection method and device, electronic equipment and storage medium | |
CN110826610A (en) | Method and system for intelligently detecting whether dressed clothes of personnel are standard | |
CN110136153A (en) | A kind of image processing method, equipment and storage medium | |
CN113763348A (en) | Image quality determination method and device, electronic equipment and storage medium | |
CN115170629A (en) | Wound information acquisition method, device, equipment and storage medium | |
CN114581998A (en) | Deployment and control method, system, equipment and medium based on target object association feature fusion | |
CN110084187A (en) | Location recognition method, device, equipment and storage medium based on computer vision | |
CN113298122A (en) | Target detection method and device and electronic equipment | |
CN113158773A (en) | Training method and training device for living body detection model | |
CN113033297A (en) | Object programming method, device, equipment and storage medium | |
CN112287905A (en) | Vehicle damage identification method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |