国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫CS373 COIN、代做Python設計程序

時間:2024-05-24  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



DETECTION 
ASSIGNMENT
2024 Semester 1
1
Version 2.2Deadline: 3rd June 2024, 23:59pm
●In this assignment, you will write a Python code pipeline to automatically detect all the coins in the 
given images. This is an individual assignment, so every student has to submit this assignment! This 
assignment is worth 15 marks.
●We have provided you with 6 images for testing your pipeline (you can find the images in the 
‘Images/easy’ folder).
○Your pipeline should be able to detect all the coins in the image labelled with easy-level. This will 
reward you with up to 10 marks.
○For extension (up to 5 marks), try images labelled as hard-level images in the “Images/hard” folder.
○Write a short reflective report about your extension. (Using Latex/Word)
●To output the images shown on the slides for checking, you may use the following code:
fig, axs = pyplot.subplots(1, 1)
# replace image with your image that you want to output
axs.imshow(image, cmap='gray')
pyplot.axis('off')
pyplot.tight_layout()
pyplot.show()
2SUBMISSION
Please upload your submission as a zipped file of the assignment folder to the UoA 
Assignment Dropbox by following this link: 
https://canvas.auckland.ac.nz/courses/103807/assignments/3837**
●Don’t put any virtual environment (venv) folders into this zip file, it just adds to the size, and we 
will have our own testing environment.
●Your code for executing the main coin detection algorithm has to be located in the provided 
“CS3**_coin_detection.py” file!
●You can either put all of your code into that file, or use a modular structure with additional files 
(that, of course, have to be submitted in the zip file). However, we will only execute the 
“CS3**_coin_detection.py” file to see if your code works for the main component!
●The main component of the assignment (“CS3**_coin_detection.py”) must not use any non-built-in 
Python packages (e.g., PIL, OpenCV, NumPy, etc.) except for Matplotlib. Ensure your IDE hasn’t 
added any of these packages to your imports.
●For the extensions, please create a new Python source file called 
‘CS3**_coin_detection_extension.py’
; this will ensure your extension part doesn’t mix up with the 
main component of the assignment. Remember, your algorithm has to pass the main component 
first!
●Including a short PDF report about your extension.
●Important: Use a lab computer to test if your code works on Windows on a different machine 
(There are over 300 students, we cannot debug code for you if it doesn’t work!)
3easy_case_1 final output
easy_case_2 final output
easy_case_4 final output easy_case_6 final outputASSIGNMENT STEPS
5
1. Convert to greyscale and normalize
I. Convert to grey scale image: read input image using the ‘readRGBImageToSeparatePixelArrays()’ helper 
function. Convert the RGB image to greyscale (use RGB channel ratio 0.3 x red, 0.6 x green, 0.1 x blue), 
and round the pixel values to the nearest integer value.
II. Contrast Stretching: stretch the values between 0 to 255 (using the 5-95 percentile strategy) as described 
on lecture slides ImagesAndHistograms, p20-68). Do not round your 5% and 95% cumulative histogram 
values. Your output for this step should be the same as the image shown on Fig. 2.
Hint 1: see lecture slides ImagesAndHistograms and Coderunner Programming quiz in Week 10.
Hint 2: for our example image (Fig. 1), the 5_percentile (f_min) = 86 and the 95_percentile (f_max) = 1**.
Fig. 1: input Fig. 2: step 1 output
We will use this image 
(‘easy_case_1’) as an 
example on this slides2. Edge Detection
I. Apply a 3x3 Scharr filter in horizontal (x) and vertical (y) directions independently to get the edge maps (see 
Fig. 3 and Fig. 4), you should store the computed value for each individual pixel as Python float.
II. Take the absolute value of the sum between horizontal (x) and vertical (y) direction edge maps (see Hint 4). You 
do not need to round the numbers. The output for this step should be the same as the image shown on Fig. 5.
Hint 1: see lecture slides on edge detection and Coderunner Programming quiz in Week 11.
Hint 2: please use the 3x3 Scharr filter shown below for this assignment:
6
Hint 4: you should use the BorderIgnore option and set border 
pixels to zero in output, as stated on the slide Filtering, p13.
Hint 5: for computing the edge strength, you may use the 
following equation:
gm
(x, y) = |gx
(x, y)| + |gy
(x, y)|
Absolute grey level 
gradient on the 
horizontal direction
Absolute grey level 
gradient on the vertical 
direction
Edge map on 
horizontal and 
vertical
Fig. 5: Step 2 
output (gm
)
Fig. 4: Edge map 
(gy
) on vertical 
direction
Fig. 3: Edge map 
(gx
) on horizontal 
direction7
3. Image Blurring
Apply 5x5 mean filter(s) to image. Your output for this step should be the same as the image shown on 
Fig. 7.
Hint 1: do not round your output values.
Hint 2: after computing the mean filter for one 5x5 window, you should take the absolute value of your 
result before moving to the next window.
Hint 3: you should use the BorderIgnore option and set border pixels to zero in output, as stated on the 
slide Filtering, p13.
Hint 3: try applying the filter three times to the image sequentially.
Hint 4: see lecture slides on image filtering and Coderunner Programming quiz in Week 11.
Fig. 7: Step 3 output Fig. 6: Grayscale histogram for output from step 38
4. Threshold the Image
Perform a simple thresholding operation to segment the coin(s) from the black background. After 
performing this step, you should have a binary image (see Fig. 10).
Hint 1: 22 would be a reasonable value for thresholding for our example image, set any pixel value 
smaller than 22 to 0; this represents your background (region 1) in the image, and set any pixel value 
bigger or equal to 22 to 255; which represents your foreground (region 2) – the coin.
Hint 2: see lecture slides on image segmentation (p7) and see Programming quiz on Coderunner on 
Week 10.
Fig. 9: Step 3 output Fig. 10: Step 4 output Fig. 8: Grayscale histogram for output from step 39
5. Erosion and Dilation
Perform several dilation steps followed by several erosion steps. You may need to repeat the dilation 
and erosion steps multiple times. Your output for this step should be the same as the image shown on Fig. 
11.
Hint 1: use circular 5x5 kernel, see Fig. 12 for the kernel details.
Hint 2: the filtering process has to access pixels that are outside the input image. So, please use the 
BoundaryZeroPadding option, see lecture slides Filtering, p13.
Hint 2: try to perform dilation 3-4 times first, and then erosion 3-4 times. You may need to try a couple 
of times to get the desired output.
Hint 3: see lecture slides on image morphology and Coderunner Programming quiz in Week 12.
Fig. 11: Step 5 output
Fig. 12: Circular 5x5 kernel for 
dilation and erosion10
6. Connected Component Analysis
Perform a connected component analysis to find all connected components. Your output for this 
step should be the same as the image shown on Fig. 13.
After erosion and dilation, you may find there are still some holes in the binary image. That is 
fine, as long as it is one connected component.
Hint 1: see lecture slides on Segmentation_II, p4-6, and Coderunner Programming quiz in Week 
12.
Fig. 13: Step 6 outputWe will provide code for drawing the bounding box(es) 
in the image, so please store all the bounding box 
locations in a Python list called ‘bounding_box_list’, so 
our program can loop through all the bounding boxes 
and draw them on the output image.
Below is an example of the ‘bounding_box_list’ for our 
example image on the right.
11
7. Draw Bounding Box
Extract the bounding box(es) around all regions that your pipeline has found by looping over 
the image and looking for the minimum and maximum x and y coordinates of the pixels in the 
previously determined connected components. Your output for this step should be the same as 
the image shown on Fig. 14.
Make sure you record the bounding box locations for each of the connected components your 
pipeline has found.
Bounding_box_list=[[74, 68, 312, 303]]
A list of list
Bounding_box_min_x
Bounding_box_min_y Bounding_box_max_x
Bounding_box_max_y
Fig. 14: Step 7 outputInput
Drawing 
Bounding Box
Color to Gray Scale 
and Normalize
Edge 
Detection
Image 
Blurring Thresholding
Dilation and 
Erosion
Connected 
Component Analysis
12
Coin Detection Full Pipelineeasy_case_1 final output easy_case_2 final output
easy_case_4 final output easy_case_6 final outputEXTENSION
For this extension (worth 5 marks), you are expected to alter some parts of the pipeline.
●Using Laplacian filter for image edge detection
○Please use the Laplacian filter kernel on the right (see Fig. 15).
○You may need to change subsequent steps as well, if you decide to
use Laplacian filter.
●Output number of coins your pipeline has detected.
●Testing your pipeline on the hard-level images we provided.
○For some hard-level images, you may need to look at the size of the connected components to decide which 
component is the coin.
●Identify the type of coins (whether it is a **dollar coin, 50-cent coin, etc.). 
○Since different type of coins have different sizes, you may want to compute the area of the bounding box in 
the image to identify them.
●etc.
Submissions that make the most impressive contributions will get full marks. Please create a new 
Python source file called ‘CS3**_coin_detection_extension.py’ for your extension part, and include a 
short PDF report about your extension. Try to be creative!
14
Fig. 15: Laplacian filter kernel

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




 

掃一掃在手機打開當前頁
  • 上一篇:INTE2401代寫、代做Java設計程序
  • 下一篇:CS 369代做、代寫Python編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    最新不卡av| 午夜精品一区二区三区在线播放| 中文字幕欧美日韩一区二区 | 久久人91精品久久久久久不卡| 精品久久久久久久免费人妻| 欧美日韩精品中文字幕一区二区| 久久人人97超碰精品888| 亚洲精品国产精品国自产| 国产乱子夫妻xx黑人xyx真爽| 国产精品久久久久7777| 日韩一二区视频| 久久久人人爽| 色爱区成人综合网| 国产精品678| 少妇久久久久久被弄到高潮 | 久久久免费av| 欧美综合在线观看视频| 久久久久亚洲精品国产| 日韩国产小视频| 久久精品这里热有精品| 欧美日韩在线不卡一区| 久久精品这里热有精品| 欧美精品一区二区三区在线看午夜| 日韩在线中文字幕| 欧洲日本亚洲国产区| 久久精品免费电影| 美女一区视频| 欧美激情亚洲国产| 91久久精品久久国产性色也91| 亚洲五月六月| 久久久亚洲影院| 日韩欧美精品在线不卡| 久久综合伊人77777尤物| 狠狠噜天天噜日日噜| 另类美女黄大片| 国产精品稀缺呦系列在线| 亚洲一区二区三区毛片| 久久人人看视频| 日本高清视频一区| 国产精品女视频| 国产精品一区二区性色av| 亚洲欧美日韩精品在线| 色婷婷久久av| 国产专区欧美专区| 亚洲女人毛片| 日韩在线中文字| 精品无人乱码一区二区三区的优势 | 黄色网页免费在线观看| 欧美激情亚洲视频| av观看免费在线| 青青视频在线播放| 精品久久一区二区三区蜜桃| 99久久国产综合精品五月天喷水| 日本久久91av| 欧美另类69精品久久久久9999 | 欧美日韩xxxxx| 久久亚洲a v| 麻豆中文字幕在线观看| 亚洲综合小说区| 久久久国产精品一区二区三区| 欧美日韩一区二区三区在线观看免| 久久伊人精品一区二区三区| 国产欧美日韩网站| 午夜伦理精品一区| 国产精品免费一区二区三区| 成 年 人 黄 色 大 片大 全 | 中文字幕精品—区二区日日骚| 国产av熟女一区二区三区| 国产综合av一区二区三区| 日韩美女在线观看| 欧美激情久久久久| 久久精品视频亚洲| 68精品久久久久久欧美| 欧美激情亚洲天堂| 亚洲精品在线视频观看| 国产精品久久久久久久久| 国产美女在线一区| 欧美一区二区影视| 亚洲一区二区三区精品在线观看| 国产精品偷伦免费视频观看的| 99热在线播放| 精品视频第一区| 日本免费成人网| 在线观看一区二区三区三州| 久久久久久伊人| www.欧美日本| 国模吧一区二区| 日本免费在线精品| 亚洲影院污污.| 国产精品第一区| 久久久精品国产| 99免费视频观看| 国产深夜精品福利| 日韩精品一区二区三区四| 亚洲视频电影| 国产精品国三级国产av| 久久久久久久免费| 91传媒久久久| 波多野结衣精品久久| 美日韩精品免费| 欧美激情一区二区三区在线视频| 亚洲.欧美.日本.国产综合在线 | 日本国产高清不卡| 亚洲精品视频一二三| 国产精品电影网站| 久久精品男人天堂| 日韩视频免费在线观看| 国产精品99久久99久久久二8| 国产尤物91| 欧美h视频在线观看| 欧美专区在线播放| 日本a在线天堂| 天堂va久久久噜噜噜久久va| 综合操久久久| 欧美日韩爱爱视频| 欧美日韩成人精品| 精品免费日产一区一区三区免费| 国产精品偷伦一区二区| 久久久精品美女| 久久精品国产理论片免费| 91久久精品一区| 久久久亚洲国产| 69av在线播放| 国产激情在线看| 国产h视频在线播放| 久色视频在线播放| 久久精品午夜一区二区福利| 国产福利精品av综合导导航| 国产成人+综合亚洲+天堂| 国产激情美女久久久久久吹潮| 久久精品日产第一区二区三区精品版 | 青青草原一区二区| 日韩亚洲一区在线播放| 日韩精品福利视频| 欧美一区亚洲二区| 国产主播精品在线| 国产日韩换脸av一区在线观看| 国产日韩在线视频| 国产欧美一区二区三区四区| 国产精品亚洲视频在线观看| 成人国产精品久久久久久亚洲| 99久久综合狠狠综合久久止| 成人亚洲欧美一区二区三区| 91精品国产91久久久久久| 国产白丝袜美女久久久久| 久久精品国产精品国产精品污| 日韩在线观看精品| 国产精品看片资源| 在线观看成人一级片| 亚洲影院在线看| 日韩精品一区二区三区色欲av| 欧美影视一区二区| 国产日韩欧美亚洲一区| 成人av资源网| 九色视频成人porny| 国产精品观看在线亚洲人成网| 一区二区三区四区免费观看 | 蜜臀精品一区二区| 91九色在线观看视频| 久久精品99久久| 国产精品久久精品国产| 欧美精品久久久久久久久 | 国产精品亚洲天堂| 色老头一区二区三区| 国产精品高潮呻吟视频| 亚洲精品乱码久久久久久蜜桃91| 日本不卡高字幕在线2019| 欧美区高清在线| 国产精品亚洲αv天堂无码| 国产黄色特级片| 欧美精品生活片| 天堂精品一区二区三区| 蜜臀精品一区二区| 91精品综合视频| 国产精品日韩欧美综合| 在线视频不卡一区二区三区| 日韩精品一区二区三区四区五区| 国产亚洲欧美一区二区三区| 久久一区免费| 国产精品第一第二| 日韩中文字幕一区| 国产日韩专区在线| 国产成人精品日本亚洲11| 国产精品国产三级欧美二区| 日本视频一区二区在线观看| 国模一区二区三区私拍视频| 久久亚洲国产精品日日av夜夜| 国产精品久久久久久久久久久新郎| 亚洲精品中字| 欧美午夜性视频| 国产精品 欧美在线| 国产精品传媒毛片三区| 日本精品一区二区三区四区| 国产日韩av在线| 国产精品视频精品| 日产国产精品精品a∨| 成人毛片网站| 国产精品视频99| 日本十八禁视频无遮挡| julia一区二区中文久久94|