/dports/www/firefox-legacy/firefox-52.8.0esr/media/pocketsphinx/src/ |
H A D | kws_detections.c | 42 kws_detections_reset(kws_detections_t *detections) in kws_detections_reset() argument 46 if (!detections->detect_list) in kws_detections_reset() 49 for (gn = detections->detect_list; gn; gn = gnode_next(gn)) in kws_detections_reset() 51 detections->detect_list = NULL; in kws_detections_reset() 65 if (!detections->detect_list) { in kws_detections_add() 66 detections->detect_list = glist_add_ptr(detections->detect_list, (void *)detection); in kws_detections_add() 67 detections->insert_ptr = detections->detect_list; in kws_detections_add() 69 detections->insert_ptr = glist_insert_ptr(detections->insert_ptr, (void *)detection); in kws_detections_add() 74 kws_detections_hyp_str(kws_detections_t *detections, char** hyp_str) in kws_detections_hyp_str() argument 81 for (gn = detections->detect_list; gn; gn = gnode_next(gn)) in kws_detections_hyp_str() [all …]
|
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/dpm/src/ |
H A D | dpm_nms.cpp | 82 int s = (int)detections[i].size(); in process() 83 double x1 = detections[i][0]; in process() 84 double y1 = detections[i][1]; in process() 85 double x2 = detections[i][2]; in process() 86 double y2 = detections[i][3]; in process() 87 double sc = detections[i][s-1]; in process() 108 double xx1 = max(detections[i][0], detections[j][0]); in process() 109 double yy1 = max(detections[i][1], detections[j][1]); in process() 110 double xx2 = min(detections[i][2], detections[j][2]); in process() 111 double yy2 = min(detections[i][3], detections[j][3]); in process() [all …]
|
H A D | dpm_cascade_detector.cpp | 157 vector< vector<double> > detections; in detect() local 158 detections = detectors[classID]->detect(image); in detect() 160 for (unsigned int i = 0; i < detections.size(); i++) in detect() 163 int s = (int)detections[i].size() - 1; in detect() 164 ds.score = (float)detections[i][s]; in detect() 165 int x1 = (int)detections[i][0]; in detect() 166 int y1 = (int)detections[i][1]; in detect() 167 int w = (int)detections[i][2] - x1 + 1; in detect() 168 int h = (int)detections[i][3] - y1 + 1; in detect()
|
/dports/www/py-google-cloud-translate/google-cloud-translate-1.3.1/google/cloud/translate_v2/ |
H A D | client.py | 138 detections = response.get('data', {}).get('detections', ()) 140 if len(values) != len(detections): 142 values, detections) 148 if len(detections[index]) == 1: 149 detections[index] = detections[index][0] 152 'returned %d') % (len(detections[index]),) 153 raise ValueError(message, value, detections[index]) 155 detections[index]['input'] = value 157 detections[index].pop('isReliable', None) 160 return detections[0] [all …]
|
/dports/emulators/dolphin-emu/dolphin-3152428/Source/Core/DolphinQt/Config/Mapping/ |
H A D | MappingCommon.cpp | 81 auto detections = in DetectExpression() local 85 RemoveSpuriousTriggerCombinations(&detections); in DetectExpression() 100 return BuildExpression(detections, default_device, quote); in DetectExpression() 119 std::vector<ciface::Core::DeviceContainer::InputDetection>* detections) in RemoveSpuriousTriggerCombinations() argument 122 return std::any_of(detections->begin(), detections->end(), [&](auto& d) { in RemoveSpuriousTriggerCombinations() 129 detections->erase(std::remove_if(detections->begin(), detections->end(), is_spurious), in RemoveSpuriousTriggerCombinations() 130 detections->end()); in RemoveSpuriousTriggerCombinations() 134 BuildExpression(const std::vector<ciface::Core::DeviceContainer::InputDetection>& detections, in BuildExpression() argument 188 for (auto& detection : detections) in BuildExpression()
|
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/dnn_objdetect/samples/ |
H A D | obj_detect.cpp | 128 std::cout << "\nTotal objects detected: " << inf.detections.size() in main() 133 for (size_t i = 0; i < inf.detections.size(); ++i) in main() 136 int xmin = inf.detections[i].xmin; in main() 137 int ymin = inf.detections[i].ymin; in main() 138 int xmax = inf.detections[i].xmax; in main() 139 int ymax = inf.detections[i].ymax; in main() 140 cv::String class_name = inf.detections[i].label_name; in main() 143 << "Co-ordinates: " << inf.detections[i].xmin << " " in main() 144 << inf.detections[i].ymin << " " in main() 145 << inf.detections[i].xmax << " " in main() [all …]
|
/dports/multimedia/libopenshot/libopenshot-0.2.7/src/sort_filter/ |
H A D | sort.cpp | 43 vector<TrackingBox> detections; in update() local 55 detections.push_back(tb); in update() 57 …KalmanTracker trk = KalmanTracker(detections[i].box, detections[i].confidence, detections[i].class… in update() 70 detections.push_back(tb); in update() 98 detNum = detections.size(); in update() 108 …double distance = SortTracker::GetCentroidsDistance(predictedBoxes[i], detections[j].box) / image_… in update() 162 trackers[trkIdx].update(detections[detIdx].box); in update() 163 trackers[trkIdx].classId = detections[detIdx].classId; in update() 164 trackers[trkIdx].confidence = detections[detIdx].confidence; in update() 170 …KalmanTracker tracker = KalmanTracker(detections[umd].box, detections[umd].confidence, detections[… in update()
|
/dports/graphics/opencv/opencv-4.5.3/samples/android/mobilenet-objdetect/src/org/opencv/samples/opencv_mobilenet/ |
H A D | MainActivity.java | 91 Mat detections = net.forward(); in onCameraFrame() local 96 detections = detections.reshape(1, (int)detections.total() / 7); in onCameraFrame() 98 for (int i = 0; i < detections.rows(); ++i) { in onCameraFrame() 99 double confidence = detections.get(i, 2)[0]; in onCameraFrame() 101 int classId = (int)detections.get(i, 1)[0]; in onCameraFrame() 103 int left = (int)(detections.get(i, 3)[0] * cols); in onCameraFrame() 104 int top = (int)(detections.get(i, 4)[0] * rows); in onCameraFrame() 105 int right = (int)(detections.get(i, 5)[0] * cols); in onCameraFrame() 106 int bottom = (int)(detections.get(i, 6)[0] * rows); in onCameraFrame()
|
/dports/science/py-obspy/obspy-1.2.2/obspy/signal/tests/ |
H A D | test_cross_correlation.py | 554 self.assertEqual(len(detections), 3) 566 for d, t in zip(detections[1:], triggers): 600 self.assertEqual(len(detections), 2) 601 for d in detections: 611 self.assertEqual(len(detections), 2) 614 self.assertEqual(len(detections), 1) 622 self.assertEqual(len(detections), 1) 633 self.assertGreater(len(detections), 0) 634 self.assertIn('template_id', detections[0]) 637 self.assertEqual(len(detections), 3) [all …]
|
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/tracking/src/ |
H A D | tracking_by_matching.cpp | 418 const TrackedObjects& detections, 424 const TrackedObjects& detections, 666 for (const auto &det : detections) { in FilterDetections() 686 TBM_CHECK(!detections.empty()); in SolveAssignmentProblem() 702 if (res[i] < detections.size()) { in SolveAssignmentProblem() 841 for (auto &obj : detections) { in process() 1015 const TrackedObjects& detections, in ComputeDistances() argument 1081 const TrackedObjects& detections, in StrongMatching() argument 1142 TBM_CHECK(i < detections.size()); in AddNewTracks() 1273 TrackedObjects detections; in trackedDetections() local [all …]
|
/dports/www/groupoffice/groupoffice-6.4.231-php-71/modules/googledrive/google-api-php-client/src/contrib/ |
H A D | Google_TranslateService.php | 129 public $detections; variable in Google_TranslateService 143 …$this->detections = new Google_DetectionsServiceResource($this, $this->serviceName, 'detections', … 152 public $detections; variable in Google_DetectionsListResponse 153 public function setDetections(/* array(Google_DetectionsResourceItems) */ $detections) { argument 154 $this->assertIsArray($detections, 'Google_DetectionsResourceItems', __METHOD__); 155 $this->detections = $detections; 158 return $this->detections;
|
/dports/www/orangehrm/orangehrm-4.9/symfony/lib/vendor/google/apiclient-services/src/Google/Service/Translate/ |
H A D | DetectionsListResponse.php | 27 public function setDetections($detections) argument 29 $this->detections = $detections; 36 return $this->detections;
|
/dports/net-p2p/bazarr/bazarr-1.0.2/libs/deep_translator/ |
H A D | detection.py | 53 detections = body.get('detections') 55 return detections[0] 57 lang = detections[0].get('language', None) 71 detections = body.get('detections') 72 res = [obj[0] for obj in detections]
|
/dports/graphics/opencv/opencv-4.5.3/modules/dnn/src/cuda4dnn/primitives/ |
H A D | region.hpp | 132 void do_nms_sort(float *detections, int total, float score_thresh, float nms_thresh) in do_nms_sort() argument 141 b.width = detections[box_index + 2]; in do_nms_sort() 142 b.height = detections[box_index + 3]; in do_nms_sort() 143 b.x = detections[box_index + 0] - b.width / 2; in do_nms_sort() 144 b.y = detections[box_index + 1] - b.height / 2; in do_nms_sort() 154 scores[i] = detections[class_index + k]; in do_nms_sort() 155 detections[class_index + k] = 0; in do_nms_sort() 162 detections[class_index + k] = scores[indices[i]]; in do_nms_sort()
|
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/tools/ |
H A D | match_linemod_template.cpp | 100 std::vector<pcl::LINEMODDetection> detections; in matchTemplates() local 101 linemod.matchTemplates (modalities, detections); in matchTemplates() 103 return (detections); in matchTemplates() 115 std::vector<pcl::LINEMODDetection> detections = matchTemplates (input, linemod); in compute() local 118 for (std::size_t i = 0; i < detections.size (); ++i) in compute() 120 const LINEMODDetection & d = detections[i]; in compute()
|
/dports/www/py-google-cloud-translate/google-cloud-translate-1.3.1/tests/ |
H A D | system.py | 49 detections = Config.CLIENT.detect_language(values) 50 self.assertEqual(len(values), len(detections)) 51 self.assertEqual(detections[0]['language'], 'ru') 52 self.assertEqual(detections[1]['language'], 'fr') 53 self.assertEqual(detections[2]['language'], 'fr')
|
/dports/science/py-dlib/dlib-19.22/tools/python/src/ |
H A D | shape_predictor.h | 139 const std::vector<std::vector<full_object_detection> >& detections in contains_any_detections() 142 for (unsigned long i = 0; i < detections.size(); ++i) in contains_any_detections() 144 if (detections[i].size() != 0) in contains_any_detections() 156 std::vector<std::vector<full_object_detection> >& detections, in train_shape_predictor_on_images() 167 if (images.size() != detections.size()) in train_shape_predictor_on_images() 170 if (!impl::contains_any_detections(detections)) in train_shape_predictor_on_images() 210 shape_predictor predictor = trainer.train(images, detections); in train_shape_predictor_on_images() 238 std::vector<std::vector<full_object_detection> >& detections, in test_shape_predictor_with_images() 243 if (images.size() != detections.size()) in test_shape_predictor_with_images() 249 return test_shape_predictor(predictor, images, detections, scales); in test_shape_predictor_with_images() [all …]
|
/dports/science/dlib-cpp/dlib-19.22/tools/python/src/ |
H A D | shape_predictor.h | 139 const std::vector<std::vector<full_object_detection> >& detections in contains_any_detections() 142 for (unsigned long i = 0; i < detections.size(); ++i) in contains_any_detections() 144 if (detections[i].size() != 0) in contains_any_detections() 156 std::vector<std::vector<full_object_detection> >& detections, in train_shape_predictor_on_images() 167 if (images.size() != detections.size()) in train_shape_predictor_on_images() 170 if (!impl::contains_any_detections(detections)) in train_shape_predictor_on_images() 210 shape_predictor predictor = trainer.train(images, detections); in train_shape_predictor_on_images() 238 std::vector<std::vector<full_object_detection> >& detections, in test_shape_predictor_with_images() 243 if (images.size() != detections.size()) in test_shape_predictor_with_images() 249 return test_shape_predictor(predictor, images, detections, scales); in test_shape_predictor_with_images() [all …]
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/example/ssd/detect/ |
H A D | detector.py | 101 detections = self.mod.predict(det_iter).asnumpy() 106 result = Detector.filter_positive_detections(detections) 116 detections = self.mod.get_outputs()[0] 117 positive_detections = Detector.filter_positive_detections(detections) 192 def filter_positive_detections(detections): argument 199 assert(isinstance(detections, mx.nd.NDArray) or isinstance(detections, np.ndarray)) 202 for i in range(detections.shape[0]): 204 det = detections[i, :, :]
|
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/example/ssd/detect/ |
H A D | detector.py | 101 detections = self.mod.predict(det_iter).asnumpy() 106 result = Detector.filter_positive_detections(detections) 116 detections = self.mod.get_outputs()[0] 117 positive_detections = Detector.filter_positive_detections(detections) 192 def filter_positive_detections(detections): argument 199 assert(isinstance(detections, mx.nd.NDArray) or isinstance(detections, np.ndarray)) 202 for i in range(detections.shape[0]): 204 det = detections[i, :, :]
|
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/text/samples/ |
H A D | webcam_demo.cpp | 51 vector<Mat> &detections; member in Parallel_OCR 252 vector<Mat> detections; in main() local 262 detections.push_back(group_img); in main() 264 vector<string> outputs((int)detections.size()); in main() 265 vector< vector<Rect> > boxes((int)detections.size()); in main() 266 vector< vector<string> > words((int)detections.size()); in main() 267 vector< vector<float> > confidences((int)detections.size()); in main() 270 for (int i=0; i<(int)detections.size(); i=i+(int)num_ocrs) in main() 273 if (i+(int)num_ocrs <= (int)detections.size()) in main() 276 r = Range(i,(int)detections.size()); in main() [all …]
|
/dports/www/orangehrm/orangehrm-4.9/symfony/plugins/orangehrmOpenidAuthenticationPlugin/lib/vendor/GoogleAPIClient/Service/ |
H A D | Translate.php | 35 public $detections; variable in Google_Service_Translate 52 $this->detections = new Google_Service_Translate_Detections_Resource( 235 public function setDetections($detections) argument 237 $this->detections = $detections; 241 return $this->detections;
|
/dports/misc/openmvg/openMVG-2.0/src/openMVG/features/fast/ |
H A D | fast_detector.cpp | 58 xy* detections = detector(ima.data(), in detect() local 65 regions.emplace_back(detections[i].x, detections[i].y); in detect() 67 free( detections ); in detect()
|
/dports/multimedia/libopenshot/libopenshot-0.2.7/src/effects/ |
H A D | ObjectDetection.cpp | 107 DetectionData detections = detectionsData[frame_number]; in GetFrame() local 108 for(int i = 0; i<detections.boxes.size(); i++){ in GetFrame() 111 if(detections.confidences.at(i) < confidence_threshold){ in GetFrame() 121 int objectId = detections.objectIds.at(i); in GetFrame() 165 drawPred(detections.classIds.at(i), detections.confidences.at(i), in GetFrame() 166 … box, cv_image, detections.objectIds.at(i), bg_rgba, bg_alpha, 1, true, draw_text); in GetFrame() 167 drawPred(detections.classIds.at(i), detections.confidences.at(i), in GetFrame() 422 DetectionData detections = detectionsData.at(frame_number); in GetVisibleObjects() local 425 for(int i = 0; i<detections.boxes.size(); i++){ in GetVisibleObjects() 427 if(detections.confidences.at(i) < confidence_threshold){ in GetVisibleObjects() [all …]
|
/dports/science/py-obspy/obspy-1.2.2/misc/docs/source/tutorial/code_snippets/ |
H A D | xcorr_detector.rst | 39 distance = 10 # distance between detections in seconds 60 distance = 10 # distance between detections in seconds 66 detections, sims = correlation_detector( 68 detections 121 distance = 10 # distance between detections in seconds 147 detections, sims = correlation_detector( 151 Now, we have only 11 detections, probably from two specific earthquake clusters. 152 To get more detections, we need to relax the constraints again. 157 the detections include magnitudes estimated from the amplitude ratios between 193 detections, sims = correlation_detector( [all …]
|