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

  • Home
  • SEARCH
  • 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 9022589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:33:02+00:00 2026-06-16T05:33:02+00:00

I want to use OpenCV to detect 3 basic shapes (arrow , cross ,

  • 0

I want to use OpenCV to detect 3 basic shapes (arrow , cross , T-shape) and classify them.

The arrows will have to be classified by colour and orientation(left facing/right facing). The crosses will just have to be detected. I found this Python example which is almost what I need. I just have to add colour and orientation detection to it.

A simple if/else if structure will be the easiest for me to implement, since the onboard computer will be communicating to the drive controller using a virtual serial port. That way, I can send simple commands to the drive controller based on the detected shape.

I will be using a webcam as image source , so if you can give a nudge in the right direction for using it, it would help a lot.

All help is appreciated. I want to do this for an autonomous robot with image processing. I am new to OpenCV so please help me out. Both Python and C++ examples are welcome, but Python is more suitable since my onboard computer will run Linux. C++ examples are great too!

  • 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-06-16T05:33:03+00:00Added an answer on June 16, 2026 at 5:33 am

    Your problem requires a very extensive answer, but here’s an outline of one possible approach:

    • If the shape can move, you need to detect it. If you have a static single-color background, this is easily done with thresholding. Here’s an OpenCV tutorial on that.
    • Next, you need to classify the shape. One of the simplest classifiers is the K-NN. Here’s a tutorial
    • Finally, you need to react on the classification output. Since you’re using a robot, if you don’t know how to interface with it, you’re better served by asking a separate question for that.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my problem: I want have my qmake script detect my opencv version
I want to use OpenCV 2.4.0 native code in Android 2.3.3. For that, I
javaCV is wrapper library that based on openCV. But I want to use it
i want use some data from a website with web service. i have a
I want to use OpenCV to take an input video, and reduce the file
I'm still a beginner in OpenCV. Currently, I'm trying to detect a specific shape
I'm running OpenCV 2.4.2, on Visual Studio 2012. I want to use MSER to
I have been looking into training/using OpenCV to attempt to detect human figures. I
I want to use Opencv 2.4.0 (beta2) together with EmguCV and MonoDevelop on my
I want to use OpenCV's image processing functions, but not the OpenCV GUI. I'm

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.