1. A method for generating x-ray inspection image of an electronic circuit board, the method comprising: respectively generating, according to data files of the electronic circuit board and parameters of an X-ray machine, analog images of both faces of the electronic circuit board; subjecting the electronic circuit board to X-ray imaging to generate a real image of the electronic circuit board, the real image comprising real image elements on both faces of the electronic circuit board; identifying, according to the analog images of both faces, from the real image an interference image element that needs to be filtered from the real image for generating a real image of a detected object; and filtering the interference image element from the real image to generate the real image of the detected object.