4.3.3. Shape
The farmers use shape irregularity as a quality measure. Fruits
having irregular shapes are considered of better quality. We
estimated it from the outer profile of the fruit image. The estimation
steps are described below.
(1) Using an edge tracking operator to estimate the outmost
edge points of the fruit image.
(2) Link the outermost edge points to form the outermost
profile of the fruit image.
(3) Compute the centroid ðxg; ygÞ of the profile.
(4) Starting from the topmost and leftmost point of the pro-
file and moving clockwise calculate the sequence
rðtÞ ¼
ffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi
ðxt xgÞþðyt ygÞ
2
q
;
for t = 1, 2, 3, ..., N, were xt and yt are the Cartesian
coordinates of the profile at profile boundary time t,
and N is the total number of points in the profile.
(5) Compute the Fourier coefficients of r(t)
an ¼ XN
t¼1
rðtÞe
2jpnt
N
The value of the first coefficient was used as the irregularity
measure.
4.3.4. Intensity
We have observed that the better quality date yield high intensity
images. The intensity is estimated in terms of the number
of wrinkles. The number of edges was considered as the number
of wrinkles. To determine the intensity the image is binarized
and edges are extracted using Sobel operator and
labeled. The intensity measure is defined as I ¼ a
A ; where a is
the area covered by edges, A is the total fruit area and
0 6 I 6 1.
4.3.5. Defects
The bruises (Fig. 7.) and bird flicks (Fig. 6) are common defects
in date fruits. The bird flicks appear brighter in the image
so they are determined from the color intensity. An estimate of
the average brightness and variations in intensity of the bird
flicked area were obtained. The average brightness was thoroughly
examined and the bird flicked area size was tracked
and estimated. A pixel belongs to the bird flicked area if the
brightness of a pixel lies in the interval Ib kr2
b; where Ib is
the average brightness of the pixels and r2
b is the variance in
the bird flicked area, and k is an experimentally determined
constant. The bruises are estimated from the shape as they generally
deform the shape by tearing the fruit. In our observation
finding an accurate estimate of bruises is an extremely difficult
task.
4.4. Classification
We first visually examined the fruits that we used in this experiment
and graded them manually according to their features.
The fruits having good shape, large size, high intensity, high
flabbiness and no defects were branded as of the best quality,
i.e., grade 1. The grade 2 fruits have distorted shape, medium
size, low flabbiness, low intensity and no defects and fruits
having defects were considered as grade 3 fruits regardless of
other features. A sample of grades 1–3 fruits are shown in
Fig. 8 below.
For classification, we used back propagation neural network
(BPNN) which is described below.
4.4.1. Back propagation neural network
The back propagation neural network (BPNN) contains an input
layer, at least one hidden layer and one output layer. In the
network, the information flows from left to right. The input
feature vector X = (xi) is presented to the input layer and it
is passed to output layer via hidden layer. These layers are connected
by weights among neurons.
In a training cycle of the network, every training set pattern
is presented as input to the network and the output ok is computed.
The output is compared with the desired response dk. In
case of error the weight of the network is modified to reduce
the error. The training cycle is repeated across the training pattern
to modify the weights of the network till the error attains
some predefined tolerance level.
4.4.2. Implementation
To classify dates we studied two BPNN models. The first model
has three layers: input layer, one hidden layer and an output
layer. The input layer has five neurons representing five feature
Fi
4.3.3 รูปร่าง
เกษตรกรใช้รูปร่างผิดปกติเป็นมาตรการที่มีคุณภาพ ผลไม้
ที่มีรูปร่างผิดปกติได้รับการพิจารณาของที่มีคุณภาพที่ดีขึ้น เรา
คาดได้จากรายละเอียดด้านนอกของภาพผลไม้ การประมาณค่า
ขั้นตอนมีรายละเอียดดังนี้.
(1) การใช้ประกอบการติดตามขอบที่จะประเมินภายนอก
จุดที่ขอบของภาพผลไม้.
(2) การเชื่อมโยงจุดขอบนอกสุดในรูปแบบสุด
รายละเอียดของภาพผลไม้.
(3) คำนวณ centroid DXG; ygÞของรายละเอียด.
(4) เริ่มต้นจากจุดสูงสุดและซ้ายสุดของโปร
ไฟล์และย้ายตามเข็มนาฬิกาคำนวณลำดับ
rðtÞ xgÞþðytygÞ 2 Q ; สำหรับ t = 1, 2, 3, ... , N, มี XT และ yt มีคาร์ทีเซียนพิกัดของรายละเอียดที่ขอบเขตรายละเอียดเวลา t,, และ N คือจำนวนรวมของคะแนนในรายละเอียด. ( 5) คำนวณค่าสัมประสิทธิ์ฟูริเยร์ของ R (t) ¼ XN t¼1 rðtÞe 2jpnt ไม่มีค่าของค่าสัมประสิทธิ์ครั้งแรกที่ถูกนำมาใช้เป็นความผิดปกติการวัด. 4.3.4 ความเข้มของเราได้ตั้งข้อสังเกตว่าวันที่มีคุณภาพที่ดีกว่าผลตอบแทนความเข้มสูงภาพ เข้มเป็นที่คาดกันในแง่ของจำนวนของริ้วรอย จำนวนขอบได้รับการพิจารณาเป็นจำนวนของริ้วรอย การตรวจสอบความเข้มของภาพจะถูก binarized และขอบที่สกัดโดยใช้ผู้ประกอบการโชเบลและการติดฉลาก วัดความรุนแรงถูกกำหนดให้เป็นฉัน¼ ; ที่เป็นพื้นที่ปกคลุมด้วยขอบเป็นพื้นที่ผลไม้รวมและ0 6 1 6 ฉัน. 4.3.5 ข้อบกพร่องรอยฟกช้ำ (รูปที่ 7.) และการตวัดนก (รูปที่. 6) มีข้อบกพร่องที่พบในผลไม้วัน ตวัดนกสว่างปรากฏในภาพเพื่อให้พวกเขามีความมุ่งมั่นจากความเข้มของสี ประมาณการของความสว่างเฉลี่ยและการเปลี่ยนแปลงในความเข้มของนกสะบัดพื้นที่ที่ได้รับ ความสว่างเฉลี่ยอย่างละเอียดตรวจสอบและขนาดพื้นที่สะบัดนกได้รับการติดตามและประมาณ พิกเซลเป็นนกสะบัดพื้นที่หากความสว่างของพิกเซลอยู่ในช่วง Ib KR2 ข; ที่อิบเป็นความสว่างเฉลี่ยของพิกเซลและ r2 ขเป็นความแปรปรวนในนกสะบัดในพื้นที่และ k จะกำหนดทดลองอย่างต่อเนื่อง รอยฟกช้ำอยู่ที่ประมาณจากรูปร่างที่พวกเขาโดยทั่วไปเบี้ยวรูปร่างโดยการฉีกขาดผลไม้ ในการสังเกตของเราหาประมาณการที่แม่นยำของรอยฟกช้ำเป็นเรื่องยากมากที่งาน. 4.4 จำแนกก่อนอื่นเราตรวจสอบสายตาผลไม้ที่เราใช้ในการทดลองนี้และอย่างช้า ๆ ด้วยตนเองตามคุณสมบัติของพวกเขา. ผลไม้ที่มีรูปร่างที่ดี, ขนาดใหญ่, ความเข้มสูงที่อ่อนแอและไม่มีข้อบกพร่องที่ถูกตราหน้าว่าเป็นของที่มีคุณภาพที่ดีที่สุดคือเกรด 1. ชั้นประถมศึกษาปีที่ 2 ผลไม้ที่มีรูปร่างบิดเบี้ยวขนาดกลางขนาดความหย่อนยานต่ำความเข้มต่ำและไม่มีข้อบกพร่องและผลไม้ที่มีข้อบกพร่องได้รับการพิจารณาเป็นเกรด 3 ผลไม้โดยไม่คำนึงถึงคุณสมบัติอื่น ๆ ตัวอย่างของเกรด 1-3 ผลไม้จะถูกแสดงในรูปที่ 8. สำหรับการจัดหมวดหมู่ที่เราใช้ในการขยายพันธุ์กลับเครือข่ายประสาท(BPNN) ซึ่งมีการระบุไว้ด้านล่าง. 4.4.1 กลับขยายพันธุ์เครือข่ายประสาทการขยายพันธุ์กลับประสาทเครือข่าย (BPNN) มีการป้อนข้อมูลชั้นอย่างน้อยหนึ่งชั้นที่ซ่อนอยู่และเอาท์พุทชั้นหนึ่ง ในเครือข่ายข้อมูลที่ไหลจากซ้ายไปขวา ป้อนข้อมูลคุณลักษณะเวกเตอร์ X = (XI) จะนำเสนอให้ชั้นการป้อนและมันจะถูกส่งไปยังชั้นที่ส่งออกผ่านทางชั้นที่ซ่อนอยู่ เลเยอร์เหล่านี้มีการเชื่อมต่อโดยน้ำหนักในหมู่เซลล์ประสาท. ในรอบการฝึกอบรมของเครือข่ายการฝึกอบรมทุกรูปแบบการตั้งค่าที่จะนำเสนอเป็นข้อมูลไปยังเครือข่ายและการส่งออกตกลงคำนวณ. การส่งออกเมื่อเทียบกับการตอบสนองที่ต้องการ dk ในกรณีที่มีข้อผิดพลาดน้ำหนักของเครือข่ายที่มีการแก้ไขเพื่อลดข้อผิดพลาด วงจรการฝึกอบรมจะถูกทำซ้ำข้ามรูปแบบการฝึกอบรมในการปรับเปลี่ยนน้ำหนักของเครือข่ายจนบรรลุข้อผิดพลาดบางระดับความอดทนที่กำหนดไว้ล่วงหน้า. 4.4.2 การดำเนินการในการจัดประเภทวันที่เราศึกษาสองรุ่น BPNN รุ่นแรกมีสามชั้นชั้นการป้อน, ชั้นหนึ่งที่ซ่อนอยู่และเอาท์พุทชั้น ชั้นการป้อนมีห้าเซลล์ประสาทที่เป็นตัวแทนของห้าคุณลักษณะFi
การแปล กรุณารอสักครู่..
