Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7696251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:44:10+00:00 2026-05-31T21:44:10+00:00

I’m going on with my project of OCR using MS Visual Studio 2008, OpenCV,

  • 0

I’m going on with my project of OCR using MS Visual Studio 2008, OpenCV, C++ and SVM. I’ve generated a dataset of > 2000 samples of machine-printed characters. When I test with linear kernel, I always get 96,36% accuracy rate.

How I use SVM in OpenCV can be referred in this thread.

Now I try to use RBF kernel and encounter these 2 problems:

(1) No matter what parameters (C and gamma) I used, all the characters were always classified to 0 (zero). If I test with MNIST all of the digits are 9.

I hope someone with experience in OpenCV & SVM can explain to me. I know there’re some other good frameworks for machine learning & image processing like ACCORD.NET, but I’ve already used C++ and it would be troublesome to turn the whole program into C# (OCR is only a part of it).

The version of OpenCV is 2.3.1.

(2) I moved this problem to another question as suggestion of etarion. If you have time please check it out: Visual Studio reports error C2664 with train method of SVM in openCV.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:44:12+00:00Added an answer on May 31, 2026 at 9:44 pm

    The theory suggests that under the correct parameters an RBF kernel works at least as well as a linear kernel. Therefore I will list common sources of problems:

    • It is possible that you’re having numerical difficulties. Have you normalized your data? Is every feature between 0 and 1? or -1 and 1? What is the numerical range of the actual decision values? What is the range of the feature values?

    • Is it possible that you’re overestimating the performance of the linear classifier (i.e. test and train on the same data?)

    • Could it be that your multi class representation is somehow flawed. Does the same performance difference hold for a two class problem instead of a ten class problem?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have thousands of HTML files to process using Groovy/Java and I need to
I am using Paperclip to handle profile photo uploads in my app. They upload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.