Skip to content

Commit

Permalink
fix blob module config
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFlt committed Nov 24, 2023
1 parent c58147b commit 375ea9f
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 2 deletions.
72 changes: 70 additions & 2 deletions modules/python/config/blob.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ignored_headers": [],
"ignored_classes": [],
"user_defined_headers": [],
"user_defined_headers": ["blob.hpp"],
"classes": {
"vpDot": {
"methods": [
Expand All @@ -18,6 +18,7 @@
]
},
"vpDot2": {
"additional_bindings": "bindings_vpDot2",
"methods": [
{
"static": true,
Expand All @@ -28,8 +29,75 @@
"static": true,
"signature": "void display(const vpImage<unsigned char>&, const vpImagePoint&, const std::list<vpImagePoint>&, vpColor, unsigned int)",
"custom_name": "displayDot"
},
{
"static": true,
"signature": "vpMatrix defineDots(vpDot2[], const unsigned int&, const std::string&, vpImage<unsigned char>&, vpColor, bool)",
"ignore": true
},
{
"static": true,
"signature": "void trackAndDisplay(vpDot2[], const unsigned int&, vpImage<unsigned char>&, std::vector<vpImagePoint>&, vpImagePoint*)",
"ignore": true
},
{
"static": false,
"signature": "void getFreemanChain(std::list<unsigned int>&)",
"use_default_param_policy": false,
"param_is_input": [
false
],
"param_is_output": [
true
]
},
{
"static": false,
"signature": "void searchDotsInArea(const vpImage<unsigned char>&, int, int, unsigned int, unsigned int, std::list<vpDot2>&)",
"use_default_param_policy": false,
"param_is_input": [
true,
true,
true,
true,
true,
false
],
"param_is_output": [
false,
false,
false,
false,
false,
true
]
},
{
"static": false,
"signature": "void searchDotsInArea(const vpImage<unsigned char>&, std::list<vpDot2>&)",
"use_default_param_policy": false,
"param_is_input": [
true,
false
],
"param_is_output": [
false,
true
]
},
{
"static": false,
"signature": "void getEdges(std::list<vpImagePoint>&)",
"use_default_param_policy": false,
"param_is_input": [
false
],
"param_is_output": [
true
]
}
]
}
},
"enums": {}}
"enums": {}
}
7 changes: 7 additions & 0 deletions modules/python/generator/visp_python_bindgen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ def get_type(param: Union[types.FunctionType, types.DecoratedType, types.Value],
return repr_str + '*'
else:
return None
elif isinstance(param, types.Array):
repr_str = get_type(param.array_of, owner_specs, header_env_mapping)
if repr_str is not None:
return repr_str + '[]'
else:
return None

else:
return None

Expand Down

0 comments on commit 375ea9f

Please sign in to comment.