forked from blakeblackshear/frigate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement face recognition training in UI (blakeblackshear#15786)
* Rename debug to train * Add api to train image as person * Cleanup model running * Formatting * Fix * Set face recognition page title
- Loading branch information
Showing
5 changed files
with
231 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { forwardRef } from "react"; | ||
import { LuPlus, LuScanFace } from "react-icons/lu"; | ||
import { cn } from "@/lib/utils"; | ||
|
||
type AddFaceIconProps = { | ||
className?: string; | ||
onClick?: () => void; | ||
}; | ||
|
||
const AddFaceIcon = forwardRef<HTMLDivElement, AddFaceIconProps>( | ||
({ className, onClick }, ref) => { | ||
return ( | ||
<div | ||
ref={ref} | ||
className={cn("relative flex items-center", className)} | ||
onClick={onClick} | ||
> | ||
<LuScanFace className="size-full" /> | ||
<LuPlus className="absolute size-4 translate-x-3 translate-y-3" /> | ||
</div> | ||
); | ||
}, | ||
); | ||
|
||
export default AddFaceIcon; |
Oops, something went wrong.