How to detect whether an object is in the camera viewport?

I have a lot of particles in the scene. I want to check whether the camera can see or be close enough to show the particles.

Like this:

1 Like