How to get the products for a particular category?

I have to load product collection from particular category, i have used below code but not worked for me

 $collection = $this->_collection
                ->addMinimalPrice()
                ->addFinalPrice()
                ->addTaxPercents()
                ->addStoreFilter()
                ->addAttributeToSelect('name')
                ->addAttributeToSelect('image')
                ->addAttributeToFilter('price', array('gt' => 0))
                ->addAttributeToFilter('is_saleable', 1, 'left')
                ->addAttributeToSort('created_at', 'desc')
                ->addAttributeToFilter('category_ids',array('finset'=>'7'));

Use the \Magento\Catalog\Model\Category::getProductCollection() method:

Usage examples