Abstract-Various techniques for the traffic density estimation in heavy traffic have been developed widely. However, most of them suffer from any drawbacks, especially for traffic fulfilling all kinds of vehicles. In the present study, a new technique of traffic density estimation using a macroscopic approach has been developed. This technique used a background construction and a traffic density estimation algorithm. The first algorithm detects parts of the image containing no moving vehicle in front of or behind the moving vehicle using inter-frame difference. After that, an edge detector detects the edge of image part and classifies whether the image can be used as a part of the background image or not. Meanwhile the second algorithm estimates the traffic density by calculating a ratio between the road area covered by vehicle and the total road area. As a result, this technique has a higher accuracy for determining the traffic density compared with the previous techniques.