主权项 |
1. An image-based refractive index measuring system, comprising:
an optical device, arranged for guiding an external light passed through an analyte; and an electronic device, comprising; an image capture module, arranged for generating a first image by capturing the external light source; an image analyze module connected to the image capture module, arranged for receiving the first image and analyzing the first image in order to generate an analytical result comprising a refractive index of the analyte; and a display module connected to the image analyze module, arranged for receiving and displaying the analytical result; wherein, the optical device is detachably engaged to the electronic device, so as to guide the external light into the image capture module, wherein the image analyze module further comprises:
a pixel conversion unit, arranged for converting the first image in order to obtain a second image via a pixel conversion formula;a contrast line space coordinate detection unit connected to the pixel conversion unit, arranged for analyzing the second image in order to obtain a gradient value G of each pixel point (x,y) in the second image, and determining at least one the pixel point (x,y) to be a contrast line characteristic point when the gradient value G of the pixel point (x,y) is greater than a threshold value K, and calculating an average value of each coordinate of all the contrast line characteristic points in the second image to obtain a contrast line of the second image and a contrast line space coordinate thereof;a contrast line space-parameter space coordinate conversion unit connected to the contrast line space coordinate detection unit, arranged for converting all the contrast line characteristic points into a plurality of parameter space coordinate mapping curves according to a coordinate converting formula;a full-pixel parameter space coordinate comparison unit connected to the contrast line space-parameter space coordinate conversion unit, arranged for accumulating the parameter space coordinate mapping curves by an accumulator in order to obtain a maximum parameter space coordinate of the parameter space coordinate mapping curves in a polar coordinate, so as to obtain a slant angle of the contrast line; anda contrast line slant angle determining unit connected to the full-pixel parameter space coordinate unit, arranged for determining whether the slant angle is smaller than a default value predetermined by the contrast line slant angle determining unit;wherein, when the slant angle is smaller than the default value, the refractive index of the analyte is obtained by a refractive index control unit according to a correspondence table of contrast line space coordinate and the refractive index, and when the slant angle is greater than the default value, the display module generates a reminding signal. |