unmatched faces now sorts size of face desc, and is slightly prettier -- still slow and only takes you to the file anyway, might optimise that later. still no code to auto deal with unmatched face, but will add some capabilities next. Also, remembered last dir when file_ip/sp/bin. Also throw error if try to find unknown person - happened since I allowed the back/forward.
This commit is contained in:
9
face.py
9
face.py
@@ -2,6 +2,12 @@ from main import db, app, ma
|
||||
from sqlalchemy import Sequence
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
|
||||
# DEL ME SOON
|
||||
from flask_login import login_required
|
||||
from flask import render_template
|
||||
import json
|
||||
|
||||
|
||||
# pylint: disable=no-member
|
||||
|
||||
################################################################################
|
||||
@@ -17,6 +23,8 @@ class Face(db.Model):
|
||||
id = db.Column(db.Integer, db.Sequence('face_id_seq'), primary_key=True )
|
||||
face = db.Column( db.LargeBinary )
|
||||
locn = db.Column( db.String )
|
||||
w = db.Column( db.Integer )
|
||||
h = db.Column( db.Integer )
|
||||
refimg_lnk = db.relationship("FaceRefimgLink", uselist=False, viewonly=True)
|
||||
facefile_lnk = db.relationship("FaceFileLink", uselist=False, viewonly=True)
|
||||
refimg =db.relationship("Refimg", secondary="face_refimg_link", uselist=False)
|
||||
@@ -53,4 +61,3 @@ class FaceRefimgLink(db.Model):
|
||||
|
||||
def __repr__(self):
|
||||
return f"<face_id: {self.face_id}, refimg_id={self.refimg_id}, face_distance: {self.face_distance}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user