Coder Social home page Coder Social logo

rajdeepmondal / expcalc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.06 MB

A calculator to evaluate handwritten expressions

Java 9.81% Python 90.19%
computer-vision software-engineering gui-application deep-learning number-recognition calculator-application

expcalc's Introduction

In order to run the application, go to the directory where the codes are saved.

######################################################################################################################################################################################################################
Ensure that both Java 8 SDK and Python 3.6 are installed on your computer and can be run from the command line itself.
Dependencies:
 	1) Python 
		1.1: NumPy
		1.2: OpenCV
		1.3: Imutils
 	2) Java
		2.1: Swing
		2.2: AWT
The required Java packages are already available in the Java software.
	1.	In order to install the librariesin Python, go to the directory where the folder Python36 is located and open the Scripts folder available under the Python36 folder.
	2.	Open Command Prompt in this directory and type in:
			pip install
		followed by the name of the library
	3.	If you have an older version of the above mentioned libraries, type in
			pip --upgrade
		follwed by the name of the library 
######################################################################################################################################################################################################################

STEPS:
1. Open calc_mode.py and set the path to where the codes are saved, thus:
	sys.path.insert(0,parent_directory_path)

2. Open Command Prompt and type in the following commands one by one:
	>> javac Test.java
	>> java Test

3. In the Welcome screen select the mode you want to avail

4. If you select Child Mode,
	4.1) A random number in the range 0 to 9 will be generated and displayed at the top of the screen
	4.2) Holding down the left mouse button, drag and draw the number in the space provided.
	4.3) Click on SUBMIT.
	4.4) If you wrote the number correctly (and if the neural network recognizes it correctly!), CORRECT will be displayed in the lower white space. Otherwise, WRONG!
	4.5) Click on NEW to try out a new digit

5. If you select Calculator Mode,
	5.1) You can write zero or any positive integer in the space provided using the same way as above. Since the calculator employs multiple digit recognition, the positive integer can have any number of digits.
	5.2) Click on SUBMIT.
	5.3) Select an operator from any of the options provided.
	5.4) In case you make an error, click on the CLEAR button to start from the beginning
	5.5) Click on "=" to get your expression evaluated.
	5.6) The calculator follows BODMAS rule and the expression can be of any length. Also the division operation is basically a floor division operation. So be careful!
	5.7) The recognized expression and the calculated result will be displayed at the bottom of the screen.
	5.8) Click on CLEAR to make a new expression.

                                  #################################################################
                                  #     BEWARE THE CALCULATOR DOES NOT RECOGNIZE 8 VERY WELL!!    #
			          #################################################################
ENJOY!! 

expcalc's People

Contributors

rajdeepmondal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.