Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13951

How to reposition of object in the same image in Python deep learning model

$
0
0

I am developing a DL model in which I need to reposition of the image object to certain location within the same image itself. Example:

https://vectorstock.com/royalty-free-vector/lemon-soft-drink-advertising-lemonade-can-ads-vector-20584763

From this image I need to reposition sprite bottle to right hand side.

How can I do that?

I have experimented with the keras library using ImageDataGenerator class,but here I am getting different generated image for same width_shift_range and height as well for every run of model.link here:

https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html

How to fixed this issue.

from keras.preprocessing.image import ImageDataGeneratordatagen = ImageDataGenerator(rotation_range=40, width_shift_range=0.2,height_shift_range=0.2)

Viewing all articles
Browse latest Browse all 13951

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>