Comments (7)
Thanks a lot dear, you are really awesome 👍
from imageai.
You are welcome.
from imageai.
All you need is to convert the image to a Numpy Array and set input_type ="array" . See details of detectObjectsFromImage parameters from documentation below.
http://imageai.readthedocs.io/en/latest/detection/index.html
from imageai.
To speed the detection by removing the latency of saving the detected image, refer to #9
from imageai.
I did below but it also gives me an error
from PIL import Image;
image_arr = np.asarray(Image.open(test.jpg).convert('RGB'));
returned_image,detections=detector.detectObjectsFromImage(input_image=image_arr,output_type="array", extract_detected_objects=False,minimum_percentage_probability = 30)
Can you give me an Example
from imageai.
AttributeError: 'numpy.ndarray' object has no attribute 'seek'
from imageai.
Remove the
.convert('RGB') and replace it as seen below
image_arr = np.asarray(Image.open('test.jpg'), dtype='float64')
I also noticed that in the code you posted above, you did Image.open(test.jpg), instead of the Image.open('test.jpg') . You omitted the quotation.
from imageai.
Related Issues (20)
- Error: cannot reshape array of size 134 into shape (5) HOT 1
- loadModel() got an unexpected keyword argument 'detection_speed' HOT 2
- Website gives 404 HOT 1
- Can't find this function,detectCustomObjectsFromImage. HOT 2
- Error when training custom detection: bounding box values should be in the range 0 - 1 HOT 1
- Multiple GPU support with pytorch backend HOT 1
- Custom image detection always returns one wrong result HOT 1
- File size reduction HOT 2
- ml
- How can I do to make that the processed video stream is playing in real-time to users in ImageAI? HOT 1
- How to run ImageAI on AMD GPU? HOT 1
- Custom Object Detection HOT 1
- ModuleNotFoundError: No module named 'imageai' HOT 2
- Custom Detection Model Training: Validation values schow always 0.000000 HOT 1
- TypeError
- theia-engine Link is not working
- For the classifier, what is the size image reduce to dimensions? HOT 1
- Multiple Errors HOT 2
- RetinaNet model tries to write to system directory
- recall: 0.000000 precision: 0.000000 [email protected]: 0.000000, [email protected]: 0.000000 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imageai.