![]() |
Signapse
|
#include <CNNProcessor.h>


Public Member Functions | |
| Scene | ProcessScene (Scene s) |
| CNNProcessor (CNNProcessorSettings s) | |
| cv::Mat | MakeBlob (Scene scene) |
Public Member Functions inherited from SchedulableLink | |
| void | NextScene (Scene s) |
| virtual Scene | ProcessScene (Scene s)=0 |
| void | Start () |
| void | Stop () |
| bool | Available () |
Public Member Functions inherited from PipelineLink | |
| void | RegisterCallback (SceneCallback *scb) |
| virtual void | NextScene (Scene next)=0 |
Protected Member Functions | |
| void | LoadModel (std::string modelPath) |
Protected Member Functions inherited from SchedulableLink | |
| void | Enqueue (Scene s) |
| void | Run () |
| void | NextScene (Scene scene) |
Protected Attributes | |
| CNNProcessorSettings | settings |
| cv::dnn::Net | net |
Protected Attributes inherited from SchedulableLink | |
| BlockingQueue< Scene > | scheduleQueue |
| bool | isOn = true |
| std::thread | scheduleWorker |
Protected Attributes inherited from PipelineLink | |
| SceneCallback * | sceneCallback = nullptr |
Schedulable Pipeline Link which performs network inference on each Scene, populating the results field.
Definition at line 20 of file CNNProcessor.h.
| CNNProcessor::CNNProcessor | ( | CNNProcessorSettings | s | ) |
Constructor, inits settings and loads model
| s |
Definition at line 15 of file CNNProcessor.cpp.
|
protected |
Loads neural network from location on disk
| modelPath |
Definition at line 7 of file CNNProcessor.cpp.
| cv::Mat CNNProcessor::MakeBlob | ( | Scene | scene | ) |
Makes OpenCV image "blob" from the region of interest in the frame. Blob format is required for inference.
| scene |
Definition at line 25 of file CNNProcessor.cpp.
Executed network inference on given scene, populates the scene with results.
| scene | input scene |
Implements SchedulableLink.
Definition at line 42 of file CNNProcessor.cpp.
|
protected |
Definition at line 29 of file CNNProcessor.h.
|
protected |
Definition at line 27 of file CNNProcessor.h.