首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写INFS2044、代做Python设计编程
项目预算:
开发周期:
发布时间:
要求地区:
INFS2044 Assignment 2 Case Study
In this assignment, you will be developing a system for finding images based on the objects
present in the images. The system will ingest images, detect objects in the images, and
retrieve images based on labels associated with objects and by similarity with an example
image.
Use Cases
The system supports the following use cases:
• UC1 Ingest Image: User provides an image, and System stores the image, identifies
objects in the image, and records the object types detected in the image in an index.
• UC2 Retrieve Objects by Description: User specifies a list of object types, and the
system returns the images in its index that match those listed. The system shall
support two matching modes:
o ALL: an image matches if and only if an object of each specified type is
present in the image
o SOME: an image matches if an object of at least one specified type is present
in the image
• UC3 Retrieve Similar Images: User provides an image, and the system retrieves the
top K most similar images in order of descending similarity. The provided image may
or may not already be in the system. The similarity between two images is
determined based on the cosine similarity measure between the object types
present in each image. The integer K (K>1) specifies the maximum number of images
to retrieve.
• UC4 List Images: System shows each image and the object types associated with
each image in the index.
Example Commands
The following are example commands that the command line frontend of the system shall
implement:
UC1:
$ python image_search.py add example_images/image1.jpg
Detected objects chair,dining table,potted plant
$ python image_search.py add example_images/image2.jpg
Detected objects car,person,truck
$ python image_search.py add example_images/image3.jpg
Detected objects chair,person
$ python image_search.py add example_images/image4.jpg
Detected objects car
$ python image_search.py add example_images/image5.jpg
Detected objects car,person,traffic light
$ python image_search.py add example_images/image6.jpg
Detected objects chair,couch
UC2:
$ python image_search.py search --all car person
example_images/image2.jpg: car,person,truck
example_images/image5.jpg: car,person,traffic light
2 matches found.
$ python image_search.py search --some car person
example_images/image2.jpg: car,person,truck
example_images/image3.jpg: chair,person
example_images/image4.jpg: car
example_images/image5.jpg: car,person,traffic light
4 matches found.
UC3:
$ python image_search.py similar --k 999 example_images/image3.jpg
1.0000 example_images/image3.jpg
0.5000 example_images/image6.jpg
0.4082 example_images/image1.jpg
0.4082 example_images/image2.jpg
0.4082 example_images/image5.jpg
0.0000 example_images/image4.jpg
$ python image_search.py similar --k 3 example_images/image3.jpg
1.0000 example_images/image3.jpg
0.5000 example_images/image6.jpg 0.4082 example_images/image1.jpg
$ python image_search.py similar example_images/image7.jpg
0.5774 example_images/image1.jpg
UC4:
$ python image_search.py list
example_images/image1.jpg: chair,dining table,potted plant
example_images/image2.jpg: car,person,truck
example_images/image3.jpg: chair,person
example_images/image4.jpg: car
example_images/image5.jpg: car,person,traffic light
example_images/image6.jpg: chair,couch
6 images found.
Other requirements
Input File Format
The system shall be able to read and process images in JPEG format.
For UC2, you can assume that all labels are entered in lowercase, and labels containing
spaces are appropriately surrounded by quotes.
Output Format
The output of the system shall conform to the format of the example outputs given above.
Unless indicated otherwise, the output of the system does not need to be sorted.
For UC3, the output shall be sorted in descending order of similarity. That is, the most
similar matching image and its similarity shall be listed first, followed by the next similar
image, etc.
For UC4, the output shall be sorted in ascending alphabetical order.
Internal Storage
You are free to choose either a file-based storage mechanism or an SQLite-based database
for the implementation of the Index Access component.
The index shall store the file path to the image, not the image data itself.
Object detection
The supplied code for object detection can detect ~90 object types.
Future variations
• Other object detection models (including external cloud-based systems) could be
implemented.
• Additional object types could be introduced.
• Additional query types could be introduced.
• Other similarity metrics could be implemented.
• Other indexing technologies could be leveraged.
• Other output formats (for the same information) could be introduced.
These variations are not in scope for your implementation in this assignment, but your
design must be able to accommodate these extensions largely without modifying the code
that you have produced.
Decomposition
You must use the following component decomposition as the basis for your implementation
design:
The responsibilities of the elements are as follows:
Elements Responsibilities
Console App Front-end, interact with the user
Image Search Manager Orchestrates the use case processes
Object Detection Engine Detect objects in an image
Matching Engine Finds matching images given the object types
Index Access Stores and accesses the indexed images
Image Access Read images from the file system
You may introduce additional components in the architecture, provided that you justify why
these additional components are required.
Scope & Constraints
Your implementation must respect the boundaries defined by the decomposition and
include classes for each of the elements in this decomposition.
The implementation must:
• run using Python 3.10 or higher, and
• use only the Python 3.10 standard libraries and the packages listed in the
requirements.txt files supplied with this case study, and
• not rely on any platform-specific features, and
• extend the supplied code, and
• correctly implement the functions described in this document, and
• it must function correctly with any given input files (you can assume that the entire
content of the files fits into main memory), and
• it must include a comprehensive unit test suite using pytest, and
• adhere to the given decomposition and design principles taught in this course.
Focus your attention on the quality of the code.
It is not sufficient to merely create a functionally correct program to pass this assignment.
The emphasis is on creating a well-structured, modular, object-oriented design that satisfies
the design principles and coding practices discussed in this course.
Implementation Notes
You can use the code supplied in module object_detector.py to detect objects in
images and to encode the tags associated with an image as a Boolean vector (which you will
need to compute the cosine similarity). Do not modify this file.
You can use the function matplotlib.image.imread to load the image data from a file, and
sklearn.metrics.pairwise.cosine_similarity to compute the cosine similarity between two
vectors representing lists of tags.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代写dts207tc、sql编程语言代做
2024-12-25
cs209a代做、java程序设计代写
2024-12-25
cs305程序代做、代写python程序...
2024-12-25
代写csc1001、代做python设计程...
2024-12-24
代写practice test preparatio...
2024-12-24
代写bre2031 – environmental...
2024-12-24
代写ece5550: applied kalman ...
2024-12-24
代做conmgnt 7049 – measurem...
2024-12-24
代写ece3700j introduction to...
2024-12-24
代做adad9311 designing the e...
2024-12-24
代做comp5618 - applied cyber...
2024-12-24
代做ece5550: applied kalman ...
2024-12-24
代做cp1402 assignment - netw...
2024-12-24
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!