Skip to content

Paul123111/DataStructuresAlgorithms2-Assignment1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pills and Capsules Analyser

This program's purpose is to identify pills in a given image.
It has many features and options the user can configure to accurately find the types of pills/capsules the user is searching for.
It shows the original image on the left of the program with the modified image that highlights detected pills on the right side of the screen.

Options

Check Fields to see Metrics used to Calculate some Options' Outputs

  • Load Image - loads an image from a file.
  • Revert to Original - Reverts changes made to modified image

  • Black and White - Shows detected pills in black and white, calculated using the colour picker and HSB thresholds.
  • Black and White + Noise Reduction - Same as previous, but minimum/maximum size and boundary are used to get a more accurate result.
  • Black and White (Two-Tone) - Find two-tone pills (pills with two different coloured parts) using colour picker/HSB thresholds and distance.
  • Black and White (Two-Tone) + Noise Reduction - Same as previous, but minimum/maximum size and boundary are used to get a more accurate result.
  • Draw Rectangles (for Current Selection) - Draws a rectangle around all detected pills in the current selection (Anything found in the previous options).
  • Sequential Ordering (for Current Selection) - Same as previous, but numbers each rectangle, ordered from the top left of the image to the bottom right.

  • Reset total pill collection - Deletes all pill types in the total pill collection - note that the current selection will NOT be deleted.
  • Add current selection to pill selection - Adds the current selection to the total pill collection with the name entered in the name/type field.

  • View Black and White (Pill Collection) - Highlights the entire pill collection (excluding current selection) in black and white.
  • Draw Rectangles - Draws a rectangle around all detected pills in the total pill collection.
  • Sequential Ordering - Same as previous, but numbers each rectangle, ordered from the top left of the image to the bottom right.
  • Sample Colour Image - Highlights the entire pill collection (excluding current selection) in the each pills' respective colours.
  • Random Colour Image - Highlights the entire pill collection (excluding current selection) with random colours for each pill.

Fields

  • Hue Threshold - The amount the hue of a pill can differ from the colour selected in the colour picker.
  • Saturation Threshold - The amount the saturation of a pill can differ from the colour selected in the colour picker.
  • Brightness Threshold - The amount the brightness of a pill can differ from the colour selected in the colour picker.

  • Colour Picker - Left click picks the main colour for the pills being searched for, and right click chooses the secondary colour (only relevant with two-tone pills).

  • Minimum Size - The minimum size a cluster of pixels needs to be to be considered a pill (measured in pixels).
  • Maximum Size - The maximum size a cluster of pixels needs to be to be considered a pill (measured in pixels).
  • Minimum Boundary - The minimum width and height a cluster of pixels needs to be to be considered a pill (measured in pixels).
  • Maximum Boundary - The maximum width and height a cluster of pixels needs to be to be considered a pill (measured in pixels).

  • Distance - The maximum distance between two clusters of pixels to be joined together and counted as one complete pill (measured in pixels + only for two-tone pills)
  • Name/Type - The name of the type of pills identified in the current selection.

Other Information

  • Pills Detected - Shows number of pills detected.
  • Summary of Pills - Shows a small image of each pill found in the total pill collection, sorted by name/type and given a number (ordered from the top left of the image to the bottom right).

About

Pills and Capsules Analyser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors