VideoOccupancySensor - HOGSVNDetector - JPEGEncoder

Is it possible to run one instance of each library (VideoOccupancySensor - HOGSVNDetector - JPEGEncoder) in my BF707? I'm having difficulties to make it work for memory reasons. (L1 code memory not enough).

Would it be possible to run the code of the HOGSVNDetector in L2 memory instead?

Thank you

Chiara