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 8062625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:43:57+00:00 2026-06-05T10:43:57+00:00

I was looking for some image edge detection code in Python on the web

  • 0

I was looking for some image edge detection code in Python on the web and found some interesting stuff that I wanted to take a look at. Unfortunately I keep getting this error: ‘cv2.cv.cvseq’ object has no attribute ‘total’

The line of code at fault is

lines = HoughLines2( dst, storage, CV_HOUGH_STANDARD, 1, CV_PI/180, 100, 0, 0 );

The whole code has the option to toggle between Hough Standard and Hough Probabilistic, when I set it to use the probabilistic approach (and thus not requiring “lines.total” piece of code) it runs fine, so I’m fairly certain I have everything I need installed and imported.

  • 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-05T10:43:59+00:00Added an answer on June 5, 2026 at 10:43 am

    I don’t know why you use old ‘cv’ version, while new ‘cv2’ version is quite simple and all objects are returned either as python list or numpy array, which is easy to handle from user point of view.

    Output of HoughLines functions are numpy array of shapes (1,number of lines,2) and (1,number of lines,4). You can do whatever you want since you have all numpy functions at your hand.

    Here is a sample for detecting lines, which is same as you mentioned, ie toggling between hough standard and hough probabilistic: houghlines.py

    Below are the results i obtained using that code :

    Hough Standard :

    enter image description here

    Hough Probabilistic :

    enter image description here

    Of course the line detected depends on the parameter values you try. So change parameter values as you like and try.

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

Sidebar

Related Questions

I'm looking for some code to get the dimensions of an image on a
I am looking to develop some code that will be able to by looking
i'm looking for a script that would take a print screen of a web
I'm looking for some image library that can work with multiple formats (jpg,gif,png), and
I'm looking for some algorithm (preferably if source code available) for image registration. Image
Looking at some assembly code for x86_64 on my Mac, I see the following
Looking at some of the code System.Linq I've come across some examples of Buffer<TSource>
I am looking for some framework that allows me to create a Photo Gallery
I am looking for the CORRECT way to do the following: $(#some-image).fadeOut(); $(#some-image).attr(src, new-src.png);
Looking for some assistance if its possible to do a fluid height image in

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.