[Issue]: Inconsistent Python API
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- api, computer-vision
Research direction
Start by comparing the rocCV Python bindings and pbdocs for the listed operators with the referenced CVCUDA operator definitions. Audit naming, optional defaults, extra parameters, and into/non-into signatures across the full list. Done means the rocCV Python API and documentation consistently match the intended CVCUDA-compatible interface.
Written by the indexing model from the issue text.
Description
There are some inconsistencies between the rocCV and CVCUDA pybindings / Python API which make it harder for rocCV to be a true "drop-in". Both libraries are inconsistent in their naming (snake vs camel case), and there are also some places where CVCUDA marks params as optional with default values, while rocCV has them required.
CVCUDA code reference used: Github.
- AdvCvtColor
conversion_codevscodecolor_specvsspec
- BilateralFilter
sigmaColorvssigma_colorsigmaSpacevssigma_spaceborderModevsborder- Note that the rocCV pbdoc describes it as
border_mode borderis optional with default value in CVCUDA
- Note that the rocCV pbdoc describes it as
- rocCV takes an extra
borderValueparameter- Note that the rocCV pbdoc describes it as
border_value
- Note that the rocCV pbdoc describes it as
- BndBox
bnd_boxesvsbboxes
- CenterCrop
- rocCV pbdocs errenously has a
dstparam for the non-into function
- rocCV pbdocs errenously has a
- ConvertTo
- Op name:
convert_tovsconvertto alphavsscalebetavsoffset
- Op name:
- CustomCrop
- Op name:
custom_cropvscustomcrop crop_rectvsrect- rocCV pbdocs errenously has a
dstparam for the non-into function, while missing that param for the into function
- Op name:
- CvtColor
conversion_codevscode
- Flip
flip_codevsflipCode
- Gaussian
kernelSizevskernel_sizeborderModevsborder
- Reformat
inputvssrcout_layoutvslayout
- Remap
in_interpolationvs src_interpsrc_interpis optional with default value in CVCUDA
map_interpolationvsmap_interpmap_interpis optional with default value in CVCUDA
map_value_typevsmap_typemap _typeis optional with default value in CVCUDA
border_typevsborderborderis optional with default value in CVCUDA
align_cornersis optional with default value in CVCUDAborder_valueis optional with default value in CVCUDA
- Resize
interpis optional with default value in CVCUDA
- Thresholding
maxValvsmaxvalthreshTypevstype- rocCV has extra
maxBatchSizeparam
- WarpAffine
- CVCUDA accepts a
flagsparam to control the interpolation method and whether it is inverse, while rocCV acceptsinterpandinvertedparams border_modeis optional with default value in CVCUDAborder_valueis optional with default value in CVCUDA
- CVCUDA accepts a
- WarpPerspective
- CVCUDA accepts a
flagsparam to control the interpolation method and whether it is inverse, while rocCV acceptsinterpandinvertedparams
- CVCUDA accepts a
- Dominant language
- C++
- Stars
- 1
- Forks
- 10
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ROCm/rocCV
-
enhancement
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·