CN108805888B - System for determining position of physical pointer on surface of intelligent watch - Google Patents

System for determining position of physical pointer on surface of intelligent watch Download PDF

Info

Publication number
CN108805888B
CN108805888B CN201810348895.6A CN201810348895A CN108805888B CN 108805888 B CN108805888 B CN 108805888B CN 201810348895 A CN201810348895 A CN 201810348895A CN 108805888 B CN108805888 B CN 108805888B
Authority
CN
China
Prior art keywords
image
line
processor
positioning
pointer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810348895.6A
Other languages
Chinese (zh)
Other versions
CN108805888A (en
Inventor
黄思华
黄树志
范凤华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai DIANYUE Technology Co.,Ltd.
Original Assignee
Shanghai Dianyue 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 Dianyue Technology Co ltd filed Critical Shanghai Dianyue Technology Co ltd
Priority to CN201810348895.6A priority Critical patent/CN108805888B/en
Publication of CN108805888A publication Critical patent/CN108805888A/en
Application granted granted Critical
Publication of CN108805888B publication Critical patent/CN108805888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G04HOROLOGY
    • G04BMECHANICALLY-DRIVEN CLOCKS OR WATCHES; MECHANICAL PARTS OF CLOCKS OR WATCHES IN GENERAL; TIME PIECES USING THE POSITION OF THE SUN, MOON OR STARS
    • G04B19/00Indicating the time by visual means
    • G04B19/04Hands; Discs with a single mark or the like
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention relates to a system for determining the position of an entity pointer on the surface of a smart watch, which comprises a smart phone with an android system and the smart watch; the intelligent watch comprises an MCU and a surface, wherein the surface is a circular surface, and red dots are arranged at the 12-point position of the circular surface; the smart phone comprises a processor and a camera; the camera can shoot the surface of the watch in real time to obtain a video; the camera may be focused at least once per time threshold; the processor comprises an image processing unit, wherein the image processing unit can identify the video, and the identification is to extract the image of the video for image processing; the image processing comprises positioning preprocessing, wherein the positioning preprocessing comprises graying an image to enable the image to generate a 1-channel grayscale image from a 4-channel image, and performing Gaussian filtering processing on the grayscale image to obtain a smooth grayscale image; the processor may perform hough transform image processing on the smooth grayscale image to find a circle in the smooth grayscale image.

Description

System for determining position of physical pointer on surface of intelligent watch
Technical Field
The invention relates to a system for determining the position of a surface pointer, in particular to a system for determining the position of an entity pointer on the surface of an intelligent watch.
Background
At present, the calibration of an intelligent entity pointer watch is troublesome, and the intelligent entity pointer watch needs to be identified by naked eyes and manually adjusted. I developed a method for timing by using a photographed picture, which gives the premise that the recognition of the picture by photographing the picture by a mobile phone is very accurate, and the photographed picture belongs to instant action, and is fixed, and the time is ambulatory during the period of finishing photographing and processing the picture, so that a certain error may exist in the process, and a large amount of correction algorithms are needed for correction.
Disclosure of Invention
Based on the technical problem, the invention provides a system for determining the position of an entity pointer on the surface of an intelligent watch, for a mobile phone with low configuration, the method comprises the steps of identifying and positioning the current position of the pointer from an image by means of mobile phone video shooting, sending the current position and the angle to be adjusted to the watch through Bluetooth, and adjusting the watch to the correct position according to an instruction. The accuracy rate is extremely high according to the test at present. The user experience is improved due to the great convenience of the user.
The specific technical scheme of the invention is as follows:
a system for determining a smart watch surface entity pointer position, the system comprising a smart phone having an android system and a smart watch;
the intelligent watch comprises an MCU and a surface, wherein the surface is a circular surface, and red dots are arranged at the 12-point position of the circular surface;
the smart phone comprises a processor and a camera;
the camera can shoot the surface of the watch in real time to obtain a video; the camera may be focused at least once per time threshold;
the processor comprises an image processing unit, wherein the image processing unit can identify the video, and the identification is to extract the image of the video for image processing; the image processing comprises positioning preprocessing, wherein the positioning preprocessing comprises graying an image to enable the image to generate a 1-channel grayscale image from a 4-channel image, and performing Gaussian filtering processing on the grayscale image to obtain a smooth grayscale image; the processor can perform Hough transform image processing on the smooth gray level image to find out a circle in the smooth gray level image;
the processor presets a first diameter threshold value and a second diameter threshold value, and when the diameter of a circle in the smooth grayscale image is between the first diameter threshold value and the second diameter threshold value, the image processing unit takes the circle with the minimum diameter between the first diameter threshold value and the second diameter threshold value as an outline circle of the circular dial;
the processor can generate a positioning matrix of the outline circle according to the outline circle, cut the extracted image of the video by using the positioning matrix, reserve an image of the video in the positioning matrix of the outline circle, the reserved image is called a positioning image, the center of the positioning image is the center of the outline circle, and the radius of the positioning image is r;
the processor presets a red dot threshold value X, the image processing unit can scan the positioning image to obtain RGB values of each dot of the positioning image, if (R-B) > X and (R-G) > X, the processor judges that the dot is a preset red dot, and a connecting line of the red dot and the circle center is marked as L;
the image processing unit can perform marginalization processing on the positioning image, so that only lines are left in the positioning image; the processor can perform interference elimination processing on the remaining lines, specifically:
calculating the distance d1 from the start point of each line to the center of the positioning image and the distance d2 from the end point to the center of the positioning image, wherein d1 is less than d2, if d1 of the line is less than r/5 and d2 is less than 0.9r, the processor judges that the line is an effective line, otherwise, the line is an interference line; generating a set of effective lines by all the effective lines;
the processor may calculate an included angle between each line in the set and the L, and then classify the included angle, the classification being:
AN included angle between the first line and the L is A1, AN included angle between the second line and the L is A2, AN included angle between the third line and the L is A3, and AN included angle between the N-th line of … … and the L is AN;
if a line segments fall within the angle range of (Ap, Ap + 3), b line segments fall within the angle range of (Aq, Aq + 3), c line segments fall within the angle range of (As, As + 3), and … … h line segments fall within the angle range of (At, At + 3), wherein a + b + c + … … + h = N, Ap, Aq, As, … …, At are all values in a1, a2, A3, … …, AN;
when three hands including an hour hand, a minute hand and a second hand are available, taking three numerical values of a, b, c, … … and h with the largest numerical values, and positioning all lines in corresponding angle ranges of the three numerical values as hand lines;
the processor may perform the following pointer judgment calculation on the pointer line:
if the distance between one point and the circle center in one pointer line is larger than 0.7r and smaller than 0.75r, the line is judged to be a minute pointer line; if the distance between one point and the circle center in one pointer line is larger than 0.3r and smaller than 0.35r, the line is judged to be the pointer line; if the distance between one point and the circle center in one pointer line is larger than 0.8r and smaller than 0.9r, the line is judged to be a second pointer line;
the processor can perform the hand judgment calculation on the extracted video images of the consecutive times of threshold times to form a second hand line set, a minute hand line set and an hour hand line set;
the processor can filter out angles with larger errors in any one of the line sets of the second hand, the minute hand and the hour hand, and the filtering method comprises the following steps:
an included angle between the 1 st line and the L is B1, an included angle between the 2 nd line and the L is B2, an included angle between the 3 rd line and the L is B3, and an included angle between the … … th line and the L is Bn;
if A line segments fall within the angle range of (Bp, Bp + 3), B line segments fall within the angle range of (Bq, Bq + 3), C line segments fall within the angle range of (Bs, Bs + 3), and … … H line segments fall within the angle range of (Bt, Bt + 3), wherein A + B + C + … … + H = n, and Bp, Bq, Bs, … … and Bt are all values in B1, B2, B3, … … and Bn; and taking a value with the largest value in A, B, C, … … and H, positioning all lines in the corresponding angle range of the value as effective lines of the pointer, and calculating the angle average value of all effective lines in the line set as the angle of the pointer to the L.
Further, the time threshold is 1 second.
Further, the processor extracts the image of the video according to a rule, specifically: and numbering the image currently being processed as 0, and extracting each frame of image of the video, or extracting the image with odd number or even number, or extracting the image with the number being multiple of 3, or extracting the image with the number being multiple of 4.
Further, the extraction is performed according to the processing speed of the processor, if the current image is not processed, the sent image is not extracted for identification, and the first frame image is sent to the processor after the current image is processed and then extracted.
Further, the value of X is 50 or 80 or 90. X represents a red point threshold value, the range is 50-90, the red range included by 50 is wide, 90 is strict red, and due to the reason of some mobile phone cameras, the red point may become dark red or other colors close to red, so that X can take 50 or other strict values.
Further, the number threshold is equal to or greater than 7.
Further, the processor calculates the surface time of the intelligent watch according to the angles from the three pointers to the L, and compares the surface time with the actual time to obtain a time difference.
Further, the processor sends the time difference to the smart watch, and the MCU of the smart watch controls the three pointers to adjust the time according to the time difference.
Through the technical scheme, firstly, the position of the pointer of the watch on the surface can be accurately calculated in real time, secondly, the requirement on the android mobile phone processor of the mobile phone is not high, the APP of the mobile phone cannot be changed, and the low-end mobile phone can be very fluent in representation even if the image cannot be rapidly processed by adopting a selective image frame neglecting mode.
Detailed Description
The technical solution of the present invention is explained in detail below.
The invention aims to solve the algorithm problems of image recognition, noise coming and time calibration and the optimization problem of different requirements of the mobile phone processor.
The extraction of the surface pointer has the image extraction, however, due to the problems of light and color in the image extraction, a single picture is difficult to accurately determine the position of the pointer, and the pointer has a very high possibility to move due to the problem of time intervals in the shooting of multiple pictures.
The invention adopts a mode of extracting pictures from the video, the video has continuity, and a plurality of frames of pictures can be extracted from the video within 1 second, and the position of the pointer is basically unchanged when a plurality of frames are processed.
The specific implementation mode is as follows:
a system for determining a smart watch surface entity pointer position, the system comprising a smart phone having an android system and a smart watch;
the intelligent watch comprises an MCU and a surface, wherein the surface is a circular surface, and red dots are arranged at the 12-point position of the circular surface;
the smart phone comprises a processor and a camera;
the camera can shoot the surface of the watch in real time to obtain a video; the camera may be focused at least once per time threshold;
the processor comprises an image processing unit, wherein the image processing unit can identify the video, and the identification is to extract the image of the video for image processing; the image processing comprises positioning preprocessing, wherein the positioning preprocessing comprises graying an image to enable the image to generate a 1-channel grayscale image from a 4-channel image, and performing Gaussian filtering processing on the grayscale image to obtain a smooth grayscale image; the processor can perform Hough transform image processing on the smooth gray level image to find out a circle in the smooth gray level image;
the processor presets a first diameter threshold value and a second diameter threshold value, and when the diameter of a circle in the smooth grayscale image is between the first diameter threshold value and the second diameter threshold value, the image processing unit takes the circle with the minimum diameter between the first diameter threshold value and the second diameter threshold value as an outline circle of the circular dial;
the processor can generate a positioning matrix of the outline circle according to the outline circle, cut the extracted image of the video by using the positioning matrix, reserve an image of the video in the positioning matrix of the outline circle, the reserved image is called a positioning image, the center of the positioning image is the center of the outline circle, and the radius of the positioning image is r;
the processor presets a red dot threshold value X, the image processing unit can scan the positioning image to obtain RGB values of each dot of the positioning image, if (R-B) > X and (R-G) > X, the processor judges that the dot is a preset red dot, and a connecting line of the red dot and the circle center is marked as L;
the image processing unit can perform marginalization processing on the positioning image, so that only lines are left in the positioning image; the processor can perform interference elimination processing on the remaining lines, specifically:
calculating the distance d1 from the start point of each line to the center of the positioning image and the distance d2 from the end point to the center of the positioning image, wherein d1 is less than d2, if d1 of the line is less than r/5 and d2 is less than 0.9r, the processor judges that the line is an effective line, otherwise, the line is an interference line; generating a set of effective lines by all the effective lines;
the processor may calculate an included angle between each line in the set and the L, and then classify the included angle, the classification being:
AN included angle between the first line and the L is A1, AN included angle between the second line and the L is A2, AN included angle between the third line and the L is A3, and AN included angle between the N-th line of … … and the L is AN;
if a line segments fall within the angle range of (Ap, Ap + 3), b line segments fall within the angle range of (Aq, Aq + 3), c line segments fall within the angle range of (As, As + 3), and … … h line segments fall within the angle range of (At, At + 3), wherein a + b + c + … … + h = N, Ap, Aq, As, … …, At are all values in a1, a2, A3, … …, AN;
when three hands including an hour hand, a minute hand and a second hand are available, taking three numerical values of a, b, c, … … and h with the largest numerical values, and positioning all lines in corresponding angle ranges of the three numerical values as hand lines;
the processor may perform the following pointer judgment calculation on the pointer line:
if the distance between one point and the circle center in one pointer line is larger than 0.7r and smaller than 0.75r, the line is judged to be a minute pointer line; if the distance between one point and the circle center in one pointer line is larger than 0.3r and smaller than 0.35r, the line is judged to be the pointer line; if the distance between one point and the circle center in one pointer line is larger than 0.8r and smaller than 0.9r, the line is judged to be a second pointer line;
the processor can perform the hand judgment calculation on the extracted video images of the consecutive times of threshold times to form a second hand line set, a minute hand line set and an hour hand line set;
the processor can filter out angles with larger errors in any one of the line sets of the second hand, the minute hand and the hour hand, and the filtering method comprises the following steps:
an included angle between the 1 st line and the L is B1, an included angle between the 2 nd line and the L is B2, an included angle between the 3 rd line and the L is B3, and an included angle between the … … th line and the L is Bn;
if A line segments fall within the angle range of (Bp, Bp + 3), B line segments fall within the angle range of (Bq, Bq + 3), C line segments fall within the angle range of (Bs, Bs + 3), and … … H line segments fall within the angle range of (Bt, Bt + 3), wherein A + B + C + … … + H = n, and Bp, Bq, Bs, … … and Bt are all values in B1, B2, B3, … … and Bn; and taking a value with the largest value in A, B, C, … … and H, positioning all lines in the corresponding angle range of the value as effective lines of the pointer, and calculating the angle average value of all effective lines in the line set as the angle of the pointer to the L.
Further, the time threshold is 1 second.
Further, the processor extracts the image of the video according to a rule, specifically: and numbering the image currently being processed as 0, and extracting each frame of image of the video, or extracting the image with odd number or even number, or extracting the image with the number being multiple of 3, or extracting the image with the number being multiple of 4.
Further, the extraction is performed according to the processing speed of the processor, if the current image is not processed, the sent image is not extracted for identification, and the first frame image is sent to the processor after the current image is processed and then extracted.
Further, the value of X is 50 or 80 or 90. X represents a red point threshold value, the range is 50-90, the red range included by 50 is wide, 90 is strict red, and due to the reason of some mobile phone cameras, the red point may become dark red or other colors close to red, so that X can take 50 or other strict values.
Further, the number threshold is equal to or greater than 7.
Further, the processor calculates the surface time of the intelligent watch according to the angles from the three pointers to the L, and compares the surface time with the actual time to obtain a time difference.
Further, the processor sends the time difference to the smart watch, and the MCU of the smart watch controls the three pointers to adjust the time according to the time difference.
The method for determining the pointer by the system is as follows:
step one, setting a camera of a mobile phone with an installation system and a processor, so that the camera focuses at least once in a time threshold. Therefore, even if the camera is poor and the configuration is low, at least one frame in every several frames of images of the android phone is a clear image.
Further, in the step one, the time threshold is 1 second.
And step two, the camera shoots the surface of the watch in real time to obtain a video, and the mobile phone identifies the video shot by the camera, wherein the identification is to extract an image of the video for identification.
Further, in the second step, the processor extracts the image of the video according to a rule, specifically: and numbering the image currently being processed as 0, and extracting each frame of image of the video, or extracting the image with odd number or even number, or extracting the image with the number being multiple of 3, or extracting the image with the number being multiple of 4.
Further, in the second step, the extraction is performed according to the processing speed of the processor, and if the current image is not processed, the sent image is skipped over and is not extracted for recognition until the current image is processed and then the first frame image is sent to the processor after the extraction processing is finished.
And thirdly, performing positioning pretreatment on the extracted video image, wherein the positioning pretreatment comprises graying the image to enable the image to generate a 1-channel grayscale image from a 4-channel image, and performing Gaussian filtering treatment on the grayscale image to obtain a smooth grayscale image. When the calculation speed required by the processor is evaluated for multiple times, factors such as light, color and the like are found to have great obstacles to the subsequent extraction of the pointer, so that the conventional 4-channel image is creatively and directly reduced to the 1-channel gray image for processing, the processing speed is high, and the requirement on the performance of the mobile phone is reduced.
And fourthly, the dial plate of the intelligent watch is a round dial plate, and the processor performs Hough transform image processing on the smooth gray level image to find out the round shape in the smooth gray level image.
And fifthly, presetting a first diameter threshold value and a second diameter threshold value by the processor, and taking the circle with the minimum diameter between the first diameter threshold value and the second diameter threshold value as the outline circle of the circular dial plate when the diameter of the circle in the fourth step is between the first diameter threshold value and the second diameter threshold value.
And step six, the processor generates a positioning matrix of the outline circle according to the outline circle, cuts the image of the video extracted in the step two by using the positioning matrix, reserves the image of the video in the positioning matrix of the outline circle, the reserved image is called a positioning image, the circle center of the positioning image is the circle center of the outline circle, and the radius of the positioning image is r.
Step seven, presetting a red point threshold value X by the processor; presetting a red dot at the position of a 12 point of a dial plate of the watch, scanning the positioning image by the processor to obtain the RGB value of each point of the positioning image, if (R-B) > X and (R-G) > X, judging that the point is the preset red dot by the processor, and marking the connecting line of the red dot and the circle center as L.
Further, in the seventh step, the value of X is 50 or 80 or 90. X represents a red point threshold value, the range is 50-90, the red range included by 50 is wide, 90 is strict red, and due to the reason of some mobile phone cameras, the red point may become dark red or other colors close to red, so that X can take 50 or other strict values.
And step eight, performing image marginalization processing on the positioning image to enable the positioning image to only have lines. Since all the hands are straight, only the line needs to be reserved for pertinence.
And step nine, performing interference removal processing on the lines in the step seven, specifically:
calculating the distance d1 from the start point of each line to the center of the positioning image and the distance d2 from the end point to the center of the positioning image, wherein d1 is less than d2, if d1 of the line is less than r/5 and d2 is less than 0.9r, the processor judges that the line is an effective line, otherwise, the line is an interference line; a set of valid lines is generated.
Step ten, calculating an included angle between each line in the set and the L, and then classifying the included angles, wherein the classification is as follows:
AN included angle between the first line and the L is A1, AN included angle between the second line and the L is A2, AN included angle between the third line and the L is A3, and AN included angle between the N-th line of … … and the L is AN;
if a line segments fall within the angle range of (Ap, Ap + 3), b line segments fall within the angle range of (Aq, Aq + 3), c line segments fall within the angle range of (As, As + 3), and … … h line segments fall within the angle range of (At, At + 3), wherein a + b + c + … … + h = N, Ap, Aq, As, … …, At are all values in a1, a2, A3, … …, AN;
when there are three hands of the hour hand, minute hand and second hand, the three numerical values of a, b, c, … …, h with the largest numerical value are taken, and all lines positioned to the corresponding angular ranges of the three numerical values are taken as the hand lines.
Step eleven, calculating the pointer line: if the distance between one point and the circle center in one pointer line is larger than 0.7r and smaller than 0.75r, the line is judged to be a minute pointer line; if the distance between one point and the circle center in one pointer line is larger than 0.3r and smaller than 0.35r, the line is judged to be the pointer line; and if the distance between one point and the circle center in one pointer line is more than 0.8r and less than 0.9r, judging the line as a second hand line.
Step twelve, in the step two, extracting the next frame image, and repeating the step three to the step eleven of the number threshold. The number threshold is 7 or more.
And thirteen, forming a line set of a second hand, a line set of a minute hand and a line set of an hour hand, and filtering out angles with larger errors, wherein in the line set of any hand, the filtering method comprises the following steps:
an included angle between the 1 st line and the L is B1, an included angle between the 2 nd line and the L is B2, an included angle between the 3 rd line and the L is B3, and an included angle between the … … th line and the L is Bn;
if A line segments fall within the angle range of (Bp, Bp + 3), B line segments fall within the angle range of (Bq, Bq + 3), C line segments fall within the angle range of (Bs, Bs + 3), and … … H line segments fall within the angle range of (Bt, Bt + 3), wherein A + B + C + … … + H = n, and Bp, Bq, Bs, … … and Bt are all values in B1, B2, B3, … … and Bn; and taking a value with the largest value in A, B, C, … … and H, positioning all lines in the corresponding angle range of the value as effective lines of the pointer, and calculating the angle average value of all effective lines in the line set as the angle of the pointer to the L.
And the processor calculates the surface time of the intelligent watch according to the angles from the three pointers to the L obtained in the step thirteen, and compares the surface time with the actual time to obtain a time difference. And the processor sends the time difference to the intelligent watch, and the intelligent watch controls the three pointers to adjust the time according to the time difference.
Through the technical scheme, firstly, the position of the pointer of the watch on the surface can be accurately calculated in real time, secondly, the requirement on the android mobile phone processor of the mobile phone is not high, the APP of the mobile phone cannot be changed, and the low-end mobile phone can be very fluent in representation even if the image cannot be rapidly processed by adopting a selective image frame neglecting mode.

Claims (8)

1. A system for determining a smart watch surface entity pointer position, the system comprising a smart phone having an android system and a smart watch;
the intelligent watch comprises an MCU and a surface, wherein the surface is a circular surface, and red dots are arranged at the 12-point position of the circular surface;
the smart phone comprises a processor and a camera;
the camera can shoot the surface of the watch in real time to obtain a video; the camera may be focused at least once per time threshold;
the processor comprises an image processing unit, wherein the image processing unit can identify the video, and the identification is to extract the image of the video for image processing; the image processing comprises positioning preprocessing, wherein the positioning preprocessing comprises graying an image to enable the image to generate a 1-channel grayscale image from a 4-channel image, and performing Gaussian filtering processing on the grayscale image to obtain a smooth grayscale image; the processor can perform Hough transform image processing on the smooth gray level image to find out a circle in the smooth gray level image;
the processor presets a first diameter threshold value and a second diameter threshold value, and when the diameter of a circle in the smooth grayscale image is between the first diameter threshold value and the second diameter threshold value, the image processing unit takes the circle with the minimum diameter between the first diameter threshold value and the second diameter threshold value as an outline circle of the circular dial;
the processor can generate a positioning matrix of the outline circle according to the outline circle, cut the extracted image of the video by using the positioning matrix, reserve an image of the video in the positioning matrix of the outline circle, the reserved image is called a positioning image, the center of the positioning image is the center of the outline circle, and the radius of the positioning image is r;
the processor presets a red dot threshold value X, the image processing unit can scan the positioning image to obtain RGB values of each dot of the positioning image, if (R-B) > X and (R-G) > X, the processor judges that the dot is a preset red dot, and a connecting line of the red dot and the circle center is marked as L;
the image processing unit can perform marginalization processing on the positioning image, so that only lines are left in the positioning image; the processor can perform interference elimination processing on the remaining lines, specifically:
calculating the distance d1 from the start point of each line to the center of the positioning image and the distance d2 from the end point to the center of the positioning image, wherein d1 is less than d2, if d1 of the line is less than r/5 and d2 is less than 0.9r, the processor judges that the line is an effective line, otherwise, the line is an interference line; generating a set of effective lines by all the effective lines;
the processor may calculate an included angle between each line in the set and the L, and then classify the included angle, the classification being:
AN included angle between the first line and the L is A1, AN included angle between the second line and the L is A2, AN included angle between the third line and the L is A3, and AN included angle between the N-th line of … … and the L is AN;
if a line segments fall within the angle range of (Ap, Ap + 3), b line segments fall within the angle range of (Aq, Aq + 3), c line segments fall within the angle range of (As, As + 3), and … … h line segments fall within the angle range of (At, At + 3), wherein a + b + c + … … + h = N, Ap, Aq, As, … …, At are all values in a1, a2, A3, … …, AN;
when three hands including an hour hand, a minute hand and a second hand are available, taking three numerical values of a, b, c, … … and h with the largest numerical values, and positioning all lines in corresponding angle ranges of the three numerical values as hand lines;
the processor may perform the following pointer judgment calculation on the pointer line:
if the distance between one point and the circle center in one pointer line is larger than 0.7r and smaller than 0.75r, the line is judged to be a minute pointer line; if the distance between one point and the circle center in one pointer line is larger than 0.3r and smaller than 0.35r, the line is judged to be the pointer line; if the distance between one point and the circle center in one pointer line is larger than 0.8r and smaller than 0.9r, the line is judged to be a second pointer line;
the processor can perform the hand judgment calculation on the extracted video images of the consecutive times of threshold times to form a second hand line set, a minute hand line set and an hour hand line set;
the processor can filter out angles with larger errors in any one of the line sets of the second hand, the minute hand and the hour hand, and the filtering method comprises the following steps:
an included angle between the 1 st line and the L is B1, an included angle between the 2 nd line and the L is B2, an included angle between the 3 rd line and the L is B3, and an included angle between the … … th line and the L is Bn;
if A line segments fall within the angle range of (Bp, Bp + 3), B line segments fall within the angle range of (Bq, Bq + 3), C line segments fall within the angle range of (Bs, Bs + 3), and … … H line segments fall within the angle range of (Bt, Bt + 3), wherein A + B + C + … … + H = n, and Bp, Bq, Bs, … … and Bt are all values in B1, B2, B3, … … and Bn; and taking a value with the largest value in A, B, C, … … and H, positioning all lines in the corresponding angle range of the value as effective lines of the pointer, and calculating the angle average value of all effective lines in the line set as the angle of the pointer to the L.
2. The system for determining a location of an entity pointer on a smart watch face of claim 1, wherein the time threshold is 1 second.
3. The system according to claim 1, wherein the processor extracts the video image regularly, specifically as follows: and numbering the image currently being processed as 0, and extracting each frame of image of the video, or extracting the image with odd number or even number, or extracting the image with the number being multiple of 3, or extracting the image with the number being multiple of 4.
4. The system of claim 1, wherein the extraction is performed according to a processing speed of the processor, and if the current image is not processed, the transmitted image is identified by skipping and not extracting until a first frame of image is transmitted to the processor after the current image is processed and the extraction is completed.
5. The system for determining the physical hand position on the surface of a smart watch of claim 1, wherein said X value is 50, 80, or 90.
6. The system for determining physical hand positions on a smart watch face according to claim 1, wherein said threshold number of times is greater than or equal to 7.
7. The system of claim 1, wherein said processor calculates a watch face time of said smartwatch based on the angle of three hands to said L, and compares said watch face time to the actual time to obtain a time difference.
8. The system for determining physical pointer locations on a smart watch face according to claim 7, wherein the processor transmits the time difference to the smart watch, and the MCU of the smart watch controls the three pointers to perform time adjustment according to the time difference.
CN201810348895.6A 2018-04-18 2018-04-18 System for determining position of physical pointer on surface of intelligent watch Active CN108805888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810348895.6A CN108805888B (en) 2018-04-18 2018-04-18 System for determining position of physical pointer on surface of intelligent watch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810348895.6A CN108805888B (en) 2018-04-18 2018-04-18 System for determining position of physical pointer on surface of intelligent watch

Publications (2)

Publication Number Publication Date
CN108805888A CN108805888A (en) 2018-11-13
CN108805888B true CN108805888B (en) 2021-12-28

Family

ID=64094338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810348895.6A Active CN108805888B (en) 2018-04-18 2018-04-18 System for determining position of physical pointer on surface of intelligent watch

Country Status (1)

Country Link
CN (1) CN108805888B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805888B (en) * 2018-04-18 2021-12-28 上海电悦科技有限公司 System for determining position of physical pointer on surface of intelligent watch

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260709A (en) * 2015-09-28 2016-01-20 北京石油化工学院 Water meter detecting method, apparatus, and system based on image processing
CN107220645A (en) * 2017-05-24 2017-09-29 河北省计量监督检测研究院 Water meter recognition methods based on dynamic image pro cess
CN108805888A (en) * 2018-04-18 2018-11-13 广东乐芯智能科技有限公司 A kind of system of determining smartwatch surface entity pointer position

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4040046B2 (en) * 2003-03-14 2008-01-30 富士通株式会社 Pointer area detection apparatus, method and program, image association apparatus, method and program, content distribution server, and content distribution method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260709A (en) * 2015-09-28 2016-01-20 北京石油化工学院 Water meter detecting method, apparatus, and system based on image processing
CN107220645A (en) * 2017-05-24 2017-09-29 河北省计量监督检测研究院 Water meter recognition methods based on dynamic image pro cess
CN108805888A (en) * 2018-04-18 2018-11-13 广东乐芯智能科技有限公司 A kind of system of determining smartwatch surface entity pointer position

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于颜色提取方法的仪表彩色指针识别;冀辰宇等;《东北电力大学学报》;20120615(第03期);全文 *

Also Published As

Publication number Publication date
CN108805888A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN107730445B (en) Image processing method, image processing apparatus, storage medium, and electronic device
CN107527324B (en) A kind of pattern distortion antidote of HUD
CN108519734B (en) A kind of system of determining surface pointer position
US9116365B2 (en) Method for determining at least one geometric/physiognomic parameter associated with the mounting of an ophthalmic lens in a spectacle frame worn by a user
CN108111749B (en) Image processing method and device
CN109767467A (en) Image processing method, device, electronic equipment and computer readable storage medium
JP6493787B2 (en) Imaging apparatus, imaging method, and imaging operation control program
WO2021007690A1 (en) Exposure control method, apparatus and movable platform
CN107945135A (en) Image processing method, device, storage medium and electronic equipment
CN109389630B (en) Method and device for determining and registering feature point set of visible light image and infrared image
CN108549845B (en) Method for determining surface pointer position
CN111447372B (en) Control method, device, equipment and medium for brightness parameter adjustment
CN109724537B (en) Binocular three-dimensional imaging method and system
CN108805888B (en) System for determining position of physical pointer on surface of intelligent watch
CN110991297A (en) Target positioning method and system based on scene monitoring
CN110087049A (en) Automatic focusing system, method and projector
CN110090425A (en) A kind of clocking method of middle-distance race campaign
CN114331860A (en) Distorted image correction method and positioning method thereof
CN108682034B (en) Android system-based smart watch entity pointer position determination method
CN111726512B (en) Area focusing method, device, equipment and storage medium
CN113411510B (en) Camera automatic exposure algorithm based on image quality evaluation and red hot forging
CN112446254A (en) Face tracking method and related device
CN109299696B (en) Face detection method and device based on double cameras
CN109840453B (en) Face matching method and device
CN110099207B (en) Effective image calculation method for overcoming camera instability

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210624

Address after: 510000 6 jiahuiyuan, Xintang New World garden, Zengcheng District, Guangzhou City, Guangdong Province

Applicant after: Yu Xiyun

Address before: Room 235, No. 333, jiufo Jianshe Road, Zhongxin Guangzhou Knowledge City, Guangzhou, Guangdong 510000

Applicant before: GUANGDONG LEMOVT INTELLIGENT TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211207

Address after: Building 1, 5500 Yuanjiang Road, Minhang District, Shanghai 201100

Applicant after: Shanghai DIANYUE Technology Co.,Ltd.

Address before: 510000 6 jiahuiyuan, Xintang New World garden, Zengcheng District, Guangzhou City, Guangdong Province

Applicant before: Yu Xiyun

GR01 Patent grant
GR01 Patent grant