Compare commits
	
		
			2 Commits
		
	
	
		
			f959cb3a00
			...
			6ef757e8a2
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
								 | 
						6ef757e8a2 | |
| 
							
							
								 | 
						911c4d590c | 
| 
						 | 
				
			
			@ -5,7 +5,8 @@ export const generateImageUrl = (image_path) => {
 | 
			
		|||
 | 
			
		||||
export function convertToBoundingBox(points) {
 | 
			
		||||
	return {
 | 
			
		||||
		label: points[0].label,
 | 
			
		||||
		subLabel: points[0].subLabel || "",
 | 
			
		||||
		label: (points[0].subLabel || "") + "." + points[0].label,
 | 
			
		||||
		x1: Math.min(...points.map((p) => p.x)),
 | 
			
		||||
		x2: Math.max(...points.map((p) => p.x)),
 | 
			
		||||
		y1: Math.min(...points.map((p) => p.y)),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue