CN111528579A - Non-contact foot measuring method based on machine vision - Google Patents

Non-contact foot measuring method based on machine vision Download PDF

Info

Publication number
CN111528579A
CN111528579A CN202010359654.9A CN202010359654A CN111528579A CN 111528579 A CN111528579 A CN 111528579A CN 202010359654 A CN202010359654 A CN 202010359654A CN 111528579 A CN111528579 A CN 111528579A
Authority
CN
China
Prior art keywords
foot
measurement
machine vision
feet
method based
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010359654.9A
Other languages
Chinese (zh)
Inventor
许源平
乔文博
张朝龙
许志杰
冯暄
蒋含
崔陆军
谢攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu University of Information Technology
Original Assignee
Chengdu University of Information Technology
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 Chengdu University of Information Technology filed Critical Chengdu University of Information Technology
Priority to CN202010359654.9A priority Critical patent/CN111528579A/en
Publication of CN111528579A publication Critical patent/CN111528579A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A43FOOTWEAR
    • A43DMACHINES, TOOLS, EQUIPMENT OR METHODS FOR MANUFACTURING OR REPAIRING FOOTWEAR
    • A43D1/00Foot or last measuring devices; Measuring devices for shoe parts
    • A43D1/02Foot-measuring devices
    • A43D1/025Foot-measuring devices comprising optical means, e.g. mirrors, photo-electric cells, for measuring or inspecting feet
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/50Extraction of image or video features by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • AHUMAN NECESSITIES
    • A43FOOTWEAR
    • A43DMACHINES, TOOLS, EQUIPMENT OR METHODS FOR MANUFACTURING OR REPAIRING FOOTWEAR
    • A43D2200/00Machines or methods characterised by special features
    • A43D2200/60Computer aided manufacture of footwear, e.g. CAD or CAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

本发明涉及一种基于机器视觉的非接触式测脚方法,其包括相机标定和视觉测脚,相机标定用于确定测量区域和尺度信息并计算透射变换的参数;视觉测脚在相机标定获得的参数基础上,测量被测人的脚的测量值。本发明基于机器视觉,结合图像处理技术,通过提取脚的完整脚型轮廓实现脚长、脚宽的非接触式测量,不仅大大缩短了测量时间,提高了测量精度,并且具有较强的环境适应能力,可在不同光照环境下正常工作。The invention relates to a non-contact foot measurement method based on machine vision, which includes camera calibration and visual foot measurement. The camera calibration is used to determine measurement area and scale information and to calculate parameters of transmission transformation; the visual measurement foot is obtained from the camera calibration. Based on the parameters, measure the measured value of the person's foot. Based on machine vision and combined with image processing technology, the invention realizes non-contact measurement of foot length and foot width by extracting the complete foot contour of the foot, which not only greatly shortens the measurement time, improves the measurement accuracy, but also has strong environmental adaptability Ability to work normally in different lighting environments.

Description

一种基于机器视觉的非接触式测脚方法A non-contact foot measurement method based on machine vision

技术领域technical field

本发明涉及一种非接触式测脚方法,具体涉及一种基于机器视觉的非接触式测脚方法。The invention relates to a non-contact foot measuring method, in particular to a non-contact foot measuring method based on machine vision.

背景技术Background technique

随着时代的发展和社会的进步,人们对鞋靴舒适度的要求也越来越高,在上个世纪60年代,我国进行了两次全国性的脚型调查,采用人工测量的方法,对25万人的脚型进行了测量和分析,制定了适合中国人的鞋号标准和鞋楦样品,传统的鞋靴按照性别和年龄可划分为男鞋、女鞋和童鞋,按照人脚的长度划分了码数,相邻码数相差5毫米。但是,属于同一码长所对应的脚长区间的脚型形状差异是很大的,即使是同一个人的左右脚也并非是完全镜像对称的,导致单纯依据脚长指标很难确定合适的鞋码。在这种情况下,许多工业生产线正在由大规模批量型生产向用户定制、个性化、小批量型生产转变。鞋靴个性化定制依赖于对脚型特征数据的精确测量,传统的脚型参数测量方法主要是依赖人工测量,这种测量方法不仅效率低下、流程繁琐、人工成本高,而且不同的测量人员,测量的尺寸存在一定的差异,因此不能满足批量测量、精准测量和快速测量的需求。为了解决这一问题,脚型测量渐渐地由接触式测量方式向非接触式测量方式转变,其中,非接触式测量方法主要包括线激光扫描方法和立体视觉方法。With the development of the times and the progress of society, people's requirements for the comfort of shoes and boots are getting higher and higher. In the 1960s, our country conducted two nationwide foot surveys, using manual measurement methods. The foot shape of 250,000 people was measured and analyzed, and shoe size standards and shoe last samples suitable for Chinese were formulated. Traditional shoes and boots can be divided into men's shoes, women's shoes and children's shoes according to gender and age. According to the length of the human foot The yardage is divided, and the adjacent yardage differs by 5 mm. However, the shape of the feet in the foot length range corresponding to the same yard length is very different. Even the left and right feet of the same person are not completely mirror-symmetrical, which makes it difficult to determine the appropriate shoe size based solely on the foot length indicator. . Under this circumstance, many industrial production lines are transforming from large-scale batch production to user-customized, personalized, and small batch production. The personalized customization of shoes and boots relies on the accurate measurement of the characteristic data of the foot shape. The traditional measurement method of foot shape parameters mainly relies on manual measurement. This measurement method is not only inefficient, cumbersome in the process, and high in labor costs, but also with different measurement personnel. There are certain differences in the measured dimensions, so it cannot meet the needs of batch measurement, precise measurement and fast measurement. In order to solve this problem, foot measurement is gradually changing from contact measurement to non-contact measurement, among which non-contact measurement mainly includes line laser scanning method and stereo vision method.

线激光扫描方法的优势在于其有较好的三维测量精度,但是在应用和推广还上存在一些瓶颈,主要是因为目前的三维脚型测量设备价格昂贵,不利于中小型企业使用,其次是由于其扫描时间较长,造成用户体验不佳;基于立体视觉方法也可获取脚型三维信息,即通过图像分析、图像重建等方法构建出三维模型,这个方法最大的特点是拍摄速度快,可以在不到一秒时间内完成拍摄任务,适用于需要快速测量的场合。但是,立体视觉方法需要进行两幅图像的匹配,在物体表面灰度和面形变化不大时,容易影响匹配和测量精度。而且在实际的生活中,仅需要脚长和脚宽的数据就已经能够满足普通用户鞋子选型的需要,其它如弓高、脚围、趾长等尺寸参数虽然也是脚型的特征信息,但对于普通用户的鞋子选型却是几乎没有影响。因此,针对当前自动化、低成本、高精度且操作简便的脚型参数测量需求,本发明基于机器视觉方法,结合图像处理技术,通过全自动地提取脚的完整脚型轮廓实现了脚长和脚宽的非接触式测量。The advantage of the line laser scanning method is that it has better 3D measurement accuracy, but there are still some bottlenecks in application and promotion, mainly because the current 3D foot measurement equipment is expensive, which is not conducive to the use of small and medium-sized enterprises. The scanning time is long, resulting in poor user experience; based on the stereo vision method, the 3D information of the foot shape can also be obtained, that is, the 3D model is constructed by image analysis, image reconstruction and other methods. The shooting task can be completed in less than a second, which is suitable for occasions requiring fast measurement. However, the stereo vision method needs to match two images, and the matching and measurement accuracy are easily affected when the surface grayscale and surface shape of the object change little. Moreover, in real life, only the data of foot length and foot width can meet the needs of ordinary users for shoe selection. Other size parameters such as arch height, foot circumference, and toe length are also characteristic information of foot shape, but It has almost no effect on the selection of shoes for ordinary users. Therefore, in view of the current requirements of automatic, low-cost, high-precision and easy-to-operate foot shape parameter measurement, the present invention is based on the machine vision method, combined with image processing technology, and realizes foot length and foot shape by automatically extracting the complete foot shape contour of the foot. Wide non-contact measurement.

现有技术中采用的有以下两种:There are the following two types in the prior art:

1)线激光脚型测量仪1) Line laser foot measuring instrument

该方案利用红外线扫描技术,通过双目摄像头采集足面轮廓的激光扫描图像,利用扫描仪扫描足底图像,再运用图像处理技术重建脚型和计算脚型参数,从而测量出人脚的长度、高度、宽度、足弓高度等数据(图18)。这种采用线激光扫描的方法对脚型形状进行获取,其优点在于所获取的模型精度较高。但是,在扫描器移动的过程中需要对大量的数据进行存储和处理,从而导致测量时间长,扫描单脚的时间高达10秒左右,造成用户体验不佳。同时,在较长的测量过程中,人脚的位置可能会有微小的移动,这些微小的移动必然会造成测量误差。另外,高品质的激光发生器及其传动装置价格非常昂贵,不利于在中小型企业推广使用。因此,采用线激光扫描测量脚型的方法在应用上受到了限制。The scheme uses infrared scanning technology to collect laser scanning images of the contour of the foot surface through binocular cameras, uses the scanner to scan the images of the soles of the feet, and then uses image processing technology to reconstruct the foot shape and calculate the parameters of the foot shape, so as to measure the length of the human foot, Height, width, arch height and other data (Figure 18). This method of using line laser scanning to acquire the shape of the foot shape has the advantage that the acquired model has high precision. However, a large amount of data needs to be stored and processed during the movement of the scanner, resulting in a long measurement time and a scan time of up to 10 seconds for a single foot, resulting in poor user experience. At the same time, during a long measurement process, the position of the human foot may move slightly, which will inevitably cause measurement errors. In addition, high-quality laser generators and their transmission devices are very expensive, which is not conducive to popularization and use in small and medium-sized enterprises. Therefore, the method of measuring foot shape by line laser scanning is limited in application.

2)基于立体视觉的三维脚型测量技术2) 3D foot measurement technology based on stereo vision

主要通过双目相机从不同角度对脚型图像进行采集,然后利用图像分析、视觉重建和几何处理等手段恢复脚型的三维模型,从而实现对脚型参数的测量。这种基于立体视觉的三维脚型测量方案在图像拍摄时间上有了极大的改善,可在瞬间完成对脚型无盲区的图像采集,避免了因抖动而带来的测量误差。但该方案中的标定技术与立体匹配技术这两个关键技术很容易受到光源的影响,环境适应能力较弱,且人的脚型表面比较光滑,包含的纹理特征较少,标定与匹配精度得不到保证。The foot shape images are collected from different angles mainly through the binocular camera, and then the 3D model of the foot shape is restored by means of image analysis, visual reconstruction and geometric processing, so as to realize the measurement of the foot shape parameters. This stereo vision-based three-dimensional foot measurement solution has greatly improved the image capture time, and can complete the image acquisition of the foot without blind spots in an instant, avoiding measurement errors caused by jitter. However, the two key technologies of calibration technology and stereo matching technology in this scheme are easily affected by the light source, the environmental adaptability is weak, and the surface of the human foot is relatively smooth, which contains less texture features, and the calibration and matching accuracy is good. Not guaranteed.

综上所述,针对目前测脚技术方案中存在的如价格昂贵、测量时间过长、精确度不稳定以及环境适应能力不强的缺陷,测脚技术有必要作进一步改进或创新。To sum up, in view of the defects in the current technical solutions for foot measurement, such as high price, too long measurement time, unstable accuracy and weak environmental adaptability, it is necessary to further improve or innovate the measurement technology.

发明内容SUMMARY OF THE INVENTION

针对上述背景技术中存在的问题,本发明提出了一种基于机器视觉,结合图像处理技术,通过提取脚的完整脚型轮廓实现脚长和脚宽的非接触式测量,不仅大大缩短了测量时间,提高了测量精度,并且具有较强的环境适应能力,可在不同光照环境下正常工作的基于机器视觉的非接触式测脚方法。In view of the problems existing in the above background technology, the present invention proposes a non-contact measurement of foot length and foot width by extracting the complete foot contour of the foot based on machine vision and image processing technology, which not only greatly shortens the measurement time , which improves the measurement accuracy, has strong environmental adaptability, and can work normally in different lighting environments.

本发明的技术方案如下:The technical scheme of the present invention is as follows:

上述的基于机器视觉的非接触式测脚方法,包括相机标定和视觉测脚,相机标定用于确定测量区域和尺度信息并计算透射变换的参数;视觉测脚在相机标定获得的参数基础上,测量被测人的脚的测量值。The above-mentioned non-contact foot measurement method based on machine vision includes camera calibration and visual foot measurement. The camera calibration is used to determine the measurement area and scale information and calculate the parameters of the transmission transformation; the visual foot measurement is based on the parameters obtained by the camera calibration. Measure the measurement of the person's feet.

所述基于机器视觉的非接触式测脚方法,其中:所述被测人的脚的测量值包括脚长和脚宽;所述视觉测脚需保证被测者两脚平行站立,被测者两脚呈内八字站立或外八字站立超过10°会被识别为异常情况;所述视觉测脚时不需要使用标定板,被测者双脚站立在脚踏板上。The non-contact foot measurement method based on machine vision, wherein: the measured value of the measured person's foot includes the foot length and the foot width; Standing with both feet in an inward stance or an outward stance of more than 10° will be identified as an abnormal situation; the visual foot measurement does not require the use of a calibration board, and the subject stands with both feet on the footboard.

所述基于机器视觉的非接触式测脚方法,其中,所述相机标定的主要执行流程为:(1.1)在脚踏板上放置标有特定颜色的标定板;(1.2)使用摄像头拍摄一张带有标定板的图像,然后将该图像从RGB颜色空间转化到HSV颜色空间,通过颜色空间阈值分割方法,将标定板的绿色区域提取出来作为测量区域;(1.3)采用轮廓检测算法找到绿色标定板轮廓,并据此提取到轮廓的四个角点和标定板的实际尺寸,计算图像透视变换矩阵参数和尺度信息;(1.4)保存标定板图像的透射变换矩阵参数和尺度信息。In the non-contact foot measurement method based on machine vision, the main execution process of the camera calibration is: (1.1) placing a calibration board marked with a specific color on the foot pedal; (1.2) using the camera to take a picture The image with the calibration plate, then convert the image from RGB color space to HSV color space, and extract the green area of the calibration plate as the measurement area through the color space threshold segmentation method; (1.3) Use the contour detection algorithm to find the green calibration According to the four corner points of the contour and the actual size of the calibration plate, the image perspective transformation matrix parameters and scale information are calculated; (1.4) The transmission transformation matrix parameters and scale information of the calibration plate image are saved.

所述基于机器视觉的非接触式测脚方法,其中:所述步骤(1.3)中轮廓检测算法采用OpenCV中FindContours()函数。The machine vision-based non-contact foot measurement method, wherein: the contour detection algorithm in the step (1.3) adopts the FindContours() function in OpenCV.

所述基于机器视觉的非接触式测脚方法,其中:所述步骤(1.1)中脚踏板的颜色为红色,标定板为绿色。The non-contact foot measurement method based on machine vision, wherein: in the step (1.1), the color of the foot pedal is red, and the calibration plate is green.

所述基于机器视觉的非接触式测脚方法,其中:所述相机标定只需在测脚前初始化相机过程中进行一次,除非摄像头出现偏移或站脚区域有变动,否则无需再次进行标定。In the non-contact foot measuring method based on machine vision, the camera calibration only needs to be performed once during the camera initialization process before the foot measurement, unless the camera is offset or the foot area changes, the calibration does not need to be performed again.

所述基于机器视觉的非接触式测脚方法,其中:所述视觉测脚的具体处理步骤为:The non-contact foot measurement method based on machine vision, wherein: the specific processing steps of the visual foot measurement are:

(2.1)使用相机拍摄带有待测双脚的图片,且拍摄的图片为斜视图;(2.1) Use a camera to take pictures with the feet to be tested, and the pictures taken are oblique views;

(2.2)根据相机标定获取的参数对上述步骤(2.1)中拍摄的图片进行透射变换,将其转换为俯视图,以确保在俯视图中图片的像素尺度是均匀的,然后根据站脚区域长宽与像素点的比例来计算脚长、脚宽的值;(2.2) Perform a transmission transformation on the picture taken in the above step (2.1) according to the parameters obtained by the camera calibration, and convert it into a top view to ensure that the pixel scale of the picture is uniform in the top view, and then according to the length and width of the foot area and The ratio of pixel points to calculate the value of foot length and foot width;

(2.3)使用Canny算子从透射变换后的图片提取脚的边缘信息,并使用高斯模糊算法去除边缘旁边的噪点,将图片转换为脚的轮廓图,在提取边缘信息时,将Canny算子最大阈值设为0,即保留所有的边缘信息;(2.3) Use the Canny operator to extract the edge information of the foot from the image after transmission transformation, and use the Gaussian blur algorithm to remove the noise next to the edge, and convert the image into the contour map of the foot. When extracting the edge information, the Canny operator is maximized The threshold is set to 0, that is, all edge information is retained;

(2.4)提取到脚的轮廓后,接着提取轮廓的最小外接矩形,提取到左右脚区域的宽度和两个脚的脚尖到区域上边界的距离,并通过最小外接矩形的信息,判断各种测量异常情况;(2.4) After extracting the outline of the foot, then extract the minimum circumscribed rectangle of the outline, extract the width of the left and right foot regions and the distance from the toes of the two feet to the upper boundary of the area, and judge various measurements through the information of the minimum circumscribed rectangle abnormal situation;

(2.5)经过上述步骤(2.1)-(2.4)的处理,可得到检测和距离计算模型,以右脚为例,其中W1代表站脚区域宽度,W2为待测量的右脚宽度,H1为站脚区域的长度,H2为右脚脚尖到区域上边界的距离;C1、C2、D1和D2代表像素点数量;由于W1和H1为已知量,并且像素的尺度固定,可得到脚宽和脚长的计算方式:(2.5) After the processing of the above steps (2.1)-(2.4), the detection and distance calculation model can be obtained, taking the right foot as an example, where W 1 represents the width of the standing foot area, W 2 is the width of the right foot to be measured, H 1 is the length of the standing area, H 2 is the distance from the toe of the right foot to the upper boundary of the area; C 1 , C 2 , D 1 and D 2 represent the number of pixels; since W 1 and H 1 are known quantities, and the pixels The scale is fixed, and the calculation method of foot width and foot length can be obtained:

Figure BDA0002472735550000061
Figure BDA0002472735550000061

Figure BDA0002472735550000062
Figure BDA0002472735550000062

脚的长度为:The length of the foot is:

Hfoot=H1-H2 (6)。H foot = H 1 -H 2 (6).

所述基于机器视觉的非接触式测脚方法,其中,所述步骤(2.4)中判断各种测量异常情况具体包括:In the non-contact foot measurement method based on machine vision, the determination of various abnormal measurement conditions in the step (2.4) specifically includes:

首先,根据检测到最小外接矩形的数量,可以检测到没有放脚和有障碍物的两种异常情况;如果此时没有检测到最小外接矩形,可以判断相机没有采集到带有脚的图像;如果检测到的最小外接矩形大于2个,可以判断采集到的图像有其他类似脚的障碍物;First of all, according to the number of detected minimum circumscribed rectangles, two anomalies such as no feet and obstacles can be detected; if the minimum circumscribed rectangle is not detected at this time, it can be judged that the camera has not captured an image with feet; if If the detected minimum circumscribed rectangle is greater than 2, it can be judged that the collected image has other obstacles similar to feet;

其次,在最小外接矩形数量正确的情况下,可以根据最小外接矩形的角度判断此时被测者的站立情况,若此时矩形角度在10°~45°范围内,则判断此时被测者的脚为内八姿势站立;若此时矩形角度在-80°~-45°范围内,则判断此时被测者的脚为外八姿势站立。Secondly, if the number of the minimum circumscribed rectangles is correct, the standing situation of the tested person can be judged according to the angle of the minimum circumscribed rectangle. If the angle of the rectangle is within the range of -80°~-45°, it is judged that the subject's feet are standing in the outer eight position.

所述基于机器视觉的非接触式测脚方法,其中,所述步骤(2.4)中是使用OpenCV的MinAreaRect()方法提取轮廓的最小外接矩形。In the non-contact foot measurement method based on machine vision, in the step (2.4), the MinAreaRect() method of OpenCV is used to extract the minimum circumscribed rectangle of the contour.

有益效果:Beneficial effects:

本发明基于机器视觉的非接触式测脚方法构思合理,操作流程简单,基于机器视觉,结合图像处理技术,通过提取脚的完整脚型轮廓实现脚长和脚宽的非接触式测量,能有效满足低成本、高效率、高精度的脚型参数测量需求。The non-contact foot measurement method based on machine vision of the present invention has a reasonable conception and simple operation process. Based on machine vision and combined with image processing technology, the non-contact measurement of foot length and foot width can be realized by extracting the complete foot contour of the foot, which can effectively Meet the low-cost, high-efficiency, high-precision foot parameter measurement requirements.

相对于线激光扫描与立体视觉方法,本发明基于机器视觉的非接触式测脚方法是通过光学成像技术,没有涉及到三维匹配等复杂的算法,且对图像处理算法做了优化,因此,本发明基于机器视觉的非接触式测脚方法,不仅大大缩短了测量时间(测量脚的时间为1秒),提高了测量精度(精确度可达到0.2mm),并且具有较强的环境适应能力,可在不同光照环境下正常工作;另外,本发明基于机器视觉的非接触式测脚方法中涉及到的测脚装置结构简单,仅需一个普通摄像头与一块脚踏板便可测量,极大地降低了生产成本,有利于中小企业的推广使用。Compared with line laser scanning and stereo vision methods, the non-contact foot measurement method based on machine vision of the present invention uses optical imaging technology, does not involve complex algorithms such as three-dimensional matching, and optimizes image processing algorithms. The invention of the non-contact foot measurement method based on machine vision not only greatly shortens the measurement time (the time for measuring feet is 1 second), but also improves the measurement accuracy (accuracy can reach 0.2mm), and has strong environmental adaptability, It can work normally in different lighting environments; in addition, the foot measuring device involved in the machine vision-based non-contact foot measuring method of the present invention has a simple structure, and only needs a common camera and a foot pedal to measure, which greatly reduces the It reduces the production cost and is conducive to the promotion and use of small and medium-sized enterprises.

本发明基于机器视觉的非接触式测脚方法,使用单个高精度彩色摄像头采集原始图像,并通过图像处理算法精确提取脚的长宽信息;针对现有测脚技术方案中设备价格昂贵、测量效率较低、精确度不稳定以及环境适应能力不强的缺陷,本发明降低了测量成本并提高了测量效率和精度。另外,通过加入光源,可保证每次采集的图像亮度均匀且充足,提高了环境适应性。The present invention is a non-contact foot measuring method based on machine vision, uses a single high-precision color camera to collect the original image, and accurately extracts the length and width information of the foot through the image processing algorithm. Due to the defects of lower, unstable accuracy and weak environmental adaptability, the invention reduces the measurement cost and improves the measurement efficiency and accuracy. In addition, by adding a light source, it can ensure that the brightness of the image collected each time is uniform and sufficient, and the environmental adaptability is improved.

本发明基于机器视觉的非接触式测脚方法,与现有的测脚方法相比,极大地提高了测量效率,同时保证了测量精度,降低了测量成本,本发明基于机器视觉的非接触式测脚方法中涉及到的测脚装置易维护且使用寿命长。The non-contact foot measuring method based on machine vision of the present invention, compared with the existing foot measuring method, greatly improves the measurement efficiency, at the same time ensures the measurement accuracy and reduces the measurement cost. The foot measuring device involved in the foot measuring method is easy to maintain and has a long service life.

附图说明Description of drawings

图1为本发明基于机器视觉的非接触式测脚方法中相机标定的流程图;Fig. 1 is the flow chart of camera calibration in the non-contact foot measuring method based on machine vision of the present invention;

图2为本发明基于机器视觉的非接触式测脚方法中相机标定的步骤(1.2)中标定板拍摄原图;Fig. 2 is the original picture taken by the calibration plate in step (1.2) of camera calibration in the non-contact foot measuring method based on machine vision of the present invention;

图3为本发明基于机器视觉的非接触式测脚方法中相机标定的步骤(1.2)中绿色标定板区域示意图;3 is a schematic diagram of the green calibration plate area in step (1.2) of camera calibration in the non-contact foot measuring method based on machine vision of the present invention;

图4为本发明基于机器视觉的非接触式测脚方法中相机标定的步骤(1.3)中角点检测图;FIG. 4 is a corner detection diagram in step (1.3) of camera calibration in the non-contact foot measurement method based on machine vision of the present invention;

图5为本发明基于机器视觉的非接触式测脚方法中视觉测脚的流程图;Fig. 5 is the flow chart of visual foot measurement in the non-contact foot measurement method based on machine vision of the present invention;

图6为本发明基于机器视觉的非接触式测脚方法中视觉测脚的步骤(2.1)中带脚拍摄原图片;6 is the original picture taken with feet in step (2.1) of visual foot measurement in the non-contact foot measurement method based on machine vision of the present invention;

图7为本发明基于机器视觉的非接触式测脚方法中视觉测脚的步骤(2.2)中透视变换后的俯视图片;Fig. 7 is the top view picture after perspective transformation in step (2.2) of visual foot measurement in the non-contact foot measurement method based on machine vision of the present invention;

图8为本发明基于机器视觉的非接触式测脚方法中视觉测脚的步骤(2.3)中脚轮廓图;Fig. 8 is a foot outline diagram in step (2.3) of visual foot measurement in the non-contact foot measurement method based on machine vision of the present invention;

图9为本发明基于机器视觉的非接触式测脚方法中视觉测脚的步骤(2.4)中最小外接矩形图;9 is a minimum circumscribed rectangle diagram in step (2.4) of visual foot measurement in the non-contact foot measurement method based on machine vision of the present invention;

图10为本发明基于机器视觉的非接触式测脚方法中视觉测脚的步骤(2.5)中距离计算示意图;10 is a schematic diagram of distance calculation in step (2.5) of visual foot measurement in the non-contact foot measurement method based on machine vision of the present invention;

图11为本发明基于机器视觉的非接触式测脚方法中视觉测脚的实施流程图;11 is a flowchart of the implementation of visual foot measurement in the non-contact foot measurement method based on machine vision of the present invention;

图12为本发明基于机器视觉的非接触式测脚方法的实例一中的低亮度站脚图;12 is a low-brightness stance diagram in Example 1 of the machine vision-based non-contact foot measurement method of the present invention;

图13为本发明基于机器视觉的非接触式测脚方法的实例一中的低亮度脚型框图;13 is a block diagram of a low-brightness foot shape in Example 1 of the machine vision-based non-contact foot measurement method of the present invention;

图14为本发明基于机器视觉的非接触式测脚方法的实例二中的中亮度站脚图;14 is a middle-brightness stance diagram in Example 2 of the non-contact foot measurement method based on machine vision of the present invention;

图15为本发明基于机器视觉的非接触式测脚方法的实例二中的中亮度脚型框图;15 is a block diagram of a mid-brightness foot shape in Example 2 of the machine vision-based non-contact foot measurement method of the present invention;

图16为本发明基于机器视觉的非接触式测脚方法的实例三中的高亮度站脚图;FIG. 16 is a high-brightness standing foot diagram in Example 3 of the non-contact foot measurement method based on machine vision of the present invention;

图17为本发明基于机器视觉的非接触式测脚方法的实例三中的高亮度脚型框图;17 is a block diagram of a high-brightness foot shape in Example 3 of the machine vision-based non-contact foot measurement method of the present invention;

图18为现有的线激光脚型测量仪的结构示意图。FIG. 18 is a schematic structural diagram of a conventional line laser foot type measuring instrument.

具体实施方式Detailed ways

下面结合附图对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments.

本发明基于机器视觉的非接触式测脚方法,包括相机标定和视觉测脚,相机标定用于确定测量区域和尺度信息,同时由于大部分测脚装置都无法垂直安装摄像头,相机标定还需要计算透射变换的参数;视觉测脚在相机标定获得的参数基础上,测量被测人的脚的测量值(包括脚长和脚宽),为保证测量精度,视觉测脚需要保证被测者两脚平行站立(内八字站立或外八字站立超过10°会被识别为异常情况);本发明的图像处理算法可以使用OpenCV实现。The non-contact foot measurement method based on machine vision of the present invention includes camera calibration and visual foot measurement. The camera calibration is used to determine the measurement area and scale information. At the same time, because most foot measurement devices cannot install the camera vertically, the camera calibration also needs to be calculated. The parameters of transmission transformation; based on the parameters obtained by camera calibration, the visual measuring foot measures the measured value of the subject's feet (including foot length and foot width). Parallel standing (inner stance or outer stance over 10° will be identified as abnormal); the image processing algorithm of the present invention can be implemented using OpenCV.

如图1所示,上述的相机标定的主要执行流程为:As shown in Figure 1, the main execution flow of the above camera calibration is as follows:

(1.1)在脚踏板上放置标有特定颜色的标定板;在本发明中,脚踏板的颜色为红色,标定板为绿色,也可以采用其它可区分的颜色;(1.1) Place a calibration board marked with a specific color on the foot pedal; in the present invention, the color of the foot pedal is red, and the calibration board is green, and other distinguishable colors can also be used;

(1.2)使用摄像头拍摄一张带有标定板的图像(如图2所示),然后将该图像从RGB(Red,Green,Blue)颜色空间转化到HSV(Hue,Saturation,Value)颜色空间,通过颜色空间阈值分割方法,将标定板的绿色区域提取出来(如图3所示),该区域即为测量区域;(1.2) Use the camera to take an image with a calibration board (as shown in Figure 2), and then convert the image from the RGB (Red, Green, Blue) color space to the HSV (Hue, Saturation, Value) color space, Through the color space threshold segmentation method, the green area of the calibration plate is extracted (as shown in Figure 3), and this area is the measurement area;

(1.3)采用轮廓检测算法(OpenCV中FindContours()函数)找到绿色标定板轮廓,并据此提取到轮廓的四个角点(如图4所示)和标定板的实际尺寸,计算图像透视变换矩阵参数和尺度信息;(1.3) Use the contour detection algorithm (FindContours() function in OpenCV) to find the outline of the green calibration plate, and then extract the four corner points of the contour (as shown in Figure 4) and the actual size of the calibration plate, and calculate the image perspective transformation matrix parameters and scale information;

(1.4)保存透射变换矩阵参数和尺度信息。(1.4) Save transmission transformation matrix parameters and scale information.

上述的相机标定只需在测脚前初始化相机过程中进行一次,除非摄像头出现偏移或站脚区域有变动,否则无需再次进行标定。The above camera calibration only needs to be performed once during the camera initialization process before the foot measurement. Unless the camera is offset or the foot area changes, there is no need to perform the calibration again.

上述的视觉测脚时不需要使用标定板,被测者双脚站立在红色(也可使用其它颜色)的脚踏板上;The above-mentioned visual foot measurement does not require the use of a calibration board, and the subject stands with both feet on the red (other colors can also be used) footboards;

如图5所示,上述的视觉测脚的流程主要处理步骤为:As shown in Figure 5, the main processing steps of the above-mentioned visual foot measurement process are:

(2.1)使用相机拍摄带有待测双脚的图片,如图6所示,拍摄的图片为斜视图。(2.1) Use the camera to take a picture with the feet to be tested, as shown in Figure 6, the picture taken is an oblique view.

(2.2)根据相机标定获取的参数对上述步骤(2.1)中拍摄的图片进行透射变换,将其转换为俯视图(如图7),从而可以确保在俯视图中,图片的像素尺度是均匀的,因此可根据站脚区域长宽与像素点的比例来计算脚长、脚宽的值(即步骤2.5中的W2、H2)。(2.2) Perform a transmission transformation on the picture taken in the above step (2.1) according to the parameters obtained by the camera calibration, and convert it into a top view (as shown in Figure 7), so as to ensure that in the top view, the pixel scale of the picture is uniform, so The values of foot length and foot width (ie, W 2 and H 2 in step 2.5) can be calculated according to the ratio of the length and width of the standing foot area to the pixel points.

(2.3)使用Canny算子从透射变换后的图片提取脚的边缘信息,并使用高斯模糊去除边缘旁边的噪点;将图片转换为脚的轮廓图(如图8所示);在提取边缘信息时,将Canny算子最大阈值设为0,即保留所有的边缘信息,有效地提高了边缘信息的准确率。(2.3) Use the Canny operator to extract the edge information of the foot from the transmission transformed picture, and use Gaussian blur to remove the noise next to the edge; convert the picture into the outline of the foot (as shown in Figure 8); when extracting the edge information , the maximum threshold of Canny operator is set to 0, that is, all edge information is retained, which effectively improves the accuracy of edge information.

(2.4)提取到脚的轮廓后,就要提取轮廓的最小外接矩形(使用OpenCV的MinAreaRect()方法,结果如图9所示);提取到左右脚区域的宽度和两个脚的脚尖到区域上边界的距离;通过最小外接矩形的信息,可以判断多种测量异常情况。其中,判断多种测量异常情况具体包括首先,根据检测到的最小外接矩形的数量,可以检测到没有放脚和有障碍物两种异常情况;如果此时没有检测到最小外接矩形,可以判断相机没有采集到带脚的图像;如果检测到的最小外接矩形大于2个,可以判断采集到的图像有其他类似脚的障碍物;其次,在最小外接矩形数量正确的情况下,可以根据最小外接矩形的角度判断此时被测者的站立情况,若此时矩形角度在(10°,45°)范围内,则判断此时被测者的脚为内八姿势站立;若此时矩形角度在(-80°,-45°)范围内,则判断此时被测者的脚为外八姿势站立。(2.4) After extracting the outline of the foot, extract the minimum circumscribed rectangle of the outline (using the MinAreaRect() method of OpenCV, the result is shown in Figure 9); extract the width of the left and right foot areas and the toe-to-toe area of the two feet The distance of the upper boundary; through the information of the minimum circumscribed rectangle, various measurement anomalies can be judged. Among them, judging a variety of measurement anomalies specifically includes: first, according to the number of detected minimum circumscribed rectangles, two anomalies can be detected: no feet and obstacles; if the minimum circumscribed rectangle is not detected at this time, the camera can be judged There is no image with feet collected; if the detected minimum circumscribed rectangle is more than 2, it can be judged that the collected image has other obstacles similar to feet; secondly, when the number of the minimum circumscribed rectangle is correct, it can be determined according to the minimum circumscribed rectangle If the angle of the rectangle is within the range of (10°, 45°), it is judged that the subject's feet are standing in the inner eight position; if the angle of the rectangle is within ( -80°, -45°), it is judged that the subject's feet are standing in the outer eight position.

(2.5)经过前面的处理步骤,可以得到如图10所示的检测和距离计算模型(以右脚为例),其中W1代表站脚区域宽度,W2为待测量的右脚宽度,H1为站脚区域的长度,H2为右脚脚尖到区域上边界的距离(由于脚跟位置存在遮挡问题,无法直接测量);C1、C2、D1和D2代表像素点数量;由于W1和H1为已知量,并且像素的尺度固定,因此可以得到脚宽和脚长的计算方式:(2.5) After the previous processing steps, the detection and distance calculation model as shown in Figure 10 can be obtained (taking the right foot as an example), where W 1 represents the width of the standing foot area, W 2 is the width of the right foot to be measured, and H 1 is the length of the standing area, H 2 is the distance from the toe of the right foot to the upper boundary of the area (because of the occlusion problem at the heel position, it cannot be directly measured); C 1 , C 2 , D 1 and D 2 represent the number of pixels; W 1 and H 1 are known quantities, and the scale of pixels is fixed, so the calculation methods of foot width and foot length can be obtained:

Figure BDA0002472735550000111
Figure BDA0002472735550000111

Figure BDA0002472735550000121
Figure BDA0002472735550000121

脚的长度为:The length of the foot is:

Hfoot=H1-H2 (9)H foot = H 1 -H 2 (9)

本发明基于机器视觉的非接触式测脚方法的测脚流程算法可使用Modbus通讯协议与外部应用软件(上位机)进行通讯,具体实施流程图如图11所示。The foot measurement process algorithm of the machine vision-based non-contact foot measurement method of the present invention can use the Modbus communication protocol to communicate with external application software (host computer), and the specific implementation flowchart is shown in FIG. 11 .

如图11所示,本发明基于机器视觉的非接触式测脚方法中视觉测脚的实施流程分为两大部分:As shown in Figure 11, the implementation process of visual foot measurement in the non-contact foot measurement method based on machine vision of the present invention is divided into two parts:

(1)相机标定部分:首先,测脚程序收到Modbus发送的标定指令后,调用测脚程序内部的标定算法,采集带有标定板的图片,并根据检测到的角点位置判定是否标定成功,并返回给上位机是否标定成功的回复指令;(1) Camera calibration part: First, after the foot measurement program receives the calibration command sent by Modbus, it calls the calibration algorithm inside the foot measurement program, collects pictures with the calibration board, and determines whether the calibration is successful according to the detected corner positions. , and return to the host computer whether the calibration is successful or not;

(2)测脚部分:测脚程序收到Modbus发送的测脚指令后,调用测脚程序内部的测脚算法控制相机每隔5帧采集一次图像,共采集5帧图像进行测量,并在算法内部将不符合要求的结果删除掉,计算5次正确测量值的平均值返回到上位机。(2) Foot measurement part: After the foot measurement program receives the foot measurement instruction sent by Modbus, it calls the foot measurement algorithm inside the foot measurement program to control the camera to collect images every 5 frames. A total of 5 frames of images are collected for measurement, and in the algorithm The results that do not meet the requirements are deleted internally, and the average value of 5 correct measurement values is calculated and returned to the upper computer.

本发明基于机器视觉的非接触式测脚方法可以在不同的光照条件下进行正常测量,提供以下三种光照条件下的实例:The non-contact foot measurement method based on machine vision of the present invention can perform normal measurement under different lighting conditions, and examples under the following three lighting conditions are provided:

实例一:在低亮度条件下,待测量人站上双脚(如图12),得到的脚型框图为图13,测量结果为左脚长229mm,左脚宽91mm,右脚长230mm,右脚宽94mm。Example 1: Under the condition of low brightness, the person to be measured stands on both feet (as shown in Figure 12), and the obtained foot block diagram is shown in Figure 13. The measurement result is that the left foot is 229mm long, the left foot is 91mm wide, the right foot is 230mm long, and the right foot is 230mm long. The foot is 94mm wide.

实例二:在中亮度条件下,待测量人站上双脚(如图14),得到的脚型框图为图15,测量结果为左脚长228mm,左脚宽91mm,右脚长231mm,右脚宽94mm。Example 2: Under the condition of medium brightness, the person to be measured stands on both feet (as shown in Figure 14), and the obtained foot block diagram is shown in Figure 15. The measurement result is that the left foot is 228mm long, the left foot is 91mm wide, the right foot is 231mm long, and the right foot is 231mm long. The foot is 94mm wide.

实例三:在高亮度条件下,待测量人站上双脚(如图16),得到的脚型框图为图17,测量结果为左脚长228mm,左脚宽91mm,右脚长231mm,右脚宽94mm。Example 3: Under the condition of high brightness, the person to be measured stands on both feet (as shown in Figure 16), and the obtained foot block diagram is shown in Figure 17. The measurement result is that the left foot is 228mm long, the left foot is 91mm wide, the right foot is 231mm long, and the right The foot is 94mm wide.

本发明基于机器视觉,结合图像处理技术,通过提取脚的完整脚型轮廓实现脚长和脚宽的非接触式测量,不仅大大降低了测量成本,缩短了测量时间,提高了测量精度,并且具有较强的环境适应能力,可在不同光照环境下正常工作。Based on machine vision and combined with image processing technology, the invention realizes non-contact measurement of foot length and foot width by extracting the complete foot contour of the foot, which not only greatly reduces the measurement cost, shortens the measurement time, improves the measurement accuracy, and has the advantages of Strong environmental adaptability, can work normally in different lighting environments.

以上所述仅为本发明较佳的实施方式,并非用以限定本发明的权利范围;同时以上的描述,对于相关技术领域专门人士应可理解及实施,因此凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the scope of rights of the present invention; at the same time, the above descriptions should be understood and implemented by those skilled in the relevant technical fields. Any modifications, equivalent replacements and improvements made within the scope of the present invention shall be included within the protection scope of the present invention.

Claims (9)

1.一种基于机器视觉的非接触式测脚方法,其特征在于:包括相机标定和视觉测脚,相机标定用于确定测量区域和尺度信息并计算透射变换的参数;视觉测脚在相机标定获得的参数基础上,测量被测人的脚的测量值。1. a non-contact foot measurement method based on machine vision, is characterized in that: comprise camera calibration and visual measurement foot, camera calibration is used to determine measurement area and scale information and calculate the parameter of transmission transformation; visual measurement foot is calibrated in camera. On the basis of the obtained parameters, the measurements of the feet of the subject are measured. 2.如权利要求1所述的基于机器视觉的非接触式测脚方法,其特征在于:所述被测人的脚的测量值包括脚长和脚宽;所述视觉测脚需保证被测者两脚平行站立,被测者两脚呈内八字站立或外八字站立超过10°会被识别为异常情况;所述视觉测脚时不需要使用标定板,被测者双脚站立在脚踏板上。2. The non-contact foot measuring method based on machine vision as claimed in claim 1, characterized in that: the measured value of the measured person's foot comprises foot length and foot width; the visual foot measurement needs to ensure that the measured foot is measured The subjects stand with their feet parallel, and the subjects standing with their feet in a splayed figure or standing with an outer figure of more than 10° will be identified as abnormal; the visual foot measurement does not require the use of a calibration board, and the subject stands with both feet on the pedals. board. 3.如权利要求1所述的基于机器视觉的非接触式测脚方法,其特征在于,所述相机标定的主要执行流程为:3. the non-contact foot measuring method based on machine vision as claimed in claim 1 is characterized in that, the main execution flow of described camera calibration is: (1.1)在脚踏板上放置标有特定颜色的标定板;(1.1) Place a calibration board marked with a specific color on the pedal; (1.2)使用摄像头拍摄一张带有标定板的图像,然后将该图像从RGB颜色空间转化到HSV颜色空间,通过颜色空间阈值分割方法,将标定板的绿色区域提取出来作为测量区域;(1.2) Use a camera to shoot an image with a calibration plate, then convert the image from RGB color space to HSV color space, and extract the green area of the calibration plate as a measurement area through the color space threshold segmentation method; (1.3)采用轮廓检测算法找到绿色标定板轮廓,并据此提取到轮廓的四个角点和标定板的实际尺寸,计算图像透视变换矩阵参数和尺度信息;(1.3) Use the contour detection algorithm to find the outline of the green calibration plate, and extract the four corner points of the contour and the actual size of the calibration plate accordingly, and calculate the image perspective transformation matrix parameters and scale information; (1.4)保存标定板图像的透射变换矩阵参数和尺度信息。(1.4) Save the transmission transformation matrix parameters and scale information of the calibration plate image. 4.如权利要求3所述的基于机器视觉的非接触式测脚方法,其特征在于:所述步骤(1.3)中轮廓检测算法采用OpenCV中FindContours()函数。4. The non-contact foot measurement method based on machine vision as claimed in claim 3, wherein the contour detection algorithm in the step (1.3) adopts the FindContours() function in OpenCV. 5.如权利要求3所述的基于机器视觉的非接触式测脚方法,其特征在于:所述步骤(1.1)中脚踏板的颜色为红色,标定板为绿色。5 . The non-contact foot measurement method based on machine vision according to claim 3 , wherein in the step (1.1), the color of the foot pedal is red, and the calibration plate is green. 6 . 6.如权利要求1或3所述的非接触式测脚方法,其特征在于:所述相机标定只需在测脚前初始化相机过程中进行一次,除非摄像头出现偏移或站脚区域有变动,否则无需再次进行标定。6. The non-contact foot measurement method according to claim 1 or 3, wherein the camera calibration only needs to be performed once during the camera initialization process before the foot measurement, unless the camera is offset or the foot area is changed , otherwise there is no need to calibrate again. 7.如权利要求1所述的基于机器视觉的非接触式测脚方法,其特征在于:所述视觉测脚的具体处理步骤为:7. the non-contact foot measuring method based on machine vision as claimed in claim 1 is characterized in that: the concrete processing step of described visual foot measuring is: (2.1)使用相机拍摄带有待测双脚的图片,且拍摄的图片为斜视图;(2.1) Use a camera to take pictures with the feet to be tested, and the pictures taken are oblique views; (2.2)根据相机标定获取的参数对上述步骤(2.1)中拍摄的图片进行透射变换,将其转换为俯视图,以确保在俯视图中图片的像素尺度是均匀的,然后根据站脚区域长宽与像素点的比例来计算脚长、脚宽的值;(2.2) Perform a transmission transformation on the picture taken in the above step (2.1) according to the parameters obtained by the camera calibration, and convert it into a top view to ensure that the pixel scale of the picture is uniform in the top view, and then according to the length and width of the foot area and The ratio of pixel points to calculate the value of foot length and foot width; (2.3)使用Canny算子从透射变换后的图片提取脚的边缘信息,并使用高斯模糊算法去除边缘旁边的噪点,将图片转换为脚的轮廓图,在提取边缘信息时,将Canny算子最大阈值设为0,即保留所有的边缘信息;(2.3) Use the Canny operator to extract the edge information of the foot from the transmission transformed picture, and use the Gaussian blur algorithm to remove the noise next to the edge, and convert the picture into the contour map of the foot. When extracting the edge information, the Canny operator is maximized The threshold is set to 0, that is, all edge information is retained; (2.4)提取到脚的轮廓后,接着提取轮廓的最小外接矩形,提取到左右脚区域的宽度和两个脚的脚尖到区域上边界的距离,并通过最小外接矩形的信息,判断各种测量异常情况;(2.4) After extracting the outline of the foot, then extract the minimum circumscribed rectangle of the outline, extract the width of the left and right foot regions and the distance from the toes of the two feet to the upper boundary of the area, and judge various measurements through the information of the minimum circumscribed rectangle abnormal situation; (2.5)经过上述步骤(2.1)-(2.4)的处理,可得到检测和距离计算模型,以右脚为例,其中W1代表站脚区域宽度,W2为待测量的右脚宽度,H1为站脚区域的长度,H2为右脚脚尖到区域上边界的距离;C1、C2、D1和D2代表像素点数量;由于W1和H1为已知量,并且像素的尺度固定,可得到脚宽和脚长的计算方式:(2.5) After the processing of the above steps (2.1)-(2.4), the detection and distance calculation model can be obtained, taking the right foot as an example, where W 1 represents the width of the standing foot area, W 2 is the width of the right foot to be measured, H 1 is the length of the standing area, H 2 is the distance from the toe of the right foot to the upper boundary of the area; C 1 , C 2 , D 1 and D 2 represent the number of pixels; since W 1 and H 1 are known quantities, and the pixels The scale is fixed, and the calculation method of foot width and foot length can be obtained:
Figure FDA0002472735540000031
Figure FDA0002472735540000031
Figure FDA0002472735540000032
Figure FDA0002472735540000032
脚的长度为:The length of the foot is: Hfoot=H1-H2 (3)。H foot = H 1 -H 2 (3).
8.如权利要求7所述的基于机器视觉的非接触式测脚方法,其特征在于,所述步骤(2.4)中判断各种测量异常情况具体包括:8. The non-contact foot measuring method based on machine vision as claimed in claim 7, characterized in that, in the step (2.4), judging various abnormal conditions of measurement specifically comprises: 首先,根据检测到最小外接矩形的数量,可以检测到没有放脚和有障碍物的两种异常情况;如果此时没有检测到最小外接矩形,可以判断相机没有采集到带有脚的图像;如果检测到的最小外接矩形大于2个,可以判断采集到的图像有其他类似脚的障碍物;First of all, according to the number of detected minimum circumscribed rectangles, two anomalies such as no feet and obstacles can be detected; if the minimum circumscribed rectangle is not detected at this time, it can be judged that the camera has not captured an image with feet; if If the detected minimum circumscribed rectangle is greater than 2, it can be judged that the collected image has other obstacles similar to feet; 其次,在最小外接矩形数量正确的情况下,可以根据最小外接矩形的角度判断此时被测者的站立情况,若此时矩形角度在10°~45°范围内,则判断此时被测者的脚为内八姿势站立;若此时矩形角度在-80°~-45°范围内,则判断此时被测者的脚为外八姿势站立。Secondly, when the number of the minimum circumscribed rectangles is correct, the standing situation of the tested person can be judged according to the angle of the minimum circumscribed rectangle. If the angle of the rectangle is within the range of -80°~-45°, it is judged that the subject's feet are standing in the outer eight position. 9.如权利要求7所述的基于机器视觉的非接触式测脚方法,其特征在于,所述步骤(2.4)中是使用OpenCV的MinAreaRect()方法提取轮廓的最小外接矩形。9 . The non-contact foot measurement method based on machine vision according to claim 7 , wherein, in the step (2.4), the MinAreaRect() method of OpenCV is used to extract the minimum circumscribed rectangle of the outline. 10 .
CN202010359654.9A 2020-04-29 2020-04-29 Non-contact foot measuring method based on machine vision Pending CN111528579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010359654.9A CN111528579A (en) 2020-04-29 2020-04-29 Non-contact foot measuring method based on machine vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010359654.9A CN111528579A (en) 2020-04-29 2020-04-29 Non-contact foot measuring method based on machine vision

Publications (1)

Publication Number Publication Date
CN111528579A true CN111528579A (en) 2020-08-14

Family

ID=71967618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010359654.9A Pending CN111528579A (en) 2020-04-29 2020-04-29 Non-contact foot measuring method based on machine vision

Country Status (1)

Country Link
CN (1) CN111528579A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127773A (en) * 2016-06-29 2016-11-16 北京三维天下科技股份有限公司 A kind of foot type data capture method based on picture
CN107183835A (en) * 2017-07-24 2017-09-22 重庆小爱科技有限公司 A kind of method of use mobile phone photograph scanning generation human foot model and data
CN109330106A (en) * 2018-11-01 2019-02-15 成都牛晶科技有限公司 A kind of subscript dimension measurement method based on mobile phone photograph
CN109452941A (en) * 2018-11-23 2019-03-12 中国科学院自动化研究所 Limb circumference measurement method and system based on picture correction and Boundary Extraction
CN110059702A (en) * 2019-03-29 2019-07-26 北京奇艺世纪科技有限公司 A kind of contour of object recognition methods and device
CN110097596A (en) * 2019-04-30 2019-08-06 湖北大学 A kind of object detection system based on opencv

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106127773A (en) * 2016-06-29 2016-11-16 北京三维天下科技股份有限公司 A kind of foot type data capture method based on picture
CN107183835A (en) * 2017-07-24 2017-09-22 重庆小爱科技有限公司 A kind of method of use mobile phone photograph scanning generation human foot model and data
CN109330106A (en) * 2018-11-01 2019-02-15 成都牛晶科技有限公司 A kind of subscript dimension measurement method based on mobile phone photograph
CN109452941A (en) * 2018-11-23 2019-03-12 中国科学院自动化研究所 Limb circumference measurement method and system based on picture correction and Boundary Extraction
CN110059702A (en) * 2019-03-29 2019-07-26 北京奇艺世纪科技有限公司 A kind of contour of object recognition methods and device
CN110097596A (en) * 2019-04-30 2019-08-06 湖北大学 A kind of object detection system based on opencv

Similar Documents

Publication Publication Date Title
CN109285145B (en) A smartphone-based method for measuring the height of multiple standing trees
US10013803B2 (en) System and method of 3D modeling and virtual fitting of 3D objects
US20200178651A1 (en) Foot measuring and sizing application
CN106068092B (en) Image processing apparatus
WO2019080229A1 (en) Chess piece positioning method and system based on machine vision, storage medium, and robot
CN109452941B (en) Limb circumference measurement method and system based on image orthodontics and boundary extraction
CN109523551B (en) A method and system for obtaining the walking posture of a robot
CN107481267A (en) A kind of shooting projection interactive system and method based on binocular vision
WO2021136386A1 (en) Data processing method, terminal, and server
CN110123330A (en) Foot type parameter measurement and pressure cloud atlas generation method based on plantar pressure data
KR20190106601A (en) Method of measuring foot size and shape using image processing
Yuan et al. 3D foot scanning using multiple RealSense cameras
CN108550169B (en) Method for determining positions of chess pieces in three-dimensional space and calculating heights of chess pieces
CN110769229A (en) Method, device and system for detecting color brightness of projection picture
CN114712769A (en) Standing long jump intelligent distance measuring method and system based on computer vision
JP6942566B2 (en) Information processing equipment, information processing methods and computer programs
CN109308462B (en) Finger vein and knuckle print region-of-interest positioning method
CN108510477A (en) The localization method and device of test paper color lump
CN115598136B (en) Screen gluing quality detection device
CN107833223B (en) Fruit hyperspectral image segmentation method based on spectral information
CN110319933B (en) Light source spectrum optimization method based on CAM02-UCS color appearance model
JP2009232942A (en) Method for analyzing gravity center position
CN117115226B (en) Method for identifying foot shape size based on computer vision
CN113749646A (en) Monocular vision-based human body height measuring method and device and electronic equipment
CN106846324A (en) A kind of irregular object height measurement method based on Kinect

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200814

RJ01 Rejection of invention patent application after publication