Comments (3)
Specifying --pattern circles appears to be the correct flag for this, but it crashes with:
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /tmp/bui
ldd/ros-groovy-opencv2-2.4.4-1precise-20130301-2019/modules/imgproc/src/color.cp
p, line 3326
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
self.run()
File "/home/pr2admin/groovy/src/image_pipeline/camera_calibration/nodes/camera
calibrator.py", line 68, in run
self.function(m)
File "/home/pr2admin/groovy/src/image_pipeline/camera_calibration/nodes/camera
calibrator.py", line 134, in handle_monocular
drawable = self.c.handle_msg(msg)
File "/home/pr2admin/groovy/src/image_pipeline/camera_calibration/src/camera_calibration/calibrator.py", line 729, in handle_msg
scrib_mono, corners, downsampled_corners, board, (x_scale, y_scale) = self.downsample_and_detect(gray)
File "/home/pr2admin/groovy/src/image_pipeline/camera_calibration/src/camera_calibration/calibrator.py", line 420, in downsample_and_detect
(ok, corners, board) = self.get_corners(img)
File "/home/pr2admin/groovy/src/image_pipeline/camera_calibration/src/camera_calibration/calibrator.py", line 369, in get_corners
(ok, corners) = _get_circles(img, b, self.pattern)
File "/home/pr2admin/groovy/src/image_pipeline/camera_calibration/src/camera_calibration/calibrator.py", line 189, in _get_circles
cv.CvtColor(img, mono, cv.CV_BGR2GRAY)
error: scn == 3 || scn == 4
from image_pipeline.
Tested; confirmed that cameracalibrator.py no longer crashes for circle targets.
Target detection works reasonably well on the asymmetric circle target I have, but I don't have good dimension measurements of it, so I haven't tried to do the calibration calculations.
The circle target doesn't seem to deal as well with high skew or spherical distortion. This may be because my camera has a lot of distortion, it may be the quality of my target, or it may be a flaw in the detector. I don't plan to use it, so I'm not going to worry about it.
I consider this fixed.
from image_pipeline.
Cool, closing ! Dot patterns usually deals a bit better with skew but not distortion indeed.
Please release for hydro too whenever you release from now on. Thx.
from image_pipeline.
Related Issues (20)
- Remapping the output topic of image_publisher is not effective HOT 2
- Camera Calibration: Negative Baseline HOT 1
- Unable to get the fps of image_rect_color using image_proc HOT 1
- Jazzy: Follow REP-2003 and allow overrides
- Jazzy: Documentation HOT 6
- Consistent image_transport support HOT 1
- Port extract_images_sync to ROS 2 HOT 1
- fatal error: cv_bridge/cv_bridge.hpp in humble branch HOT 4
- range_max sensor value introduced but not used HOT 2
- Port "Choosing Good Stereo Parameters" Tutorial
- Merge ExtractImagesNode into ImageSaver
- image_transport publishers don't remap correctly HOT 1
- Update CONTRIBUTIONS.md, add PR template
- No publishers available for mapped topic
- ERROR Building in Humble: error: ‘struct rclcpp::PublisherEventCallbacks’ has no member named ‘matched_callback’ HOT 3
- Are the Realsense packages needed if a Realsense camera is not being used? HOT 2
- image_proc / image_proc.launch.py not working with namespace for ROS2 Iron HOT 1
- [depth_image_proc] RGBA8 support dosen't work with Humble package 3.0.3 HOT 2
- Add documentation for additional parameters of depth_image_proc::RegisterNode HOT 3
- No image shown when using image_view HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image_pipeline.