Giter VIP home page Giter VIP logo

opencv_3_knn_character_recognition_python's Introduction

opencv_3_knn_character_recognition_python's People

Contributors

cdahms123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opencv_3_knn_character_recognition_python's Issues

test_samples.type() == 5 && test_samples.cols == samples.cols in function cv::ml::BruteForceImpl::findNearest

Hi,

When I tried to execute a train and test python file, I am getting the below error,

Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition with Anaconda plugin 2019.3.1\plugins\python-ce\helpers\pydev\pydevd.py", line 1434, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition with Anaconda plugin 2019.3.1\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/Admin/Documents/Projects/Handwritten text extraction/predict.py", line 169, in
main()
File "C:/Users/Admin/Documents/Projects/Handwritten text extraction/predict.py", line 150, in main
retval, npaResults, neigh_resp, dists = kNearest.findNearest(npaROIResized, k=5)
cv2.error: OpenCV(3.4.2) C:\projects\opencv-python\opencv\modules\ml\src\knearest.cpp:312: error: (-215:Assertion failed) test_samples.type() == 5 && test_samples.cols == samples.cols in function 'cv::ml::BruteForceImpl::findNearest'

Please help me with this...

Training data

Hi,
After the execution of GenData.py, classifications.txt and flattened_images.txt are getting created, but these files are empty.

License?

Chris, which license does your code fall under?

cant train

everytime i push shift button it goes to another letter..any help?

File creation error

Hi,
I am facing the issue in creating the Text file.
Classification and Flattened images files are created but no data was append in that file.

Wide Data Set

Where i can find Wide Range data set like all the character available in ms office

ValueError

please any help I'm getting this error
C:\Users\user\PycharmProjects\project1\venv\Scripts\python.exe C:/Users/user/PycharmProjects/project1/gendata.py
Traceback (most recent call last):
File "C:/Users/user/PycharmProjects/project1/gendata.py", line 102, in
main()
File "C:/Users/user/PycharmProjects/project1/gendata.py", line 41, in main
cv2.CHAIN_APPROX_SIMPLE) # compress horizontal, vertical, and diagonal segments and leave only their end points
ValueError: not enough values to unpack (expected 3, got 2)

Process finished with exit code 1

Not able to Train data, according to instructions provided in video at timestamps 5:15 minutes

after running file GenData.py, it opens 4 windows and Instructions aren't clearly given to train characters?
when I ran GenData.py,
it successfully created two files classifications.text and flattened_images.txt, but after running TrainAndTest.py, it showed output only as RRRR... for all 3 test cases images?

It is because it only trained on Character-R,
Please give steps in WrittenFormat in Readme.md, as your instructions on Youtube.

find all contours ValueError: need more than 2 values to unpack

I am getting this error. anyone, please help.

C:\Python27\python.exe "C:/Users/Entrepreneur/Documents/Python Scripts/numberplate/Main.py"
Traceback (most recent call last):
File "C:/Users/Entrepreneur/Documents/Python Scripts/numberplate/Main.py", line 134, in
main()
File "C:/Users/Entrepreneur/Documents/Python Scripts/numberplate/Main.py", line 38, in main
listOfPossiblePlates = DetectPlates.detectPlatesInScene(imgOriginalScene) # detect plates
File "C:\Users\Entrepreneur\Documents\Python Scripts\numberplate\DetectPlates.py", line 43, in detectPlatesInScene
listOfPossibleCharsInScene = findPossibleCharsInScene(imgThreshScene)
File "C:\Users\Entrepreneur\Documents\Python Scripts\numberplate\DetectPlates.py", line 133, in findPossibleCharsInScene
imgContours, contours, npaHierarchy = cv2.findContours(imgThreshCopy, cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE) # find all contours
ValueError: need more than 2 values to unpack

Process finished with exit code 1

classifications and flattened_images

Hi guys

I run the Gendata.py for persian alphabets. after training both of the classifications and flattened_images are empty.

intValidChars = [ord('ู„')]

Car license with Black background

How Can I process Black background? I've try with GenData.py removing inverted option from cv2.THRESH_BINARY_INV, and within trainAndTest.py also, without good results.

I want to process license plate like following :

patente_train_test-02

Can you help me please?,

Thanks in advance

Diego from Argentina

contour issue

HI,

For single-character, the Opencv find two contours and draw two rectangles.
I need to combine that contours into a single contour based on coordinates.

Please kindly help..

only integers are apeared on the trainandtest

I want to change the classification and flattened image file cause I want to train the algorithm on recognizing the Arabic character, I am using an image contains the Arabic number and characters but I input the character as an English one so there is no error in input
but when using the training file it only prints numbers with no letters can you help me, please

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.