Important industrial processes including oil extraction, mineral processing and wastewater treatment, rely on the separation of buoyant particles from a liquid phase. The capillary attraction between floating particles and fixed collectors can be leveraged to improve the efficiency of the separation process. The capture of an advected floating particle by a fixed cylindrical obstacle is due to direct interception and capillary attraction for sub-millimeter particles. The capillary attraction stems from the local deformation of the air/liquid interface. Previous work has established that floating particles placed on the surface of a still liquid bath, spontaneously move toward or away from one another depending on their surface properties. More recently, a numerical study has considered the competition between hydrodynamic and capillary interactions as floating particles are advected past a fixed cylinder. This seminal work revealed that capillary interactions can enhance the capture of particles at low flow velocity. Building on these results, we develop a numerical approach to study the interactions between advected particles and an array of obstacles. The results are obtained with the finite element modeling of the fluid flow in the channel, in presence of obstacles. Assuming that the particles do not alter the fluid flow, we solve the momentum conservation equation for each advected particle using the Basset Boussineq Oseen equation. If contact occurs, we assume that the particle is captured by the obstacle, thus neglecting inertial effects. We demonstrate that an array of obstacles can capture most of the particles traveling down the channel. First, we show that the efficiency of an array of obstacles, i.e. the fraction of particles captured depends on interfacial and hydrodynamic effects. For example, parameters such as the Reynolds number, capillary length, contact angle and collector size influence the trapping efficiency. Second we vary the geometry of the array and seek to minimize the amount of static material needed to get the maximum efficiency. These results provide guidelines for the design of efficient filters.