Skip to content

Commit 74d8321

Browse files
committed
case and readme
1 parent 0f904e3 commit 74d8321

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Diff for: go_cv_money_count/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export CXX=/usr/bin/clang++ export CC=/usr/bin/clang

Diff for: go_cv_money_count/chipcount/chipcount.go

+4-7
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,12 @@ func preProcessForChipCount(input *gocv.Mat, process *gocv.Mat, config *CoinProc
4646
}
4747

4848
func MaskColorChips(input *gocv.Mat, output *gocv.Mat, color int, config *CoinProcessing) {
49-
if color == RED {
49+
switch color {
50+
case RED:
5051
cvhelper.FilterRGB(input, output, config.red_lb, config.red_ub)
51-
}
52-
53-
if color == BLUE {
52+
case BLUE:
5453
cvhelper.FilterRGB(input, output, config.blue_lb, config.blue_ub)
55-
}
56-
57-
if color == ORANGE {
54+
case ORANGE:
5855
cvhelper.FilterRGB(input, output, config.orange_lb, config.orange_ub)
5956
}
6057

0 commit comments

Comments
 (0)