| | |
| | |
|
| | | // Window
|
| | | void create_window_cv(char const* window_name, int full_screen, int width, int height);
|
| | | void resize_window_cv(char const* window_name, int width, int height); |
| | | void destroy_all_windows_cv();
|
| | | int wait_key_cv(int delay);
|
| | | int wait_until_press_key_cv();
|
| | |
| | | image get_image_from_stream_cpp(cap_cv *cap);
|
| | | image get_image_from_stream_resize(cap_cv *cap, int w, int h, int c, mat_cv** in_img, int dont_close);
|
| | | image get_image_from_stream_letterbox(cap_cv *cap, int w, int h, int c, mat_cv** in_img, int dont_close);
|
| | |
|
| | | void consume_frame(cap_cv *cap); |
| | |
|
| | | // Image Saving
|
| | | void save_cv_png(mat_cv *img, const char *name);
|
| | |
| | | // Draw Loss & Accuracy chart
|
| | | mat_cv* draw_train_chart(char *windows_name, float max_img_loss, int max_batches, int number_of_lines, int img_size, int dont_show, char* chart_path);
|
| | | void draw_train_loss(char *windows_name, mat_cv* img, int img_size, float avg_loss, float max_img_loss, int current_batch, int max_batches,
|
| | | float precision, int draw_precision, char *accuracy_name, int dont_show, int mjpeg_port, double time_remaining);
|
| | | float precision, int draw_precision, char *accuracy_name, float contr_acc, int dont_show, int mjpeg_port, double time_remaining); |
| | |
|
| | | // Data augmentation
|
| | | image image_data_augmentation(mat_cv* mat, int w, int h,
|
| | | int pleft, int ptop, int swidth, int sheight, int flip,
|
| | | float dhue, float dsat, float dexp,
|
| | | int gaussian_noise, int blur, int num_boxes, float *truth);
|
| | | int gaussian_noise, int blur, int num_boxes, int truth_size, float *truth); |
| | |
|
| | | // blend two images with (alpha and beta)
|
| | | void blend_images_cv(image new_img, float alpha, image old_img, float beta);
|
| | |
| | | int wait_key_cv(int delay);
|
| | | int wait_until_press_key_cv();
|
| | | void destroy_all_windows_cv();
|
| | | void resize_window_cv(char const* window_name, int width, int height); |
| | |
|
| | | #endif // OPENCV
|
| | |
|