Disclosed is arrangement for capturing image of a log; arrangement comprising first housing structure comprising at least two end walls and at least one side wall, wherein the at least one side wall include at least one opening; second holding structure arranged within first housing structure wherein second holding structure holds at least one imaging device for capturing at least one image of planar surface of log; first controlling unit attached to first housing structure and operatively coupled to second holding structure for moving second holding structure from first position to second position, wherein at second position at least one imaging device is positioned axially on at least one opening; and second controlling unit is operatively coupled to at least one imaging device and is configured to instruct at least one imaging device to capture after positioning axially at least one image of planar surface of log.