Monday, December 16, 2013

iphone how to always get the camera screen image

rt.
Like two-dimensional code scanning software, open, two-dimensional code when scanning to automatically parse and return.

This should always get the screen data of the camera, the camera's delegate does not provide a direct interface.

The prawns were there to know?

Thank

Reply:
Direct agent which contains the data obtained on the data you need, you can open the video function on the line. . As for the specific data processing on according to your own needs. .
Reply:
Of course, you can also define a timer constantly refresh the screen shots saved. . Code, google or baidu on the line, a lot.
Reply:
Need to use AVFoundation
Reply:
cited a floor fxj281314 reply:
direct agent data obtained on the inside, including the data you need, you can open the video function on the line. . As for the specific data processing on according to your own needs. .


Camera, nor is it always get the image of the current screen ah! ! Click Stop when it also will call - (void) imagePickerController: (UIImagePickerController *) picker didFinishPickingMediaWithInfo: (NSDictionary *) info


What you say is this one?
Reply:
reference to the third floor darkdong reply:
need to use AVFoundation


This may be right. I have found to this, but have not used the library. . . . .


Reply:
AVFoundation camera can handle the output stream, unable to finish processing the data before displaying it?

Rendering is the kind of camera handling. Without coating, deal directly with the camera data streams, AVFoundation you?
Reply:
Is similar to the real-time filter effect? ​​
It should be possible
reference to the 6th floor okadler0518 reply:
AVFoundation camera can handle the output stream, unable to finish processing the data before displaying it?

Rendering is the kind of camera handling. Without coating, deal directly with the camera data streams, AVFoundation you?

Reply:
reference to the 7th floor darkdong reply:?
is similar to the real-time filter effect you it should be possible

References to the 6th floor okadler0518 reply:

AVFoundation camera can handle the output stream, unable to finish processing the data before displaying it?

Rendering is the kind of camera handling. Without coating, deal directly with the camera data streams, AVFoundation you?


Yes, that filter effects.
- (Void) captureOutput: (AVCaptureOutput *) captureOutput
didOutputSampleBuffer: (CMSampleBufferRef) sampleBuffer
fromConnection: (AVCaptureConnection *) connection
Can handle the output stream, but can not write back ah.

Finished with how to write back, let the camera showing effect? ?
Reply:
Can be modified directly sampleBuffer
Like this
CVImageBufferRef pixelBuffer = CMSampleBufferGetImageBuffer (sampleBuffer);
[Self.delegate addFilter: pixelBuffer];

Reply:
[Self.delegate addFilter: pixelBuffer];

Here's delegate that refers to the delegate? ? ? ? ?

Thank

Reply:
It was a custom delegate, innocuous, is to do it in the filter processing into delegate
Reply:
No, I'm not dealing with the problem filters, but the deal is good, I want to render the camera, for example, I put the picture up into black and white, all scenes captured by the camera are now black and white! Know what I mean?

In order to further a more direct form of communication. Haha

No comments:

Post a Comment