农业工程学报
農業工程學報
농업공정학보
Transactions of the Chinese Society of Agricultural Engineering
2015年
18期
256-261
,共6页
图像处理%机器视觉%算法%背膘区域%轮廓%结缔组织%在线检测
圖像處理%機器視覺%算法%揹膘區域%輪廓%結締組織%在線檢測
도상처리%궤기시각%산법%배표구역%륜곽%결체조직%재선검측
image processing%computer vision%algorithms%backfat region%contour%connective tissue%detection on line
为了能在线精准测量猪胴体背膘厚度,解决人工测量过程中效率低、人为因素影响大及结缔组织易被误测量为背膘的问题。该文基于机器视觉及图像处理技术提出一种图像采集并自动测量背膘厚度的算法。在双边滤波、大律法、形态学变换的基础上,通过轮廓面积分割提取出背膘区域及其边缘轮廓,利用拟合线对轮廓边框进行拟合,判断是否包含结缔组织。若包含则针对原始图像目标测量区域像素点特征进行具体分析,去除结缔组织。然后通过直线映射,确定背膘厚度检测线,测量猪胴体背膘厚度。测试结果表明:检测方法能适应在线检测速度需求,检测正确率为93.5%,平均检测时间为0.3 s。研究结果为生猪屠宰生产线上准确、快速测量背膘厚度提供参考。
為瞭能在線精準測量豬胴體揹膘厚度,解決人工測量過程中效率低、人為因素影響大及結締組織易被誤測量為揹膘的問題。該文基于機器視覺及圖像處理技術提齣一種圖像採集併自動測量揹膘厚度的算法。在雙邊濾波、大律法、形態學變換的基礎上,通過輪廓麵積分割提取齣揹膘區域及其邊緣輪廓,利用擬閤線對輪廓邊框進行擬閤,判斷是否包含結締組織。若包含則針對原始圖像目標測量區域像素點特徵進行具體分析,去除結締組織。然後通過直線映射,確定揹膘厚度檢測線,測量豬胴體揹膘厚度。測試結果錶明:檢測方法能適應在線檢測速度需求,檢測正確率為93.5%,平均檢測時間為0.3 s。研究結果為生豬屠宰生產線上準確、快速測量揹膘厚度提供參攷。
위료능재선정준측량저동체배표후도,해결인공측량과정중효솔저、인위인소영향대급결체조직역피오측량위배표적문제。해문기우궤기시각급도상처리기술제출일충도상채집병자동측량배표후도적산법。재쌍변려파、대율법、형태학변환적기출상,통과륜곽면적분할제취출배표구역급기변연륜곽,이용의합선대륜곽변광진행의합,판단시부포함결체조직。약포함칙침대원시도상목표측량구역상소점특정진행구체분석,거제결체조직。연후통과직선영사,학정배표후도검측선,측량저동체배표후도。측시결과표명:검측방법능괄응재선검측속도수구,검측정학솔위93.5%,평균검측시간위0.3 s。연구결과위생저도재생산선상준학、쾌속측량배표후도제공삼고。
Detection of pork backfat thickness in most of the slaughtering houses depends on manual labors using measuring tools. The objective of this research was to investigate the method for detecting backfat thickness based on computer vision and image processing technologies. And the paper proposed an algorithm of image acquisition and automatically measuring backfat thickness which could solve the problems that manual measurement process had low efficiency, human factor influenced the test result and connective tissue was readily measured as backfat region. The images of pig carcass between the 6th and the 7th rib were collected by the machine vision image acquisition system on the slaughter line. The system consisted of an image acquisition module containing CCD (charge-coupled device) to capture the images and then save them in computer, a single-chip microcomputer, a detection switch, the calibration rule and the light source in system that could be regulated by the controller to change intensity, and the image processing algorithm was equipped into the self-developed system embedded in the computer. The distance between the camera lens and the carcass samples was fixed. A black background plate was placed behind the pig carcass in order to adapt to the complexity of the environment. When a half of carcass reached the camera view, the operator pressed the detection switch to acquire images which were automatically stored in the computer for further image processing. First, the image noise was removed by using the bilateral filtering method. And the binary image of the pig carcass to be detected was gained according to the Otsu method which calculated segment threshold automatically based on the image grey value. After filling the tiny holes in the binary images by using morphological transformation, the images still contained multiple connected regions. Then the image contours were extracted from the preprocessed images. Through the experiment, it was found that the backfat region was the largest region in the image contour region. Based on the differences of different contour sizes, the backfat region and edge contour were obtained. Secondly, the edge contours were fitted by the fitting line to yield the standard deviations, which were then used to determine whether the connective tissue existed in the backfat region. If so, the pixels of the backfat region image accumulated alongXdirection were plotted. The connective tissue was removed using the new detection line determined by the valley point coordinates of pixel curve. In this step, the image was cropped to separate the backfat region from the original image. Finally the backfat thickness could be measured accurately by mapping the line to the backfat region. Experiment showed that the detection accuracy of measuring the backfat thickness was 93.5% when the measurement error was less than 1 mm. The accuracy of the algorithm and the speed were verified with the theoretical analysis and practical test. And through test, the average recognition time of each sample was 0.3 s. The results showed that the algorithm could meet the requirement of the backfat thickness testing and measuring in precision for the practical application. This method is able to be used in online detection of the slaughtering line which is of great significance for the development of the automatic measuring system.