MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / find_replace

Function find_replace

yolo_detector/darknet_opt/src/utils.c:213–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void find_replace(char *str, char *orig, char *rep, char *output)
214{
215 char buffer[4096] = {0};
216 char *p;
217
218 sprintf(buffer, "%s", str);
219 if(!(p = strstr(buffer, orig))){ // Is 'orig' even in 'str'?
220 sprintf(output, "%s", str);
221 return;
222 }
223
224 *p = '\0';
225
226 sprintf(output, "%s%s%s", buffer, rep, p+strlen(orig));
227}
228
229float sec(clock_t clocks)
230{

Callers 13

find_replace_pathsFunction · 0.85
fill_truth_swagFunction · 0.85
fill_truth_regionFunction · 0.85
fill_truth_isegFunction · 0.85
fill_truth_detectionFunction · 0.85
load_tags_pathsFunction · 0.85
get_segmentation_imageFunction · 0.85
get_segmentation_image2Function · 0.85
load_data_compareFunction · 0.85
validate_yolo_recallFunction · 0.85
validate_coco_recallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected