mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Misc fixes (#17443)
* ensure semantic search is enabled before updating embeddings stats * add camera and label to snapshot download filename
This commit is contained in:
		
							parent
							
								
									4aa493b96c
								
							
						
					
					
						commit
						37c3ac5413
					
				@ -235,8 +235,10 @@ class EmbeddingMaintainer(threading.Thread):
 | 
				
			|||||||
        if not camera or source_type != EventTypeEnum.tracked_object:
 | 
					        if not camera or source_type != EventTypeEnum.tracked_object:
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if self.config.semantic_search.enabled:
 | 
				
			||||||
 | 
					            self.embeddings.update_stats()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        camera_config = self.config.cameras[camera]
 | 
					        camera_config = self.config.cameras[camera]
 | 
				
			||||||
        self.embeddings.update_stats()
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # no need to process updated objects if face recognition, lpr, genai are disabled
 | 
					        # no need to process updated objects if face recognition, lpr, genai are disabled
 | 
				
			||||||
        if not camera_config.genai.enabled and len(self.realtime_processors) == 0:
 | 
					        if not camera_config.genai.enabled and len(self.realtime_processors) == 0:
 | 
				
			||||||
 | 
				
			|||||||
@ -955,8 +955,8 @@ export function ObjectSnapshotTab({
 | 
				
			|||||||
                    <Tooltip>
 | 
					                    <Tooltip>
 | 
				
			||||||
                      <TooltipTrigger asChild>
 | 
					                      <TooltipTrigger asChild>
 | 
				
			||||||
                        <a
 | 
					                        <a
 | 
				
			||||||
                          download
 | 
					 | 
				
			||||||
                          href={`${baseUrl}api/events/${search?.id}/snapshot.jpg`}
 | 
					                          href={`${baseUrl}api/events/${search?.id}/snapshot.jpg`}
 | 
				
			||||||
 | 
					                          download={`${search?.camera}_${search?.label}.jpg`}
 | 
				
			||||||
                        >
 | 
					                        >
 | 
				
			||||||
                          <Chip className="cursor-pointer rounded-md bg-gray-500 bg-gradient-to-br from-gray-400 to-gray-500">
 | 
					                          <Chip className="cursor-pointer rounded-md bg-gray-500 bg-gradient-to-br from-gray-400 to-gray-500">
 | 
				
			||||||
                            <FaDownload className="size-4 text-white" />
 | 
					                            <FaDownload className="size-4 text-white" />
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user