Skip to content

Commit

Permalink
[pj_tflite_edge_dexined] add another sample image
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatake2222 committed Jan 14, 2022
1 parent 48e9d8f commit 929ecd7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Binary file modified pj_tflite_edge_dexined/00_doc/edge.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pj_tflite_edge_dexined/00_doc/edge_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions pj_tflite_edge_dexined/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Sample project to run DexiNed

![00_doc/edge.jpg](00_doc/edge.jpg)

![00_doc/edge_2.jpg](00_doc/edge_2.jpg)

## How to Run
1. Please follow the instruction: https://github.com/iwatake2222/play_with_tflite/blob/master/README.md
2. Additional steps:
Expand All @@ -14,3 +16,4 @@ Sample project to run DexiNed
## Acknowledgements
- https://github.com/xavysp/DexiNed
- https://github.com/PINTO0309/PINTO_model_zoo
- https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/resources.html
5 changes: 3 additions & 2 deletions pj_tflite_edge_dexined/image_processor/image_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ int32_t ImageProcessor::Process(cv::Mat& mat, ImageProcessor::Result& result)
}

/* Convert to colored image */
cv::Mat mat_edge;
cv::cvtColor(engine_result.mat_out, mat_edge, cv::COLOR_GRAY2BGR);
cv::Mat mat_edge = engine_result.mat_out;
//cv::threshold(engine_result.mat_out, mat_edge, 128, 255, cv::THRESH_BINARY);
cv::cvtColor(mat_edge, mat_edge, cv::COLOR_GRAY2BGR);

/* Create result image */
cv::resize(mat_edge, mat_edge, mat.size());
Expand Down

0 comments on commit 929ecd7

Please sign in to comment.