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
extension VNFaceObservation { | |
func landmarksBBox(_ imageSize: CGSize) -> (bbox: CGRect, landmarks: [CGPoint]) { | |
guard let allPoints = self.landmarks?.allPoints?.pointsInImage(imageSize: imageSize), | |
allPoints.count > 0 else { return (CGRect.zero, []) } | |
var maxX : CGFloat = -CGFloat.greatestFiniteMagnitude | |
var minX : CGFloat = CGFloat.greatestFiniteMagnitude | |
var maxY = maxX | |
var minY = minX |
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
# steps to deploy website through git | |
# login via ssh to your website | |
# create a folder where you want to store your bare repository | |
mkdir -p /home/username/gitrepos/myrepository.git | |
cd /home/username/gitrepos/myrepository.git | |
git init --bare |