A bi-telecentric camera lens based on machine vision comprises, in sequence from left to right, protective glass, a front lens group, a half-transmitting and half-reflecting device, a diaphragm, a first rear lens group for low-magnification measurement, and a second rear lens group for high-magnification measurement. The front lens group includes eight lenses, which are a first lens, a second lens, a third lens, a fourth lens, a fifth lens, a sixth lens, a seventh lens and an eighth lens in sequence from left to right. The front lens group forms a bi-telecentric light path together with the first rear lens group and the second rear lens group. The first lens and the second lens constitute a doublet, and the agglutination surface is bent towards the object plane. The third lens and the fourth lens are crescent-shaped and bent towards the diaphragm. The fifth lens and the sixth lens constitute a doublet which has negative focal power. The seventh lens and the eighth lens constitute a doublet, and the agglutination surface is bent towards the diaphragm. The bi-telecentric camera lens can be connected with two CCDs or CMOSs at the same time to measure an object at different magnifications.