Comments (1)
I don't quite understand what you mean with "using the internal camera to process the frames", but here is a snippet to modify SocketCamera.java:69-79
to use a image file as a stream instead of reading from a socket:
InputStream in = new BufferedInputStream(new FileInputStream(
"/data/data/org.siprop.opencv/files/example.jpg"));
bitmap = BitmapFactory.decodeStream(in);
I would encourage you to simply read the stream once as opposed to constantly having the thread read the file over and over, but this is only to give you an idea of how it could be done.
Of course you will have to push example.jpg
to the correct path onto the device in order for this to work.
from opencv-android.
Related Issues (20)
- simple OpenCVSample failed with segmentation fault HOT 1
- Enhancement to support Android 1.5 HOT 1
- VideoEmulation - Fatal Exception initFaceDetection HOT 3
- VideoEmulation - Don't show image HOT 1
- Error during Load of cascade file HOT 1
- (Not really and Issue) Very slow performance with VideoEmulation HOT 1
- Crash on mobile phone HOT 1
- I want to open jpg or png files but I cannot open them.
- Unable to build on Windows HOT 6
- VideoEmulation Issues
- how can compile it with cygwin HOT 1
- undefined reference
- Core.putText() chinese words show "???" HOT 1
- why preview picture is left-right-reverse ?
- OpenCV sample not working on Moto Droid HOT 3
- Current structure will not work on latest Android NDK r4 HOT 3
- Segmentation fault in VideoEmulation HOT 6
- (Not really an issue...) Any differences between this OpenCV-Android and "official" OpenCV project? HOT 3
- New build instructions for android-ndk-r4 HOT 2
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 opencv-android.