CN112437224B - Camera data processing method and device, computer equipment and storage medium - Google Patents
Camera data processing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN112437224B CN112437224B CN201910791640.1A CN201910791640A CN112437224B CN 112437224 B CN112437224 B CN 112437224B CN 201910791640 A CN201910791640 A CN 201910791640A CN 112437224 B CN112437224 B CN 112437224B
- Authority
- CN
- China
- Prior art keywords
- image data
- data
- camera
- specified
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
Abstract
In the scheme, current frame image data called back by a camera is firstly intercepted, and the current frame image data is replaced by appointed image data, so that the processing flow still acquires data from the camera during actual image processing operation, but the processed data is the appointed image data. Therefore, in a scene where image data are acquired and processed in real time, the scheme does not make any requirement on data actually acquired by the camera, and avoids dependence on an actual scene when the image data are acquired, so that the scheme can be adapted to different scenes.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing camera data, a computer device, and a storage medium.
Background
With the continuous development of mobile terminals, applications using cameras are increasing, and in a research and development test stage, in many cases, image data needs to be acquired through the cameras, and the acquired image data is used to test the applications or implement certain specific functions, for example, testing the effect of performing beauty processing on video data.
Different image data may need to be acquired by using the camera under different requirements, so that the actual scene needs to be changed to enable the camera to acquire data meeting requirements; in addition, the requirements for acquiring the same image data at different times may also occur, and at this time, the scenes need to be kept consistent at different times, the data processing effect depends on the scenes very much, the requirements for the scenes are very high, and the realization is very inconvenient.
Therefore, how to avoid the dependence on the actual scene when acquiring the image data is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present application provides a camera data processing method, apparatus, computer device and storage medium to avoid dependency on an actual scene when acquiring image data.
To achieve the above object, in one aspect, the present application provides a camera data processing method, including:
capturing current frame camera image data called back by a camera, wherein the current frame camera image data is a frame of image data currently acquired by the camera;
decoding a specified data source, and acquiring one frame of specified image data in the specified data source;
replacing the current frame image data with the one frame designated image data;
and performing operation corresponding to the current frame image data by using the specified image data.
In yet another aspect, the present application provides a camera data processing system, comprising:
the data acquisition module is used for acquiring current frame camera image data called back by a camera, wherein the current frame camera image data is a frame of image data currently acquired by the camera;
the data source decoding module is used for decoding a specified data source and acquiring one frame of specified image data in the specified data source;
a data replacement module for replacing the current frame image data with the one frame of the designated image data;
and the data processing module is used for carrying out operation corresponding to the current frame image data by utilizing the specified image data.
In yet another aspect, the present application further provides a computer device, including:
a processor and a memory;
wherein the processor is configured to execute a program stored in the memory;
the memory is to store a program to at least:
capturing current frame camera image data called back by a camera, wherein the current frame camera image data is a frame of image data currently acquired by the camera;
decoding a specified data source, and acquiring one frame of specified image data in the specified data source;
replacing the current frame image data with the one frame of designated image data;
and performing operation corresponding to the current frame image data by using the specified image data.
In another aspect, the present application further provides a storage medium, where computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the method for detecting memory allocation codes according to any embodiment of the present application is implemented.
Therefore, according to the camera data processing method provided by the application, the current frame image data called back by the camera is intercepted, and the specified image data is replaced by the current frame image data, so that the data is still acquired from the camera in the processing flow during the actual image processing operation, but the processed data is the specified image data. Therefore, in a scene where image data are acquired and processed in real time, the scheme does not make any requirement on data actually acquired by the camera, and avoids dependence on an actual scene when the image data are acquired, so that the scheme can be adapted to different scenes. The application also provides a camera data processing system, a computer device and a storage medium, which can achieve the effects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on the provided drawings without creative efforts.
Fig. 1 is a schematic diagram of a first terminal device to which an embodiment of the present application is applicable;
fig. 2 is a schematic diagram of a second terminal device to which the embodiment of the present application is applicable;
fig. 3 is a schematic diagram of a third terminal device applicable to the embodiment of the present application;
fig. 4 is a flowchart illustrating a camera data processing method according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a data processing flow of a camera according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a camera data processing method according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a camera data processing method according to an embodiment of the present application;
fig. 8 shows a system diagram corresponding to an application scenario embodiment of the present application;
fig. 9 is a schematic diagram of a system corresponding to an application scenario embodiment of the present application;
FIG. 10 is a block diagram illustrating an example of the organization of one embodiment of a camera data processing system according to an example embodiment of the present application;
fig. 11 is a schematic diagram illustrating a component structure of an embodiment of a computer device according to an embodiment of the present application.
Detailed Description
At present, many camera-based applications need to acquire camera data in a test or use stage, so as to process the data and test the effect of a data processing result, for example, in a live video scene, functions such as a beauty filter are provided, and when the functions are tested, a real scene needs to be provided, so that the applications acquire the data acquired by the camera, perform processing related to beauty and the filter, and test the processing effect. If there are various scene requirements during data processing, various real scenes need to be provided, which increases the difficulty of implementing preparation work during data processing and is very inconvenient to operate. Therefore, the present application provides a camera data processing method, apparatus, computer device, and storage medium to avoid dependency on an actual scene when acquiring image data.
For convenience of understanding, a hardware composition framework to which the scheme corresponding to the memory allocation method of the present application is applied is introduced first. In the present application, a camera data processing method is applied to a terminal device as a set of programs, and there are three ways to implement the set of programs in the terminal device, which can be seen in fig. 1 to 3, where fig. 1 shows a schematic diagram of a first terminal device in the present application, fig. 2 shows a schematic diagram of a second terminal device in the present application, and fig. 3 shows a schematic diagram of a third terminal device in the present application.
Referring to fig. 1, as can be seen from fig. 1, the terminal device includes: cameras, device system layers, and applications.
The camera is a component which is installed on the terminal device and is used for collecting image data for the terminal device, and the camera is connected with the device system layer and is used for sending the collected image data to the device system layer.
The device system layer is the bottom layer system of the device, and includes a camera driver for interacting with the camera, such as sending an instruction for controlling the camera to turn on or off, receiving image data collected by the camera, and the like.
The application program is a user program installed on the upper layer of the terminal operating system, different functions can be realized, one or more application programs can be used in the scheme, and any application program interacts with the camera driver on the system layer and can acquire image data acquired by the camera. In this scheme, the application program further specifically includes two subprograms, namely a service program and a camera data processing program, and it should be noted that the subprograms here are only functions convenient to distinguish, and can be implemented in the same program during specific implementation. The camera data processing program may be added to the application program in the form of an embedded SDK (Software Development Kit) or hook (hook function). The camera data processing program is specifically used for realizing the function of replacing the image data acquired by the camera by using the specified data source; different from the prior art, the service program in the present application no longer receives and processes the image data recalled by the camera, but receives a result of replacing the image data recalled by the camera data processing program, that is, receives and processes the specified image data, so as to implement the specific service requirement.
Referring to fig. 2, as can be seen from fig. 2, the second terminal device includes: cameras, device system layers, and applications. Different from the previous embodiment, the second terminal device replaces or modifies the original camera driver, so that the camera data processing program is set in the camera driver of the system layer, and when any upper application program acquires image data acquired by the camera, the acquired image data are all designated image data, so that the camera data processing programs are not required to be set in each application program one by one.
Referring to fig. 3, as can be seen from fig. 3, the third terminal device includes: a virtual camera and an application. The virtual camera is also a program of an application layer, which is a program for imitating the function of a camera, but image data to be output is not actually captured but data specified by the virtual camera program. In the scheme, the virtual camera program is modified, and the camera data processing program is added, so that the image data output by the virtual camera is replaced designated image data.
For example, referring to fig. 4, after a camera acquires a frame of image data, a current frame of camera image data is recalled, a camera data processing program intercepts the recalled current frame of camera image data, and replaces the current frame of image data with a frame of specified image data, the camera data processing program sends the specified image data to a service program, and the service program performs corresponding operations by using the specified image data.
With the above generality, referring to fig. 5, which shows a flowchart of an embodiment of a camera data processing method according to the present application, the method of the present embodiment may include:
s101, capturing current frame camera image data called back by a camera, wherein the current frame camera image data is a frame of image data collected by the camera currently.
It should be noted that, in the conventional scheme, the camera acquires the camera image data and then calls back the camera image data to the corresponding service program, and in the scheme, the camera image data of the current frame called back by the camera is intercepted and captured in the process of calling back the camera image data.
It should be noted that the image data may be dynamic image data, i.e., video data, or static image data, i.e., a picture, if the image data is video data, each frame of data in the video is sequentially captured and subsequent steps are performed, and if the image data is static image data, only the current frame of image data is captured.
S102, decoding the appointed data source, and acquiring one frame of appointed image data in the appointed data source.
The designated data source is a data source which is pre-recorded according to scene requirements, can be video data or picture data, and one frame of data is determined in the designated data source to be used as designated image data.
S103, replacing the current frame image data with the frame designated image data.
Specifically, the current frame camera image data recalled by the camera is replaced by the specified frame image data, so that the business program actually processes the specified frame image data.
It should be noted that some application programs can only process camera data, that is, only the format of the camera data is applicable, so in this scheme, in order to avoid the situation that the data is not applicable, after current frame data actually acquired by a camera is acquired, only image data in the current frame data is replaced, and other data, such as timestamp data and context description information, are retained, so that the replaced result is consistent with the camera data except that the picture is different, and the universality of the data can be ensured.
It should be noted that, even if the complete image data that the camera needs to call back is video data, the specified data source may also be picture data, and when performing replacement, each frame of data of the replacement result may be the same, that is, the replaced video data is video data in which each frame of data is completely the same.
And S104, performing operation corresponding to the current frame image data by using the specified image data.
After the replacement is completed, the designated image data is processed correspondingly as the image data of the camera callback. It should be noted that the processing operation here should be a processing operation performed by the service program on the current frame image data acquired by the camera, and only in this scheme, the current frame image data is replaced, but the service program is not adjusted.
Therefore, according to the camera data processing method provided by the embodiment of the application, the current frame image data called back by the camera is firstly captured, and the current frame image data is replaced by the specified image data, so that the data is still obtained from the camera in the processing flow during the actual image processing operation, but the processed data is the specified image data. Therefore, in a scene where image data is acquired and processed in real time, the scheme does not make any requirement on data actually acquired by the camera, and avoids dependence on an actual scene when the image data is acquired, so that the scheme can be adapted to different scenes.
In one possible case, the operation performed on the specified image data may be any kind of image processing operation, so that the flow of acquiring an image in the image processing operation is the same as the flow of actually acquiring an image, but the data may be the specified data, and the demands for different data sources may be satisfied.
In a specific embodiment, the performing, by using the specified image data, an operation corresponding to the current frame image data includes:
and processing the appointed image data by utilizing an image processing technology to obtain processing result frame image data.
The image processing technology is any technology for processing image data, and can be determined according to actual situations, and for example, the technology can be a beautifying technology, a filter adding technology, an image replacement technology and the like.
In a possible case, the data processing technique may be in particular a cosmetic operation on the image. Referring to fig. 6, a specific camera data processing method provided in the embodiment of the present application may include the following steps:
s201, capturing current frame camera image data called back by a camera, wherein the current frame camera image data is a frame of image data collected by the camera currently.
S202, decoding a specified data source, and acquiring one frame of specified image data in the specified data source; the specified data source data is data source data including a face image.
In this scheme, the specified source data is data source data including a face image, and the data source data may be static image data, that is, picture data, or dynamic image data, that is, video data.
When the data source is specified as moving image data, the following two cases may be included:
first, the complete data to be subjected to image processing is video data, the data recalled back by the camera is multi-frame data meeting the length of the video data, and at this time, the designated data source also needs to be a data source including at least one frame of facial image data, and is replaced with the recalled frame of camera image data, so that at least one frame of the data subjected to beauty processing is facial data.
Secondly, the complete data to be subjected to image processing is picture data, the data recalled back by the camera only needs to be frame data, at this time, the designated data source also needs to be a data source including at least one frame of facial image data, and the data recalled back by the camera image data is replaced, so that the data subjected to the beauty processing is the facial data of the frame.
S203, replacing the current frame image data with the one frame designated image data.
And S204, processing the appointed image data by using an image beautifying technology to obtain frame image data of a processing result.
It should be noted that the beautifying technique is a technique for processing a specific image in image data, and the image processing technique in this scheme may also be an image processing technique similar to the beautifying technique, that is, the image processing technique in this scheme may be an operation of performing specific processing after recognizing a specific image, for example, adding a sticker after recognizing a face image.
Therefore, when the technical requirement of beautifying the image data is met, especially the scene of acquiring the data by simulating the fact and performing the beautifying processing on the fact, such as the beautifying processing of live video, can simulate the scene of processing the real-time image data by using the specified data source including the face image data without manual participation.
In one possible case, the data processing technique may specifically be the addition of a specified filter to the image. In a specific camera data processing method provided in an embodiment of the present application, the processing the designated image data by using an image processing technique includes:
and processing the specified image data by using an add filter technology.
Therefore, when the technical requirement of adding the filter to the image data is met, especially the situation that the data are obtained through simulation facts and the filter is added to the fact is achieved, for example, live video filter processing is achieved, the actual shooting environment does not need to be simulated, and real-time image data of different scenes can be processed by utilizing a specified data source.
In another possible case, the data processing technology may specifically be special effect processing on the image, that is, using image data of the green screen background and the synthesis technology to realize a special video effect. In a specific camera data processing method provided by the embodiment of the application, the designated data source is data of a data source including a green screen background;
correspondingly, the processing the specified image data by using the image processing technology comprises:
and processing the specified image data by utilizing an image replacement technology.
In the scheme, if an image replacement technology is tested, namely a technology for carrying out special effect processing on image data of a green curtain background is tested, the green curtain background is not actually arranged to be shot, and camera callback data is replaced by a specified green curtain background image data source according to frames, so that the same effect as that of actually shooting the green curtain background is achieved, and the difficulty in achieving the image replacement technology is simplified.
In one possible scenario, the image processing results need to be tested, i.e. the image data before and after processing needs to be compared, in order to determine the effect of the image processing. In a scene where data is acquired and processed in real time, it is necessary to store an image processing result after image data processing is completed, and to re-simulate the same shot picture, so that both the cost and the difficulty of the test are very high. Referring to fig. 7, a specific camera data processing method provided in the embodiment of the present application includes:
s301, capturing current frame camera image data called back by a camera, wherein the current frame camera image data is a frame image data currently acquired by the camera.
S302, decoding the designated data source, and acquiring one frame of designated image data in the designated data source.
S303, recording the designated image data.
In the scheme, after a frame of appointed image data is determined, the frame of appointed image data is stored, and the frame of appointed image data is image data before processing.
Specifically, when the designated image data is actually recorded, the designated image data needs to be compiled into picture data, that is, only the image data is retained without other data such as a time stamp, and the designated image data is saved to a designated storage location as image data before processing.
S304, replacing the current frame image data with the frame designated image data.
S305, processing the designated image data by using an image processing technology to obtain processing result frame image data.
It should be noted that the image processing technology here may be any image processing technology, such as the beauty processing technology, the filter adding technology, and the image replacing technology described in the above embodiments.
S306, comparing the processing result frame image data with the appointed image data to test the processing effect of the image processing technology.
Specifically, after the processing result frame image data is acquired again, the processing result frame image data is compiled into picture data, and at this time, the processing result frame image data may be directly compared with the specified image data, or the processing result frame image data may be stored in a specified position, so that a test is performed as required, and data is directly acquired from the specified position during the test to perform a comparison test, so as to determine whether the image processing technology is effective.
In the scheme, because the image processing operation is performed on the specified data source, the processing effect of the image processing technology can be determined only by storing the specified data source and comparing the specified data source with the processed frame image data of the processing result, and completely same pictures and shooting angles do not need to be rearranged, so that the difficulty in testing the real-time data processing effect is reduced.
In a possible situation, it is required to monitor whether an abnormal situation occurs when an application program acquires data of a camera, if the abnormal situation occurs, whether a white screen, a black screen, a flower screen, a green screen, and a mosaic occurs, but an actually acquired picture cannot completely avoid that a picture which is the same as the abnormal situation does not occur accidentally in an actual scene, and if the picture itself is white, the picture is monitored by a system as the abnormal white screen occurs, so that misjudgment is caused, and therefore, the embodiment of the application provides a specific implementation manner, and further limits and explains a technical scheme on the basis of the above embodiment, and specifically, the specified data source includes a non-abnormal effect data source;
correspondingly, the performing, by using the specified image data, an operation corresponding to the current frame image data includes:
and monitoring whether the specified image data has abnormal effects.
In the scheme, the appointed data source can be determined according to the actual monitoring requirement, and if the monitoring white screen is abnormal, the appointed data source is the image data without the white picture, so that the verification of the accuracy of the monitoring result is realized.
In one possible case, the operation performed on the specified image data may be any kind of image recognition operation, so that the flow of acquiring an image in the image recognition operation is the same as the flow of actually acquiring an image, but the data may be the specified data, and the demands for different data sources may be satisfied.
In a specific embodiment, the specifying image data source includes a data source having content to be identified, and accordingly, the decoding the specifying data source to obtain a frame of specifying image data in the specifying data source includes:
and identifying the content to be identified in the specified image data by utilizing an image identification technology.
The content to be recognized is not specifically limited, and may be set according to actual requirements, such as recognizing a specific motion and recognizing a face image, and it is understood that in this scenario, the designated data source is the data source including the content to be recognized.
Therefore, when the technical requirement of image identification on the image data is met, for example, the live video is identified with specific content, manual participation is not needed, and the scene of identifying the real-time image data can be simulated by using the specified data source comprising the image data to be identified.
For ease of understanding, please refer to fig. 8, which is described in conjunction with an application scenario of the present solution.
Firstly, a camera callback function is initialized and set so that the camera can call back the acquired image data to a service program.
Decoding a specified data source, wherein each frame of data comprises corresponding image data, timestamp data, context information and the like, and acquiring one frame of specified image data (pBuffer), namely acquiring only the image data in the specified data source without acquiring the timestamp data, the context information and the like.
The camera captures a frame of image data (sBuffer 1) and recalls it.
The camera data processing program intercepts the current frame camera image data (sBuffer 1), replaces the current frame camera image data (sBuffer 1) with the designated image data (pBuffer), and retains other data of the current frame image data (sBuffer 1), such as timestamp data, context information, etc., to obtain new data (sBuffer 2), that is, the new data includes the designated image data (sBuffer 1), the timestamp data of the current frame image data, the context information of the current frame image data, etc.
And transmitting the new data (sBuffer 2) to a service program to perform corresponding operation, wherein the specific description is given by taking image processing as an example.
After the flag bit (flag) is set to true, new data (sBuffer 2) and processing result frame image data (buffered) obtained after image processing is performed on the new data (sBuffer 2) are obtained, the new data (sBuffer 2) and the processing result frame image data (buffered) are encoded to generate corresponding pictures, and the pictures are stored to designated positions.
And acquiring a picture corresponding to the corresponding picture and a picture corresponding to the processing result frame image data (buffered) at the specified position, and comparing the two pictures to obtain a test result of the image processing technology.
On the basis of the foregoing embodiment, the technical solution is further described in the embodiment of the present application by taking processing of live video data as an example, please refer to fig. 9, in a live application, the obtained image data is current frame image data recalled by a camera, and is image data without a face, a function of replacing the camera data is started, the related steps are executed, the specified data source, that is, the image data including the face replaces the current frame image data detailed in the callback, and is displayed as image data including the face, and then, the image data including the face is subjected to image processing, for example, a filter is added (filter is represented by oblique lines in the figure), so as to obtain the processed image data.
On the other hand, the application also provides a camera data processing system. Referring to fig. 10, a camera data processing system provided in an embodiment of the present application includes:
the data capturing module 401 is configured to capture current frame camera image data called back by a camera, where the current frame camera image data is a frame of image data currently acquired by the camera;
a data source decoding module 402, configured to decode a specified data source, and acquire specified image data of one frame in the specified data source;
a data replacement module 403, configured to replace the current frame image data with the one frame designated image data;
a data processing module 404, configured to perform an operation corresponding to the current frame image data by using the specified image data.
Optionally, the data processing module 404 is specifically configured to process the specified image data by using an image processing technique, so as to obtain a processing result frame image data.
Optionally, the specified data source data is data source data including a face image;
the data processing module 404 is specifically configured to process the specified image data by using an image beautifying technique.
Optionally, the data processing module 404 is specifically configured to process the specified image data by using an add-filter technique.
Optionally, the specified data source is data of a data source including a green curtain background;
the data processing module 404 is specifically configured to process the specified image data by using an image replacement technique.
Optionally, the system further comprises:
a first recording module for recording the specified image data;
and the second recording module is used for comparing the processing result frame image data with the specified image data so as to test the processing effect of the image processing technology.
Optionally, the specified data source comprises a non-anomalous effects data source;
the data processing module 404 is specifically configured to monitor whether the specified image data has an abnormal effect.
Optionally, the specified image data source comprises a data source with content to be identified;
the data processing module 404 is specifically configured to identify the content to be identified in the designated image data by using an image identification technology.
Further, the embodiment of the application also provides computer equipment. Fig. 10 is a schematic diagram of a computer device to which a camera data processing method according to the present application is applied.
As can be seen from fig. 11, the computer device 10 may include: a processor 11, a memory 12, a communication interface 13, an input unit 14 and a display 15 and a communication bus 16.
The processor 11, the memory 12, the communication interface 13, the input unit 14 and the display 15 all communicate with each other through a communication bus 16.
In the embodiment of the present application, the processor 11 may be a Central Processing Unit (CPU), an asic (application specific integrated circuit), a digital signal processor, an off-the-shelf programmable gate array, or other programmable logic device. The processor may call a program stored in the memory 12. Specifically, the processor may perform the operations performed on the computer device side in the embodiments of the memory allocation code detection method described below.
The memory 12 is used for storing one or more programs, which may include program codes including computer operation instructions, and in this embodiment, at least a program for implementing any one of the above memory allocation code detection methods is stored in the memory.
In one possible implementation, the memory 12 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a function of compiling application program code), and the like; the data storage area can store data created in the use process of the computer, such as application composition codes to be detected, intermediate language codes, memory allocation code position information and the like.
In addition, the memory 12 may also include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The communication interface 13 may be an interface of a communication module, such as an interface of a GSM module.
The present application may also include a display 14 and an input unit 15, and the like.
Of course, the structure of the computer device shown in fig. 11 does not constitute a limitation of the computer device in the embodiment of the present application, and in practical applications, the computer device may include more or less components than those shown in fig. 1, or some components may be combined.
The computer device 10 in fig. 11 may be a terminal (e.g., a PC), or may be a server with higher performance than a normal terminal.
In the embodiment of the present application, the computer device 10 may receive, by using a network according to the communication interface 13, an application program code to be detected sent by another external device; the application code to be detected can also be obtained through its own input unit 14 (e.g. keyboard, touch screen, voice input device, etc.).
Accordingly, the processor 11 in the computer device 10 may receive the application program code to be detected from the communication interface 13 or the input unit 14 through the communication bus 16, call the program stored in the memory 12 to compile the application program code to be detected, and detect the intermediate code obtained by compiling, so as to determine the location information of the memory allocation code, thereby achieving the purpose of conveniently detecting all the memory allocation codes in the application program code.
In another aspect, the present application further provides a storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the computer program is used to implement the memory allocation code detection method described in any one of the above embodiments.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.
Claims (10)
1. A camera data processing method, comprising:
capturing current frame camera image data called back by a camera, wherein the current frame camera image data is a frame of image data currently acquired by the camera;
decoding a specified data source, and acquiring one frame of specified image data in the specified data source; the specified data source comprises a non-anomalous effect data source;
replacing the current frame camera image data with the frame designation image data;
performing an operation corresponding to the current frame camera image data using the designated image data;
the performing, by using the designated image data, an operation corresponding to the current frame camera image data includes: and monitoring whether the specified image data has abnormal effects.
2. A camera data processing method, comprising:
capturing current frame camera image data called back by a camera, wherein the current frame camera image data is a frame of image data currently acquired by the camera;
decoding a specified data source, and acquiring one frame of specified image data in the specified data source;
replacing the current frame camera image data with the frame designation image data;
performing an operation corresponding to the current frame camera image data using the designated image data, the performing an operation corresponding to the current frame camera image data using the designated image data, comprising: and processing the appointed image data by utilizing an image processing technology to obtain processing result frame image data.
3. The method according to claim 2, wherein the specified data source data is data source data including a face image;
correspondingly, the processing the specified image data by using the image processing technology comprises:
and processing the specified image data by using an image beautifying technology.
4. The method of claim 2, wherein said processing the specified image data using image processing techniques comprises:
and processing the specified image data by using an add filter technology.
5. The method of claim 2, wherein the specified data source is data source data comprising a green screen background;
correspondingly, the processing the specified image data by using the image processing technology comprises:
and processing the specified image data by using an image replacement technology.
6. The method according to any one of claims 2 to 5, wherein the decoding of the specified data source further comprises, after acquiring one frame of specified image data from the specified data source:
recording the specified image data;
correspondingly, after the processing of the designated image data by using the image processing technology to obtain the frame image data of the processing result, the method includes:
and comparing the processing result frame image data with the specified image data to test the processing effect of the image processing technology.
7. A camera data processing method, comprising:
capturing current frame camera image data called back by a camera, wherein the current frame camera image data is a frame of image data currently acquired by the camera;
decoding a specified data source, and acquiring one frame of specified image data in the specified data source; the method comprises the steps that the appointed image data source comprises a data source with content to be identified, the appointed data source is decoded, one frame of appointed image data in the appointed data source is obtained, and the method comprises the following steps: identifying the content to be identified in the specified image data by utilizing an image identification technology; replacing the current frame camera image data with the frame designation image data;
and performing an operation corresponding to the current frame camera image data by using the specified image data.
8. A camera data processing system, comprising:
the data acquisition module is used for acquiring current frame camera image data called back by a camera, wherein the current frame camera image data is a frame of image data currently acquired by the camera;
the data source decoding module is used for decoding a specified data source and acquiring one frame of specified image data in the specified data source; the specified data source comprises a non-anomalous effect data source;
a data replacement module for replacing the current frame of camera image data with the frame of designated image data;
the data processing module is used for carrying out operation corresponding to the current frame camera image data by utilizing the specified image data; the data processing module is specifically configured to monitor whether the specified image data has an abnormal effect.
9. A computer device, comprising:
a processor and a memory;
wherein the processor is configured to execute a program stored in the memory;
the memory is to store a program to at least: performing the camera data processing method of claim 1 or any one of claims 2-6 or claim 7.
10. A storage medium having stored therein computer-executable instructions that, when loaded and executed by a processor, carry out a camera data processing method as claimed in claim 1 or any one of claims 2 to 6 or claim 7 as hereinbefore described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910791640.1A CN112437224B (en) | 2019-08-26 | 2019-08-26 | Camera data processing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910791640.1A CN112437224B (en) | 2019-08-26 | 2019-08-26 | Camera data processing method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112437224A CN112437224A (en) | 2021-03-02 |
CN112437224B true CN112437224B (en) | 2022-11-11 |
Family
ID=74690230
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910791640.1A Active CN112437224B (en) | 2019-08-26 | 2019-08-26 | Camera data processing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112437224B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6184541A (en) * | 1984-10-03 | 1986-04-30 | Olympus Optical Co Ltd | Measuring device for image formation performance of camera lens |
CN107749986A (en) * | 2017-09-18 | 2018-03-02 | 深圳市天英联合教育股份有限公司 | Instructional video generation method, device, storage medium and computer equipment |
CN107979754A (en) * | 2016-10-25 | 2018-05-01 | 百度在线网络技术(北京)有限公司 | A kind of test method and device based on camera application |
CN109656800A (en) * | 2017-10-10 | 2019-04-19 | 百度在线网络技术(北京)有限公司 | Test method, device, terminal and the storage medium of image recognition application |
CN109669783A (en) * | 2017-10-13 | 2019-04-23 | 阿里巴巴集团控股有限公司 | Data processing method and equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1571566A (en) * | 2004-03-03 | 2005-01-26 | 马堃 | Multiplexing synthetic method for memberized electronic handset visiting card |
-
2019
- 2019-08-26 CN CN201910791640.1A patent/CN112437224B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6184541A (en) * | 1984-10-03 | 1986-04-30 | Olympus Optical Co Ltd | Measuring device for image formation performance of camera lens |
CN107979754A (en) * | 2016-10-25 | 2018-05-01 | 百度在线网络技术(北京)有限公司 | A kind of test method and device based on camera application |
CN107749986A (en) * | 2017-09-18 | 2018-03-02 | 深圳市天英联合教育股份有限公司 | Instructional video generation method, device, storage medium and computer equipment |
CN109656800A (en) * | 2017-10-10 | 2019-04-19 | 百度在线网络技术(北京)有限公司 | Test method, device, terminal and the storage medium of image recognition application |
CN109669783A (en) * | 2017-10-13 | 2019-04-23 | 阿里巴巴集团控股有限公司 | Data processing method and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112437224A (en) | 2021-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103152489B (en) | A kind of exhibiting method of image of autodyning and device | |
CN111464761A (en) | Video processing method and device, electronic equipment and computer readable storage medium | |
CN113556485A (en) | Video generation method and device, electronic equipment and storage medium | |
CN109656800B (en) | Method and device for testing image recognition application, terminal and storage medium | |
CN110213458B (en) | Image data processing method and device and storage medium | |
CN109766275B (en) | Automated testing method, system, storage medium and device for mobile application | |
US20230316529A1 (en) | Image processing method and apparatus, device and storage medium | |
CN108469991B (en) | Multimedia data processing method and device | |
CN112437224B (en) | Camera data processing method and device, computer equipment and storage medium | |
CN110347597B (en) | Interface testing method and device of picture server, storage medium and mobile terminal | |
CN113730923A (en) | Anchor input operation sharing and displaying method and device based on live game | |
US20140307116A1 (en) | Method and system for managing video recording and/or picture taking in a restricted environment | |
CN111930641A (en) | Image data processing method and intelligent equipment | |
CN110333903B (en) | Method and device for determining page loading duration | |
CN115658500A (en) | Vue-based front-end error log uploading method and system in hybrid development | |
CN117171000A (en) | Application program APP testing method and device, electronic equipment and storage medium | |
CN106775701B (en) | Client automatic evidence obtaining method and system | |
CN113891135B (en) | Multimedia data playing method and device, electronic equipment and storage medium | |
US8811756B2 (en) | Image compression | |
CN110336804B (en) | Multimedia file recovery method, device and equipment | |
CN114428737A (en) | Communication method, device, equipment and storage medium based on micro service system | |
CN114339117A (en) | Video call method and device, electronic equipment and storage medium | |
CN113535029A (en) | Operation recording method, terminal, computer device and computer-readable storage medium | |
CN106845202B (en) | File access method, device and system for face recognition system | |
CN111427642A (en) | Data processing method and device, terminal equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |