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:
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:
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
Reply:
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