Projective invariants for curves in two and three dimensions