<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://projectswiki.eleceng.adelaide.edu.au/projects/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=A1656051</id>
	<title>Projects - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://projectswiki.eleceng.adelaide.edu.au/projects/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=A1656051"/>
	<link rel="alternate" type="text/html" href="https://projectswiki.eleceng.adelaide.edu.au/projects/index.php/Special:Contributions/A1656051"/>
	<updated>2026-04-15T02:39:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.4</generator>
	<entry>
		<id>https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4241</id>
		<title>Projects:2015s1-22 Automatic Sorter using Computer Vision</title>
		<link rel="alternate" type="text/html" href="https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4241"/>
		<updated>2015-10-22T08:31:10Z</updated>

		<summary type="html">&lt;p&gt;A1656051: /* Image Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Projects]]&lt;br /&gt;
[[Category:Final Year Projects]]&lt;br /&gt;
[[Category:2015S1|22]]&lt;br /&gt;
&lt;br /&gt;
The aim of the project was to improve computer vision and robot arm control to accomplish a robust autonomous playing cards sorter. The project is primarily a demonstration tool for potential electronic engineering students to interactively show technology capabilities.It built on previous experiments in this area. The algorithm and hardware was built on and developed from other systems use for image processing. The resultant system was extremely robust, highly accurate, and a sound base for further refinement. The system can be modified by continual development into a versatile automatic sorter capable of use in other fields.&lt;br /&gt;
[[File:board_img.jpg|thumb|Completed Project.]]&lt;br /&gt;
&lt;br /&gt;
== Project information ==&lt;br /&gt;
&lt;br /&gt;
The specific aims of the project this year are identified as:&lt;br /&gt;
&lt;br /&gt;
* To improve on the software subsystem of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing techniques.&lt;br /&gt;
&lt;br /&gt;
* To ensure that most physical constraints will be overcome by the robustness of playing cards image processing algorithm, as an example, constraints on illumination.&lt;br /&gt;
&lt;br /&gt;
* To implement algorithms for recognising playing cards via suit, rank, and colour identifiers or different types of combination of these three.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objectives of the project identified at the beginning are the following:-&lt;br /&gt;
* Sort a full deck of standard playing cards&lt;br /&gt;
* Use computer vision to differentiate between cards&lt;br /&gt;
*Perform the following sorts:&lt;br /&gt;
**Full Sort&lt;br /&gt;
**Suit Sort&lt;br /&gt;
**Colour Sort &lt;br /&gt;
**Value Sort&lt;br /&gt;
* Have a focus on electrical engineering, particularly image processing and reduce mechanical requirements&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This project was tackled by breaking it into four subsections.&lt;br /&gt;
*Computer Vision&lt;br /&gt;
*Robotics&lt;br /&gt;
*Card Sorting Algorithms&lt;br /&gt;
*Graphical User Interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Hardware architecture overview.jpg|thumb|center|upright=2.0|Hardware overview.]]&lt;br /&gt;
The system consists of four hardware components: &lt;br /&gt;
* Camera&lt;br /&gt;
* Laptop PC&lt;br /&gt;
* Microcontroller&lt;br /&gt;
* Robotic Arm&lt;br /&gt;
Their individual functions are detailed in the image to the side.&lt;br /&gt;
&lt;br /&gt;
== Project Breakdown == &lt;br /&gt;
&lt;br /&gt;
=== Image Processing ===&lt;br /&gt;
&lt;br /&gt;
The purpose of the image processing software of this project is to improve on the image processing software of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing technique.Three approaches has been implemented to distinguish between different cards.&lt;br /&gt;
&lt;br /&gt;
[[File:Playing card recoginition process block diagram.png|thumb|center|upright=2.0|Image Processing Block Diagram.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Playing cards extraction is mainly in two stages:-&lt;br /&gt;
&lt;br /&gt;
* Find the outline of playing card on the black background&lt;br /&gt;
* Crop and warp the playing card so that it is a perfect rectangle&lt;br /&gt;
&lt;br /&gt;
The two stages can be broken into eight image processing steps:-&lt;br /&gt;
&lt;br /&gt;
[[File:Card extraction block diagram.png|thumb|center|upright=2.0|Card Extraction Block Diagram.]]   &lt;br /&gt;
[[File:Card extraction.PNG|thumb|center|upright=2.0|Card Extraction algorithm Diagram.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The new recognition algorithm took in to consideration the following information:-&lt;br /&gt;
&lt;br /&gt;
*  Top-left and bottom-right corners are the common information of these two types of playing cards.&lt;br /&gt;
*  Colour information of numeral card and face card are distinct.&lt;br /&gt;
*  Boundary information are different corresponding with different suit of playing cards.&lt;br /&gt;
*  In the central part of playing cards, the massive blobs (suits images) on numeral cards and two corners of face cards provide useful information.&lt;br /&gt;
*  In  different  face  cards,  different  morphological  feature  provides  one  set  of information to develop more robust decision making.&lt;br /&gt;
&lt;br /&gt;
[[File:card_feature.png|thumb|center|upright=2.0|Playing Cards Feature Points.]]&lt;br /&gt;
&lt;br /&gt;
Approach 1&lt;br /&gt;
&lt;br /&gt;
* Colour Detection&lt;br /&gt;
&lt;br /&gt;
[[File:Black Numeral Card Colour Detection Process.png|thumb|center|upright=2.0|Black Numeral Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Red Face Card Colour Detection Process.png|thumb|center|upright=2.0|Red Face Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Boundary Signature&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Signature.PNG|thumb|center|upright=2.0|signature templates]]&lt;br /&gt;
[[File:Sig2.PNG|thumb|center|upright=2.0|signature examples]]&lt;br /&gt;
&lt;br /&gt;
Approach 2&lt;br /&gt;
&lt;br /&gt;
* Feature Matching(Face Card)&lt;br /&gt;
&lt;br /&gt;
[[File:143.JPG|thumb|center|upright=2.0|Feature Matching]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Blobs Counting (Numeral Card)&lt;br /&gt;
&lt;br /&gt;
[[File:Blobs.JPG|thumb|center|upright=2.0|Blobs Counting]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Approach 3&lt;br /&gt;
&lt;br /&gt;
* Template Matching Using Correlations&lt;br /&gt;
&lt;br /&gt;
[[File:Template1.JPG|thumb|center|upright=2.0|Template Matching]]&lt;br /&gt;
&lt;br /&gt;
[[File:Templates.JPG|thumb|center|upright=2.0|Templates]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The digital image techniques used in the above steps are as follows:-&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Adaptive_histogram_equalization Adaptive histogram equalization]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Hough_transform The Hough Transfer]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Template_matching Pixel Template Matching]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Thresholding_(image_processing) Adaptive Image Thresholding]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Canny_edge_detector Edge Detection]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Blob_detection Blob Detection]&lt;br /&gt;
&lt;br /&gt;
(Refer links for further details)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Results====&lt;br /&gt;
The below table show the results of 6 full decks of cards testing.&lt;br /&gt;
&lt;br /&gt;
[[File:Rank_accuracy.JPG|thumb|center|upright=2.0|Rank Accuracy]]&lt;br /&gt;
[[File:suit_accu.JPG|thumb||center|upright=2.0|Suit Accuracy]]&lt;br /&gt;
&lt;br /&gt;
=== Robotics and Kinematics ===&lt;br /&gt;
[[File:Robotic arm.JPG|thumb|Inverse kinematic geometry of robotic arm]]&lt;br /&gt;
Arduino program&lt;br /&gt;
* Connected with matlab via usb&lt;br /&gt;
* The input from matlab is all the new angles for each servo &lt;br /&gt;
* Output to matlab when robotic arm has finished moving&lt;br /&gt;
&lt;br /&gt;
Matlab Program&lt;br /&gt;
* Decide which set of movements to use depending on where a card is picked from and where it is placed&lt;br /&gt;
* Use inverse kinematics to determine angles of the robotic arm depending on where the card is to be placed and how high the stack is&lt;br /&gt;
* Forward Kinematic method &lt;br /&gt;
  x = l1(cos(θ1)) + l2(cos(θ1 – θ2)) + l3(cos(θ1 – θ2 – θ3)) &lt;br /&gt;
  y = l1(sin(θ1)) + l2(sin(θ1 – θ2)) + l3(sin(θ1 – θ2 – θ3)) &lt;br /&gt;
* The inverse kinematic method used the geometrical features of the arm to find all the angles of the robotic arm describe in the diagram to the right&lt;br /&gt;
&lt;br /&gt;
* calibrations are made to correct the inverse kinematic method&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t bump in to anything&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t pick up two cards stuck together by the electrostatic force between them&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Card Sorting Algorithms ===&lt;br /&gt;
[[File:bucketSortDiagram.jpg|thumb|Bucket sort.]]&lt;br /&gt;
&lt;br /&gt;
The cards are sorted via one of the following methods chosen using the GUI:&lt;br /&gt;
* Separate Colours&lt;br /&gt;
* Separate Suits&lt;br /&gt;
* Separate Values&lt;br /&gt;
* Select-A-Card (pick cards you want the robot to find)&lt;br /&gt;
* Full Sort (back to a brand new deck order)&lt;br /&gt;
&lt;br /&gt;
The full sort algorithm is based on a bucket/postman and selection sort and occurs in three stages:&lt;br /&gt;
* Cards are partitioned into buckets dependent on their value shown in the image to the right&lt;br /&gt;
* Each bucket is emptied out progressively onto the board&lt;br /&gt;
* Cards are selected from emptied out buckets in order and placed in sorted stacks dependent on their suit&lt;br /&gt;
&lt;br /&gt;
=== Graphical User Interface (GUI) === &lt;br /&gt;
[[File:sortingGUIScreenshot.png|thumb|Screenshot of the sorting GUI.]]&lt;br /&gt;
The GUI was implemented to enhance the projects interactiveness. The GUI aids in showing the viewer the image processing as it happens with live snapshots of images along with live decisions made by the computer vision on the value of the card. Similarly, due to the table showing the entire data structure of cards that have been scanned and sorted, the user can not only track the sorting process but ‘see’ what is below the top card in a given stack.&lt;br /&gt;
&lt;br /&gt;
==Project Significance==&lt;br /&gt;
&lt;br /&gt;
The final outcome of this project is a completely robust autonomous system. It is capable of using computer vision under various lighting conditions to sort playing cards. As a result of changes in processing, revisions were implemented for all three sub- systems for this continuing project.&lt;br /&gt;
&lt;br /&gt;
By incorporating more sophisticated image processing techniques, the software subsystem has developed a reliable performance. Most physical constraints have been overcome by the various elements of the playing cards image processing algorithm. The algorithm is validated for recognising playing cards either via suit, rank, and colour identifiers or by a combination of these three. &lt;br /&gt;
&lt;br /&gt;
The system can be modified by continual development into a versatile automatic sorter capable of use in other fields. The se ranges from technical research to system engineering relevant to the project components, and their practical applications. Examples of industries which could benefit from these types of systems include; manufacturing, medical sciences, the military, artificial intelligence and the list goes on. The project also acts as a demonstration to entice future engineering students, and show off the possibilities of electrical engineering.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Group members ===&lt;br /&gt;
* Miss Yue Zhao&lt;br /&gt;
* Mr Sijie Niu&lt;br /&gt;
* Mr Jiahui Tang&lt;br /&gt;
&lt;br /&gt;
=== Supervisors ===&lt;br /&gt;
* Dr Brian Ng&lt;br /&gt;
* Dr Danny Gibbins&lt;br /&gt;
&lt;br /&gt;
=== Team Member Responsibilities ===&lt;br /&gt;
The project responsibilities are allocated as follows:&lt;br /&gt;
* Miss Yue Zhao - Image Processing(Recognition)/Robotic Arm/Sorting Algorithms&lt;br /&gt;
* Mr Sijie Niu - Image Processing(Recognition)/Image Processing(Extraction)&lt;br /&gt;
* Mr Jiahui Tang - Image Processing(Recognition)/GUI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* Bench 11 in [[Projects Lab]]&lt;br /&gt;
* Lynxmotion AL5D Robotic Arm&lt;br /&gt;
* Arduino Botboarduino Microcontroller&lt;br /&gt;
* Microsoft Lifecam Camera&lt;br /&gt;
* MATLAB&lt;br /&gt;
* Laptop PC&lt;/div&gt;</summary>
		<author><name>A1656051</name></author>
		
	</entry>
	<entry>
		<id>https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=File:Sig2.PNG&amp;diff=4240</id>
		<title>File:Sig2.PNG</title>
		<link rel="alternate" type="text/html" href="https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=File:Sig2.PNG&amp;diff=4240"/>
		<updated>2015-10-22T08:30:26Z</updated>

		<summary type="html">&lt;p&gt;A1656051: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>A1656051</name></author>
		
	</entry>
	<entry>
		<id>https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=File:Signature.PNG&amp;diff=4239</id>
		<title>File:Signature.PNG</title>
		<link rel="alternate" type="text/html" href="https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=File:Signature.PNG&amp;diff=4239"/>
		<updated>2015-10-22T08:28:31Z</updated>

		<summary type="html">&lt;p&gt;A1656051: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>A1656051</name></author>
		
	</entry>
	<entry>
		<id>https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4231</id>
		<title>Projects:2015s1-22 Automatic Sorter using Computer Vision</title>
		<link rel="alternate" type="text/html" href="https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4231"/>
		<updated>2015-10-22T08:20:52Z</updated>

		<summary type="html">&lt;p&gt;A1656051: /* Image Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Projects]]&lt;br /&gt;
[[Category:Final Year Projects]]&lt;br /&gt;
[[Category:2015S1|22]]&lt;br /&gt;
&lt;br /&gt;
The aim of the project was to improve computer vision and robot arm control to accomplish a robust autonomous playing cards sorter. The project is primarily a demonstration tool for potential electronic engineering students to interactively show technology capabilities.It built on previous experiments in this area. The algorithm and hardware was built on and developed from other systems use for image processing. The resultant system was extremely robust, highly accurate, and a sound base for further refinement. The system can be modified by continual development into a versatile automatic sorter capable of use in other fields.&lt;br /&gt;
[[File:board_img.jpg|thumb|Completed Project.]]&lt;br /&gt;
&lt;br /&gt;
== Project information ==&lt;br /&gt;
&lt;br /&gt;
The specific aims of the project this year are identified as:&lt;br /&gt;
&lt;br /&gt;
* To improve on the software subsystem of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing techniques.&lt;br /&gt;
&lt;br /&gt;
* To ensure that most physical constraints will be overcome by the robustness of playing cards image processing algorithm, as an example, constraints on illumination.&lt;br /&gt;
&lt;br /&gt;
* To implement algorithms for recognising playing cards via suit, rank, and colour identifiers or different types of combination of these three.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objectives of the project identified at the beginning are the following:-&lt;br /&gt;
* Sort a full deck of standard playing cards&lt;br /&gt;
* Use computer vision to differentiate between cards&lt;br /&gt;
*Perform the following sorts:&lt;br /&gt;
**Full Sort&lt;br /&gt;
**Suit Sort&lt;br /&gt;
**Colour Sort &lt;br /&gt;
**Value Sort&lt;br /&gt;
* Have a focus on electrical engineering, particularly image processing and reduce mechanical requirements&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This project was tackled by breaking it into four subsections.&lt;br /&gt;
*Computer Vision&lt;br /&gt;
*Robotics&lt;br /&gt;
*Card Sorting Algorithms&lt;br /&gt;
*Graphical User Interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Hardware architecture overview.jpg|thumb|center|upright=2.0|Hardware overview.]]&lt;br /&gt;
The system consists of four hardware components: &lt;br /&gt;
* Camera&lt;br /&gt;
* Laptop PC&lt;br /&gt;
* Microcontroller&lt;br /&gt;
* Robotic Arm&lt;br /&gt;
Their individual functions are detailed in the image to the side.&lt;br /&gt;
&lt;br /&gt;
== Project Breakdown == &lt;br /&gt;
&lt;br /&gt;
=== Image Processing ===&lt;br /&gt;
&lt;br /&gt;
The purpose of the image processing software of this project is to improve on the image processing software of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing technique.Three approaches has been implemented to distinguish between different cards.&lt;br /&gt;
&lt;br /&gt;
[[File:Playing card recoginition process block diagram.png|thumb|center|upright=2.0|Image Processing Block Diagram.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Playing cards extraction is mainly in two stages:-&lt;br /&gt;
&lt;br /&gt;
* Find the outline of playing card on the black background&lt;br /&gt;
* Crop and warp the playing card so that it is a perfect rectangle&lt;br /&gt;
&lt;br /&gt;
The two stages can be broken into eight image processing steps:-&lt;br /&gt;
&lt;br /&gt;
[[File:Card extraction block diagram.png|thumb|center|upright=2.0|Card Extraction Block Diagram.]]   &lt;br /&gt;
[[File:Card extraction.PNG|thumb|center|upright=2.0|Card Extraction algorithm Diagram.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The new recognition algorithm took in to consideration the following information:-&lt;br /&gt;
&lt;br /&gt;
*  Top-left and bottom-right corners are the common information of these two types of playing cards.&lt;br /&gt;
*  Colour information of numeral card and face card are distinct.&lt;br /&gt;
*  Boundary information are different corresponding with different suit of playing cards.&lt;br /&gt;
*  In the central part of playing cards, the massive blobs (suits images) on numeral cards and two corners of face cards provide useful information.&lt;br /&gt;
*  In  different  face  cards,  different  morphological  feature  provides  one  set  of information to develop more robust decision making.&lt;br /&gt;
&lt;br /&gt;
[[File:card_feature.png|thumb|center|upright=2.0|Playing Cards Feature Points.]]&lt;br /&gt;
&lt;br /&gt;
Approach 1&lt;br /&gt;
&lt;br /&gt;
* Colour Detection&lt;br /&gt;
&lt;br /&gt;
[[File:Black Numeral Card Colour Detection Process.png|thumb|center|upright=2.0|Black Numeral Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Red Face Card Colour Detection Process.png|thumb|center|upright=2.0|Red Face Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Boundary Signature&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Approach 2&lt;br /&gt;
&lt;br /&gt;
* Feature Matching(Face Card)&lt;br /&gt;
&lt;br /&gt;
[[File:143.JPG|thumb|center|upright=2.0|Feature Matching]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Blobs Counting (Numeral Card)&lt;br /&gt;
&lt;br /&gt;
[[File:Blobs.JPG|thumb|center|upright=2.0|Blobs Counting]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Approach 3&lt;br /&gt;
&lt;br /&gt;
* Template Matching Using Correlations&lt;br /&gt;
&lt;br /&gt;
[[File:Template1.JPG|thumb|center|upright=2.0|Template Matching]]&lt;br /&gt;
&lt;br /&gt;
[[File:Templates.JPG|thumb|center|upright=2.0|Templates]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The digital image techniques used in the above steps are as follows:-&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Adaptive_histogram_equalization Adaptive histogram equalization]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Hough_transform The Hough Transfer]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Template_matching Pixel Template Matching]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Thresholding_(image_processing) Adaptive Image Thresholding]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Canny_edge_detector Edge Detection]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Blob_detection Blob Detection]&lt;br /&gt;
&lt;br /&gt;
(Refer links for further details)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Results====&lt;br /&gt;
The below table show the results of 6 full decks of cards testing.&lt;br /&gt;
&lt;br /&gt;
[[File:Rank_accuracy.JPG|thumb|center|upright=2.0|Rank Accuracy]]&lt;br /&gt;
[[File:suit_accu.JPG|thumb||center|upright=2.0|Suit Accuracy]]&lt;br /&gt;
&lt;br /&gt;
=== Robotics and Kinematics ===&lt;br /&gt;
[[File:Robotic arm.JPG|thumb|Inverse kinematic geometry of robotic arm]]&lt;br /&gt;
Arduino program&lt;br /&gt;
* Connected with matlab via usb&lt;br /&gt;
* The input from matlab is all the new angles for each servo &lt;br /&gt;
* Output to matlab when robotic arm has finished moving&lt;br /&gt;
&lt;br /&gt;
Matlab Program&lt;br /&gt;
* Decide which set of movements to use depending on where a card is picked from and where it is placed&lt;br /&gt;
* Use inverse kinematics to determine angles of the robotic arm depending on where the card is to be placed and how high the stack is&lt;br /&gt;
* Forward Kinematic method &lt;br /&gt;
  x = l1(cos(θ1)) + l2(cos(θ1 – θ2)) + l3(cos(θ1 – θ2 – θ3)) &lt;br /&gt;
  y = l1(sin(θ1)) + l2(sin(θ1 – θ2)) + l3(sin(θ1 – θ2 – θ3)) &lt;br /&gt;
* The inverse kinematic method used the geometrical features of the arm to find all the angles of the robotic arm describe in the diagram to the right&lt;br /&gt;
&lt;br /&gt;
* calibrations are made to correct the inverse kinematic method&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t bump in to anything&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t pick up two cards stuck together by the electrostatic force between them&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Card Sorting Algorithms ===&lt;br /&gt;
[[File:bucketSortDiagram.jpg|thumb|Bucket sort.]]&lt;br /&gt;
&lt;br /&gt;
The cards are sorted via one of the following methods chosen using the GUI:&lt;br /&gt;
* Separate Colours&lt;br /&gt;
* Separate Suits&lt;br /&gt;
* Separate Values&lt;br /&gt;
* Select-A-Card (pick cards you want the robot to find)&lt;br /&gt;
* Full Sort (back to a brand new deck order)&lt;br /&gt;
&lt;br /&gt;
The full sort algorithm is based on a bucket/postman and selection sort and occurs in three stages:&lt;br /&gt;
* Cards are partitioned into buckets dependent on their value shown in the image to the right&lt;br /&gt;
* Each bucket is emptied out progressively onto the board&lt;br /&gt;
* Cards are selected from emptied out buckets in order and placed in sorted stacks dependent on their suit&lt;br /&gt;
&lt;br /&gt;
=== Graphical User Interface (GUI) === &lt;br /&gt;
[[File:sortingGUIScreenshot.png|thumb|Screenshot of the sorting GUI.]]&lt;br /&gt;
The GUI was implemented to enhance the projects interactiveness. The GUI aids in showing the viewer the image processing as it happens with live snapshots of images along with live decisions made by the computer vision on the value of the card. Similarly, due to the table showing the entire data structure of cards that have been scanned and sorted, the user can not only track the sorting process but ‘see’ what is below the top card in a given stack.&lt;br /&gt;
&lt;br /&gt;
==Project Significance==&lt;br /&gt;
&lt;br /&gt;
The final outcome of this project is a completely robust autonomous system. It is capable of using computer vision under various lighting conditions to sort playing cards. As a result of changes in processing, revisions were implemented for all three sub- systems for this continuing project.&lt;br /&gt;
&lt;br /&gt;
By incorporating more sophisticated image processing techniques, the software subsystem has developed a reliable performance. Most physical constraints have been overcome by the various elements of the playing cards image processing algorithm. The algorithm is validated for recognising playing cards either via suit, rank, and colour identifiers or by a combination of these three. &lt;br /&gt;
&lt;br /&gt;
The system can be modified by continual development into a versatile automatic sorter capable of use in other fields. The se ranges from technical research to system engineering relevant to the project components, and their practical applications. Examples of industries which could benefit from these types of systems include; manufacturing, medical sciences, the military, artificial intelligence and the list goes on. The project also acts as a demonstration to entice future engineering students, and show off the possibilities of electrical engineering.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Group members ===&lt;br /&gt;
* Miss Yue Zhao&lt;br /&gt;
* Mr Sijie Niu&lt;br /&gt;
* Mr Jiahui Tang&lt;br /&gt;
&lt;br /&gt;
=== Supervisors ===&lt;br /&gt;
* Dr Brian Ng&lt;br /&gt;
* Dr Danny Gibbins&lt;br /&gt;
&lt;br /&gt;
=== Team Member Responsibilities ===&lt;br /&gt;
The project responsibilities are allocated as follows:&lt;br /&gt;
* Miss Yue Zhao - Image Processing(Recognition)/Robotic Arm/Sorting Algorithms&lt;br /&gt;
* Mr Sijie Niu - Image Processing(Recognition)/Image Processing(Extraction)&lt;br /&gt;
* Mr Jiahui Tang - Image Processing(Recognition)/GUI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* Bench 11 in [[Projects Lab]]&lt;br /&gt;
* Lynxmotion AL5D Robotic Arm&lt;br /&gt;
* Arduino Botboarduino Microcontroller&lt;br /&gt;
* Microsoft Lifecam Camera&lt;br /&gt;
* MATLAB&lt;br /&gt;
* Laptop PC&lt;/div&gt;</summary>
		<author><name>A1656051</name></author>
		
	</entry>
	<entry>
		<id>https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4230</id>
		<title>Projects:2015s1-22 Automatic Sorter using Computer Vision</title>
		<link rel="alternate" type="text/html" href="https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4230"/>
		<updated>2015-10-22T08:18:44Z</updated>

		<summary type="html">&lt;p&gt;A1656051: /* Image Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Projects]]&lt;br /&gt;
[[Category:Final Year Projects]]&lt;br /&gt;
[[Category:2015S1|22]]&lt;br /&gt;
&lt;br /&gt;
The aim of the project was to improve computer vision and robot arm control to accomplish a robust autonomous playing cards sorter. The project is primarily a demonstration tool for potential electronic engineering students to interactively show technology capabilities.It built on previous experiments in this area. The algorithm and hardware was built on and developed from other systems use for image processing. The resultant system was extremely robust, highly accurate, and a sound base for further refinement. The system can be modified by continual development into a versatile automatic sorter capable of use in other fields.&lt;br /&gt;
[[File:board_img.jpg|thumb|Completed Project.]]&lt;br /&gt;
&lt;br /&gt;
== Project information ==&lt;br /&gt;
&lt;br /&gt;
The specific aims of the project this year are identified as:&lt;br /&gt;
&lt;br /&gt;
* To improve on the software subsystem of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing techniques.&lt;br /&gt;
&lt;br /&gt;
* To ensure that most physical constraints will be overcome by the robustness of playing cards image processing algorithm, as an example, constraints on illumination.&lt;br /&gt;
&lt;br /&gt;
* To implement algorithms for recognising playing cards via suit, rank, and colour identifiers or different types of combination of these three.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objectives of the project identified at the beginning are the following:-&lt;br /&gt;
* Sort a full deck of standard playing cards&lt;br /&gt;
* Use computer vision to differentiate between cards&lt;br /&gt;
*Perform the following sorts:&lt;br /&gt;
**Full Sort&lt;br /&gt;
**Suit Sort&lt;br /&gt;
**Colour Sort &lt;br /&gt;
**Value Sort&lt;br /&gt;
* Have a focus on electrical engineering, particularly image processing and reduce mechanical requirements&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This project was tackled by breaking it into four subsections.&lt;br /&gt;
*Computer Vision&lt;br /&gt;
*Robotics&lt;br /&gt;
*Card Sorting Algorithms&lt;br /&gt;
*Graphical User Interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Hardware architecture overview.jpg|thumb|center|upright=2.0|Hardware overview.]]&lt;br /&gt;
The system consists of four hardware components: &lt;br /&gt;
* Camera&lt;br /&gt;
* Laptop PC&lt;br /&gt;
* Microcontroller&lt;br /&gt;
* Robotic Arm&lt;br /&gt;
Their individual functions are detailed in the image to the side.&lt;br /&gt;
&lt;br /&gt;
== Project Breakdown == &lt;br /&gt;
&lt;br /&gt;
=== Image Processing ===&lt;br /&gt;
&lt;br /&gt;
The purpose of the image processing software of this project is to improve on the image processing software of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing technique.Three approaches has been implemented to distinguish between different cards.&lt;br /&gt;
&lt;br /&gt;
[[File:Playing card recoginition process block diagram.png|thumb|center|upright=2.0|Image Processing Block Diagram.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Playing cards extraction is mainly in two stages:-&lt;br /&gt;
&lt;br /&gt;
* Find the outline of playing card on the black background&lt;br /&gt;
* Crop and warp the playing card so that it is a perfect rectangle&lt;br /&gt;
&lt;br /&gt;
[[File:Card extraction block diagram.png|thumb|Card Extraction Block Diagram.]]   &lt;br /&gt;
[[File:Card extraction.PNG|thumb|center|upright=2.0|Card Extraction Block Diagram.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The new recognition algorithm took in to consideration the following information:-&lt;br /&gt;
&lt;br /&gt;
*  Top-left and bottom-right corners are the common information of these two types of playing cards.&lt;br /&gt;
*  Colour information of numeral card and face card are distinct.&lt;br /&gt;
*  Boundary information are different corresponding with different suit of playing cards.&lt;br /&gt;
*  In the central part of playing cards, the massive blobs (suits images) on numeral cards and two corners of face cards provide useful information.&lt;br /&gt;
*  In  different  face  cards,  different  morphological  feature  provides  one  set  of information to develop more robust decision making.&lt;br /&gt;
&lt;br /&gt;
[[File:card_feature.png|thumb|center|upright=2.0|Playing Cards Feature Points.]]&lt;br /&gt;
&lt;br /&gt;
Approach 1&lt;br /&gt;
&lt;br /&gt;
* Colour Detection&lt;br /&gt;
&lt;br /&gt;
[[File:Black Numeral Card Colour Detection Process.png|thumb|center|upright=2.0|Black Numeral Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Red Face Card Colour Detection Process.png|thumb|center|upright=2.0|Red Face Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Boundary Signature&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Approach 2&lt;br /&gt;
&lt;br /&gt;
* Feature Matching(Face Card)&lt;br /&gt;
&lt;br /&gt;
[[File:143.JPG|thumb|center|upright=2.0|Feature Matching]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Blobs Counting (Numeral Card)&lt;br /&gt;
&lt;br /&gt;
[[File:Blobs.JPG|thumb|center|upright=2.0|Blobs Counting]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Approach 3&lt;br /&gt;
&lt;br /&gt;
* Template Matching Using Correlations&lt;br /&gt;
&lt;br /&gt;
[[File:Template1.JPG|thumb|center|upright=2.0|Template Matching]]&lt;br /&gt;
&lt;br /&gt;
[[File:Templates.JPG|thumb|center|upright=2.0|Templates]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The digital image techniques used in the above steps are as follows:-&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Adaptive_histogram_equalization Adaptive histogram equalization]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Hough_transform The Hough Transfer]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Template_matching Pixel Template Matching]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Thresholding_(image_processing) Adaptive Image Thresholding]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Canny_edge_detector Edge Detection]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Blob_detection Blob Detection]&lt;br /&gt;
&lt;br /&gt;
(Refer links for further details)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Results====&lt;br /&gt;
The below table show the results of 6 full decks of cards testing.&lt;br /&gt;
&lt;br /&gt;
[[File:Rank_accuracy.JPG|thumb|center|upright=2.0|Rank Accuracy]]&lt;br /&gt;
[[File:suit_accu.JPG|thumb||center|upright=2.0|Suit Accuracy]]&lt;br /&gt;
&lt;br /&gt;
=== Robotics and Kinematics ===&lt;br /&gt;
[[File:Robotic arm.JPG|thumb|Inverse kinematic geometry of robotic arm]]&lt;br /&gt;
Arduino program&lt;br /&gt;
* Connected with matlab via usb&lt;br /&gt;
* The input from matlab is all the new angles for each servo &lt;br /&gt;
* Output to matlab when robotic arm has finished moving&lt;br /&gt;
&lt;br /&gt;
Matlab Program&lt;br /&gt;
* Decide which set of movements to use depending on where a card is picked from and where it is placed&lt;br /&gt;
* Use inverse kinematics to determine angles of the robotic arm depending on where the card is to be placed and how high the stack is&lt;br /&gt;
* Forward Kinematic method &lt;br /&gt;
  x = l1(cos(θ1)) + l2(cos(θ1 – θ2)) + l3(cos(θ1 – θ2 – θ3)) &lt;br /&gt;
  y = l1(sin(θ1)) + l2(sin(θ1 – θ2)) + l3(sin(θ1 – θ2 – θ3)) &lt;br /&gt;
* The inverse kinematic method used the geometrical features of the arm to find all the angles of the robotic arm describe in the diagram to the right&lt;br /&gt;
&lt;br /&gt;
* calibrations are made to correct the inverse kinematic method&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t bump in to anything&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t pick up two cards stuck together by the electrostatic force between them&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Card Sorting Algorithms ===&lt;br /&gt;
[[File:bucketSortDiagram.jpg|thumb|Bucket sort.]]&lt;br /&gt;
&lt;br /&gt;
The cards are sorted via one of the following methods chosen using the GUI:&lt;br /&gt;
* Separate Colours&lt;br /&gt;
* Separate Suits&lt;br /&gt;
* Separate Values&lt;br /&gt;
* Select-A-Card (pick cards you want the robot to find)&lt;br /&gt;
* Full Sort (back to a brand new deck order)&lt;br /&gt;
&lt;br /&gt;
The full sort algorithm is based on a bucket/postman and selection sort and occurs in three stages:&lt;br /&gt;
* Cards are partitioned into buckets dependent on their value shown in the image to the right&lt;br /&gt;
* Each bucket is emptied out progressively onto the board&lt;br /&gt;
* Cards are selected from emptied out buckets in order and placed in sorted stacks dependent on their suit&lt;br /&gt;
&lt;br /&gt;
=== Graphical User Interface (GUI) === &lt;br /&gt;
[[File:sortingGUIScreenshot.png|thumb|Screenshot of the sorting GUI.]]&lt;br /&gt;
The GUI was implemented to enhance the projects interactiveness. The GUI aids in showing the viewer the image processing as it happens with live snapshots of images along with live decisions made by the computer vision on the value of the card. Similarly, due to the table showing the entire data structure of cards that have been scanned and sorted, the user can not only track the sorting process but ‘see’ what is below the top card in a given stack.&lt;br /&gt;
&lt;br /&gt;
==Project Significance==&lt;br /&gt;
&lt;br /&gt;
The final outcome of this project is a completely robust autonomous system. It is capable of using computer vision under various lighting conditions to sort playing cards. As a result of changes in processing, revisions were implemented for all three sub- systems for this continuing project.&lt;br /&gt;
&lt;br /&gt;
By incorporating more sophisticated image processing techniques, the software subsystem has developed a reliable performance. Most physical constraints have been overcome by the various elements of the playing cards image processing algorithm. The algorithm is validated for recognising playing cards either via suit, rank, and colour identifiers or by a combination of these three. &lt;br /&gt;
&lt;br /&gt;
The system can be modified by continual development into a versatile automatic sorter capable of use in other fields. The se ranges from technical research to system engineering relevant to the project components, and their practical applications. Examples of industries which could benefit from these types of systems include; manufacturing, medical sciences, the military, artificial intelligence and the list goes on. The project also acts as a demonstration to entice future engineering students, and show off the possibilities of electrical engineering.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Group members ===&lt;br /&gt;
* Miss Yue Zhao&lt;br /&gt;
* Mr Sijie Niu&lt;br /&gt;
* Mr Jiahui Tang&lt;br /&gt;
&lt;br /&gt;
=== Supervisors ===&lt;br /&gt;
* Dr Brian Ng&lt;br /&gt;
* Dr Danny Gibbins&lt;br /&gt;
&lt;br /&gt;
=== Team Member Responsibilities ===&lt;br /&gt;
The project responsibilities are allocated as follows:&lt;br /&gt;
* Miss Yue Zhao - Image Processing(Recognition)/Robotic Arm/Sorting Algorithms&lt;br /&gt;
* Mr Sijie Niu - Image Processing(Recognition)/Image Processing(Extraction)&lt;br /&gt;
* Mr Jiahui Tang - Image Processing(Recognition)/GUI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* Bench 11 in [[Projects Lab]]&lt;br /&gt;
* Lynxmotion AL5D Robotic Arm&lt;br /&gt;
* Arduino Botboarduino Microcontroller&lt;br /&gt;
* Microsoft Lifecam Camera&lt;br /&gt;
* MATLAB&lt;br /&gt;
* Laptop PC&lt;/div&gt;</summary>
		<author><name>A1656051</name></author>
		
	</entry>
	<entry>
		<id>https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4229</id>
		<title>Projects:2015s1-22 Automatic Sorter using Computer Vision</title>
		<link rel="alternate" type="text/html" href="https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4229"/>
		<updated>2015-10-22T08:18:02Z</updated>

		<summary type="html">&lt;p&gt;A1656051: /* Image Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Projects]]&lt;br /&gt;
[[Category:Final Year Projects]]&lt;br /&gt;
[[Category:2015S1|22]]&lt;br /&gt;
&lt;br /&gt;
The aim of the project was to improve computer vision and robot arm control to accomplish a robust autonomous playing cards sorter. The project is primarily a demonstration tool for potential electronic engineering students to interactively show technology capabilities.It built on previous experiments in this area. The algorithm and hardware was built on and developed from other systems use for image processing. The resultant system was extremely robust, highly accurate, and a sound base for further refinement. The system can be modified by continual development into a versatile automatic sorter capable of use in other fields.&lt;br /&gt;
[[File:board_img.jpg|thumb|Completed Project.]]&lt;br /&gt;
&lt;br /&gt;
== Project information ==&lt;br /&gt;
&lt;br /&gt;
The specific aims of the project this year are identified as:&lt;br /&gt;
&lt;br /&gt;
* To improve on the software subsystem of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing techniques.&lt;br /&gt;
&lt;br /&gt;
* To ensure that most physical constraints will be overcome by the robustness of playing cards image processing algorithm, as an example, constraints on illumination.&lt;br /&gt;
&lt;br /&gt;
* To implement algorithms for recognising playing cards via suit, rank, and colour identifiers or different types of combination of these three.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objectives of the project identified at the beginning are the following:-&lt;br /&gt;
* Sort a full deck of standard playing cards&lt;br /&gt;
* Use computer vision to differentiate between cards&lt;br /&gt;
*Perform the following sorts:&lt;br /&gt;
**Full Sort&lt;br /&gt;
**Suit Sort&lt;br /&gt;
**Colour Sort &lt;br /&gt;
**Value Sort&lt;br /&gt;
* Have a focus on electrical engineering, particularly image processing and reduce mechanical requirements&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This project was tackled by breaking it into four subsections.&lt;br /&gt;
*Computer Vision&lt;br /&gt;
*Robotics&lt;br /&gt;
*Card Sorting Algorithms&lt;br /&gt;
*Graphical User Interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Hardware architecture overview.jpg|thumb|center|upright=2.0|Hardware overview.]]&lt;br /&gt;
The system consists of four hardware components: &lt;br /&gt;
* Camera&lt;br /&gt;
* Laptop PC&lt;br /&gt;
* Microcontroller&lt;br /&gt;
* Robotic Arm&lt;br /&gt;
Their individual functions are detailed in the image to the side.&lt;br /&gt;
&lt;br /&gt;
== Project Breakdown == &lt;br /&gt;
&lt;br /&gt;
=== Image Processing ===&lt;br /&gt;
&lt;br /&gt;
The purpose of the image processing software of this project is to improve on the image processing software of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing technique.Three approaches has been implemented to distinguish between different cards.&lt;br /&gt;
&lt;br /&gt;
[[File:Playing card recoginition process block diagram.png|thumb|center|upright=2.0|Image Processing Block Diagram.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Playing cards extraction is mainly in two stages:-&lt;br /&gt;
&lt;br /&gt;
* Find the outline of playing card on the black background&lt;br /&gt;
* Crop and warp the playing card so that it is a perfect rectangle&lt;br /&gt;
&lt;br /&gt;
[[File:Card extraction block diagram.png|thumb|center|upright=2.0|Card Extraction Block Diagram.]]   [[File:Card extraction.PNG|thumb|center|upright=2.0|Card Extraction Block Diagram.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The new recognition algorithm took in to consideration the following information:-&lt;br /&gt;
&lt;br /&gt;
*  Top-left and bottom-right corners are the common information of these two types of playing cards.&lt;br /&gt;
*  Colour information of numeral card and face card are distinct.&lt;br /&gt;
*  Boundary information are different corresponding with different suit of playing cards.&lt;br /&gt;
*  In the central part of playing cards, the massive blobs (suits images) on numeral cards and two corners of face cards provide useful information.&lt;br /&gt;
*  In  different  face  cards,  different  morphological  feature  provides  one  set  of information to develop more robust decision making.&lt;br /&gt;
&lt;br /&gt;
[[File:card_feature.png|thumb|center|upright=2.0|Playing Cards Feature Points.]]&lt;br /&gt;
&lt;br /&gt;
Approach 1&lt;br /&gt;
&lt;br /&gt;
* Colour Detection&lt;br /&gt;
&lt;br /&gt;
[[File:Black Numeral Card Colour Detection Process.png|thumb|center|upright=2.0|Black Numeral Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Red Face Card Colour Detection Process.png|thumb|center|upright=2.0|Red Face Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Boundary Signature&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Approach 2&lt;br /&gt;
&lt;br /&gt;
* Feature Matching(Face Card)&lt;br /&gt;
&lt;br /&gt;
[[File:143.JPG|thumb|center|upright=2.0|Feature Matching]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Blobs Counting (Numeral Card)&lt;br /&gt;
&lt;br /&gt;
[[File:Blobs.JPG|thumb|center|upright=2.0|Blobs Counting]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Approach 3&lt;br /&gt;
&lt;br /&gt;
* Template Matching Using Correlations&lt;br /&gt;
&lt;br /&gt;
[[File:Template1.JPG|thumb|center|upright=2.0|Template Matching]]&lt;br /&gt;
&lt;br /&gt;
[[File:Templates.JPG|thumb|center|upright=2.0|Templates]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The digital image techniques used in the above steps are as follows:-&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Adaptive_histogram_equalization Adaptive histogram equalization]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Hough_transform The Hough Transfer]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Template_matching Pixel Template Matching]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Thresholding_(image_processing) Adaptive Image Thresholding]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Canny_edge_detector Edge Detection]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Blob_detection Blob Detection]&lt;br /&gt;
&lt;br /&gt;
(Refer links for further details)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Results====&lt;br /&gt;
The below table show the results of 6 full decks of cards testing.&lt;br /&gt;
&lt;br /&gt;
[[File:Rank_accuracy.JPG|thumb|center|upright=2.0|Rank Accuracy]]&lt;br /&gt;
[[File:suit_accu.JPG|thumb||center|upright=2.0|Suit Accuracy]]&lt;br /&gt;
&lt;br /&gt;
=== Robotics and Kinematics ===&lt;br /&gt;
[[File:Robotic arm.JPG|thumb|Inverse kinematic geometry of robotic arm]]&lt;br /&gt;
Arduino program&lt;br /&gt;
* Connected with matlab via usb&lt;br /&gt;
* The input from matlab is all the new angles for each servo &lt;br /&gt;
* Output to matlab when robotic arm has finished moving&lt;br /&gt;
&lt;br /&gt;
Matlab Program&lt;br /&gt;
* Decide which set of movements to use depending on where a card is picked from and where it is placed&lt;br /&gt;
* Use inverse kinematics to determine angles of the robotic arm depending on where the card is to be placed and how high the stack is&lt;br /&gt;
* Forward Kinematic method &lt;br /&gt;
  x = l1(cos(θ1)) + l2(cos(θ1 – θ2)) + l3(cos(θ1 – θ2 – θ3)) &lt;br /&gt;
  y = l1(sin(θ1)) + l2(sin(θ1 – θ2)) + l3(sin(θ1 – θ2 – θ3)) &lt;br /&gt;
* The inverse kinematic method used the geometrical features of the arm to find all the angles of the robotic arm describe in the diagram to the right&lt;br /&gt;
&lt;br /&gt;
* calibrations are made to correct the inverse kinematic method&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t bump in to anything&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t pick up two cards stuck together by the electrostatic force between them&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Card Sorting Algorithms ===&lt;br /&gt;
[[File:bucketSortDiagram.jpg|thumb|Bucket sort.]]&lt;br /&gt;
&lt;br /&gt;
The cards are sorted via one of the following methods chosen using the GUI:&lt;br /&gt;
* Separate Colours&lt;br /&gt;
* Separate Suits&lt;br /&gt;
* Separate Values&lt;br /&gt;
* Select-A-Card (pick cards you want the robot to find)&lt;br /&gt;
* Full Sort (back to a brand new deck order)&lt;br /&gt;
&lt;br /&gt;
The full sort algorithm is based on a bucket/postman and selection sort and occurs in three stages:&lt;br /&gt;
* Cards are partitioned into buckets dependent on their value shown in the image to the right&lt;br /&gt;
* Each bucket is emptied out progressively onto the board&lt;br /&gt;
* Cards are selected from emptied out buckets in order and placed in sorted stacks dependent on their suit&lt;br /&gt;
&lt;br /&gt;
=== Graphical User Interface (GUI) === &lt;br /&gt;
[[File:sortingGUIScreenshot.png|thumb|Screenshot of the sorting GUI.]]&lt;br /&gt;
The GUI was implemented to enhance the projects interactiveness. The GUI aids in showing the viewer the image processing as it happens with live snapshots of images along with live decisions made by the computer vision on the value of the card. Similarly, due to the table showing the entire data structure of cards that have been scanned and sorted, the user can not only track the sorting process but ‘see’ what is below the top card in a given stack.&lt;br /&gt;
&lt;br /&gt;
==Project Significance==&lt;br /&gt;
&lt;br /&gt;
The final outcome of this project is a completely robust autonomous system. It is capable of using computer vision under various lighting conditions to sort playing cards. As a result of changes in processing, revisions were implemented for all three sub- systems for this continuing project.&lt;br /&gt;
&lt;br /&gt;
By incorporating more sophisticated image processing techniques, the software subsystem has developed a reliable performance. Most physical constraints have been overcome by the various elements of the playing cards image processing algorithm. The algorithm is validated for recognising playing cards either via suit, rank, and colour identifiers or by a combination of these three. &lt;br /&gt;
&lt;br /&gt;
The system can be modified by continual development into a versatile automatic sorter capable of use in other fields. The se ranges from technical research to system engineering relevant to the project components, and their practical applications. Examples of industries which could benefit from these types of systems include; manufacturing, medical sciences, the military, artificial intelligence and the list goes on. The project also acts as a demonstration to entice future engineering students, and show off the possibilities of electrical engineering.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Group members ===&lt;br /&gt;
* Miss Yue Zhao&lt;br /&gt;
* Mr Sijie Niu&lt;br /&gt;
* Mr Jiahui Tang&lt;br /&gt;
&lt;br /&gt;
=== Supervisors ===&lt;br /&gt;
* Dr Brian Ng&lt;br /&gt;
* Dr Danny Gibbins&lt;br /&gt;
&lt;br /&gt;
=== Team Member Responsibilities ===&lt;br /&gt;
The project responsibilities are allocated as follows:&lt;br /&gt;
* Miss Yue Zhao - Image Processing(Recognition)/Robotic Arm/Sorting Algorithms&lt;br /&gt;
* Mr Sijie Niu - Image Processing(Recognition)/Image Processing(Extraction)&lt;br /&gt;
* Mr Jiahui Tang - Image Processing(Recognition)/GUI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* Bench 11 in [[Projects Lab]]&lt;br /&gt;
* Lynxmotion AL5D Robotic Arm&lt;br /&gt;
* Arduino Botboarduino Microcontroller&lt;br /&gt;
* Microsoft Lifecam Camera&lt;br /&gt;
* MATLAB&lt;br /&gt;
* Laptop PC&lt;/div&gt;</summary>
		<author><name>A1656051</name></author>
		
	</entry>
	<entry>
		<id>https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4228</id>
		<title>Projects:2015s1-22 Automatic Sorter using Computer Vision</title>
		<link rel="alternate" type="text/html" href="https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=Projects:2015s1-22_Automatic_Sorter_using_Computer_Vision&amp;diff=4228"/>
		<updated>2015-10-22T08:17:29Z</updated>

		<summary type="html">&lt;p&gt;A1656051: /* Image Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Projects]]&lt;br /&gt;
[[Category:Final Year Projects]]&lt;br /&gt;
[[Category:2015S1|22]]&lt;br /&gt;
&lt;br /&gt;
The aim of the project was to improve computer vision and robot arm control to accomplish a robust autonomous playing cards sorter. The project is primarily a demonstration tool for potential electronic engineering students to interactively show technology capabilities.It built on previous experiments in this area. The algorithm and hardware was built on and developed from other systems use for image processing. The resultant system was extremely robust, highly accurate, and a sound base for further refinement. The system can be modified by continual development into a versatile automatic sorter capable of use in other fields.&lt;br /&gt;
[[File:board_img.jpg|thumb|Completed Project.]]&lt;br /&gt;
&lt;br /&gt;
== Project information ==&lt;br /&gt;
&lt;br /&gt;
The specific aims of the project this year are identified as:&lt;br /&gt;
&lt;br /&gt;
* To improve on the software subsystem of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing techniques.&lt;br /&gt;
&lt;br /&gt;
* To ensure that most physical constraints will be overcome by the robustness of playing cards image processing algorithm, as an example, constraints on illumination.&lt;br /&gt;
&lt;br /&gt;
* To implement algorithms for recognising playing cards via suit, rank, and colour identifiers or different types of combination of these three.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objectives of the project identified at the beginning are the following:-&lt;br /&gt;
* Sort a full deck of standard playing cards&lt;br /&gt;
* Use computer vision to differentiate between cards&lt;br /&gt;
*Perform the following sorts:&lt;br /&gt;
**Full Sort&lt;br /&gt;
**Suit Sort&lt;br /&gt;
**Colour Sort &lt;br /&gt;
**Value Sort&lt;br /&gt;
* Have a focus on electrical engineering, particularly image processing and reduce mechanical requirements&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This project was tackled by breaking it into four subsections.&lt;br /&gt;
*Computer Vision&lt;br /&gt;
*Robotics&lt;br /&gt;
*Card Sorting Algorithms&lt;br /&gt;
*Graphical User Interface&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Hardware architecture overview.jpg|thumb|center|upright=2.0|Hardware overview.]]&lt;br /&gt;
The system consists of four hardware components: &lt;br /&gt;
* Camera&lt;br /&gt;
* Laptop PC&lt;br /&gt;
* Microcontroller&lt;br /&gt;
* Robotic Arm&lt;br /&gt;
Their individual functions are detailed in the image to the side.&lt;br /&gt;
&lt;br /&gt;
== Project Breakdown == &lt;br /&gt;
&lt;br /&gt;
=== Image Processing ===&lt;br /&gt;
&lt;br /&gt;
The purpose of the image processing software of this project is to improve on the image processing software of the last year’s project to ensure system reliability and performance by incorporating more sophisticated image processing technique.Three approaches has been implemented to distinguish between different cards.&lt;br /&gt;
&lt;br /&gt;
[[File:Playing card recoginition process block diagram.png|thumb|center|upright=2.0|Image Processing Block Diagram.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Playing cards extraction is mainly in two stages:-&lt;br /&gt;
&lt;br /&gt;
* Find the outline of playing card on the black background&lt;br /&gt;
* Crop and warp the playing card so that it is a perfect rectangle&lt;br /&gt;
&lt;br /&gt;
[[File:Card extraction.PNG|thumb|center|upright=2.0|Card Extraction Block Diagram.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Card extraction block diagram.png|thumb|center|upright=2.0|Card Extraction Block Diagram.]]&lt;br /&gt;
&lt;br /&gt;
The new recognition algorithm took in to consideration the following information:-&lt;br /&gt;
&lt;br /&gt;
*  Top-left and bottom-right corners are the common information of these two types of playing cards.&lt;br /&gt;
*  Colour information of numeral card and face card are distinct.&lt;br /&gt;
*  Boundary information are different corresponding with different suit of playing cards.&lt;br /&gt;
*  In the central part of playing cards, the massive blobs (suits images) on numeral cards and two corners of face cards provide useful information.&lt;br /&gt;
*  In  different  face  cards,  different  morphological  feature  provides  one  set  of information to develop more robust decision making.&lt;br /&gt;
&lt;br /&gt;
[[File:card_feature.png|thumb|center|upright=2.0|Playing Cards Feature Points.]]&lt;br /&gt;
&lt;br /&gt;
Approach 1&lt;br /&gt;
&lt;br /&gt;
* Colour Detection&lt;br /&gt;
&lt;br /&gt;
[[File:Black Numeral Card Colour Detection Process.png|thumb|center|upright=2.0|Black Numeral Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Red Face Card Colour Detection Process.png|thumb|center|upright=2.0|Red Face Card Colour Detection Process.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Boundary Signature&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Approach 2&lt;br /&gt;
&lt;br /&gt;
* Feature Matching(Face Card)&lt;br /&gt;
&lt;br /&gt;
[[File:143.JPG|thumb|center|upright=2.0|Feature Matching]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Blobs Counting (Numeral Card)&lt;br /&gt;
&lt;br /&gt;
[[File:Blobs.JPG|thumb|center|upright=2.0|Blobs Counting]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Approach 3&lt;br /&gt;
&lt;br /&gt;
* Template Matching Using Correlations&lt;br /&gt;
&lt;br /&gt;
[[File:Template1.JPG|thumb|center|upright=2.0|Template Matching]]&lt;br /&gt;
&lt;br /&gt;
[[File:Templates.JPG|thumb|center|upright=2.0|Templates]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The digital image techniques used in the above steps are as follows:-&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Adaptive_histogram_equalization Adaptive histogram equalization]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Hough_transform The Hough Transfer]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Template_matching Pixel Template Matching]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Thresholding_(image_processing) Adaptive Image Thresholding]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Canny_edge_detector Edge Detection]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Blob_detection Blob Detection]&lt;br /&gt;
&lt;br /&gt;
(Refer links for further details)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Results====&lt;br /&gt;
The below table show the results of 6 full decks of cards testing.&lt;br /&gt;
&lt;br /&gt;
[[File:Rank_accuracy.JPG|thumb|center|upright=2.0|Rank Accuracy]]&lt;br /&gt;
[[File:suit_accu.JPG|thumb||center|upright=2.0|Suit Accuracy]]&lt;br /&gt;
&lt;br /&gt;
=== Robotics and Kinematics ===&lt;br /&gt;
[[File:Robotic arm.JPG|thumb|Inverse kinematic geometry of robotic arm]]&lt;br /&gt;
Arduino program&lt;br /&gt;
* Connected with matlab via usb&lt;br /&gt;
* The input from matlab is all the new angles for each servo &lt;br /&gt;
* Output to matlab when robotic arm has finished moving&lt;br /&gt;
&lt;br /&gt;
Matlab Program&lt;br /&gt;
* Decide which set of movements to use depending on where a card is picked from and where it is placed&lt;br /&gt;
* Use inverse kinematics to determine angles of the robotic arm depending on where the card is to be placed and how high the stack is&lt;br /&gt;
* Forward Kinematic method &lt;br /&gt;
  x = l1(cos(θ1)) + l2(cos(θ1 – θ2)) + l3(cos(θ1 – θ2 – θ3)) &lt;br /&gt;
  y = l1(sin(θ1)) + l2(sin(θ1 – θ2)) + l3(sin(θ1 – θ2 – θ3)) &lt;br /&gt;
* The inverse kinematic method used the geometrical features of the arm to find all the angles of the robotic arm describe in the diagram to the right&lt;br /&gt;
&lt;br /&gt;
* calibrations are made to correct the inverse kinematic method&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t bump in to anything&lt;br /&gt;
* Movements are included to ensure robotic arm doesn&amp;#039;t pick up two cards stuck together by the electrostatic force between them&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Card Sorting Algorithms ===&lt;br /&gt;
[[File:bucketSortDiagram.jpg|thumb|Bucket sort.]]&lt;br /&gt;
&lt;br /&gt;
The cards are sorted via one of the following methods chosen using the GUI:&lt;br /&gt;
* Separate Colours&lt;br /&gt;
* Separate Suits&lt;br /&gt;
* Separate Values&lt;br /&gt;
* Select-A-Card (pick cards you want the robot to find)&lt;br /&gt;
* Full Sort (back to a brand new deck order)&lt;br /&gt;
&lt;br /&gt;
The full sort algorithm is based on a bucket/postman and selection sort and occurs in three stages:&lt;br /&gt;
* Cards are partitioned into buckets dependent on their value shown in the image to the right&lt;br /&gt;
* Each bucket is emptied out progressively onto the board&lt;br /&gt;
* Cards are selected from emptied out buckets in order and placed in sorted stacks dependent on their suit&lt;br /&gt;
&lt;br /&gt;
=== Graphical User Interface (GUI) === &lt;br /&gt;
[[File:sortingGUIScreenshot.png|thumb|Screenshot of the sorting GUI.]]&lt;br /&gt;
The GUI was implemented to enhance the projects interactiveness. The GUI aids in showing the viewer the image processing as it happens with live snapshots of images along with live decisions made by the computer vision on the value of the card. Similarly, due to the table showing the entire data structure of cards that have been scanned and sorted, the user can not only track the sorting process but ‘see’ what is below the top card in a given stack.&lt;br /&gt;
&lt;br /&gt;
==Project Significance==&lt;br /&gt;
&lt;br /&gt;
The final outcome of this project is a completely robust autonomous system. It is capable of using computer vision under various lighting conditions to sort playing cards. As a result of changes in processing, revisions were implemented for all three sub- systems for this continuing project.&lt;br /&gt;
&lt;br /&gt;
By incorporating more sophisticated image processing techniques, the software subsystem has developed a reliable performance. Most physical constraints have been overcome by the various elements of the playing cards image processing algorithm. The algorithm is validated for recognising playing cards either via suit, rank, and colour identifiers or by a combination of these three. &lt;br /&gt;
&lt;br /&gt;
The system can be modified by continual development into a versatile automatic sorter capable of use in other fields. The se ranges from technical research to system engineering relevant to the project components, and their practical applications. Examples of industries which could benefit from these types of systems include; manufacturing, medical sciences, the military, artificial intelligence and the list goes on. The project also acts as a demonstration to entice future engineering students, and show off the possibilities of electrical engineering.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Group members ===&lt;br /&gt;
* Miss Yue Zhao&lt;br /&gt;
* Mr Sijie Niu&lt;br /&gt;
* Mr Jiahui Tang&lt;br /&gt;
&lt;br /&gt;
=== Supervisors ===&lt;br /&gt;
* Dr Brian Ng&lt;br /&gt;
* Dr Danny Gibbins&lt;br /&gt;
&lt;br /&gt;
=== Team Member Responsibilities ===&lt;br /&gt;
The project responsibilities are allocated as follows:&lt;br /&gt;
* Miss Yue Zhao - Image Processing(Recognition)/Robotic Arm/Sorting Algorithms&lt;br /&gt;
* Mr Sijie Niu - Image Processing(Recognition)/Image Processing(Extraction)&lt;br /&gt;
* Mr Jiahui Tang - Image Processing(Recognition)/GUI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resources ==&lt;br /&gt;
* Bench 11 in [[Projects Lab]]&lt;br /&gt;
* Lynxmotion AL5D Robotic Arm&lt;br /&gt;
* Arduino Botboarduino Microcontroller&lt;br /&gt;
* Microsoft Lifecam Camera&lt;br /&gt;
* MATLAB&lt;br /&gt;
* Laptop PC&lt;/div&gt;</summary>
		<author><name>A1656051</name></author>
		
	</entry>
	<entry>
		<id>https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=File:Card_extraction.PNG&amp;diff=4226</id>
		<title>File:Card extraction.PNG</title>
		<link rel="alternate" type="text/html" href="https://projectswiki.eleceng.adelaide.edu.au/projects/index.php?title=File:Card_extraction.PNG&amp;diff=4226"/>
		<updated>2015-10-22T08:15:45Z</updated>

		<summary type="html">&lt;p&gt;A1656051: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>A1656051</name></author>
		
	</entry>
</feed>