已关闭

Create an example in pure Javascript to find rectangles when corners are at different X axis

TL;DR I want a pure javascript example that can detect rectangles regardless of the corners attitude (roll, pitch & yaw).

I have three rectangles. Two of which have corners that are different distances from the camera, as per this image:

[url removed, login to view]

I have logic that current can reliably detect the rectangles where all four corners are the same distance from the camera. It is the case where one or more of the corners are at a different distance I am having a problem with.

Currently what I do is:

Find parallels lines in space (1th group of candidates),

Find orthogonal lines (2nd group of candidates),

Remove duplicates,

Find best candidates based on a set of criteria related to contents of the rectangle (1).

I have a set of expected rectangle rations I expect all rectangles to match, I also expect the contents within the rectangle to be reasonably in focus.

As you can see in the cases where the corners are not an equal distance to the screen this logic would not work to detect rectangles where there is skew that results in non-parallel lines.

I have tried the simplest approach, namely expecting the lines to be parallel within 1 degree but this omits rectangle 1 and rectangle 2 in the above images. Increasing that “fudge factor” also significantly increases the error rate in detection.

I have found the following resources that appear to relate to this problem:

- [url removed, login to view]

- [url removed, login to view]

- [url removed, login to view]

- [url removed, login to view]

- [url removed, login to view]

- [url removed, login to view]

- [url removed, login to view]~ddtran2/pubs/[url removed, login to view]

- [url removed, login to view]

- [url removed, login to view]

It seems if I were in OpenCV I might use solvePnP but again I need this in pure Javascript.

Keywords: perspective projection, distorted projection, approxPolyDP, computer vision, opencv, javascript

技能: 增强现实, Image Processing, Javascript, 机器学习, OpenCV

查看更多: matlab draw rectangle on image, css shape-outside, css shapes with text inside, background shape css, css shapes generator, border shapes css, css polygon generator, matlab plot rectangle, create example application mysql netbeans swing, javascript find browser type, javascript find text html page, javascript find tags textarea, example vbscript find string log, calculate different check check date javascript, create registration form javascript

About the Employer:
( 18 reviews ) Woodinville, United States

项目ID: #15683353

14 freelancers are bidding on average $149 for this job

Yknox

Hello, I'm Smile Song, developer in China. I'm interesting your project very well I'm a Good SQL, C++, c#, Python, .Net, swift, object-c, OpenCV, Math, Java, Algorithm expert. Relevant Skills and Experience I m quite 更多

$144 USD 在3天内
(31条评论)
6.3
$150 USD 在3天内
(10条评论)
5.2
schoudhary1553

Hello Sir, I have read your project requirement and i can deliver your project with 100% quality . please give me chance to work on your job. Relevant Skills and Experience I have more than 7 years of experience in A 更多

$250 USD 在4天内
(10条评论)
4.5
gongfei

Hello sir I read your proposal and i wish to work with you. I have good experience in Image processing and javascript, I am sure i can satisfy you in time Best regards Relevant Skills and Experience javascript, OpenCV 更多

$155 USD 在3天内
(4条评论)
2.5
BeautiCG

Dear employer, I am an experienced in programming and I'm sure I can complete your project asap. Please contact me and tell about your job details. I promise a high quality and punctual work. Thanks. Create an example 更多

$155USD 在1天里
(2条评论)
2.0
$155 USD 在3天内
(1条评论)
0.6
$40 USD 在4天内
(0条评论)
0.0
RaqiyaTawfeeq

Hi, I checked your project description so I am able do it very well, I'm programmer with 8+ years of experience. Most of my work is done in C programming in past but I know Python, C, C++, C#, Java, Javascript, Visual 更多

$30 USD 在3天内
(0条评论)
0.0
$35 USD 在3天内
(1条评论)
0.0
dungchan44

Hi, This is a javascript and image process expert and I have rich experience about them. Please contact me. Thank you. Relevant Skills and Experience Augmented Reality, Image Processing, Javascript, Machine Learning, 更多

$250 USD 在5天内
(0条评论)
0.0
$155 USD 在3天内
(0条评论)
0.0
$155 USD 在3天内
(0条评论)
0.0
devhenapplab

We can able to deploy web applicationas well as any part of the application architecture via wordpress(PHP based CMS)as well as PHP over any version available including current version Relevant Skills and Experience W 更多

$155 USD 在3天内
(0条评论)
0.0
RamsCreative

For creating the Javascript to find rectangles when corners are at different X axis Relevant Skills and Experience Have 3 years of experience in JavaScript Proposed Milestones $250 USD - complete

$250 USD 在3天内
(0条评论)
0.0