Vasya start work machine vision company IT City Vasyas team create software hardware identification people faceOne project knowhow camera rotate optical axis shoot People eyecatche gadget rotate camera come well look and camera take photo time what well high quality identificationBut simple the picture camera appear rotate clockwise camera rotation frame content rotate counterclockwise but identification algorithm work face slightly deviate verticalVasya entrust correct situation rotate capture image image minimally deviate vertical Requirements severe Firstly picture rotate angle divisible 90 degree lose bit information image secondly frame camera huge FPS big adequate rotation speed provide hardware fpga solution and solution rotate 90 degree clockwise of course apply 90 degree turn times sake performance number turn minimizedhelp Vasya implement program give rotation angle camera determine minimum number 90 degree clockwise turn necessary picture direction deviation vertical minimumthe figure contain frame take unrotated camera rotate 90 degree clockwise rotate 90 degree counterclockwise Arrows direction true the figure show 90 degree clockwise turn FPGA hardware