Ask Your Question
1

error in cv::moments function

asked 2019-08-21 07:15:04 -0600

maya21 gravatar image

updated 2019-08-21 10:10:52 -0600

I dont know why I m getting this error error: (-210:Unsupported format or combination of formats) in function 'moments'

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-08-21 07:30:06 -0600

As you can see in the moments tutorial you need a contour, which is a vector of point elements as input format. My guess is you are doing something wrong there, but without code we can never be sure.

edit flag offensive delete link more

Comments

1

in addition documentation explains supported types

sturkmen gravatar imagesturkmen ( 2019-08-21 10:09:53 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-08-21 07:15:04 -0600

Seen: 1,313 times

Last updated: Aug 21 '19