Conversation
|
Something off with the tests on my setup: [----------] 1 test from FindImage [----------] 1 test from UpdateEntity [----------] 1 test from QueryHandler [----------] 5 tests from BoundingBox |
|
You may have to add a db/images/png folder to the test folder. I believe I needed to. |
|
cool, will make a note to add that on the scripts as part of the PR. |
luisremis
left a comment
There was a problem hiding this comment.
Looks good, some notes here:
Add the necessary creation of folders to the tests scripts.
Also, both commits have modification on the functionality files. It is better to have all the functionality added in the first commit and all the testing in the second, so it is better to rework the commits.
45778ba to
28c2b1b
Compare
|
Should I review this PR or wait for updates from what Luis has requested? |
|
I believe all of his comments have been addressed, so please do review the PR |
vishakha041
left a comment
There was a problem hiding this comment.
This looks almost ready to go with a few simple changes.
28c2b1b to
921cb08
Compare
src/defines.h
Outdated
|
|
||
| // Regions | ||
|
|
||
| #define VDMS_ROI_TAG "VD::ROI" |
There was a problem hiding this comment.
Minor: Is there a reason there are two colons here and 1 everywhere else?
There was a problem hiding this comment.
Probably muscle memory from typing classes ;)
There was a problem hiding this comment.
this was not fixed in the final version, will fix it.
vishakha041
left a comment
There was a problem hiding this comment.
Looks good. I see that you have updated the wiki pages too. Cool.
921cb08 to
7236c68
Compare
src/defines.h
Outdated
| #define VDMS_ROI_IMAGE_EDGE "VD:ROIIMGLINK" | ||
| #define VDMS_ROI_SHAPE_PROP "VD:ROISHAPE" | ||
|
|
||
| #define ROI_COORD_X "_x1" |
There was a problem hiding this comment.
this are inconsistent with the rest of defines and property names.
src/defines.h
Outdated
|
|
||
| // Regions | ||
|
|
||
| #define VDMS_ROI_TAG "VD::ROI" |
There was a problem hiding this comment.
this was not fixed in the final version, will fix it.
src/BoundingBoxCommand.h
Outdated
|
|
||
| BoundingBoxCommand(const std::string &cmd_name); | ||
|
|
||
| std::string get_img_path(PMGDQuery &query_tx, Json::Value link); |
There was a problem hiding this comment.
this functions is not defined or used, will remove it.
src/BoundingBoxCommand.h
Outdated
|
|
||
| // Helper classes for handling various JSON commands. | ||
|
|
||
| class BoundingBoxCommand : public RSCommand |
There was a problem hiding this comment.
this class is not needed, the command can inherit from RSCommand directly. there is nothing specialized and shared between the bondingboxes commands.
src/defines.h
Outdated
| #define VDMS_ROI_TAG "VD::ROI" | ||
| #define VDMS_ROI_EDGE_TAG "VD:ROILINK" | ||
| #define VDMS_ROI_IMAGE_EDGE "VD:ROIIMGLINK" | ||
| #define VDMS_ROI_SHAPE_PROP "VD:ROISHAPE" |
src/BoundingBoxCommand.cc
Outdated
| get_value<int>(coords, "w"), | ||
| get_value<int>(coords, "h"))); | ||
|
|
||
| VCL::ImageFormat format = VCL::PNG; |
There was a problem hiding this comment.
if the image was originally jpg, we will force a change of format. we need to use the format of the original file by default.
src/BoundingBoxCommand.cc
Outdated
| else if (requested_format == "jpg") { | ||
| format = VCL::JPG; | ||
| } | ||
| else { |
There was a problem hiding this comment.
this is checked in the json schema, no need to check here again
7236c68 to
340207a
Compare
brain.png that is referenced in distributed/helpers.h uses image from test folder. This file is unused in this directory. Missed during review.
Support for the Bounding Box API for rectangles, along with tests (both in C++ and Python).