mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-30 07:39:01 +03:00
Implement face recognition training in UI (#15786)
* Rename debug to train * Add api to train image as person * Cleanup model running * Formatting * Fix * Set face recognition page title
This commit is contained in:
committed by
Blake Blackshear
parent
172e7d494f
commit
281407247b
@@ -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;
|
||||
Reference in New Issue
Block a user