Hi John,
I will try to make a pipeline. No promises.
_Mark
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/886f8425-657f-4b19-b3d8-e3159deddc30n%40googlegroups.com.
Hi John
With your image, I propose this pipeline:
<cv-pipeline> <stages> <cv-stage class="org.openpnp.vision.pipeline.stages.ImageCapture" name="capture" enabled="true" default-light="true" settle-option="Settle" count="1"/> <cv-stage class="org.openpnp.vision.pipeline.stages.ConvertColor" name="hsv" enabled="true" conversion="Bgr2HlsFull"/> <cv-stage class="org.openpnp.vision.pipeline.stages.MaskHsv" name="1" enabled="true" auto="false" fraction-to-mask="0.0" hue-min="60" hue-max="120" saturation-min="100" saturation-max="255" value-min="50" value-max="255" soft-edge="0" soft-factor="1.0" invert="false" binary-mask="true" property-name="MaskHsv"/> <cv-stage class="org.openpnp.vision.pipeline.stages.BlurMedian" name="2" enabled="true" kernel-size="9"/> <cv-stage class="org.openpnp.vision.pipeline.stages.FindContours" name="contours" enabled="true" retrieval-mode="External" approximation-method="Simple"/> <cv-stage class="org.openpnp.vision.pipeline.stages.FilterContours" name="filtered_contours" enabled="true" contours-stage-name="contours" min-area="500.0" max-area="1000000.0" property-name="FilterContours"/> <cv-stage class="org.openpnp.vision.pipeline.stages.MinAreaRectContours" name="rects" enabled="true" contours-stage-name="filtered_contours"/> <cv-stage class="org.openpnp.vision.pipeline.stages.OrientRotatedRects" name="oriented_rects" enabled="true" rotated-rects-stage-name="rects" orientation="Landscape" negate-angle="false" snap-angle="0"/> <cv-stage class="org.openpnp.vision.pipeline.stages.OrientRotatedRects" name="results" enabled="true" rotated-rects-stage-name="rects" orientation="Landscape" negate-angle="true" snap-angle="0"/> <cv-stage class="org.openpnp.vision.pipeline.stages.ImageRecall" name="recall2" enabled="true" image-stage-name="capture"/> <cv-stage class="org.openpnp.vision.pipeline.stages.DrawContours" name="draw_contours" enabled="true" contours-stage-name="filtered_contours" thickness="2" index="-1"/> <cv-stage class="org.openpnp.vision.pipeline.stages.DrawRotatedRects" name="draw_results" enabled="true" rotated-rects-stage-name="oriented_rects" thickness="2" draw-rect-center="true" rect-center-radius="3" show-orientation="true"> <color r="51" g="255" b="51" a="255"/> </cv-stage> </stages> </cv-pipeline>
Because you have that green backdrop, you can easily use binary
green-screening.
See the most important stages animated in the gif (hope this
works):
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/150e57b2-c8a5-474a-91c3-3a56747423f5n%40googlegroups.com.
It seems you since performed Advanced Camera Calibration. Go to the camera, Advanced Calibration tab, and pull the slider all to the left (valid pixels only). This should crop your image.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/5a66a3a5-0f02-476c-a705-48f1522db41en%40googlegroups.com.